aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/pinloc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-02-06 16:46:42 +0100
committerClifford Wolf <clifford@clifford.at>2016-02-06 16:46:42 +0100
commitb6ce045ad975917a3426a7526f165a1fd4025fb5 (patch)
treebe27084f6f89ae1e507b2fe96c307c5f11a7c514 /icefuzz/pinloc
parentbd113ba89cce4b4712d4b7d37b88c82ef70d1dc2 (diff)
downloadicestorm-b6ce045ad975917a3426a7526f165a1fd4025fb5.tar.gz
icestorm-b6ce045ad975917a3426a7526f165a1fd4025fb5.tar.bz2
icestorm-b6ce045ad975917a3426a7526f165a1fd4025fb5.zip
Added lp4k-cm81 package
Diffstat (limited to 'icefuzz/pinloc')
-rw-r--r--icefuzz/pinloc/pinloc-4k-cm81.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/icefuzz/pinloc/pinloc-4k-cm81.sh b/icefuzz/pinloc/pinloc-4k-cm81.sh
new file mode 100644
index 0000000..6f87dbc
--- /dev/null
+++ b/icefuzz/pinloc/pinloc-4k-cm81.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+
+mkdir -p pinloc-4k-cm81
+cd pinloc-4k-cm81
+
+pins="
+ A1 A2 A3 A4 A6 A7 A8 A9
+ B1 B2 B3 B4 B5 B6 B7 B8 B9
+ C1 C2 C3 C4 C5 C9
+ D1 D2 D3 D5 D6 D7 D8 D9
+ E1 E2 E3 E4 E5 E7 E8
+ F1 F3 F7 F8
+ G1 G2 G3 G4 G5 G6 G7 G8 G9
+ H1 H2 H4 H5 H7 H9
+ J1 J2 J3 J4 J8 J9
+"
+
+if [ $(echo $pins | wc -w) -ne 63 ]; then
+ echo "Incorrect number of pins:" $(echo $pins | wc -w)
+ exit 1
+fi
+
+{
+ echo -n "all:"
+ for pin in $pins; do
+ id="pinloc-4k-cm81_${pin}"
+ echo -n " ${id}.exp"
+ done
+ echo
+
+ for pin in $pins; do
+ id="pinloc-4k-cm81_${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=lp4k-cm81 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-4k-cm81.mk
+
+set -ex
+make -f pinloc-4k-cm81.mk -j4
+python3 ../pinlocdb.py pinloc-4k-cm81_*.exp > ../pinloc-4k-cm81.txt
+