You will probably get a GUI install wizard if you installed all the aforementioned packages. You might also

+

get a command-line interactive install wizard, which will do the same.

+

+

The default install path is {{ic|~/altera/13.0}}, but some prefer {{ic|/opt/altera/13.0}}, which we assume

+

for the rest of this document.

+

+

'''Make sure to include''' the 64-bit option of Quartus II when installing.

−

Executing this script should open a setup GUI. Just follow the instructions. For the purpose of this tutorial, I assume that you are installing Quartus II in the {{Filename|/opt/altera}} folder.

+

=== Launching Quartus II ===

−

After the base software is installed, you should install devices related files and upgrade to the service pack 1.

+

Assuming you installed Quartus II in {{ic|/opt/altera/13.0}}, Quartus II binaries are located into {{ic|/opt/altera/13.0/quartus/bin}}.

+

Run Quartus II (64-bit version):

−

$ sudo sh ./10.1_quartus_devices.sh

+

$ /opt/altera/13.0/quartus/bin/quartus --64bit

−

$ sudo sh ./10.1_quartus_linux.sh

−

=== Libpng12 ===

+

or the 32-bit version:

−

Quartus II requires libpng12 to work, which can be found in AUR.

−

$ wget http://aur.archlinux.org/packages/libpng12/libpng12.tar.gz

+

$ /opt/altera/13.0/quartus/bin/quartus

−

$ tar -xaf libpng12.tar.gz

−

$ cd libpng12

−

$ makepkg -i PKGBUILD

−

Trying to launch the software right now on a 64 bits system won't work. Quartus will complain that libpng12 does not have the right ELF class. This is because Quartus is launched in 32 bits mode by default. We need to add an environment variable to switch to 64 bits mode. Please, refer to the next section regarding this matter.

+

All other Altera tools, like Qsys, the Nios II EDS, Chip Planner and SignalTap II may be launched without any problem

+

from the ''Tools'' menu of Quartus II.

=== Integrating Quartus II with the system ===

=== Integrating Quartus II with the system ===

−

Let's now add the Quartus bin folder to the {{Codeline|PATH}} variable as well as select if we want to run it in 64 bits mode. Create a {{Filename|quartus.sh}} file in the {{Filename|/etc/profile.d}} directory

−

{{File

+

Quartus II can be integrated with the system in several ways, but those are optional.

−

|name=/etc/profile.d/quartus.sh

+

−

|content=<nowiki>

+

==== {{ic|PATH}} variable ====

−

export PATH=$PATH:/opt/altera/10.1/quartus/bin

+

−

if [ "`uname -m`" = "x86_64" ]; then

+

Let's now add the Quartus {{ic|bin}} folder to the {{ic|PATH}} variable so it can be executed without specifying its absolute path.

−

export QUARTUS_64BIT=1

+

Create a {{ic|quartus.sh}} file in the {{ic|/etc/profile.d}} directory

−

fi

+

+

{{hc|/etc/profile.d/quartus.sh

+

|2=<nowiki>

+

export PATH=$PATH:/opt/altera/13.0/quartus/bin

</nowiki>}}

</nowiki>}}

−

Other environment variables related to Quartus can be found in the official installation manual http://www.altera.com/literature/manual/quartus_install.pdf

+

Also, make sure it can be executed:

−

And now you can try launching launching Quartus II

+

# chmod +x /etc/profile.d/quartus.sh

−

−

$ source /etc/profile.d/quartus.sh

−

$ quartus

−

If this works, do not forget to logout/login for the change to have effect.

+

Please note that those {{ic|profile.d}} files are loaded at each ''login''. In the mean time, simply source

+

that file in Bash:

−

=== USB-Blaster Driver ===

+

$ source /etc/profile.d/quartus.sh

−

The USB-Blaster is a cable that allows you to download configuration data from you computer to you FPGA, CPLD or EEPROM configuration device. However Altera only provides support for RedHat Entreprise, SUSE Entreprise and Cent OS and we are required to do a little bit of work to make it work with Archlinux. If you want some more detail about this cable, please refer to http://www.altera.com/literature/ug/ug_usb_blstr.pdf

−

The JTAG server of Quartus II is responsible for communications using the USB-Blaster cable. The JTAG server ({{Filename|/opt/altera/10.1/quartus/linux/jtagd}} and {{Filename|/opt/altera/10.1/quartus/linux64/jtagd}}) is searching for devices in {{Filename|/proc/bus/usb/<bus_num>/<dev_num>}} and in the file {{Filename|/proc/bus/usb/devices}}. Using Archlinux, the former is located in {{Filename|/etc}} and not {{Filename|/proc}} and the latter does not exist unless {{Codeline|usbfs}} is mounted.

+

Other environment variables related to Quartus can be found in [http://www.altera.com/literature/manual/quartus_install.pdf the official installation manual].

−

Since the search paths are hardcoded in the JTAG server, we need to patch it to make him search for devices in {{Filename|/dev/bus/usb/<bus_num>/<dev_num>}} instead of {{Filename|/proc/bus/usb/<bus_num>/<dev_num>}}.

+

Even if {{ic|quartus}} is now a command known by Bash, you still need to add the {{ic|--64bit}} argument in order to launch the 64-bit

+

version. A shell alias, like {{ic|quartus64}}, is a great solution to avoid typing it each time.

Side by the patched JTAG server, a backup of the original one is created in {{Filename|jtagd.bak}}.

+

The USB-Blaster (I and II) Download Cable is a cable that allows you to download configuration data from your computer to your FPGA, CPLD or EEPROM configuration device. However, Altera only provides official support for RHEL, SUSE Entreprise and CentOS, so we are required to do a little bit

+

of work to make it work with Arch Linux. If you want some more detail about this cable, please refer to

Let's now make a final check by relaunching {{Filename|jtagconfig}} after having reloaded the udev rules.

+

Executing this script should open a setup GUI. Just follow the instructions. For the purpose of this tutorial, I assume that you are installing Quartus II in the {{ic|/opt/altera}} folder. Don't forget to select the file for the source of install if you don't want to download again quartus.

−

$ sudo udevadm control --reload-rules

+

Repeat this procedure for the sp1 file then the sp2.

−

$ jtagconfig

−

==Altera Quartus v11.0==

+

===Compatibility with Archlinux===

+

====With the kernel 3.x ====

+

Modelsim has a problem with the version 3 of linux kernel. You need to edit the file to make it compatible :

−

The above does not seem to work successfully for version 11 of Quartus. Whether it is the new version, Gnome 3, or Kernel 3 I do not know.

+

change

+

{{hc|/opt/altera/modelsim_ase/bin/vsim line 204

+

|<nowiki>

+

*) vco="linux_rh60" ;;

+

</nowiki>}}

+

to

+

{{hc|/opt/altera/modelsim_ase/bin/vsim line 204

+

|<nowiki>

+

*) vco="linux" ;;

+

</nowiki>}}

−

It can be run in 32-bit with Multilib however.

+

====Install libraries====

+

Install library ''libxft'' and ''ncurses''.

+

$ sudo pacman -S libxft ncurses libxext

−

Installation works as previously. However enable multilib and install lib32-libpng12 rather than libpng12, and do not set the QUARTUS_64BIT=1 as described above.

Quartus now appears to run fine. USB JTAG connection seems to be working with the above method at least on a 32-bit system.

+

=== Add icon to the system ===

−

If your system is 64bit rename the linux64 directory in altera/<ver>/quartus/ to linux64.bak. Then make a link to the linux folder in the same directory and call it linux64.

+

You can add Modelsim to your system application menu by creating a {{ic|modelsim.desktop}} file in your {{ic|~/.local/share/applications}} directory

−

==Workarounds for Quartus II==

+

{{hc|~/.local/share/applications/modelsim.desktop

−

===Qsys can't import custom components===

+

|2=<nowiki>

−

This bug should be fixed in version 11.1 of Quartus II. There is a problem in Quartus II when parsing the ''/etc/issue'' file for reading the distribution name (more information on the chinese version of ArchWiki, your preferred online tranlator is your friend here ;-)). The problem can be circumvented by removing the special characters from the file.

Quartus II Web Edition v13.0

The following procedure shows how to get, install and configure Altera Quartus II Web Edition v13.0 for Arch Linux.
Quartus II is Altera's big software collection to design and interact with about all their FPGAs/CPLDs/etc. products.

The procedure focuses on Arch Linux 64-bit systems, although 32-bit installations should work fine too.

Quartus II Web Edition v13.0 is officially supported
for RHEL 5 and RHEL 6, but since it's one of those huge collections of proprietary software that doesn't
interact so much with the distribution, it's fairly easy to install on Arch Linux.

Get Quartus II

In Altera's Downloads section, select Linux as the operating system
and get the Combined Files tar archive (something like Quartus-web-13.0.0.156-linux.tar).

Install dependencies

Although the main Quartus II software is 64-bit, lots of Altera tools shipped with Quartus II are still 32-bit
softwares. Those include the Nios II EDS and Qsys, for example. This is why we need to install lots of
lib32- libraries and other programs from the Arch Linux Multilib repo. Obviously, if you have a 32-bit
Arch Linux system, you don't need the Multilib versions.

In order to install Multilib packages using Pacman, you need to enable the Multilib repository (if not already done). Open
/etc/pacman.conf and uncomment the following lines:

Even if quartus is now a command known by Bash, you still need to add the --64bit argument in order to launch the 64-bit
version. A shell alias, like quartus64, is a great solution to avoid typing it each time.

Application menu entry

A freedesktop.org application menu entry (which a lot of desktop environments and window managers follow) can be added
to the system by creating a quartus.desktop file in your ~/.local/share/applications
directory:

USB-Blaster Download Cable Driver

The USB-Blaster (I and II) Download Cable is a cable that allows you to download configuration data from your computer to your FPGA, CPLD or EEPROM configuration device. However, Altera only provides official support for RHEL, SUSE Entreprise and CentOS, so we are required to do a little bit
of work to make it work with Arch Linux. If you want some more detail about this cable, please refer to
the USB-Blaster Download Cable User Guide.

Executing this script should open a setup GUI. Just follow the instructions. For the purpose of this tutorial, I assume that you are installing Quartus II in the /opt/altera folder. Don't forget to select the file for the source of install if you don't want to download again quartus.

Repeat this procedure for the sp1 file then the sp2.

Compatibility with Archlinux

With the kernel 3.x

Modelsim has a problem with the version 3 of linux kernel. You need to edit the file to make it compatible :