summaryrefslogtreecommitdiff
path: root/techlibs/xilinx/tests/bram1_tb.v
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-01-07 01:28:18 +0100
committerClifford Wolf <clifford@clifford.at>2015-01-07 01:28:18 +0100
commit584c5f3937f11bcfc29eb9b206b941fbc2619b85 (patch)
tree21ceb525f32da9f26816674c8550dc4adf3e1e36 /techlibs/xilinx/tests/bram1_tb.v
parentb26590f8ab2bc77b6209a98240d465af7d3ee266 (diff)
Cleanups in xilinx bram descriptions
Diffstat (limited to 'techlibs/xilinx/tests/bram1_tb.v')
-rw-r--r--techlibs/xilinx/tests/bram1_tb.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/techlibs/xilinx/tests/bram1_tb.v b/techlibs/xilinx/tests/bram1_tb.v
index 6ed04d4a..8f854b74 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;