From aa005bc8b667668eb43c0ae62e00aefd1c3c1af5 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Wed, 8 May 2024 10:55:45 +0200 Subject: assemble simple rom --- src/top.v | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src/top.v') 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 -- cgit v1.2.3