mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-26 06:25:20 +00:00
23 lines
482 B
Plaintext
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 |