URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [rtl/] [core/] [div.v] - Diff between revs 69 and 81
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 69 |
Rev 81 |
Line 106... |
Line 106... |
if (r_divisor[(2*BW-2)])
|
if (r_divisor[(2*BW-2)])
|
r_divisor[(2*BW-2):(BW-1)] <= -r_divisor[(2*BW-2):(BW-1)];
|
r_divisor[(2*BW-2):(BW-1)] <= -r_divisor[(2*BW-2):(BW-1)];
|
pre_sign <= 1'b0;
|
pre_sign <= 1'b0;
|
end else if (o_busy)
|
end else if (o_busy)
|
begin
|
begin
|
r_bit <= r_bit - 1;
|
r_bit <= r_bit + {(LGBW+1){1'b1}}; // r_bit = r_bit - 1;
|
r_divisor <= { 1'b0, r_divisor[(2*BW-2):1] };
|
r_divisor <= { 1'b0, r_divisor[(2*BW-2):1] };
|
if (|r_divisor[(2*BW-2):(BW)])
|
if (|r_divisor[(2*BW-2):(BW)])
|
begin
|
begin
|
end else if (diff[BW])
|
end else if (diff[BW])
|
begin
|
begin
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.