Implement filter in verilog

OP #4500097
Dear all verilog seniors.

I am doing a small school project to design an image filter in verilog.

It can be summarized in this picture:
http://imageshack.com/a/img924/2851/Rt9ZI6.png

I have the following filter equation


h[i][j] = A*h[i-1][j-1] + B*h[i][j-1] + C*h[i+1][j-1] + D*h[i-1][j] + 
E*h[i][j] + F*h[i+1][j] + G*h[i-1][j+1] + H*h[i][j+1] + I*h[i+1][j+1]


However, I have no prior knowledge in RTL/verilog.


How should I proceed ?
Attached files:
Moderator (Company: Titel) #4500138
Qq Q. wrote:
> How should I proceed ?
You shuld get a clear picture about the hardware you are using. Then 
you can describe this hardware with the Hardware Description 
Language Verilog.

So: What is the target of the design? Is it just for simulation? Where 
is the "raw image" stored? And where should the "filtered pixwls be 
stored? How can you access those memories? How big are those pictures? 
Can you fit them inside an FPGA?
Make a sketch with modules (adresscounter, memory, arithmetic unit) of 
this hardware. Think about necessary signals between the modules. Then 
you can try to desrcibe your task.

BTW:
If you never used Verilog before you should/must start with much simpler 
excersies: a flashing light, a chasing light, ...

Reply

A question of your own? This thread is over 10 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.