SlideShare a Scribd company logo
Peripheral Component Interconnect
              (PCI).
Download slide di
http://rumah-belajar.org
Dual Independent Bus (DIB)
   Backside Bus     simultan
   Frontside Bus
   PCI Local Bus
       Menggunakan bridge
        untuk tersambung ke
        FSB
Perbandingan Bus
Bus Type   Bus         Bus      MB/sec
           Width      Speed
   ISA      16 bits    8 MHz     16 MBps

   EISA     32 bits    8 MHz     32 MBps

  VL-bus    32 bits    25 MHz    100 MBps

  VL-bus    32 bits    33 MHz    132 MBps

   PCI      32 bits    33 MHz    132 MBps

   PCI      64 bits    33 MHz    264 MBps

   PCI      64 bits    66 MHz    512 MBps

   PCI      64 bits   133 MHz     1 GBps
North / South bridge
Contoh
13. peripheral component interconnect (pci)
PCI Card




                 A typical PCI card




PCI card – 47 pins
13. peripheral component interconnect (pci)
Pengantar : Operasi PCI Bus
Istilah
 Initiator
— Disebut juga Master
— Mengendalikan (owns) bus dan menginisiasi transfer data
— Setiap Initiator adalah juga Target
  Target
— Disebut Juga Slave
— Target dari transfer data (read or write)
  Agent
— Initiator atau Target pada PCI bus
Master-Slave
Pengantar : Operasi PCI Bus
PCI Bus Clock
   Semua aksi disinkronisasi oleh clock PCI
   Clock dapat berada di 0 MHz - 33 MHz dan semua perangkat PCI harus
    mampu mendukung pada kisaran tersebut
   Spesifikasi revisi 2.1 memiliki kecepatan s/d 66 MHz


Address phase
   Pada waktu bersamaan identifier initiator menetapkan target device dand
    tipe transaksi
   Initiator mengirimkan (assert) sinyal FRAME#
   Setiap target PCI akan mengunci (latch ) alamat dan mendecode
Pengantar : Operasi PCI Bus
Data Phase
   Jumlah byte data yang akan dikirimkan ditentukan oleh jumlah
    sinyal enable Command/Byte Enable yang dikirimkan oleh
    initiator
   initiator dan target harus siap untuk menyelesaikan proses data
    phase
   Digunakan sinyal IRDY# and TRDY#
Transaction Duration
   Dengan mengirimkan sinyal FRAME# pada saat start address
    phase and tetap sampai akhir data phase
Pengantar : Operasi PCI Bus
Transaction completion and return of bus to idle state
   Dengan cara deasserting sinyal FRAME# tetapi asserting IRDY#
   Ketika data transfer berakhit initiator mengembalikan the PCI bus
    pada status idle state cara deasserting IRDY#
13. peripheral component interconnect (pci)
13. peripheral component interconnect (pci)
PCI Signals
    - Clock and Reset
    Transaction Control
    1.   Initiator Signals
    2.   Target Signals
    3.   Configuration Signals
    Address and Data Signals
    Arbitration Signals
    Error Signals
PCI Lines
Clock and Reset
   CLK
       — PCI input clock
       — All signals sampled on rising edge
       — 33MHz is really 33.33333MHz (30ns clk. period)
       — The clock is allowed to vary from 0 to 33 MHz
            – The frequency can change ―on the fly‖
            – Because of this, no PLLs are allowed
   RST#
       — Asynchronous reset
       — PCI device must tri-state all I/Os during reset
Transaction Control
Target Signals
   TRDY# – I/O
       — “T-Ready”
       — When the target asserts this signal, it tells the
        initiator that it is ready to send or receive data
   STOP# – I/O
       — Used by target to indicate that it needs to
        terminate the
       transaction
Transaction Control
Target Signals
   DEVSEL# – I/O
       — Device select
       — Part of PCI’s distributed address decoding
            – Each target is responsible for decoding the address
             associated with each transaction
            – When a target recognizes its address, it asserts
             DEVSEL# to claim the corresponding transaction
Transaction Control
Initiator Signals
   FRAME# – I/O
       — Signals the start and end of a transaction
   IRDY# – I/O
       — “I-Ready”
       — Assertion by initiator indicates that it is ready to
        send receive data
Transaction Control
Configuration Signals
   Uses the same signals as the target, plus . . .
   IDSEL – I
       — “ID-Sel”
       — Individual device select for configuration – one
        unique IDSEL line per agent
       — Solves the “chicken-and-egg” problem
       – Allows the system host to configure agents before
        these agents know the PCI addresses to which they
        must respond
Address and Data Signals
   AD[31:0] – I/O
       — 32-bit address/data bus
       — PCI is little endian (lowest numeric index is LSB)
   C/BE#[3:0] – I/O
       — 4-bit command/byte enable bus
       — Defines the PCI command during address phase
       — Indicates byte enable during data phases
            – Each bit corresponds to a ―byte-lane‖ in AD[31:0] – for
             example,C/BE#[0] is the byte enable for AD[7:0]
C/BE[3:0]#   Command Types
   0000      Interrupt Acknowledge
   0001      Special Cycle
   0010      I/O Read
   0011      I/O Write
   0100      Reserved
   0101      Reserved
   0110      Memory Read
   0111      Memory Write
   1000      Reserved
   1001      Reserved
   1010      Configuration Read
   1011      Configuration Write
   1100      Memory Read Multiple
   1101      Dual Address Cycle
   1110      Memory Read Line
   1111      Memory Write and Invalidate
Address and Data Signals
   PAR – I/O
       — Parity bit
       — Used to verify correct transmittal of address/data
        and command/byte-enable
       — The XOR of AD[31:0], C/BE#[3:0], and PAR
        should return zero (even parity)
            – In other words, the number of 1’s across these 37
             signals should be even
Arbitration Signals
   For initiators only!
   REQ# – O
       — Asserted by initiator to request bus ownership
       — Point-to-point connection to arbiter – each initiator has its
        own REQ# line
   GNT# – I
       — Asserted by system arbiter to grant bus ownership to the
        initiator
       — Point-to-point connection from arbiter – each initiator has
        its own GNT# line
PCI Bus Arbitration

                 •     Arbiter
                      –     Round
                           Robin
                      –     Priority
                      –     Two Level
                        Priority
Error Signals
   PERR# – I/O
       — Indicates that a data parity error has occurred
       — An agent that can report parity errors can have its
        PERR# turned off during PCI configuration
   SERR# – I/O
       — Indicates a serious system error has occurred
            – Example: Address parity error
       — May invoke NMI (non-maskable interrupt, i.e., a
        restart) in some systems
Operasi Bus Dasar
Terms
 Doubleword

— 32 bits, most often known as a “DWORD”
 Quadword

— 64 bits, sometimes known as a “QWORD”
 Burst transaction

— Any transaction consisting of more than one data phase
 Idle state (no bus activity)

— Indicated by FRAME# and IRDY# deasserted
Transfer Modes
Example #1 – Basic Write
   A four-DWORD burst from an initiator to a
    target
Write Transfer
PCI Bus Cycles
Basic Write Transaction
Write Example – Things to Note
   The initiator has a phase profile of 3-1-1-1
       — First data can be transferred in three clock cycles
        (idle + address +data = “3”)
       — The 2 nd , 3 rd , and last data are transferred one
        cycle each (“1-1-1”)
Write Example – Things to Note
   The target profile is 5-1-1-1
       — Medium decode – DEVSEL# asserted on 2 nd clock after
        FRAME#
       — One clock period of latency (or wait state) in the beginning
        of the transfer
       – DEVSEL# asserted on clock 3, but TRDY# not asserted
        unti clock 4
       — Ideal target write is 3-1-1-1
   Total of 4 data phases, but required 8 clocks
       — Only 50% efficiency
Target Address Decoding
   PCI uses distributed address decoding
       — A transaction begins over the PCI bus
       — Each potential target on the bus decodes the
        transaction’s PCI address to determine whether it
        belongs to that target’s assigned address space
            – One target may be assigned a larger address space
             than another, and would thus respond to more addresses
       — The target that owns the PCI address then claims
        the transaction by asserting DEVSEL#
Distributed Address Decoding
Target Decode
• Address decoders come in different speeds
• If a transaction goes unclaimed (nobody asserts
DEVSEL#), “Master Abort” occurs
Example #2 – Target Read
• A four-DWORD burst read from a target by an initiator
13. peripheral component interconnect (pci)
More Terms
   Turnaround cycle
       — “Dead” bus cycle to prevent bus contention
   Wait state
       — A bus cycle where it is possible to transfer data, but no
        data
       transfer occurs
       — Target deasserts TRDY# to signal it is not ready
       — Initiator deasserts IRDY# to signal it is not ready
   Target termination
       — Target asserts STOP# to indicate that it needs to
        terminate the current transaction
Target Read – Things to Note
    Wait states may be inserted dynamically by
    the initiator or target by deasserting IRDY# or
    TRDY#
    Either agent may signal the end of a
    transaction
       — The target signals termination by asserting
        STOP#
       — The initiator signals completion by deasserting
        FRAME#
Zero and One Wait State
   A one-wait-state agent inserts a wait state at
    the beginning of each data phase
       — This is done if an agent – built in older, slower
        silicon – needs to pipeline critical paths internally
       — Reduces bandwidth by 50%
Bus Bandwidths
PCI-X 2.0 Write - Example
PCIe (PCI Express)
•   Diperkenalkan tahun 2002, oleh Microsoft,
    Dell, IBM, dan Intel.

•   Bekerja pada 2.5GHz
    dengan hanya
    menggunakan 0.8V

•   Backward compatible
    dengan PCI
13. peripheral component interconnect (pci)
Perbedaan PCIe dengan PCI
•   throughput meningkat 1056MBytes/sec dari
    528MBytes/sec
•   Komunikasi data : Serial (PCIe), Paralel (PCI)
•   PCIe : Layered Architecture (Header)
•   PCIe mempermudah proses timing yang rumit
    dari spesifikasi PCI 64/66, sehingga membuat
    PCIe lebih mudah didesain
•   PCIe Mendukung hingga 4 slot pada 66MHz
    sedangkan PCI 66 hanya mampu 3 slot : 2 slots
    100MHz dan 1 slot 133MHz
Perbedaan PCIe dengan PCI (2)

•   PCIe meningkatkan efisiensi bus dan
    mengatasi kekurangan pada protokol PCI
Kekurangan PCI
    –   Shared bus bandwidth
    –   tidak mampu beroperasi pada aplikasi isochronous
    –   manajemen power yang terbatas
    –   relatif mahal untuk membuat parallel bus
    –   ukuran dan jumlah Connector
    –   masalah routing pada Board
13. peripheral component interconnect (pci)
13. peripheral component interconnect (pci)
Physical Layer

Fungsi Logika Physical Layer :
• Encoding/decoding dan scrambling
• Reset, initialization, multi-lane de-skew
• Speed, link width, lane mapping


Fungsi Elektrik Physical Layer
• Transmitter/Receiver
• Packet Exchange
• Power Management
• Polarity Reversal
Data Link Layer
Fungsi Data Link Layer
• Link management
• Error detection and reporting
• Packet storage for retry/replay


Data Link Layer Packets
•   Link Data Integrity
•   Sequencing
•   CRC
•   ACK/NACK
•   Flow Control
Flow Control
PCI
• Arbitration, continuous retry, disconnect
• menghabiskan bandwidth dan power
• Compound PCI-to-PCI Bridges akan
  menimbulkan masalah

PCI Express
•   Credit-based flow control
•   Ditangani seluruhnya oleh data link layer
•   Tidak ada pengulangan (retries)
•   Bandwidth yang besar
Transaction Layer
Fungsi Transaction Layer

• Data transactions
• Flow control management

Paket Transaction Layer
•   Request/Completion Model
•   Memory Read/Write
•   I/O Read/Write
•   Configuration Read/Write
•   Messages
Formasi Paket
13. peripheral component interconnect (pci)
PCIe 2.0
   PCI-SIG announced the availability of the PCI
    Express Base 2.0 specification on 15 January
    2007. PCIe 2.0 doubles the bus standard's
    bandwidth from 2.5 Gbit/s to 5 Gbit/s, meaning
    a x32 connector can transfer data at up to
    16 GB/s in each direction.
   PCIe 2.0 is completely backwards compatible
    with PCIe v1.x. Graphic cards and motherboards
    designed for v2.0 will be able to work with v1.1
    and v1.0, and vice versa
PCIe 3.0
   In August 2007 PCI-SIG announced that PCI
    Express 3.0 will carry a bit rate of 8
    gigatransfers per second. The spec will be
    backwards-compatible with existing PCIe
    implementations and a final spec is due in 2009.
    New features for PCIe 3.0 specification include a
    number of optimizations for enhanced signaling
    and data integrity, including transmitter and
    receiver equalization, PLL improvements, clock
    data recovery, and channel enhancements for
    currently supported topologies

More Related Content

PDF
Session 8,9 PCI Express
PDF
Pcie basic
PPTX
Slideshare - PCIe
PPTX
PCIe Gen 3.0 Presentation @ 4th FPGA Camp
PPT
Pcie drivers basics
PPTX
Peripheral Component Interconnect (PCI)
ODP
Pc ie tl_layer (3)
PPTX
PCI express
Session 8,9 PCI Express
Pcie basic
Slideshare - PCIe
PCIe Gen 3.0 Presentation @ 4th FPGA Camp
Pcie drivers basics
Peripheral Component Interconnect (PCI)
Pc ie tl_layer (3)
PCI express

What's hot (20)

PDF
Verification Strategy for PCI-Express
PPTX
Difference between PCI PCI-X PCIe
PPTX
PPTX
1.2 motherboard form factor
PDF
ARM architcture
PDF
Soc architecture and design
PDF
Arm cm3 architecture_and_programmer_model
PDF
Pci express technology 3.0
PPTX
PDF
MIPI DevCon 2021: MIPI I3C Signal Integrity Challenges on DDR5-based Server P...
PPT
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PPTX
Introduction to AVR Microcontroller
PDF
System On Chip
PPTX
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
PPTX
USB 2.0 and 3.0
PPT
ARM - Advance RISC Machine
PPTX
Analog to Digital converter in ARM
PPTX
DDR SDRAMs
PPTX
Controller area network (can bus)
Verification Strategy for PCI-Express
Difference between PCI PCI-X PCIe
1.2 motherboard form factor
ARM architcture
Soc architecture and design
Arm cm3 architecture_and_programmer_model
Pci express technology 3.0
MIPI DevCon 2021: MIPI I3C Signal Integrity Challenges on DDR5-based Server P...
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
Introduction to AVR Microcontroller
System On Chip
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
USB 2.0 and 3.0
ARM - Advance RISC Machine
Analog to Digital converter in ARM
DDR SDRAMs
Controller area network (can bus)
Ad

Viewers also liked (19)

PPTX
PCI & ISA bus
PDF
Pc architecture michael karbo
PPTX
PCI Slot
PPTX
PPT
P C I L O C A L B U S
PPT
Gcse Af L P Point Poster Ww2
PPT
Chapter22
PPT
Cpu organisation
PPTX
Bus Interfacing with Intel Microprocessors Based Systems
PPSX
Motherboard and its components
PPTX
Von Neumann vs Harvard Architecture
PPTX
Introduction to PCI DSS
PPTX
PCI DSS Simplified: What You Need to Know
PPTX
Applications of paralleL processing
PDF
Input-Output Modules
PDF
Intro to Buses (Computer Architecture)
PPTX
Usb universal serial bus
DOC
8051 Microcontroller Notes
PPTX
Types of buses of computer
PCI & ISA bus
Pc architecture michael karbo
PCI Slot
P C I L O C A L B U S
Gcse Af L P Point Poster Ww2
Chapter22
Cpu organisation
Bus Interfacing with Intel Microprocessors Based Systems
Motherboard and its components
Von Neumann vs Harvard Architecture
Introduction to PCI DSS
PCI DSS Simplified: What You Need to Know
Applications of paralleL processing
Input-Output Modules
Intro to Buses (Computer Architecture)
Usb universal serial bus
8051 Microcontroller Notes
Types of buses of computer
Ad

Similar to 13. peripheral component interconnect (pci) (20)

PPT
PCI
PPTX
Ec305.13 buses mgl
PPTX
Ec305.13 buses mgl
ODP
Io Architecture
PDF
Bus Standards and Networking
PPT
Ch_3.pptInnovation technology Innovation technology pptppt
PPTX
Bus System (part 2)
PPT
03 top level view of computer function and interconnection.ppt.enc
PPT
03 top level view of computer function and interconnection
PPT
03_Top Level View of Computer Function and Interconnection.ppt
PPT
03 buses
PDF
Implementation of PCI Target Controller Interfacing with Asynchronous SRAM
PPT
top level view of computer function and interconnection
ODP
axi protocol
PDF
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
PPT
INTRODUCTION_TO_PCIE_Express
PPT
Counit2 2
PDF
PCI.pdf
PPTX
Unit 4 Part2-Input-output Subsystem.pptx
PPTX
BUS PROTOCOL AND AMBA _TRANSACTIONS.pptx
PCI
Ec305.13 buses mgl
Ec305.13 buses mgl
Io Architecture
Bus Standards and Networking
Ch_3.pptInnovation technology Innovation technology pptppt
Bus System (part 2)
03 top level view of computer function and interconnection.ppt.enc
03 top level view of computer function and interconnection
03_Top Level View of Computer Function and Interconnection.ppt
03 buses
Implementation of PCI Target Controller Interfacing with Asynchronous SRAM
top level view of computer function and interconnection
axi protocol
PB3MAT_03Bahan-Bmjvjvchgchgckhguses P5-6.pdf
INTRODUCTION_TO_PCIE_Express
Counit2 2
PCI.pdf
Unit 4 Part2-Input-output Subsystem.pptx
BUS PROTOCOL AND AMBA _TRANSACTIONS.pptx

More from Rumah Belajar (20)

PPSX
Image segmentation 2
PPSX
Image segmentation 3 morphology
PPSX
point processing
PDF
03 image transform
PDF
02 2d systems matrix
PDF
01 introduction image processing analysis
PDF
04 image enhancement edge detection
PDF
06 object measurement
PDF
Bab 11 bantalan dan sistem pelumasan
PDF
Bab 10 spring arif hary
PDF
Bab 06 kriteria kegagalan lelah
PDF
Bab 09 kekuatan sambungan las
PDF
Bab 08 screws, fasteners and connection syarif
PDF
Bab 07 poros dan aksesoriny
PDF
Bab 05 kriteria kegagalan 1
PDF
Bab 04 tegangan regangan defleksi
PDF
Bab 03 load analysis
PDF
Bab 02 material dan proses
PDF
Bab 11 bantalan dan sistem pelumasan
PDF
Mikrokontroler pertemuan 8
Image segmentation 2
Image segmentation 3 morphology
point processing
03 image transform
02 2d systems matrix
01 introduction image processing analysis
04 image enhancement edge detection
06 object measurement
Bab 11 bantalan dan sistem pelumasan
Bab 10 spring arif hary
Bab 06 kriteria kegagalan lelah
Bab 09 kekuatan sambungan las
Bab 08 screws, fasteners and connection syarif
Bab 07 poros dan aksesoriny
Bab 05 kriteria kegagalan 1
Bab 04 tegangan regangan defleksi
Bab 03 load analysis
Bab 02 material dan proses
Bab 11 bantalan dan sistem pelumasan
Mikrokontroler pertemuan 8

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
master seminar digital applications in india
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Microbial disease of the cardiovascular and lymphatic systems
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
VCE English Exam - Section C Student Revision Booklet
Renaissance Architecture: A Journey from Faith to Humanism
Week 4 Term 3 Study Techniques revisited.pptx
O7-L3 Supply Chain Operations - ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharma ospi slides which help in ospi learning
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
master seminar digital applications in india
PPH.pptx obstetrics and gynecology in nursing
01-Introduction-to-Information-Management.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Anesthesia in Laparoscopic Surgery in India
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES

13. peripheral component interconnect (pci)

  • 3. Dual Independent Bus (DIB)  Backside Bus simultan  Frontside Bus  PCI Local Bus  Menggunakan bridge untuk tersambung ke FSB
  • 4. Perbandingan Bus Bus Type Bus Bus MB/sec Width Speed ISA 16 bits 8 MHz 16 MBps EISA 32 bits 8 MHz 32 MBps VL-bus 32 bits 25 MHz 100 MBps VL-bus 32 bits 33 MHz 132 MBps PCI 32 bits 33 MHz 132 MBps PCI 64 bits 33 MHz 264 MBps PCI 64 bits 66 MHz 512 MBps PCI 64 bits 133 MHz 1 GBps
  • 5. North / South bridge
  • 8. PCI Card A typical PCI card PCI card – 47 pins
  • 10. Pengantar : Operasi PCI Bus Istilah  Initiator — Disebut juga Master — Mengendalikan (owns) bus dan menginisiasi transfer data — Setiap Initiator adalah juga Target  Target — Disebut Juga Slave — Target dari transfer data (read or write)  Agent — Initiator atau Target pada PCI bus
  • 12. Pengantar : Operasi PCI Bus PCI Bus Clock  Semua aksi disinkronisasi oleh clock PCI  Clock dapat berada di 0 MHz - 33 MHz dan semua perangkat PCI harus mampu mendukung pada kisaran tersebut  Spesifikasi revisi 2.1 memiliki kecepatan s/d 66 MHz Address phase  Pada waktu bersamaan identifier initiator menetapkan target device dand tipe transaksi  Initiator mengirimkan (assert) sinyal FRAME#  Setiap target PCI akan mengunci (latch ) alamat dan mendecode
  • 13. Pengantar : Operasi PCI Bus Data Phase  Jumlah byte data yang akan dikirimkan ditentukan oleh jumlah sinyal enable Command/Byte Enable yang dikirimkan oleh initiator  initiator dan target harus siap untuk menyelesaikan proses data phase  Digunakan sinyal IRDY# and TRDY# Transaction Duration  Dengan mengirimkan sinyal FRAME# pada saat start address phase and tetap sampai akhir data phase
  • 14. Pengantar : Operasi PCI Bus Transaction completion and return of bus to idle state  Dengan cara deasserting sinyal FRAME# tetapi asserting IRDY#  Ketika data transfer berakhit initiator mengembalikan the PCI bus pada status idle state cara deasserting IRDY#
  • 17. PCI Signals  - Clock and Reset  Transaction Control 1. Initiator Signals 2. Target Signals 3. Configuration Signals  Address and Data Signals  Arbitration Signals  Error Signals
  • 19. Clock and Reset  CLK  — PCI input clock  — All signals sampled on rising edge  — 33MHz is really 33.33333MHz (30ns clk. period)  — The clock is allowed to vary from 0 to 33 MHz  – The frequency can change ―on the fly‖  – Because of this, no PLLs are allowed  RST#  — Asynchronous reset  — PCI device must tri-state all I/Os during reset
  • 20. Transaction Control Target Signals  TRDY# – I/O  — “T-Ready”  — When the target asserts this signal, it tells the initiator that it is ready to send or receive data  STOP# – I/O  — Used by target to indicate that it needs to terminate the  transaction
  • 21. Transaction Control Target Signals  DEVSEL# – I/O  — Device select  — Part of PCI’s distributed address decoding  – Each target is responsible for decoding the address associated with each transaction  – When a target recognizes its address, it asserts DEVSEL# to claim the corresponding transaction
  • 22. Transaction Control Initiator Signals  FRAME# – I/O  — Signals the start and end of a transaction  IRDY# – I/O  — “I-Ready”  — Assertion by initiator indicates that it is ready to send receive data
  • 23. Transaction Control Configuration Signals  Uses the same signals as the target, plus . . .  IDSEL – I  — “ID-Sel”  — Individual device select for configuration – one unique IDSEL line per agent  — Solves the “chicken-and-egg” problem  – Allows the system host to configure agents before these agents know the PCI addresses to which they must respond
  • 24. Address and Data Signals  AD[31:0] – I/O  — 32-bit address/data bus  — PCI is little endian (lowest numeric index is LSB)  C/BE#[3:0] – I/O  — 4-bit command/byte enable bus  — Defines the PCI command during address phase  — Indicates byte enable during data phases  – Each bit corresponds to a ―byte-lane‖ in AD[31:0] – for example,C/BE#[0] is the byte enable for AD[7:0]
  • 25. C/BE[3:0]# Command Types 0000 Interrupt Acknowledge 0001 Special Cycle 0010 I/O Read 0011 I/O Write 0100 Reserved 0101 Reserved 0110 Memory Read 0111 Memory Write 1000 Reserved 1001 Reserved 1010 Configuration Read 1011 Configuration Write 1100 Memory Read Multiple 1101 Dual Address Cycle 1110 Memory Read Line 1111 Memory Write and Invalidate
  • 26. Address and Data Signals  PAR – I/O  — Parity bit  — Used to verify correct transmittal of address/data and command/byte-enable  — The XOR of AD[31:0], C/BE#[3:0], and PAR should return zero (even parity)  – In other words, the number of 1’s across these 37 signals should be even
  • 27. Arbitration Signals  For initiators only!  REQ# – O  — Asserted by initiator to request bus ownership  — Point-to-point connection to arbiter – each initiator has its own REQ# line  GNT# – I  — Asserted by system arbiter to grant bus ownership to the initiator  — Point-to-point connection from arbiter – each initiator has its own GNT# line
  • 28. PCI Bus Arbitration • Arbiter – Round Robin – Priority – Two Level Priority
  • 29. Error Signals  PERR# – I/O  — Indicates that a data parity error has occurred  — An agent that can report parity errors can have its PERR# turned off during PCI configuration  SERR# – I/O  — Indicates a serious system error has occurred  – Example: Address parity error  — May invoke NMI (non-maskable interrupt, i.e., a restart) in some systems
  • 30. Operasi Bus Dasar Terms  Doubleword — 32 bits, most often known as a “DWORD”  Quadword — 64 bits, sometimes known as a “QWORD”  Burst transaction — Any transaction consisting of more than one data phase  Idle state (no bus activity) — Indicated by FRAME# and IRDY# deasserted
  • 32. Example #1 – Basic Write  A four-DWORD burst from an initiator to a target
  • 36. Write Example – Things to Note  The initiator has a phase profile of 3-1-1-1  — First data can be transferred in three clock cycles (idle + address +data = “3”)  — The 2 nd , 3 rd , and last data are transferred one cycle each (“1-1-1”)
  • 37. Write Example – Things to Note  The target profile is 5-1-1-1  — Medium decode – DEVSEL# asserted on 2 nd clock after FRAME#  — One clock period of latency (or wait state) in the beginning of the transfer  – DEVSEL# asserted on clock 3, but TRDY# not asserted unti clock 4  — Ideal target write is 3-1-1-1  Total of 4 data phases, but required 8 clocks  — Only 50% efficiency
  • 38. Target Address Decoding  PCI uses distributed address decoding  — A transaction begins over the PCI bus  — Each potential target on the bus decodes the transaction’s PCI address to determine whether it belongs to that target’s assigned address space  – One target may be assigned a larger address space than another, and would thus respond to more addresses  — The target that owns the PCI address then claims the transaction by asserting DEVSEL#
  • 40. Target Decode • Address decoders come in different speeds • If a transaction goes unclaimed (nobody asserts DEVSEL#), “Master Abort” occurs
  • 41. Example #2 – Target Read • A four-DWORD burst read from a target by an initiator
  • 43. More Terms  Turnaround cycle  — “Dead” bus cycle to prevent bus contention  Wait state  — A bus cycle where it is possible to transfer data, but no data  transfer occurs  — Target deasserts TRDY# to signal it is not ready  — Initiator deasserts IRDY# to signal it is not ready  Target termination  — Target asserts STOP# to indicate that it needs to terminate the current transaction
  • 44. Target Read – Things to Note  Wait states may be inserted dynamically by the initiator or target by deasserting IRDY# or TRDY#  Either agent may signal the end of a transaction  — The target signals termination by asserting STOP#  — The initiator signals completion by deasserting FRAME#
  • 45. Zero and One Wait State  A one-wait-state agent inserts a wait state at the beginning of each data phase  — This is done if an agent – built in older, slower silicon – needs to pipeline critical paths internally  — Reduces bandwidth by 50%
  • 47. PCI-X 2.0 Write - Example
  • 48. PCIe (PCI Express) • Diperkenalkan tahun 2002, oleh Microsoft, Dell, IBM, dan Intel. • Bekerja pada 2.5GHz dengan hanya menggunakan 0.8V • Backward compatible dengan PCI
  • 50. Perbedaan PCIe dengan PCI • throughput meningkat 1056MBytes/sec dari 528MBytes/sec • Komunikasi data : Serial (PCIe), Paralel (PCI) • PCIe : Layered Architecture (Header) • PCIe mempermudah proses timing yang rumit dari spesifikasi PCI 64/66, sehingga membuat PCIe lebih mudah didesain • PCIe Mendukung hingga 4 slot pada 66MHz sedangkan PCI 66 hanya mampu 3 slot : 2 slots 100MHz dan 1 slot 133MHz
  • 51. Perbedaan PCIe dengan PCI (2) • PCIe meningkatkan efisiensi bus dan mengatasi kekurangan pada protokol PCI Kekurangan PCI – Shared bus bandwidth – tidak mampu beroperasi pada aplikasi isochronous – manajemen power yang terbatas – relatif mahal untuk membuat parallel bus – ukuran dan jumlah Connector – masalah routing pada Board
  • 54. Physical Layer Fungsi Logika Physical Layer : • Encoding/decoding dan scrambling • Reset, initialization, multi-lane de-skew • Speed, link width, lane mapping Fungsi Elektrik Physical Layer • Transmitter/Receiver • Packet Exchange • Power Management • Polarity Reversal
  • 55. Data Link Layer Fungsi Data Link Layer • Link management • Error detection and reporting • Packet storage for retry/replay Data Link Layer Packets • Link Data Integrity • Sequencing • CRC • ACK/NACK • Flow Control
  • 56. Flow Control PCI • Arbitration, continuous retry, disconnect • menghabiskan bandwidth dan power • Compound PCI-to-PCI Bridges akan menimbulkan masalah PCI Express • Credit-based flow control • Ditangani seluruhnya oleh data link layer • Tidak ada pengulangan (retries) • Bandwidth yang besar
  • 57. Transaction Layer Fungsi Transaction Layer • Data transactions • Flow control management Paket Transaction Layer • Request/Completion Model • Memory Read/Write • I/O Read/Write • Configuration Read/Write • Messages
  • 60. PCIe 2.0  PCI-SIG announced the availability of the PCI Express Base 2.0 specification on 15 January 2007. PCIe 2.0 doubles the bus standard's bandwidth from 2.5 Gbit/s to 5 Gbit/s, meaning a x32 connector can transfer data at up to 16 GB/s in each direction.  PCIe 2.0 is completely backwards compatible with PCIe v1.x. Graphic cards and motherboards designed for v2.0 will be able to work with v1.1 and v1.0, and vice versa
  • 61. PCIe 3.0  In August 2007 PCI-SIG announced that PCI Express 3.0 will carry a bit rate of 8 gigatransfers per second. The spec will be backwards-compatible with existing PCIe implementations and a final spec is due in 2009. New features for PCIe 3.0 specification include a number of optimizations for enhanced signaling and data integrity, including transmitter and receiver equalization, PLL improvements, clock data recovery, and channel enhancements for currently supported topologies