X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/5d9760a4dd32206c26c9f20fb995d29160bcbf71:/blockram.v..45fa96c0a2fd6e490690cff69dd694a3dce3ab35:/BlockRAM.v?ds=sidebyside diff --git a/blockram.v b/BlockRAM.v similarity index 78% rename from blockram.v rename to BlockRAM.v index fd36875..85f8659 100644 --- a/blockram.v +++ b/BlockRAM.v @@ -12,9 +12,11 @@ module BlockRAM( * 0x00004000. rdata and ready must be driven to zero if the * address is not within the range of this module. */ - wire decode = (addr & ~32'h00003FFF) == 32'h00004000; - wire [13:2] ramaddr = addr & 14'h3FFC; /* mask off lower two bits - * for word alignment */ + wire decode = (bus_addr & ~32'h00003FFF) == 32'h00000000; + /* verilator lint_off WIDTH */ + wire [13:2] ramaddr = bus_addr & 32'h3FFC; /* mask off lower two bits + * for word alignment */ + /* verilator lint_on WIDTH */ reg [31:0] data [0:(16384 / 4 - 1)];