aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-06-20 00:28:34 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-06-20 00:28:34 -0700
commit5dd8d1172cd7110e08ec7aad9202038101e432d6 (patch)
tree5bb1207a955eff133b5d02aa05a97734fd425859 /icefuzz
parent8611d612d4c40035e377ae9d3417fbd233edb61d (diff)
downloadicestorm-5dd8d1172cd7110e08ec7aad9202038101e432d6.tar.gz
icestorm-5dd8d1172cd7110e08ec7aad9202038101e432d6.tar.bz2
icestorm-5dd8d1172cd7110e08ec7aad9202038101e432d6.zip
icefuzz support for ice40UP5k FPGA
Diffstat (limited to 'icefuzz')
-rw-r--r--icefuzz/icecube.sh19
1 files changed, 16 insertions, 3 deletions
diff --git a/icefuzz/icecube.sh b/icefuzz/icecube.sh
index a13d440..5bf1efd 100644
--- a/icefuzz/icecube.sh
+++ b/icefuzz/icecube.sh
@@ -51,6 +51,11 @@ if [ "$1" == "-ul1k" ]; then
shift
fi
+if [ "$1" == "-up5k" ]; then
+ ICEDEV=up5k-sg48
+ shift
+fi
+
set -ex
set -- ${1%.v}
icecubedir="${ICECUBEDIR:-/opt/lscc/iCEcube2.2015.08}"
@@ -62,7 +67,7 @@ export TCL_LIBRARY="$icecubedir/sbt_backend/bin/linux/lib/tcl8.4"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$icecubedir/sbt_backend/bin/linux/opt"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$icecubedir/sbt_backend/bin/linux/opt/synpwrap"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$icecubedir/sbt_backend/lib/linux/opt"
-export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$icecubedir/LSE/bin/lin"
+export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$icecubedir/LSE/bin/lin64"
case "${ICEDEV:-hx1k-tq144}" in
hx1k-cb132)
@@ -173,6 +178,10 @@ case "${ICEDEV:-hx1k-tq144}" in
iCEPACKAGE="CM36A"
iCE40DEV="iCE40UL1K"
;;
+ up5k-sg48)
+ iCEPACKAGE="SG48"
+ iCE40DEV="iCE40UP5K"
+ ;;
*)
echo "ERROR: Invalid \$ICEDEV device config '$ICEDEV'."
exit 1
@@ -219,6 +228,11 @@ case "$iCE40DEV" in
libfile="ice40BT1K.lib"
devfile="ICE40T01.dev"
;;
+ iCE40UP5K)
+ icetech="SBTiCE40UP"
+ libfile="ice40UP5K.lib"
+ devfile="ICE40T05.dev"
+ ;;
esac
(
@@ -334,7 +348,7 @@ fi
# synthesis (Lattice LSE)
if true; then
- "$icecubedir"/LSE/bin/lin/synthesis -f "impl_lse.prj"
+ "$icecubedir"/LSE/bin/lin64/synthesis -f "impl_lse.prj"
fi
# convert netlist
@@ -404,4 +418,3 @@ fi
export LD_LIBRARY_PATH=""
$scriptdir/../icepack/iceunpack "$1.bin" "$1.asc"
-