Add contact to gate spacing for precharge

This commit is contained in:
mrg 2020-06-11 11:54:34 -07:00
parent 089331ced3
commit 1a2e0046b1
1 changed files with 4 additions and 1 deletions

View File

@ -195,7 +195,10 @@ class precharge(design.design):
# adds the en contact to connect the gates to the en rail
pin_offset = self.lower_pmos_inst.get_pin("G").lr()
# This is an extra space down for some techs with contact to active spacing
offset = pin_offset - vector(0, self.poly_space)
contact_space = max(self.poly_space,
self.contact_to_gate) + 0.5 * contact.poly_contact.first_layer_height
print(self.contact_to_gate)
offset = pin_offset - vector(0, contact_space)
self.add_via_stack_center(from_layer="poly",
to_layer=self.en_layer,
offset=offset)