Forum Discussion
Altera_Forum
Honored Contributor
13 years agoRegarding Qbar, you need to put it outside as it is, since otherwise the compiler creates a second register to invert Q into Qbar.
You can replace Qtemp with Q directly inside process and get rid of "Q <= Qtemp" which is outside process. In your case it is just wiring of Q to Qtemp but it will be rejected by compiler because you are not allowed to read output Q back. So Qtemp works as convenient intermediary.