AMBA总线(四) AXI总线 与(三)结合

AXI总线的特点:

  • 分离的地址和数据阶段
  • 支持地址非对齐的数据访问,使用字节掩码(Byte Strobes)来控制部分写操作
  • 使用基于猝发的交易类型(burst-based transaction),对于猝发操作仅需要发送起始地址,即可传输大片的数据
  • 分离的读通道和写通道,总共有5个独立的通道
  • 支持多个滞外交易(Multiple Outstanding Transaction)
  • 支持乱序返回、乱序完成
  • 非常易于添加流水线级数以获得高频的时序

Outstanding: The ability to issue multiple outstanding addresses means that masters can issue transaction addresses without waiting for earlier transactions to complete. This feature can improve system performance because it enables parallel processing of transactions.
从字面理解,outstanding表示正在进行中的,未完成的意思。
而如果outstanding能力为N>1的话,则:
1)读操作:可以连续发N个读地址命令,这期间如果读数据没有返回,则需要等待读数据返回,如果有读数据返回,则返回了几个,那么仍然可以接着发几个。也就是说,“在路上” 的读命令(或者读数据)最多可以是N。多说一点,可以看出,如果数据返回得比较慢,那么IP需要等待,效率就会比较低,因此,为了提高效率,有必要提高outstanding能力,以弥补”路上“(总线)引入的延时。
2)写操作:可以连续发出N组写地址(写数据)命令,这期间如果写响应没有返回,则必须等待写响应返回才能接着发写地址(写数据)命令,如果有写响应返回,则返回了几个,那么仍然可以接着发几组。也就是说,“在路上” 的写响应最多可以是N。
在这里插入图片描述
发出A11的addr后,在完成D11~D14的transfer之前,发出A21叫做outstanding。

Out-of-order : The ability to complete transactions out of order means that transactions to faster memory regions can complete without waiting for earlier transactions to slower memory regions. This feature can also improve system performance because it reduces the effect of transaction latency.
在这里插入图片描述
地址的顺序是A11,A21,A31,而返回数据顺序则可能是D2,D3,D1,这个过程叫做Out-of-order

Interleaving: Write data interleaving enables a slave interface to accept interleaved write data with different AWID values. The slave declares a write data interleaving depth that indicates if the interface can accept interleaved write data from sources with different AWID values.
在这里插入图片描述
​D11和D12之间插入D23,叫做interleaving。
简单而言,outsatanding是对地址而言,一次burst还没结束,就可以发送下一相地址。而out-of-order和interleaving则是相对于 transaction,out-of-order说的是发送transaction​和接收的cmd之间的顺序没有关系,如先接到A的cmd,再接到B的cmd,则可以先发B的data,再发A的data;interleaving指的是A的data和B的data可以交错,如A1 B1 A2 B2 B3……

发布了54 篇原创文章 · 获赞 4 · 访问量 1014

猜你喜欢

转载自blog.csdn.net/buzhiquxiang/article/details/103874274