aboutsummaryrefslogtreecommitdiff
path: root/src/top.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/top.v')
-rw-r--r--src/top.v16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/top.v b/src/top.v
index 845b17c..37e33d7 100644
--- a/src/top.v
+++ b/src/top.v
@@ -1,9 +1,19 @@
module top (
input clk,
- input key,
- output [5:0] led
+ input key
+ //output [5:0] led
);
+wire rst;
+assign rst = ~key;
+
+cpu cpu (
+ .clk(clk),
+ .rst(rst)
+);
+
+/*
+
reg [5:0] ctr_q;
wire [5:0] ctr_d;
wire clk_slow;
@@ -22,5 +32,5 @@ end
assign ctr_d = ctr_q + 6'b1;
assign led = ~ctr_q;
-
+*/
endmodule