Merge branch 'dev' into laptop_checkpoint

This commit is contained in:
Jesse Cirimelli-Low
2021-04-14 15:58:06 -07:00
42 changed files with 373 additions and 156 deletions
+3 -1
View File
@@ -359,7 +359,9 @@ class instance(geometry):
for offset in range(len(normalized_br_offsets)):
for port in range(len(br_names)):
cell_br_meta.append([br_names[offset], row, col, port])
if normalized_storage_nets == []:
debug.error("normalized storage nets should not be empty! Check if the GDS labels Q and Q_bar are correctly set on M1 of the cell",1)
Q_x = normalized_storage_nets[0][0]
Q_y = normalized_storage_nets[0][1]
+5
View File
@@ -396,9 +396,14 @@ class pin_layout:
# Add the text in the middle of the pin.
# This fixes some pin label offsetting when GDS gets
# imported into Magic.
try:
zoom = GDS["zoom"]
except KeyError:
zoom = None
newLayout.addText(text=self.name,
layerNumber=layer_num,
purposeNumber=label_purpose,
magnification=zoom,
offsetInMicrons=self.center())
def compute_overlap(self, other):