mirror of https://github.com/VLSIDA/OpenRAM.git
Routing multilayer, around blockages.
This commit is contained in:
parent
784bad2e99
commit
614ff23e3a
|
|
@ -46,7 +46,6 @@ class grid:
|
||||||
|
|
||||||
# We shouldn't have a path greater than 50% the HPWL
|
# We shouldn't have a path greater than 50% the HPWL
|
||||||
# so scale all visited indices by this value for colorization
|
# 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 x in range(self.width):
|
||||||
for y in range(self.height):
|
for y in range(self.height):
|
||||||
h_map[x,y] = self.map[vector3d(x,y,0)].get_color()
|
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(mid_img, (self.width,0))
|
||||||
img.paste(v_img, (self.width+25,0))
|
img.paste(v_img, (self.width+25,0))
|
||||||
img.show()
|
img.show()
|
||||||
|
img.save("test.png")
|
||||||
|
|
||||||
def set_property(self,ll,ur,z,name,value=True):
|
def set_property(self,ll,ur,z,name,value=True):
|
||||||
for x in range(int(ll[0]),int(ur[0])):
|
for x in range(int(ll[0]),int(ur[0])):
|
||||||
|
|
@ -175,7 +175,7 @@ class grid:
|
||||||
debug.info(0,"Initializing queue.")
|
debug.info(0,"Initializing queue.")
|
||||||
for s in self.source:
|
for s in self.source:
|
||||||
cost = self.cost_to_target(s)
|
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]))
|
self.q.put((cost,[s]))
|
||||||
|
|
||||||
def cost_to_target(self,source):
|
def cost_to_target(self,source):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue