Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI forgot to mention that using a case statement does work... I just think that that isn't an elegant solution especially when there are a lot of states.
always_ff @(posedge clk) begin
case (dumb_state)
S_WAIT: status_reg <= 2'b01;
S_DOSTUFF: status_reg <= 2'b10;
endcase
end