Skip to content

Commit 88a402f

Browse files
committed
makefile: move more synth vars to config.sh
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 7b1f02c commit 88a402f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

flow/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,6 @@ memory:
331331

332332
# Run Synthesis using yosys
333333
#-------------------------------------------------------------------------------
334-
335-
export SYNTH_SCRIPT ?= $(SCRIPTS_DIR)/synth.tcl
336-
export SDC_FILE_CLOCK_PERIOD = $(RESULTS_DIR)/clock_period.txt
337-
338334
$(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)
339335
mkdir -p $(dir $@)
340336
echo $(ABC_CLOCK_PERIOD_IN_PS) > $@

flow/scripts/config.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,6 @@ export KLAYOUT_CMD
110110
if command -v stdbuf &>/dev/null; then
111111
export STDBUF_CMD="stdbuf -o L"
112112
fi
113+
114+
export SYNTH_SCRIPT="${SYNTH_SCRIPT:-${SCRIPTS_DIR}/synth.tcl}"
115+
export SDC_FILE_CLOCK_PERIOD="${SDC_FILE_CLOCK_PERIOD:-${RESULTS_DIR}/clock_period.txt}"

0 commit comments

Comments
 (0)