Update 8.2.2017:
Replace all the references to kaarne.cs.tut.fi with linux-desktop.cc.tut.fi and use your TUT intra account to login.
Also replace the references to pikkutikli.cs.tut.fi with the current license server:

  • License daemon: Listen: 1717 -> Destination: licf01.intra.tut.fi:1717
  • Vendor daemon: Listen: 1718 -> Destination: licf01.intra.tut.fi:1718 (Note the different port!)

These pages contain information about Mentor Graphics and Altera software licensing for home use. (Aquiring tools)

Port Forwarding

Port Forwarding. Insecure TCP traffic is tunneled through a secure SSH tunnel.

Shortly, port forwarding allows you to communicate with the license server to get licenses and run design tools locally on your own home computer.

Lintula SSH Servers

As indicated in picture above, all license requests must go through Lintula SSH server; direct connections to license server are not allowed due to security reasons. See the list of Lintula SSH servers here. You may use server mustatikli, or, if you do not have user account on those machines, any of the servers in public use.

Port Forwarding

There are several methods how to do port forwarding:

Windows and SSH

Note that the following describes only the settings that are needed for configuring tunneling, you may tweak other SSH settings as you like.

First, create a new profile for licensing. Invoke SSH and select Profiles -> Add Profile... and name the new profile, for example, as mentor_licenses.

Adding a New Profile

Adding a new profile.

Next, you need to configure the connection settings for the new profile. Select Profiles -> Edit Profiles... -> mentor_licenses. Set Host name (see the list of Lintula SSH servers) and your Lintula User name in Connection tab.

Creating a Mentor License Profile

Creating a Mentor License Profile.

The last checkbox (Request tunnels only (disable terminal)) is optional. If unchecked, then a terminal window will also be opened to the SSH server.

Then, set up port forwarding (tunneling). Select Tunneling and Outgoing tab and create (Add...) licensedaemon and vendordaemon tunnels as shown below.

Setting Tunneling Up

Setting Tunneling Up.

License Daemon Port Forward Settings

License Daemon Port Forward Settings

Display Name licensedaemon
Type TCP
Listen Port 1717
Destination Host pikkutikli.cs.tut.fi
Destination Port 1717

Vendor Daemon Port Forward Settings

Vendor Daemon Port Forward Settings

Display Name vendordaemon
Type TCP
Listen Port 1734
Destination Host pikkutikli.cs.tut.fi
Destination Port 1734

Now you have configured connection settings for the license profile. Next, you need to configure license settings so that design tools know how they can access licenses.

Setting the MGLS_LICENSE_FILE Environment Variable

In order to use licensed software, you need to specify the location where tool can find licenses. This is done by setting the MGLS_LICENSE_FILE environmental variable.

Select Control Panel -> System -> Advanced tab -> Environment Variables button as shown below. Then create a new variable called MGLS_LICENSE_FILE and set it point to 1717@localhost. The MGLS_LICENSE_FILE variable may be either User Variable or System Variable.

System Properties Dialog

System Properties Dialog

Environment Variables Dialog

Set MGLS_LICENSE_FILE Environment Variables

System Variable Dialog

System Variable Dialog

Now the licensing should be ready and you may try invoking Mentor tools. When the tool needs a license, the requests are forwarded through the SSH tunnels between your machine and the license server.

Note that before you can invoke Mentor tools, you must establish the SSH tunnels. Tunnels are established by invoking the SSH client and selecting the mentor_licensing profile.

Windows and PuTTY

You may also use any other SSH client supporting tunneling (such as PuTTY) to create SSH tunnels. The following shows how to configure PuTTY to use port forwarding. Note that the following describes only the settings that are needed for configuring tunneling, you may tweak other PuTTY settings as you like.

First, create a new session profile. Set host name (Host Name (or IP address); e.g. kaarne.cs.tut.fi) and session name (Saved Sessions; e.g. mentor_licenses)

PuTTY Session Dialog

PuTTY Session Dialog

Then, set your user name in Connection -> Data panel.

PuTTY Connection Data

PuTTY Connection Data Panel

Then, select Connection -> Data -> SSH -> Tunnels panel to configure tunnels.

First, set license daemon port. Set Source Port (1717) and Destination (pikkutikli.cs.tut.fi:1717) and click Add.

PuTTY License Daemon Port

PuTTY License Daemon Port

Then, set vendor daemon port. Set Source Port (1734) and Destination (pikkutikli.cs.tut.fi:1734) and click Add.

PuTTY Vendor Daemon Port

PuTTY Vendor Daemon Port

Remember to save the session profile (Session -> Save).

Next, you need to configure license settings so that design tools know how they can access licenses. See here.

Now the licensing should be ready and you may try invoking Mentor tools. When the tool needs a license, the requests are forwarded through the SSH tunnels between your machine and the license server.

Note that before you can invoke Mentor tools, you must establish the SSH tunnels. Tunnels are established by invoking PuTTY and selecting the mentor_licensing profile.

Windows and Command Line

Enter the following command in Command Prompt, or, alternatively, create a .bat file that contains the following, and run it:

$ ssh2 -L 1717:pikkutikli.cs.tut.fi:1717 -L 1734:pikkutikli.cs.tut.fi:1734 user@sshserver

Replace user@sshserver with your Lintula username and SSH server.

Set the MGLS_LICENSE_FILE environment variable (1717@localhost). See here.

Linux

Enter the following command:

$ ssh -L 1717:pikkutikli.cs.tut.fi:1717 -L 1734:pikkutikli.cs.tut.fi:1734 user@sshserver

Replace user@sshserver with your Lintula username and SSH server.

Set the MGLS_LICENSE_FILE environment variable in second terminal:

# If using sh-like shell (e.g. bash):
$ export MGLS_LICENSE_FILE=1717@localhost
# If using csh-like shell (e.g. [t]csh):
> setenv MGLS_LICENSE_FILE 1717@localhost

FAQ

Q: How can I get Mentor and Altera tools?

Staff members: see tktsamba/software/.

Students:
Windows class (TC221): O:\TIE\Perv_Teaching\EDA_Tools\
Copy the required software to a USB-disk and install to your computer. For Altera tools, forward license port 1721 and vendor daemon port 1736, as instructed above.

For a license-free alternative, you can download
Altera Quartus II Web Edition v12.1 SP1 and ModelSim Altera Starter Edition 10.1b.
Mentor Graphics does not offer a free version of HDL Designer, but a 30-day evaluation can be downloaded here.

Q: What if I have some problems with installing the tools on Linux ?

See additional help (in Finnish only, though) for ModelSim + Linux and for
Quartus + Linux.

Q: Which operating systems are supported by Mentor/Altera tools?

Supported operating systems depend on the tool and version in question. In general, supported operating systems are Windows XP, Windows 7 and Linux.

See the table below.

Official OS Support
Windows Linux
Tool Version XP XP 64bit 7 7 64bit RHEL 5 RHEL 5 64bit RHEL 6 64bit
ModelSim SE [*] 10.2c Yes Yes Yes Yes Yes Yes Yes
ModelSim Starter 10.1b Yes No Yes No Yes Yes Yes
HDL Designer 2012.2a Yes No No Yes Yes Yes Yes
Quartus II 12.1sp1 Yes Yes Yes Yes Yes Yes Yes
[*] Supports also Windows Vista 32bit, Linux RHEL 4 32/64bit, Linux SLES 10/11 32/64 bit.

Q: Which ModelSim and Quartus II versions are compatible with HDL Designer 2012.2a?

ModelSim: 10.0 to 10.2
Quartus II: 12.0 to 12.1

Q: There is a copy of ModelSim-Altera in my DE2 box. Can I use that?

No. That copy of ModelSim-Altera Web Edition requires a separate license which we do not have. ModelSim Altera Web Edition accompanied with the Altera DE2 FPGA board is a discontinued product and has been replaced by ModelSim-Altera Starter Edition (free) and ModelSim Altera Edition (requires a license).

Q: I downloaded and installed the newest version of Quartus, but I cannot synthesize my design to DE2 board. What am I doing wrong?

The last version of Quartus that supports the Cyclone II FPGA family (which is used in DE2) is v.13.0 SP1.

Last Updated: 2015-09-04