Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIs custom intructions (CI) supported ? how ?
Good Morning everybody http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif I tried working with custom instructions under the Nios IDE .. but how to use them under...
Altera_Forum
Honored Contributor
20 years agoTarek,
I just added the bitswap custom instruction to a nios II system. Then I opened the IDE and compiled a hello_world program targeted to this system in order to generate the system.h file. I copied the system.h file over to the linux environment where I do my uClinux software development, and wrote a little C program that uses the bitswap CI (just like the program in the CI user guide, but with additional printf statements to show the value before and after the bitswap). When I compiled I used the elf2flt flag, like hippo shows in his hello world document on the wiki, rebuilt the kernel and zImage, and it works perfectly. -jason