mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	changed cycle count to account for integer bit generation for sqrt
This commit is contained in:
		
							parent
							
								
									c45d67f8ba
								
							
						
					
					
						commit
						6c24afaf98
					
				| @ -71,7 +71,7 @@ module fdivsqrtcycles import cvw::*;  #(parameter cvw_t P) ( | ||||
|   // The datapath produces rk bits per cycle, so Cycles = ceil (ResultBitsE / rk)
 | ||||
| 
 | ||||
|   always_comb begin  | ||||
|     if (SqrtE) FPResultBitsE = Nf + 2 + 0; // Nf + two fractional bits for round/guard; integer bit implicit because starting at n=1
 | ||||
|     if (SqrtE) FPResultBitsE = Nf + 2 + P.LOGR; // Nf + two fractional bits for round/guard; integer bit implicit because starting at n=1
 | ||||
|     else       FPResultBitsE = Nf + 2 + P.LOGR; // Nf + two fractional bits for round/guard + integer bits 
 | ||||
| 
 | ||||
|     if (P.IDIV_ON_FPU) ResultBitsE = IntDivE ? IntResultBitsE : FPResultBitsE; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user