From 33af1f97f7a87eb258b5e1a6f9e24853c559d776 Mon Sep 17 00:00:00 2001 From: David Harris Date: Tue, 20 Sep 2022 08:31:57 -0700 Subject: [PATCH] Define LOGNORMSHIFTSZ --- pipelined/config/shared/wally-shared.vh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipelined/config/shared/wally-shared.vh b/pipelined/config/shared/wally-shared.vh index 214c747d..14924fcc 100644 --- a/pipelined/config/shared/wally-shared.vh +++ b/pipelined/config/shared/wally-shared.vh @@ -98,11 +98,12 @@ `define LLEN ((`FLEN<`XLEN) ? (`XLEN) : (`FLEN)) `define LOGCVTLEN $unsigned($clog2(`CVTLEN+1)) `define NORMSHIFTSZ ((`QLEN+`NF+1) > (3*`NF+8) ? (`QLEN+`NF+1) : (3*`NF+8)) +`define LOGNORMSHIFTSZ ($clog2(`NORMSHIFTSZ)) `define CORRSHIFTSZ ((`DIVRESLEN+`NF) > (3*`NF+8) ? (`DIVRESLEN+`NF) : (3*`NF+6)) // division constants `define RADIX 32'h2 -`define DIVCOPIES 32'h5 +`define DIVCOPIES 32'h3 `define DIVLEN ((`NF < `XLEN) ? (`XLEN) : (`NF + 3)) // `define DIVN (`NF < `XLEN ? `XLEN : `NF+1) // length of input `define DIVN (`NF < `XLEN ? `XLEN : `NF+3) // length of input