EmbDev.net

Forum: FPGA, VHDL & Verilog VHDL project


von Paul (Guest)


Rate this post
0 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
2 useful
not useful
Get the specification of the Bitmap File format and start coding.

von Lothar M. (lkmiller) (Moderator)


Rate this post
0 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
0 useful
not useful
Only for the simulation .

von FPGAzumSpass (Guest)


Rate this post
0 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
0 useful
not useful

von Paul (Guest)


Rate this post
0 useful
not useful
Thank you

von wbila (Guest)


Rate this post
0 useful
not useful
Bogomolni ?

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]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig