From ea972c4a247724c16f5014525c3f76da0a7e7f09 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 25 Dec 2025 12:30:51 +0100 Subject: Use yosys for dep generation after all --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 20b58af..5b6202d 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,17 @@ clean: # synthesize %.json: %.v - sh resolvedeps.sh $< +# sh resolvedeps.sh $< +# only used for dep-generation, output file is needed for dep file, but otherwise useless +# this must happen *without* synth_gowin, as this includes additional files, which ruin the depfile. + yosys $< -E $*.dep -o $@ && rm -f $@ yosys -p "read_verilog $<; synth_gowin -top $* -json $@" $(YOSYS_OPTS) # because yosys -E is buggy, or behaves differently than expected, # use gawk to force-create deps. %.dep: %.v - sh resolvedeps.sh $< +# sh resolvedeps.sh $< + yosys $< -E $*.dep -o $*.json && rm -f $*.json # place and route? %.pnr.json: %.json $(CST) -- cgit v1.2.3