Forum Discussion
Altera_Forum
Honored Contributor
15 years agoDMA problem
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.
4 Replies
- Altera_Forum
Honored Contributor
Sorry, I am new in this. I use Quartus II and Nios2IDE to compile. I guess Quartus is used to compile hardware, right?
- Altera_Forum
Honored Contributor
if you use the IDE/SBT, it is displayed in the console at the end of the compile process.
- Altera_Forum
Honored Contributor
Yes, I already compiled. How to check how much memory is used by the code and data?
- Altera_Forum
Honored Contributor
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.