Forum Discussion
Altera_Forum
Honored Contributor
19 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