diff options
Diffstat (limited to 'examples/icezum/test.sh')
-rwxr-xr-x | examples/icezum/test.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/icezum/test.sh b/examples/icezum/test.sh new file mode 100755 index 0000000..72da526 --- /dev/null +++ b/examples/icezum/test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +cd $(dirname $0) + +DOCKER_CMD="docker run --rm -v /$(pwd)://wrk -w //wrk" + +mkdir -p build + +for prj in blink counter led_on pushbutton; do + $DOCKER_CMD ghdl/synth:beta yosys -m ghdl -p "ghdl $prj.vhdl -e $prj; synth_ice40 -json build/json" + $DOCKER_CMD ghdl/synth:nextpnr nextpnr-ice40 --hx1k --json build/json --pcf icezum.pcf --asc build/asc + $DOCKER_CMD ghdl/synth:icestorm icepack build/asc build/$prj.bin +done |