diff options
Diffstat (limited to 'examples/hx8kboard')
-rw-r--r-- | examples/hx8kboard/.gitignore | 9 | ||||
-rw-r--r-- | examples/hx8kboard/Makefile | 11 |
2 files changed, 11 insertions, 9 deletions
diff --git a/examples/hx8kboard/.gitignore b/examples/hx8kboard/.gitignore index c1fa30b..56f263f 100644 --- a/examples/hx8kboard/.gitignore +++ b/examples/hx8kboard/.gitignore @@ -1,4 +1,5 @@ -example.bin -example.blif -example.asc -example.rpt +* +!.gitignore +!example.v +!hx8kboard.pcf +!Makefile diff --git a/examples/hx8kboard/Makefile b/examples/hx8kboard/Makefile index bcecdf2..eea99c4 100644 --- a/examples/hx8kboard/Makefile +++ b/examples/hx8kboard/Makefile @@ -1,14 +1,15 @@ PROJ = example PIN_DEF = hx8kboard.pcf DEVICE = hx8k +PACKAGE = ct256 all: $(PROJ).rpt $(PROJ).bin -%.blif: %.v - yosys -p 'synth_ice40 -top top -blif $@' $< +%.json: %.v + yosys -p 'synth_ice40 -top top -json $@' $< -%.asc: $(PIN_DEF) %.blif - arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ +%.asc: $(PIN_DEF) %.json + nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json %.bin: %.asc icepack $< $@ @@ -24,7 +25,7 @@ sudo-prog: $(PROJ).bin sudo iceprog $< clean: - rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin + rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin .SECONDARY: .PHONY: all prog clean |