From 584c5f3937f11bcfc29eb9b206b941fbc2619b85 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 7 Jan 2015 01:28:18 +0100 Subject: Cleanups in xilinx bram descriptions --- techlibs/xilinx/tests/bram1_tb.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'techlibs/xilinx/tests') diff --git a/techlibs/xilinx/tests/bram1_tb.v b/techlibs/xilinx/tests/bram1_tb.v index 6ed04d4ad..8f854b749 100644 --- a/techlibs/xilinx/tests/bram1_tb.v +++ b/techlibs/xilinx/tests/bram1_tb.v @@ -83,16 +83,16 @@ module bram1_tb #( xorshift64_next; clk <= 0; - for (i = 0; i < 256; i = i+1) begin + for (i = 0; i < 512; i = i+1) begin if (DBITS > 64) WR_DATA <= (xorshift64_state << (DBITS-64)) ^ xorshift64_state; else WR_DATA <= xorshift64_state; xorshift64_next; - WR_ADDR <= getaddr(i[7:4]); + WR_ADDR <= getaddr(i < 256 ? i[7:4] : xorshift64_state[63:60]); xorshift64_next; - RD_ADDR <= getaddr(i[3:0]); - WR_EN <= ^i; + RD_ADDR <= getaddr(i < 256 ? i[3:0] : xorshift64_state[59:56]); + WR_EN <= xorshift64_state[55]; xorshift64_next; #1; clk <= 1; -- cgit v1.2.3