Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Cyclone III RAM usage

Altera_Forum
Honored Contributor II
1,830 Views

Hi, 

 

i am using a Cyclone III EP3C40 FPGA with 126 M9K Blocks. In my Design there is a SOPC-System with 3 NIOS II CPUs. I assigned 28 / 24 / 48 kBytes of onchip-Memory to the three RAMs. The 24kByte-RAM uses 24 M9ks, the 48kByte RAM uses 48M9ks, but the 28k-Byte-RAM uses 32 M9Ks. Why? I tried to set the size to 26k-Byte, but there RAM also uses 32M9Ks then. Is there any setting or something about the resource usage? 

 

Thanks in advance 

 

Paddy
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
557 Views

The megawizard and SOPC builder aren't always able to optimize properly the use of memory blocks when using a size that isn't a power of 2. You could use two memory blocks, one of 24k and another of 4k, and assign them consecutive addresses, but you'll need to use a custom link script if you want to use them as a single memory.

0 Kudos
Altera_Forum
Honored Contributor II
557 Views

Look at the RAM summary report in the fitter. It will tell you how the individual memory blocks are configured so you can see how they are used to make up the composite memory.

0 Kudos
Altera_Forum
Honored Contributor II
557 Views

Hi, 

 

thanks for your reply. 

I will try to split the memory and edit the linker-script. 

 

Thanks, Paddy
0 Kudos
Reply