From 510969ab9704865f87c7c0bd09e0185b729feffc Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 11 Feb 2021 11:10:32 +0000 Subject: Create machxo2 backend (renamed from generic). Signed-off-by: William D. Jones --- machxo2/examples/blinky.v | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 machxo2/examples/blinky.v (limited to 'machxo2/examples/blinky.v') diff --git a/machxo2/examples/blinky.v b/machxo2/examples/blinky.v new file mode 100644 index 00000000..42becb72 --- /dev/null +++ b/machxo2/examples/blinky.v @@ -0,0 +1,12 @@ +module top(input clk, rst, output reg [7:0] leds); + +reg [7:0] ctr; +always @(posedge clk) + if (rst) + ctr <= 8'h00; + else + ctr <= ctr + 1'b1; + +assign leds = ctr; + +endmodule -- cgit v1.2.3