forked from Github_Repos/cvw
Add feature in testfloat.do to elect wave or nowave
This commit is contained in:
parent
f5201da676
commit
5d1ad53bc7
@ -4,9 +4,12 @@
|
|||||||
# cmp - test comparison unit's LT, LE, EQ opperations (fcmp)
|
# cmp - test comparison unit's LT, LE, EQ opperations (fcmp)
|
||||||
# add - test addition
|
# add - test addition
|
||||||
# fma - test fma
|
# fma - test fma
|
||||||
|
# mul - test mult with fma
|
||||||
# sub - test subtraction
|
# sub - test subtraction
|
||||||
# div - test division
|
# div - test division
|
||||||
# sqrt - test square root
|
# sqrt - test square root
|
||||||
# all - test everything
|
# 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"
|
@ -29,16 +29,21 @@ vlog +incdir+../config/$1 +incdir+../config/shared ../testbench/testbench-fp.sv
|
|||||||
|
|
||||||
vsim -voptargs=+acc work.testbenchfp -G TEST=$2
|
vsim -voptargs=+acc work.testbenchfp -G TEST=$2
|
||||||
|
|
||||||
view wave
|
|
||||||
#-- display input and output signals as hexidecimal values
|
#-- display input and output signals as hexidecimal values
|
||||||
#do ./wave-dos/peripheral-waves.do
|
if {$3 == "wave"} {
|
||||||
add log -recursive /*
|
puts "wave output is selected"
|
||||||
#do wave.do deal with when ready
|
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
|
||||||
|
}
|
||||||
|
|
||||||
do wave-fpu.do
|
|
||||||
|
|
||||||
#-- Run the Simulation
|
#-- Run the Simulation
|
||||||
#run 3600
|
|
||||||
run -all
|
run -all
|
||||||
noview testbench-fp.sv
|
noview testbench-fp.sv
|
||||||
view wave
|
view wave
|
||||||
|
Loading…
Reference in New Issue
Block a user