From f9738253c67db1e28fafde418696d5454cf09197 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Sat, 20 Oct 2018 11:53:52 -0700 Subject: [PATCH] Remove warning of track space and floor the space function. --- compiler/router/supply_router.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/router/supply_router.py b/compiler/router/supply_router.py index 45a3505f..10c8ebda 100644 --- a/compiler/router/supply_router.py +++ b/compiler/router/supply_router.py @@ -277,8 +277,7 @@ class supply_router(router): self.supply_rail_wire_width = self.supply_rail_width - space_tracks debug.info(1,"Rail wire tracks: {}".format(self.supply_rail_wire_width)) total_space = self.supply_rail_width - self.supply_rail_wire_width - debug.check(total_space % 2 == 0, "Asymmetric wire track spacing...") - self.supply_rail_space_width = int(0.5*total_space) + self.supply_rail_space_width = math.floor(0.5*total_space) debug.info(1,"Rail space tracks: {} (on both sides)".format(self.supply_rail_space_width))