Forum Discussion
Generate Simulation Setup Script Fails
- 3 months ago
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.
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.