[Cryptech-Commits] [user/js/fpga_mkm] branch master updated: Adding initial version of top.

git at cryptech.is git at cryptech.is
Mon Feb 11 19:02:11 UTC 2019


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository user/js/fpga_mkm.

The following commit(s) were added to refs/heads/master by this push:
     new 21ce325  Adding initial version of top.
21ce325 is described below

commit 21ce3254a3a74143c0881623e61297afe53a81c4
Author: Joachim Strömbergson <joachim at assured.se>
AuthorDate: Mon Feb 11 20:01:58 2019 +0100

    Adding initial version of top.
---
 src/rtl/top.v | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list