mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-04-21 12:27:27 +03:00
Adding simulation files to blink example
This commit is contained in:
12
Examples/blink/logic/simulation/blink_TB.do
Normal file
12
Examples/blink/logic/simulation/blink_TB.do
Normal file
@@ -0,0 +1,12 @@
|
||||
vlib work
|
||||
vlog +acc "../blink.v"
|
||||
vlog +acc "../blink_TB.v"
|
||||
vlog +acc "/opt/cad/Xilinx/verilog/src/glbl.v"
|
||||
vsim -t 1ps -L xilinxcorelib_ver -L unisims_ver blink_TB_v glbl
|
||||
view wave
|
||||
do wave.do
|
||||
#add wave *
|
||||
add wave /glbl/GSR
|
||||
view structure
|
||||
view signals
|
||||
run 15ms
|
||||
25
Examples/blink/logic/simulation/wave.do
Normal file
25
Examples/blink/logic/simulation/wave.do
Normal file
@@ -0,0 +1,25 @@
|
||||
onerror {resume}
|
||||
quietly WaveActivateNextPane {} 0
|
||||
add wave -noupdate -format Logic /blink_TB_v/clk
|
||||
add wave -noupdate -format Logic /blink_TB_v/reset
|
||||
add wave -noupdate -format Logic /blink_TB_v/led
|
||||
add wave -noupdate -format Event /blink_TB_v/reset_trigger
|
||||
add wave -noupdate -format Logic /glbl/GSR
|
||||
add wave -noupdate -format Literal -radix hexadecimal /blink_TB_v/uut/counter
|
||||
add wave -noupdate -format Logic /glbl/GSR
|
||||
TreeUpdate [SetDefaultTree]
|
||||
WaveRestoreCursors {{Cursor 1} {17827 ps} 0}
|
||||
configure wave -namecolwidth 218
|
||||
configure wave -valuecolwidth 40
|
||||
configure wave -justifyvalue left
|
||||
configure wave -signalnamewidth 0
|
||||
configure wave -snapdistance 10
|
||||
configure wave -datasetprefix 0
|
||||
configure wave -rowmargin 4
|
||||
configure wave -childrowmargin 2
|
||||
configure wave -gridoffset 0
|
||||
configure wave -gridperiod 1
|
||||
configure wave -griddelta 40
|
||||
configure wave -timeline 0
|
||||
update
|
||||
WaveRestoreZoom {0 ps} {240328 ps}
|
||||
Reference in New Issue
Block a user