From b72382b400be40a6af835aef9ff1acbc3a1f3899 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Thu, 6 Dec 2018 11:58:19 -0800 Subject: [PATCH] Fix offset bug with negative vertical supply rails --- compiler/router/supply_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/router/supply_router.py b/compiler/router/supply_router.py index 0596aaf0..1437eb0e 100644 --- a/compiler/router/supply_router.py +++ b/compiler/router/supply_router.py @@ -226,9 +226,9 @@ class supply_router(router): min_yoffset = self.rg.ll.y min_xoffset = self.rg.ll.x - start_offset = min_yoffset + supply_number # Horizontal supply rails + start_offset = min_yoffset + supply_number for offset in range(start_offset, max_yoffset, 2): # Seed the function at the location with the given width wave = [vector3d(min_xoffset,offset,0)] @@ -243,7 +243,7 @@ class supply_router(router): wave = added_rail.neighbor(direction.EAST) # Vertical supply rails - max_offset = self.rg.ur.x + start_offset = min_xoffset + supply_number for offset in range(start_offset, max_xoffset, 2): # Seed the function at the location with the given width wave = [vector3d(offset,min_yoffset,1)]