Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI want this variable to represent a raw frame which the algorithm will access frequently. So allocating this frame in the onchip RAM will increase the processing speed.
Here you the linker script: --- Quote Start --- MEMORY { reset : ORIGIN = 0x04120000, LENGTH = 32 epcs_controller : ORIGIN = 0x04141800, LENGTH = 2048 onchip_ram_100Kbytes : ORIGIN = 0x04120020, LENGTH = 99968 ssram : ORIGIN = 0x04000000, LENGTH = 1048576 ddr2_sdram : ORIGIN = 0x00000000, LENGTH = 67108864 } /* Define symbols for each memory base-address */ __alt_mem_epcs_controller = 0x04141800 ; __alt_mem_onchip_ram_100Kbytes = 0x04120000 ; __alt_mem_ssram = 0x04000000 ; __alt_mem_ddr2_sdram = 0x00000000 ; --- Quote End --- I displayed the the variable address and it is correct: --- Quote Start --- Address of rawVideo is 0x041201c8 --- Quote End --- but the read operation cannot be done. The question is must I define the corresponding section (i.e. .onchip_ram_100Kbytes.rwdata), and if so, how can that be done? It seems that I have to modify the linker memory regions using the BSP Build Tools? If there is another way to do so, I will be appreciated if you mention it because I have a deadline to finish my work and I am afraid that the BSP Build Tools software will take much time. Thanks a lot.http://www.qtl.co.il/img/copy.png http://www.qtl.co.il/img/copy.png