router/supply_grid_router: Print init time to the user

this can take considerable amount of time, so the user knows that
useful work is done.

Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
Bastian Koppelmann 2020-01-03 12:24:14 +01:00
parent c0c89e465a
commit 2c610036b2
1 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ class supply_grid_router(router):
This will route on layers in design. It will get the blockages from This will route on layers in design. It will get the blockages from
either the gds file name or the design itself (by saving to a gds file). either the gds file name or the design itself (by saving to a gds file).
""" """
start_time = datetime.now()
# Power rail width in minimum wire widths # Power rail width in minimum wire widths
self.rail_track_width = 3 self.rail_track_width = 3
@ -40,8 +42,8 @@ class supply_grid_router(router):
self.supply_rails = {} self.supply_rails = {}
# This is the same as above but as a sigle set for the all the rails # This is the same as above but as a sigle set for the all the rails
self.supply_rail_tracks = {} self.supply_rail_tracks = {}
print_time("Init supply router", datetime.now(), start_time, 3)
def create_routing_grid(self): def create_routing_grid(self):