mirror of https://github.com/VLSIDA/OpenRAM.git
Initial update of new psdm/nsdm implants
This commit is contained in:
parent
2d2620d21a
commit
8fdd4966a7
|
|
@ -208,8 +208,9 @@ class pgate(design.design):
|
||||||
# from the top of the well
|
# from the top of the well
|
||||||
# OR align the active with the top of PMOS active.
|
# OR align the active with the top of PMOS active.
|
||||||
max_y_offset = self.height + 0.5 * self.m1_width
|
max_y_offset = self.height + 0.5 * self.m1_width
|
||||||
contact_yoffset = min(pmos_pos.y + pmos.active_height - pmos.active_contact.first_layer_height,
|
contact_yoffset = self.height - 0.5 * self.implant_width \
|
||||||
max_y_offset - pmos.active_contact.first_layer_height / 2 - self.nwell_enclose_active)
|
- pmos.active_contact.first_layer_height \
|
||||||
|
- self.implant_enclose_active
|
||||||
contact_offset = vector(contact_xoffset, contact_yoffset)
|
contact_offset = vector(contact_xoffset, contact_yoffset)
|
||||||
# Offset by half a contact in x and y
|
# Offset by half a contact in x and y
|
||||||
contact_offset += vector(0.5 * pmos.active_contact.first_layer_width,
|
contact_offset += vector(0.5 * pmos.active_contact.first_layer_width,
|
||||||
|
|
@ -276,24 +277,34 @@ class pgate(design.design):
|
||||||
rightx=rightx,
|
rightx=rightx,
|
||||||
topy=self.height)
|
topy=self.height)
|
||||||
|
|
||||||
try:
|
self.add_rect(layer="pimplant",
|
||||||
ntap_insts = [self.nwell_contact]
|
offset=vector(0, self.height - 0.5 * self.implant_width),
|
||||||
self.add_enclosure(ntap_insts,
|
width=self.width,
|
||||||
layer="nimplant",
|
height=self.implant_width)
|
||||||
extend=self.implant_enclose_active,
|
self.add_rect(layer="nimplant",
|
||||||
rightx=self.width,
|
offset=vector(0, -0.5 * self.implant_width),
|
||||||
topy=self.height)
|
width=self.width,
|
||||||
except AttributeError:
|
height=self.implant_width)
|
||||||
pass
|
|
||||||
try:
|
|
||||||
ptap_insts = [self.pwell_contact]
|
# try:
|
||||||
self.add_enclosure(ptap_insts,
|
# ntap_insts = [self.nwell_contact]
|
||||||
layer="pimplant",
|
# self.add_enclosure(ntap_insts,
|
||||||
extend=self.implant_enclose_active,
|
# layer="nimplant",
|
||||||
rightx=self.width,
|
# extend=self.implant_enclose_active,
|
||||||
boty=0)
|
# rightx=self.width,
|
||||||
except AttributeError:
|
# topy=self.height)
|
||||||
pass
|
# except AttributeError:
|
||||||
|
# pass
|
||||||
|
# try:
|
||||||
|
# ptap_insts = [self.pwell_contact]
|
||||||
|
# self.add_enclosure(ptap_insts,
|
||||||
|
# layer="pimplant",
|
||||||
|
# extend=self.implant_enclose_active,
|
||||||
|
# rightx=self.width,
|
||||||
|
# boty=0)
|
||||||
|
# except AttributeError:
|
||||||
|
# pass
|
||||||
|
|
||||||
def add_pwell_contact(self, nmos, nmos_pos):
|
def add_pwell_contact(self, nmos, nmos_pos):
|
||||||
""" Add an pwell contact next to the given nmos device. """
|
""" Add an pwell contact next to the given nmos device. """
|
||||||
|
|
@ -303,11 +314,8 @@ class pgate(design.design):
|
||||||
# To the right a spacing away from the nmos right active edge
|
# To the right a spacing away from the nmos right active edge
|
||||||
contact_xoffset = nmos_pos.x + nmos.active_width \
|
contact_xoffset = nmos_pos.x + nmos.active_width \
|
||||||
+ self.active_space
|
+ self.active_space
|
||||||
# Must be at least an well enclosure of active up
|
# Allow an nimplant below it under the rail
|
||||||
# from the bottom of the well
|
contact_yoffset = 0.5 * self.implant_width + self.implant_enclose_active
|
||||||
contact_yoffset = max(nmos_pos.y,
|
|
||||||
self.nwell_enclose_active \
|
|
||||||
- nmos.active_contact.first_layer_height / 2)
|
|
||||||
contact_offset = vector(contact_xoffset, contact_yoffset)
|
contact_offset = vector(contact_xoffset, contact_yoffset)
|
||||||
|
|
||||||
# Offset by half a contact
|
# Offset by half a contact
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue