Skip to content

Commit 54dd31a

Browse files
committed
Merge branch 'master' into preplaced-macros
2 parents 09e0018 + 84f2e76 commit 54dd31a

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

flow/scripts/final_report.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ source $::env(SCRIPTS_DIR)/deleteRoutingObstructions.tcl
1515
deleteRoutingObstructions
1616

1717
write_def $::env(RESULTS_DIR)/6_final.def
18-
write_verilog $::env(RESULTS_DIR)/6_final.v
18+
write_verilog $::env(RESULTS_DIR)/6_final.v \
19+
-remove_cells [find_physical_only_masters]
1920

2021
# Run extraction and STA
2122
if {

flow/scripts/util.tcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,39 @@ proc hier_options { } {
201201
return ""
202202
}
203203
}
204+
205+
proc is_physical_only_master { master } {
206+
set physical_only_type_patterns [list \
207+
"COVER" \
208+
"COVER_BUMP" \
209+
"RING" \
210+
"PAD_SPACER" \
211+
"CORE_FEEDTHROUGH" \
212+
"CORE_SPACER" \
213+
"CORE_ANTENNACELL" \
214+
"CORE_WELLTAP" \
215+
"ENDCAP*"]
216+
set master_type [$master getType]
217+
foreach pattern $physical_only_type_patterns {
218+
if { [string match $pattern $master_type] } {
219+
return 1
220+
}
221+
}
222+
return 0
223+
}
224+
225+
# Finds all physical-only masters in the current database and
226+
# returns their names.
227+
proc find_physical_only_masters { } {
228+
set db [::ord::get_db]
229+
set libs [$db getLibs]
230+
set physical_only_masters [list]
231+
foreach lib $libs {
232+
foreach master [$lib getMasters] {
233+
if { [is_physical_only_master $master] } {
234+
lappend physical_only_masters [$master getName]
235+
}
236+
}
237+
}
238+
return $physical_only_masters
239+
}

flow/util/genMetrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ def extract_metrics(
231231
# Synthesis
232232
# =========================================================================
233233

234+
# The new format (>= 0.57) is: <count> <area> cells
234235
extractTagFromFile(
235236
"synth__design__instance__count__stdcell",
236237
metrics_dict,
237-
"Number of cells: +(\\S+)",
238+
"^\\s+(\\d+)\\s+[-0-9.]+\\s+cells$",
238239
rptPath + "/synth_stat.txt",
239240
)
240241

tools/OpenROAD

Submodule OpenROAD updated 262 files

0 commit comments

Comments
 (0)