Instantiation of ‘***‘ failed. The design unit was not found

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


描述一下具体情况,今天参照小梅哥的视频,写DPRAM,需要添加key_model这个模块进来。编译正常,但是启动RTL simulation 就会报Instantiation of ‘key_model’ failed. The design unit was not found.

后来我发现,竟然是添加tb文件的顺序搞得鬼。我没有注意到下面,添加循序,我是先添加UART_DPRAM_tb,在第一个蓝色框内添加名称,但是第二个key_model我也把名字添加到第一个框内,覆盖了第一个名字,导致的问题。这里添加UART_DPRAM_tb,这一个文字就行了,key_model只用add进去就行,不用添加名称。

第一步,添加UART_DPRAM_tb.

Instantiation of ‘***‘ failed. The design unit was not found
第二步,添加key_model,直接add就行,不需要修改上面的Test bench name,我就是错在这了,我修改了上面的名字,改成了key_model。
Instantiation of ‘***‘ failed. The design unit was not found

最终的样子: Instantiation of ‘***‘ failed. The design unit was not found