From e144f03b23c9a821cf5a0c67dc09bb5f8c55e9df Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 24 Mar 2021 11:15:59 -0700 Subject: [PATCH] Add status for supply routing. --- compiler/router/supply_tree_router.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/compiler/router/supply_tree_router.py b/compiler/router/supply_tree_router.py index 0b29119d..e0455602 100644 --- a/compiler/router/supply_tree_router.py +++ b/compiler/router/supply_tree_router.py @@ -79,8 +79,8 @@ class supply_tree_router(router): """ remaining_components = sum(not x.is_routed() for x in self.pin_groups[pin_name]) - debug.info(1, "Routing {0} with {1} pin components to connect.".format(pin_name, - remaining_components)) + debug.info(1, "Routing {0} with {1} pins.".format(pin_name, + remaining_components)) # Create full graph debug.info(2, "Creating adjacency matrix") @@ -108,7 +108,9 @@ class supply_tree_router(router): connections.append((x, y)) # Route MST components - for (src, dest) in connections: + for index, (src, dest) in enumerate(connections): + if not (index % 100): + debug.info(0, "{0} supply segments routed, {1} remaining.".format(index, len(connections) - index)) self.route_signal(pin_name, src, dest) # if pin_name == "gnd": # print("\nSRC {}: ".format(src) + str(self.pin_groups[pin_name][src].grids) + str(self.pin_groups[pin_name][src].blockages))