Altera_Forum
Honored Contributor
21 years agoonchip memory granularity
Is there something in Quartus/SOPC/NIOSII that forces M4K allocation for on-chip memory to be a power of 2? If so is there a workaround or is this something basic like the hardware always allocates 2^addresswidth bytes and not the size requested?.
I was struggling to fit some logic that needs M4Ks, and the fitter reported none left. I had 4kbytes of onchip ROM for NIOSII, it used 8 M4Ks - ok. So I reduced the memory to 3kbytes, but the fitter still failed. It reports the correct (smaller) number of bits used, but still allocated 8 M4Ks. It only dropped the M4K count when I reduced the onchip memory size to 2kbytes (4 M4Ks - ok). The same seems true for the 16k onchip rom, which still uses 32 M4Ks at 14kbytes. I guess if I drop to an unusable 8kbytes then it will call up 16M4Ks.