axi协议的非对齐访问

  今天被monitor骗了,从仿真过程中dump出来的pcie pio reg monitor的数据显示为awaddr=0x464,awsize=0x2,awlen=0x0,awburst=0x1,写入的数据wdata=256‘h82’,wstrob=32‘h0000000f。

当时觉得疑惑,既然地址是0x464,数据线是256bit的大于了awsize指示的4字节大小的数据,那么strob应该是32‘hf0呀。

后来看了DUT的波形才发现,wdata实际是32bit,strob也是4bit的f,是我们的monitor自动补全为0的。

什么叫对齐访问?什么叫非对齐访问,协议上:

Aligned_Address = (INT(Start_Address / Number_Bytes)) × Number_Bytes

具体在AMBA axi协议的c版本的51页,原文如下:

Burst address
This section provides methods for determining the address and byte lanes of transfers within a burst. The equations
use the following variables:
Start_Address
The start address that is issued by the Manager.
Number_Bytes
The maximum number of bytes in each data transfer.
Data_Bus_Bytes
<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值