Skip to content

Commit 6798b49

Browse files
authored
Merge pull request #2898 from jeffng-or/cached-netlist-cp-fix
When using a cached netlist, copy into results dir with preserve flag
2 parents e83d0b2 + 4ef6421 commit 6798b49

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

flow/scripts/synth_preamble.tcl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ yosys -import
33
source $::env(SCRIPTS_DIR)/util.tcl
44
erase_non_stage_variables synth
55

6+
# If using a cached, gate level netlist, then copy over to the results dir with
7+
# preserve timestamps flag set. If you don't, subsequent runs will cause the
8+
# floorplan step to be re-executed.
69
if {[env_var_exists_and_non_empty CACHED_NETLIST]} {
7-
log_cmd exec cp $::env(CACHED_NETLIST) $::env(RESULTS_DIR)/1_1_yosys.v
8-
log_cmd exec cp $::env(SDC_FILE) $::env(RESULTS_DIR)/1_synth.sdc
10+
log_cmd exec cp -p $::env(CACHED_NETLIST) $::env(RESULTS_DIR)/1_1_yosys.v
11+
log_cmd exec cp -p $::env(SDC_FILE) $::env(RESULTS_DIR)/1_synth.sdc
912
if {[env_var_exists_and_non_empty CACHED_REPORTS]} {
10-
log_cmd exec cp {*}$::env(CACHED_REPORTS) $::env(REPORTS_DIR)/.
13+
log_cmd exec cp -p {*}$::env(CACHED_REPORTS) $::env(REPORTS_DIR)/.
1114
}
1215
exit
1316
}

0 commit comments

Comments
 (0)