Altera_Forum
Honored Contributor
13 years agoQuestion about FSM registered output logic
Hello,
Suppose I've got the following code for registered output logic: ************************** always 'at'(posedge clk) begin if (state == some_state) begin output <= a; end end ************************** I thought I would expect something like the following: https://www.alteraforum.com/forum/attachment.php?attachmentid=6935 but instead waveform in modelsim was like: https://www.alteraforum.com/forum/attachment.php?attachmentid=6936 I suspect the reason has something to do with using IF statement, but why? Any suggestion will be appreciated.