Pcie Link Training
Pcie Link Training
Abstract— The serial protocols like PCI Express and USB relevant state transitions so that there can be multiple state
have evolved over the years to provide very high operating transitions conditions to transition to the same next state.
speeds and throughput. This evolution has resulted in their For some of the sub-states, there are multiple state
physical layer protocol becoming very complex. One of the transition paths that lead to different next states. To trigger
most essential processes at physical layer is link initialization
and training process. In the PCI Express devices, this process
all the required state transitions and transition conditions,
establishes many important tasks such as link width we use a mixture of directed and constrained random
negotiation, link data rate negotiation, bit lock per lane, stimulus generation. As each and every statement in the
symbol lock/block alignment per lane, etc. All these functions PCIe Base Specification description of LTSSM requires
are accomplished by Link Training & Status State Machine attention, we create a detailed coverage for all sub-states
(LTSSM), which observes the stimulus from remote link that includes all state transition paths, transition
partner as well as the current state of the link, and responds reasons/conditions, transmit rules, stimulus etc.
accordingly.
II. LITERATURE REVIEW
Keywords—Encoding, Link Training and Status State All In the world of communication protocols, PCI-
Machine, Ordered Sets, PCIe 3.0, Scrambling, Verification Express presents throughput in 2.5 GT/s, 5.0 GT/s and 8.0
Introduction
GT/s. It is important to not forget the purpose of each
I. INTRODUCTION protocol. PCIe is a high-speed serial computer expansion
bus standard designed to replace the older PCI, PCI-X, and
The PCIe 3.0 architecture utilizes very efficient and AGP bus standards. PCIe has numerous improvements over
productive algorithms for maintaining reliable link, highly the older standards, including higher maximum system bus
optimized power consumption and extremely fast and throughput, lower I/O pin count and smaller physical
flawless data transfer rate. The Link Training Status State footprint, better performance scaling for bus devices, a
Machine has been employed as the foremost workhorse in more detailed error detection and reporting mechanism and
these regards. Its functions and provisions contribute native hot-plug functionality. More recent revisions of the
matchlessly towards the super speed high class PCIe standard provide hardware support for I/O
performance. The LTSSM tunes and trains the PCIe link for virtualization [1],[2],[3],[4].
reliable data transfer. It also implements various algorithms As the SuperSpeed USB 3.0 protocols are intended for
for link’s reliability maintenance and is also responsible to dual simplex transmission lines, for the sake of parallel
recover the link from any errors as may arise. It also plays transactions, there is an absolute need of having the
key role in power management by greatly reducing link’s architecture which supports such protocols. [5] [6] have
power consumption and nullifying any conditions that developed a fully synthezied LTSSM (Link Layer and
waste power. The LTSSM also performs operations for Transition State Machine) and also interfaced it with
making the link ready for data transaction in the very previously developed MAC layer. The layered architecture
beginning when the device is plugged in. Hence LTSSM is of USB 3.0 communication protocols itself turned out
the Data Flow GatewayControl for the device. The work helpful in structuring verification effort to enhance it.
also includes the development and verification of MAC [7] describes a method to implement the data link layer
Layer of PCIe 3.0 device. The LTSSM communicate and of the PCIe 3.0. The data link layer is involved in the
co-ordinates with almost all the layers of the device namely exchange of packets at the DLL level with a state machine
the PHY, the MAC, the link layer and also the master for flow control and initialization.
controller. A novel Multi-mode Serial Link Controller (MMSLC)
We use a PCI Express LTSSM whitebox reference for logic physical layer (PHY) and data link layer (DLL) of
model, which is a part of the bigger UVM-based testbench USB 3.0, PCle 2.0 and SATA 3.0 is introduced in [8]. This
environment. The LTSSM reference model observes the approach exploits the relationship between protocols'
same physical layer traffic as the DUT, behaves as per the similarity with circuit flexibility and its real-time
PCI Express Base Specification and also predicts the requirements with effective circuit area usage, as verified in
possible state transitions. As opposed to the Black Box this paper. Our results show that this architecture is capable
tetsbench which has no idea about the state of DUT’s of achieving the high-speed requirements of around
internal blocks, this model is aware of DUT’s LTSSM state 500MHz symbol rate for serial link protocols and realize
and values of useful LTSSM parameters. area reduction over conventional link controllers running
The PCI Express defines the state behaviour and each protocol individually.
www.ijcsit.com 2717
Chandana K N et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 6 (3) , 2015, 2717-2719
With the evolution of modern verification configured Link and Lane number as well as the
methodologies, system-level verification using constrained- previously supported data rate(s).Recovery allows a
random stimulus is a high priority, especially in very large configured Link to change the data rate of operation if
communication applications. A key goal to address is desired, re-establish bit lock, Symbol lock or Block
providing fast, effective test coverage. In order to generate alignment, and Lane-to-Lane de-skew.
stimulus automatically to cover all coverage bins more
quickly in the verification process, especially in very large
communication applications, a novel method which
combines the benefits of GA and coverage-driven
verification methodology is proposed. By analyzing the real
time coverage results from the simulation and thereafter
intelligently modifying the corresponding stimulus, this
novel method iteratively improves coverage. As a result, the
GA can more effectively generate stimulus. The
experimental results from both a C-based testbench and a
real application (PCIe system) prove that the proposed GA
method can streamline the verification effort and sharply
reduce simulation time to achieve thorough coverage [10].
The SystemVerilog Language Reference Manual
and Universal Verification Methodology User’s Guide has
been referred wherever required for language constructs
[11][12].
www.ijcsit.com 2718
Chandana K N et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 6 (3) , 2015, 2717-2719
V. CONCLUSION
The LTSSM has been designed and verified using
SystemVerilog UVM Methodology. This LTSSM has been
interfaced with the existing MAC Layer and proved
effective use. Following the latest PCIe 3.0 specifications,
the designed LTSSM can easily be hooked up with other
layers. The functionality of LTSSM is also verified, via
simulation, along with integrated MAClayer. The layered
architecture of PCIe 3.0 communication protocols itself
turned out helpful in structuring verification effort to
enhance it. The layers can be verified separately with
minimal overhead in the test development effort.
Fig 2 Main State Diagram for LTSSM
ACKNOWLEDGMENT
IV. VERIFICATION ARCHITECTURE The authors wish to thank Mindtree Limited. This work
The LTSSM has been designed and verified using UVM was supported in part by a grant from Mindtree Limited.
methodology. The verification architecture is as shown in
Fig 4-1 REFERENCES
[1] “PCI Express ® Base Specification”, Revision 3.0, Version 1.0,
November 10, 2010.
[2] “PHY Interface for the PCI Express, SATA and USB 3.1
Architectures”, Version 4.0, Intel Corporation, 2011.
[3] Ravi Budruk, Don Anderson & Tom Sanely, 2004. “PCI Express
System Architecture”, Mindshare Inc., pp 419-434.
[4] “PCI-SIG Developer’s Conference”, PCI-SIG.
[5] Hasan Baig, Muhammad AsrarAlam, Jeong-A Lee, “Integrated
LTSSM (Link Training & Status State Machine) and MAC Layer of
USB 3.0 Device for Reliable SuperSpeed Data Transactions”,
Research Notes in Information Science (RNIS Volume9, Number1,
May 2012.
[6] Rohith Kumar, Hardik Trivedi, NitishAlok, “Design and Verification
of USB 3.0 Link Layer (LTSSM)”,International Journal of Computer
Science and Information Technologies, Vol. 5 (4), 2014, 4916-4921
[7] M. Aguilar, A. Veloz and M. Guzman, “Proposal of implementation
of the data link layer of PCI-express”, Proceedings of 1st
International Conference on Electrical and Electronics Engineering,
pp. 64, June 2004.
[8] Lei Wang ,Pawankumar Hegde, Vishal Nawathe, Roman
Staszewski, Paras Balsara, Vajin Oklabdzija, “Design of a Link-
Controller architecture for Multiple Serial Link Protocols”, IEEE
Fig 4-1 Verification Architecture 2010, 266 -271
[9] Julien Saadé, Frédéric Pétrot, André Picco, Joel Huloux, Abdelaziz
The MAC driver has the driving LTSSM which will Goulahsen, “A System-Level Overview and Comparison of Three
High-Speed Serial Links: USB 3.0, PCI Express 2.0 and LLI 1.0”,
keep track of the state machine transitions, whereas the IEEE 2013, 147 – 152
MAC monitor monitors the arrival and sampling of the data [10] Wang Jiawen, Liu Zhigui, Wang Suliang, Liu Yang, Li Yufei, Yang
packets and ordered sets from the upper layers at the Hao, “Coverage-Directed Stimulus Generation Using a Genetic
transmit side of the MAC agent. Algorithm”, ISOCC 2013, IEEE Transactions, 298 – 301
[11] “SystemVerilog 3.1a Language Reference Manual”, Accellara -
The receive side of the MAC agent samples the data Extensions to Verilog-2001, 2004
packets and ordered sets from the PIPE interface and drives [12] “Universal Verification Methodology (UVM)”, User’s Guide - 1.1,
it to the upper layers. The data packets are scrambled and Acellera, 2011
www.ijcsit.com 2719