Skip to content

Commit b9310ef

Browse files
committed
makefile: add do-synth-report target and invoke it from synth target
avoid doing do-synth-report during a normal build, because it can add a lot of time. when iterating specifically on the synth target, a timing report is a more approperiate default behavior Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 7ededaa commit b9310ef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flow/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ $(WRAPPED_LIBS):
386386
synth: versions.txt \
387387
$(RESULTS_DIR)/1_synth.v \
388388
$(RESULTS_DIR)/1_synth.sdc
389+
$(UNSET_AND_MAKE) do-synth-report
390+
391+
.PHONY: do-synth-report
392+
do-synth-report:
393+
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/synth_metrics.tcl) 2>&1 | tee -a $(LOG_DIR)/1_1_yosys.log
394+
389395
# ==============================================================================
390396

391397

@@ -405,7 +411,6 @@ $(RESULTS_DIR)/1_1_yosys.v $(RESULTS_DIR)/1_synth.sdc &: $(DONT_USE_LIBS) $(WRAP
405411
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)
406412
($(TIME_CMD) $(YOSYS_CMD) $(YOSYS_FLAGS) -c $(SYNTH_SCRIPT)) 2>&1 | tee $(LOG_DIR)/1_1_yosys.log
407413
cp $(SDC_FILE) $(RESULTS_DIR)/1_synth.sdc
408-
($(TIME_CMD) $(OPENROAD_CMD) $(SCRIPTS_DIR)/synth_metrics.tcl) 2>&1 | tee -a $(LOG_DIR)/1_1_yosys.log
409414

410415
$(RESULTS_DIR)/1_synth.v: $(RESULTS_DIR)/1_1_yosys.v
411416
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR)

0 commit comments

Comments
 (0)