forked from Github_Repos/cvw
		
	Divide testfloat starts with half-precision tests
This commit is contained in:
		
							parent
							
								
									f65d941561
								
							
						
					
					
						commit
						1187187a5c
					
				| @ -102,7 +102,7 @@ | ||||
| 
 | ||||
| // division constants | ||||
| `define RADIX 32'h2 | ||||
| `define DIVCOPIES 32'h4 | ||||
| `define DIVCOPIES 32'h1 | ||||
| `define DIVLEN ((`NF < `XLEN) ? (`XLEN) : (`NF + 3)) | ||||
| // `define DIVN (`NF < `XLEN ? `XLEN : `NF+1) // length of input | ||||
| `define DIVN (`NF < `XLEN ? `XLEN : `NF+3) // length of input | ||||
|  | ||||
| @ -575,13 +575,20 @@ module testbenchfp; | ||||
|       end | ||||
|       if (TEST === "div"   | TEST === "all") begin // if division is being tested
 | ||||
|         // add the correct tests/op-ctrls/unit/fmt to their lists
 | ||||
|         Tests = {Tests, f16div}; | ||||
|         Tests = {f16div, Tests}; | ||||
|         OpCtrl = {`DIV_OPCTRL, OpCtrl}; | ||||
|         WriteInt = {1'b0, WriteInt}; | ||||
|         for(int i = 0; i<5; i++) begin | ||||
|           Unit = {`DIVUNIT, Unit}; | ||||
|           Fmt = {2'b10, Fmt}; | ||||
|         end | ||||
|         /* Tests = {Tests, f16div}; | ||||
|         OpCtrl = {OpCtrl, `DIV_OPCTRL}; | ||||
|         WriteInt = {WriteInt, 1'b0}; | ||||
|         for(int i = 0; i<5; i++) begin | ||||
|           Unit = {Unit, `DIVUNIT}; | ||||
|           Fmt = {Fmt, 2'b10}; | ||||
|         end | ||||
|         end */ | ||||
|       end | ||||
|       if (TEST === "sqrt"  | TEST === "all") begin // if sqrt is being tested
 | ||||
|         // add the correct tests/op-ctrls/unit/fmt to their lists
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user