Add orphan cell detection to GDS-streaming step.
@@ -186,6 +186,14 @@ def gds_export(design_name, in_def, in_files, out_file, tech_file, foundry_lefs,
if not missing_cell:
print("[INFO] All LEF cells have matching GDS/OAS cells")
+ print("[INFO] Checking for orphan cell in the final layout...")
+ orphan_cell = False
+ for i in top_only_layout.each_cell():
+ if i.name != design_name and i.parent_cells() == 0:
+ orphan_cell = True
+ print("[ERROR] Found orphan cell '{0}'".format(i.name))
+ errors += 1
+
if seal_file:
top_cell = top_only_layout.top_cell()
