diff options
| author | Clifford Wolf <clifford@clifford.at> | 2019-02-23 08:35:26 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-23 08:35:26 -0800 |
| commit | 3a2bfee5cbc0558641668114260d3f644d6b7c83 (patch) | |
| tree | c52eaf3de8d20ab4f198720ab3863c17448e6f13 /icefuzz/icecube.sh | |
| parent | a2c8be79487ad448198357d63e7b9f0f946066f1 (diff) | |
| parent | be0bca0230d6fe1102e0a360b953fbb0d273a39f (diff) | |
Merge pull request #202 from corecode/u4k
iCE40 Ultra = iCE5LP = u4k port
Diffstat (limited to 'icefuzz/icecube.sh')
| -rw-r--r-- | icefuzz/icecube.sh | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/icefuzz/icecube.sh b/icefuzz/icecube.sh index 832c15e..bcba14e 100644 --- a/icefuzz/icecube.sh +++ b/icefuzz/icecube.sh @@ -61,6 +61,11 @@ if [ "$1" == "-lm4k" ]; then shift fi +if [ "$1" == "-u4k" ]; then + ICEDEV=u4k-sg48 + shift +fi + set -ex set -- ${1%.v} icecubedir="${ICECUBEDIR:-/opt/lscc/iCEcube2.2015.08}" @@ -228,6 +233,14 @@ case "${ICEDEV:-hx1k-tq144}" in iCEPACKAGE="SWG25TR" iCE40DEV="iCE40LM1K" ;; + u1k-sg48) + iCEPACKAGE="SG48" + iCE40DEV="iCE5LP1K" + ;; + u4k-sg48) + iCEPACKAGE="SG48" + iCE40DEV="iCE5LP4K" + ;; *) echo "ERROR: Invalid \$ICEDEV device config '$ICEDEV'." exit 1 @@ -294,6 +307,16 @@ case "$iCE40DEV" in libfile="ice40LM4K.lib" devfile="ICE40R04.dev" ;; + iCE5LP1K) + icetech="SBTiCE5LP" + libfile="ice40TH4K.lib" + devfile="ICE40T04.dev" + ;; + iCE5LP4K) + icetech="SBTiCE5LP" + libfile="ice40TH4K.lib" + devfile="ICE40T04.dev" + ;; esac ( @@ -439,8 +462,8 @@ cat > foobar_sbt.project << EOT Implementations=foobar_Implmnt [foobar_Implmnt] -DeviceFamily=$( echo $iCE40DEV | sed -re 's,(HX|5K).*,,'; ) -Device=$( echo $iCE40DEV | sed -re 's,iCE40(UP)?,,'; ) +DeviceFamily=$( echo $iCE40DEV | sed -re 's,(HX|5K|(iCE5LP)).*,\2,'; ) +Device=$( echo $iCE40DEV | sed -re 's,(iCE40(UP|LP)?|iCE5LP),,'; ) DevicePackage=$iCEPACKAGE Devicevoltage=1.14 DevicevoltagePerformance=+/-5%(datasheet default) |
