Commit 933fafee by Dinple

update on congestion

parent 5c5e93f5
...@@ -45,10 +45,10 @@ class CircuitDataBaseTest(): ...@@ -45,10 +45,10 @@ class CircuitDataBaseTest():
# GRID_ROW = 4 # GRID_ROW = 4
# PMm # PMm
CANVAS_WIDTH = 100 # CANVAS_WIDTH = 100
CANVAS_HEIGHT = 100 # CANVAS_HEIGHT = 100
GRID_COL = 3 # GRID_COL = 20
GRID_ROW = 3 # GRID_ROW = 20
def __init__(self, NETLIST_PATH) -> None: def __init__(self, NETLIST_PATH) -> None:
self.NETLIST_PATH = NETLIST_PATH self.NETLIST_PATH = NETLIST_PATH
...@@ -65,8 +65,8 @@ class CircuitDataBaseTest(): ...@@ -65,8 +65,8 @@ class CircuitDataBaseTest():
self.plc.set_macro_routing_allocation(10, 10) self.plc.set_macro_routing_allocation(10, 10)
self.plc_os.set_macro_routing_allocation(10, 10) self.plc_os.set_macro_routing_allocation(10, 10)
self.plc.set_congestion_smooth_range(2.0) self.plc.set_congestion_smooth_range(0.0)
self.plc_os.set_congestion_smooth_range(2.0) self.plc_os.set_congestion_smooth_range(0.0)
self.plc.set_canvas_size(self.CANVAS_WIDTH, self.CANVAS_HEIGHT) self.plc.set_canvas_size(self.CANVAS_WIDTH, self.CANVAS_HEIGHT)
self.plc.set_placement_grid(self.GRID_COL, self.GRID_ROW) self.plc.set_placement_grid(self.GRID_COL, self.GRID_ROW)
...@@ -75,7 +75,7 @@ class CircuitDataBaseTest(): ...@@ -75,7 +75,7 @@ class CircuitDataBaseTest():
print("Name: ", self.plc.get_source_filename().rsplit("/", 1)[1]) print("Name: ", self.plc.get_source_filename().rsplit("/", 1)[1])
self.plc_os.display_canvas() # self.plc_os.display_canvas()
# start = time.time() # start = time.time()
temp_gl_h = self.plc.get_horizontal_routing_congestion() temp_gl_h = self.plc.get_horizontal_routing_congestion()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment