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
3a565b1f
Commit
3a565b1f
authored
Jun 02, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl/testbench: trivial SVEC testbench
parent
6216cf6a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
815 additions
and
149 deletions
+815
-149
timestamp.svh
hdl/include/timestamp.svh
+1
-1
Manifest.py
hdl/testbench/svec_wr_top/Manifest.py
+3
-1
fdelay_board.svh
hdl/testbench/svec_wr_top/fdelay_board.svh
+2
-2
main.sv
hdl/testbench/svec_wr_top/main.sv
+22
-1
run.do
hdl/testbench/svec_wr_top/run.do
+1
-1
simdrv_fine_delay.svh
hdl/testbench/svec_wr_top/simdrv_fine_delay.svh
+1
-1
wave.do
hdl/testbench/svec_wr_top/wave.do
+785
-142
No files found.
hdl/include/timestamp.svh
View file @
3a565b1f
`ifndef
__
TIMESTAMP_SVH
`define
__TIMESTAMP_SVH
`include
"
wb/
simdrv_defs.svh"
`include
"simdrv_defs.svh"
class
Timestamp
;
uint64_t
utc
;
...
...
hdl/testbench/svec_wr_top/Manifest.py
View file @
3a565b1f
ctrls
=
[
"bank3_32b_32b"
]
action
=
"simulation"
target
=
"xilinx"
vcom_opt
=
"-mixedsvvh l"
fetchto
=
"../../ip_cores"
include_dirs
=
[
"../../include/vme64x_bfm"
,
"../../include
/wb"
,
"../../include
"
,
"../../include"
,
"../../ip_cores/general-cores/modules/wishbone/wb_spi/"
,
"../../ip_cores/general-cores/sim/"
,
"../../ip_cores/general-cores/modules/wishbone/wb_lm32/src/"
]
syn_device
=
"xc6slx45t"
sim_tool
=
"modelsim"
...
...
hdl/testbench/svec_wr_top/fdelay_board.svh
View file @
3a565b1f
...
...
@@ -6,8 +6,8 @@
`include
"jittery_delay.svh"
`include
"mc100ep195.vh"
`include
"
wb/
simdrv_defs.svh"
`include
"
wb/
if_wb_master.svh"
`include
"simdrv_defs.svh"
`include
"if_wb_master.svh"
`timescale
10
fs
/
10
fs
...
...
hdl/testbench/svec_wr_top/main.sv
View file @
3a565b1f
...
...
@@ -142,6 +142,13 @@ module main;
.
fmc
(
I_fmc0
.
board
)
)
;
fdelay_board
U_Board1
(
.
trig_i
(
trig0
)
,
.
out_o
()
,
.
fmc
(
I_fmc1
.
board
)
)
;
reg
out0_delayed
=
0
;
always
@
(
out0
[
0
])
out0_delayed
<=
#
10
ps
out0
[
0
]
;
...
...
@@ -177,13 +184,27 @@ module main;
init_vme64x_core
(
acc
)
;
acc_casted
.
set_default_xfer_size
(
A32
|
SINGLE
|
D32
)
;
$
error
(
"Init driver"
)
;
drv0
=
new
(
acc
,
'h80010000
)
;
drv0
.
init
()
;
drv1
=
new
(
acc
,
'h80020000
)
;
drv1
.
init
()
;
$
error
(
"set idelay0"
)
;
acc
.
write
(
'h80010080
,
10
)
;
#
20u
s
;
$
error
(
"set idelay1"
)
;
acc
.
write
(
'h80020080
,
10
)
;
#
20u
s
;
$
stop
;
drv0
.
set_idelay_taps
(
5
)
;
/* t_start=new;
...
...
hdl/testbench/svec_wr_top/run.do
View file @
3a565b1f
vlog -sv main.sv +incdir+. +incdir+../../include/wb +incdir+../../include/vme64x_bfm +incdir+../../include
#
vlog -sv main.sv +incdir+. +incdir+../../include/wb +incdir+../../include/vme64x_bfm +incdir+../../include
vsim -t 1ps work.main -novopt -L unisim
set StdArithNoWarnings 1
...
...
hdl/testbench/svec_wr_top/simdrv_fine_delay.svh
View file @
3a565b1f
`include
"regs/fd_main_regs.vh"
`include
"regs/fd_channel_regs.vh"
`include
"
wb/
simdrv_defs.svh"
`include
"simdrv_defs.svh"
`include
"timestamp.svh"
const
int
SPI_PLL
=
0
;
...
...
hdl/testbench/svec_wr_top/wave.do
View file @
3a565b1f
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