summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok2025-12-25 12:30:51 +0100
committeruvok2025-12-25 12:30:51 +0100
commitea972c4a247724c16f5014525c3f76da0a7e7f09 (patch)
treeb51cae5e592fe5e687583f9479146f5776594c70
parent7b180db48bcce40afba85d39a8ae73a5514854f3 (diff)
Use yosys for dep generation after all
-rw-r--r--Makefile8
1 files 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)