Fixed fdivsqrt to avoid going from done to busy without going through idle first

This commit is contained in:
David Harris 2023-04-12 02:48:40 -07:00
parent bedb3f95eb
commit 463a1e2b33

View File

@ -110,7 +110,7 @@ module fdivsqrtfsm(
always_ff @(posedge clk) begin
if (reset | FlushE) begin
state <= #1 IDLE;
end else if (IFDivStartE) begin
end else if ((state == IDLE) & IFDivStartE) begin
step <= cycles;
if (SpecialCaseE) state <= #1 DONE;
else state <= #1 BUSY;