mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fixed normshift calculations
This commit is contained in:
parent
954051da13
commit
6761101645
@ -127,10 +127,10 @@ module fdivsqrtpostproc(
|
|||||||
|
|
||||||
always_comb
|
always_comb
|
||||||
if (RemOpM) begin
|
if (RemOpM) begin
|
||||||
NormShiftM = (m + (`DIVBLEN)'(`DIVa));
|
NormShiftM = (m + (`DIVBLEN+1)'(`DIVa));
|
||||||
PreResultM = IntRemM;
|
PreResultM = IntRemM;
|
||||||
end else begin
|
end else begin
|
||||||
NormShiftM = ((`DIVBLEN)'(`DIVb) - (n << `LOGR));
|
NormShiftM = ((`DIVBLEN+1)'(`DIVb) - (n << `LOGR));
|
||||||
PreResultM = {3'b000, IntQuotM};
|
PreResultM = {3'b000, IntQuotM};
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user