always @(posedge clk or posedge rst)begin
if(rst) begin
image_tap1 <= 8'd0;
image_tap2 <= 8'd10;
image_tap3 <= 8'd20;
image_tap4 <= 8'd30;
end
else if(lval == 1) begin
image_tap1 <= image_tap1 + 1;
image_tap2 <= image_tap2 + 1;
image_tap3 <= image_tap3 + 1;
image_tap4 <= image_tap4 + 1;
end
else begin
image_tap1 <= 8'd0 ;
image_tap2 <= 8'd10;
image_tap3 <= 8'd20;
image_tap4 <= 8'd30;
end
end
当每个 tap 横向排列时 (4tap)
当每个 tap 纵向排列时 (4tap)