diff options
author | Joachim StroĢmbergson <joachim@assured.se> | 2019-02-11 20:01:58 +0100 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@assured.se> | 2019-02-11 20:01:58 +0100 |
commit | 21ce3254a3a74143c0881623e61297afe53a81c4 (patch) | |
tree | 8660897ac7fe51830a4a474ebe540dda3b6a3d68 | |
parent | c9fb945818d8a71fe8c9d1eb09afacaffbf56374 (diff) |
Adding initial version of top.
-rw-r--r-- | src/rtl/top.v | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/rtl/top.v b/src/rtl/top.v new file mode 100644 index 0000000..58daeb2 --- /dev/null +++ b/src/rtl/top.v @@ -0,0 +1,23 @@ +module top ( + input wire clk_in, + output wire rled1, + output wire rled2, + output wire rled3, + output wire rled4, + output wire gled5 + ); + + reg [31 : 0] counter_reg = 32'b0; + + assign rled1 = counter[21]; + assign rled2 = counter[22]; + assign rled3 = counter[23]; + assign rled4 = counter[24]; + assign gled5 = counter[25]; + + always @ (posedge hwclk) + begin + counter_reg <= counter_reg + 1; + end + +endmodule // top |