First steps on FPGA: a LED blink in Verilog
Published on 2026-10-05 - 3 min read
An FPGA is a reprogrammable circuit that executes hardware.
The hardware
Lattice iCEstick, iCE40 HX1K, ~25 EUR. Open-source toolchain Yosys + nextpnr.
Verilog code
module blink(input clk, output reg led); reg [22:0] counter; always @(posedge clk) begin counter <= counter + 1; led <= counter[22]; end endmodule
Synthesis
yosys → nextpnr-ice40 → iceprog. Three commands, the LED blinks.