mirror of https://github.com/VLSIDA/OpenRAM.git
Round middle position fix
This commit is contained in:
parent
aa8f389f28
commit
71cbe74017
|
|
@ -49,7 +49,7 @@ class vector():
|
|||
else:
|
||||
self.x=float(value[0])
|
||||
self.y=float(value[1])
|
||||
|
||||
|
||||
def __getitem__(self, index):
|
||||
"""
|
||||
override getitem function
|
||||
|
|
|
|||
|
|
@ -126,6 +126,8 @@ class pgate(design.design):
|
|||
def extend_wells(self, middle_position):
|
||||
""" Extend the n/p wells to cover whole cell """
|
||||
|
||||
# FIXME: float rounding problem
|
||||
middle_position = middle_position.snap_to_grid()
|
||||
# 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,
|
||||
self.height + 0.5 * self.m1_width)
|
||||
|
|
|
|||
Loading…
Reference in New Issue