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
c612bdbc
Commit
c612bdbc
authored
Aug 30, 2022
by
Dinple
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Overhaul WIP + redo testbench
parent
3dfa0aa5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
+22
-6
.gitignore
+5
-2
CodeElements/Plc_client/README.md
+17
-4
CodeElements/Plc_client/plc_client_os.py
+0
-0
CodeElements/Plc_client/plc_client_os_test.py
+0
-0
No files found.
.gitignore
View file @
c612bdbc
...
...
@@ -2,4 +2,8 @@ Flows/*/*/run/*/
Flows/*/*/run-*
Flows/job
CodeElements/*/*/__pycache__
CodeElements/Plc_client/test/*
\ No newline at end of file
CodeElements/Plc_client/test/
CodeElements/Plc_client/test/*/*
CodeElements/Plc_client/plc_client_os.py
CodeElements/Plc_client/__pycache__/*
CodeElements/Plc_client/proto_reader.py
CodeElements/Plc_client/README.md
View file @
c612bdbc
...
...
@@ -9,7 +9,20 @@ curl 'https://raw.githubusercontent.com/google-research/circuit_training/main/ci
sudo curl https://storage.googleapis.com/rl-infra-public/circuit-training/placement_cost/plc_wrapper_main \
-o /usr/local/bin/plc_wrapper_main
# Run plc testbench
python -m Plc_client.plc_client_os_test
# python -m Plc_client.plc_client_os_test [-h] [--helpfull] --netlist NETLIST [--plc PLC] --width WIDTH --height HEIGHT --col COL --row ROW [--rpmh RPMH] [--rpmv RPMV] [--marh MARH] [--marv MARV] [--smooth SMOOTH]
# Example
python -m Plc_client.plc_client_os_test --netlist ./Plc_client/test/ariane/netlist.pb.txt\
--plc ./Plc_client/test/ariane/initial.plc\
--width 356.592\
--height 356.640\
--col 35\
--row 33\
--rpmh 10\
--rpmv 10\
--marh 5\
--marv 5\
--smooth 2
```
## HPWL Computation
...
...
@@ -27,15 +40,15 @@ $$
HPWL(netlist) =
\s
um_{i}^{N_{netlist}} W_{i
\_
{source}}
\c
dot
[
max_{b\in i}(x_b) - min_{b\in i}(x_b) + max_{b\in i}(y_b) - min_{b\in i}(y_b)
]
$$
## Density
Cost Computation
## Density Cost Computation
Density cost is computed from grid cells density.
By default, any given input will have grid col/row set to 10/10 until user later defines in the .plc file.
Grid cell density is represented as an 1D array where the length is set to be
Grid cell density is represented as an 1D array where the length is set to be
the following:
$$
grid_
\{
col}
\c
dot grid_
\
{
row}
grid_
{col}
\c
dot grid_
{row}
$$
Each entry of this array represents the current occupied precentage within this cell.
...
...
CodeElements/Plc_client/plc_client_os.py
View file @
c612bdbc
This diff is collapsed.
Click to expand it.
CodeElements/Plc_client/plc_client_os_test.py
View file @
c612bdbc
This diff is collapsed.
Click to expand it.
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