Quartus II Installation

From MCEWiki

Quartus II Programmer for Windows (For Programming the MCE)

  • If you are planning to use Altera-supplied hardware (e.g. USB-Blaster) to upgrade the MCE firmware, you need to install "Quartus Programmer" on either a Windows or Linux PC.
  • See the OS requirements here: http://www.altera.com/download/os-support/oss-index.html
  • Download Quartus here: https://www.altera.com/download/programming/quartus2/pq2-index.jsp
  • Note that the installer needs direct access to Quartus website. In case you are behind a firewall, you may need to setup a proxy server.
  • The installation is straight forward. After installation is complete, plug in the USB-Blaster and the driver is typically found under altera/10.0/quartus/driver.

Quartus II for Windows (For Synthesizing MCE Firmware)

Quartus II for Linux

As usual, only RedHat and Suse are officially supported and you are on your own if you install it on any other Linux distribution.

The Altera website will make you set up a user account, but you should be able to get Quartus II Web Edition for Linux without paying anyone anything.

Quartus 10.0 and later on Ubuntu

Recent Quartus II Web Edition for Linux versions should install without too much trouble on Ubuntu. (E.g. version 11.1 on Ubuntu 10.10 was easy.)

The install package is a shell script. Because Ubuntu uses a weird default /bin/sh, you might need to invoke the script with bash instead, e.g.:

/bin/bash 11.1_173_quartus_free_linux.sh

That will decompress into a subdirectory, and then fail complaining about an ampersand. If that happens, go into the subdirectory and run

/bin/bash setup

The installer may suggest your home folder as the install location. A better place to install Quartus might be /usr/local/altera/<version>.

Quartus 9 series on Ubuntu

When installing Quartus 9.1 the installer couldn't find a few commands that typically exist on Fedora systems, notably arch and rpm. You can create a fake version of these and copy them under /usr/bin.

  • Create a script called arch that contains:
uname -m
  • Create a script called rpm that contains:
#!/bin/bash
OUT=/home/mce/rpm_cmd.txt
date >> $OUT
echo $@ >> $OUT

Make sure the permissions are set to executable.

More tips here: http://fpga4u.epfl.ch/wiki/Install_Quartus_II#On_Linux

Launching Quartus

After installation is complete, add the Quartus path to $PATH (probably in .bashrc), e.g.:

PATH=$PATH:/opt/usr/local/lib/altera/10.0/quartus/bin
export PATH

License Manager

If you have only installed Quartus Programmer or Quartus II web edition, the following section does NOT apply to you. However, if you have installed the "Quartus Subscription Edition", then continue reading.

You need to have a license file from Altera. The license file needs to be modified as follows. Change the top few lines from:

SERVER <hostname> 001e90151053 <port number>
VENDOR alterad <path to daemon executable>
VENDOR mgcld <path to daemon executable>
USE_SERVER

to

SERVER mce-ubc-2 001e90151053 1700
DAEMON alterad /opt/altera91/quartus/linux64/alterad
DAEMON mgcld /opt/altera91/modelsim_ase/linux/mgls/lib/mgcld
USE_SERVER

Copy the license file in /opt/licenses/quartus_001e90151053.dat

The license manager can be invoked by:

sudo /opt/altera10.0sp1/quartus/linux/lmgrd -c /opt/licenses/quartus_001e90151053.dat

You can add this line (without the sudo) into /etc/rc.local to get it to start whenever the computer boots.

When this works, it should spit out messages like this:

8:38:25 (lmgrd) Started alterad (internet tcp_port 52255 pid 28888)
8:38:25 (lmgrd) Started mgcld (internet tcp_port 54712 pid 28889)
8:38:25 (alterad) FLEXlm version 9.50
8:38:25 (alterad) lmgrd version 11.4, alterad version 9.5

8:38:25 (mgcld) FLEXnet Licensing version v10.8.5.0 build 31891 i86_r6
8:38:25 (mgcld) lmgrd version 11.4, mgcld version 10.8

8:38:25 (mgcld) Server started on mce-ubc-2 for:	alteramtivsim	
8:38:25 (mgcld) 
8:38:25 (mgcld) Licenses are case sensitive for mgcld
8:38:25 (mgcld) 
8:38:25 (mgcld) EXTERNAL FILTERS are OFF
8:38:25 (lmgrd) mgcld using TCP-port 54712
8:38:25 (alterad) Server started on mce-ubc-2 for:	maxplus2	
8:38:25 (alterad) quartus		6AF7_0012	6AF7_0014	
8:38:25 (alterad) 6AF7_0055	6AF7_00A7	6AF7_00A8	
8:38:25 (alterad) 6AF7_00A4	6AF7_0034	6AF7_00AC	
8:38:25 (alterad) 6AF7_00AD	6AF7_00BE	6AF7_00BF	
8:38:25 (alterad) 6AF7_00C2	maxplus2verilog maxplus2vhdl	
8:38:25 (alterad) altera_mainwin_lnx altera_mainwin	6AF8_00A2	
8:38:25 (alterad) 6AF7_00A2