Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Testing in Ubuntu phone

Juan Gonzalez-Gomez edited this page Apr 13, 2016 · 20 revisions

Testing and installing the icestorm toolchain

  • Enter into the phone with phablet-shell:
$ phablet-shell
phablet@ubuntu-phablet:~$ wget https://github.com/FPGAwars/toolchain-icestorm/releases/download/0.7/toolchain-icestorm-armhf-7.tar.gz
  • Extract the files:
phablet@ubuntu-phablet:~$ tar vzxf toolchain-icestorm-armhf-7.tar.gz
  • Install the files in the Ubuntu phone system:
phablet@ubuntu-phablet:~$ cd toolchain-icestorm
[...]
phablet@ubuntu-phablet:~/toolchain-icestorm$ sudo cp bin/* /usr/bin
[...]
phablet@ubuntu-phablet:~/toolchain-icestorm$ sudo cp -r share/* /usr/share/
  • Generate the bitstream for the t1 example:
phablet@ubuntu-phablet:~/toolchain-icestorm$ cd examples/icestick/t1
phablet@ubuntu-phablet:~/toolchain-icestorm/examples/icestick/t1$ yosys -p "synth_ice40 -blif test.blif" t1.v
[...]
phablet@ubuntu-phablet:~/toolchain-icestorm/examples/icestick/t1$ arachne-pnr -d 1k -p t1.pcf test.blif -o test.asc
[...]
phablet@ubuntu-phablet:~/toolchain-icestorm/examples/icestick/t1$ icepack test.asc t1.bin
  • Connect the FPGA board to the ubuntu phone by means of an OTG cable

  • Open the Terminal app:

and cd into the examples/icestick/t1 folder

phablet@ubuntu-phablet:~$ cd examples/icestick/t1

  • Upload the t1.bin bitstream:

Type this command:

phablet@ubuntu-phablet:~/toolchain-icestorm/examples/icestick/t1$ iceprog t1.bin

and the bitstream will be uploaded into the FPGA board:

Video

The whole process of generating a bitstream and uploading into the IceZUM Alhambra FPGA board can be seen on this youtube video:

Click to see the youtube video

Instead of typing all the commands for generating the bitstream, a shell script is used

Links

Clone this wiki locally