Add icecube.sh support for lp384-cm36 and lp384-cm49, make cm49 default

This commit is contained in:
Clifford Wolf 2017-03-09 10:28:57 +01:00
parent 89fe3abc45
commit 9efea90b1a
2 changed files with 17 additions and 6 deletions

View File

@ -30,13 +30,16 @@ elif os.getenv('ICE384PINS'):
num_ramb40 = 0
pins = """
1 2 5 6 7 8
12 13 14 15
18 19 20 22 23
26 27 29 30 31 32
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
F1 F2 F3 F4 F5 F6 F7
G1 G3 G4 G6
""".split()
gpins = "6 8 19 20 29 30".split()
gpins = "B4 C4 D2 D6 D7 E2 F3 F4".split()
else:
num_ramb40 = 16

View File

@ -42,7 +42,7 @@ if [ "$1" == "-8k" ]; then
fi
if [ "$1" == "-384" ]; then
ICEDEV=lp384-qn32
ICEDEV=lp384-cm49
shift
fi
@ -101,6 +101,14 @@ case "${ICEDEV:-hx1k-tq144}" in
iCEPACKAGE="QN32"
iCE40DEV="iCE40LP384"
;;
lp384-cm36)
iCEPACKAGE="CM36"
iCE40DEV="iCE40LP384"
;;
lp384-cm49)
iCEPACKAGE="CM49"
iCE40DEV="iCE40LP384"
;;
lp1k-swg16tr)
iCEPACKAGE="SWG16TR"
iCE40DEV="iCE40LP1K"