From f0e881edb3504c7fee44664682b953c096a396d0 Mon Sep 17 00:00:00 2001 From: Jeff Goeders Date: Wed, 18 Sep 2024 01:14:20 +0000 Subject: [PATCH] Fix empty string bug --- bfasst/tools/impl/vivado_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bfasst/tools/impl/vivado_impl.py b/bfasst/tools/impl/vivado_impl.py index bc2d0920..7d1a4bd8 100644 --- a/bfasst/tools/impl/vivado_impl.py +++ b/bfasst/tools/impl/vivado_impl.py @@ -11,12 +11,12 @@ class VivadoImpl(ImplTool): """Tool to create Vivado implementation ninja snippets.""" - def __init__(self, flow, design, synth_edf, constraints_files=None, ooc=False, impl_options=""): + def __init__(self, flow, design, synth_edf, constraints_files="", ooc=False, impl_options=""): super().__init__(flow, design) self.ooc = ooc self.constraints_file = [ - str(f) for f in ensure_tuple(constraints_files if not self.ooc else None) + str(f) for f in ensure_tuple(constraints_files if not self.ooc else "") ] self.synth_edf = synth_edf