aboutsummaryrefslogtreecommitdiff
path: root/src/top.v
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-08 10:55:45 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2024-05-08 10:55:45 +0200
commitaa005bc8b667668eb43c0ae62e00aefd1c3c1af5 (patch)
treea491b20a750cf0dac413aa10deb2ead3b6266fc3 /src/top.v
parent80fee7a2db703f029989c40e823c2ccdeb078fca (diff)
downloadriscv_cpu-aa005bc8b667668eb43c0ae62e00aefd1c3c1af5.tar.gz
riscv_cpu-aa005bc8b667668eb43c0ae62e00aefd1c3c1af5.zip
assemble simple rom
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