Skip to content

Commit 49b4755

Browse files
committed
update power analysis results and add exporting to CSV in README snippets
1 parent 64b1507 commit 49b4755

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

README.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ report_power
137137
This will generate power consumption report that should look like this:
138138

139139
```
140-
Annotated 159 pin activities.
140+
Annotated 212 pin activities.
141141
Group Internal Switching Leakage Total
142142
Power Power Power Power (Watts)
143143
----------------------------------------------------------------
144-
Sequential 1.32e-05 1.04e-06 6.97e-09 1.42e-05 31.3%
145-
Combinational 1.63e-05 9.74e-06 2.97e-08 2.60e-05 57.3%
146-
Clock 2.43e-06 2.76e-06 4.02e-10 5.19e-06 11.4%
144+
Sequential 4.06e+00 9.64e-02 9.49e-09 4.16e+00 43.9%
145+
Combinational 8.64e-01 7.45e-01 3.43e-08 1.61e+00 17.0%
146+
Clock 2.65e+00 1.05e+00 1.92e-09 3.70e+00 39.1%
147147
Macro 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.0%
148148
Pad 0.00e+00 0.00e+00 0.00e+00 0.00e+00 0.0%
149149
----------------------------------------------------------------
150-
Total 3.18e-05 1.35e-05 3.70e-08 4.54e-05 100.0%
151-
70.1% 29.8% 0.1%
150+
Total 7.58e+00 1.89e+00 4.57e-08 9.47e+00 100.0%
151+
80.1% 19.9% 0.0%
152152
```
153153

154154
## Peak and glitch power analysis workflow
@@ -214,21 +214,23 @@ Go to the synthesis results directory and then run the peak power script:
214214
<!-- name="execute-peak-power-script" -->
215215
```
216216
cd OpenROAD-flow-scripts/flow/results/sky130hd/ibex/base/
217-
python3 peak_power.py --base base_output --total total_output
217+
python3 peak_power.py --base base_output --total total_output --csv power_analysis.csv
218218
```
219219

220220
This will visualize power consumption over time and output maximum encountered value:
221221

222222
```
223223
...
224-
Processing clock cycle #23
225-
Processing clock cycle #24
226-
Processing clock cycle #25
227-
Processing clock cycle #26
228-
Processing clock cycle #27
229-
Processing clock cycle #28
230-
Processing clock cycle #29
231-
Maximum power consumption of a single clock cycle is 0.000278 Watts and occurred in clock cycle #0
224+
Processing clock cycle #220
225+
Processing clock cycle #221
226+
Processing clock cycle #222
227+
Processing clock cycle #223
228+
Processing clock cycle #224
229+
Processing clock cycle #225
230+
Processing clock cycle #226
231+
Processing clock cycle #227
232+
Processing clock cycle #228
233+
Maximum power consumption of a single clock cycle is 9.210000047600001 Watts and occurred in clock cycle #180
232234
```
233235

234236
### Processing VCD file to per clock cycle glitch power TCL scripts
@@ -266,19 +268,21 @@ Go to the synthesis results directory and then run the glitch power script:
266268
<!-- name="execute-glitch-power-script" -->
267269
```
268270
cd OpenROAD-flow-scripts/flow/results/sky130hd/ibex/base/
269-
python3 peak_power.py --base base_output --total total_output --glitch glitch_output
271+
python3 peak_power.py --base base_output --total total_output --glitch glitch_output --csv power_analysis.csv
270272
```
271273

272274
This will visualize power consumption over time with per clock cycle total/glitch power and output maximum encountered value:
273275

274276
```
275277
...
276-
Processing clock cycle #23
277-
Processing clock cycle #24
278-
Processing clock cycle #25
279-
Processing clock cycle #26
280-
Processing clock cycle #27
281-
Processing clock cycle #28
282-
Processing clock cycle #29
283-
Maximum power consumption of a single clock cycle is 0.000278 Watts and occurred in clock cycle #0
278+
Processing clock cycle #220
279+
Processing clock cycle #221
280+
Processing clock cycle #222
281+
Processing clock cycle #223
282+
Processing clock cycle #224
283+
Processing clock cycle #225
284+
Processing clock cycle #226
285+
Processing clock cycle #227
286+
Processing clock cycle #228
287+
Maximum power consumption of a single clock cycle is 9.210000047600001 Watts and occurred in clock cycle #180
284288
```

0 commit comments

Comments
 (0)