From 9ff2ed732c6918ff22680d39b860163cdab6c072 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Tue, 15 Oct 2019 13:45:48 -0700 Subject: [PATCH] Handle case when PUDC_B pin function is not found. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- utils/fasm2frames.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/fasm2frames.py b/utils/fasm2frames.py index c36fbc13..5551527e 100755 --- a/utils/fasm2frames.py +++ b/utils/fasm2frames.py @@ -102,7 +102,8 @@ def run( nonlocal pudc_b_in_use pudc_b_in_use = True - assembler.set_feature_callback(check_for_pudc_b) + if pudc_b_tile_site is not None: + assembler.set_feature_callback(check_for_pudc_b) extra_features = [] if roi: @@ -121,7 +122,7 @@ def run( assembler.parse_fasm_filename(filename_in, extra_features=extra_features) - if emit_pudc_b_pullup and not pudc_b_in_use: + if emit_pudc_b_pullup and not pudc_b_in_use and pudc_b_tile_site is not None: # Enable IN-only and PULLUP on PUDC_B IOB. # # TODO: The following FASM string only works on Artix 50T and Zynq 10