From 74c2c5ae0eaf2ecfe1aa6e999d2d2bff769620da Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 13 May 2022 14:32:52 -0700 Subject: [PATCH] Don't double prefix a name --- compiler/base/hierarchy_design.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/base/hierarchy_design.py b/compiler/base/hierarchy_design.py index 00edc558..5e9bec3f 100644 --- a/compiler/base/hierarchy_design.py +++ b/compiler/base/hierarchy_design.py @@ -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