From: Joshua Wise Date: Thu, 15 Jan 2009 07:44:23 +0000 (-0500) Subject: BlockRAM: Write before read so that reads the next cycle return the right answer. X-Git-Url: http://git.joshuawise.com/firearm.git/commitdiff_plain/03bbc40b28ecb9fab7f459f627d3843ba3f10b16?ds=inline BlockRAM: Write before read so that reads the next cycle return the right answer. --- diff --git a/BlockRAM.v b/BlockRAM.v index a86ec75..e0eceeb 100644 --- a/BlockRAM.v +++ b/BlockRAM.v @@ -31,7 +31,7 @@ module BlockRAM( always @(posedge clk) begin if (bus_wr && decode) - data[ramaddr[13:2]] <= bus_wdata; + data[ramaddr[13:2]] = bus_wdata; /* This is not allowed to be conditional -- stupid Xilinx * blockram. */