Skip to content

Commit ada1668

Browse files
committed
rsz: allow report_design_area to report area without libertyfile
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 29b70ac commit ada1668

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

src/rsz/src/Resizer.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ sta::define_cmd_args "report_design_area" {}
377377
proc report_design_area { args } {
378378
sta::parse_key_args "report_design_area" args keys {} flags {}
379379
set util [format %.0f [expr [rsz::utilization] * 100]]
380-
set area [sta::format_area [rsz::design_area] 0]
380+
set area [format %.0f [expr [rsz::design_area] * 1e6 * 1e6]]
381381
utl::report "Design area ${area} u^2 ${util}% utilization."
382382
}
383383

src/rsz/test/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ TESTS = [
155155
"report_buffers_nangate45",
156156
"report_buffers_sky130hd",
157157
"report_buffers_sky130hs",
158+
"report_design_area",
158159
"report_dont_touch",
159160
"report_dont_use",
160161
"report_dont_use_corners",

src/rsz/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ or_integration_tests(
132132
repair_wire9
133133
repair_wire10
134134
repair_wire11
135+
report_design_area
135136
report_dont_touch
136137
report_dont_use
137138
report_dont_use_corners

src/rsz/test/report_design_area.ok

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[INFO ODB-0227] LEF file: Nangate45/Nangate45.lef, created 22 layers, 27 vias, 135 library cells
2+
[INFO ODB-0128] Design: gcd
3+
[INFO ODB-0130] Created 54 pins.
4+
[INFO ODB-0131] Created 571 components and 2554 component-terminals.
5+
[INFO ODB-0132] Created 5 special nets and 1142 connections.
6+
[INFO ODB-0133] Created 528 nets and 1412 connections.
7+
Design area 670 u^2 10% utilization.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# report_design_area without liberty files
2+
source "helpers.tcl"
3+
read_lef Nangate45/Nangate45.lef
4+
read_def gcd_nangate45_placed.def
5+
6+
report_design_area

0 commit comments

Comments
 (0)