---
+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 2
    Points: 268, Level: 3

    Join Date
    Jul 2011
    Posts
    2
    Helped
    0 / 0
    Points
    268
    Level
    3

    How to read and write image on FPGA using VHDL

    I like to read image from harddisk and process on FPGA and again processed image to be stored on Harddisk. So anyone can provide module/code to read and write for (vhdl code). I am using DE2 board.

    •   Alt6th July 2011, 08:16

      advertising

        
       

  2. #2
    Junior Member level 3
    Points: 1,141, Level: 7

    Join Date
    Jun 2007
    Posts
    30
    Helped
    7 / 7
    Points
    1,141
    Level
    7

    Re: How to read and write image on FPGA using VHDL

    Hi, Since the DE2 board has RS232 and Ethernet, you can use either of these to interface with the PC.
    Using RS232, from PC you can send / receive data with the help of hyperterm.
    For using Ethernet, i think you have to use Embedded OS if your board supports this.
    Now if you are looking for the FPGA to load the images from Hard disk directly, then you are introducing the OS concepts into the FPGA. I say this because to read a file, the FPGA should understand the filesystem and filesystem is a feature of the OS.
    So either you can proceed here to port Embedded OS to FPGA or if you want to process the images and can take care of sending it to FPGA,
    use a C program in your PC to convert the image to streaming data and send it through RS232.


    1 members found this post helpful.

    •   Alt6th July 2011, 11:42

      advertising

        
       

  3. #3
    Newbie level 2
    Points: 268, Level: 3

    Join Date
    Jul 2011
    Posts
    2
    Helped
    0 / 0
    Points
    268
    Level
    3

    Re: How to read and write image on FPGA using VHDL

    Thanks for reply,
    Now can you tell me how can i transfer image from PC to FPGA using RS232. Do i have to use any driver for that or i have to write the code?
    Please elaborate.



    Quote Originally Posted by Iamventure View Post
    Hi, Since the DE2 board has RS232 and Ethernet, you can use either of these to interface with the PC.
    Using RS232, from PC you can send / receive data with the help of hyperterm.
    For using Ethernet, i think you have to use Embedded OS if your board supports this.
    Now if you are looking for the FPGA to load the images from Hard disk directly, then you are introducing the OS concepts into the FPGA. I say this because to read a file, the FPGA should understand the filesystem and filesystem is a feature of the OS.
    So either you can proceed here to port Embedded OS to FPGA or if you want to process the images and can take care of sending it to FPGA,
    use a C program in your PC to convert the image to streaming data and send it through RS232.



    •   Alt15th July 2011, 10:49

      advertising

        
       

  4. #4
    Advanced Member level 2
    Points: 4,459, Level: 15

    Join Date
    Feb 2004
    Location
    USA
    Posts
    558
    Helped
    78 / 78
    Points
    4,459
    Level
    15

    Re: How to read and write image on FPGA using VHDL

    Please look at opencores.org. They have Rs232 as well as ethernet mac core.



+ Post New Thread
Please login