Home > other >  Based on the FPGA VGA picture shows problem!!!!! Please help!!!!!!
Based on the FPGA VGA picture shows problem!!!!! Please help!!!!!!

Time:09-20

I want to use the FPGA realization of three images of VGA display, every once in a while showing a picture, the basic idea is as follows, the three 1024 * 768 images with Img2Lcd. Exe software into. Bin file, and then onto/on to a FLASH of the FPGA board, then the image data read to the DDR to storage, then use VGA display,
But in the show, the first picture can display properly and the third picture, only the second image, color completely wrong, ask the great spirit, to be the problem?
Is the problem that the FLASH storage? Or reading picture address problems in the DDR? Or VGA real problem? Please help!!!!!!
Pictures show as follows, the original image is green lotus, completely changed color results show?

CodePudding user response:

The original post and it is also best RGB confused or have a channel not input, try to put this figure in the first show to see?

CodePudding user response:

reference 1st floor xuweiwei1860 response:
the original post and it is also best RGB confused or have a channel not input, try to put this figure in the first show to see?


I transform to the order of the three picture, regardless of which on the picture in the second place, the color of the display will appear such problems, so doubt is the second picture to read the questions, but do not know the specific problem in the where? I read the pictures in the DDR, again in the DDR in turn read the address of the three images, the first picture address 0, the second image according to the 1024 * 768 * 2=1572864 address read, part of the code is as follows:
If (pic_store_done) begin
If (==1 'ddr_addr_set b1) begin
//c3_p0_cmd_byte_addr_r & lt; D0=30 ';//DDR address setting, the initial value of address 16
If (==2 'pic_num d0)
C3_p0_cmd_byte_addr_r & lt; H0=30 ';//the first image the starting location in the DDR
Else if (a==2 'pic_num d1)
C3_p0_cmd_byte_addr_r & lt;=30 'd1572864;//the second image starting location in the DDR
Else if (==2 'pic_num d2)
C3_p0_cmd_byte_addr_r & lt;=30 'd3145728;//the third image starting location in the DDR
Below is the picture as it is, the great god guidance!

CodePudding user response:

Should be against the channel data, the value of the green leaf should be g channel's biggest r b two channel almost to zero, the result of the display is the highest, in the r channel conversion data or have misplaced when brush entered the data, see the DDR data such as the second picture in front of a few lines of the first half of the line, that is, the green leaves is the location of the g data value is larger other channel data is small?

CodePudding user response:

You can instruct me how to display images, mif is generated after??

CodePudding user response:

The building Lord, I am doing you this test, please put the pictures into a bin file is through what onto/on to a FPGA board FLASH
  • Related