From 82a4722f460a05bfa1d70df34b201fc72cae02ce Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 25 Apr 2015 18:04:57 +0200 Subject: More iCE40 bram improvements --- techlibs/ice40/tests/test_bram_tb.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'techlibs/ice40/tests/test_bram_tb.v') diff --git a/techlibs/ice40/tests/test_bram_tb.v b/techlibs/ice40/tests/test_bram_tb.v index 5d9f92228..ade53db03 100644 --- a/techlibs/ice40/tests/test_bram_tb.v +++ b/techlibs/ice40/tests/test_bram_tb.v @@ -86,7 +86,7 @@ module bram_tb #( xorshift64_next; RD_ADDR = getaddr(i < 256 ? i[3:0] : xorshift64_state[59:56]); - WR_EN = xorshift64_state[55] && (WR_ADDR != RD_ADDR); + WR_EN = xorshift64_state[55] && ((WR_ADDR & 'hff) != (RD_ADDR & 'hff)); xorshift64_next; #1; clk <= 1; -- cgit v1.2.3