aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/blinky.sh
blob: a2326fc3dcf86fb7d20871abd89e27d1ff1a7fd6 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
set -ex
yosys blinky.ys
../nextpnr-ice40 --json blinky.json --pcf blinky.pcf --asc blinky.asc
icepack blinky.asc blinky.bin
icebox_vlog blinky.asc > blinky_chip.v
iverilog -o blinky_tb blinky_chip.v blinky_tb.v
vvp -N ./blinky_tb