From 5d1ad53bc7a1d09f0ffc16570da047510eaf8946 Mon Sep 17 00:00:00 2001 From: James Stine Date: Tue, 11 Apr 2023 22:35:04 -0500 Subject: [PATCH] Add feature in testfloat.do to elect wave or nowave --- sim/sim-testfloat-batch | 5 ++++- sim/testfloat.do | 19 ++++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/sim/sim-testfloat-batch b/sim/sim-testfloat-batch index c7f28a55..4cb03792 100755 --- a/sim/sim-testfloat-batch +++ b/sim/sim-testfloat-batch @@ -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" \ No newline at end of file +# nowave for 2nd argument supresses wlf files + +vsim -c -do "do testfloat.do rv64fpquad $1 $2" \ No newline at end of file diff --git a/sim/testfloat.do b/sim/testfloat.do index 49f816ce..c6573a07 100644 --- a/sim/testfloat.do +++ b/sim/testfloat.do @@ -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