diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-04-25 18:04:57 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-04-25 18:04:57 +0200 |
commit | 82a4722f460a05bfa1d70df34b201fc72cae02ce (patch) | |
tree | d730de3025317782a6f06db23415718793026ab2 /techlibs/ice40/tests | |
parent | 49859393bbddfe9445757f3df0ff573c9072a594 (diff) | |
download | yosys-82a4722f460a05bfa1d70df34b201fc72cae02ce.tar.gz yosys-82a4722f460a05bfa1d70df34b201fc72cae02ce.tar.bz2 yosys-82a4722f460a05bfa1d70df34b201fc72cae02ce.zip |
More iCE40 bram improvements
Diffstat (limited to 'techlibs/ice40/tests')
-rw-r--r-- | techlibs/ice40/tests/test_bram.sh | 6 | ||||
-rw-r--r-- | techlibs/ice40/tests/test_bram_tb.v | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/techlibs/ice40/tests/test_bram.sh b/techlibs/ice40/tests/test_bram.sh index d24c50bc5..a8be04c4e 100644 --- a/techlibs/ice40/tests/test_bram.sh +++ b/techlibs/ice40/tests/test_bram.sh @@ -8,10 +8,10 @@ for dbits in 2 4 8 16 24 32; do sed -e "s/ABITS = ./ABITS = $abits/g; s/DBITS = ./DBITS = $dbits/g;" < test_bram.v > ${id}.v sed -e "s/ABITS = ./ABITS = $abits/g; s/DBITS = ./DBITS = $dbits/g;" < test_bram_tb.v > ${id}_tb.v ../../../yosys -ql ${id}_syn.log -p "synth_ice40" -o ${id}_syn.v ${id}.v - iverilog -s bram_tb -o ${id}_tb ${id}_syn.v ${id}_tb.v /opt/lscc/iCEcube2.2014.08/verilog/sb_ice_syn.v - # iverilog -s bram_tb -o ${id}_tb ${id}_syn.v ${id}_tb.v ../cells_sim.v + # iverilog -s bram_tb -o ${id}_tb ${id}_syn.v ${id}_tb.v /opt/lscc/iCEcube2.2014.08/verilog/sb_ice_syn.v + iverilog -s bram_tb -o ${id}_tb ${id}_syn.v ${id}_tb.v ../cells_sim.v ./${id}_tb > ${id}_tb.txt - if grep ERROR ${id}_tb.txt; then false; fi + if grep -H ERROR ${id}_tb.txt; then false; fi done; done echo OK 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; |