MAXI Offset - 2021.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 English
  • Fully Specified Offset: This rule adheres to the user-specified offset settings in the INTERFACE pragma.
  • No-offset Specified: If m_axi offset is not specified in the INTERFACE pragma, the global config option: config_interface -m_axi_offset <off/direct/slave> will impact the offset rules.
    • Rule 1: User-specified SAXI Lite: When the INTERFACE pragma specifies an s_axilite interface associated with the m_axi interface, this rule explicitly groups all the m_axi offsets into an AXI4-Lite interface adapter, for which the -m_axi_offset=slave and the -default_slave_interface=s_axilite.
      void top(int *a) {
      #pragma HLS interface mode=m_axi port=a
      #pragma HLS interface mode=s_axilite port=a
      }
    • Rule 2: No SAXI LITE: When the INTERFACE pragma does not associate an s_axilite interface with the m_axi interface, this rule explicitly groups all the m_axi offsets into the tool default offset: -m_axi_offset=slave
      void top(int *a, int *b) {
      #pragma HLS interface mode=m_axi port=a bundle=M0
      #pragma HLS interface mode=m_axi port=b bundle=M0
      }