MAXI - 2021.2 Chinese

Vitis 高层次综合用户指南 (UG1399)

Document ID
UG1399
Release Date
2021-12-15
Version
2021.2 Chinese
  • 无全局捆绑配置:默认全局配置选项 config_interface -m_axi_auto_max_ports false 会将所有兼容的 m_axi 接口自动捆绑到单个接口中,并对捆绑规则产生如下影响:
    • 规则 1:用户指定的捆绑名称
    • 此规则将具有相同 bundle=<string> 的所有接口端口都显式组合到同一个 m_axi 接口端口中,并以 m_axi_<string> 指定的值来命名 RTL 端口。
      #pragma HLS INTERFACE m_axi port=a depth=50 bundle=newport
      #pragma HLS INTERFACE m_axi port=b depth=50 bundle=newport
      #pragma HLS INTERFACE m_axi port=c depth=50 bundle=newport
      Log file 
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/newport' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/newport' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/newport' to 'm_axi'.
      

      未指定 bundle 的任何端口都将组合到默认接口 gmem0 中。

      #pragma HLS INTERFACE m_axi port=a depth=50 bundle=newport
      #pragma HLS INTERFACE m_axi port=b depth=50
      #pragma HLS INTERFACE m_axi port=c depth=50
      Log file 
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/newport' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/gmem0' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/gmem0' to 'm_axi'.
    • 规则 2:默认捆绑名称
    • 此规则将未指定捆绑名称的所有接口端口都组合到单个 m_axi 接口端口中,并将此端口命名为 m_axi_gmem0
      #pragma HLS INTERFACE m_axi port=a depth=50 
      #pragma HLS INTERFACE m_axi port=b depth=50
      #pragma HLS INTERFACE m_axi port=c depth=50 
      Log file 
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/gmem0' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/gmem0' to 'm_axi'.
      INFO: [RTGEN 206-500] Setting interface mode on port 'example/gmem0' to 'm_axi'.
      
  • 全局捆绑配置:全局配置选项 config_interface -m_axi_auto_max_ports true 会将无捆绑名称的所有 m_axi 接口端口都显式映射到个别接口端口,并将 RTL 端口按顺序命名为 m_axi_gmem0m_axi_gmem1m_axi_gmem2,以此类推。