pcie selective flow-control for non-posted request

pcie selective flow-control for non-posted request

参考pg213
post:英语含义为 张贴 / 公布/ 邮递 ; 从字面意思上理解是不需要等待响应/等待回信的;

  • posted transaction 是memory write
  • non-posted 是memory read
  • 如果想给pcie core反压,则使用这个credit机制;
    在这里插入图片描述
  • 刚开始 counter是0,不能发non-posted
  • 如果用户逻辑可以处理non-posted, 则给pcie core发一个脉冲的pcie_cq_np_req[0]; pcie_cq_np_req[0]=1 会使得counter+1,counter最大为32
  • 发用一个non-posted counter会减1;减到0为止

在这里插入图片描述

  • 如果credit counter一直>0;则按照顺序发用posted和non-posted;
  • 如果credit counter=0;则发用posted ,non-posted会被存储在fifo
  • 等到credit counter再次大于0; 则先 发送之前缓存的non-posted数据包,之后再按照顺序去发送posted和non-posted;
  • 如果用户逻辑可以处理所有的non-posted,则直接一直保持pcie_cq_np_req[0]=1;

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_39060517/article/details/112875336
今日推荐