X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/f7c52af40a2d93a67405d61ca5483e81617792d0..55c6199c2c85349b6ff16144ec9cbd770b0ee5f6:/BlockRAM.v?ds=sidebyside 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