f4pga/wrappers/sh: add genfasm.f4pga.sh

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-10 16:05:55 +02:00
parent ee80ab8dc6
commit 20b64d9506
6 changed files with 36 additions and 28 deletions

View File

@ -92,6 +92,7 @@ setuptools_setup(
'platforms/*.json'
],
'f4pga.wrappers.sh': [
'*.f4pga.sh',
'xc7/*.f4pga.sh',
'quicklogic/*.f4pga.sh'
]

View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
#
# Copyright (C) 2020-2022 F4PGA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
set -e
"`which genfasm`" ${ARCH_DEF} \
${EBLIF} --device ${DEVICE_NAME} ${VPR_OPTIONS} --read_rr_graph ${RR_GRAPH} \
$@

View File

@ -163,16 +163,3 @@ function run_vpr {
return $?
}
function run_genfasm {
set -e
"`which genfasm`" ${ARCH_DEF} \
${EBLIF} \
--device ${DEVICE_NAME} \
${VPR_OPTIONS} \
--read_rr_graph ${RR_GRAPH} \
$@
return $?
}

View File

@ -26,7 +26,12 @@ FASM_EXTRA="${TOP}_fasm_extra.fasm"
export OUT_NOISY_WARNINGS=noisy_warnings-${DEVICE}_fasm.log
run_genfasm
ARCH_DEF="$ARCH_DEF" \
EBLIF="$EBLIF" \
DEVICE_NAME="$DEVICE_NAME" \
VPR_OPTIONS="$VPR_OPTIONS" \
RR_GRAPH="$RR_GRAPH" \
$(dirname "$0")/../genfasm.f4pga.sh
echo "FASM extra: $FASM_EXTRA"
if [ -f $FASM_EXTRA ]; then

View File

@ -132,16 +132,3 @@ function run_vpr {
return $?
}
function run_genfasm {
set -e
genfasm ${ARCH_DEF} \
${EBLIF} \
--device ${DEVICE_NAME} \
${VPR_OPTIONS} \
--read_rr_graph ${RR_GRAPH} \
$@
return $?
}

View File

@ -26,7 +26,12 @@ FASM_EXTRA=${TOP}_fasm_extra.fasm
export OUT_NOISY_WARNINGS=noisy_warnings-${DEVICE}_fasm.log
run_genfasm
ARCH_DEF="$ARCH_DEF" \
EBLIF="$EBLIF" \
DEVICE_NAME="$DEVICE_NAME" \
VPR_OPTIONS="$VPR_OPTIONS" \
RR_GRAPH="$RR_GRAPH" \
$(dirname "$0")/../genfasm.f4pga.sh
echo "FASM extra: $FASM_EXTRA"
if [ -f $FASM_EXTRA ]; then