aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-11-19 13:05:02 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2019-11-19 13:05:02 +0300
commit189dfd62e2385aa2f36c6283628b8d9285c49647 (patch)
tree0c1c4e314b224fff447a384c959917509d5e0148
parent863cac90f320d6b7587177bc2df798c611fe510b (diff)
Removed the latch accidentally created while pipelining the uOP engine module.
The FSM previously had four states encoded using two bits, so the next state logic didn't have a default case, since all the possible states were used. Addition of the fifth state required one more state bit, so the FSM now has five states out eight possible and a default case is thus necessary.
-rw-r--r--rtl/modexpng_uop_engine.v1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtl/modexpng_uop_engine.v b/rtl/modexpng_uop_engine.v
index 1119fbd..2046db7 100644
--- a/rtl/modexpng_uop_engine.v
+++ b/rtl/modexpng_uop_engine.v
@@ -678,6 +678,7 @@ module modexpng_uop_engine
UOP_FSM_STATE_DECODE_1: uop_fsm_state_next = UOP_FSM_STATE_DECODE_2 ;
UOP_FSM_STATE_DECODE_2: uop_fsm_state_next = uop_opcode_is_stop ? UOP_FSM_STATE_IDLE : UOP_FSM_STATE_BUSY;
UOP_FSM_STATE_BUSY: uop_fsm_state_next = uop_exit_from_busy ? UOP_FSM_STATE_FETCH : UOP_FSM_STATE_BUSY;
+ default: uop_fsm_state_next = UOP_FSM_STATE_IDLE ;
endcase
//
end