test: vlog: vlog_to_pbtype: run make format Signed-off-by: Karol Gugala <kgugala@antmicro.com>
diff --git a/vlog_to_pbtype.py b/vlog_to_pbtype.py index 6bd5197..413288f 100755 --- a/vlog_to_pbtype.py +++ b/vlog_to_pbtype.py
@@ -684,7 +684,9 @@ xml_mat.text = mat -def make_pb_type(outfile, yj, mod, mode_processing=False, mode_xml=None, mode_name=None): +def make_pb_type( + outfile, yj, mod, mode_processing=False, mode_xml=None, mode_name=None +): """Build the pb_type for a given module. mod is the YosysModule object to generate.""" @@ -736,12 +738,14 @@ nsmap={'xi': xmlinc.xi_url} ) else: - pb_type_xml = ET.SubElement(mode_xml, + pb_type_xml = ET.SubElement( + mode_xml, "pb_type", { "num_pb": "1", "name": mode_name }, - nsmap={'xi': xmlinc.xi_url}) + nsmap={'xi': xmlinc.xi_url} + ) if 'blif_model' in pb_attrs: ET.SubElement(pb_type_xml, "blif_model",