mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-30 16:34:28 +00:00
23 lines
532 B
Plaintext
23 lines
532 B
Plaintext
# fma.do
|
|
#
|
|
# run with vsim -do "do fma.do"
|
|
# add -c before -do for batch simulation
|
|
|
|
onbreak {resume}
|
|
|
|
# create library
|
|
vlib worklib
|
|
|
|
vlog -lint -sv -work worklib fma16.v testbench.v
|
|
vopt +acc worklib.testbench_fma16 -work worklib -o testbenchopt
|
|
vsim -lib worklib testbenchopt
|
|
|
|
add wave sim:/testbench_fma16/clk
|
|
add wave sim:/testbench_fma16/reset
|
|
add wave sim:/testbench_fma16/x
|
|
add wave sim:/testbench_fma16/y
|
|
add wave sim:/testbench_fma16/z
|
|
add wave sim:/testbench_fma16/result
|
|
add wave sim:/testbench_fma16/rexpected
|
|
|
|
run -all |