Generate Simulation Setup Script Fails - Generate Simulation Setup Script Fails
When I click on Tools>Generate Simulation Setup Script for IP the messages window reports that the command runs and says "Process finished" but no scripts are created. This last worked about a month ago. No changes to the computer except for MS updates. When I tried running this command this week, it failed to update the scripts. I created a new project with a Nios V and tried to generate the scripts, and it didn't create the Mentor/msim_setup.tcl or Mentor/run_msim_setup.tcl, or the common/modelsim_files.tcl scripts. I updated to Quartus 26.1 (was 25.1.1) and still no good. OS is Windows 11 Pro Version 10.0.26200
Replies:
Re: Generate Simulation Setup Script Fails
I was trying to run ip-setup-simulation.exe from a Windows command prompt because it would not run from the GUI. It was failing because, for some reason, it started requiring elevated privileges to run. But turns out if I change the Quartus shortcut to run as admin, the Tools>Generate simulation setup command works. But adding qsys/bin to the path does allow the command to be run from a batch file (without typing the full path). I have no idea what changed to require the elevated privilege for that command. The other commands in the qsys/bin don't require that. Hope that that helps.
Replies:
Re: Generate Simulation Setup Script Fails
Hi RayHaynes1 , after adding C:\altera_pro\26.1\qsys\bin to the path, can u please explain in detail what the steps u followed or commands u run? I have been facing this issue for two weeks. Regards, Sai@2403
Replies:
Re: Generate Simulation Setup Script Fails
Ok, got it to work. Added C:\altera_pro\26.1\qsys\bin to the path, opened a Windows command prompt, cd to the project directory, then ran the ip-setup-simulation.exe command with the same parameters when run by the GUI and it works (I still have to click yes on the User Account Control dialog). I don't know why it stopped working with the GUI Tools>Generate Simulation Setup Script for IP... command, but this is the workaround I used. [Update] The ultimate fix was to change the Quartus shortcut to run as admin. That way, when the tools>generate simulation setup command is run, it is also elevated to admin and can run. Not sure why that command alone started requiring elevated privileges to run.
Replies:
Re: Generate Simulation Setup Script Fails
Ok, after searching where the ip-setup-simulation command is located, I found it in c:\altera_pro\26.1\qsys\bin. I added that to the Windows path, as well as C:\altera_pro\26.1\quartus\bin64 (which fixed the issue where I was unable to run a quartus_sh command :-\) Not sure why that path was not already included. But that didn't fix it. Curious that when opening a command shell and running any of the exes in the qsys\bin directory without any additional parameters, all run and report missing parameters as expected, except for the ip-setup-simulation command. It causes User Account Control to pop up, then launches the command in a new command window, which appears for a second or 2 before closing. I'm guessing my issue is that this command requires special permissions to run correctly. Maybe down some unrelated rabbit hole, but I'm going to keep trying things. - 2026-05-29
external_document