Makefiles: New tools for generate dependency info for Makefiles. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/v2x/lib/mux.py b/v2x/lib/mux.py index 6d5523e..9dc339b 100644 --- a/v2x/lib/mux.py +++ b/v2x/lib/mux.py
@@ -85,6 +85,7 @@ xml.etree.ElementTree pb_type.xml for requested mux """ + assert isinstance(comment, str), "{} {}".format(type(comment), repr(comment)) if mux_type == MuxType.LOGIC: if '-' not in mux_name: @@ -110,7 +111,7 @@ else: assert not subckt, "Provided subckt={} for non-logic mux!".format(subckt) - if comment: + if comment is not None: pb_type_xml.append(ET.Comment(comment)) for pin_type, pin_name, pin_width, pin_index in pins: