- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello. what is the ideal size for on chip memory if my code is written using c programming which includes dma, performance counter and etc... currently, i am using default size which is 4096 bytes only... i am using altera de2 board. pls assist. thank you!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It depends on your code and optimization level. If you use the optimise for size and the small C library you can use a small on-chip memory but 4k is really low... I think that 16k would be a minimum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I used 20Kb but still cant work. i tried to use sdram but i need to use sdram to store data and i am afraid it will affect the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
as long as you use different areas there isn't any problem using the sdram for both code and data. You'll be very limited with 20k anyway.
Did you use the sive optimization, small C library and reduced drivers?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
currently i set it to small c library only. so, setting it to reduced drivers will occupy less space? and where to find sive optimization? is support C++ will use more space? thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yes it will. Removing the C++ could also reduce it but I'm not sure. The optimizations will have the bigger impact on code size. It is in the project's builder settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for the reply again. I cant find project's builder settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote about that last week... here (http://www.alteraforum.com/forum/showthread.php?p=113129#post113129)

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