Professional Documents
Culture Documents
Layer
Wang Lihua
School of ISE, Shandong University of Science & Technology, Qingdao, China
Abstract--This paper analyzes the architecture and function of credit-based flow control for TLPs. Every request packet
PCI Express Transaction Layer. The author gave the receiver requiring a response packet is implemented as a split
and transmitter flowchart and state transition diagram of transaction. Each packet has a unique identifier that enables
Transaction Layer. The paper designed Transaction Layer IP response packets to be directed to the correct originator. The
core in the System Level with top-down design method, wrote the packet format supports different forms of addressing
Verilog HDL codes to implement Transaction Layer. wrote depending on the type of the transaction. This specification
testbench to verify the correctness of the design module for uses Message Space to support all prior sideband signals, such
function simulation. The codes were simulated by Synopsys VCS. as interrupts, power-management requests, and so on. You
The simulation results show that the designed IP core meets the could think of PCI Express Message transactions as “virtual
required of the protocol of PCI Express™ Base Specification wires” since their effect is to eliminate the wide array of
Revision 2.0, The design validate its correctness and supports the sideband signals currently used in a platform implementation.
function of PCI Express Transaction Layer.
A. Transaction Layer Packet
Keywords--PCI Express; Transaction Layer; TLP Transactions consist of Requests and Completions, which
are communicated using three kind of packets(Posted,
I. INTRODUCTION
Non-Posted and Cpl). Figure 1 shows a high level serialized
PCI Express is a high performance, general purpose I/O
view of a TLP, consisting of a TLP header, a data payload (for
interconnect defined for a wide variety of computing and
some types of packets), and an optional TLP digest. Figure 2
communication platforms. PCI Express have three discrete
shows a more detailed view of the TLP:The Fmt and Type
logical layers: the Transaction Layer, the Data Link Layer, and
fields provide the information required to determine the size of
the Physical Layer. Each of these layers is divided into two
the remaining part of the header, and if the packet contains a
sections: one that processes transmitted information and one
data payload following the header. The Fmt, Type, TD, and
that processes received information. PCI Express uses packets
Length fields contain all information necessary to determine
to communicate information between components. Packets are
the overall size of the TLP itself. The Type field, in addition to
formed in the Transaction and Data Link Layers to carry the
defining the type of the TLP also determines how the TLP is
information from the transmitting component to the receiving
routed by a Switch.
component. As the transmitted packets flow through the other
layers, they are extended with additional information necessary
to handle packets at those layers.
Figure 1 Serial View of a TLP
II. TRANSACTION LAYER
The upper Layer of PCI Express architecture is the
Transaction Layer. Its primary responsibility is the assembly
and disassembly of Transaction Layer Packets (TLPs). TLPs
are used to communicate transactions, such as read and write.
The Transaction Layer is also responsible for managing
Figure 2 Generic TLP Format
V. CONCLUSION
Transaction Layer design is an important part in PCI
Express design. We designed Transaction Layer in the System
Level with top-down design method, and wrote the Verilog
Figure 5 Transmitter Flowchart HDL codes to implement it. we wrote testbench for function
simulation. The simulation results show that the designed can
IV. SIMULATION achieve the basic function of PCI Express Transaction Layer,
We used Synopsys VCS to simulate. Meet the protocol of PCI Express™ Base Specification
Revision 2.0. Through Transaction Layer design we can
further implement the PCI Express IP Core, it is also important
for improve equipment transmission bandwidth .
REFERENCES
[1] PCI SIG. PCI-Express™ base specification Rev 2.0. PCI SIG.
2006.12.20
[2] MA Ke-jie .Design and Research of PCI Express bus Switch IP Core.
Shandong University .2007.6.
[3] PLD Applications, PCI Express Expert Core Reference Manual,
Figure 6 Transmitter virtual channel simulation diagram 2006-02
[4] Michael D.Ciletti, Advanced Digital Design with the Verilog HDL,
Prentice Hall/Pearson, 2005.01.
Figure 6 shows the transmitter VC simulation waveform:
part a,receive software layer 10 P TLPs, 20 DW data; part b,
receive 1 NP TLP; part c receive 1 Cpl TLP and 20 DW data;
part d send P TLP to the data link layer; part e send flow
control; part f update flow control data , and send P-TLP; part
g send Cpl; part h send NP finally. The signal changes in
accord with the design requirement of transmitter.