diff --git a/f4pga/setup.py b/f4pga/setup.py index e73782b..b28825b 100644 --- a/f4pga/setup.py +++ b/f4pga/setup.py @@ -71,6 +71,7 @@ wrapper_entrypoints = [ f"{sf}_generate_bitstream = {shwrappers}:generate_bitstream", f"{sf}_generate_constraints = {shwrappers}:generate_constraints", f"{sf}_analysis = {shwrappers}:analysis", + f"{sf}_fasm2bels = {shwrappers}:fasm2bels", f"ql_{sf} = {shwrappers}:ql", f"vpr_common = {shwrappers}:vpr_common", ] diff --git a/f4pga/wrappers/sh/__init__.py b/f4pga/wrappers/sh/__init__.py index fc59c3e..15b1208 100644 --- a/f4pga/wrappers/sh/__init__.py +++ b/f4pga/wrappers/sh/__init__.py @@ -117,3 +117,8 @@ def generate_libfile(): def ql(): print("[F4PGA] Running (deprecated) ql") run_sh(ROOT / "quicklogic/ql.f4pga.sh") + + +def fasm2bels(): + print("[F4PGA] Running (deprecated) fasm2bels") + run_sh(ROOT / "quicklogic/fasm2bels.f4pga.sh") diff --git a/f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh b/f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh old mode 100644 new mode 100755 index c82135b..8c8cbf3 --- a/f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh +++ b/f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh @@ -19,7 +19,7 @@ set -e SHARE_DIR_PATH=${SHARE_DIR_PATH:="$F4PGA_ENV_SHARE"} -BIN_DIR_PATH=${BIN_DIR_PATH:="$F4PGA_BIN_SHARE"} +BIN_DIR_PATH=${BIN_DIR_PATH:="$F4PGA_ENV_BIN"} OPTS=d:P:p:b: LONGOPTS=device:,part:,pcf:,bit:,