Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Question about FSM registered output logic

$
0
0
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:

绘图9.jpg

but instead waveform in modelsim was like:

绘图10.jpg

I suspect the reason has something to do with using IF statement, but why? Any suggestion will be appreciated.
Attached Images

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>