Intel® FPGA Software Installation & Licensing
Installation and Licensing that’s includes Intel Quartus® Prime software, ModelSim* - Intel FPGA Edition software, Nios® II Embedded Design Suite on Windows or Linux operating systems.
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
856 Discussions

Modelsim: "Unable to replace existing ini file"

mindchasers
New Contributor I
2,295 Views

Hello,

 

Ever since I upgraded to the latest Quartus Pro Edition (21.2.0), the bundled Modelsim hangs when I compile a Verilog source file and prints out error messages to the console shown below.  It might hang for a minute or two on a simple Verilog file with the cursor turning into a spinner.

 

I have tried changing the properties on the mpf file, but I haven't been able to find a fix. 

 

 

# ** Error: 捁散獳椠⁳敤楮摥മ
# $
# Unable to replace existing ini file (<filename>.mpf). File can not be renamed.
# ** Error: 捁散獳椠⁳敤楮摥മ
# $
# Unable to replace existing ini file (<filename>.mpf). File can not be renamed.
# ** Error: 捁散獳椠⁳敤楮摥മ
# $
# Unable to replace existing ini file (<filename>.mpf). File can not be renamed.

0 Kudos
16 Replies
RichardTanSY_Intel
2,261 Views

Hi @mindchasers 

 

Do you save the project in a project directory ? And not using the installation directory (C drive). 

The program (Quartus/Modelsim) will need to Run As Administration to edit the any files located in C drive. 

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

 

mindchasers
New Contributor I
2,255 Views

Thank you for the reply.

The "sim" folder is OUTSIDE the C:\intelFPGA_pro installation folder. 

As an authenticated user, I have full control over my "sim" folder.

Also, I have verified the *.mpf file is NOT set for read only.

RichardTanSY_Intel
2,248 Views

Hi @mindchasers 

 

I would try to uninstall and re-install the Modelsim. 

You can download it from the link below:

https://fpgasoftware.intel.com/21.2/?edition=pro

See if that works for you. 

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

 

mindchasers
New Contributor I
2,243 Views

I should have mentioned that I had already tried reinstalling it.   It didn't make a difference.  Thank you.

RichardTanSY_Intel
2,207 Views

Hi @mindchasers 

 

Unfortunately, I can't find any info related to this error. 

If you try to do the simulation using the flow mentioned in the document, will you able to simulate it? 

https://www.intel.com/content/www/us/en/programmable/documentation/yur1496247032051.html

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

 

RichardTanSY_Intel
2,150 Views

Hi @mindchasers

 

If you try to do the simulation using the flow mentioned in the document, will you able to simulate it? 

https://www.intel.com/content/www/us/en/programmable/documentation/yur1496247032051.html

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

 

mindchasers
New Contributor I
2,139 Views

Yes, it simulates fine.  The problem is when I try to compile even a simple Verilog file.  That's when Modelsim hangs and I see the console errors. 

 

I'm just living with it for now. 

RichardTanSY_Intel
2,123 Views

Hi @mindchasers ,

 

Hmm... that's weird.

Could you help to share the verilog files and the step-by-step simulation flow that you used, so I could try to duplicate the error from my side?

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

RichardTanSY_Intel
2,025 Views

Hi @mindchasers ,

 

Could you help to share the verilog files and the step-by-step simulation flow that you used, so I could try to duplicate the error from my side?

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

KCMurphy
New Contributor I
1,972 Views

This is happening to me as well.  I'm betting that Windows 10 has a new setting to help us protect ourselves better.

 

Try this on a fully patched and updated Windows 10 Pro (e.g. 21H1 build 19043.1237)  installation of Msim-AE (paid) 2021.1

 

Any update to project.mpf creates a project.mpf_new but the replacement does not happen until modelsim is closed. 

 

The only solution I have found is to set the entire local folder security to be fully controlled by "Everyone", with inheritance.

RichardTanSY_Intel
1,935 Views

@mindchasers 

 

Could you try the suggestion from @KCMurphy  and see if it works for you? 

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

KCMurphy
New Contributor I
1,910 Views

Sadly, it only works partially.  I still get these errors in most cases.

 

Symptom:  If I attempt to manually remove the project.mpf file, or rename it, I get a notice that the file is in use by vsimk.exe and the action is rejected.  All user controls are off,  I'm running as admin, and I own the folder and everything in it.  But vismk.exe has locked the file as "in use" as far as Windows 10 is concerned.

RichardTanSY_Intel
1,899 Views

Hi @KCMurphy 

 

Could you try to install Questa Intel FPGA Edition (Q21.3 Pro) that released recently? 

See if the issue still persists. It will be hard to fix this in Modelsim Intel FPGA Edition as it will not be supported starting from Q21.3 Pro onwards.

 

Best Regards,
Richard Tan

p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 

KCMurphy
New Contributor I
1,886 Views

Sorry.  Not going to change simulators mid-project.

jrx077
Beginner
784 Views

One fix I found was to delete the "_lock" file that was located in the "work" folder of my simulation directory. Hope that helps someone!

KCMurphy
New Contributor I
601 Views

Yes, that appears to work.

Reply