mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Added signed division to fdivsqrt
This commit is contained in:
		
							parent
							
								
									a8a89f8dfc
								
							
						
					
					
						commit
						e401d12889
					
				@ -55,6 +55,7 @@ module fdivsqrtpreproc (
 | 
			
		||||
  logic [`DIVb+3:0] DivX;
 | 
			
		||||
  logic [$clog2(`NF+2)-1:0] XZeroCnt, YZeroCnt;
 | 
			
		||||
  logic [`NE+1:0] Qe;
 | 
			
		||||
  logic Signed;
 | 
			
		||||
 | 
			
		||||
  // ***can probably merge X LZC with conversion
 | 
			
		||||
  // cout the number of leading zeros
 | 
			
		||||
@ -64,6 +65,8 @@ module fdivsqrtpreproc (
 | 
			
		||||
  lzc #(`NF+1) lzcX (Xm, XZeroCnt);
 | 
			
		||||
  lzc #(`NF+1) lzcY (Ym, YZeroCnt);
 | 
			
		||||
 | 
			
		||||
  assign Signed = Funct3E[0];
 | 
			
		||||
 | 
			
		||||
  assign PreprocX = Xm[`NF-1:0]<<XZeroCnt;
 | 
			
		||||
  assign PreprocY = Ym[`NF-1:0]<<YZeroCnt;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user