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
93752bef
Commit
93752bef
authored
Sep 23, 2022
by
Dinple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runnable on CT V2.0 (no discrep found for now)
parent
d2b1e651
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
CodeElements/Plc_client/plc_client_os.py
+18
-1
CodeElements/Plc_client/plc_client_os_test.py
+7
-2
No files found.
CodeElements/Plc_client/plc_client_os.py
View file @
93752bef
...
...
@@ -1677,7 +1677,24 @@ class PlacementCost(object):
return
mod
.
get_width
(),
mod
.
get_height
()
def
make_soft_macros_square
(
self
):
pass
"""
update soft macro width/height base on its square area
"""
def
update_soft_macros_position
(
self
,
coord_dict
):
"""
For sync-up with Google's plc_client after FD placer
"""
for
mod_idx
in
coord_dict
.
keys
():
self
.
modules_w_pins
[
mod_idx
]
.
set_pos
(
coord_dict
[
mod_idx
])
def
set_soft_macro_position
(
self
,
node_idx
,
x_pos
,
y_pos
):
"""
used for updating soft macro position
"""
self
.
modules_w_pins
[
node_idx
]
.
set_pos
(
x_pos
,
y_pos
)
def
set_use_incremental_cost
(
self
,
use_incremental_cost
):
self
.
use_incremental_cost
=
use_incremental_cost
...
...
CodeElements/Plc_client/plc_client_os_test.py
View file @
93752bef
...
...
@@ -271,6 +271,11 @@ class PlacementCostTest():
self
.
plc_os
.
set_canvas_size
(
self
.
CANVAS_WIDTH
,
self
.
CANVAS_HEIGHT
)
self
.
plc_os
.
set_placement_grid
(
self
.
GRID_COL
,
self
.
GRID_ROW
)
# SUBJECT TO DELETE
self
.
plc
.
make_soft_macros_square
()
print
(
self
.
plc
.
get_wirelength
())
print
(
self
.
plc_os
.
get_wirelength
())
# TODO: [IGNORE] create_blockage must be defined BEFORE set_canvas_size and set_placement_grid in order to be considered on the canvas
if
False
:
self
.
plc
.
create_blockage
(
0.0
,
100.0
,
300.0
,
300.0
,
1.0
)
...
...
@@ -792,10 +797,10 @@ def main(args):
smooth
=
args
.
smooth
)
# PCT.test_metadata()
PCT
.
test_proxy_cost
()
#
PCT.test_proxy_cost()
# PCT.test_placement_util(keep_save_file=False)
# PCT.test_place_node()
#
PCT.test_miscellaneous()
PCT
.
test_miscellaneous
()
# PCT.test_observation_extractor()
# PCT.view_canvas()
# PCT.test_proxy_congestion()
...
...
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