saimaa
Newbie level 1
verilog image processing
Hi
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:
module myimhist(nout,x,y,nbin);
parameter length_nout=12; //length of nout
parameter length_xxy=8; //length of x
parameter length_nbin=4; //length of nbin
parameter depth=10;
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.
Hi
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:
module myimhist(nout,x,y,nbin);
parameter length_nout=12; //length of nout
parameter length_xxy=8; //length of x
parameter length_nbin=4; //length of nbin
parameter depth=10;
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.