Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIs it possible to select multiple memory regions for global variables?
Is it possible to select a memory region for specific global (RW or RO) variables? This would be different from the usual region for the RW/RO data. Effectively I need the loader to copy from the...
Altera_Forum
Honored Contributor
13 years agoI had a problem because I have 12k of lookup table that needed to go into a specific memory block (tightly coupled to the 2nd cpu) but the code area is only 8k. I didn't want to 'waste' internal memory just for the boot code.
However, since I was only using the IDE for some experiments (testing custom instructions) I didn't look too hard. I'd discovered the linking mess earlier and used my own linker script. You could just force the initialisation data into the code segment, and copy it yourself. Or look at what generates alt_main() - I think that is where the copies get done - and get the extra copies added there.