简体   繁体   English

Vivado 不确认测试台文件的更改

[英]Vivado doesn't acknowledge changes of testbench file

I need some help with Vivado 2015.4.我需要一些有关 Vivado 2015.4 的帮助。 VHDL超高密度语言

I have added a testbench file to my project and it had some errors in it.我在我的项目中添加了一个测试台文件,但其中有一些错误。 After I amended these errors but when I re-run the simulation it is not not working because of the same errors that were there before.在我修改了这些错误之后,但是当我重新运行模拟时,由于之前存在的相同错误,它无法正常工作。

So the changes weren't acknowledged.因此,更改未被确认。 For some reason that I am missing.由于某种原因,我失踪了。

I saved the file I also tried to change the compile order by move it up in the hierarchy but no change.我保存了文件我还尝试通过在层次结构中向上移动来更改编译顺序但没有改变。 What am I missing here?我在这里错过了什么? There must be setting there that I have not set because even restarting Vivado doesn't help.那里一定有我没有设置的设置,因为即使重新启动 Vivado 也无济于事。

I encountered a similar problem and found a solution that worked for me at least:我遇到了类似的问题并找到了至少对我有用的解决方案:

Right clicking "Run Simulation", "Simulation Settings...", then navigating to the "Advanced" tab gives you an option "Enable incremental compilation".右键单击“Run Simulation”、“Simulation Settings...”,然后导航到“Advanced”选项卡,您会看到一个选项“Enable incremental compilation”。

To quote the option, this box "Enables incremental compilation and preserves simulation files during successive simulation runs".引用该选项,此框“启用增量编译并在连续模拟运行期间保留模拟文件”。 Unchecking it made my problem go away, I have no idea why it is the default setting.取消选中它使我的问题 go 消失了,我不知道为什么它是默认设置。

When you added the file to your project, by default it is set to copy the file into a location within a 'ProjectName.sim' folder, within your project folder.当您将文件添加到您的项目时,默认情况下它被设置为将文件复制到项目文件夹内的“ProjectName.sim”文件夹中的某个位置。 Could this have happened, and you are now not editing this copied file that Vivado is using?会不会发生了这种情况,而您现在没有编辑 Vivado 正在使用的这个复制文件?

The easy way to find the file Vivado is actually using, is to double click that file in the project hierarchy.查找 Vivado 实际使用的文件的简单方法是在项目层次结构中双击该文件。

I don't know why it isn't working.我不知道为什么它不起作用。

But one solution is to delete it from the Manager and add it again manually.但一种解决方案是将其从管理器中删除,然后手动重新添加。

Then run simulation and it will compile the latest version and run the simulation if it hasn't any error in it.然后运行模拟,如果没有任何错误,它将编译最新版本并运行模拟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM