]> Joshua Wise's Git repositories - firearm.git/blobdiff - BlockRAM.v
Fix a few scattered bugs, and get fetch to work.
[firearm.git] / BlockRAM.v
similarity index 78%
rename from blockram.v
rename to BlockRAM.v
index fd36875ba12f1ef44ad4e5dd080774e882b402fa..85f865974fbd3f3bb88e13bb2d3cfe274d0b3607 100644 (file)
@@ -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.
         */
         * 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)];
        
        
        reg [31:0] data [0:(16384 / 4 - 1)];
        
This page took 0.024123 seconds and 4 git commands to generate.