From 641105c869ddc9bf70454103e7a606bc4377933f Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Wed, 15 Jul 2020 20:19:49 +0200 Subject: update Makefile, use self-compiled version of toolchain --- src/Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index b8a4ac5..c528906 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,11 +1,21 @@ +all : example.bin + example.blif : example.v - yosys -p 'synth_ice40 -top vga_example -blif example.blif' example.v + git-yosys -p 'synth_ice40 -top top -blif example.blif' example.v + +example.json : example.v + git-yosys -p 'synth_ice40 -top top -json example.json' example.v -example.asc : example.blif - arachne-pnr -d 8k -o example.asc -p example.pcf example.blif -P ct256 +example.asc : example.json mapping.pcf + git-nextpnr-ice40 --hx8k --asc example.asc --pcf mapping.pcf --json example.json --package ct256 example.bin : example.asc - icepack example.asc example.bin + git-icepack example.asc example.bin prog : example.bin - iceprogduino example.bin + sudo iceprogduino example.bin + +clean : + -rm example.bin example.asc example.blif example.json + +.PHONY : clean all -- cgit v1.2.3