diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-07-15 20:19:49 +0200 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-07-15 20:19:49 +0200 |
commit | 641105c869ddc9bf70454103e7a606bc4377933f (patch) | |
tree | e253cf5a5165be6df9272ca34fc5c7484068a86c | |
parent | dccc3921c1780f1a957a04cda2f675b9b346f6d9 (diff) | |
download | AGH-engineering-thesis-641105c869ddc9bf70454103e7a606bc4377933f.tar.gz AGH-engineering-thesis-641105c869ddc9bf70454103e7a606bc4377933f.zip |
update Makefile, use self-compiled version of toolchain
-rw-r--r-- | src/Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
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 |