From ecbd6951e61268aabea65c4e3c0129982173f0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Czarnecki?= Date: Mon, 6 Jun 2022 10:44:30 +0200 Subject: [PATCH] wrappers: sh: ql: add fasm2bels script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Czarnecki --- f4pga/setup.py | 1 + f4pga/wrappers/sh/__init__.py | 5 +++++ f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 f4pga/wrappers/sh/quicklogic/fasm2bels.f4pga.sh 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:,