19th September 2008, 06:03 #1
Newbie level 1
verilog image processing
I want to implement an image processing algo using verilog... I have a design module that calculates histogram of image and gives 2 output 'nout' and 'x'. nout is no.of pixels in a bin while x is centre of bin. i have 10 elements of nout and x each for 10 bins each nout of 12 bits and x of 8 bits. i declared it in verilog as:
parameter length_nout=12; //length of nout
parameter length_xxy=8; //length of x
parameter length_nbin=4; //length of nbin
output [length_nout-1:0] nout[0:depth-1]; //output
output [length_xxy-1:0] x[0:depth-1]; //output
but it gives syntax error when simulated in modelsim for the 2 outputs..... can anybody help me out that how to out these two registered outputs???
Plz reply as soon as possible.
19th September 2008, 06:03
19th September 2008, 09:20 #2
image processing using verilog programming
I am not sure, but it might be that you may not have multidimensional arrays as ports.
19th September 2008, 09:20
25th September 2008, 15:35 #3
Full Member level 5
image processing verilog
The verilog doesn't support multi dimensional port declaration. I think this feature is available in System verilog.
Try to change the output port declaration and check.
25th September 2008, 15:35
3rd August 2009, 09:39 #4
Newbie level 3
image processing algorithm
hey,can any one please help me how to convert multidimensional array into one dimensional array....
i'm new in FPGA and using system generator in matlab..
i want to get camera data into a FPGA...
since its RGB it has dimensions of [mxnx3]
but the GATE IN block allows only one dimension
so can u plz help me to solve the problem
27th September 2010, 07:05 #5
Newbie level 4
Re: image processing algorithm
I am having the same problem. Have you solved yours?
Originally Posted by bsmaldeniya