Don't double prefix a name

This commit is contained in:
mrg
2022-05-13 14:32:52 -07:00
parent fbb2ea5fb6
commit 74c2c5ae0e
+1 -1
View File
@@ -28,7 +28,7 @@ class hierarchy_design(hierarchy_spice.spice, hierarchy_layout.layout):
is_library_cell = os.path.isfile(gds_file)
# Uniquify names to address the flat GDS namespace
# except for the top/output name
if not is_library_cell and name != OPTS.output_name:
if not is_library_cell and name != OPTS.output_name and not name.startswith(OPTS.output_name):
name = OPTS.output_name + "_" + name
cell_name = name