diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-02-06 12:51:39 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-02-06 12:51:39 +0100 |
commit | 375f3abd788f2ffd7db134e877051447b332af65 (patch) | |
tree | 97dbbc9296bbd21ec1866e16a48b745d3903ade1 /icefuzz | |
parent | b18dfa959816959de5db0c4dcdd695d14b1eb640 (diff) | |
download | icestorm-375f3abd788f2ffd7db134e877051447b332af65.tar.gz icestorm-375f3abd788f2ffd7db134e877051447b332af65.tar.bz2 icestorm-375f3abd788f2ffd7db134e877051447b332af65.zip |
Added lp1k-swg16tr package
Diffstat (limited to 'icefuzz')
-rw-r--r-- | icefuzz/icecube.sh | 4 | ||||
-rw-r--r-- | icefuzz/pinloc/pinloc-1k-swg16tr.sh | 39 |
2 files changed, 43 insertions, 0 deletions
diff --git a/icefuzz/icecube.sh b/icefuzz/icecube.sh index 27ab550..d1ac273 100644 --- a/icefuzz/icecube.sh +++ b/icefuzz/icecube.sh @@ -87,6 +87,10 @@ case "${ICEDEV:-hx1k-tq144}" in iCEPACKAGE="CB132" iCE40DEV="iCE40HX8K" ;; + lp1k-swg16tr) + iCEPACKAGE="SWG16TR" + iCE40DEV="iCE40LP1K" + ;; lp1k-qn84) iCEPACKAGE="QN84" iCE40DEV="iCE40LP1K" diff --git a/icefuzz/pinloc/pinloc-1k-swg16tr.sh b/icefuzz/pinloc/pinloc-1k-swg16tr.sh new file mode 100644 index 0000000..398f050 --- /dev/null +++ b/icefuzz/pinloc/pinloc-1k-swg16tr.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +mkdir -p pinloc-1k-swg16tr +cd pinloc-1k-swg16tr + +pins=" + A2 A4 B1 B2 B3 C1 C2 C3 D1 D3 +" + +if [ $(echo $pins | wc -w) -ne 10 ]; then + echo "Incorrect number of pins:" $(echo $pins | wc -w) + exit 1 +fi + +{ + echo -n "all:" + for pin in $pins; do + id="pinloc-1k-swg16tr_${pin}" + echo -n " ${id}.exp" + done + echo + + for pin in $pins; do + id="pinloc-1k-swg16tr_${pin}" + echo "module top(output y); assign y = 0; endmodule" > ${id}.v + echo "set_io y ${pin}" >> ${id}.pcf + echo; echo "${id}.exp:" + echo " ICEDEV=lp1k-swg16tr bash ../../icecube.sh ${id} > ${id}.log 2>&1" + echo " ../../../icebox/icebox_explain.py ${id}.asc > ${id}.exp.new" + echo " ! grep '^Warning: pin' ${id}.log" + echo " rm -rf ${id}.tmp" + echo " mv ${id}.exp.new ${id}.exp" + done +} > pinloc-1k-swg16tr.mk + +set -ex +make -f pinloc-1k-swg16tr.mk -j4 +python3 ../pinlocdb.py pinloc-1k-swg16tr_*.exp > ../pinloc-1k-swg16tr.txt + |