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
d9a31c9a
Commit
d9a31c9a
authored
Oct 07, 2022
by
Dinple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
e634766f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
CodeElements/Plc_client/plc_client_os.py
+1
-0
CodeElements/Plc_client/plc_client_os_test.py
+12
-4
No files found.
CodeElements/Plc_client/plc_client_os.py
View file @
d9a31c9a
...
...
@@ -245,6 +245,7 @@ class PlacementCost(object):
if
node_name
==
"__metadata__"
:
# skipping metadata header
logging
.
info
(
'[INFO NETLIST PARSER] skipping invalid net input'
)
elif
attr_dict
[
'type'
][
1
]
==
'macro'
:
# soft macro
# check if all required information is obtained
...
...
CodeElements/Plc_client/plc_client_os_test.py
View file @
d9a31c9a
...
...
@@ -214,7 +214,7 @@ class PlacementCostTest():
print
(
" +++ TEST METADATA: PASS +++"
)
print
(
" +++++++++++++++++++++++++++"
)
def
view_canvas
(
self
,
ifInital
,
ifReadComment
):
def
view_canvas
(
self
,
ifInital
=
False
,
ifReadComment
=
False
):
print
(
"############################ VIEW CANVAS ############################"
)
self
.
plc_os
=
plc_client_os
.
PlacementCost
(
netlist_file
=
self
.
NETLIST_PATH
,
macro_macro_x_spacing
=
50
,
...
...
@@ -229,8 +229,15 @@ class PlacementCostTest():
ifInital
=
ifInital
,
ifValidate
=
False
,
ifReadComment
=
ifReadComment
)
self
.
plc_os
.
set_routes_per_micron
(
self
.
RPMH
,
self
.
RPMV
)
self
.
plc_os
.
set_macro_routing_allocation
(
self
.
MARH
,
self
.
MARV
)
self
.
plc_os
.
set_congestion_smooth_range
(
self
.
SMOOTH
)
self
.
plc_os
.
set_canvas_size
(
self
.
CANVAS_WIDTH
,
self
.
CANVAS_HEIGHT
)
self
.
plc_os
.
set_placement_grid
(
self
.
GRID_COL
,
self
.
GRID_ROW
)
# show canvas
self
.
plc_os
.
display_canvas
(
annotate
=
False
,
amplify
=
False
)
def
test_proxy_cost
(
self
):
print
(
"############################ TEST PROXY COST ############################"
)
...
...
@@ -297,7 +304,7 @@ class PlacementCostTest():
str
(
self
.
plc
.
get_cost
()),
self
.
plc_os
.
get_cost
()))
print
(
"GL WIRELENGTH: "
,
self
.
plc
.
get_wirelength
())
print
(
"OS WIRELENGTH: "
,
self
.
plc_os
.
get_wirelength
())
exit
(
1
)
#
exit(1)
# Density
try
:
...
...
@@ -970,14 +977,15 @@ def main(args):
Uncomment any available tests
"""
# PCT.test_metadata()
PCT
.
test_proxy_cost
()
# PCT.test_proxy_cost()
PCT
.
test_proxy_hpwl
()
# PCT.test_proxy_density()
# PCT.test_proxy_congestion()
# PCT.test_placement_util(keep_save_file=False)
# PCT.test_place_node()
# PCT.test_miscellaneous()
# PCT.test_observation_extractor()
#
PCT.view_canvas()
PCT
.
view_canvas
()
# PCT.test_environment()
...
...
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