Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
38ff357f
Commit
38ff357f
authored
Oct 30, 2018
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_streamers: testbench for fixed latency mode
parent
5bc9e108
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
727 additions
and
157 deletions
+727
-157
wr_streamers_wb.svh
sim/wr_streamers_wb.svh
+3
-0
main.sv
testbench/wr_streamers/streamers-only-fixed-latency/main.sv
+9
-5
wave.do
testbench/wr_streamers/streamers-only-fixed-latency/wave.do
+715
-152
No files found.
sim/wr_streamers_wb.svh
View file @
38ff357f
...
...
@@ -135,3 +135,6 @@
`define
ADDR_WR_STREAMERS_DUMMY 8
'
h84
`define
WR_STREAMERS_DUMMY_DUMMY_OFFSET 0
`define
WR_STREAMERS_DUMMY_DUMMY 32
'
hffffffff
`define
ADDR_WR_STREAMERS_RSTR 8
'
h88
`define
WR_STREAMERS_RSTR_RST_SW_OFFSET 0
`define
WR_STREAMERS_RSTR_RST_SW 32
'
h00000001
testbench/wr_streamers/streamers-only-fixed-latency/main.sv
View file @
38ff357f
...
...
@@ -72,6 +72,7 @@ module main;
// word.
parameter
g_record_size
=
64
;
parameter
g_wr_cycles_per_second
=
10000
;
parameter
g_fixed_latency_pipeline_delay
=
96
/
8
;
...
...
@@ -299,18 +300,21 @@ module main;
if
(
rx_streamer_data
!=
qe
.
data
)
begin
$
error
(
"Failure: got rec %x, should be %x"
,
rx_streamer_data
,
qe
.
data
)
;
$
stop
;
end
//$display("Tx ts %t rx ts %t", qe.ts, ts_rx);
delta
=
ts_rx
-
qe
.
ts
-
rx_streamer_cfg
.
fixed_latency
*
8
ns
;
delta
=
ts_rx
-
qe
.
ts
-
rx_streamer_cfg
.
fixed_latency
*
8
ns
-
g_fixed_latency_pipeline_delay
*
8
ns
;
if
(
delta
!=
0
)
begin
$
error
(
"Failure: delta latency != 0 (%t)"
,
delta
)
;
// $stop;
end
$
display
(
"delta: %t"
,
delta
)
;
end
// if (rx_streamer_dvalid)
end
// else: !if(!rst)
...
...
testbench/wr_streamers/streamers-only-fixed-latency/wave.do
View file @
38ff357f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment