Date post: | 03-Apr-2018 |
Category: |
Documents |
Upload: | shiva-prasad |
View: | 215 times |
Download: | 0 times |
of 37
7/28/2019 Chap 3Lesson22EmsysNew
1/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
1
DEVICES AND COMMUNICATION
BUSES FOR DEVICES NETWORK
LessonLesson--22:22: PARALLEL BUSDEVICE PROTOCOLSPCI BusPCI Bus
7/28/2019 Chap 3Lesson22EmsysNew
2/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
2
Parallel bus enables a host computer or
system to communicate simultaneously
32-bit or 64-bit with other devices or
systems, for example, to a network
interface card (NIC) or graphic card
PCI Parallel BusPCI Parallel Bus
7/28/2019 Chap 3Lesson22EmsysNew
3/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
3
Computer system PCIComputer system PCI
When the I/O devices in the distributed
embedded subsystems are networked allcan communicate through a commonparallel bus.
PCI connects at high speed to othersubsystems having a range of I/O devicesat very short distances (
7/28/2019 Chap 3Lesson22EmsysNew
4/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
4
PCI bus ApplicationsPCI bus Applicationsconnectsconnects
display monitor,printer,
character devices,
network subsystems,
video card,
modem card, hard disk controller,
7/28/2019 Chap 3Lesson22EmsysNew
5/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
5
PCI busPCI busconnectsconnects
thin client,
digital video capture card,
streaming displays,
10/100 Base T card, Card with 16 MB Flash ROM with a router
gateway for a LAN and
Card using DEC 21040 PCI Ethernet LANcontroller.
7/28/2019 Chap 3Lesson22EmsysNew
6/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
6
Computer system PCIComputer system PCI
When the I/O devices in the distributed
embedded subsystems are networked, allcan communicate through a commonparallel bus.
PCI connects at high speed to othersubsystems having a range of I/O devicesat very short distances (
7/28/2019 Chap 3Lesson22EmsysNew
7/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
7
PCI Bus FeaturePCI Bus Feature 32- bit data bus extendible to 64 bits.
PCI protocol specifies the ways ofinteraction between the differentcomponents of a computer.
A specification version 2.1synchronous/asynchronous throughput
is up to 132/ 528 MB/s [33M 4/ 66M
8 Byte/s], operates on 3.3V to 5Vsignals.
7/28/2019 Chap 3Lesson22EmsysNew
8/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
8
PCI bus featurePCI bus feature PCI driver can access the hardware
automatically as well as by the
programmer assigned addresses.
Automatically detects the interfacing
systems and assigns new addresses
Thus, simplified addition and deletion
(attachment and detachment) of thesystem peripherals.
7/28/2019 Chap 3Lesson22EmsysNew
9/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
9
FIFO in PCI device/cardFIFO in PCI device/card
Each device may use a FIFO controller
with a FIFO buffer for maximumthroughput.
7/28/2019 Chap 3Lesson22EmsysNew
10/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
10
Identification NumbersIdentification Numbers
A device identifies its address space by
three identification numbers, (i) I/Oport (ii) Memory locations and (iii)
Configuration registers of total 256Bwith a four 4-byte unique ID. Each PCI
device has address space allocation of
256 bytes to access it by the hostcomputer
7/28/2019 Chap 3Lesson22EmsysNew
11/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
11
PCI device identificationPCI device identification A sixteen16-bit register in a PCI device
identifies this number to let that device
auto- detect it.
Another sixteen16-bit register
identifies a device ID number. Thesetwo numbers let allow the device to
carry out its auto-detection by its hostcomputer.
7/28/2019 Chap 3Lesson22EmsysNew
12/37
7/28/2019 Chap 3Lesson22EmsysNew
13/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
13
PCI 32bit/33 MHz, and 64bit/66 MHz
PCI Extended (PCI/X) 64 bit/100 MHz ,
Compact PCI (cPCI) Bus
Two super speed versionsTwo super speed versions
PCI Super V2.3 264/528 MBps 3.3V (on64- bit bus), and 132/264 (on 32-bit bus)and
PCI-X Super V1.01a for 800MBps 64- bitbus 3.3Volt.
Peripheral Component Interconnect (PCI)Standards
7/28/2019 Chap 3Lesson22EmsysNew
14/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
14
PCI bridgePCI bridge
PCI bus interface switches a processorcommunication with the memory bus to PCI
bus. In most systems, the processor has a single
data bus that connects to a switch module
PCI bridge Some processors integrate the switch
module onto the same integrated circuit asthe processor to reduce the number of chipsrequired to build a system and thus thesystem cost.
7/28/2019 Chap 3Lesson22EmsysNew
15/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
15
PCI bridge/switchPCI bridge/switch
Communicates with the memorythrough a memory bus (a set ofaddress, control and data buses), adedicated set of wires that transfer data
between these two systems. A separate I/O bus connects the PCI
switch to the I/O devices.
7/28/2019 Chap 3Lesson22EmsysNew
16/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
16
Advantage of Separate memory and I/OAdvantage of Separate memory and I/O
busesbuses
I/O system generally designed for
maximum flexibility, to allow as manydifferent I/O devices as possible tointerface to the computer
Memory bus is designed to provide themaximum-possible bandwidth between
the processor and the memory system.
7/28/2019 Chap 3Lesson22EmsysNew
17/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
17
PCI Bridge and Buses
Processor
of system
A
Memory Bus
Address bus
DRAM ROM
IO device
Interface
PCI Bus
PCI bus BridgeData bus
Control bus
Graphic Interface IO Expansion
Interface
Expansion busSCSIcontroller
LAN
Interface
LAN
system B
Graphic
Controller
With LCD
monitor or
CRT
IO
device
IO device
7/28/2019 Chap 3Lesson22EmsysNew
18/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
18
32-bit 33 MHz throughput = 133 MBps,
full component level, Connector (94-pin
connector with 50 signals)
64-bit bus, 66 MHz option
PCIPCI
7/28/2019 Chap 3Lesson22EmsysNew
19/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
19
PCI 2.2PCI 2.2
Board specificationsBoard specifications
Board specifications, multiplexed
AD0-AD31 bus, dual address 64-bitsupport,
An un-terminated bus,
Signal relay reflected on signal to
attain the final value
7/28/2019 Chap 3Lesson22EmsysNew
20/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
20
133 MBps to as much as 1 GBps
Backward compatible with existing
PCI cards
Used in high bandwidth devices
(Fiber Channel, and processors thatare part of a cluster and Gigabit
Ethernet)
PCIPCI--X (PCI extended)X (PCI extended)
7/28/2019 Chap 3Lesson22EmsysNew
21/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
21
Maximum 264 MBps throughput, uses 8,
16, 32, or 64 bit transfers 6U cards contain additional pins for user
defined I/Os
Live insertion support (Hot-Swap),
Supports two independent buses on the
back plane (on different connectors)
PCIPCI--X (PCI extended) optionX (PCI extended) option
7/28/2019 Chap 3Lesson22EmsysNew
22/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education
22
Supports Ethernet, Infiniband, and Star
Fabric support (Switched fabric basedsystems) Compact PCI (cPCI)
PCIPCI--X (PCI extended) optionX (PCI extended) option
7/28/2019 Chap 3Lesson22EmsysNew
23/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 23
Each PCI device on BusEach PCI device on Bus Perform a specific function,
May contain a processor and software to
perform a specific function. Each device has the specific memory
address-range, specific interrupt-vectors
(pre-assigned or auto configured) and thedevice I/O port addresses.
A bus of appropriate specifications and
protocol interfaces these to the hostcomputer system or compute
7/28/2019 Chap 3Lesson22EmsysNew
24/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 24
Configuration address spaceConfiguration address space
Unique feature of PCI bus unique
feature is its configuration addressspace.
7/28/2019 Chap 3Lesson22EmsysNew
25/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 25
Accesses one device at a time
All the devices within host device or
system can share the I/O port andmemory addresses, but cannot sharethe configuration registers
Device cannot modify otherconfiguration registers but can access
other device resources or share thework or assist the other device
PCI controller FeaturesPCI controller Features
7/28/2019 Chap 3Lesson22EmsysNew
26/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 26
If there are reasons for doing it so, a
PCI driver can change the default bootup assignments on configuration
transactions.
PCI driver FeaturesPCI driver Features
7/28/2019 Chap 3Lesson22EmsysNew
27/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 27
A device can initialize at booting time
Avoids any address collision Device on boot up disables its interrupt
and closes its door to its address space
except to the configuration registers
space
PCI Device InitializationPCI Device Initialization
7/28/2019 Chap 3Lesson22EmsysNew
28/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 28
Performs the configuration transactions
and then, memory and address spaces
automatically map to the address space
in the device hosting system
PCI BIOS (Basic InputPCI BIOS (Basic Input--Output System)Output System)
7/28/2019 Chap 3Lesson22EmsysNew
29/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 29
PCI device Interrupt HandlingPCI device Interrupt Handling A uniquely assigned interrupt type (a
number) handles an interrupt.
For example, interrupt type 3 has the
interrupt vector address 0x0000C and
four bytes at the address specify theinterrupt service routine address.
Interrupt type can be a numberbetween 0x00 and 0xFF.
7/28/2019 Chap 3Lesson22EmsysNew
30/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 30
Configuration register number 60Configuration register number 60
Stores the one byte for the interrupt
type n (pci) The PCI device when interrupted
handles the interrupt of type n(pci)
7/28/2019 Chap 3Lesson22EmsysNew
31/37
2008 Chapter-3 L22: "Embedded Systems - " , Raj Kamal,Publs.: McGraw-Hill Education 31
64 bytes at the standard device independent64 bytes at the standard device independent
configuration registers in a PCI deviceconfiguration registers in a PCI device
EXP ROMBA
BA4 BA5 CBCISP SSVID SSDID
Min-GN
BA1 BA2 BA3BA0
OX30
OX20
OX10
OX00 VID DID CR SR RID CC CL LT HT BIST
OxFOx0 0xI
Reserved IRQ IRQLinepin
HT Max-GNT
7/28/2019 Chap 3Lesson22EmsysNew
32/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 32
Meaning of Terms in FigureMeaning of Terms in Figure
VID: Vendor ID.
DID: Device ID.
RID: Revision ID.
CR: Common Register. CC: Class Code.
SR: Status Register.
7/28/2019 Chap 3Lesson22EmsysNew
33/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 33
Meaning of Terms in FigureMeaning of Terms in Figure
CL: Cache Line.
LT: Latency Timer.
BIST: Base Input Tick.
HT: Header Type.BA: Base Address.
CBCISB: Card Base CIS Pointer.
7/28/2019 Chap 3Lesson22EmsysNew
34/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 34
Meaning of Terms in FigureMeaning of Terms in Figure
SS: Sub System.
ExpROM: Expansion ROM.
MIN_GNT: Minimum Guaranteed time
MAX_GNT: Maximum GuaranteedTime.
7/28/2019 Chap 3Lesson22EmsysNew
35/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 35
SummarySummary
7/28/2019 Chap 3Lesson22EmsysNew
36/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 36
We learnt PCI a parallel bus
PCI 32/33 MHz, and 64/66 MHz PCI/X buses 64/100 MHz transfers
Independent from the IBMarchitecture.
New versions have been introduced for
the PCI bus architecture
7/28/2019 Chap 3Lesson22EmsysNew
37/37
2008Chapter-3 L22: "Embedded Systems - " , Raj Kamal,
Publs.: McGraw-Hill Education 37
End of Lesson 22 of Chapter 3End of Lesson 22 of Chapter 3