forked from Github_Repos/cvw
Fixed fdivsqrt to avoid going from done to busy without going through idle first
This commit is contained in:
parent
c5e3b5c68d
commit
28c02a7e6a
@ -110,7 +110,7 @@ module fdivsqrtfsm(
|
|||||||
always_ff @(posedge clk) begin
|
always_ff @(posedge clk) begin
|
||||||
if (reset | FlushE) begin
|
if (reset | FlushE) begin
|
||||||
state <= #1 IDLE;
|
state <= #1 IDLE;
|
||||||
end else if (IFDivStartE) begin
|
end else if ((state == IDLE) & IFDivStartE) begin
|
||||||
step <= cycles;
|
step <= cycles;
|
||||||
if (SpecialCaseE) state <= #1 DONE;
|
if (SpecialCaseE) state <= #1 DONE;
|
||||||
else state <= #1 BUSY;
|
else state <= #1 BUSY;
|
||||||
|
Loading…
Reference in New Issue
Block a user