Check if YOSYS env var is set and use it as YOSYS executable
authorJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 15:27:41 +0000 (17:27 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Fri, 3 Jul 2020 15:27:41 +0000 (17:27 +0200)
gram/simulation/runsimcrg.sh

index d2eb2db24d50849ff3cd19e665f2e46a3773ab68..439619ee1563e9d29abcb35d3f6aae56d7fb081b 100755 (executable)
@@ -4,7 +4,11 @@ set -e
 LIB_DIR=/usr/local/diamond/3.11_x64/ispfpga/verilog/data/ecp5u
 
 python simcrg.py
-yosys simcrg.ys
+if [[ -z "${YOSYS}" ]]; then
+  $YOSYS simcrg.ys
+else
+  yosys simcrg.ys
+fi
 cp ${LIB_DIR}/DDRDLLA.v DDRDLLA.v
 patch DDRDLLA.v < DDRDLLA.patch
 iverilog -Wall -g2012 -s simcrgtb -o simcrg simcrgtb.sv build_simcrg/top.v dram_model/ddr3.v ${LIB_DIR}/ECLKSYNCB.v ${LIB_DIR}/EHXPLLL.v ${LIB_DIR}/PUR.v ${LIB_DIR}/GSR.v \