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
10f5741c
Commit
10f5741c
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Comment update. Little more margin in latency checks.
parent
0274948f
No related branches found
No related tags found
1 merge request
!288
Resolve L2SDP-836
Pipeline
#38606
passed
2 years ago
Stage: simulation
Stage: synthesis
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/io/eth/tb/vhdl/tb_eth_tester.vhd
+8
-7
8 additions, 7 deletions
libraries/io/eth/tb/vhdl/tb_eth_tester.vhd
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
+1
-1
1 addition, 1 deletion
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
with
9 additions
and
8 deletions
libraries/io/eth/tb/vhdl/tb_eth_tester.vhd
+
8
−
7
View file @
10f5741c
...
@@ -25,8 +25,9 @@
...
@@ -25,8 +25,9 @@
--
--
-- Usage:
-- Usage:
-- > as 8
-- > as 8
-- # Cannot use run -a when g_loopback_eth=TRUE and g_eth_sim_level=0, because
-- # * E.g. view sosi/data signals in dut/gen_streams/u_rx and u_tx
-- # the TSE IP model remains active internally after tb_end
-- # * Cannot use run -a when g_loopback_eth=TRUE and g_eth_sim_level=0,
-- # because the TSE IP model remains active internally after tb_end
-- > run 100 us # when g_loopback_eth=TRUE and g_eth_sim_level=0, else:
-- > run 100 us # when g_loopback_eth=TRUE and g_eth_sim_level=0, else:
-- > run -a
-- > run -a
--
--
...
@@ -357,7 +358,7 @@ BEGIN
...
@@ -357,7 +358,7 @@ BEGIN
"ETH bit rate total :"
&
"ETH bit rate total :"
&
" c_eth_nof_bps_total = "
&
REAL
'IMAGE
(
c_eth_nof_bps_total
)
&
" bps"
);
" c_eth_nof_bps_total = "
&
REAL
'IMAGE
(
c_eth_nof_bps_total
)
&
" bps"
);
END
IF
;
END
IF
;
ASSERT
c_eth_nof_bps_total
<
10
.
0
**
9
REPORT
"Tx flow control will keep ETH bitrate < 1Gbps."
SEVERITY
WARNING
;
ASSERT
c_eth_nof_bps_total
<
10
.
0
**
9
REPORT
"Tx flow control will keep ETH bitrate < 1Gbps."
SEVERITY
NOTE
;
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-- Verification: Total counts
-- Verification: Total counts
...
@@ -513,15 +514,15 @@ BEGIN
...
@@ -513,15 +514,15 @@ BEGIN
IF
g_loopback_eth
=
TRUE
THEN
IF
g_loopback_eth
=
TRUE
THEN
IF
g_nof_streams
=
1
THEN
IF
g_nof_streams
=
1
THEN
IF
g_eth_sim_level
=
0
THEN
IF
g_eth_sim_level
=
0
THEN
ASSERT
almost_equal
(
rx_mon_latency_arr
(
I
),
c_rx_exp_latency_tech_tse
,
1
)
REPORT
ASSERT
almost_equal
(
rx_mon_latency_arr
(
I
),
c_rx_exp_latency_tech_tse
,
1
0
)
REPORT
c_tb_str
&
"Wrong rx latency using tech_tse interface"
SEVERITY
ERROR
;
c_tb_str
&
"Wrong rx latency using tech_tse interface"
SEVERITY
ERROR
;
ELSIF
g_eth_sim_level
=
1
THEN
ELSIF
g_eth_sim_level
=
1
THEN
ASSERT
almost_equal
(
rx_mon_latency_arr
(
I
),
c_rx_exp_latency_sim_tse
,
1
)
REPORT
ASSERT
almost_equal
(
rx_mon_latency_arr
(
I
),
c_rx_exp_latency_sim_tse
,
1
0
)
REPORT
c_tb_str
&
"Wrong rx latency using sim_tse interface"
SEVERITY
ERROR
;
c_tb_str
&
"Wrong rx latency using sim_tse interface"
SEVERITY
ERROR
;
END
IF
;
END
IF
;
END
IF
;
END
IF
;
ELSE
ELSE
ASSERT
rx_mon_latency_arr
(
I
)
=
c_rx_exp_latency_st
REPORT
ASSERT
almost_equal
(
rx_mon_latency_arr
(
I
)
,
c_rx_exp_latency_st
,
0
)
REPORT
c_tb_str
&
"Wrong rx latency using st interface ("
&
NATURAL
'IMAGE
(
I
)
&
")"
SEVERITY
ERROR
;
c_tb_str
&
"Wrong rx latency using st interface ("
&
NATURAL
'IMAGE
(
I
)
&
")"
SEVERITY
ERROR
;
END
IF
;
END
IF
;
END
IF
;
END
IF
;
...
@@ -602,7 +603,7 @@ BEGIN
...
@@ -602,7 +603,7 @@ BEGIN
tse_init
<=
'0'
;
tse_init
<=
'0'
;
END
GENERATE
;
END
GENERATE
;
use_tech_tse
:
IF
g_eth_sim_level
=
0
GENERATE
use_tech_tse
:
IF
g_eth_sim_level
=
0
GENERATE
p_link
:
PROCESS
(
eth_txp
)
p_
eth_
link
:
PROCESS
(
eth_txp
)
BEGIN
BEGIN
eth_rxp
<=
TRANSPORT
eth_txp
AFTER
12
ns
;
-- apply cable delay
eth_rxp
<=
TRANSPORT
eth_txp
AFTER
12
ns
;
-- apply cable delay
eth_corrupt
<=
'0'
;
eth_corrupt
<=
'0'
;
...
...
This diff is collapsed.
Click to expand it.
libraries/io/eth/tb/vhdl/tb_tb_eth_tester.vhd
+
1
−
1
View file @
10f5741c
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
-- Usage:
-- Usage:
-- > as 8
-- > as 8
-- > run -all
-- > run -all
-- Takes about 25 m
LIBRARY
IEEE
,
diag_lib
;
LIBRARY
IEEE
,
diag_lib
;
USE
IEEE
.
std_logic_1164
.
ALL
;
USE
IEEE
.
std_logic_1164
.
ALL
;
...
@@ -155,7 +156,6 @@ BEGIN
...
@@ -155,7 +156,6 @@ BEGIN
-- . BG supports samples_per_packet >= 2, BG treats samples_per_packet = 1 as 2
-- . BG supports samples_per_packet >= 2, BG treats samples_per_packet = 1 as 2
-- . ETH MAC pads samples_per_packet <= 6 to 6, to have minimum packet length of 64 octets,
-- . ETH MAC pads samples_per_packet <= 6 to 6, to have minimum packet length of 64 octets,
-- because hdr = 14 + 20 + 8 + 12 and crc = 4 have 58 octets.
-- because hdr = 14 + 20 + 8 + 12 and crc = 4 have 58 octets.
u_st_len2
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
20
,
c_nof_sync
,
1
,
FALSE
,
1
,
FALSE
,
u_st_len2
:
ENTITY
work
.
tb_eth_tester
GENERIC
MAP
(
20
,
c_nof_sync
,
1
,
FALSE
,
1
,
FALSE
,
(
'1'
,
'1'
,
2
,
c_nof_blk
,
c_gap_len
,
0
,
c_high
,
0
),
(
'1'
,
'1'
,
2
,
c_nof_blk
,
c_gap_len
,
0
,
c_high
,
0
),
c_bg_ctrl_rst
)
c_bg_ctrl_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