mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-20 11:57:27 -04:00
Modification to testfloat.do to accept argument for nowave or by default none
This commit is contained in:
parent
10be07857c
commit
001a364d6c
1 changed files with 8 additions and 10 deletions
|
@ -29,19 +29,17 @@ vlog +incdir+../config/$1 +incdir+../config/shared ../testbench/testbench-fp.sv
|
|||
|
||||
vsim -voptargs=+acc work.testbenchfp -G TEST=$2
|
||||
|
||||
#-- display input and output signals as hexidecimal values
|
||||
if {$3 == "wave"} {
|
||||
# Determine if nowave argument is provided
|
||||
# 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"
|
||||
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 -all
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue