aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/examples/demo.sh
blob: 6979f11124b8367a6cf5df1307fe8bfe3d7a378a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if [ ! -z ${TRELLIS_DB+x} ]; then
    DB_ARG="--db $TRELLIS_DB"
fi

${YOSYS:-yosys} -p 'synth_machxo2 -json tinyfpga.json' tinyfpga.v
${NEXTPNR:-../../nextpnr-machxo2} --1200 --package QFN32 --no-iobs --json tinyfpga.json --textcfg tinyfpga.txt
ecppack --compress $DB_ARG tinyfpga.txt tinyfpga.bit
tinyproga -b tinyfpga.bit