EmbDev.net

Forum: FPGA, VHDL & Verilog VHDL project


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. (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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.