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
803afaf4
Commit
803afaf4
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Try different BG block lengths to verify nof octets in last word.
parent
03ad8145
No related branches found
No related tags found
1 merge request
!288
Resolve L2SDP-836
Pipeline
#38258
passed
2 years ago
Stage: simulation
Stage: synthesis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
+25
-13
25 additions, 13 deletions
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
with
25 additions
and
13 deletions
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
+
25
−
13
View file @
803afaf4
-------------------------------------------------------------------------------
--
-- Copyright 202
0
-- Copyright 202
2
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
...
...
@@ -40,26 +40,38 @@ ARCHITECTURE tb OF tb_tb_eth_tester IS
CONSTANT
c_bg_ctrl_rst
:
t_diag_block_gen_integer
:
=
func_diag_bg_ctrl_slv_to_integer
(
c_diag_block_gen_rst
);
CONSTANT
c_bg_ctrl_first
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
50
,
8
,
100
,
0
,
30
,
0
);
-- for first stream
CONSTANT
c_bg_ctrl_others
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
30
,
8
,
10
,
0
,
30
,
0
);
-- for other streams
CONSTANT
c_bg_ctrl_len_0
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
80
,
8
,
100
,
0
,
30
,
0
);
-- nof octets
CONSTANT
c_bg_ctrl_len_1
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
81
,
8
,
100
,
0
,
30
,
0
);
-- nof octets
CONSTANT
c_bg_ctrl_len_2
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
82
,
8
,
100
,
0
,
30
,
0
);
-- nof octets
CONSTANT
c_bg_ctrl_len_3
:
t_diag_block_gen_integer
:
=
(
'1'
,
'1'
,
83
,
8
,
100
,
0
,
30
,
0
);
-- nof octets
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
-- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
-- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
BEGIN
-- g_tb_index : STRING := "";
-- g_tb_index : NATURAL := 0; -- use to incremental delay logging from tb instances in tb_tb
-- g_tb_str : STRING := ""; -- use to distinguish logging from tb instances in tb_tb
-- g_nof_streams : NATURAL := 2;
--
-- -- sl: enable
-- -- sl: enable_sync
-- -- nat: samples_per_packet
-- -- nat: blocks_per_sync
-- -- nat: gapsize
-- -- nat: mem_low_adrs
-- -- nat: mem_high_adrs
-- -- nat: bsn_init
-- -- t_diag_block_gen_integer =
-- -- sl: enable
-- -- sl: enable_sync
-- -- nat: samples_per_packet
-- -- nat: blocks_per_sync
-- -- nat: gapsize
-- -- nat: mem_low_adrs
-- -- nat: mem_high_adrs
-- -- nat: bsn_init
-- g_bg_ctrl_first : t_diag_block_gen_integer := ('1', '1', 50, 8, 100, 0, 30, 0); -- for first stream
-- g_bg_ctrl_others : t_diag_block_gen_integer := ('1', '1', 30, 8, 10, 0, 30, 0) -- for other streams
u_one_stream
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
"tb_one: "
,
1
,
c_bg_ctrl_first
,
c_bg_ctrl_rst
);
u_multiple_streams
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
"tb_multiple: "
,
3
,
c_bg_ctrl_first
,
c_bg_ctrl_others
);
u_one_stream
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
0
,
"tb_one_stream: "
,
1
,
c_bg_ctrl_first
,
c_bg_ctrl_rst
);
u_multiple_streams
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
1
,
"tb_multiple_streams: "
,
3
,
c_bg_ctrl_first
,
c_bg_ctrl_others
);
-- Try different BG block lengths to verify nof octets in last word
u_bg_len_0
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
10
,
"tb_bg_len_0: "
,
1
,
c_bg_ctrl_len_0
,
c_bg_ctrl_rst
);
u_bg_len_1
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
11
,
"tb_bg_len_1: "
,
1
,
c_bg_ctrl_len_1
,
c_bg_ctrl_rst
);
u_bg_len_2
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
12
,
"tb_bg_len_2: "
,
1
,
c_bg_ctrl_len_2
,
c_bg_ctrl_rst
);
u_bg_len_3
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
13
,
"tb_bg_len_3: "
,
1
,
c_bg_ctrl_len_3
,
c_bg_ctrl_rst
);
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