Fix pull request
authorSergeyDegtyar <sndegtyar@gmail.com>
Fri, 23 Aug 2019 15:55:01 +0000 (18:55 +0300)
committerSergeyDegtyar <sndegtyar@gmail.com>
Fri, 23 Aug 2019 15:55:01 +0000 (18:55 +0300)
tests/ice40/.gitignore
tests/ice40/run-test.sh

index 1d329c9331d30552a073bfdf786c79bae8ce4fca..9a71dca69b0e7ba5a26003e0bbd113439a1bdd7b 100644 (file)
@@ -1,2 +1,4 @@
 *.log
 /run-test.mk
++*_synth.v
++*_testbench
index 75aa08339a9fd23df1b59b7fa89a57b934e4ed8a..bd9d35314e5e447a8d46e63fdd5be1137080712f 100755 (executable)
@@ -13,14 +13,14 @@ for x in *.ys; do
        echo "run-$x:"
        echo "  @echo 'Running $x..'"
        echo "  @../../yosys -ql ${x%.ys}.log $x -w 'Yosys has only limited support for tri-state logic at the moment.'"
+
+       if [ -f "${x%.ys}_tb.v" ]; then
+               echo "  @echo 'Running ${x%.ys}_tb.v..'"
+               echo "  @iverilog -o ${x%.ys}_testbench $t ${x%.ys}_synth.v common.v $TECHLIBS_PREFIX/ice40/cells_sim.v"
+               echo "  @vvp -N ${x%.ys}_testbench"
+       fi
 done
-for t in *_tb.v; do
-       echo "all:: run-$t"
-       echo "run-$t: ${t%_tb.v}_synth.v"
-       echo "  @echo 'Running $t..'"
-       echo "  @iverilog -o ${t%_tb.v}_testbench  $t ${t%_tb.v}_synth.v common.v $TECHLIBS_PREFIX/ice40/cells_sim.v"
-       echo "  @vvp -N ${t%_tb.v}_testbench"
-done
+
 for s in *.sh; do
        if [ "$s" != "run-test.sh" ]; then
                echo "all:: run-$s"