Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for the heads-up, really appreciated!
If I understand it correctly, can I say that since NIOS access peripheral registers in memory map only every 4 bytes(32bits) I could only access location 9216 in my memory map with IOWR(VGA_BASE, 288, data); // offset = the"nth" 32bits in the map for 9216/32=288 but never could access location 9203 like IOWR(VGA_BASE, x , data); //since 9203 can never be divided by 32, it is not aligned. And therefore I have to use pointer to access those individual registers. Please correct me if I am wrong. Thank you! ps. I have attached a memory map I am refering to for easier reference