求助:ICC LAB2在import design时失败
用ICC 2010版本的LAB在学习使用ICC(因此是很新的菜鸟),Create Library之后,按照guide指导去import design(verilog文件),提示:
icc_shell> import_designs -format verilog -top RISC_CHIP -cel RISC_CHIP {/root/eda/ICC_Lab/lab1_data_setup/design_data/RISC_CHIP.v}
*****Verilog HDL translation! *****
*****Start Pass 1 *****
*****Pass 1 Complete *****
Elapsed =0:00:00, CPU =0:00:00
*****Verilog HDL translation! *****
*****Start Pass 2 *****
Error: Module 'ad01d0' is not defined.(MWNL-297)
Error: Verilog parser cannot parse the /root/eda/ICC_Lab/lab1_data_setup/design_data/RISC_CHIP.v source file. (MWNL-047)
No such file or directory
Error: Current design is not defined. (UID-4)
0
而同样的代码,我用Design Compiler却可以compile成功,有谁碰到过这种情况吗?
MWNL-297
NAME
MWNL-297 (Error) Module '%s' is not defined.
DESCRIPTION
This error message occurs when the specified module is not defined either in the Verilog source file(s) or as a FRAM view in reference libraries.
WHAT NEXT
If you want the tool to continue with undefined module, you can specify option "-allow_undefined_module" or option "-dirty_netlist", then a CEL will be created for the undefined module and read_verilog will continue. However, if the missing module is not what you intended, check the Verilog source file(s) and make sure all modules are either defined or exist in the reference libraries.
所以,你dc能link的原因是dc不需要物理信息。
MWNL-297的意思是物理库信息缺失
暂时的解决方法是:
If you want the tool to continue with undefined module, you can specify option "-allow_undefined_module" or option "-dirty_netlist"
很感谢。刚才在网上搜索了一遍,应该是reference library不对。我仔细看了,都加了reference library.
LAB上提示用的ICC版本是2010.10
而我自己安装的是2010.03
难道是版本问题?2010.03不能正确refer to LAB中提供的reference library ?
printvar mw_reference_library返回的是空字符串
用set_mw_lib_reference命令设置了,但是,好像没有起作用,还是空的。
难道是这个原因?
终于搞定了,主要原因是mw_lib下有一些文件名字被修改了,主要涉及FRAM目录和CEL目录,在Linux下,文件名应该是诸如pc3b01:1这样的格式,被改成的pc3b01_1导致ICC在加载reference lib的时候没有成功。原因是在windows下解压.gz包,文件名中含有的冒号被windows系统用下划线自动替换了。
合理的做法是在linux下解压.gz的包,就不会出现这个问题了。
要看reference library是否被正确指定了,可以用
report_mw_lib -mw_reference_library 这个命令查看。似乎mw_reference_library这个变量不起作用。
赞一个,你很能钻研
great post
非常感谢小编,原来是这个原因
later, when copy MW_LIB(has been uncompressed) to a FAT32 usb diskunder linux system , the file name also is changed from pc3b01:1 to pc3b01_1 !
It seems the FAT system does not support filename including : .
我在redhat6.0的环境下解压还是下划线...怎么办呢?
应该不会的,是不是原始包就有问题?
应该是原始的包有问题,小编可以分享一份能用的2010的ICC_lab给我么?(网盘链接也可以)
2116768812@qq.com
可以进入mw_lib里面挨个批量替换,用rename命令
rename _ : *
问题主要是出在ref/mw_chip/下面的参考库的名称
把你用到的参考库里面的FRAM中的文件的下划线都用冒号替换掉就可以了
比如lab1用到的io,sc和ram16*128三个库,你就三个mw文件夹下面的FRAM中的文件都rename一下就可以了
