From 614ff23e3a9d586d99d7c5c01b2c19ff93b03bb5 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Wed, 16 Nov 2016 16:52:33 -0800 Subject: [PATCH] Routing multilayer, around blockages. --- compiler/router/grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/router/grid.py b/compiler/router/grid.py index e01d858e..45b90d13 100644 --- a/compiler/router/grid.py +++ b/compiler/router/grid.py @@ -46,7 +46,6 @@ class grid: # We shouldn't have a path greater than 50% the HPWL # so scale all visited indices by this value for colorization - cell.scale = 1.5 * (self.width+self.height) for x in range(self.width): for y in range(self.height): h_map[x,y] = self.map[vector3d(x,y,0)].get_color() @@ -62,6 +61,7 @@ class grid: img.paste(mid_img, (self.width,0)) img.paste(v_img, (self.width+25,0)) img.show() + img.save("test.png") def set_property(self,ll,ur,z,name,value=True): for x in range(int(ll[0]),int(ur[0])): @@ -175,7 +175,7 @@ class grid: debug.info(0,"Initializing queue.") for s in self.source: cost = self.cost_to_target(s) - debug.info(1,"Init: cost=" + str(cost) + " " + str([s])) + debug.info(2,"Init: cost=" + str(cost) + " " + str([s])) self.q.put((cost,[s])) def cost_to_target(self,source):