aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/examples/floorplan/floorplan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/examples/floorplan/floorplan.sh')
-rwxr-xr-xice40/examples/floorplan/floorplan.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ice40/examples/floorplan/floorplan.sh b/ice40/examples/floorplan/floorplan.sh
new file mode 100755
index 00000000..e0ed7a64
--- /dev/null
+++ b/ice40/examples/floorplan/floorplan.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+set -ex
+yosys -p "synth_ice40 -top top -json floorplan.json" floorplan.v
+../../../nextpnr-ice40 --up5k --json floorplan.json --pcf icebreaker.pcf --asc floorplan.asc --ignore-loops --pre-place floorplan.py
+icepack floorplan.asc floorplan.bin
+iceprog floorplan.bin