erro: "Instantiation of '***' failed. The design unit was not found"

    在FPGA的设计中,经常会遇到此类问题,如题目所示--"erro: Instantiation of '***' failed. The design unit was not found",之前在QUARTUS中编译都能成功,然而到了用Modelsim仿真时,就出现这个问题,之后也在网上查阅了许多的资料,都没得到想要的答案。后来终于在国外的一篇博文中得到解答。

    其问题在于,我们在用HDL输入时,仿真调试没有问题,而将调试成功的HDL生成一个可调用电路元件符号,然后再用该元件符号去构成其它电路,没有原理性错误时,在仿真过程中就回出现以上问题。此处说明:HDL没有语法错误,逻辑性错误页应该没有!那出现错误的地方只可能是这个调用的过程中了。有个常识性的知识大家应该很清楚:在Modelsim中只能新建HDL类的文件,而不能采用原理图输入的方式。这就是症结所在!换句话说Modelsim不能识别”原理图输入“方式,得知这一点,就知道该怎么改了。只需要将自己完成的原理图文件倒腾一下,生成HDL文件格式,在进行编译和仿真,应该就没有问题了。(当然,注意一点:在QUARTUS中的Project Navigator中的Files一栏中,最好不要同时出现原理图文件.bdf和HDL文件.v,不信可以试试,一般情况下会提示ERRO)。至于上面提到的将原理图文件怎么变成HDL文件,相信都知道怎么实现。提示一下:与将HDL生成Symbol file 是一个互为相反的过程。具体步骤一样,有不明白的可以提问。

PS:来源于:Idle logic, by Chris Zeh

Simulating the Virtual JTAG in ModelSim

Here I’m going to demonstrate how to use ModelSim to test out the Virtual JTAG design that I showed in my previous post.

If you’re new to ModelSim with Quartus II, I recommend you look at a post I made awhile back which serves as a quick crash course: Using ModelSim with Quartus II and the DE0-Nano


Quartus II

The first step is to open the Virtual JTAG project we created in the previous post.
Here is the top-level schematic:


Adding vJTAG Stimulus
The next step is to setup the stimulus for the Virtual JTAG block which is done by using the vJTAG’s megafunction wizard.

First double click the vJTAG block to launch the wizard:


Now keep clicking Next> until you get to the General > Stimulation Stimuli tab.

Add in the stimulus as I’ve shown in the image below which is simulating both the Instruction Register (IR), and th

  • 3
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值