Skip to content

Commit 261edc8

Browse files
authored
fix(gds): deduplicate cells with same ID (#134)
1 parent b453858 commit 261edc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/compiler/src/gds.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ impl CompiledData {
165165
}));
166166
}
167167
SolvedValue::Instance(i) => {
168-
self.cell_to_gds(exporter, i.cell)?;
168+
if exporter.names.name(&i.cell).is_none() {
169+
self.cell_to_gds(exporter, i.cell)?;
170+
}
169171
ocell.elems.push(GdsElement::GdsStructRef(GdsStructRef {
170172
name: exporter.names.name(&i.cell).unwrap().clone(),
171173
xy: GdsPoint::new(exporter.coord_to_gds(i.x), exporter.coord_to_gds(i.y)),

0 commit comments

Comments
 (0)