当前位置:网站首页>4. PCIe interface timing
4. PCIe interface timing
2022-08-05 00:45:00 【jjinl】
In the previous article, I briefly introduced the IPcore interface.In general, the interface is as shown below

Data is received and sent through transmit TLP interface and Receive TLP interface.The timing of sending and receiving data only describes the relationship between these interfaces.Take the interface timing of PCIe x1 from the manual
Data sending

The picture above is the x4 interface. The 5G IP we use, the timing is similar to this, but the tx_val will be valid at intervals.The above timing
Before EP sends data, first send tx_req_vc0 high, indicating request to send, wait for tx_rdy_vc0 to be high to start sending, when tx_rdy_vc0 is high, place data on yx_data_vc0 on the rising edge of the next clock, and pull high tx_st_vc0 signal. tx_rdy_vc0 remains high until the last data of the TLP packet, so this tx_rdy_vc0 signal can be used as a read enable signal for non-pipeline fifo.
tx_end_vc0, indicating that the data line is the last data of TLP.
tx_ca_*h_vc0 and tx_ca_*d_vc0 must be checked before each request is sent, and the corresponding value will be decremented by one after the transmission is completed. These two types of flags indicate whether the upper port has resources to forward your sent data

The above picture is the timing of sending two data

The sending timing of the above picture is only the header, there is no data corresponding to tx_ca_*d_vc0 and there is no change

The last data sent in the above picture is not enough 64bit, at this time the dwen signal indicates that 63:32bit is valid

Burst mode, send two TLP packets, the req signal remains valid until the last TLP packet sends the rdy signal

Void the TLP packet, pull the tx_nlfy signal high at any time, void this TLP packet, no need to send the tx_end signal again

When the x4 in the above figure is downgraded to x1, the sequence diagram is the same as above. The x1 used in our project is the same as above.In this figure, when tx_val is high, the signal changes
Data reception
When a TLP data packet is sent, rx_st_vc0 will be pulled high, at this time the first data will appear on the data line, one data per clock, when rx_end_vc0 is high, it means that the data line islast data.If there is an ECRC error, rx_ecrc_err_vc0 will be pulled high at the last data moment; if there is a problem with the length of the TLP, rx_malf_tlp_vc0 will be pulled high

tlp receive data

Receive ECRC error

There is a problem with the TLP length
边栏推荐
- Memory Forensics Series 1
- node uses redis
- 软件测试面试题:做好测试计划的关键是什么?
- EL定时刷新页面中的皕杰报表实例
- 软件测试面试题:测试用例通常包括那些内容?
- 2022 Nioke Multi-School Training Session H Question H Take the Elevator
- Software testing interview questions: What are the three modules of LoadRunner?
- tiup status
- 2022 Nioke Multi-School Training Session 2 J Question Link with Arithmetic Progression
- ORA-01105 ORA-03175
猜你喜欢
随机推荐
QSunSync Qiniu cloud file synchronization tool, batch upload
tiup update
PCIe Core Configuration
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 2)
主库预警日志报错ORA-00270
Difference between MBps and Mbps
二叉树[全解](C语言)
ORA-00257
2022 Hangzhou Electric Power Multi-School Session 3 Question B Boss Rush
Will domestic websites use Hong Kong servers be blocked?
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
金九银十面试跳槽季;你准备好了吗?
2022 Nioke Multi-School Training Session H Question H Take the Elevator
The principle of NMS and its code realization
2022多校第二场 K题 Link with Bracket Sequence I
2022牛客多校第三场 J题 Journey
[idea] idea configures sql formatting
B站7月榜单丨飞瓜数据B站UP主排行榜发布!
软件测试面试题:关于自动化测试工具?
tiup status
![[idea] idea configures sql formatting](/img/89/98cd23aff3e2f15ecb489f8b3c50e9.png)







![[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy](/img/33/3177b4c3de34d4920d741fed7526ee.png)
