Skip to content

Commit

Permalink
fix(sky130_density_fix): don't update project GDS if there are no cel…
Browse files Browse the repository at this point in the history
…ls to replace
  • Loading branch information
urish committed Nov 8, 2024
1 parent 0ee8b4e commit 12af5ac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sky130_density_fix/replace_decap.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ def cell_dimensions_equal(cell1, cell2):
inst.cell = replacement_cell
replacements += 1

print(f"Replaced {replacements} cells out of {matches} matches.")
print(f"Writing to {output_gds}...")
if replacements > 0:
print(f"Replaced {replacements} cells out of {matches} matches.")
print(f"Writing to {output_gds}...")
user_layout.write(output_gds)
print("Done.")
else:
print(f"No cells replaced.")

user_layout.write(output_gds)
print("Done.")

0 comments on commit 12af5ac

Please sign in to comment.