Skip to content

Commit 33e151a

Browse files
committed
avoid loading odb if design is already loaded
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 4d28625 commit 33e151a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flow/scripts/load.tcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ source $::env(SCRIPTS_DIR)/util.tcl
33
source $::env(SCRIPTS_DIR)/report_metrics.tcl
44

55
proc load_design { design_file sdc_file } {
6+
# Do not reload if design is already loaded
7+
set db [ord::get_db]
8+
if { [$db getChip] != "NULL" && [[$db getChip] getBlock] != "NULL" } {
9+
return
10+
}
11+
612
source_env_var_if_exists PLATFORM_TCL
713

814
source $::env(SCRIPTS_DIR)/read_liberty.tcl

0 commit comments

Comments
 (0)