Difference between revisions of "Modelsim-Altera"
From ArmadeusWiki
(→Launch installer) |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
[[Category: FPGA]] | [[Category: FPGA]] | ||
[[Category: Quartus]] | [[Category: Quartus]] | ||
Line 12: | Line 10: | ||
This articles explain how to install the modelsim-altera starter edition on Linux (Ubuntu/Debian). | This articles explain how to install the modelsim-altera starter edition on Linux (Ubuntu/Debian). | ||
− | = Installation guide = | + | = Installation guide (Quartus 14.0) = |
We assume that modelsim will be installed under /opt/quartus/ directory. | We assume that modelsim will be installed under /opt/quartus/ directory. | ||
+ | |||
+ | == Pre-requisite == | ||
+ | |||
+ | Install the same package than for [[Quartus_installation_on_Linux | quartus installation]]. | ||
== Download == | == Download == | ||
Line 23: | Line 25: | ||
== Launch installer == | == Launch installer == | ||
− | * | + | * Create Modelsim directory and make installer script executable : |
<source lang="bash"> | <source lang="bash"> | ||
$ cd /opt/quartus/ | $ cd /opt/quartus/ | ||
+ | $ mkdir Modelsim | ||
$ chmod +x ModelSimSetup-14.0.0.200-linux.run | $ chmod +x ModelSimSetup-14.0.0.200-linux.run | ||
</source> | </source> | ||
+ | |||
+ | * Launch it | ||
+ | <source lang="bash"> | ||
+ | ./ModelSimSetup-14.0.0.200-linux.run | ||
+ | </source> | ||
+ | |||
+ | * Click next | ||
+ | * Select '''Modelsim-Altera Starter Edition''' then next | ||
+ | * Accept agreement then next | ||
+ | * Choose directory /opt/quartus/Modelsim/ | ||
+ | * next, next | ||
+ | * finish | ||
+ | |||
+ | == Configure environment == | ||
+ | |||
+ | * Add this line in your .bashrc : | ||
+ | <source lang="bash"> | ||
+ | export PATH=$PATH:/opt/quartus/Modelsim/modelsim_ase/bin | ||
+ | </source> | ||
+ | |||
+ | * Open new terminal (to reset environment variables) | ||
+ | * launch quartus | ||
+ | * Configure your modelsim EDA path in Tools->Options-> Eda tool options : | ||
+ | <pre> | ||
+ | /opt/Modelsim/modelsim_ase/bin | ||
+ | </pre> | ||
+ | * Launch it with Tools->run simulation Tool -> RTL simulation | ||
+ | |||
+ | = Known problems = | ||
+ | |||
+ | == Freetype == | ||
+ | |||
+ | When you get: | ||
+ | <pre> | ||
+ | $ vsim | ||
+ | ** Fatal: Read failure in vlm process (0,0) | ||
+ | Segmentation fault | ||
+ | $ | ||
+ | </pre> | ||
+ | |||
+ | It's a freetype library version [http://mattaw.blogspot.in/2014/05/making-modelsim-altera-starter-edition.html problem]. | ||
+ | To fix it do this : | ||
+ | <source lang="bash"> | ||
+ | $ cd /opt/quartus/ | ||
+ | $ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2 | ||
+ | $ tar -jxvf freetype-2.4.12.tar.bz2 | ||
+ | $ cd freetype-2.4.12 | ||
+ | $ ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" | ||
+ | $ make -j8 | ||
+ | $ mkdir ../Modelsim/modelsim_ase/lib32 | ||
+ | $ cp objs/.libs/libfreetype.so* ../Modelsim/modelsim_ase/lib32/ | ||
+ | $ sudo vim ../Modelsim/modelsim_ase/bin/vsim | ||
+ | </source> | ||
+ | |||
+ | Under this line: | ||
+ | <source lang="bash"> | ||
+ | dir=`dirname $arg0` | ||
+ | </source> | ||
+ | |||
+ | Add | ||
+ | <source lang="bash"> | ||
+ | dir=`dirname $arg0` | ||
+ | export LD_LIBRARY_PATH=${dir}/lib32 | ||
+ | </source> | ||
+ | |||
+ | enjoy! |
Latest revision as of 10:57, 18 August 2015
Contents
Introduction
Altera provide a integrated version of Modelsim for its FPGA.
To simulate design with less than 10000 lines of code it's possible to get it from free. It's called the Starter Edition. This articles explain how to install the modelsim-altera starter edition on Linux (Ubuntu/Debian).
Installation guide (Quartus 14.0)
We assume that modelsim will be installed under /opt/quartus/ directory.
Pre-requisite
Install the same package than for quartus installation.
Download
- Browse altera download page
- Download the ModelSim-Altera Edition (includes Starter Edition) (about 1.1GB), you must be logged in.
Launch installer
- Create Modelsim directory and make installer script executable :
$ cd /opt/quartus/
$ mkdir Modelsim
$ chmod +x ModelSimSetup-14.0.0.200-linux.run
- Launch it
./ModelSimSetup-14.0.0.200-linux.run
- Click next
- Select Modelsim-Altera Starter Edition then next
- Accept agreement then next
- Choose directory /opt/quartus/Modelsim/
- next, next
- finish
Configure environment
- Add this line in your .bashrc :
export PATH=$PATH:/opt/quartus/Modelsim/modelsim_ase/bin
- Open new terminal (to reset environment variables)
- launch quartus
- Configure your modelsim EDA path in Tools->Options-> Eda tool options :
/opt/Modelsim/modelsim_ase/bin
- Launch it with Tools->run simulation Tool -> RTL simulation
Known problems
Freetype
When you get:
$ vsim ** Fatal: Read failure in vlm process (0,0) Segmentation fault $
It's a freetype library version problem. To fix it do this :
$ cd /opt/quartus/
$ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2
$ tar -jxvf freetype-2.4.12.tar.bz2
$ cd freetype-2.4.12
$ ./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
$ make -j8
$ mkdir ../Modelsim/modelsim_ase/lib32
$ cp objs/.libs/libfreetype.so* ../Modelsim/modelsim_ase/lib32/
$ sudo vim ../Modelsim/modelsim_ase/bin/vsim
Under this line:
dir=`dirname $arg0`
Add
dir=`dirname $arg0`
export LD_LIBRARY_PATH=${dir}/lib32
enjoy!