f4pga/wrappers/sh: use F4PGA_SHARE_DIR in python, instead of shell
@@ -664,8 +664,8 @@ DESIGN=${EBLIF/.eblif/}
[ ! -z "${PCF_PATH}" ] && PCF_ARGS="--pcf-constraints ${PCF_PATH}" || PCF_ARGS=
"""
+ f"""
-PYTHONPATH=$F4PGA_SHARE_DIR/scripts:$PYTHONPATH \
- '{python3}' "$F4PGA_SHARE_DIR"/scripts/repacker/repack.py \
+PYTHONPATH='{F4PGA_SHARE_DIR}/scripts':$PYTHONPATH \
+ '{python3}' '{F4PGA_SHARE_DIR}/scripts/repacker/repack.py' \
--vpr-arch ${{ARCH_DEF}} \
--repacking-rules ${{ARCH_DIR}}/${{DEVICE_NAME}}.repacking_rules.json \
$JSON_ARGS \
@@ -719,7 +719,7 @@ if [ -z $BIT ]; then echo "Please provide an output bistream file name"; exit 1;
+ f"""
if [[ "$DEVICE" =~ ^(qlf_k4n8.*)$ ]]; then
'{which('qlf_fasm')}' \
- --db-root "${{F4PGA_SHARE_DIR}}/fasm_database/${{DEVICE}}" \
+ --db-root '{F4PGA_SHARE_DIR}/fasm_database/'"${{DEVICE}}" \
--format "$BIT_FORMAT" \
--assemble \
"$FASM" \
@@ -752,13 +752,13 @@ if [[ '{device}' =~ ^(qlf_k4n8_qlf_k4n8)$ ]];then
else
DEVICE_1={device}
fi
+ARCH_DIR='{F4PGA_SHARE_DIR}/arch/'"${{DEVICE_1}}_${{DEVICE_1}}"
"""
+ """
-ARCH_DIR="${F4PGA_SHARE_DIR}/arch/${DEVICE_1}_${DEVICE_1}"
PINMAP_XML=${ARCH_DIR}/${PINMAPXML}
"""
+ f"""
-'{python3}' "$F4PGA_SHARE_DIR"/scripts/create_lib.py \
+'{python3}' '{F4PGA_SHARE_DIR}/scripts/create_lib.py' \
-n "${{DEV}}_0P72_SSM40" \
-m fpga_top \
-c '{part}' \
@@ -814,8 +814,8 @@ if [ -z "{PCF}" ]; then PCF_ARGS=""; else PCF_ARGS="--input-pcf ${PCF}"; fi
echo "Running fasm2bels"
"""
+ f"""
-'{python3}' "${{F4PGA_SHARE_DIR}}"/scripts/fasm2bels.py "${{BIT}}" \
- --phy-db "${{F4PGA_SHARE_DIR}}/arch/${{DEVICE}}_wlcsp/db_phy.pickle" \
+'{python3}' '{F4PGA_SHARE_DIR}/scripts/fasm2bels.py' "${{BIT}}" \
+ --phy-db '{F4PGA_SHARE_DIR}/arch/'"${{DEVICE}}_wlcsp/db_phy.pickle" \
--device-name "${{DEVICE/ql-/}}" \
--package-name "$PART" \
--input-type bitstream \
