aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/pinloc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-02-06 13:41:05 +0100
committerClifford Wolf <clifford@clifford.at>2016-02-06 13:41:05 +0100
commit788b101742bed8f92655c462ff59bd2bb69efa58 (patch)
treef421570a9c69f84a22bda6c3f946856a6c3aeb65 /icefuzz/pinloc
parentabb76abb8685f347043233848ad6983364c45a37 (diff)
downloadicestorm-788b101742bed8f92655c462ff59bd2bb69efa58.tar.gz
icestorm-788b101742bed8f92655c462ff59bd2bb69efa58.tar.bz2
icestorm-788b101742bed8f92655c462ff59bd2bb69efa58.zip
Added lp1k-cm49 package
Diffstat (limited to 'icefuzz/pinloc')
-rw-r--r--icefuzz/pinloc/pinloc-1k-cm49.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/icefuzz/pinloc/pinloc-1k-cm49.sh b/icefuzz/pinloc/pinloc-1k-cm49.sh
new file mode 100644
index 0000000..1a065ee
--- /dev/null
+++ b/icefuzz/pinloc/pinloc-1k-cm49.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+mkdir -p pinloc-1k-cm49
+cd pinloc-1k-cm49
+
+pins="
+ A1 A2 A3 A4 A5 A6 A7
+ B1 B2 B3 B4
+ C1 C2 C4 C5 C6 C7
+ D1 D2 D3 D4 D6 D7
+ E2 E6 E7
+ F2 F3 F4 F5 F6 F7
+ G3 G4 G6
+"
+
+if [ $(echo $pins | wc -w) -ne 35 ]; then
+ echo "Incorrect number of pins:" $(echo $pins | wc -w)
+ exit 1
+fi
+
+{
+ echo -n "all:"
+ for pin in $pins; do
+ id="pinloc-1k-cm49_${pin}"
+ echo -n " ${id}.exp"
+ done
+ echo
+
+ for pin in $pins; do
+ id="pinloc-1k-cm49_${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-cm49 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-cm49.mk
+
+set -ex
+make -f pinloc-1k-cm49.mk -j4
+python3 ../pinlocdb.py pinloc-1k-cm49_*.exp > ../pinloc-1k-cm49.txt
+