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
4eef4d8b
Commit
4eef4d8b
authored
Dec 25, 2022
by
ZhiangWang033
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify 1225
parent
001262bd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
CodeElements/FDPlacement/FD.py
+20
-6
CodeElements/FDPlacement/ariane133/ariane.os.pb.txt.final
+0
-0
CodeElements/FDPlacement/ariane133/ariane.os.plc.final
+0
-0
CodeElements/FDPlacement/ariane133/ariane.os.plc.final.png
+0
-0
No files found.
CodeElements/FDPlacement/FD.py
View file @
4eef4d8b
...
...
@@ -1055,18 +1055,32 @@ class PBFNetlist:
target_lx
,
target_ly
,
target_ux
,
target_uy
=
self
.
objects
[
target_macro
]
.
GetBBox
()
x_dir
=
0
y_dir
=
0
if
(
src_lx
>=
target_ux
or
src_ux
<=
target_lx
or
src_ly
>=
target_uy
or
src_uy
<=
target_ly
):
# there is no overlap
return
None
,
None
else
:
src_width
=
src_ux
-
src_lx
src_height
=
src_uy
-
src_ly
target_width
=
target_ux
-
target_lx
target_height
=
target_uy
-
target_ly
src_cx
=
(
src_lx
+
src_ux
)
/
2.0
src_cy
=
(
src_ly
+
src_uy
)
/
2.0
target_cx
=
(
target_lx
+
target_ux
)
/
2.0
target_cy
=
(
target_ly
+
target_uy
)
/
2.0
min_dist
=
1e-4
x_min_dist
=
(
src_width
+
target_width
)
/
2.0
y_min_dist
=
(
src_height
+
target_height
)
/
2.0
if
(
abs
(
target_cx
-
src_cx
)
>
(
x_min_dist
-
min_dist
)):
# there is no overlap
return
None
,
None
if
(
abs
(
target_cy
-
src_cy
)
>
(
y_min_dist
-
min_dist
)):
# there is no overlap
return
None
,
None
# there is no overlap
if
(
src_cx
==
target_cx
and
src_cy
==
target_cy
):
# fully overlap
x_dir
=
-
1.0
/
sqrt
(
2.0
)
y_dir
=
-
1.0
/
sqrt
(
2.0
)
x_dir
=
-
1.0
y_dir
=
-
1.0
return
x_dir
,
y_dir
else
:
x_dir
=
src_cx
-
target_cx
...
...
CodeElements/FDPlacement/ariane133/ariane.os.pb.txt.final
View file @
4eef4d8b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
CodeElements/FDPlacement/ariane133/ariane.os.plc.final
View file @
4eef4d8b
This diff is collapsed.
Click to expand it.
CodeElements/FDPlacement/ariane133/ariane.os.plc.final.png
View replaced file @
001262bd
View file @
4eef4d8b
137 KB
|
W:
|
H:
135 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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