cvw/fma/fma.do
2022-02-27 14:20:15 +00:00

23 lines
482 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 -work worklib fma16.sv testbench.sv
vopt +acc worklib.testbench -work worklib -o testbenchopt
vsim -lib worklib testbenchopt
add wave sim:/testbench/clk
add wave sim:/testbench/reset
add wave sim:/testbench/x
add wave sim:/testbench/y
add wave sim:/testbench/z
add wave sim:/testbench/result
add wave sim:/testbench/rexpected
run -all