Skip to content

Commit 614ecd8

Browse files
committed
synthesis: more consistent naming of logs and results
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent f2e9360 commit 614ecd8

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

flow/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ synth-report: synth
258258

259259
.PHONY: do-synth-report
260260
do-synth-report:
261-
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/synth_metrics.tcl) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys_metrics.log)
261+
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/synth_metrics.tcl) 2>&1 | tee $(abspath $(LOG_DIR)/1_2_yosys_metrics.log)
262262

263263
.PHONY: memory
264264
memory:
@@ -282,24 +282,24 @@ yosys-dependencies: $(YOSYS_DEPENDENCIES)
282282

283283
.PHONY: do-yosys
284284
do-yosys: $(DONT_USE_SC_LIB)
285-
$(SCRIPTS_DIR)/synth.sh $(SYNTH_SCRIPT) $(LOG_DIR)/1_1_yosys.log
285+
$(SCRIPTS_DIR)/synth.sh $(SYNTH_SCRIPT) $(LOG_DIR)/1_2_yosys.log
286286

287287
.PHONY: do-yosys-canonicalize
288288
do-yosys-canonicalize: yosys-dependencies $(DONT_USE_SC_LIB)
289289
$(SCRIPTS_DIR)/synth.sh $(SCRIPTS_DIR)/synth_canonicalize.tcl $(LOG_DIR)/1_1_yosys_canonicalize.log
290290

291-
$(RESULTS_DIR)/1_synth.rtlil: $(YOSYS_DEPENDENCIES)
291+
$(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil: $(YOSYS_DEPENDENCIES)
292292
$(UNSET_AND_MAKE) do-yosys-canonicalize
293293

294-
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
294+
$(RESULTS_DIR)/1_2_yosys.v: $(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil
295295
$(UNSET_AND_MAKE) do-yosys
296296

297297
.PHONY: do-synth
298298
do-synth:
299299
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)
300-
cp $(RESULTS_DIR)/1_1_yosys.v $(RESULTS_DIR)/1_synth.v
300+
cp $(RESULTS_DIR)/1_2_yosys.v $(RESULTS_DIR)/1_synth.v
301301

302-
$(RESULTS_DIR)/1_synth.v: $(RESULTS_DIR)/1_1_yosys.v
302+
$(RESULTS_DIR)/1_synth.v: $(RESULTS_DIR)/1_2_yosys.v
303303
$(UNSET_AND_MAKE) do-synth
304304

305305
.PHONY: clean_synth

flow/scripts/synth.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
2-
read_checkpoint $::env(RESULTS_DIR)/1_synth.rtlil
2+
read_checkpoint $::env(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil
33

44
hierarchy -check -top $::env(DESIGN_NAME)
55

@@ -145,7 +145,7 @@ if { ![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS] } {
145145
}
146146

147147
# Write synthesized design
148-
write_verilog -nohex -nodec $::env(RESULTS_DIR)/1_1_yosys.v
148+
write_verilog -nohex -nodec $::env(RESULTS_DIR)/1_2_yosys.v
149149
# One day a more sophisticated synthesis will write out a modified
150150
# .sdc file after synthesis. For now, just copy the input .sdc file,
151151
# making synthesis more consistent with other stages.

flow/scripts/synth_canonicalize.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ hierarchy -check -top $::env(DESIGN_NAME)
1010
# Get rid of unused modules
1111
opt_clean -purge
1212
# The hash of this file will not change if files not part of synthesis do not change
13-
write_rtlil $::env(RESULTS_DIR)/1_synth.rtlil
13+
write_rtlil $::env(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil

flow/scripts/synth_metrics.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
utl::set_metrics_stage "synth__{}"
22
source $::env(SCRIPTS_DIR)/load.tcl
3-
load_design 1_1_yosys.v 1_synth.sdc
3+
load_design 1_2_yosys.v 1_synth.sdc
44

55
report_metrics 1 "Post synthesis" false false

flow/scripts/synth_preamble.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ erase_non_stage_variables synth
88
# floorplan step to be re-executed.
99
if { [env_var_exists_and_non_empty SYNTH_NETLIST_FILES] } {
1010
if { [llength $::env(SYNTH_NETLIST_FILES)] == 1 } {
11-
log_cmd exec cp -p $::env(SYNTH_NETLIST_FILES) $::env(RESULTS_DIR)/1_1_yosys.v
11+
log_cmd exec cp -p $::env(SYNTH_NETLIST_FILES) $::env(RESULTS_DIR)/1_2_yosys.v
1212
} else {
1313
# The date should be the most recent date of the files, but to
1414
# keep things simple we just use the creation date
15-
log_cmd exec cat {*}$::env(SYNTH_NETLIST_FILES) > $::env(RESULTS_DIR)/1_1_yosys.v
15+
log_cmd exec cat {*}$::env(SYNTH_NETLIST_FILES) > $::env(RESULTS_DIR)/1_2_yosys.v
1616
}
1717
log_cmd exec cp -p $::env(SDC_FILE) $::env(RESULTS_DIR)/1_synth.sdc
1818
if { [env_var_exists_and_non_empty CACHED_REPORTS] } {

flow/util/genMetrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def extract_metrics(
288288
# Accumulate time
289289
# =========================================================================
290290

291-
extractGnuTime("synth", metrics_dict, logPath + "/1_1_yosys.log")
291+
extractGnuTime("synth", metrics_dict, logPath + "/1_2_yosys.log")
292292
extractGnuTime("floorplan", metrics_dict, logPath + "/2_1_floorplan.log")
293293
extractGnuTime("floorplan_io", metrics_dict, logPath + "/2_2_floorplan_io.log")
294294
extractGnuTime(

0 commit comments

Comments
 (0)