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
9fe6da26
Commit
9fe6da26
authored
Sep 29, 2022
by
Dinple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
discrep found
parent
ccf490ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
CodeElements/Plc_client/plc_client_os_test.py
+18
-15
No files found.
CodeElements/Plc_client/plc_client_os_test.py
View file @
9fe6da26
...
...
@@ -46,14 +46,14 @@ Example:
$ python3 -m Plc_client.plc_client_os_test --netlist ./Plc_client/test/ariane_68_1.3/netlist.pb.txt
\
--plc ./Plc_client/test/ariane_68_1.3//initial.plc
\
--width 1
599
\
--height 1
600.06
\
--col 2
4
\
--row 2
1
\
--rpmh 1
0
\
--rpmv 1
0
\
--marh
5
\
--marv
5
\
--width 1
347.100
\
--height 1
346.800
\
--col 2
3
\
--row 2
8
\
--rpmh 1
1.285
\
--rpmv 1
2.605
\
--marh
7.143
\
--marv
8.339
\
--smooth 2
$ python3 -m Plc_client.plc_client_os_test --netlist ./Plc_client/test/0P2M0m/netlist.pb.txt
\
...
...
@@ -598,13 +598,13 @@ class PlacementCostTest():
if
self
.
PLC_PATH
:
print
(
"[PLC FILE FOUND] Loading info from .plc file"
)
self
.
plc_os
.
set_canvas_boundary_check
(
False
)
self
.
plc_os
.
restore_placement
(
self
.
PLC_PATH
,
self
.
plc_
util_
os
.
set_canvas_boundary_check
(
False
)
self
.
plc_
util_
os
.
restore_placement
(
self
.
PLC_PATH
,
ifInital
=
True
,
ifValidate
=
True
,
ifReadComment
=
False
)
self
.
plc
.
set_canvas_boundary_check
(
False
)
self
.
plc
.
restore_placement
(
self
.
PLC_PATH
)
self
.
plc
_util
.
set_canvas_boundary_check
(
False
)
self
.
plc
_util
.
restore_placement
(
self
.
PLC_PATH
)
else
:
print
(
"[PLC FILE MISSING] Using only netlist info"
)
...
...
@@ -620,8 +620,11 @@ class PlacementCostTest():
static_feature_gl
=
self
.
extractor
.
_extract_static_features
()
static_feature_os
=
self
.
extractor_os
.
_extract_static_features
()
for
feature_gl
,
feature_os
in
zip
(
static_feature_gl
,
static_feature_os
):
assert
(
static_feature_gl
[
feature_gl
]
==
static_feature_os
[
feature_os
])
.
all
()
try
:
assert
(
static_feature_gl
[
feature_gl
]
==
static_feature_os
[
feature_os
])
.
all
()
except
AssertionError
:
print
(
"[ERROR OBSERVATION EXTRACTOR TEST] Failing on "
+
str
(
feature_gl
))
print
(
" ++++++++++++++++++++++++++++++++++++++++"
)
print
(
" +++ TEST OBSERVATION EXTRACTOR: PASS +++"
)
...
...
@@ -801,7 +804,7 @@ def main(args):
# PCT.test_placement_util(keep_save_file=False)
# PCT.test_place_node()
# PCT.test_miscellaneous()
#
PCT.test_observation_extractor()
PCT
.
test_observation_extractor
()
# PCT.view_canvas()
# PCT.test_proxy_congestion()
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