创建 Qsys Component 时出错:There are multiple signals with role "xxxx".

出错内容:

There are multiple signals with role "export". Components using hw.tcl package 14.0 and greater must specify unique signal roles.

原因:

分析文件自动添加接口和信号时,多个同类信号使得 add_interface_port 语句有错误。

add_interface_port conduit_end avs_s1_export_DACDAT export Output 1
add_interface_port conduit_end avs_s1_export_DACLRC export Input 1

这里两个export是重名的信号。

搜索 add_interface_port 使用实例:

# The clock interface has two signals, named "clk" and "reset_n" of types "clk" "reset_n"

add_interface_port clock_sink clk clk input 1

add_interface_port clock_sink reset_n reset_n input 1

对比正确语句

add_interface_port s1 avs_s1_read read Input 1

add_interface_port s1 avs_s1_write write Input 1

修改为:

add_interface_port conduit_end avs_s1_export_ADCDAT export_adcdat Input 1
add_interface_port conduit_end avs_s1_export_ADCLRC export_adclrc Input 1

Done

你可能感兴趣的:(创建 Qsys Component 时出错:There are multiple signals with role "xxxx".)