Omar21
Newbie
Hi, I am coding in Verilog for a Laplacian filter where I am using a kernel as the follow
is it correct to insert it like that?
is it correct to insert it like that?
Code:
// Define the Laplacian filter kernel
reg [31:0] kernel [0:2][0:2];
initial begin
kernel[0][0] = 0; kernel[0][1] = 1; kernel[0][2] = 0;
kernel[1][0] = 1; kernel[1][1] = -4; kernel[1][2] = 1;
kernel[2][0] = 0; kernel[2][1] = 1; kernel[2][2] = 0;
end