File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,34 @@ utl::set_metrics_stage "floorplan__{}"
22source $::env(SCRIPTS_DIR) /load.tcl
33load_design 1_synth.v 1_synth.sdc
44
5+ proc report_unused_masters {} {
6+ set db [ord::get_db]
7+ set libs [$db getLibs]
8+ set masters " "
9+ foreach lib $libs {
10+ foreach master [$lib getMasters] {
11+ # filter out non-block masters, or you can remove this conditional to detect any unused master
12+ if {[$master getType] == " BLOCK" } {
13+ lappend masters $master
14+ }
15+ }
16+ }
17+
18+ set block [ord::get_db_block]
19+ set insts [$block getInsts]
20+
21+ foreach inst $insts {
22+ set inst_master [$inst getMaster]
23+ set masters [lsearch -all -not -inline $masters $inst_master ]
24+ }
25+
26+ foreach master $masters {
27+ puts " Master [ $master getName] is loaded but not used in the design"
28+ }
29+ }
30+
31+ report_unused_masters
32+
533# Run check_setup
634puts " \n =========================================================================="
735puts " Floorplan check_setup"
You can’t perform that action at this time.
0 commit comments