Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

de2 gray image vga output

I've displayed a gray tiger in a lcd when I performed the lab of DE2 control panel, the lab includes a software ImgConv.exe that can convert a bitmap image into gray.dat and rgb.dat etc.

Now I have 256*256 gray data like image[256][256]={133,135,134...;156,156,...}in sdram,but how can I let these data output to a lcd using vga controller ip core?

I'm afraid I need to convert these gray data to rgb data by using a color map, which is adapt to the ADV7123 inputs?

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    can any one plzzz help about storing data in sdram...through verlog coding ??? as given in above post [256][256]={133,.....

    whats the complete procedure ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In verilog, you'll either need to write your own SDRAM controller, or design a component with an Avalon Memory Mapped Master interface and connect it to the SDRAM through SOPC builder.

    It all depends on what else needs to access the SDRAM.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thankyou for ur reply... we have already included our sdram part through sopc builder... after all studying and searching we came out with different ways to store pixels in sdram and that were using a software/device that automatically perform this or to write a verilog code ... and through sopc builder but couldnt find any relevant help to do so... u mentioned this in ur reply "design a component with an Avalon Memory Mapped Master interface" could you please help me to start this or could refer any material that could help us doing it cause we havent got any relvant material till now..

    regards,

    anum
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hii

    i was a little busy thats why couldnt post earlier... have read the files you send... the descripton in it was very generalized...i understood the instructions they have explained and the transfer procedure... but just wanted to know that i have converted an image into raw format and how can i send those piixels (11 ,00 ,23..... ) using sopc because as far as i have used it havent used any instructions like read or read_N in it... just added components ... so can u help me by explaining the steps to do it??? PLZ