Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 09:47:38 09:47


Login with username, password and session length


Pages: [1]
Print
Author Topic: Implement filter in verilog  (Read 3445 times)
0 Members and 1 Guest are viewing this topic.
promach
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 14
-Receive: 0


« on: March 08, 2016, 11:39:28 23:39 »

Dear all verilog seniors.

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

The image filter can be summarized in this picture:


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 ?
Logged
hate
Hero Member
*****
Offline Offline

Posts: 555

Thank You
-Given: 156
-Receive: 355


« Reply #1 on: March 11, 2016, 11:35:47 11:35 »

Where do you plan to store your image?
Logged

Regards...
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #2 on: April 03, 2016, 03:19:07 03:19 »

he doesn't need to store the image, he just needs to work on 9 pixels at a time.  That is of course assuming he has a front end that can stream the correct 6 pixels for each calculation, otherwise he'll need external ram to store the whole thing and then address the 9 pixels he needs each calculation.

It shouldn't be an issue either way really as external memory access is basically off the shelf.

one approach, assuming that the image comes in serial streamed left to right row by row is:
take serial stream to store bitmap in memory
access memory for 9 pixels needed, produce calc,
store each calculated pixel to another bitmap.

there of course isn't enough information to offer any significant help.  the problem is not well specified and everyone is going to be guessing.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC