Created
February 3, 2016 00:09
-
-
Save stylesuxx/0bc913943fc388ee65da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example.blif: example.v | |
yosys -p 'synth_ice40 -blif example.blif' example.v | |
example.txt: example.blif example.pcf | |
arachne-pnr -d 8k -p example.pcf -o example.txt example.blif | |
example.bin: example.txt | |
icepack example.txt example.bin | |
example_sram: icoprog example.bin | |
sudo ./icoprog -p < example.bin | |
example_flash: example.bin | |
sudo icoprog -f < example.bin | |
sudo icoprog -b | |
reset: | |
sudo icoprog -f < example.pcf | |
sudo icoprog -b | |
clean: | |
rm -f example.blif example.txt example.bin | |
.PHONY: example_sram example_flash reset clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment