Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21615 Discussions

From FPGA to Monitor

Altera_Forum
Honored Contributor II
2,014 Views

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! =)
0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
1,294 Views

I only need to display the image file to the screen ...no arithmetic or manipulation onto the file.

0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

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ôme
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

If 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!
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

 

--- Quote Start ---  

If 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! 

--- Quote End ---  

 

 

 

Thanks for the reply. Im not too sure.. can you give me a detail description on how can it be done?
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

 

--- Quote Start ---  

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ôme 

--- Quote End ---  

 

 

 

Hi thanks for the reply.. Im using Cyclone II EP2C35F672C6 from the de2 development and education board. As for the picture. Im not very sure at the moment. Say if the onchip memory is sufficient, how do i do it?
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

 

--- Quote Start ---  

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. 

--- Quote End ---  

 

 

 

ok, so how do i store the image to the fpga and display it on the monitor? any sample code/tutorial that i can refer/follow?
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

I never work with it, but I think you can find tutorials and examples in the DE2 CD-ROM.

0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

 

--- Quote Start ---  

I never work with it, but I think you can find tutorials and examples in the DE2 CD-ROM. 

--- Quote End ---  

 

 

thanks! =D
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,294 Views

 

--- Quote Start ---  

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. 

--- Quote End ---  

 

 

 

thank u very much!
0 Kudos
Reply