X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/6bd4619bee74d76a525f7def9ac56ffcf114a3f4..75ab1e9975f64989ee18450eb09b66b33ec5def8:/System.v?ds=inline diff --git a/System.v b/System.v index 0e464f5..dc70cc0 100644 --- a/System.v +++ b/System.v @@ -36,6 +36,7 @@ module MiniRAM( /* XXX will need to go INSIDE the CPU for when we do DMA */ odata <= ram[address[6:0]]; end end +endmodule module InternalRAM( input [15:0] address, @@ -92,7 +93,8 @@ module CoreTop( output wire [7:0] seven, output wire hs, vs, output wire [2:0] r, g, - output wire [1:0] b); + output wire [1:0] b, + output wire soundl, soundr); wire xtalb, clk, vgaclk; IBUFG iclkbuf(.O(xtalb), .I(xtal)); @@ -226,6 +228,15 @@ module CoreTop( .buttons(0), .master(irq), .jaddr(jaddr)); + + Soundcore sound( + .core_clk(clk), + .rd(rd), + .wr(wr), + .addr(addr), + .data(data), + .snd_data_l(soundl), + .snd_data_r(soundr)); endmodule module TestBench();