You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
517 B

3 years ago
  1. #!/bin/bash
  2. #adapted from https://github.com/leedowthwaite/HelloIce
  3. #changes: separate folder for dev files
  4. #simplified bash script
  5. MAIN=$1
  6. mkdir txtbin
  7. echo Using yosys to synthesize design
  8. yosys -p "synth_ice40 -blif txtbin/$MAIN.blif" $MAIN.v $@
  9. echo Place and route with arachne-pnr
  10. arachne-pnr -d 1k -p icestick.pcf txtbin/$MAIN.blif -o txtbin/$MAIN.txt
  11. echo Converting ASCII output to bitstream
  12. icepack txtbin/$MAIN.txt txtbin/$MAIN.bin
  13. echo Sending bitstream to device
  14. iceprog ${ICEPROG_ARGS} $MAIN.bin