Altera_Forum
Honored Contributor
21 years agoNIOS I custom instructions
In NIOS I, when using custom instructions with a prefix value the documentation says for the C/C++ code that it takes an 11bit immediate value. I've never heard of immediate values in terms of C/C++ code.
Before I start can someone tell me if it's possible for me to pass a variable into that function as the prefix values (as long as it's 11 bits or under). In short I'm wondering if immediate means the same thing in this case as it does in assembly (since in assembly you can make the K reg whatever you want and call the function I'm assuming). Cheers