Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
macroplacement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
macroplacement
Commits
644fb6f1
Commit
644fb6f1
authored
Jun 14, 2022
by
ZhiangWang033
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add breaking and merging
parent
d0878691
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
CodeElements/Clustering/src/clustering.py
+0
-0
CodeElements/Clustering/test/test_clustering.py
+11
-1
CodeElements/Grouping/src/__pycache__/grouping.cpython-37.pyc
+0
-0
No files found.
CodeElements/Clustering/src/clustering.py
View file @
644fb6f1
This diff is collapsed.
Click to expand it.
CodeElements/Clustering/test/test_clustering.py
View file @
644fb6f1
...
...
@@ -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
)
...
...
CodeElements/Grouping/src/__pycache__/grouping.cpython-37.pyc
0 → 100644
View file @
644fb6f1
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment