mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Division constant cleanup
This commit is contained in:
		
							parent
							
								
									080e8884db
								
							
						
					
					
						commit
						ddb65ff85f
					
				@ -132,7 +132,7 @@
 | 
			
		||||
// division constants
 | 
			
		||||
 | 
			
		||||
`define DIVN        (((`NF<`XLEN) & `IDIV_ON_FPU) ? `XLEN : `NF+2) // standard length of input
 | 
			
		||||
`define LOGR        (`RADIX==2 ? 32'h1 : 32'h2) // r = log(R)
 | 
			
		||||
`define LOGR        ($clog2(`RADIX))            // r = log(R)
 | 
			
		||||
`define RK          (`LOGR*`DIVCOPIES)          // r*k used for intdiv preproc
 | 
			
		||||
`define LOGRK       ($clog2(`RK))               // log2(r*k)
 | 
			
		||||
`define FPDUR       ((`DIVN+1+(`LOGR*`DIVCOPIES))/(`LOGR*`DIVCOPIES)+(`RADIX/4))
 | 
			
		||||
 | 
			
		||||
@ -23,8 +23,8 @@
 | 
			
		||||
///////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
// division constants
 | 
			
		||||
`define RADIX 32'h2
 | 
			
		||||
`define DIVCOPIES 32'h1
 | 
			
		||||
`define RADIX 32'h4
 | 
			
		||||
`define DIVCOPIES 32'h4
 | 
			
		||||
 | 
			
		||||
// Memory synthesis configuration
 | 
			
		||||
`define USE_SRAM 0
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user