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
9afddf8c
Commit
9afddf8c
authored
Sep 30, 2021
by
Konstantinos Blantos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dut_env.sv
parent
dbd72902
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
dut_env.sv
hdl/testbench/wrtd_ref_svec_tdc_fd/dut_env.sv
+4
-5
No files found.
hdl/testbench/wrtd_ref_svec_tdc_fd/dut_env.sv
View file @
9afddf8c
...
...
@@ -72,8 +72,7 @@ module simple_tdc_driver
acam_fifo_entry
t
;
time
now
;
wait
(
pulses
.
size
()
!=
0
)
;
wait
(
pulses
.
size
()
!=
0
)
;
t
=
pulses
.
pop_front
()
;
now
=
$
time
;
...
...
@@ -90,7 +89,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
)
/
81
ps
;
val
[
16
:
0
]
=
(
t
.
ts
-
start_time
)
/
0.00081
us
;
//81ps
$
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
)
;
...
...
@@ -101,7 +100,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
)
/
81
ps
;
val
[
16
:
0
]
=
(
t
.
duration
+
t
.
ts
-
start_time
)
/
0.00081
us
;
fifos
[
t
.
channel
/
4
]
.
push_back
(
val
)
;
...
...
@@ -125,7 +124,7 @@ module simple_tdc_driver
if
(
restart_pulse
)
begin
start
=
1
;
restart_pulse
=
0
;
start01
=
($
time
-
restart_time
)
/
81
p
s
;
start01
=
($
time
-
restart_time
)
/
0.00081
u
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