mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Merge pull request #345 from stineje/main
Update sim-testfloat to fix errors due to bad config element. I am n…
This commit is contained in:
		
						commit
						55a0ccbbc9
					
				| @ -34,18 +34,14 @@ other FP tests given by the great SoftFloat/TestFloat output. | ||||
| 
 | ||||
| 4a.) Each test will test all its vectors - if you want to test a | ||||
| subset of the vectors (e.g., only binary16), you should modify the | ||||
| cvw/testbench/tests-fp.h and comment out the tests  you do not want to | ||||
| test.  The best way to do this is to comment out each item out with | ||||
| the // comment option in SV.  For example, | ||||
| 
 | ||||
| string f128div[] = '{ | ||||
| //	"f128_div_rne.tv", | ||||
| //	"f128_div_rz.tv", | ||||
| //	"f128_div_ru.tv", | ||||
| //	"f128_div_rd.tv", | ||||
| //	"f128_div_rnm.tv" | ||||
| }; | ||||
| testfloat.do in the sim directory.  Change the TEST_SIZE="all" to the | ||||
| specific test you want to run.  For example, if you want to run only | ||||
| binary16, you should set this variable to TEST_SIZE="HP". | ||||
| 
 | ||||
| 4b.) If you want to turn off the generation of wlf files while running | ||||
| sim-testfloat-batch, you can modify testfloat.do in the sim | ||||
| directory.  Inside this DO file, modify the WAV file to 0 --> i.e., | ||||
| set "quietly set WAV 0;" | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -10,6 +10,3 @@ | ||||
| # sqrt   - test square root | ||||
| # all    - test everything | ||||
| 
 | ||||
| # nowave for 2nd argument supresses wlf files | ||||
| 
 | ||||
| vsim -c -do "do testfloat.do rv64fpquad $1 $2" | ||||
| @ -27,12 +27,16 @@ vlib work | ||||
| # $num = the added words after the call | ||||
| vlog +incdir+../config/$1 +incdir+../config/shared ../src/wally/cvw.sv ../testbench/testbench-fp.sv ../src/fpu/*.sv ../src/fpu/*/*.sv ../src/generic/*.sv  ../src/generic/flop/*.sv -suppress 2583,7063,8607,2697  | ||||
| 
 | ||||
| vsim -voptargs=+acc work.testbenchfp -G TEST=$2 | ||||
| # Change TEST_SIZE to only test certain FP width | ||||
| # values are QP, DP, SP, HP | ||||
| vsim -voptargs=+acc work.testbenchfp -GTEST=$2 -GTEST_SIZE="all"  | ||||
| 
 | ||||
| # 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")} { | ||||
| # Set WAV variable to avoid having any output to wave (to limit disk space) | ||||
| quietly set WAV 1; | ||||
| 
 | ||||
| # Determine if nowave argument is provided this removes any output to | ||||
| # a wlf or wave window to reduce disk space. | ||||
| if {$WAV eq 0} { | ||||
|     puts "No wave output is selected" | ||||
| } else { | ||||
|     puts "wave output is selected" | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user