diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-10-13 11:03:58 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-10-13 11:03:58 +0200 |
commit | 11c95920d2c3936a4965b51e78b0258d8d2bfa8f (patch) | |
tree | c275b9e7167d53925b4230de584c856cccd433db | |
parent | 103e6fd4f890b29ffc9b3b1ccbc5f11bdc62e9b7 (diff) | |
download | icestorm-11c95920d2c3936a4965b51e78b0258d8d2bfa8f.tar.gz icestorm-11c95920d2c3936a4965b51e78b0258d8d2bfa8f.tar.bz2 icestorm-11c95920d2c3936a4965b51e78b0258d8d2bfa8f.zip |
Added pinloc fuzzers for 1k vq100 and cb132
-rw-r--r-- | icefuzz/pinloc/pinloc-1k-cb132.sh | 35 | ||||
-rw-r--r-- | icefuzz/pinloc/pinloc-1k-vq100.sh | 33 |
2 files changed, 68 insertions, 0 deletions
diff --git a/icefuzz/pinloc/pinloc-1k-cb132.sh b/icefuzz/pinloc/pinloc-1k-cb132.sh new file mode 100644 index 0000000..07c1f06 --- /dev/null +++ b/icefuzz/pinloc/pinloc-1k-cb132.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +pins=" + B1 C1 C3 D3 D4 E4 D1 E1 F4 F3 H3 H1 G1 G3 G4 H4 J1 J3 K4 K3 M1 L1 P1 N1 M3 + L4 P2 P3 M4 L5 P4 L6 P5 M6 P7 P8 M7 P9 L7 M8 L8 M9 L9 P10 M10 L10 M11 P11 + P12 P13 L11 M12 P14 L12 N14 M14 L14 K12 K11 K14 J12 J11 H12 H11 F14 G14 + G12 G11 F12 E14 F11 E12 D14 C14 E11 B14 D12 A14 A13 C12 A12 C11 C10 D11 + A10 D10 C9 D9 C8 D8 A7 A6 C7 D7 C6 A5 A4 D6 C5 A2 D5 A1 C4 A9 F1 F7 G7 G8 + G9 H6 H7 H8 J14 J8 L3 P6 F8 G6 H9 J4 J7 A8 F6 F9 H14 J9 M5 E3 J6 K1 A3 A11 +" + +{ + echo -n "all:" + for pin in $pins; do + id="pinloc-1k-cb132_${pin}" + echo -n " ${id}.exp" + done + echo + + for pin in $pins; do + id="pinloc-1k-cb132_${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=hx1k-cb132 bash ../icecube.sh ${id} > ${id}.log 2>&1" + echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new" + echo " rm -rf ${id}.tmp" + echo " mv ${id}.exp.new ${id}.exp" + done +} > pinloc-1k-cb132.mk + +set -ex +make -f pinloc-1k-cb132.mk -j4 +python3 pinlocdb.py pinloc-1k-cb132_*.exp > pinloc-1k-cb132.txt + diff --git a/icefuzz/pinloc/pinloc-1k-vq100.sh b/icefuzz/pinloc/pinloc-1k-vq100.sh new file mode 100644 index 0000000..13df585 --- /dev/null +++ b/icefuzz/pinloc/pinloc-1k-vq100.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +pins=" + 1 2 3 4 7 8 9 10 12 13 15 16 18 19 20 21 24 25 26 27 28 29 30 33 34 36 37 + 40 41 42 43 44 45 46 48 49 50 51 52 53 54 56 57 59 60 62 63 64 65 66 68 + 69 71 72 73 74 75 76 78 79 80 81 82 83 85 86 87 89 90 91 93 94 95 96 97 + 99 100 5 32 39 47 55 70 98 17 23 84 11 35 61 77 92 88 58 67 31 38 6 14 22 +" + +{ + echo -n "all:" + for pin in $pins; do + id="pinloc-1k-vq100_${pin}" + echo -n " ${id}.exp" + done + echo + + for pin in $pins; do + id="pinloc-1k-vq100_${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=hx1k-vq100 bash ../icecube.sh ${id} > ${id}.log 2>&1" + echo " ../../icebox/icebox_explain.py ${id}.txt > ${id}.exp.new" + echo " rm -rf ${id}.tmp" + echo " mv ${id}.exp.new ${id}.exp" + done +} > pinloc-1k-vq100.mk + +set -ex +make -f pinloc-1k-vq100.mk -j4 +python3 pinlocdb.py pinloc-1k-vq100_*.exp > pinloc-1k-vq100.txt + |