EmbDev.net

Forum: FPGA, VHDL & Verilog VHDL project


Du wurdest von Mikrocontroller.net auf diese Seite weitergeleitet. Zurück zu Mikrocontroller.net
von Paul (Guest)


Rate this post
useful
not useful
Our professor asked us to write a program in VHDL to read a bmp image 
and to
replace the red color in the image  with blue color .

Any ideas how to do it please ?

Thanks in advance

: Moved by Moderator
von Tobias B. (Company: www.elpra.de) (ttobsen)


Rate this post
useful
not useful
Get the specification of the Bitmap File format and start coding.

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Paul schrieb:
> Any ideas how to do it please ?
Only for simulation? Or must it be implemented in real hardware?

If the first, then check out that discussion:
https://groups.google.com/forum/m/#!topic/comp.lang.vhdl/libdwhFbtNY

If the second: where is your bmp image stored?

: Edited by Moderator
von Paul (Guest)


Rate this post
useful
not useful
Only for the simulation .

von FPGAzumSpass (Guest)


Rate this post
useful
not useful
I don't get why somebody gives such a task. The real quest here is to 
find out how to read and write a file in binary with VHDL. It doesn't 
teach much about VHDL in general and nothing about logic or how to 
describe hardware.


So here is a testbench i have written years ago to read a bmp, modify 
and write back.
You still need to understand it and implement the logic you need instead 
of my modify function.

von FPGAzumSpass (Guest)


Rate this post
useful
not useful

von Paul (Guest)


Rate this post
useful
not useful
Thank you

von wbila (Guest)


Rate this post
useful
not useful
Bogomolni ?

von Guest (Guest)


Rate this post
useful
not useful
Paul wrote:
> Unser Professor hat uns gebeten, ein Programm in VHDL zu
> schreiben, um ein bmp-Image zu lesen
> und zu
> Ersetzen Sie die rote Farbe im Bild durch blaue Farbe.
>
> Irgendwelche Ideen, wie es bitte geht?
>
> Danke im Voraus

Hello Paul, I got the same assignment. Did you solve it
If so, would you help me?

thanks

von Duke Scarring (Guest)


Rate this post
useful
not useful
Please open a new topic for a new question!
(Of course you can give a link to the old question.)


Guest wrote:
> Hello Paul, I got the same assignment.
That is a weird assignment, because in hardware there exist no bpm file. 
In hardware there are only voltages on signal lines. And VHDL is for 
hardware.

Another point is simulation: In simulation testbenches exists files, but 
mainly as input and output for signals. Nobody with common sense will 
make a file converter in VHDL language.


I've done some VHDL code which take a VGA signal as input and write 
every video frame to a bpm file to see if the graphical output of my 
design is valid.


> Did you solve it
> If so, would you help me?
What have you done so far?
Where is your sore point?
What specific help did you expect?

If you ask squishy questions, you will get much squishier answers.

Duke

von Andreas S. (Company: Schweigstill IT) (schweigstill)


Rate this post
useful
not useful
Duke Scarring wrote:
> In hardware there are only voltages on signal lines. And VHDL is for
> hardware.

VHDL also doesn't "know" anything about voltages.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.