aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/icecube.sh
diff options
context:
space:
mode:
Diffstat (limited to 'icefuzz/icecube.sh')
-rw-r--r--icefuzz/icecube.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/icefuzz/icecube.sh b/icefuzz/icecube.sh
index 422ded6..5a1a7f2 100644
--- a/icefuzz/icecube.sh
+++ b/icefuzz/icecube.sh
@@ -183,6 +183,10 @@ case "${ICEDEV:-hx1k-tq144}" in
iCEPACKAGE="SG48"
iCE40DEV="iCE40UP5K"
;;
+ up5k-uwg30)
+ iCEPACKAGE="UWG30"
+ iCE40DEV="iCE40UP5K"
+ ;;
*)
echo "ERROR: Invalid \$ICEDEV device config '$ICEDEV'."
exit 1
@@ -379,8 +383,8 @@ cat > foobar_sbt.project << EOT
Implementations=foobar_Implmnt
[foobar_Implmnt]
-DeviceFamily=$( echo $iCE40DEV | sed -re 's,(HX).*,,'; )
-Device=$( echo $iCE40DEV | sed -re 's,iCE40,,'; )
+DeviceFamily=$( echo $iCE40DEV | sed -re 's,(HX|5K).*,,'; )
+Device=$( echo $iCE40DEV | sed -re 's,iCE40(UP)?,,'; )
DevicePackage=$iCEPACKAGE
Devicevoltage=1.14
DevicevoltagePerformance=+/-5%(datasheet default)
@@ -419,4 +423,3 @@ fi
export LD_LIBRARY_PATH=""
$scriptdir/../icepack/iceunpack "$1.bin" "$1.asc"
-