Burst Inference 1 - 2022.1 English

Vitis HLS Messaging (UG1448)

Document ID
UG1448
Release Date
2022-06-22
Version
2022.1 English

Description

This message indicates that the interface pragma are incorrectly used.

Explanation

The code is violating a single-bundle mapping rules.

All arguments mapped to the same interface bundle require the same interface width unless automatic burst interface is disabled.

Solution

The following are examples of incorrect and correct bitwidth use. Use them to verify your code.

  • Incorrect bitwidth:
    void cnn( long *pixel, // Input pixel
      int *weights, // Input Weight Matrix
      int *out, // Output pixel
      ... // Other input or Output ports
                
    #pragma HLS INTERFACE m_axi port=pixel offset=slave bundle=gmem
    #pragma HLS INTERFACE m_axi port=weights offset=slave bundle=gmem1
    #pragma HLS INTERFACE m_axi port=out offset=slave bundle=gmem
  • Correct bitwidth:
    void cnn( long *pixel, // Input pixel
      int *weights, // Input Weight Matrix
      long *out, // Output pixel
      ... // Other input or Output ports
                
    #pragma HLS INTERFACE m_axi port=pixel offset=slave bundle=gmem
    #pragma HLS INTERFACE m_axi port=weights offset=slave bundle=gmem1
    #pragma HLS INTERFACE m_axi port=out offset=slave bundle=gmem