Skip to content

Instantly share code, notes, and snippets.

@aitesam961
Last active June 9, 2024 05:30
Show Gist options
  • Save aitesam961/608ec27862e942e5ae1360fd0ba2b4d2 to your computer and use it in GitHub Desktop.
Save aitesam961/608ec27862e942e5ae1360fd0ba2b4d2 to your computer and use it in GitHub Desktop.
Install Mentor Graphics Questasim 2021.2 on Ubuntu 24.04 LTS

This guide outlines the process of installing Mentor Graphics Questasim 2021.2 on Ubuntu 24.04LTS (or any modern debian distro).

*Note: This guide makes use of unofficial ways of activating license which is not recommended. If you have access, or can purchase the official license from Siemens, would be the best way. Otherwise, if you are an individual who plans to use it for non commercial use and or for learning purposes, you are more than welcome to follow.

Installing dependecies

sudo apt install libxft2 libxft2:i386 lib32ncurses6
sudo apt install libxext6
sudo apt install libxext6:i386

Generate the license key

sudo python2 mgclicgen.py <your-pc-mac-address>
# Note: You need python2 to be precise/questa_sim-2021.2_1.aol

Install the Questasim

sudo chmod +x ./questa_sim-2021.2_1.aol
sudo ./questa_sim-2021.2_1.aol

Select the features needed and proceed with installation

Setup License

  • Copy the license.dat file from /Crack and paste into /Install_dir
  • Copy the pubkey_verify file from /Crack and paste into /Install_dir
cp license.dat pubkey_verify /install_dir
  • Run the ./pubkey_verify -y to apply patch. You should get
FTW done with ret code = 0, all file checked

Total search 22917 files.
Total 3 file are changed.

Add to System Environment Variables

cd ~
sudo nano .bashrc

Add following at the end of bashrc

export PATH="/path/to/questasim/linux_x86_64":$PATH
export PATH="/path/to/questasim/RUVM_2021.2":$PATH
export LM_LICENSE_FILE="/path/to/license.dat":$LM_LICENSE_FILE
  • Save and exit, Run
source .bashrc

Lauch Questasim

vsim

To create a nice looking menu icon

cd /usr/share/applications && sudo nano questasim.desktop

Paste the following:

[Desktop Entry]
Version=2021.2
Name=QuestaSim
Comment=Mentor Graphics Questa Sim
Exec=/opt/questasim/linux_x86_64/vsim
Path=/home/<yourusername>/Documents/QuestaSim
Icon=/home/<yourusername>/Documents/QuestaSim/Icon/iconfilename.png
Terminal=false
Type=Application
Categories=Development;

You need to copy the icon file (png) to the relevant location.

@aitesam961
Copy link
Author

image

@aitesam961
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment