| 1 | set -x |
| 2 | cd empty |
| 3 | ~/bin/gowin/IDE/bin/gw_sh run.tcl |
| 4 | cd .. |
| 5 | cp empty/impl/pnr/empty.fs . |
| 6 | |
| 7 | mkdir -p data/fs |
| 8 | mkdir -p data/bits |
| 9 | cd iob |
| 10 | for location in {1..88} |
| 11 | do |
| 12 | if [[ ! -f "../data/fs/pin$location.fs" ]]; then |
| 13 | sed s/LOCATION/$location/ iob.cst.mk > iob.cst |
| 14 | ~/bin/gowin/IDE/bin/gw_sh run.tcl |
| 15 | mv impl/pnr/iob.fs ../data/fs/pin$location.fs |
| 16 | fi |
| 17 | if [[ ! -f "../data/bits/pin$location.json" ]]; then |
| 18 | python ../indices.py ../empty.fs ../data/fs/pin$location.fs > ../data/bits/pin$location.json |
| 19 | fi |
| 20 | done |
| 21 | cd .. |
| 22 |