Forum Discussion
Altera_Forum
Honored Contributor
7 years agoWhy do you need a custom instruction for this? And the code you post is not complete. It's not clear what n and n2_done are.
If you are trying to implement a state machine, I suggest following the state machine template.