Beruflich Dokumente
Kultur Dokumente
By Vinayashree
BASICS
Serial communication is simple. The serial port
sends and receives bytes of information one bit at
a time.
It can be used over longer distances, as much as
1200 meters.
Serial communication implies sending data bit by
bit over a single wire.
Two ways to communicate--Synchronous and
Asynchronous
SYNCHRONOUS SERIAL
COMMUNICATION
Synchronous serial requires the clock signal to be
transmitted from the source along with the data.
Data rate for the link must be the same for the
transmitter and the receiver
Data
TRANSMITTER
clock
RECIEVER
ASYNCHRONOUS SERIAL
COMMUNICATION
Start bitindicates the beginning of the data word
Stop bitindicates the end of the data word
Parity bitadded for error detection (optional)
Data bitsthe actual data to be transmitted
Baud ratethe bit rate of the serial port
Throughputactual data transmitted per sec (total
bits transmitted-overhead)
Example: 115200 baud = 115200 bits/sec
If using 8-bit data, 1 start, 1 stop, and no parity
bits,
The throughput is: 115200 * 8 / 10 = 92160 bits/sec
ASYNCHRONOUS SERIAL
COMMUNICATION
Asynchronous transmission is easy to implement but less
efficient as it requires an extra 2-3 control bits for every 8
data bits.
With asynchronous communication, the transmitter and
receiver do not share a common clock
Transmitter
1 byte-wide Data
Receiver
1 byte-wide Data
FLOW CONTROL
RTS/CTS work together with one being the
output and the other the input. The first set of
lines are RTS (Request to Send) and CTS (Clear
to Send).
When a receiver is ready for data, it will assert
the RTS line indicating it is ready to receive data.
This is then read by the sender at the CTS input,
indicating it is clear to send the data.
The RTS/CTS lines are used for transmitting
individual packets of data.
SERDES
The basic SerDes function is made up of two functional
blocks: the Parallel In Serial Out (PISO) block (aka Parallelto-Serial converter) and the Serial In Parallel Out (SIPO)
block (aka Serial-to-Parallel converter).
There are 4 different SerDes architectures:
(1) Parallel clock SerDes,
(2) Embedded clock SerDes,
(3) 8b/10b SerDes,
(4) Bit interleaved SerDes.
The PISO (Parallel Input, Serial Output) block typically has a
parallel clock input, a set of data input lines, and input data
latches. The simplest form of the PISO has a single
shift registerthat receives the parallel data once per parallel
clock, and shifts it out at the higher serial clock rate.
SERDES
PCI EXPRESS
1.
2.
3.
4.
5.
6.
PCI EXPRESS
It follows point to point Bus topology as opposed to shared bus
topology used by PCI
Each device in the system has direct and exclusive access to the
switch. In other words, each device sits on its own dedicated bus,
which in PCIe lingo is called a link.
With a switched fabric, the switch makes all the resource-sharing
decisions.By centralizing the traffic-routing and resourcemanagement
functions in a single unit,
PCIe also enables another
important and long
overdue next-generation
function: quality of service
(QoS).
LINK:
a connection between two a PCIe device and a PCIe switch is
called a link.
Each link is composed of one or more lanes, and each lane is
capable of transmitting one byte at a time in both directions at
once. This full-duplex communication is possible because each
lane is itself composed of one pair of signals: send and receive.
In order to transmit PCIe packets, which
are composed of multiple bytes, a one-lane
link must break down each packet into a
series of bytes, and then transmit the bytes
in rapid succession. The device on the
receiving end must collect all of the bytes
and then reassemble them into a complete
packet.
PCI EXPRESS
TRANSACTION LAYER
This is the top layer that interacts with the software above.
Functions of Transaction Layer:
1. Mechanisms for differentiating the ordering and processing
requirements of Transaction Layer Packets (TLPs)
2. Credit-based flow control
3. TLP construction and processing
4. Association of transaction-level mechanisms with device
resources including Flow Control and Virtual Channel
management
CONT..
The Data Link Layer performs three vital services for the PCIe express link:
sequence
the transaction layer packets (TLPs) that are generated by the transaction layer,
ensure reliable delivery of TLPs between two endpoints via an acknowledgement protocol (ACK
andNAKsignaling) that explicitly requires replay of unacknowledged/bad TLPs,
initialize
PHYSICAL LAYER
The PCIe Physical Layer specification is divided into two sublayers, corresponding to electrical and logical specifications.
The logical sub layer is sometimes further divided into a MAC
sub layer and a PCS, although this division is not formally part
of the PCIe specification. The PIPE specification also identifies
thephysical media attachment(PMA) layer, which includes the
serializer/deserializer (SerDes)and other analog circuitry