PCIE各种包结构及常用资料汇总

一、Memory Read包

本系统中:CPU会发出Read包。

1、CPU发过来的包格式


  

Field Name

Header Byte/Bit

Function

Length [9:0]

Byte 3 Bit 7:0

Byte 2 Bit 1:0

单位是DW

Attr (Attributes)

Byte 2 Bit 5:4

00,PCI才不是0

EP (Poisoned Data)

Byte 2 Bit 6

要求驱动发包这里必须都是0,否则没意义

TD (TLP Digest Field Present)

Byte 2 Bit 7

0,不摘要(要求驱动不能发摘要)

TC (Traffic Class)

Byte 1 Bit 6:4

000

Type[4:0]

Byte 0 Bit 4:0

00000b = Memory Read or Write

Fmt 1:0 (Format)

Byte 0 Bit 6:5

00b = Memory Read (3DW w/o data)

1st DW BE 3:0 (First DW Byte Enables)

Byte 7 Bit 3:0

要求驱动发包必须DW对齐

1111

4’b1111

这里最为重要,设置不好会死机。

<=1DW:0000 --4’b0

>1DW:1111—4’b1111

Last BE 3:0 (Last DW Byte Enables)

Byte 7 Bit 7:4

Tag 7:0

Byte 6 Bit 7:0

不一定

Requester ID 15:0

Byte 5 Bit 7:0

Byte 4 Bit 7:0

全是0

Address 31:2

Byte 15 Bit 7:2

Byte 14 Bit 7:0

Byte 13 Bit 7:0

Byte 12 Bit 7:0

地址

 

二、Memory Write包

本系统中:CPU、板卡会发出Write包。

1、CPU发过来的包格式


  

Field Name

Header Byte/Bit

Function

Length [9:0]

Byte 3 Bit 7:0

Byte 2 Bit 1:0

单位是DW

Attr (Attributes)

Byte 2 Bit 5:4

00,PCI才不是0

EP (Poisoned Data)

Byte 2 Bit 6

要求驱动发包这里必须都是0,否则没意义

TD (TLP Digest Field Present)

Byte 2 Bit 7

0,不摘要(要求驱动不能发摘要)

TC (Traffic Class)

Byte 1 Bit 6:4

000

Type[4:0]

Byte 0 Bit 4:0

00000b = Memory Read or Write

Fmt 1:0 (Format)

Byte 0 Bit 6:5

10b = Memory Write (3DW w/ data)

1st DW BE 3:0 (First DW Byte Enables)

Byte 7 Bit 3:0

要求驱动发包必须DW对齐

1111

4’b1111

这里最为重要,设置不好会死机。

<=1DW:0000 --4’b0

>1DW:1111—4’b1111

Last BE 3:0 (Last DW Byte Enables)

Byte 7 Bit 7:4

Tag 7:0

Byte 6 Bit 7:0

不一定

Requester ID 15:0

Byte 5 Bit 7:0

Byte 4 Bit 7:0

全是0

Address 31:2

Byte 15 Bit 7:2

Byte 14 Bit 7:0

Byte 13 Bit 7:0

Byte 12 Bit 7:0

地址

2、板卡发过来(发出)的包格式

  • 2
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值