Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

DMA 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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