From 172d07088049bd713c380cc1d787ee7cf961632a Mon Sep 17 00:00:00 2001 From: Jesse Cirimelli-Low Date: Thu, 19 May 2022 21:45:48 -0700 Subject: [PATCH] fix bl routing in rba --- technology/sky130/modules/sky130_bitcell_base_array.py | 8 ++++---- technology/sky130/modules/sky130_replica_bitcell_array.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/technology/sky130/modules/sky130_bitcell_base_array.py b/technology/sky130/modules/sky130_bitcell_base_array.py index 9c6c947d..52955f48 100644 --- a/technology/sky130/modules/sky130_bitcell_base_array.py +++ b/technology/sky130/modules/sky130_bitcell_base_array.py @@ -167,8 +167,8 @@ class sky130_bitcell_base_array(bitcell_base_array): for port in self.all_ports: bl_pin = self.cell_inst[0, col].get_pin(bitline_names[2 * port]) text = "bl_{0}_{1}".format(port, col) - if "Y" in self.cell_inst[0, col].mirror: - text = text.replace("bl", "br") + #if "Y" in self.cell_inst[0, col].mirror: + # text = text.replace("bl", "br") self.add_layout_pin(text=text, layer=bl_pin.layer, offset=bl_pin.ll().scale(1, 0), @@ -176,8 +176,8 @@ class sky130_bitcell_base_array(bitcell_base_array): height=self.height) br_pin = self.cell_inst[0, col].get_pin(bitline_names[2 * port + 1]) text = "br_{0}_{1}".format(port, col) - if "Y" in self.cell_inst[0, col].mirror: - text = text.replace("br", "bl") + #if "Y" in self.cell_inst[0, col].mirror: + # text = text.replace("br", "bl") self.add_layout_pin(text=text, layer=br_pin.layer, offset=br_pin.ll().scale(1, 0), diff --git a/technology/sky130/modules/sky130_replica_bitcell_array.py b/technology/sky130/modules/sky130_replica_bitcell_array.py index 6f0a1188..19042982 100644 --- a/technology/sky130/modules/sky130_replica_bitcell_array.py +++ b/technology/sky130/modules/sky130_replica_bitcell_array.py @@ -325,16 +325,16 @@ class sky130_replica_bitcell_array(replica_bitcell_array, sky130_bitcell_base_ar for (bl_name, pin_name) in zip(names, pin_names): pin = inst.get_pin(pin_name) if 'rbl_bl' in bl_name: - if mirror != "MY": - bl_name = bl_name.replace("rbl_bl","rbl_br") + # if mirror != "MY": + # bl_name = bl_name.replace("rbl_bl","rbl_br") self.add_layout_pin(text=bl_name, layer=pin.layer, offset=pin.ll().scale(1, 0), width=pin.width(), height=self.height) elif 'rbl_br' in bl_name: - if mirror != "MY": - bl_name = bl_name.replace("rbl_br","rbl_bl") + # if mirror != "MY": + # bl_name = bl_name.replace("rbl_br","rbl_bl") self.add_layout_pin(text=bl_name, layer=pin.layer, offset=pin.ll().scale(1, 0) + vector(0,(pin_height + drc_width*2)),