将组件连接到SOPC Builder的Avalon Memory-Mapped从接口时会发生ModelSim错误
如果将包含没有地址总线的Avalon Memory-Mapped从接口的自定义组件连接到时钟交叉桥,则ModelSim会生成类似于以下内容的错误:
# ** Failure: (vsim-3807) Types do not match between component and entity for port "slave_address".
# Time: 0 ps Iteration: 0 Instance: /clock_crossing_0.vhd Line: 247
# ** Failure: (vsim-3807) Types do not match between component and entity for port "slave_nativeaddress".
# Time: 0 ps Iteration: 0 Instance: /clock_crossing_0.vhd Line: 250
# ** Failure: (vsim-3807) Types do not match between component and entity for port "master_nativeaddress".
# Time: 0 ps Iteration: 0 Instance: /clock_crossing_0.vhd Line: 259
这些错误是由时钟交叉桥的地址信号与顶层模块中的桥的实例化之间的信号类型不匹配引起的。
解决/修复方法
向Avalon Memory-Mapped从接口添加宽度等于或大于1的从地址信号。您可以使用任何有效的地址信号名称。如果您的设计中不需要,您可以省略使用此从地址信号。