Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers

DMA problem

Altera_Forum
Honored Contributor II
1,170 Views

hello, i am using on chip memory on altera de2 board to store my program code written in C and C++. May i know what is the ideal size for the on chip memory. currently, i set it to 1mb but i am afraid it might be too small or too large. thanks.

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
454 Views

Did you compile your hardware design? I doubt that 1mb would fit in the FPGA used on on the DE2 board. 

When you compile the software, it will tell you how much memory is used by the code and data. Then you need a bit more for the stack and heap memories, but this depends on your code.
0 Kudos
Altera_Forum
Honored Contributor II
454 Views

Yes, I already compiled. How to check how much memory is used by the code and data?

0 Kudos
Altera_Forum
Honored Contributor II
454 Views

if you use the IDE/SBT, it is displayed in the console at the end of the compile process.

0 Kudos
Altera_Forum
Honored Contributor II
454 Views

Sorry, I am new in this. I use Quartus II and Nios2IDE to compile. I guess Quartus is used to compile hardware, right?

0 Kudos
Reply