Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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 Trigger Distribution
Commits
7256f1bb
Commit
7256f1bb
authored
Oct 18, 2021
by
Konstantinos Blantos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dut_env.sv
parent
678833e6
Pipeline
#2665
failed with stages
in 4 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dut_env.sv
hdl/testbench/wrtd_ref_svec_tdc_fd/dut_env.sv
+5
-3
No files found.
hdl/testbench/wrtd_ref_svec_tdc_fd/dut_env.sv
View file @
7256f1bb
...
...
@@ -28,6 +28,8 @@
`include
"vme64x_bfm.svh"
`include
"svec_vme_buffers.svh"
`timescale
1
ns
/
1
ps
module
simple_tdc_driver
(
input
clk
,
...
...
@@ -89,7 +91,7 @@ module simple_tdc_driver
val
[
27
:
26
]
=
t
.
channel
&
2'b11
;
val
[
25
:
18
]
=
start
;
val
[
17
]
=
1'b1
;
val
[
16
:
0
]
=
(
t
.
ts
-
start_time
)
/
0.000081
us
;
//81
ps
val
[
16
:
0
]
=
(
t
.
ts
-
start_time
)
/
81.0
ps
$
display
(
"[DUT] <%t> TDC: pulse at %t for channel %0d (start #0x%x, time_data 0x%x, start_time %t)"
,
$
realtime
,
t
.
ts
,
t
.
channel
,
start
,
val
[
16
:
0
]
,
start_time
)
;
...
...
@@ -100,7 +102,7 @@ module simple_tdc_driver
val
[
27
:
26
]
=
t
.
channel
&
2'b11
;
val
[
25
:
18
]
=
start
;
val
[
17
]
=
1'b0
;
val
[
16
:
0
]
=
(
t
.
duration
+
t
.
ts
-
start_time
)
/
0.000081
u
s
;
val
[
16
:
0
]
=
(
t
.
duration
+
t
.
ts
-
start_time
)
/
81.0
p
s
;
fifos
[
t
.
channel
/
4
]
.
push_back
(
val
)
;
...
...
@@ -124,7 +126,7 @@ module simple_tdc_driver
if
(
restart_pulse
)
begin
start
=
1
;
restart_pulse
=
0
;
start01
=
($
time
-
restart_time
)
/
0.000081
u
s
;
start01
=
($
time
-
restart_time
)
/
81.0
p
s
;
end
else
begin
start_time
=
$
time
;
...
...
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