2018-12-01 09:06:55 +08:00
|
|
|
#!/bin/bash
|
2018-12-28 15:28:33 +08:00
|
|
|
set -ex
|
|
|
|
rm -f picorv32.v attosoc.v
|
|
|
|
wget https://raw.githubusercontent.com/cliffordwolf/picorv32/master/picorv32.v
|
|
|
|
wget https://raw.githubusercontent.com/SymbiFlow/prjtrellis/master/examples/picorv32_versa5g/attosoc.v
|
2018-12-28 15:47:16 +08:00
|
|
|
ln -sf firmware_slow.hex firmware.hex
|
2018-12-01 09:06:55 +08:00
|
|
|
yosys attosoc.ys
|
2018-12-28 15:28:33 +08:00
|
|
|
set +e
|
|
|
|
../nextpnr-xc7 --json attosoc.json --xdl attosoc.xdl --pcf attosoc.pcf --freq 125
|
|
|
|
set -e
|
2018-12-01 09:06:55 +08:00
|
|
|
xdl -xdl2ncd attosoc.xdl
|
2018-12-28 15:47:16 +08:00
|
|
|
bitgen -w attosoc.ncd -g UnconstrainedPins:Allow
|
2018-12-01 09:06:55 +08:00
|
|
|
trce attosoc.ncd -v 10
|