X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/47a8eefe3693f2cfc96488d8b557f72612d685e0..a6b499da5fd2a834963cc05178e6b8044dc9129f:/System.v diff --git a/System.v b/System.v index 62f976b..931e900 100644 --- a/System.v +++ b/System.v @@ -262,7 +262,7 @@ module CoreTop( wire [7:0] data [1:0]; wire wr [1:0], rd [1:0]; - wire irq, tmrirq, lcdcirq, vblankirq; + wire irq, tmrirq, lcdcirq, vblankirq, btnirq; wire [7:0] jaddr; wire [1:0] state; wire ack; @@ -357,6 +357,16 @@ module CoreTop( .ledout(leds), .switches(switches) ); + + Buttons ass( + .core_clk(clk), + .addr(addr[0]), + .data(data[0]), + .wr(wr[0]), + .rd(rd[0]), + .int(btnirq), + .buttons(switches) + ); AddrMon amon( .clk(clk), @@ -415,7 +425,7 @@ module CoreTop( .lcdc(lcdcirq), .tovf(tmrirq), .serial(1'b0), - .buttons(1'b0), + .buttons(btnirq), .master(irq), .ack(ack), .jaddr(jaddr));