return to IDLE state when div completed

Signed-off-by: liangkangnan <liangkangnan@163.com>
pull/1/head
liangkangnan 2020-02-22 20:38:16 +08:00
parent 3b1807c467
commit 97c7cee0ad
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ module div (
if (start_i == `DivStart) begin
ready_o <= `DivResultReady;
result_o <= {div_remain, div_result};
state <= STATE_IDLE;
end else begin
state <= STATE_IDLE;
ready_o <= `DivResultNotReady;