Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAddressing in hex file
Hello, I currently design a system with SOPC based on the Nios II processor. I checked the hex file generated by the Nios II IDE after compilation. At the beginning I have the following : ...
Altera_Forum
Honored Contributor
16 years agoit seems that you haven't realy understood the difference between 8 and 32 bit
your pictures are a bit wrong in 8 bit mode you will get correctly 0x00000000 0x35 0x00000001 0x56 0x00000002 0xF6 but in 32 bit mode there is no adr at 0x00000001 as the lowest 2 bits are always 0 in 32 bit you will have 0x00000000 0x3556.... but the next possible adr is 0x00000004 0x..... in 16 bit mode you will memory adr. 0x00000000 0x???? 0x00000002 0x???? 0x00000004 0x???? 0x00000006 0x???? it didn't look after bigendian stuff here