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
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
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.
Sorry, forget Link: https://opencores.org/websvn/filedetails?repname=video_dithering&path=%2Fvideo_dithering%2Ftrunk%2Ftb.vhd
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
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
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
Log in with Google account
No account? Register here.