Division constant cleanup

This commit is contained in:
David Harris 2023-01-10 11:14:59 -08:00
parent 4a34007b49
commit 446b5fa83f
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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