Re: how to read jpg file using VHDL
- From: raj <rajashree.IIT@xxxxxxxxx>
- Date: Thu, 16 Oct 2008 23:21:43 -0700 (PDT)
On Oct 15, 4:45 am, Brian Drummond <brian_drumm...@xxxxxxxxxxxxx>
wrote:
On Wed, 15 Oct 2008 01:43:49 -0700 (PDT), raj <rajashree....@xxxxxxxxx>
wrote:
i want VHDL code of reading an image....and view that image after
processing.......with explaination.....i know about TEXTIO
package.......but how to use that.....??
Since a JPG image is not a text file, forget about std.textio.
VHDL can be used for reading and writing binary files; a little
searching online will show examples to get you started.
Then you need to understand the file format of .jpg files, and write a
parser for that format. Again, there will be documentation available. If
you are lucky, you may not need to support all variations of the format;
e.g. if you only need to read a few images for demonstration.
If you are more comfortable programming in another language you may want
to test your understanding of the JPG format by writing a JPG image
decoder in that other language first, and using it as the basis for your
VHDL design.
Alternatively, there are much simpler file formats than .jpg. For
example, .bmp images would be much easier to read and write, if the
image processing is the important part of your project rather than the
JPEG decoding.
Also be aware that binary file I/O in VHDL is not guaranteed to be
portable between simulators. In Modelsim it just works as you would
expect (and you can easily read and write standard file formats).
However Xilinx ISE Simulator has its own file format. It can read files
it has written, but they are not in the same format as any other files.
To read a JPG file in this simulator you would need to convert it into
ISIM's file format (which has an eight byte header, and opposite
endian-ness to the host system). Good luck getting documentation on this
format from Xilinx (I've had a Webcase open for 5 weeks so far)
Other simulators may be different again.
- Brian
actually i want to implement my algorithms on virtex 5...so.....for
that..what to do.....what changes required in vhdl
programs.....because as i know...architecture of virtex 5 is little
bit different.....than others FPGA....
i have another problem.............i have to implement 8 point FFT on
virtex 5.......i have complete software part but problem coming in
implementation part on virtex 5....not getin how to assign proper pin
number to make UCF file...how to give inputs through hex editor........
.
- Follow-Ups:
- Re: how to read jpg file using VHDL
- From: Mike Treseler
- Re: how to read jpg file using VHDL
- From: Tricky
- Re: how to read jpg file using VHDL
- References:
- how to read jpg file using VHDL
- From: raj
- Re: how to read jpg file using VHDL
- From: Brian Drummond
- how to read jpg file using VHDL
- Prev by Date: Re: Use of std_logic '-' don't care.
- Next by Date: Re: VHDL-2008
- Previous by thread: Re: how to read jpg file using VHDL
- Next by thread: Re: how to read jpg file using VHDL
- Index(es):
Relevant Pages
|