aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/examples/demo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'machxo2/examples/demo.sh')
-rw-r--r--machxo2/examples/demo.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/machxo2/examples/demo.sh b/machxo2/examples/demo.sh
new file mode 100644
index 00000000..6979f111
--- /dev/null
+++ b/machxo2/examples/demo.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 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