Forum Discussion
Altera_Forum
Honored Contributor
15 years agoFull On-Chip Memory
Hi, I'd like to know how to determine if the memory space of an on-chip memory is full. In my nios II system, I generated an on-chip M4K memory. It's size is 4096 bytes with a 32 bits data...
Altera_Forum
Honored Contributor
15 years agoThe IOWR_*DIRECT macros always do read/write access aligned with their word length. IORD_32_DIRECT will therefore ignore the low 2 bits of the offset to align it to 32-bit words. IORD_32DIRECT(mem1,0x00) through IORD_32DIRECT(mem1,0x03) will all read the same address, the first one in mem1.