URL
https://opencores.org/ocsvn/ft816float/ft816float/trunk
Subversion Repositories ft816float
Compare Revisions
- This comparison shows the changes necessary to convert path
/ft816float/trunk
- from Rev 85 to Rev 86
- ↔ Reverse comparison
Rev 85 → Rev 86
/rtl/verilog2/dfdiv.sv
82,12 → 82,12
endgenerate |
|
reg nz; |
reg [N-1:0] zc; |
reg [N*2-1:0] zc; |
genvar g; |
generate begin : glzcnt |
for (g = N-1; g >= 0; g = g - 1) |
for (g = N*2-1; g >= 0; g = g - 1) |
always_comb |
zc[g] = qi[g*4+3+N*4:g*4+N*4]==0; |
zc[g] = qi[g*4+3:g*4]==0; |
end |
endgenerate |
|
96,7 → 96,7
begin |
nz = 1'b0; |
lzcnt = 'd0; |
for (n = N-1; n >= 0; n = n - 1) |
for (n = N*2-1; n >= 0; n = n - 1) |
begin |
nz = nz | ~zc[n]; |
if (!nz) |
137,7 → 137,7
end |
else |
begin |
ri <= dif;//N[0] ? dif : dif[FPWID+4-1:4]; |
ri <= dif; |
cnt <= cnt + 1'd1; |
end |
end |