return to IDLE state when div completed
Signed-off-by: liangkangnan <liangkangnan@163.com>pull/1/head
parent
3b1807c467
commit
97c7cee0ad
|
@ -118,6 +118,7 @@ module div (
|
||||||
if (start_i == `DivStart) begin
|
if (start_i == `DivStart) begin
|
||||||
ready_o <= `DivResultReady;
|
ready_o <= `DivResultReady;
|
||||||
result_o <= {div_remain, div_result};
|
result_o <= {div_remain, div_result};
|
||||||
|
state <= STATE_IDLE;
|
||||||
end else begin
|
end else begin
|
||||||
state <= STATE_IDLE;
|
state <= STATE_IDLE;
|
||||||
ready_o <= `DivResultNotReady;
|
ready_o <= `DivResultNotReady;
|
||||||
|
|
Loading…
Reference in New Issue