Altera_Forum
Honored Contributor
20 years agoQuestion regarding NIOS II custom registers
I read the Nios2 custom instruction reference book online, and found that the only way I could read or write data from custom registers is to change the assembly code (change rA or rB to cA and cB).
However, if I were to load the C program directly to the Nios board, the IDE will never know that I use custom registers. (because when it compiles, IDE automatically assign all the variables to Nios registers) so my question is how do I let the IDE compiler know that some of my custom instructions use custom registers instead of Nios registers? any suggestions will be very appreciated http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif