当前位置:网站首页>4. PCIe 接口时序
4. PCIe 接口时序
2022-08-05 00:41:00 【jjinl】
在上一篇中,大致介绍IPcore接口。总的来说接口如下图

数据的接收和发送通过 transmit TLP interface和Receive TLP interface。收发数据的时序也只是描述这几个接口的关系。从手册上截取PCIe x1的接口时序
数据发送

上图是x4接口,我们使用的5G的IP,时序和这个差不多,只是tx_val会间隔有效。上述时序
EP发送数据之前,首先发送tx_req_vc0为高,表示请求发送,等待tx_rdy_vc0为高表示可以开始发送,当tx_rdy_vc0为高时,在下一个时钟的上升沿在yx_data_vc0上放置数据,并拉高tx_st_vc0信号. tx_rdy_vc0一致保持高电平,直到TLP包的最后一个数据,所以这个tx_rdy_vc0信号可以作为一个读使能信号使用,用于非流水的fifo。
tx_end_vc0,指示数据线上是TLP最后一个数据。
tx_ca_*h_vc0 和 tx_ca_*d_vc0在每次发送请求之前必须检查,发送完成后对应的值会减一,这两个类型的标志是指示上端口是否有资源转发你的发送数据

上图是发送两个数据的时序

上图发送时序是只有头,不存在数据对应tx_ca_*d_vc0没有变化

上图发送的数据最后一个不够64bit,此时dwen信号指示63:32位有效

burst模式,发送两个TLP包,req信号保持到最后一个TLP包发送rdy信号有效

作废TLP包,在任何时候拉高 tx_nlfy信号,作废此TLP包,不需要再发tx_end信号

上图x4降级为x1的时候时序图,我们工程使用的x1,时序图和上面一样。此图中tx_val为高的时候,信号才发生变化
数据接收
当一个TLP数据包发送过来时,rx_st_vc0会被拉高,此时第一个数据会出现在数据线上,每一个时钟一个数据,当rx_end_vc0为高时,表示此时数据线上是最后一个数据。如果出现ECRC错误,则在最后一个数据时刻rx_ecrc_err_vc0会被拉高;如果TLP的长度有问题,则rx_malf_tlp_vc0会被拉高

tlp接收数据

接收ECRC错误

TLP长度有问题
边栏推荐
- The principle of NMS and its code realization
- Software testing interview questions: What stages should a complete set of tests consist of?
- Pytorch使用和技巧
- Software testing interview questions: test life cycle, the test process is divided into several stages, and the meaning of each stage and the method used?
- 2022 Hangzhou Electric Power Multi-School Session 3 Question L Two Permutations
- 关于我仔细检查审核过关于工作人员页面,返回一个所属行业问题
- Software Testing Interview Questions: What do you think about software process improvement? Is there something that needs improvement in the enterprise you have worked for? What do you expect the idea
- oracle create user
- 2022牛客多校训练第二场 L题 Link with Level Editor I
- About I double-checked and reviewed the About staff page, returning an industry question
猜你喜欢
随机推荐
《WEB安全渗透测试》(28)Burp Collaborator-dnslog外带技术
进程间通信和线程间通信
阶段性测试完成后,你进行缺陷分析了么?
tiup uninstall
Software Testing Interview Questions: What do you think about software process improvement? Is there something that needs improvement in the enterprise you have worked for? What do you expect the idea
Will domestic websites use Hong Kong servers be blocked?
tiup telemetry
leetcode:266. 回文全排列
matlab 采用描点法进行数据模拟和仿真
2022杭电多校第一场 1004 Ball
2022牛客多校训练第二场 L题 Link with Level Editor I
tiup telemetry
Software testing interview questions: What are the seven-layer network protocols?
[230] Execute command error after connecting to Redis MISCONF Redis is configured to save RDB snapshots
MAUI Blazor 权限经验分享 (定位,使用相机)
B站7月榜单丨飞瓜数据B站UP主排行榜发布!
NMS原理及其代码实现
软件测试面试题:BIOS, Fat, IDE, Sata, SCSI, Ntfs windows NT?
如何用 Solidity 创建一个“Hello World”智能合约
标识符、关键字、常量 和变量(C语言)








