Commit 6948ed0a by ZhiangWang033

grid width

parent 68ad6898
...@@ -42,6 +42,7 @@ class Clustering: ...@@ -42,6 +42,7 @@ class Clustering:
self.RePlace = RePlace self.RePlace = RePlace
self.placement_density = placement_density self.placement_density = placement_density
self.GUI = GUI self.GUI = GUI
self.grid_width = grid_width
### Print Information ### Print Information
print("[INFO] step_threshold : ", self.step_threshold) print("[INFO] step_threshold : ", self.step_threshold)
...@@ -127,7 +128,7 @@ class Clustering: ...@@ -127,7 +128,7 @@ class Clustering:
ProBufFormat(self.io_name_file, self.macro_pin_file, \ ProBufFormat(self.io_name_file, self.macro_pin_file, \
self.instance_name_file, self.outline_file, \ self.instance_name_file, self.outline_file, \
self.net_file, self.soft_macros, \ self.net_file, self.soft_macros, \
self.pbf_file, self.net_size_threshold, 1.0) self.pbf_file, self.net_size_threshold, self.grid_width)
self.CreateInvsCluster() # Generate Innovus Clustering Commands self.CreateInvsCluster() # Generate Innovus Clustering Commands
......
...@@ -12,7 +12,7 @@ if __name__ == '__main__': ...@@ -12,7 +12,7 @@ if __name__ == '__main__':
parser.add_argument("--fixed_file", help="fixed file generated by grouping", type = str, default = "./fix_files_grouping/ariane.fix.old") 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 = 400.0) parser.add_argument("--step_threshold", help = "threshold (x and y) to break clusters (in um)", type = float, default = 400.0)
parser.add_argument("--distance", help="distance for merge clusters", type = float, default = 200.0) parser.add_argument("--distance", help="distance for merge clusters", type = float, default = 200.0)
parser.add_argument("--grid_width", help="grid width, the width of soft macro", type = int, default = 30.0) parser.add_argument("--grid_width", help="grid width, the width of soft macro", type = int, default = 100.0)
parser.add_argument("--max_num_vertices", help="threshold for samller clusters", type = int, default = 100) parser.add_argument("--max_num_vertices", help="threshold for samller clusters", type = int, default = 100)
parser.add_argument("--net_size_threshold", help = "large net threshold", type = int, default = 300) 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("--Nparts", help = "number of clusters (only for hmetis, default = 500)", type = int, default = 500)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -19,6 +19,9 @@ setup_file = "setup.tcl" ...@@ -19,6 +19,9 @@ setup_file = "setup.tcl"
design = "ariane" design = "ariane"
macro_lefs = ["./lefs/fakeram45_256x16.lef"] macro_lefs = ["./lefs/fakeram45_256x16.lef"]
"""
############################################## ##############################################
### Call Gridding Function ### Call Gridding Function
############################################## ##############################################
...@@ -36,6 +39,11 @@ gridding = GriddingLefDefInterface(gridding_src_dir, design, setup_file, toleran ...@@ -36,6 +39,11 @@ gridding = GriddingLefDefInterface(gridding_src_dir, design, setup_file, toleran
max_rows_times_cols) max_rows_times_cols)
num_rows = gridding.GetNumRows() num_rows = gridding.GetNumRows()
num_cols = gridding.GetNumCols() num_cols = gridding.GetNumCols()
"""
num_rows = 19
num_cols = 19
############################################## ##############################################
### Call Grouping Function ### Call Grouping Function
...@@ -59,13 +67,19 @@ os.system(cmd) ...@@ -59,13 +67,19 @@ os.system(cmd)
fixed_file = grouping_rpt_dir + "/" + design + ".fix.old" fixed_file = grouping_rpt_dir + "/" + design + ".fix.old"
exit()
############################################## ##############################################
### Call Clustering Function ### Call Clustering Function
############################################## ##############################################
clustering_src_dir = '../Clustering/src' clustering_src_dir = '../Clustering/src'
chip_width = gridding.GetChipWidth() #chip_width = gridding.GetChipWidth()
chip_height = gridding.GetChipHeight() #chip_height = gridding.GetChipHeight()
num_std_cells = gridding.GetNumStdCells() #num_std_cells = gridding.GetNumStdCells()
chip_width = 1599.99
chip_height = 1600.06
num_std_cells = 87452
grid_width = chip_width / num_cols grid_width = chip_width / num_cols
Nparts = 500 Nparts = 500
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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