Click to expand!
module Blinky(
input clock,
input reset,
output io_led0
);
reg led;
reg [8:0] counterWrap_value;
wire counterWrap_wrap_wrap = counterWrap_value == 9'h1f3;
wire [8:0] _counterWrap_wrap_value_T_1 = counterWrap_value + 9'h1;
assign io_led0 = led;
always @(posedge clock) begin
if (reset) begin
led <= 1'h0;
end else if (counterWrap_wrap_wrap) begin
led <= ~led;
end
if (reset) begin
counterWrap_value <= 9'h0;
end else if (counterWrap_wrap_wrap) begin
counterWrap_value <= 9'h0;
end else begin
counterWrap_value <= _counterWrap_wrap_value_T_1;
end
end
endmodule
### FIR Filter
Consider an FIR filter that implements a convolution operation, as depicted in this block diagram: