AXI基础知识学习

张开发
2026/4/10 20:10:13 15 分钟阅读

分享文章

AXI基础知识学习
1、AXI通道主从之间5个通信通道写操作使用如下通道1主——从主使用AW通道发送写地址主使用W通道发送数据2从——主写操作完成之后从使用B通道发送写响应信号。读操作使用如下通道1主——从主使用AR通道发送读地址2从——主从使用R通道发送对应请求地址的读数据。2、AXI通道握手Source——Destination发送Valid信号Destination——Source发送Ready信号。Source/Destination是主还是从取决于使用哪个通道。例如例如主是AR通道的Source是R通道的Destination此时在使用AR通道时主发送Valid信号在使用R通道时主发送Ready信号。握手是基于clock边沿的同步握手操作。3、AXI传输与事务1传输transfer表示单次信息交换包含一次Valid和Ready握手注意READY can be asserted before or after VALID, or even at the asme time.A source cannot wait for READY to be asserted before asserting VALIDA destination can wait for VALID to be asserted before asserting READY2传输事务transaction表示一次完整的突发传输包含地址传输、一个或者多个数据传输、写序列、传输响应。单次写事务多次写事务单次读事务多次读事务4、读写数据长度、大小和突发类型1AxLEN[7:0]在一次读 / 写传输事务transaction中可以传输1~256个数据2AxSize[2:0]传输1个数据时数据包含的字节数0~7依次表示1/2/4/8/16/32/64/128个字节数3AxBURST[1:0]表示突发类型为下表中的一种BURST 不能跨过4KB的边界。ValueBurst TypeUsage notesLengtn(number of transfers)Alignment0x00FIXEDReads the same address repeatedly. Useful for FIFOs.1-16Fixed byte lanes only defined by start address and size.0x01INCRIncrementing burst. The subordinate increments the address for each transfer in the burst from the address for the previous transfer. The incremental value depends on the size of the transfer, as defined by theAxSIZE attribute. Useful for block transfers.1-256Unaligned transfers are supported.0x10WRAPWrapping burst. Similar to an incrementing burst, except that if an upper address limit is reached, the address wraps around to a lower address. Commonly used for cache line accesses.2, 4, 8, or 16The start address must be aligned to the transfer size.0x11RESERVEDNot for use.——5、写数据选通WSTRB信号该信号位宽与写数据WDATA位宽的比例关系为1:8WSTRB信号的bit[0]为1表示写数据WDATA的bit[7:0]被选通bit[1]为1表示写数据WDATA的bit[15:8]被选通依次类推。

更多文章