Skip to content

Commit 5e02cbe

Browse files
committed
update ORFS and fix conflict on aes-block rules
Signed-off-by: Jonas Gava <jfgava@precisioninno.com>
2 parents cef123d + 7015cf3 commit 5e02cbe

37 files changed

Lines changed: 167 additions & 117 deletions

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ configuration file.
100100
| <a name="ADDITIONAL_GDS"></a>ADDITIONAL_GDS| Hardened macro GDS files listed here.| |
101101
| <a name="ADDITIONAL_LEFS"></a>ADDITIONAL_LEFS| Hardened macro LEF view files listed here. The LEF information of the macros is immutable and used throughout all stages. Stored in the .odb file.| |
102102
| <a name="ADDITIONAL_LIBS"></a>ADDITIONAL_LIBS| Hardened macro library files listed here. The library information is immutable and used throughout all stages. Not stored in the .odb file.| |
103+
| <a name="ASAP7_USE_VT"></a>ASAP7_USE_VT| A space separated list of VT options to use with the ASAP7 standard cell library: RVT, LVT, SLVT.| RVT|
103104
| <a name="BALANCE_ROWS"></a>BALANCE_ROWS| Balance rows during placement.| 0|
104105
| <a name="BLOCKS"></a>BLOCKS| Blocks used as hard macros in a hierarchical flow. Do note that you have to specify block-specific inputs file in the directory mentioned by Makefile.| |
105106
| <a name="BUFFER_PORTS_ARGS"></a>BUFFER_PORTS_ARGS| Specify arguments to the buffer_ports call during placement. Only used if DONT_BUFFER_PORTS=0.| |
@@ -496,6 +497,7 @@ configuration file.
496497

497498
## All stages variables
498499

500+
- [ASAP7_USE_VT](#ASAP7_USE_VT)
499501
- [KEEP_VARS](#KEEP_VARS)
500502
- [NUM_CORES](#NUM_CORES)
501503
- [OPENROAD_HIERARCHICAL](#OPENROAD_HIERARCHICAL)

‎docs/user/InstructionsForAutoTuner.md‎

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,27 +122,28 @@ The order of the parameters matter. Arguments `--design`, `--platform` and
122122
The following commands should be run from `./tools/AutoTuner`.
123123
```
124124

125-
#### Tune only
126-
127-
* AutoTuner: `openroad_autotuner tune -h`
125+
#### Tune only
128126

129127
Example:
130128

131129
```shell
132-
openroad_autotuner --design gcd --platform sky130hd \
133-
--config ../../flow/designs/sky130hd/gcd/autotuner.json \
134-
tune --samples 5
130+
python3 -m autotuner.distributed \
131+
--design gcd \
132+
--platform sky130hd \
133+
--config ../../flow/designs/sky130hd/gcd/autotuner.json \
134+
tune --samples 5
135135
```
136-
#### Sweep only
137136

138-
* Parameter sweeping: `openroad_autotuner sweep -h`
137+
#### Sweep only
139138

140139
Example:
141140

142141
```shell
143-
openroad_autotuner --design gcd --platform sky130hd \
144-
--config src/autotuner/distributed-sweep-example.json \
145-
sweep
142+
python3 -m autotuner.distributed \
143+
--design gcd \
144+
--platform sky130hd \
145+
--config src/autotuner/distributed-sweep-example.json \
146+
sweep
146147
```
147148

148149
#### Plot images
@@ -159,6 +160,19 @@ The graph will show the progression of one metric (see list below) over the exec
159160
python3 utils/plot.py --results_dir <your-autotuner-result-path>
160161
```
161162

163+
#### Work Directory
164+
165+
Use `--work-dir` to specify a writable directory for outputs. This is passed to ORFS as `WORK_HOME`.
166+
167+
```shell
168+
python3 -m autotuner.distributed \
169+
--design gcd \
170+
--platform sky130hd \
171+
--config ../../flow/designs/sky130hd/gcd/autotuner.json \
172+
--work-dir /tmp/autotuner123 \
173+
tune --samples 5
174+
```
175+
162176
### Google Cloud Platform (GCP) distribution with Ray
163177

164178
GCP Setup Tutorial coming soon.
@@ -171,6 +185,7 @@ GCP Setup Tutorial coming soon.
171185
| `--platform` | Name of the platform for Autotuning. ||
172186
| `--config` | Configuration file that sets which knobs to use for Autotuning. ||
173187
| `--experiment` | Experiment name. This parameter is used to prefix the FLOW_VARIANT and to set the Ray log destination.| test |
188+
| `--work-dir` | Work directory for outputs (passed to ORFS as WORK_HOME). | Installation directory |
174189
| `--git_clean` | Clean binaries and build files. **WARNING**: may lose previous data. ||
175190
| `--git_clone` | Force new git clone. **WARNING**: may lose previous data. ||
176191
| `--git_clone_args` | Additional git clone arguments. ||

‎etc/DependencyInstaller.sh‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ _versionCompare() {
2020
}
2121

2222
_installORDependencies() {
23-
./tools/OpenROAD/etc/DependencyInstaller.sh ${OR_INSTALLER_ARGS}
23+
if [[ ${YOSYS_VER} == "" ]]; then
24+
YOSYS_VER=v$(grep 'yosys_ver =' tools/yosys/docs/source/conf.py | awk -F'"' '{print $2}')
25+
fi
26+
./tools/OpenROAD/etc/DependencyInstaller.sh ${OR_INSTALLER_ARGS} -yosys-ver="${YOSYS_VER}"
2427
}
2528

2629
_installPipCommon() {
@@ -306,6 +309,10 @@ Usage: $0 [-all|-base|-common] [-<ARGS>]
306309
# sudo or with root access.
307310
$0 -ci
308311
# Installs CI tools
312+
$0 -yosys-ver=VERSION
313+
# Installs specified version of Yosys.
314+
# By default, the Yosys version is
315+
# obtained from tools/yosys/docs/source/conf.py
309316
$0 -constant-build-dir
310317
# Use constant build directory, instead of
311318
# random one.
@@ -315,6 +322,7 @@ EOF
315322

316323
# default args
317324
OR_INSTALLER_ARGS="-eqy"
325+
YOSYS_VER=""
318326
# default prefix
319327
PREFIX=""
320328
# default option
@@ -355,6 +363,9 @@ while [ "$#" -gt 0 ]; do
355363
CI="yes"
356364
OR_INSTALLER_ARGS="${OR_INSTALLER_ARGS} -save-deps-prefixes=/etc/openroad_deps_prefixes.txt"
357365
;;
366+
-yosys-ver=*)
367+
YOSYS_VER=${1#*=}
368+
;;
358369
-prefix=*)
359370
OR_INSTALLER_ARGS="${OR_INSTALLER_ARGS} $1"
360371
PREFIX=${1#*=}

‎etc/DockerHelper.sh‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ _setup() {
7373
fromImage="${FROM_IMAGE_OVERRIDE:-$osBaseImage}"
7474
cp tools/OpenROAD/etc/DependencyInstaller.sh etc/InstallerOpenROAD.sh
7575
context="etc"
76-
buildArgs="--build-arg options=${options} ${noConstantBuildDir}"
76+
local yosys_ver
77+
yosys_ver=v$(grep 'yosys_ver =' tools/yosys/docs/source/conf.py | awk -F'"' '{print $2}')
78+
options+=" -yosys-ver=${yosys_ver}"
79+
buildArgs="--build-arg \"options=${options}\" ${noConstantBuildDir}"
7780
;;
7881
*)
7982
echo "Target ${target} not found" >&2
@@ -87,20 +90,20 @@ _setup() {
8790

8891
_create() {
8992
echo "Create docker image ${imagePath} using ${file}"
90-
${DOCKER_CMD} buildx build \
93+
eval ${DOCKER_CMD} buildx build \
9194
--file "${file}" \
9295
--tag "${imagePath}" \
93-
${buildArgs} \
96+
"${buildArgs}" \
9497
"${context}"
9598
rm -f etc/InstallerOpenROAD.sh
9699
}
97100

98101
_push() {
99-
if [[ -z ${username+x} ]]; then
102+
if [[ -z ${username+x} ]] && [[ ${dryRun} != 1 ]]; then
100103
echo "Missing required -username=<USER> argument"
101104
_help
102105
fi
103-
if [[ -z ${password+x} ]]; then
106+
if [[ -z ${password+x} ]] && [[ ${dryRun} != 1 ]]; then
104107
echo "Missing required -password=<PASS> argument"
105108
_help
106109
fi

‎flow/designs/asap7/aes-block/rules-base.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"compare": "<="
2525
},
2626
"cts__design__instance__count__hold_buffer": {
27-
"value": 917,
27+
"value": 1286,
2828
"compare": "<="
2929
},
3030
"cts__timing__setup__ws": {
31-
"value": -124.0,
31+
"value": -148.0,
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {

‎flow/designs/asap7/ibex/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -35900.0,
35+
"value": -45200.0,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -63800.0,
55+
"value": -65400.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -84,7 +84,7 @@
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -24300.0,
87+
"value": -31700.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {

‎flow/designs/asap7/swerv_wrapper/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@
8080
"compare": "<="
8181
},
8282
"finish__timing__setup__ws": {
83-
"value": -402.0,
83+
"value": -509.0,
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -75900.0,
87+
"value": -92000.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {
9191
"value": -200.0,
9292
"compare": ">="
9393
},
9494
"finish__timing__hold__tns": {
95-
"value": -45200.0,
95+
"value": -90300.0,
9696
"compare": ">="
9797
},
9898
"finish__design__instance__area": {

‎flow/designs/gf12/bp_single/rules-base.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
39-
"value": -189.0,
39+
"value": -306.0,
4040
"compare": ">="
4141
},
4242
"cts__timing__hold__tns": {
43-
"value": -2440.0,
43+
"value": -2200.0,
4444
"compare": ">="
4545
},
4646
"globalroute__antenna_diodes_count": {
@@ -56,11 +56,11 @@
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
59-
"value": -187.0,
59+
"value": -318.0,
6060
"compare": ">="
6161
},
6262
"globalroute__timing__hold__tns": {
63-
"value": -2010.0,
63+
"value": -2520.0,
6464
"compare": ">="
6565
},
6666
"detailedroute__route__wirelength": {
@@ -88,7 +88,7 @@
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {
91-
"value": -100.0,
91+
"value": -220.0,
9292
"compare": ">="
9393
},
9494
"finish__timing__hold__tns": {

‎flow/designs/gf12/ca53/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"compare": ">="
2929
},
3030
"cts__timing__setup__tns": {
31-
"value": -904.0,
31+
"value": -400.0,
3232
"compare": ">="
3333
},
3434
"cts__timing__hold__ws": {
@@ -56,7 +56,7 @@
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__tns": {
59-
"value": -524.0,
59+
"value": -929.0,
6060
"compare": ">="
6161
},
6262
"detailedroute__route__wirelength": {
@@ -88,7 +88,7 @@
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__tns": {
91-
"value": -2640.0,
91+
"value": -1850.0,
9292
"compare": ">="
9393
},
9494
"finish__design__instance__area": {

‎flow/designs/gf180/aes-hybrid/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"compare": ">="
3333
},
3434
"cts__timing__setup__tns": {
35-
"value": -145.0,
35+
"value": -147.0,
3636
"compare": ">="
3737
},
3838
"cts__timing__hold__ws": {
@@ -52,7 +52,7 @@
5252
"compare": ">="
5353
},
5454
"globalroute__timing__setup__tns": {
55-
"value": -160.0,
55+
"value": -164.0,
5656
"compare": ">="
5757
},
5858
"globalroute__timing__hold__ws": {
@@ -84,7 +84,7 @@
8484
"compare": ">="
8585
},
8686
"finish__timing__setup__tns": {
87-
"value": -156.0,
87+
"value": -159.0,
8888
"compare": ">="
8989
},
9090
"finish__timing__hold__ws": {

0 commit comments

Comments
 (0)