diff options
Diffstat (limited to 'machxo2/examples/demorgb.sh')
-rw-r--r-- | machxo2/examples/demorgb.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/machxo2/examples/demorgb.sh b/machxo2/examples/demorgb.sh new file mode 100644 index 00000000..f68db8c3 --- /dev/null +++ b/machxo2/examples/demorgb.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ ! -z ${TRELLIS_DB+x} ]; then + DB_ARG="--db $TRELLIS_DB" +fi + +${YOSYS:-yosys} -p 'synth_machxo2 -json rgbcount.json' rgbcount.v +${NEXTPNR:-../../nextpnr-machxo2} --1200 --package QFN32 --no-iobs --json rgbcount.json --textcfg rgbcount.txt +ecppack --compress $DB_ARG rgbcount.txt rgbcount.bit +tinyproga -b rgbcount.bit |