mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Add feature in testfloat.do to elect wave or nowave
This commit is contained in:
		
							parent
							
								
									811004ef9f
								
							
						
					
					
						commit
						744e170be3
					
				@ -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"
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user