This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Number of byte count

Iam working with a project using AXI 4.0 protocol with incrememtal burst type .i need to find the number of bytes in each transfer. please anyone help me.

thank you in advance

  • The number of bytes could just be as simple as the burst width (AxSIZE) multiplied by the burst length (AxLEN).

    However the start address of the burst will also affect the number of bytes transferred if it is not aligned to the AxSIZE transfer width, as this would indicate which byte lanes of the first transfer in an INCR burst are not used, and in a FIXED burst it indicates which byte lanes in EVERY transfer are not used.

    Then to further complicate matters, for write transactions you would also need to look at the WSTRB bit settings to see which byte lanes in each transfer were signalled as containing valid data.

    So you need to look at AxSIZE for each transfer width, AXLEN for the transaction length, AxADDR to see if the start address is aligned and AxBURST to see the burst type to see exactly how many bytes will be transferred by a transaction. For write transactions you could also check the WSTRB values for each data transfer to see the number of bytes that were signalled as valid.