Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
FMC DEL 1ns 4cha
Commits
ed7d3ae0
Commit
ed7d3ae0
authored
Oct 31, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main testbench: wip
parent
21b1b675
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1059 additions
and
486 deletions
+1059
-486
Makefile
hdl/testbench/top/Makefile
+1048
-475
main.sv
hdl/testbench/top/main.sv
+5
-3
wave.do
hdl/testbench/top/wave.do
+6
-8
No files found.
hdl/testbench/top/Makefile
View file @
ed7d3ae0
This diff is collapsed.
Click to expand it.
hdl/testbench/top/main.sv
View file @
ed7d3ae0
...
...
@@ -217,7 +217,9 @@ class CSimDrv_FineDelay;
task
force_cal_pulse
(
int
channel
,
int
delay_setpoint
)
;
m_acc
.
write
(
`ADDR_FD_FRR1
+
(
channel
*
'h20
)
,
delay_setpoint
)
;
m_acc
.
write
(
`ADDR_FD_DCR1
+
(
channel
*
'h20
)
,
`FD_DCR1_FORCE_CP
|
`FD_DCR1_POL
)
;
m_acc
.
write
(
`ADDR_FD_DCR1
+
(
channel
*
'h20
)
,
`FD_DCR1_FORCE_DLY
|
`FD_DCR1_POL
)
;
m_acc
.
write
(
`ADDR_FD_TDCSR
,
`FD_TDCSR_CAL_PULSE
)
;
endtask
// force_cal_pulse
endclass
// CSimDrv_FineDelay
...
...
@@ -540,12 +542,12 @@ module main;
fd_drv
=
new
(
wb
)
;
fd_drv
.
init
()
;
fd_drv
.
config_output
(
0
,
1
,
1000000
,
200000
)
;
//
fd_drv.config_output(0,1, 1000000, 200000);
// fd_drv.config_output(1,1, 1100500, 200000);
// fd_drv.config_output(2,1, 1100900, 200000);
// fd_drv.config_output(3,1, 1110100, 200000);
//
fd_drv.force_cal_pulse(0, 100);
fd_drv
.
force_cal_pulse
(
0
,
100
)
;
// #(320ns);
// fd_drv.force_cal_pulse(0, 200);
...
...
hdl/testbench/top/wave.do
View file @
ed7d3ae0
...
...
@@ -4,11 +4,6 @@ add wave -noupdate /main/DUT/clk_ref_i
add wave -noupdate /main/DUT/clk_sys_i
add wave -noupdate /main/DUT/rst_n_i
add wave -noupdate /main/DUT/trig_a_n_i
add wave -noupdate /main/DUT/delay_pulse_o(0)
add wave -noupdate /main/DUT/chx_rearm
add wave -noupdate -expand /main/DUT/U_Acam_TSU/trig_d
add wave -noupdate /main/DUT/U_Acam_TSU/trig_pulse
add wave -noupdate /main/DUT/U_Acam_TSU/tag_enable
add wave -noupdate /main/DUT/trig_cal_o
add wave -noupdate /main/DUT/tdc_start_i
add wave -noupdate /main/DUT/led_trig_o
...
...
@@ -33,7 +28,7 @@ add wave -noupdate /main/DUT/spi_mosi_o
add wave -noupdate /main/DUT/spi_miso_i
add wave -noupdate /main/DUT/delay_len_o
add wave -noupdate /main/DUT/delay_val_o
add wave -noupdate
-expand
/main/DUT/delay_pulse_o
add wave -noupdate /main/DUT/delay_pulse_o
add wave -noupdate /main/DUT/wr_time_valid_i
add wave -noupdate /main/DUT/wr_coarse_i
add wave -noupdate /main/DUT/wr_utc_i
...
...
@@ -66,6 +61,7 @@ add wave -noupdate /main/DUT/tdc_rearm_p1
add wave -noupdate /main/DUT/tdc_start_p1
add wave -noupdate /main/DUT/dcr_enable_vec
add wave -noupdate /main/DUT/dcr_mode_vec
add wave -noupdate /main/DUT/chx_rearm
add wave -noupdate /main/DUT/chx_delay_pulse
add wave -noupdate /main/DUT/chx_delay_value
add wave -noupdate /main/DUT/chx_delay_load
...
...
@@ -83,8 +79,10 @@ add wave -noupdate /main/DUT/regs_towb
add wave -noupdate /main/DUT/spi_cs_vec
add wave -noupdate /main/DUT/owr_en_int
add wave -noupdate /main/DUT/owr_int
add wave -noupdate /main/DUT/dbg
add wave -noupdate /main/DUT/gen_cal_pulse
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {
814000151
0 fs} 0}
WaveRestoreCursors {{Cursor 1} {
371600284
0 fs} 0}
configure wave -namecolwidth 413
configure wave -valuecolwidth 100
configure wave -justifyvalue left
...
...
@@ -99,4 +97,4 @@ configure wave -griddelta 40
configure wave -timeline 0
configure wave -timelineunits ns
update
WaveRestoreZoom {
0 fs} {16800 n
s}
WaveRestoreZoom {
3191002840 fs} {4241002840 f
s}
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