mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed fgen4
This commit is contained in:
parent
11fb39b373
commit
c3c764f0ba
@ -102,8 +102,8 @@
|
|||||||
`define CORRSHIFTSZ ((`DIVRESLEN+`NF) > (3*`NF+8) ? (`DIVRESLEN+`NF) : (3*`NF+6))
|
`define CORRSHIFTSZ ((`DIVRESLEN+`NF) > (3*`NF+8) ? (`DIVRESLEN+`NF) : (3*`NF+6))
|
||||||
|
|
||||||
// division constants
|
// division constants
|
||||||
`define RADIX 32'h2
|
`define RADIX 32'h4
|
||||||
`define DIVCOPIES 32'h3
|
`define DIVCOPIES 32'h1
|
||||||
`define DIVLEN ((`NF < `XLEN) ? (`XLEN) : (`NF + 3))
|
`define DIVLEN ((`NF < `XLEN) ? (`XLEN) : (`NF + 3))
|
||||||
// `define DIVN (`NF < `XLEN ? `XLEN : `NF+1) // length of input
|
// `define DIVN (`NF < `XLEN ? `XLEN : `NF+1) // length of input
|
||||||
`define DIVN (`NF < `XLEN ? `XLEN : `NF+3) // length of input
|
`define DIVN (`NF < `XLEN ? `XLEN : `NF+3) // length of input
|
||||||
|
@ -49,7 +49,7 @@ module fdivsqrtfgen4 (
|
|||||||
always_comb
|
always_comb
|
||||||
if (u[3]) F = F2;
|
if (u[3]) F = F2;
|
||||||
else if (u[2]) F = F1;
|
else if (u[2]) F = F1;
|
||||||
else if (U[1]) F = FN1;
|
else if (u[1]) F = FN1;
|
||||||
else if (u[0]) F = FN2;
|
else if (u[0]) F = FN2;
|
||||||
else F = F0;
|
else F = F0;
|
||||||
endmodule
|
endmodule
|
Loading…
Reference in New Issue
Block a user