mirror of https://github.com/VLSIDA/OpenRAM.git
Rename nwell yoffset for consistency
This commit is contained in:
parent
b3d1161957
commit
a32b5b13e8
|
|
@ -150,7 +150,7 @@ class pgate(design.design):
|
||||||
""" Extend the n/p wells to cover whole cell """
|
""" Extend the n/p wells to cover whole cell """
|
||||||
|
|
||||||
# This should match the cells in the cell library
|
# This should match the cells in the cell library
|
||||||
self.nwell_y_offset = 0.48 * self.height
|
self.nwell_yoffset = 0.48 * self.height
|
||||||
full_height = self.height + 0.5 * self.m1_width
|
full_height = self.height + 0.5 * self.m1_width
|
||||||
|
|
||||||
# FIXME: float rounding problem
|
# FIXME: float rounding problem
|
||||||
|
|
@ -158,8 +158,8 @@ class pgate(design.design):
|
||||||
# Add a rail width to extend the well to the top of the rail
|
# Add a rail width to extend the well to the top of the rail
|
||||||
nwell_max_offset = max(self.find_highest_layer_coords("nwell").y,
|
nwell_max_offset = max(self.find_highest_layer_coords("nwell").y,
|
||||||
full_height)
|
full_height)
|
||||||
nwell_position = vector(0, self.nwell_y_offset) - vector(self.well_extend_active, 0)
|
nwell_position = vector(0, self.nwell_yoffset) - vector(self.well_extend_active, 0)
|
||||||
nwell_height = nwell_max_offset - self.nwell_y_offset
|
nwell_height = nwell_max_offset - self.nwell_yoffset
|
||||||
self.add_rect(layer="nwell",
|
self.add_rect(layer="nwell",
|
||||||
offset=nwell_position,
|
offset=nwell_position,
|
||||||
width=self.width + 2 * self.well_extend_active,
|
width=self.width + 2 * self.well_extend_active,
|
||||||
|
|
@ -175,7 +175,7 @@ class pgate(design.design):
|
||||||
pwell_min_offset = min(self.find_lowest_layer_coords("pwell").y,
|
pwell_min_offset = min(self.find_lowest_layer_coords("pwell").y,
|
||||||
-0.5 * self.m1_width)
|
-0.5 * self.m1_width)
|
||||||
pwell_position = vector(-self.well_extend_active, pwell_min_offset)
|
pwell_position = vector(-self.well_extend_active, pwell_min_offset)
|
||||||
pwell_height = self.nwell_y_offset - pwell_position.y
|
pwell_height = self.nwell_yoffset - pwell_position.y
|
||||||
self.add_rect(layer="pwell",
|
self.add_rect(layer="pwell",
|
||||||
offset=pwell_position,
|
offset=pwell_position,
|
||||||
width=self.width + 2 * self.well_extend_active,
|
width=self.width + 2 * self.well_extend_active,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue