forked from Github_Repos/cvw
Modification to testfloat.do to accept argument for nowave or by default none
This commit is contained in:
parent
f54868f19d
commit
dee4d49e42
@ -29,19 +29,17 @@ 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
|
||||||
|
|
||||||
#-- display input and output signals as hexidecimal values
|
# Determine if nowave argument is provided
|
||||||
if {$3 == "wave"} {
|
# this removes any output to a wlf or wave window to reduce
|
||||||
|
# disk space.
|
||||||
|
if {($argc > 2) && ($3 eq "nowave")} {
|
||||||
|
puts "No wave output is selected"
|
||||||
|
} else {
|
||||||
puts "wave output is selected"
|
puts "wave output is selected"
|
||||||
view wave
|
view wave
|
||||||
add log -recursive /*
|
add log -recursive /*
|
||||||
do wave-fpu.do
|
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 the Simulation
|
||||||
run -all
|
run -all
|
||||||
|
Loading…
Reference in New Issue
Block a user