Move precharge pin to bottom

This commit is contained in:
mrg 2020-06-04 12:12:19 -07:00
parent 717188f85c
commit e06dc3810a
1 changed files with 6 additions and 5 deletions

View File

@ -191,14 +191,15 @@ class precharge(design.design):
""" """
# adds the en contact to connect the gates to the en rail # adds the en contact to connect the gates to the en rail
# midway in the 4 M2 tracks pin_offset = self.lower_pmos_inst.get_pin("G").lr()
offset = self.lower_pmos_inst.get_pin("G").ul() \ # This is an extra space down for some techs with contact to active spacing
+ vector(0, 0.5 * self.m2_pitch) offset = pin_offset - vector(0, self.poly_space)
self.add_via_stack_center(from_layer="poly", self.add_via_stack_center(from_layer="poly",
to_layer=self.en_layer, to_layer=self.en_layer,
offset=offset) offset=offset)
self.add_path("poly",
# adds the en rail on metal1 [self.lower_pmos_inst.get_pin("G").bc(), offset])
# adds the en rail
self.add_layout_pin_segment_center(text="en_bar", self.add_layout_pin_segment_center(text="en_bar",
layer=self.en_layer, layer=self.en_layer,
start=offset.scale(0, 1), start=offset.scale(0, 1),