v2x: Improve the `do_not_include` variable name. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/vlog_to_pbtype.py b/vlog_to_pbtype.py index a8b53b4..e8e1899 100755 --- a/vlog_to_pbtype.py +++ b/vlog_to_pbtype.py
@@ -232,10 +232,10 @@ processed_cells = list() for cname, i_of in mod.cells: pb_name = strip_name(i_of) - do_not_include = False + pbtype_already_included = False if i_of in processed_cells: # do not emit xml include for every instance of multi instace cell - do_not_include = True + pbtype_already_included = True else: processed_cells.append(i_of) instance = INVALID_INSTANCE @@ -249,7 +249,7 @@ module_path = os.path.dirname(module_file) module_basename = os.path.basename(module_file) # Heuristic for autogenerated files from w.py - if not do_not_include: + if not pbtype_already_included: wm = re.match(r"([A-Za-z0-9_]+)\.sim\.v", module_basename) if wm: pb_type_path = "{}/{}.pb_type.xml".format(