今天被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
<

最低0.47元/天 解锁文章
2355

被折叠的 条评论
为什么被折叠?



