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
cae64592
Commit
cae64592
authored
Oct 30, 2018
by
Tomasz Wlostowski
Committed by
Maciej Lipinski
May 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_streamers: testbench for fixed latency mode
parent
d582d42b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
724 additions
and
157 deletions
+724
-157
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.
testbench/wr_streamers/streamers-only-fixed-latency/main.sv
View file @
cae64592
...
...
@@ -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 @
cae64592
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