Commit 644fb6f1 by ZhiangWang033

add breaking and merging

parent d0878691
......@@ -10,6 +10,9 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument("--design", help="design_name: ariane, MegaBoom_x2 ", type = str, default = "ariane")
parser.add_argument("--fixed_file", help="fixed file generated by grouping", type = str, default = "./fix_files_grouping/ariane.fix.old")
parser.add_argument("--step_threshold", help = "threshold (x and y) to break clusters (in um)", type = float, default = 100.6)
parser.add_argument("--distance", help="distance for merge clusters", type = float, default = 1000.0)
parser.add_argument("--max_num_vertices", help="threshold for samller clusters", type = int, default = 1000000)
parser.add_argument("--net_size_threshold", help = "large net threshold", type = int, default = 300)
parser.add_argument("--Nparts", help = "number of clusters (only for hmetis, default = 500)", type = int, default = 500)
parser.add_argument("--setup_file", help = "setup file for openroad (default = setup.tcl)", type = str, default = "setup.tcl")
......@@ -27,6 +30,9 @@ if __name__ == '__main__':
# Then we will remove all the IOs and Macros when we create soft blocks.
fixed_file = args.fixed_file
step_threshold = args.step_threshold
distance = args.distance
max_num_vertices = args.max_num_vertices
net_size_threshold = args.net_size_threshold
Nparts = args.Nparts
setup_file = args.setup_file
......@@ -38,7 +44,11 @@ if __name__ == '__main__':
# To use the grouping function, you need to specify the directory of src file
src_dir = "../src"
Clustering(design, src_dir, fixed_file, net_size_threshold, Nparts, setup_file, RePlace, placement_density, GUI)
Clustering(design, src_dir, fixed_file, step_threshold, distance,
max_num_vertices, net_size_threshold, Nparts, setup_file,
RePlace, placement_density, GUI)
......
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