mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Changed DIVN comparison from NF to NF+2. Shouldn't make a difference on our word sizes of XLEN=32/64, NF = 10/23/52) but is more proper in the general case.
This commit is contained in:
parent
0a7a159d69
commit
1b385c4336
@ -125,7 +125,7 @@
|
|||||||
|
|
||||||
// division constants
|
// division constants
|
||||||
|
|
||||||
`define DIVN (((`NF<`XLEN) & `IDIV_ON_FPU) ? `XLEN : `NF+2) // standard length of input
|
`define DIVN ((((`NF+2)<`XLEN) & `IDIV_ON_FPU) ? `XLEN : `NF+2) // standard length of input
|
||||||
`define LOGR ($clog2(`RADIX)) // r = log(R)
|
`define LOGR ($clog2(`RADIX)) // r = log(R)
|
||||||
`define RK (`LOGR*`DIVCOPIES) // r*k used for intdiv preproc
|
`define RK (`LOGR*`DIVCOPIES) // r*k used for intdiv preproc
|
||||||
`define LOGRK ($clog2(`RK)) // log2(r*k)
|
`define LOGRK ($clog2(`RK)) // log2(r*k)
|
||||||
|
Loading…
Reference in New Issue
Block a user