Skip to content

Commit

Permalink
Added lp1k-cm36 package
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffordwolf committed Feb 6, 2016
1 parent ef559ab commit abb76ab
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
27 changes: 27 additions & 0 deletions icebox/icebox.py
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,33 @@ def parse_db(text, grep_8k=False):
( "D1", 12, 0, 1),
( "D3", 6, 0, 1),
],
"1k-cm36": [
( "A1", 0, 13, 0),
( "A2", 4, 17, 1),
( "A3", 7, 17, 0),
( "B1", 0, 13, 1),
( "B3", 6, 17, 1),
( "B4", 13, 9, 0),
( "B5", 13, 11, 0),
( "B6", 13, 11, 1),
( "C1", 0, 9, 0),
( "C2", 0, 9, 1),
( "C3", 4, 17, 0),
( "C5", 13, 8, 1),
( "C6", 13, 12, 0),
( "D1", 0, 8, 1),
( "D5", 12, 0, 1),
( "D6", 13, 6, 0),
( "E1", 0, 8, 0),
( "E2", 6, 0, 0),
( "E3", 10, 0, 0),
( "E4", 11, 0, 0),
( "E5", 12, 0, 0),
( "E6", 13, 4, 1),
( "F2", 6, 0, 1),
( "F3", 10, 0, 1),
( "F5", 11, 0, 1),
],
"1k-cb81": [
( "A2", 2, 17, 1),
( "A3", 3, 17, 1),
Expand Down
4 changes: 4 additions & 0 deletions icefuzz/icecube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ case "${ICEDEV:-hx1k-tq144}" in
iCEPACKAGE="SWG16TR"
iCE40DEV="iCE40LP1K"
;;
lp1k-cm36)
iCEPACKAGE="CM36"
iCE40DEV="iCE40LP1K"
;;
lp1k-qn84)
iCEPACKAGE="QN84"
iCE40DEV="iCE40LP1K"
Expand Down
44 changes: 44 additions & 0 deletions icefuzz/pinloc/pinloc-1k-cm36.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

mkdir -p pinloc-1k-cm36
cd pinloc-1k-cm36

pins="
A1 A2 A3
B1 B3 B4 B5 B6
C1 C2 C3 C5 C6
D1 D5 D6
E1 E2 E3 E4 E5 E6
F2 F3 F5
"

if [ $(echo $pins | wc -w) -ne 25 ]; then
echo "Incorrect number of pins:" $(echo $pins | wc -w)
exit 1
fi

{
echo -n "all:"
for pin in $pins; do
id="pinloc-1k-cm36_${pin}"
echo -n " ${id}.exp"
done
echo

for pin in $pins; do
id="pinloc-1k-cm36_${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-cm36 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-cm36.mk

set -ex
make -f pinloc-1k-cm36.mk -j4
python3 ../pinlocdb.py pinloc-1k-cm36_*.exp > ../pinloc-1k-cm36.txt

0 comments on commit abb76ab

Please sign in to comment.