Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNIOS II CustomComponent Programming Problem
Hi all, I have created a LED register in vhdl and created qsys component out of that. Connected it to the nios processor as shown in below images. Created NIOS project and when I am trying to r...
Altera_Forum
Honored Contributor
11 years agoI guess this happens because Nios uses byte addressing, while C code unsigned int* forces 32bit addressing. Try to cast with unsigned char* .
Anyway the best way to access qsys component registers is through IOWR/IORD macros, which automatically take care of matching the device bus size.