Forum Discussion

RayHaynes1's avatar
RayHaynes1
Icon for Occasional Contributor rankOccasional Contributor
2 hours ago
Solved

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

 

 

 

 

 

  • 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.

2 Replies

  • RayHaynes1's avatar
    RayHaynes1
    Icon for Occasional Contributor rankOccasional Contributor

    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.

  • RayHaynes1's avatar
    RayHaynes1
    Icon for Occasional Contributor rankOccasional Contributor

    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.