Forum Discussion
Altera_Forum
Honored Contributor
18 years agoDE2 board VGA Dispaly
Hello All,
I am trying to use the board's SRAM to store an image and dispaly it on the screen. I designed a project using QuartusII and was able to manage the VGA dispaly timing. I used a reference design from John Loomis Webpage. http://www.johnloomis.org/digitallab/vgalab/vgalab3/vgalab3.html which is very helpful and nice. However, I am having a problem in dowloading the raw image file to the SRAM. My question is: How can I get a typical 640 X 480 bitmap image to be stored in the SRAM? I tried to use Terasic ImgConv, but it doesn't work :( I appricate your help. Thanks42 Replies
- Altera_Forum
Honored Contributor
Hi fadd
Right now I'm going out for vacations, contact me again in June. Anyway I have not an english version for that code (sorry that was a mistake from me). But later, if I have some free time, I will translate it. To get the camera image through VGA output, I recomend you to test the DE2_TV code (provided with the DE2 board), maybe that is exactly what you want to do. Cheers. Alberto. - Altera_Forum
Honored Contributor
hy Monish!
I started to develop an image processing desing using DE2. now i want to design a SRAM controller and I have a little problem. I don't know exactly if a SRAM location stores 2 consecutive pixels or only one. so please give me an answer. I suppose it's a simple problem for you. - Altera_Forum
Honored Contributor
hi,BTXSistemas.I tried your code about 320x240 24 bit RGB image.
However,it't didn't work My topic is:i want to display 256x256 x 24bit RGB, i use DE2 control panel to send directly my data of image to Sram DE2 board.However, i can't display the image from Sram to Vga...i need your help ..May be you can resend your another code or explain more carefully for me the way to solve that problem thanks alot --- Quote Start --- Hi. Here´s some code to try the 320x240 image. Let me know if it was usefull. --- Quote End --- - Altera_Forum
Honored Contributor
Hi, the code I posted should work fine, please let me know where is your problem, or what is your exactly problem to show the image.
Cheers. Alberto. - Altera_Forum
Honored Contributor
Hello, please help me..!! Now Im doing a proyect where i have to save a image in sdram , it s the first thing that i have to do..!! can you help how can i do it..!! i can use anyway to sa ve the image in sdram and after read fron nios ii with de2 altera.. help me
- Altera_Forum
Honored Contributor
Dear.
Download the sample code, modify it, and voila !! :) I can't do your homework sorry.. --- Quote Start --- Hello, please help me..!! Now Im doing a proyect where i have to save a image in sdram , it s the first thing that i have to do..!! can you help how can i do it..!! i can use anyway to sa ve the image in sdram and after read fron nios ii with de2 altera.. help me --- Quote End --- - Altera_Forum
Honored Contributor
Hi BTXSistemas,
Thanks for sharing your code, it was quite useful to me. I am sending images from memory to compress them via JPEG200 standard (using ADV212 IC), but as you said, SRAM is too small to hold images greather than 240x320 pixels. Can you tell about your experience using SDRAM? Regards, - Altera_Forum
Honored Contributor
--- Quote Start --- Hi BTXSistemas, Thanks for sharing your code, it was quite useful to me. I am sending images from memory to compress them via JPEG200 standard (using ADV212 IC), but as you said, SRAM is too small to hold images greather than 240x320 pixels. Can you tell about your experience using SDRAM? Regards, --- Quote End --- Just use a SDRAM core... to use the DE2 SDRAM instead SRAM...it's not so difficult. I only used them inside NIOS, but as video memory, SRAM is the best, don't forget "read speed" :) - Altera_Forum
Honored Contributor
--- Quote Start --- Hi. Here´s some code to try the 320x240 image. Let me know if it was usefull. --- Quote End --- Hello, i had been reading about this subject, so my question is: does this code works on De0 Nano SoC? I'm working on a school project and i hadn't found any helping information about this FPGA (De0 Nano Soc) and trdb d5m - Altera_Forum
Honored Contributor
Hey dekiks12,
If you want to interface to the d5M camera module, there is examples in the rocketboard.org If you are after interfacing to vga, the de0-soc board does not have a vga output, so presumably you are interested in some other clocked video output. I have connected my de1-soc board to the MT2 board and created a video of how to do it - it builds upon the Altera tutorials [video]https://youtu.be/7sNJ5Tf1gAE[/video] I hope that helps.