Move supply pins for wmask and array to edge to avoid channel route congestion

This commit is contained in:
mrg 2020-12-17 11:48:08 -08:00
parent c0ab0af201
commit e6ff73dbc1
1 changed files with 4 additions and 5 deletions

View File

@ -138,12 +138,11 @@ class write_mask_and_array(design.design):
self.add_via_stack_center(from_layer=en_pin.layer,
to_layer="m3",
offset=en_pos)
for supply in ["gnd", "vdd"]:
supply_pin=self.and2_insts[i].get_pin(supply)
self.add_power_pin(supply, supply_pin.center(), start_layer=supply_pin.layer)
for supply in ["gnd", "vdd"]:
supply_pin_left = self.and2_insts[0].get_pin(supply)
supply_pin_right = self.and2_insts[self.num_wmasks - 1].get_pin(supply)
self.add_path(supply_pin_left.layer, [supply_pin_left.lc(), supply_pin_right.rc()])
self.add_power_pin(supply, supply_pin_left.center(), start_layer=supply_pin_left.layer)
self.add_power_pin(supply, supply_pin_right.center(), start_layer=supply_pin_right.layer)