diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-05-12 21:15:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-12 21:15:22 +0200 |
commit | 3c6a4dc517514999dffa3f10585a06f1ea223bae (patch) | |
tree | c5aa8262babec7c6f1000b38ad5b3eab27ba19d5 /icefuzz | |
parent | 237280ce44f72c7b2e1ca671d5113dba34cc4fca (diff) | |
parent | 56a0d3f8eaf202027f077bfb98b3e9c00452d08e (diff) | |
download | icestorm-3c6a4dc517514999dffa3f10585a06f1ea223bae.tar.gz icestorm-3c6a4dc517514999dffa3f10585a06f1ea223bae.tar.bz2 icestorm-3c6a4dc517514999dffa3f10585a06f1ea223bae.zip |
Merge pull request #138 from awygle/lm4k_icepack
LM4K support in icepack and icecube.sh
Diffstat (limited to 'icefuzz')
-rw-r--r-- | icefuzz/icecube.sh | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/icefuzz/icecube.sh b/icefuzz/icecube.sh index 5a1a7f2..832c15e 100644 --- a/icefuzz/icecube.sh +++ b/icefuzz/icecube.sh @@ -56,6 +56,11 @@ if [ "$1" == "-up5k" ]; then shift fi +if [ "$1" == "-lm4k" ]; then + ICEDEV=lm4k-cm49 + shift +fi + set -ex set -- ${1%.v} icecubedir="${ICECUBEDIR:-/opt/lscc/iCEcube2.2015.08}" @@ -187,6 +192,42 @@ case "${ICEDEV:-hx1k-tq144}" in iCEPACKAGE="UWG30" iCE40DEV="iCE40UP5K" ;; + lm4k-cm49) + iCEPACKAGE="CM49" + iCE40DEV="iCE40LM4K" + ;; + lm4k-cm36) + iCEPACKAGE="CM36" + iCE40DEV="iCE40LM4K" + ;; + lm4k-swg25tr) + iCEPACKAGE="SWG25TR" + iCE40DEV="iCE40LM4K" + ;; + lm2k-cm49) + iCEPACKAGE="CM49" + iCE40DEV="iCE40LM2K" + ;; + lm2k-cm36) + iCEPACKAGE="CM36" + iCE40DEV="iCE40LM2K" + ;; + lm2k-swg25tr) + iCEPACKAGE="SWG25TR" + iCE40DEV="iCE40LM2K" + ;; + lm1k-cm49) + iCEPACKAGE="CM49" + iCE40DEV="iCE40LM1K" + ;; + lm1k-cm36) + iCEPACKAGE="CM36" + iCE40DEV="iCE40LM1K" + ;; + lm1k-swg25tr) + iCEPACKAGE="SWG25TR" + iCE40DEV="iCE40LM1K" + ;; *) echo "ERROR: Invalid \$ICEDEV device config '$ICEDEV'." exit 1 @@ -238,6 +279,21 @@ case "$iCE40DEV" in libfile="ice40UP5K.lib" devfile="ICE40T05.dev" ;; + iCE40LM1K) + icetech="SBTiCE40LM" + libfile="ice40LM4K.lib" + devfile="ICE40R04.dev" + ;; + iCE40LM2K) + icetech="SBTiCE40LM" + libfile="ice40LM4K.lib" + devfile="ICE40R04.dev" + ;; + iCE40LM4K) + icetech="SBTiCE40LM" + libfile="ice40LM4K.lib" + devfile="ICE40R04.dev" + ;; esac ( |