Memory: Fix bug in which swp_oldval does not get latched (oops!). Make align_rddata...
[firearm.git] / BlockRAM.v
index a86ec75..091c749 100644 (file)
@@ -35,7 +35,7 @@ module BlockRAM(
                
                /* This is not allowed to be conditional -- stupid Xilinx
                 * blockram. */
-               temprdata <= data[ramaddr[13:2]];
+               temprdata <= (bus_wr && decode) ? bus_wdata : data[ramaddr[13:2]];
                lastread <= ramaddr;
        end
 endmodule
This page took 0.017203 seconds and 4 git commands to generate.