File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,21 @@ ISSUE_CP_FILES+="${ISSUE_CP_FILES_PLATFORM} \
7373 $VARS_BASENAME .tcl \
7474 $VARS_BASENAME .gdb"
7575
76+ ISSUE_SCRIPT=${SCRIPTS_DIR} /${ISSUE_TARGET} .tcl
77+ if grep -q -E " synth_preamble|yosys -import" " ${ISSUE_SCRIPT} " ; then
78+ IS_YOSYS=1
79+ else
80+ IS_YOSYS=0
81+ fi
82+
83+ if [ " $IS_YOSYS " -eq 1 ]; then
84+ cat > ${RUN_ME_SCRIPT} << EOF
85+ #!/usr/bin/env bash
86+ source ${VARS_BASENAME} .sh
87+ export PYTHON_EXE=\$ {PYTHON_EXE:-\$ (command -v python3)}
88+ yosys ${YOSYS_FLAGS:- } -c \$ {SCRIPTS_DIR}/${ISSUE_TARGET} .tcl
89+ EOF
90+ else
7691cat > ${RUN_ME_SCRIPT} << EOF
7792#!/usr/bin/env bash
7893source ${VARS_BASENAME} .sh
8297 openroad -no_init -threads ${NUM_CORES:- 1} \$ {SCRIPTS_DIR}/${ISSUE_TARGET} .tcl
8398fi
8499EOF
100+ fi
85101chmod +x ${RUN_ME_SCRIPT}
86102
87103rm -f ${VARS_BASENAME} .sh ${VARS_BASENAME} .tcl ${VARS_BASENAME} .gdb || true
You can’t perform that action at this time.
0 commit comments