stanford
Full Member level 2
If i put this statement (state_nxt = state at the very top of the always_comb, the default statement in 'case' is not required for it to not synthesize into a latch. Is this correct? Would you still put the default statement for simulation purposes and why?
Code:
always_comb begin
state_nxt = state;
case (state)
.....
...
// default: state_nxt = IDLE;
endcase
end