admin 发表于 2018-6-21 14:50:36

12002 Port "byteenable2" does not exist in macrofunction "...

在NIOS 中使用双口RAM报错12002 Port "byteenable2" does not exist in macrofunction "xxx"。
这是Quartus 13.0软件的bug。在altera官方网站上有解决指导方案。官网的说明路径就不贴了,过两个月altera域名就无法访问了,整合到Intel中了。直接把官网的原文发出来。

Type: Answers
Area: Tools



Last Modified: October 21, 2013
Version Found: v13.0
Version Fixed: v13.0 Service Pack 1

Error (12002): Port "byteenable2" does not exist in macrofunction "onchip_memory<instance>"Description
Due to a problem in the Quartus® II software version 13.0, the dual port RAM (on-chip memory) component in Qsys incorrectly adds the signal byteenable2on slave s2 when the data width is set as 8 bits.
Workaround/Fix

To work around this problem, perform the following steps:
[*]Open the file altera_avalon_onchip_memory<instance>_hw.tcl in a text editor and comment line 671.#add_interface_port s2 byteenable2 byteenable Input
[*]Add the following lines under line 671:
if { > 1} {
    add_interface_port s2 byteenable2 byteenable Input
}
[*]Refresh and regenerate the system
This problem is fixed beginning with the Quartus II software version 13.0 SP1.
意思很简单,学fpga的应该都能看得懂这个。不懂的请热心二楼来翻译吧。
直接改文件就行了,如果不会改,直接下载附件提供的文件,替换下你软件中对应文件即可。比如我的电脑是D:\altera\13.0\ip\altera\sopc_builder_ip\altera_avalon_onchip_memory2












fzwwj95 发表于 2018-6-21 19:25:46

好文章,赞一个!

KDKDKD 发表于 2020-2-7 19:11:58

类型:答案
区域:工具



上次修改时间:2013年10月21日
版实测值:V13.0
版固定:V13.0服务包1个

错误(12002):端口“byteenable2”在宏观功能不存在“onchip_memory <实例>”描述
由于Quartus®II软件13.0中的问题,当数据宽度设置为8位时,Qsys中的双端口RAM(片上存储器)组件错误地将信号byableable2添加到从属s2上。

解决方法/修复

要变通解决此问题,请执行以下步骤:
1.在文本编辑器和注释行671中打开文件altera_avalon_onchip_memory <instance> _hw.tcl
    #add_interface_port s2 byteenable2 byteenable输入
2.在第671行下面添加以下行:
如果{> 1} {
    add_interface_port s2 byteenable2 byteenable输入
}
3.刷新并重新生成系统
从Quartus II软件13.0 SP1开始修复此问题。
页: [1]
查看完整版本: 12002 Port "byteenable2" does not exist in macrofunction "...