diff options
author | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-08 10:55:45 +0200 |
---|---|---|
committer | Flavian Kaufmann <flavian@flaviankaufmann.ch> | 2024-05-08 10:55:45 +0200 |
commit | aa005bc8b667668eb43c0ae62e00aefd1c3c1af5 (patch) | |
tree | a491b20a750cf0dac413aa10deb2ead3b6266fc3 /src/top.v | |
parent | 80fee7a2db703f029989c40e823c2ccdeb078fca (diff) | |
download | riscv_cpu-aa005bc8b667668eb43c0ae62e00aefd1c3c1af5.tar.gz riscv_cpu-aa005bc8b667668eb43c0ae62e00aefd1c3c1af5.zip |
assemble simple rom
Diffstat (limited to 'src/top.v')
-rw-r--r-- | src/top.v | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 |