天天看点

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机制;
    pcie selective flow-control for non-posted request
  • 刚开始 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为止
pcie selective flow-control for non-posted request
  • 如果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;
pcie selective flow-control for non-posted request

继续阅读