用于 PCIe* 解决方案的 Intel® Stratix® 10 Avalon® -ST和Single Root I/O Virtualization (SR-IOV)接口用户指南

ID 683111
日期 12/06/2017
Public
文档目录

6.1.13. SR-IOV的控制阴影接口(Control Shadow Interface for SR-IOV)

控制阴影接口对位于SR-IOV Bridge中的PCI and PCI Express Configuration Spaces中的某些VF Control Register域的当前设置提供访问。此接口仅用于H-Tile器件。

此接口用于以下目的:

  • 使用ctl_shdw_update输出和以下定义的相关输出信号来监控特定的VF寄存器。
  • 使用ctl_shdw_req_all输入对所有活动的VF请求寄存器域的全面扫描,以监控所有VF寄存器。

信号

方向

说明

ctl_shdw_update Output 当更新一个或多个正在监控的寄存器域时,SR-IOV Bridge置位此输出1个时钟周期。ctl_shdw_cfg输出驱动新值。ctl_shdw_pf_num ctl_shdw_vf_num ctl_shdw_vf_active标识VF和其PF。

ctl_shdw_pf_num[<n>-1:0]

Output 标识寄存器设置在ctl_shdw_cfg输出上的PF。当功能是VF时,此输入指定VF连接的PF数量。
ctl_shdw _vf_active Output 置位时,表明寄存器设置在ctl_shdw_cfg输出上的功能是VF。ctl_shdw_vf_num驱动VF数量偏移(number offset)。
ctl_shdw_vf_num[10:0] Output 标识VF数量偏移,当ctl_shdw _vf_active置位时,此VF的寄存器设置在ctl_shdw_cfg输出上,值的范围从0-(<n>-1) ,其中,<n>是与相关PF连接的VF数量。
ctl_shdw_cfg[6:0] Output

ctl_shdw_update置位时,此输出提供相关功能的寄存器域的当前设置。这些比特指定了以下寄存器域:

  • [0]: Bus Master Enable, bit[2] of the PCI Command Register.
  • [1]: MSI-X function mask field, bit[14] of the MSI-X Message Control register
  • [2]: MSI-X enable field, bit[15] of the MSI-X Message Control register
  • [4:3]: TPH Steering Tag (ST) Mode Select field, bits[1:0] of the TPH Requester Control register
  • [5]: TPH Requester Enable field, bit[8] of the TPH Requester Control register
  • [6]: Enable field, bit[15] of the ATS Control register
ctl_shdw_req_all Input

置位时,请求对正在监视的所有活动Function的寄存器域进行完整扫描。当ctl_shdw_req_all输入置位时,SR-IOV Bridge接将循环通过每个VF。它提供所有寄存器域的当前值。如果在扫描期间出现Configuration Write,那么SR-IOV Bridge会中断扫描以输出新设置。然后重新开始扫描,从更新的VF设置开始依次继续。

SR-IOV Bridge在每个扫描周期结束时检查ctl_shdw_req_all的状态。如果该输入置位,它将开始一个新的扫描周期。

将此输入连接到逻辑1以连续扫描功能。