aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testenv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/testenv.sh')
-rw-r--r--testsuite/testenv.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/testenv.sh b/testsuite/testenv.sh
index 25ff30c..e5775b5 100644
--- a/testsuite/testenv.sh
+++ b/testsuite/testenv.sh
@@ -16,6 +16,11 @@ cmd ()
"$@"
}
+run_yosys ()
+{
+ cmd "$YOSYS" -Q "$@"
+}
+
analyze ()
{
echo "analyze $@"
@@ -25,7 +30,7 @@ analyze ()
synth ()
{
echo "synthesize $@"
- cmd "$YOSYS" -Q -q -p "ghdl $@; synth_ice40 -blif out.blif"
+ run_yosys -q -p "ghdl $@; synth_ice40 -blif out.blif"
}
clean ()