coregen_lock文件到底是什么?

一、问题

 

最近一直在看前人们在ISE环境中写下的verilog程序,由于其中应用了很多IP核,所以需要查看IP核到底是怎么回事,但双击IP核时经常会出现以下错误提示:

ERROR: coregen_lock file found in project directory. An instance of Core Generator
 may already be running that needs to be closed first.

 

二、解决方法

 

百度搜索了“corgen_lock”一下,得到了如下解决方法,其实这个方法前人们也交过我,就是直接到工程目录下删除corgen_lock即可。

======网络解决方法=====

ERROR: coregen_lock file found in project directory. An instance of Core Generator may already be running that needs to be closed first.

      昨天生成TEMAC核的时候没有生成,今天重新建立TEMAC核的时候,提示如下错误ERROR: coregen_lock file found in project directory. An instance of Core Generator may already be running that needs to be closed first.  

      解决方法,找到工程文件夹,删除里面的corgen_lock文件,再建立ip核即可。

转自:http://hi.baidu.com/jadekung/blog/item/5be1f6ede2fd6137269791e6.html

 

三、刨根问底

 

问题很容易的解决了,但心中一直有个疑问,那就是“corgen_lock”到底是个什么问件呢?为什么会出现此错误呢?

又百度“corgen_lock”的结果中找了一下,发现了一段英文:

Description

Keywords: Lock, hang, coresupt, coregen_lock, Project Navigator, Regenerate Core, CORE Generator, COREGen, Windows XP, Win XP

Urgency: Standard

General Description:
When I launch CORE Generator multiple times from Project Navigator through the "Regenerate Core" process, Project Navigator reports the following messages:

"Started process 'Regenerate Core'.
ERROR: The "coregen_lock" file was found in the project directory, which indicates that an instance of Coregen is already running. Only once instance of Coregen can be started at a time. Please close the current instance of Coregen and try the same process again. If you feel this message is erroneous and there is no instance of Coregen running currently, please delete the "coregen_lock" file from the current project directory and try the process again.
ERROR: coregen_lock file found in project directory. An instance of Coregen may already be running that needs to be closed first."
Completed process 'Regenerate Core'."

Solution
The "coregen_lock" file is created by Project Navigator as it launches CORE Generator in batch mode. This "coregen_lock" file is then deleted by Project Navigator when the COREGen process completes. At this point, the console window should display the following message: "Completed process "Regenerate Core"."

It has been seen (primarily on machines running Windows XP) that the "coregen_lock" file is not immediately removed from the project directory. In these cases, launching CORE Generator again produces the error above, even though the COREGen executable should be available for use.

Generally, you should be able to successfully run another "Regenerate Core" process as soon as the "Completed process 'Regenerate Core'" message appears. You might need to wait about 5 seconds after the message for the peripheral program "Coresupt.exe" to complete and the "coregen_lock" file to be removed.

If no CORE Generator processes are running and you continue to see this error message, manually remove the "coregen_lock" file from the project directory.

转自:http://www.xilinx.com/support/answers/17480.htm

 

注意英语中红色字体部分解释了coregen_lock文件的产生机理“它是由project navigator在启动IP核发生器时产生的,它会在IP核生成进程完成时自动被project navigator删除。

 

回忆了一下自己产生这个错误的过程,发现是由于已经双击查看过一个IP核,然后又双击查看另一个IP核,因为我只是双击过查看“data sheet”或“more information”,然后就关掉了,这样project navigator可能不会认为IP核生成进程结束,所以不会自动删除“coregen_lock”文件,所以再次双击查看别一个IP核时就会发生错误。

 

刚刚想复现这个错误,又出现不了了,呵呵,就这样吧,反正如果出现了记得只要到工程根目录下删除“coregen_lock”即可……

你可能感兴趣的:(windows,File,百度,XP,delete,generator)