mirror of https://github.com/VLSIDA/OpenRAM.git
Fix offset bug with negative vertical supply rails
This commit is contained in:
parent
fa3bf2915a
commit
b72382b400
|
|
@ -226,9 +226,9 @@ class supply_router(router):
|
||||||
min_yoffset = self.rg.ll.y
|
min_yoffset = self.rg.ll.y
|
||||||
min_xoffset = self.rg.ll.x
|
min_xoffset = self.rg.ll.x
|
||||||
|
|
||||||
start_offset = min_yoffset + supply_number
|
|
||||||
|
|
||||||
# Horizontal supply rails
|
# Horizontal supply rails
|
||||||
|
start_offset = min_yoffset + supply_number
|
||||||
for offset in range(start_offset, max_yoffset, 2):
|
for offset in range(start_offset, max_yoffset, 2):
|
||||||
# Seed the function at the location with the given width
|
# Seed the function at the location with the given width
|
||||||
wave = [vector3d(min_xoffset,offset,0)]
|
wave = [vector3d(min_xoffset,offset,0)]
|
||||||
|
|
@ -243,7 +243,7 @@ class supply_router(router):
|
||||||
wave = added_rail.neighbor(direction.EAST)
|
wave = added_rail.neighbor(direction.EAST)
|
||||||
|
|
||||||
# Vertical supply rails
|
# Vertical supply rails
|
||||||
max_offset = self.rg.ur.x
|
start_offset = min_xoffset + supply_number
|
||||||
for offset in range(start_offset, max_xoffset, 2):
|
for offset in range(start_offset, max_xoffset, 2):
|
||||||
# Seed the function at the location with the given width
|
# Seed the function at the location with the given width
|
||||||
wave = [vector3d(offset,min_yoffset,1)]
|
wave = [vector3d(offset,min_yoffset,1)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue