aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ice40/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ice40/run-test.sh')
-rwxr-xr-xtests/ice40/run-test.sh19
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/ice40/run-test.sh b/tests/ice40/run-test.sh
index e839aa9f5..75e5f0609 100755
--- a/tests/ice40/run-test.sh
+++ b/tests/ice40/run-test.sh
@@ -1,21 +1,6 @@
#!/bin/bash
set -e
-if [ -f "../../../../../techlibs/common/simcells.v" ]; then
- COMMON_PREFIX=../../../../../techlibs/common
- TECHLIBS_PREFIX=../../../../../techlibs
-else
- COMMON_PREFIX=/usr/local/share/yosys
- TECHLIBS_PREFIX=/usr/local/share/yosys
-fi
-for x in *_top.v; do
+for x in *.v; do
echo "Running $x.."
- ../../yosys -q -s ${x%_top.v}.ys -l ./temp/${x%.v}.log $x
- echo "Simulating $x.."
- iverilog -o ./temp/${x%_top.v}_testbench ${x%_top.v}_tb.v ./temp/${x%_top.v}_synth.v common.v $COMMON_PREFIX/simcells.v $TECHLIBS_PREFIX/ice40/cells_sim.v
- if ! vvp -N ./temp/${x%_top.v}_testbench > ./temp/${x%_top.v}_testbench.log 2>&1; then
- grep 'ERROR' ./temp/${x%_top.v}_testbench.log
- exit 0
- elif grep 'ERROR' ./temp/${x%_top.v}_testbench.log || ! grep 'OKAY' ./temp/${x%_top.v}_testbench.log; then
- exit 0
- fi
+ ../../yosys -q -s ${x%.v}.ys -l ./temp/${x%.v}.log $x
done