summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoruvok2025-12-26 13:22:48 +0100
committeruvok2025-12-26 13:22:48 +0100
commit7312ecd487d8a7760c8cfe1dff18c2f2c71d0c03 (patch)
tree6be0502812dcd82d4584e694e3e639d809162930 /Makefile
parent4eb00254cf157d041ee2ab1babbaa39c2a23443c (diff)
make: make yosys-dep quit, add nextpnr_opts
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7fc552..669aa17 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ simu: $(PROGRAM).lxt2
# 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 -q $< -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,
@@ -74,10 +74,12 @@ simu: $(PROGRAM).lxt2
nextpnr-himbaechel --json $< --write $@ \
--device $(DEVICE_NAME) --vopt family=$(DEVICE_FAMILY) \
--vopt cst=$(CST) \
+ $(NEXTPNR_OPTS) \
|| \
nextpnr-gowin --json $< --write $@ \
--device $(DEVICE_NAME) --family $(DEVICE_FAMILY) \
- --cst $(CST)
+ --cst $(CST) \
+ $(NEXTPNR_OPTS)
# pack bitstream
%.fs: %.pnr.json