Add feature in testfloat.do to elect wave or nowave

This commit is contained in:
James Stine 2023-04-11 22:35:04 -05:00
parent f5201da676
commit 5d1ad53bc7
2 changed files with 16 additions and 8 deletions

View File

@ -4,9 +4,12 @@
# cmp - test comparison unit's LT, LE, EQ opperations (fcmp)
# add - test addition
# fma - test fma
# mul - test mult with fma
# sub - test subtraction
# div - test division
# sqrt - test square root
# all - test everything
vsim -c -do "do testfloat.do rv64fpquad $1"
# nowave for 2nd argument supresses wlf files
vsim -c -do "do testfloat.do rv64fpquad $1 $2"

View File

@ -29,16 +29,21 @@ vlog +incdir+../config/$1 +incdir+../config/shared ../testbench/testbench-fp.sv
vsim -voptargs=+acc work.testbenchfp -G TEST=$2
view wave
#-- display input and output signals as hexidecimal values
#do ./wave-dos/peripheral-waves.do
add log -recursive /*
#do wave.do deal with when ready
do wave-fpu.do
if {$3 == "wave"} {
puts "wave output is selected"
view wave
add log -recursive /*
do wave-fpu.do
} elseif {$3 == "nowave"} {
puts "No wave output is selected"
} else {
puts "Error with third argument"
exit 2
}
#-- Run the Simulation
#run 3600
run -all
noview testbench-fp.sv
view wave