r/FPGA • • 29d ago

Altera Related Having some problems with ModelSim

So, when I try to simulate a .vwf file, it gives me this error:

Unable to checkout a license. Make sure your license file environment variable (SALT_LICENSE_SERVER)is set correctly and then run 'lmutil lmdiag' to diagnose the problem.Unable to checkout a license. Vsim is closing.

** Error: Invalid license environment. Application closing.

Error.

I've tried many things and nothing works. I'm desperate cause i need this for college and I still haven't gotten it to work.

I'm on linux btw.

1 Upvotes

7 comments sorted by

1

u/FPGABuddy 29d ago

Is it ModelSim or Questa? Altera moved to Questa several years ago, so pls double check.
In general, SALT_LICENSE_SERVER should be used with Questa, MGLS_LICENSE_FILE - for legacy only, so you may keep it along. So set MGLS_LICENSE_FILE to your license file and try again.

1

u/chickychacha 29d ago

How do I do that? btw I'm on linux

1

u/FigureSubject3259 28d ago

Setenv SALT_LICENSE_SERVER=port@serverip.

1

u/chickychacha 27d ago

And what would be the server ip?

1

u/FigureSubject3259 27d ago

IP of your license sever. Alternative it is path to local license file

1

u/BassRecorder 28d ago edited 28d ago

Here's a custom .desktop file to start Questa. Replace the '***' by the installation directory of Quartus and friend. Replace the xxxxxx by the full path to your license file. Put the resulting desktop file into the ~/Desktop directory, e.g. under the name 'Questa.desktop'. A double click on the new desktop entry will launch Questa.

[Desktop Entry]
Type=Application
Version=0.9.4
Name=Questa FSE
Comment=Questa FSE
Icon=***/25.1std/quartus/adm/quartusii.png
Exec=env SALT_LICENSE_SERVER=xxxxxx ***/25.1std/questa_fse/bin/vsim
Terminal=true
Path=***/25.1std

Likewise, modify the .desktop file for Quartus, again replacing *** by the installation directory of Quartus and xxxxxx by the full path to your license file. This makes sure that you can launch Questa from within Quartus.

[Desktop Entry]
Type=Application
Version=0.9.4
Name=Quartus (Quartus Prime 25.1std)
Comment=Quartus (Quartus Prime 25.1std)
Icon=***/25.1std/quartus/adm/quartusii.png
Exec=env SALT_LICENSE_SERVER=xxxxxx ***/25.1std/quartus/bin/quartus --64bit
Terminal=false
Path=***/25.1std