From: Jean THOMAS Date: Fri, 3 Jul 2020 15:27:41 +0000 (+0200) Subject: Check if YOSYS env var is set and use it as YOSYS executable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc6e0b15a72fb75793245a29c3aa5b8ff96d6167;p=gram.git Check if YOSYS env var is set and use it as YOSYS executable --- diff --git a/gram/simulation/runsimcrg.sh b/gram/simulation/runsimcrg.sh index d2eb2db..439619e 100755 --- a/gram/simulation/runsimcrg.sh +++ b/gram/simulation/runsimcrg.sh @@ -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 \