Quartus installation on Linux: Difference between revisions
| (37 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category: FPGA]] | |||
== Introduction == | == Introduction == | ||
[http:// | [http://dl.altera.com/14.0/?edition=web Quartus web edition 14.0] is the software used to synthesize bitstream for Altera FPGAs. It's required for the cyclone V soldered on [[APF6SP]]. | ||
== Installation guide == | == Installation guide for version 14.0== | ||
=== Package needed === | === Package needed === | ||
| Line 11: | Line 12: | ||
sudo apt-get install libstdc++5 libmotif4 libxp6 libcurl3 | sudo apt-get install libstdc++5 libmotif4 libxp6 libcurl3 | ||
# for 64 arch, install also 32bits packets: | # for 64 arch, install also 32bits packets: | ||
sudo dpkg --add-architecture i386 | |||
sudo apt-get install libstdc++5:i386 libmotif4:i386 libxp6:i386 libcurl3:i386 | sudo apt-get install libstdc++5:i386 libmotif4:i386 libxp6:i386 libcurl3:i386 | ||
</pre> | </pre> | ||
| Line 45: | Line 47: | ||
export PATH=$PATH:${ALTERAPATH}/quartus/bin | export PATH=$PATH:${ALTERAPATH}/quartus/bin | ||
export PATH=$PATH:${ALTERAPATH}/nios2eds/bin | export PATH=$PATH:${ALTERAPATH}/nios2eds/bin | ||
export PATH=$PATH:${ | export PATH=$PATH:${QSYS_ROOTDIR} | ||
</source> | </source> | ||
| Line 54: | Line 56: | ||
$ quartus | $ quartus | ||
</pre> | </pre> | ||
=== USB-Blaster === | |||
USB-BLaster is an USB JTAG adaptor usefull to debug altera FPGA. Under Linux some rights must be added to use it with quartus. | |||
* create an udev rules files in : | |||
/etc/udev/rules.d/altera-usb-blaster.rules | |||
* And add following configuration : | |||
<pre class="config"> | |||
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666" | |||
</pre> | |||
== Version 15.1 prime lite== | |||
{{Note| Quartus 15.1.1 with update 1 take about ~16GB once installed, but ~15 more GB are required for download/untar before installation}} | |||
Version 15.1 with update (click on updates tab). | |||
* In '' Complete Download'' chapter, download the big archive with update 1 (7.6GB) on the [http://dl.altera.com/?edition=lite download center] (free Altera account needed): | |||
<pre> | |||
Quartus-lite-15.1.1.189-linux.tar | |||
</pre> | |||
* Watch a good movie (min 2 hours) | |||
* Move the big archive in a directory with enough free space and untar it: | |||
<pre class="host"> | |||
$ tar -xvf Quartus-lite-15.1.1.189-linux.tar | |||
</pre> | |||
* Take a little coffee (~3 min) | |||
* Launch the installation: | |||
<pre class="host"> | |||
./setup.sh | |||
</pre> | |||
* follow the instructions to install it where you want | |||
* Take a big coffee or go to lunch (~30min) | |||
* Change your environment variables in your .bashrc: | |||
<source lang="bash"> | |||
export ALTERAPATH="/directory/where/you/installed/quartus/" | |||
export ALTERAOCLSDKROOT="${ALTERAPATH}/hld" | |||
export QUARTUS_ROOTDIR=${ALTERAPATH}/quartus | |||
export QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR" | |||
export QSYS_ROOTDIR="${ALTERAPATH}/quartus/sopc_builder/bin" | |||
export PATH=$PATH:${ALTERAPATH}/quartus/bin | |||
export PATH=$PATH:${ALTERAPATH}/nios2eds/bin | |||
</source> | |||
{{Warning| The altera installation script will edit your .bashrc file adding a line at the end.<source lang="bash"> | |||
export QUARTUS_ROOTDIR=... | |||
</source> If you add the lines above you can delete it. But if you have an esoteric language like french in some comments, the script will trash it}} | |||
* Run quartus in a new console and select prime software: | |||
<pre class="host"> | |||
$ quartus | |||
</pre> | |||
== Version 19.1 prime lite == | |||
Installation process is mainly identical with this little fixes. | |||
=== Perl Getopt::Long === | |||
When synthesize platform design (qsys) a perl error like this occure: | |||
<pre> | |||
... Can't locate Getopt/Long.pm in @INC ... | |||
</pre> | |||
Apparently, the module is not installed for Intel embedded perl. To solve the problem, a solution is to use your perl installed in distribution. | |||
But before, be sure that you have the getopt installed correctly : | |||
<pre class="host"> | |||
$ sudo apt install libgetopt-simple-perl | |||
</pre> | |||
Then go to your Intel Quartus installation : | |||
<pre class="host"> | |||
$ cd altera/19.1/quartus/linux64/perl/bin | |||
$ mv perl perl_old | |||
$ ln -s /usr/bin/perl | |||
</pre> | |||
And relaunch your quartus project. | |||
== Links == | == Links == | ||
* [http://www.alterawiki.com/wiki/Quartus_for_Debian_Wheezy Installation guide for Debian on Altera's official wiki] | * [http://www.alterawiki.com/wiki/Quartus_for_Debian_Wheezy Installation guide for Debian on Altera's official wiki] | ||
* [http://www.eecg.toronto.edu/~laforest/USB-Blaster-Debian.html USB-Blaster installation guide for debian] | |||
* [http://www.alterawiki.com/wiki/Main_Page Altera wiki] | * [http://www.alterawiki.com/wiki/Main_Page Altera wiki] | ||
* [http://www.alteraforum.com/ Altera forum] | * [http://www.alteraforum.com/ Altera forum] | ||
Latest revision as of 14:53, 12 November 2019
Introduction
Quartus web edition 14.0 is the software used to synthesize bitstream for Altera FPGAs. It's required for the cyclone V soldered on APF6SP.
Installation guide for version 14.0
Package needed
On debian jessie :
sudo apt-get install libstdc++5 libmotif4 libxp6 libcurl3 # for 64 arch, install also 32bits packets: sudo dpkg --add-architecture i386 sudo apt-get install libstdc++5:i386 libmotif4:i386 libxp6:i386 libcurl3:i386
Download
Download the big (4GB) quartus installer here (Use "download software web edition" button).
Uncompress and install
- Untar the archive :
tar -xvf Quartus-web-14.0.0.200-linux.tar
- run the installer:
bash setup.sh
- follow the instructions to install it where you want.
configure .bashrc
Adding the path of your quartus in ~/.bashrc
export ALTERAPATH="/opt/quartus/altera/14.0/"
export ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
export QUARTUS_ROOTDIR=${ALTERAPATH}/quartus
export QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR"
export PATH=$PATH:${ALTERAPATH}/quartus/bin
export PATH=$PATH:${ALTERAPATH}/nios2eds/bin
export PATH=$PATH:${QSYS_ROOTDIR}Launch Quartus
To launch quartus, open a terminal and simply type :
$ quartus
USB-Blaster
USB-BLaster is an USB JTAG adaptor usefull to debug altera FPGA. Under Linux some rights must be added to use it with quartus.
- create an udev rules files in :
/etc/udev/rules.d/altera-usb-blaster.rules
- And add following configuration :
ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", MODE="666"
Version 15.1 prime lite
| Note: Quartus 15.1.1 with update 1 take about ~16GB once installed, but ~15 more GB are required for download/untar before installation |
Version 15.1 with update (click on updates tab).
- In Complete Download chapter, download the big archive with update 1 (7.6GB) on the download center (free Altera account needed):
Quartus-lite-15.1.1.189-linux.tar
- Watch a good movie (min 2 hours)
- Move the big archive in a directory with enough free space and untar it:
$ tar -xvf Quartus-lite-15.1.1.189-linux.tar
- Take a little coffee (~3 min)
- Launch the installation:
./setup.sh
- follow the instructions to install it where you want
- Take a big coffee or go to lunch (~30min)
- Change your environment variables in your .bashrc:
export ALTERAPATH="/directory/where/you/installed/quartus/"
export ALTERAOCLSDKROOT="${ALTERAPATH}/hld"
export QUARTUS_ROOTDIR=${ALTERAPATH}/quartus
export QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR"
export QSYS_ROOTDIR="${ALTERAPATH}/quartus/sopc_builder/bin"
export PATH=$PATH:${ALTERAPATH}/quartus/bin
export PATH=$PATH:${ALTERAPATH}/nios2eds/bin
- Run quartus in a new console and select prime software:
$ quartus
Version 19.1 prime lite
Installation process is mainly identical with this little fixes.
Perl Getopt::Long
When synthesize platform design (qsys) a perl error like this occure:
... Can't locate Getopt/Long.pm in @INC ...
Apparently, the module is not installed for Intel embedded perl. To solve the problem, a solution is to use your perl installed in distribution.
But before, be sure that you have the getopt installed correctly :
$ sudo apt install libgetopt-simple-perl
Then go to your Intel Quartus installation :
$ cd altera/19.1/quartus/linux64/perl/bin $ mv perl perl_old $ ln -s /usr/bin/perl
And relaunch your quartus project.