From bc6e0b15a72fb75793245a29c3aa5b8ff96d6167 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Fri, 3 Jul 2020 17:27:41 +0200 Subject: [PATCH] Check if YOSYS env var is set and use it as YOSYS executable --- gram/simulation/runsimcrg.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 \ -- 2.30.2