Altera_Forum
Honored Contributor
16 years agoFrom FPGA to Monitor
Hi,
Im wondering if it possible to store some pictures file in the FPGA and having them loaded to the monitor screen? If yes, how do I do that? thank you very much! =)Hi,
Im wondering if it possible to store some pictures file in the FPGA and having them loaded to the monitor screen? If yes, how do I do that? thank you very much! =)I only need to display the image file to the screen ...no arithmetic or manipulation onto the file.
Hello,
You can use the RAM memory block of the FPGA to store a picture, but there will be maybe a problem of size, because the onchip memory is not very large (depend on the FPGA you have). Which FPGA do you use ? What is the size of the picture to store ? JérômeIf you are using Altera FPGA the onchip-memory can be initialised by a hex file, you can configure that option in the SOPC-Builder settings of the module. If you generate yourself a compatible hex-file then you can have a picture in the FPGA right from the start. (works fine for 640x480 here, I scale it in the ouputchain afterwards)
Good luck!Your FPGA has only 473 kbit. To know if it is enough or not you have to know (or estimate) the size of your picture and the resolution (number of bits to code one pixel).
Else on your board there are also 8 MB SDRAM and 512 kB SRAM that you can use.I never work with it, but I think you can find tutorials and examples in the DE2 CD-ROM.
Same answer from me, try to look into some example code provided with the board and read the manual from Altera. If you still want to try to fit your Image into the onchip_memory, then I advise to start from SOPC. When you open any module added to a Nios-CPU, there for most modules is a link to the description available. (button in the right upper corner of the opened module) So you could read into that specific description.
Good luck.