Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
f2c9c600
"README" did not exist on "322aa79be70532a91efc35303ffb5c6aefd4d299"
Commit
f2c9c600
authored
6 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added c_flow_control_latency to correct timing of last evt.
parent
c27de164
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/tb/vhdl/tb_dp_deinterleave_one_to_n_to_one.vhd
+9
-2
9 additions, 2 deletions
...es/base/dp/tb/vhdl/tb_dp_deinterleave_one_to_n_to_one.vhd
with
9 additions
and
2 deletions
libraries/base/dp/tb/vhdl/tb_dp_deinterleave_one_to_n_to_one.vhd
+
9
−
2
View file @
f2c9c600
...
...
@@ -50,7 +50,7 @@ ENTITY tb_dp_deinterleave_one_to_n_to_one IS
GENERIC
(
-- general
g_flow_control_stimuli
:
t_dp_flow_control_enum
:
=
e_active
;
-- always e_active, e_random or e_pulse flow control
g_flow_control_verify
:
t_dp_flow_control_enum
:
=
e_
random
;
-- always e_active, e_random or e_pulse flow control
g_flow_control_verify
:
t_dp_flow_control_enum
:
=
e_
active
;
-- always e_active, e_random or e_pulse flow control
-- specific
g_use_fifo
:
BOOLEAN
:
=
TRUE
;
-- use TRUE to break flow control between 1 to N and N to 1
g_use_complex
:
BOOLEAN
:
=
FALSE
;
-- needed when g_use_fifo=TRUE
...
...
@@ -87,6 +87,12 @@ ARCHITECTURE tb OF tb_dp_deinterleave_one_to_n_to_one IS
CONSTANT
c_verify_pulse_active
:
NATURAL
:
=
1
;
CONSTANT
c_verify_pulse_period
:
NATURAL
:
=
5
;
CONSTANT
c_flow_control_latency_pls
:
NATURAL
:
=
g_nof_repeat
*
g_pkt_len
*
(
c_verify_pulse_period
*
c_stimuli_pulse_period
)
/
(
c_stimuli_pulse_active
*
c_verify_pulse_active
);
CONSTANT
c_flow_control_latency_rnd
:
NATURAL
:
=
g_nof_repeat
*
g_pkt_len
;
CONSTANT
c_flow_control_latency
:
NATURAL
:
=
sel_a_b
(
g_flow_control_stimuli
=
e_pulse
OR
g_flow_control_verify
=
e_pulse
,
c_flow_control_latency_pls
,
c_flow_control_latency_rnd
);
-- worst case value
CONSTANT
c_data_max
:
UNSIGNED
(
c_data_w
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'1'
);
CONSTANT
c_dsp_max
:
UNSIGNED
(
c_data_w
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
'1'
);
...
...
@@ -148,7 +154,8 @@ BEGIN
g_in_dat_w
=>
c_data_w
,
g_nof_repeat
=>
g_nof_repeat
,
g_pkt_len
=>
g_pkt_len
,
g_pkt_gap
=>
g_pkt_gap
g_pkt_gap
=>
g_pkt_gap
,
g_wait_last_evt
=>
c_flow_control_latency
-- number of clk cycles to wait with last_snk_in_evt after finishing the stimuli
)
PORT
MAP
(
rst
=>
rst
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment