The ModelSim version that comes with Intel Quartus Prime Lite Edition is a good alternative if you want to try out VHDL simulation on your home computer. The software is available for both Windows and Linux, but Intel only supports Red Hat-based distros like CentOS Linux.

Fortunately, you are just a few hacks away from ModelSim working nicely on your Ubuntu box.

The video below shows how I did it on a fresh Ubuntu 20.04 virtual machine. For reference, I followed the procedure from PrieureDeSion’s GitHub gist, with a few changes to make it work with Ubuntu 20.04.

Where to download the ModelSim-Intel FPGA Edition for Linux

Go to Intel’s Download Center for FPGAs to obtain the installer.

Choose the Lite Edition for Linux, and click the Individual Files tab on the same page. Select the ModelSim-Intel FPGA Edition (includes Starter Edition) option, as shown in the image below.

ModelSim-Intel FPGA Edition (includes Starter Edition)

These are the commands for making ModelSim work in Ubuntu 20.04

# Start with ModelSimSetup-*-linux in your home directory
# Open a terminal in your home directory
# Update your system
sudo apt update; sudo apt upgrade
# Run the installer
# Make the vco script writable
chmod u+w ~/intelFPGA/*.*/modelsim_ase/vco
# Make a backup of the vco file
(cd ~/intelFPGA/*.*/modelsim_ase/ && cp vco vco_original)
# Edit the vco script manually, or with these commands:
sed -i 's/linux\_rh[[:digit:]]\+/linux/g' \
sed -i 's/MTI_VCO_MODE:-""/MTI_VCO_MODE:-"32"/g' \
sed -i '/dir=`dirname "$arg0"`/a export LD_LIBRARY_PATH=${dir}/lib32' \
# Check that the correct lines have changed
diff ~/intelFPGA/*.*/modelsim_ase/vco \
# Download the 32-bit libraries and build essentials
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install build-essential
    sudo apt install gcc-multilib g++-multilib lib32z1 \
    lib32stdc++6 lib32gcc1 libxt6:i386 libxtst6:i386 expat:i386 \
    fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 \
    libgtk-3-0:i386 libcanberra0:i386 libice6:i386 libsm6:i386 \
    libncurses5:i386 zlib1g:i386 libx11-6:i386 libxau6:i386 \
    libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386
# Download the old 32-bit version of libfreetype
tar xjf freetype-2.4.12.tar.bz2
# Compile libfreetype
cd freetype-2.4.12/
./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" \
    "CXXFLAGS=-m32" "LDFLAGS=-m32"
make clean
cd ~/intelFPGA/*.*/modelsim_ase/
mkdir lib32
cp ~/freetype-2.4.12/objs/.libs/* lib32/
# Run the vsim script to start ModelSim

Output from the diff between ‘vco’ and ‘vco_original’

< mode=${MTI_VCO_MODE:-"32"}
> mode=${MTI_VCO_MODE:-""}
< export LD_LIBRARY_PATH=${dir}/lib32
<           *)                vco="linux" ;;
>           *)                vco="linux_rh60" ;;

Where to get support

Ubuntu is officially unsupported by Intel, so there’s no point in asking them. But there are a few threads about the subject on the FPGA Design Tools forum on the Intel Community Forum (formerly Altera Forum).

Another option is to make a post in VHDLwhiz’ private Facebook group: VHDL for FPGA Engineers. In fact, you should join it even if you’re not experiencing problems. It’s a growing community for everyone interested in FPGA design using VHDL.

Install Lattice iCEcube2 on Ubuntu

To complete the VHDL and FPGA development environment on your Ubuntu box, you may want to check out this tutorial:

Make Lattice iCEcube2 work on Ubuntu 20.04 and program the iCEstick FPGA board

With iCEcube2, ModelSim, and Project IceStorm installed, you can do VHDLwhiz’ beginner Fast-Track course and the advanced Dot Matrix course on your Ubuntu box!

Author: Jonas Julian Jensen

I’m from Norway, but I live in Bangkok, Thailand. Before I started VHDLwhiz, I worked as an FPGA engineer in the defense industry. I earned my master’s degree in informatics at the University of Oslo.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

26 thoughts on “How to make ModelSim from Quartus Prime Lite work on Ubuntu 20.04

  1. In my experience Intel’s download page can be very slow and unstable from time to time. So you could also add the direct download link: “”

    Posted on May 18, 2020 at 11:24 am
    1. Thanks for the link. I had some trouble downloading from Thailand, where I live. I switched on my VPN and connected to the US. That worked a lot better.

      Posted on May 18, 2020 at 11:31 am
      1. I see. Here, back in Norway, I’ve had much better success with the direct link than their website. Never tried using a VPN to the US though.

        Posted on May 18, 2020 at 11:42 am
  2. Hello have you tried installing this on WSL? I tried this on Ubuntu-18.04 and it fails while installing fontconfig:i386. I tried on a fresh installation of Ubuntu-20.04 and it fails on libc6:i386 with the following error:
    dpkg: error processing package libc6:i386 (–configure):
    installed libc6:i386 package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of libgpg-error0:i386:
    libgpg-error0:i386 depends on libc6 (>= 2.28); however:No apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because the error message indicates its a followup error from a previous failure.
    No apport report written because MaxReports is reached already
    No apport report written because MaxReports is reached already

    Package libc6:i386 is not configured yet.

    dpkg: error processing package libgpg-error0:i386 (–configure):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of libgcrypt20:i386:
    libgcrypt20:i386 depends on libc6 (>= 2.28); however:
    Package libc6:i386 is not configured yet.
    libgcrypt20:i386 depends on libgpg-error0 (>= 1.25); however:
    Package libgpg-error0:i386 is not configured yet.

    dpkg: error processing package libgcrypt20:i386 (–configure):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of liblz4-1:i386:
    liblz4-1:i386 depends on libc6 (>= 2.4); however:
    Package libc6:i386 is not configured yet.

    dpkg: error processing package liblz4-1:i386 (–configure):
    dependency problems – leaving unconfigured
    dpkg: dependency problems prevent configuration of liblzma5:i386:
    liblzma5:i386 depends on libc6 (>= 2.17); however:
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    have you seen anything similar?
    Thanks for any hint

    Posted on August 10, 2020 at 2:54 pm
    1. I suppose you have good reasons for trying to run ModelSim in WSL because it would be simpler to download the ModelSim-Intel FPGA Edition for Windows.

      If you must have ModelSim working in WSL, it seems that the libc6:i386 package is missing or has the wrong version. Refer to the commands listed in the blog post above for how to install it.

      You can use the “apt list” command to check which version you currently have installed. This is the output from the Ubuntu VMWare box that I used in the tutorial:

      jonas@ubuntu:~$ apt list libc6
      Listing... Done
      libc6/focal,now 2.31-0ubuntu9 amd64 [installed,automatic]
      libc6/focal,now 2.31-0ubuntu9 i386 [installed]

      Note that the 32-bit (i386) version in the listing above is newer than the 2.28 that your error message is complaining about. Perhaps you haven’t done the steps from “sudo dpkg –add-architecture i386” and onward?

      Or maybe you have a too old version installed and need to do a “sudo apt update; sudo apt upgrade”.

      Please reply if you find the solution to help other googlers who arrive at this blog post with a similar problem. ?

      Posted on August 12, 2020 at 4:25 pm
  3. Hi Jonas,
    Thanks for your answer. I was able to successfully install Modelsim 19.4 on my WSL system (Ubuntu 18.04). I migrated my system to WSL2 in the meantime and I wonder if that could have helped. Before migration, installation of fontconfig:i386 was constantly failing.

    I do have modelsim running in Windows, however, since most of my development is done in WSL, I do not like switching back and forth. Moreover, for the sake of running regressions and creating a “decent” flow, I do prefer to be able to run it in WSL.

    Thanks once again for the detailed instructions. That was very helpful

    Posted on August 31, 2020 at 2:51 am
    1. Interesting! I’ve got to try to get ModelSim working in WSL when I have the time. Thanks for checking in with the update.

      Posted on September 1, 2020 at 11:28 am
  4. Thanks for the instructions, certainly saved me some headache! In order to launch ModelSim from Quartus (18.1) I also had to add the freetype lib path to quartus/adm/ I was lazy and just used the same path made following your instructions, so make quartus/adm/ writeable and add “export LD_LIBRARY_PATH=/home/USER/intelFPGA/modelsim_ase/lib32:$LD_LIBRARY_PATH”. The font in ModelSim was also unreadably tiny but fixed by

    Posted on September 30, 2020 at 11:09 pm
    1. Hello, Dennis. Thanks for the heads-up. I was able to make the fonts larger by going to Tools->Edit Preferences->Fonts. That was one of the suggestions from the StackOverflow article.

      Posted on October 1, 2020 at 6:06 pm
  5. Thank you for this. For Ubuntu 20.1, lib32gcc-s1 is replaced with lib32gcc-s1 (according to apt). That was the only change I made and it seems to work well!

    Posted on January 20, 2021 at 10:21 am
    1. Thank you for sharing the update!

      Posted on January 20, 2021 at 10:27 am
  6. (base) harish@harish:~$ sed -i ‘s/linux\_rh[[:digit:]]\+/linux/g’ \
    >     ~/intelFPGA/20.1/modelsim_ase/vco
    sed: can’t read     ~/intelFPGA/20.1/modelsim_ase/vco: No such file or directory
    (base) harish@harish:~$ sed -i ‘s/MTI_VCO_MODE:-“”/MTI_VCO_MODE:-“32″/g’ \
    >     ~/intelFPGA/20.1/modelsim_ase/vco
    sed: can’t read     ~/intelFPGA/20.1/modelsim_ase/vco: No such file or directory
    (base) harish@harish:~$ sed -i ‘/dir=`dirname “$arg0″`/a export LD_LIBRARY_PATH=${dir}/lib32’ \
    >     ~/intelFPGA/20.1/modelsim_ase/vco
    sed: can’t read     ~/intelFPGA/20.1/modelsim_ase/vco: No such file or directory

    Posted on January 21, 2021 at 12:27 am
    1. It seems that your installation path is different from what my script expects. You have to find out what the path to the ‘vco’ file is and adjust the script.

      Try searching for it like this:

      find ~/intelFPGA/ -name 'vco'
      Posted on January 21, 2021 at 5:09 am
  7. Thanks! its really useful. I appreciate your efforts.

    Aamir Sohail Nagra
    Hardware Engineer

    Posted on February 18, 2021 at 5:18 pm
    1. I’m glad to hear that you liked it. ?

      Posted on February 19, 2021 at 4:45 am
  8. Hello

    Thank you very much !

    It works also like a charm for Debian/Gnome or Debian/Xfce !

    What a pity I did not find this page much earlier

    Posted on May 17, 2021 at 6:25 pm
    1. Thanks for the feedback! It’s good to know that it works on Debian too.

      Posted on May 18, 2021 at 1:59 pm
  9. Hi, thank you for providing this helpful information!
    Do you have any experiences or update for more recent versions of Quartus/Modelsim, e.g. for 20.1?
    Here the described file entries differ.

    Posted on June 27, 2021 at 4:45 pm
    1. Hello, Ric. No, I haven’t tried to install on the latest Ubuntu version. Perhaps I should make a revised article.

      Posted on June 27, 2021 at 7:00 pm
      1. Hi Jonas,
        I run Ubuntu 20.04.2 LTS and Quartus 20.1.
        I got Modelsim GUI running just adding the 32b stuff, no other changes yet (as the file contend of VCO etc. changed): # Download the 32-bit libraries and build essentials
        I had to add the path too: export PATH=$PATH:~/intelFPGA_pro/20.1/modelsim_ase/bin.
        Remarkable, the previous reported font issues are not there, GUI looks nice.

        As I’m not an in-deep VHDL developer but doing work with HLS I use Modelsim indirectly via HLS workflow. Here a HDL testbench is generated and run automatically from the tool (co-simulation). All the steps until calling vsim go without errors but here the trouble starts:
        ** Fatal: (vsim-3827) Could not compile ‘’: cmd = ‘/data1/intelFPGA_pro/20.1/gcc/bin/gcc -shared -fPIC -m32 -B/usr/lib32
        ../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible ../lib/gcc/x86_64-pc-linux-gnu/9.1.>
        ../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
        I guess it’s still some incompatibility with the 64b/32b stuff but I’m a little bit lost here …
        If you are motivated to step in .. that would be great 😉

        Posted on June 29, 2021 at 8:50 am
  10. Thank you for description but after this procedure Ubuntu 20.04.3 LTS Quartus 18.1

    Reading pref.tcl
    ./../linux/vish: symbol lookup error: /usr/lib/i386-linux-gnu/ undefined symbol: FT_Done_MM_Var
    ** Fatal: Read failure in vlm process (0,0)

    Do you have some idea how to solve this issue?

    Posted on August 23, 2021 at 1:19 pm
    1. Hello, Victor. I can’t recall seeing that error message before. I should create an updated version of this blog post for the current versions of Ubuntu and ModelSim, but I haven’t had the time yet.

      Please share if you figure out the answer!

      Posted on August 25, 2021 at 1:41 pm
  11. Thanks, It works.
    The libfreetype has been archived by savannah
    I use this to wget it:

    You may wanna update on your blog

    Posted on September 7, 2021 at 8:10 am
    1. Thanks for the updated link that works! I’ve changed it in the blog post.

      Posted on September 10, 2021 at 3:10 am
      1. I am new to Quartus Prime.
        After installation in ubuntu, when I run it. I keep getting below error.
        How should I install Quartus Prime Lite?
        kmsumu@kmsumu-virtual-machine:~/intelFPGA_lite/17.0/quartus/bin$ ./quartus &
        [1] 2196
        kmsumu@kmsumu-virtual-machine:~/intelFPGA_lite/17.0/quartus/bin$ quartus: error while loading shared libraries: cannot open shared object file: No such file or directory

        Posted on September 10, 2021 at 5:48 am
  12. Thank you for the help – The Intel documenation didn’t even come close to helping. Thanks to your blog, I am now up and running on Ubuntu 20.04. Cheers.

    Posted on October 4, 2021 at 12:44 am