Improve output messaging of tree router

This commit is contained in:
mrg 2020-12-16 16:57:40 -08:00
parent 2b0f8bf263
commit 11384ef926
1 changed files with 4 additions and 2 deletions

View File

@ -133,8 +133,8 @@ class supply_tree_router(router):
""" """
remaining_components = sum(not x.is_routed() for x in self.pin_groups[pin_name]) remaining_components = sum(not x.is_routed() for x in self.pin_groups[pin_name])
debug.info(1,"Maze routing {0} with {1} pin components to connect.".format(pin_name, debug.info(1,"Routing {0} with {1} pin components to connect.".format(pin_name,
remaining_components)) remaining_components))
# Create full graph # Create full graph
pin_size = len(self.pin_groups[pin_name]) pin_size = len(self.pin_groups[pin_name])
@ -159,6 +159,8 @@ class supply_tree_router(router):
if mst[x][y]>0: if mst[x][y]>0:
connections.append((x, y)) connections.append((x, y))
debug.info(1,"MST has {0} segments.".format(len(connections)))
# Route MST components # Route MST components
for (src, dest) in connections: for (src, dest) in connections:
self.route_signal(pin_name, src, dest) self.route_signal(pin_name, src, dest)