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
1f74af52
Commit
1f74af52
authored
Jul 09, 2022
by
sakundu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comment in gen_plc_from_pb.py file
Signed-off-by: sakundu <sakundu@ucsd.edu>
parent
58ed7885
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
Flows/util/gen_plc_from_pb.py
+8
-1
No files found.
Flows/util/gen_plc_from_pb.py
View file @
1f74af52
...
...
@@ -89,16 +89,22 @@ for node in node_list:
area1
=
0
area2
=
0
soft_macro_count
=
0
hard_macro_count
=
0
for
node
in
port_list
:
fp
.
write
(
f
"{node.node_id} {n
ode.x} {node.y
} - 1
\n
"
)
fp
.
write
(
f
"{node.node_id} {n
p.round(float(node.x),3)} {np.round(float(node.y),3)
} - 1
\n
"
)
for
node
in
hard_macro_list
:
fp
.
write
(
f
"{node.node_id} {np.round(float(node.x),3)} {np.round(float(node.y),3)} N 0
\n
"
)
area1
+=
float
(
node
.
height
)
*
float
(
node
.
width
)
hard_macro_count
+=
1
for
node
in
soft_macro_list
:
fp
.
write
(
f
"{node.node_id} {np.round(float(node.x),3)} {np.round(float(node.y),3)} N 0
\n
"
)
area2
+=
float
(
node
.
height
)
*
float
(
node
.
width
)
soft_macro_count
+=
1
area
=
area1
+
area2
fp
.
write
(
f
"# Area: {area}
\n
"
)
fp
.
write
(
f
"# SOFT MACRO COUNT: {soft_macro_count}
\n
"
)
fp
.
write
(
f
"# HARD MACRO COUNT: {hard_macro_count}
\n
"
)
fp
.
close
()
\ No newline at end of file
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