forked from Github_Repos/cvw
Fixed early termination for square root
This commit is contained in:
parent
2de66e9eef
commit
c326a274ac
@ -116,8 +116,7 @@ module fdivsqrtfsm(
|
||||
if (SpecialCaseE) state <= #1 DONE;
|
||||
else state <= #1 BUSY;
|
||||
end else if (state == BUSY) begin
|
||||
// if (step == 1 | WZeroE) state <= #1 DONE; // finished steps or terminate early on zero residual
|
||||
if (step == 1) state <= #1 DONE; // finished steps or terminate early on zero residual
|
||||
if (step == 1 | WZeroE) state <= #1 DONE; // finished steps or terminate early on zero residual
|
||||
step <= step - 1;
|
||||
end else if (state == DONE) begin
|
||||
if (StallM) state <= #1 DONE;
|
||||
|
Loading…
Reference in New Issue
Block a user