Forum Discussion

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

[DE2-Help] Putting images in SRAM or FLASH, then displaying them on VGA Output

Hello everyone,

I am having trouble understanding how to first of all put images into memory (a.k.a. how do I upload them from my computer) and then being able to access them using Verilog in order to display them using the vga controller. My vga controller works and I am able to draw things manually but it is hard to create complex designs this way.

AKA.

Image 1-4 are in memory

If(state == 00)

draw image 1 at some x & y location

else if(state == 01)

draw image 2 at some x & y location

and so on..

If anyone could help me it would be most appreciated.

Thanks,

Pachu

Edit: - Also.. I do not want to implement this using NIOS unless that is the only way.

15 Replies

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

    The example code to send the image by serial port, is in the code of this thread, you should write the PC code by yourself.

    Cheers.

    Alberto.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can use the HDL coder by Mathworks to transform your matlab code to VHDL and then store it in the DE2 board.

    www[dot]mathworks[dot]com/products/hdl-coder/
  • The thread has been closed. Kindly post a new forum thread to get support from our experts.

    Thanks