X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/f7c52af40a2d93a67405d61ca5483e81617792d0..a4f724e659b1bf3afea9de4aaaf64517c3d9844d:/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