Skip to content
GitLab
Explore
Sign in
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
8cfdcdda
Commit
8cfdcdda
authored
3 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Use g_block_period instead of g_gap_size.
parent
9747ac57
Branches
Branches containing commit
No related tags found
1 merge request
!156
Added first version of dp_bsn_align_v2.vhd with mmp and tb. This was...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/tb/vhdl/tb_tb_dp_bsn_align_v2.vhd
+9
-10
9 additions, 10 deletions
libraries/base/dp/tb/vhdl/tb_tb_dp_bsn_align_v2.vhd
with
9 additions
and
10 deletions
libraries/base/dp/tb/vhdl/tb_tb_dp_bsn_align_v2.vhd
+
9
−
10
View file @
8cfdcdda
...
...
@@ -36,10 +36,8 @@ ARCHITECTURE tb OF tb_tb_dp_bsn_align_v2 IS
CONSTANT
c_bsn_latency_max
:
POSITIVE
:
=
1
;
CONSTANT
c_block
:
NATURAL
:
=
11
;
CONSTANT
c_gap
:
NATURAL
:
=
9
;
CONSTANT
c_period
:
NATURAL
:
=
c_block
+
c_gap
;
CONSTANT
c_period
:
NATURAL
:
=
20
;
CONSTANT
c_delay_max
:
NATURAL
:
=
c_bsn_latency_max
*
c_period
;
CONSTANT
c_nof_repeat
:
NATURAL
:
=
50
;
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
-- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
...
...
@@ -50,7 +48,7 @@ BEGIN
-- g_bsn_latency_max : NATURAL := 1; -- Maximum travel latency of a remote block in number of block periods T_blk
-- g_nof_aligners_max : NATURAL := 1; -- 1 when only align at last node, > 1 when align at every intermediate node
-- g_block_size : NATURAL := 11; -- > 1, g_block_size=1 is not supported
-- g_
gap_size
: NATURAL :=
9
; --
block period
= g_block_size +
g
_gap_size
-- g_
block_period
: NATURAL :=
20
; --
>= g_block_size,
= g_block_size +
c
_gap_size
-- g_bsn_w : NATURAL := c_dp_stream_bsn_w; -- number of bits in sosi BSN
-- g_data_w : NATURAL := 16; -- number of bits in sosi data
-- c_replacement_value : INTEGER := 0; -- output sosi data replacement value for missing input blocks
...
...
@@ -59,13 +57,14 @@ BEGIN
-- g_rd_latency : NATURAL := 2; -- 1 or 2, choose 2 to ease timing closure
--
-- -- TB
-- g_diff_delay_max : NATURAL := 0; -- maximum nof clk delay between any inputs
-- g_nof_repeat : NATURAL := 100 -- for constant active stream control using 1 is sufficient, use > 1 to verify longer with random stimuli
-- g_tb_diff_delay_max : NATURAL := 45; -- maximum nof clk delay between any inputs, <= c_align_latency
-- g_tb_nof_restart : NATURAL := 1; -- number of times to restart the input stimuli
-- g_tb_nof_blocks : NATURAL := 10 -- number of input blocks per restart
u_mm_output
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
gap
,
32
,
16
,
17
,
TRUE
,
0
,
1
,
0
,
c_nof_repeat
);
u_dp_output
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
gap
,
32
,
16
,
17
,
FALSE
,
0
,
1
,
0
,
c_nof_repeat
);
u_mm_output
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
period
,
32
,
16
,
17
,
TRUE
,
0
,
1
,
0
,
1
,
50
);
u_dp_output
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
period
,
32
,
16
,
17
,
FALSE
,
0
,
1
,
0
,
1
,
50
);
u_delay_no_loss
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
gap
,
32
,
16
,
17
,
FALSE
,
0
,
1
,
c_delay_max
,
c_nof_repeat
);
--u_
delay
_replacement : ENTITY work.tb_dp_bsn_align_v2 GENERIC MAP (2, c_bsn_latency_max, 1, c_block, c_
gap
, 32, 16, 17, FALSE, 0, 1, 40 + c_delay_max,
c_nof_repeat
);
u_
diff_
delay_no_loss
:
ENTITY
work
.
tb_dp_bsn_align_v2
GENERIC
MAP
(
2
,
c_bsn_latency_max
,
1
,
c_block
,
c_
period
,
32
,
16
,
17
,
FALSE
,
0
,
1
,
c_delay_max
,
1
,
50
);
--u_
loss
_replacement
: ENTITY work.tb_dp_bsn_align_v2 GENERIC MAP (2, c_bsn_latency_max, 1, c_block, c_
period
, 32, 16, 17, FALSE, 0, 1, 40 + c_delay_max,
1, 50
);
END
tb
;
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