X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/f7c52af40a2d93a67405d61ca5483e81617792d0..aadd22b991c779067d5fa3ef68a3e3904e50b971:/BlockRAM.v?ds=inline diff --git a/BlockRAM.v b/BlockRAM.v index a86ec75..091c749 100644 --- a/BlockRAM.v +++ b/BlockRAM.v @@ -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