Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to read and write image on FPGA using VHDL

Status
Not open for further replies.

mehul03ec

Newbie level 2
Joined
Jul 4, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
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.
 

Iamventure

Junior Member level 3
Joined
Jun 6, 2007
Messages
30
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,451
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.
 

mehul03ec

Newbie level 2
Joined
Jul 4, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
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.



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.
 

tariq786

Advanced Member level 2
Joined
Feb 24, 2004
Messages
562
Helped
67
Reputation
132
Reaction score
51
Trophy points
1,308
Location
USA
Activity points
3,042
Please look at opencores.org. They have Rs232 as well as ethernet mac core.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top