Altera_Forum
Honored Contributor
14 years agoMemory Allocation With QSys
Hi Guys,
I'm stuck at the moment with being able to find and use enough memory. I need advice how to rearrange the memory so i can get a video frame buffer (like a DCFIFO or 2port RAM). I'll ask a quick question for thos skimming and later if you read on I'll explain what i thought of and why i'm stuck. short question: if a nios core and the qsys controls my sdram, how can i take some of this ram to use as a buffer for memory? ___________________________________________________________ details hardware: A terasic DE2-115. Has 128mb RAM and 2MB of SDRAM and 8Mb flash. memory requirements nios ethernet program: Apparently 630Kb video frame buffer: For 800x600 24bit RGB pixel data. This buffer is to be between the pixel feed of 50MHz and the VGA out of 40MHz. SO it would need to be atleast 1/5th of a frame big yeah? problems: nios won't work unless it has the sdram: For some ****en reason the Nios won't run on the SRAM and will only run when it has the SDRAM. This means the program of 1mb is consumming all my SDRAM. As brought up by someone else in http://alteraforums.com/forum/showthread.php?t=31636&highlight=using+sram+to+run+nios+program options: move nios to sram: Won't work as stated above. elf fails to download. make on-chip ram: The FPGA doesn't have enough memory blocks to make my current program and any shred of a buffer. make video buffer in the sram: Problem is SRAM has only 1 port, i can't think of a good way to control it like a dcfifo allowing simulataneous (or seamless) reading and writing. flash for nios: Haven't tried but i'm going to assume the same problem as using the SRAM. Too slow for my application i would think? (gigabit ethernet) Time is ticking and i have 5 days to finish this project and this is one of the last hurdles. Please Help!! Thanks in advance