Skip to content

Commit fe62c3d

Browse files
committed
synth: consistent with other .tcl scripts, it knows its input
other scripts, like floorplan.tcl, knows what inputs to load. This makes synth.tcl consistent with this convention rather than encoding this in the Makefile Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 6f9b40e commit fe62c3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flow/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,7 @@ yosys-dependencies: $(YOSYS_DEPENDENCIES)
436436
.PHONY: do-yosys
437437
do-yosys: $(DONT_USE_SC_LIB)
438438
mkdir -p $(RESULTS_DIR) $(LOG_DIR) $(REPORTS_DIR) $(OBJECTS_DIR)
439-
(export VERILOG_FILES=$(RESULTS_DIR)/1_synth.rtlil; \
440-
$(TIME_CMD) $(YOSYS_EXE) $(YOSYS_FLAGS) -c $(SYNTH_SCRIPT)) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys.log)
439+
($(TIME_CMD) $(YOSYS_EXE) $(YOSYS_FLAGS) -c $(SYNTH_SCRIPT)) 2>&1 | tee $(abspath $(LOG_DIR)/1_1_yosys.log)
441440

442441
.PHONY: do-yosys-canonicalize
443442
do-yosys-canonicalize: yosys-dependencies $(DONT_USE_SC_LIB)

flow/scripts/synth.tcl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
set ::env(VERILOG_FILES) $::env(RESULTS_DIR)/1_synth.rtlil
2+
13
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
24

35
hierarchy -check -top $::env(DESIGN_NAME)

0 commit comments

Comments
 (0)