nextpnr/himbaechel/uarch/example/blinky.v
gatecat 57b923a603 himbächel: Initial implementation
Signed-off-by: gatecat <gatecat@ds0.me>
2023-05-13 08:26:41 +02:00

17 lines
223 B
Verilog

module top(input rst, output reg [7:0] leds);
wire clk;
(* BEL="X1Y0/IO0" *) INBUF ib_i (.O(clk));
reg [7:0] ctr;
always @(posedge clk)
if (rst)
ctr <= 8'h00;
else
ctr <= ctr + 1'b1;
assign leds = ctr;
endmodule