- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I already compiled. How to check how much memory is used by the code and data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if you use the IDE/SBT, it is displayed in the console at the end of the compile process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, I am new in this. I use Quartus II and Nios2IDE to compile. I guess Quartus is used to compile hardware, right?

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page