From 69c988f8538ec1cd9f294009bd262f2c37b35fcd Mon Sep 17 00:00:00 2001 From: Jesse Cirimelli-Low Date: Mon, 19 Dec 2022 17:30:05 -0800 Subject: [PATCH] rewrite wordline strap pin copying to not use exceptions --- technology/sky130/custom/sky130_bitcell_base_array.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/technology/sky130/custom/sky130_bitcell_base_array.py b/technology/sky130/custom/sky130_bitcell_base_array.py index f490f05a..b7bcc89d 100644 --- a/technology/sky130/custom/sky130_bitcell_base_array.py +++ b/technology/sky130/custom/sky130_bitcell_base_array.py @@ -128,14 +128,11 @@ class sky130_bitcell_base_array(bitcell_base_array): for inst in self.insts: if "wlstrap" in inst.name: - try: + if "VPWR" in inst.mod.pins: self.copy_layout_pin(inst, "VPWR", "vdd") - except: - pass - try: + if "VGND" in inst.mod.pins: self.copy_layout_pin(inst, "VGND", "gnd") - except: - pass + for row in range(self.row_size): for col in range(self.column_size): inst = self.cell_inst[row, col]