From 03bbc40b28ecb9fab7f459f627d3843ba3f10b16 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 15 Jan 2009 02:44:23 -0500 Subject: [PATCH] BlockRAM: Write before read so that reads the next cycle return the right answer. --- BlockRAM.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.2