PCI Bus Demystified.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

PCI Bus Demystified.Pdf PCI Bus Demystified by Doug Abbott A VOLUME IN THE DEMYSTIFYING TECHNOLOGY™ SERIES Eagle Rock, Virginia www.LLH-Publishing.com Copyright © 2000 by LLH Technology Publishing All rights reserved. No part of this book may be reproduced, in any form or means whatsoever, without written permission of the publisher. While every precaution has been taken in the prepara- tion of this book, the publisher and author assume no responsibil- ity for errors or omissions. Neither is any liability assumed for damages resulting from the use of information contained herein. Printed in the United States of America. ISBN 1-878707-78-7 (LLH eBook) LLH Technology Publishing and HighText Publications are trade- marks of Lewis Lewis & Helms LLC, 3578 Old Rail Road, Eagle Rock, VA, 24085 To Susan: My best friend, my soul mate. Thanks for sharing life’s journey with me. To Brian: Budding DJ, future pilot and all around neat kid. Thanks for keeping me young at heart. Contents Introduction ......................................................................... 1 Intended Audience .......................................................................2 The Rest of This Book .................................................................. 3 Chapter 1: Introducing the Peripheral Component Interconnect (PCI) Bus .......................................................... 5 So What is a Computer Bus? ........................................................ 6 Bus Taxonomy...............................................................................7 What’s Wrong with ISA and Attempts to Fix It ......................... 9 The VESA Local Bus.................................................................. 10 Introducing PCI .......................................................................... 11 Features ....................................................................................... 11 The PCI Special Interest Group ................................................. 12 PCI Signals ................................................................................. 13 Signal Groups ............................................................................. 13 Signal Types ................................................................................ 18 Sideband Signals ......................................................................... 19 Definitions .................................................................................. 20 Summary ..................................................................................... 21 Chapter 2: Arbitration ....................................................... 22 The Arbitration Process ............................................................. 22 An Example of Fairness .............................................................. 25 Bus Parking ................................................................................. 26 Latency........................................................................................ 27 Summary ..................................................................................... 31 PCI Bus Demystified Chapter 3: Bus Protocol ..................................................... 32 PCI Bus Commands .................................................................... 32 Basic Read/Write Transactions................................................... 34 Transaction Termination — Master ........................................... 45 Transaction Termination — Target ............................................ 45 Error Detection and Reporting ................................................... 51 Summary ..................................................................................... 54 Chapter 4: Optional and Advanced Features ..................... 56 Interrupt Handling ..................................................................... 56 The Interrupt Acknowledge Command ..................................... 59 “Special” Cycle ........................................................................... 60 64-bit Extensions ........................................................................ 62 Summary ..................................................................................... 66 Chapter 5: Electrical and Mechanical Issues ..................... 67 A “Green” Architecture ............................................................. 67 Signaling Environments — 3.3V and 5V .................................. 70 5 Volt Signaling Environment.................................................... 72 3.3 Volt Signaling Environment................................................. 77 Timing Specifications ................................................................. 81 66 MHz PCI ................................................................................ 85 Mechanical Details ..................................................................... 88 Summary ..................................................................................... 90 Chapter 6: Plug and Play Configuration ............................ 92 Background ................................................................................. 92 Configuration Address Space ..................................................... 93 Configuration Header — Type 0 ................................................ 95 Base Address Registers (BAR) ................................................. 103 vi Contents Expansion ROM .......................................................................107 Capabilities List ........................................................................ 110 Vital Product Data .................................................................... 111 Summary ...................................................................................115 Chapter 7: PCI BIOS ......................................................... 116 Operating Modes ...................................................................... 116 Is the BIOS There? ...................................................................117 BIOS Services ...........................................................................118 Generate Special Cycle ............................................................ 120 Summary ...................................................................................124 Chapter 8: PCI Bridging ................................................... 125 Bridge Types .............................................................................. 125 Configuration Address Types.................................................... 128 Configuration Header — Type 1 .............................................. 129 Bus Hierarchy and Bus Number Registers ................................ 130 Address Filtering — the Base and Limit Registers ...................132 Prefetching and Posting to Improve Performance ...................135 Interrupt Handling Across a Bridge ......................................... 136 Bridge Support for VGA — Palette “Snooping”...................... 140 Resource Locking...................................................................... 142 Summary ...................................................................................146 Chapter 9: CompactPCI .................................................... 148 Why CompactPCI? ...................................................................148 Mechanical Implementation .................................................... 150 Electrical Implementation ........................................................ 155 CompactPCI Bridging .............................................................. 162 Summary ...................................................................................165 vii PCI Bus Demystified Chapter 10: Hot Plug and Hot Swap ................................ 166 PCI Hot Plug ............................................................................166 Hot Plug Primitives .................................................................. 170 CompactPCI Hot Swap ............................................................174 Resources for Full Hot Swap..................................................... 180 Summary ...................................................................................185 Appendix A: Class Codes ................................................. 187 Appendix B: Connector Pin Assignments ........................ 191 Index ................................................................................. 195 viii Introduction Today’s computer systems, with their emphasis on high resolution graphics, full motion video, high bandwidth networking, and so on, go far beyond the capabilities of the architecture that ushered in the age of the personal computer in 1982. Modern PC systems demand high performance interconnects that also allow devices to be changed or upgraded with a minimum of effort by the end user. In response to this need, PCI (peripheral component interconnect) has emerged as the dominant mechanism for interconnecting the elements of modern, high performance computer systems. It is a well thought out standard with a number of forward looking features that should keep it relevant well into the next century. Originally conceived as a mechanism for interconnecting peripheral compo- nents on a motherboard, PCI has evolved into at least a half dozen different physical implementations directed at specific market seg- ments yet all using the same basic bus protocol. In the form known as Compact PCI, it is having a major impact
Recommended publications
  • Humidity & Temperature Sensor
    Humidity & Temperature Sensor AM2322 Product Manuals product Features Super Mini Size Easy Protable Ultra-Low Power State Ultra-low voltage work Excellent long-term stability StandardI2C And single bus output 一、 Product Overview AM2322 The digital temperature and humidity sensor is a kind of temperature and humidity composite sensor with the output of calibrated digitalsignal.The special temperature and humidity collection technology is adopted to ensure the high reliability and long-term stability of the product.The sensor includes a capacitive sensing element and a high-precision integrated temperature measurement element, which is connected to a high- performance microprocessor.The product has high quality, super fast response, strong anti-interference ability and high cost performance. AM2322 communication mode adopts single bus, standard I squared C communication mode.Standard single bus interface makes system integration easy and fast.The super small volume, extremely low power consumption, the signal transmission distance can reach up to 20 meters, making it the best choice for all kinds of Two kinds of communication mode is used directly output after applications and even the most demanding applications.The I temperature compensation, humidity, temperature and the CRC squared C communication mode adopts standard communication check and other digital information, users need to secondary timing, and the user can be directly attached to the I squared C calculation of digital output, also need not to compensate the communication bus, with no additional wiring and simple use. temperature humidity, accurate temperature and humidity information can be got.The two modes of communication are free to switch, users are free to choose, easy to use, and should be widely used.The product is 4 lead wire and convenient connection.
    [Show full text]
  • Fujitsu Plug-And-Play Controller (Ppc)
    cO MB86701 FUJITSU PLUG-AND-PLAY CONTROLLER (PPC) ADVANCE INFORMATION JULY 1994 KEY FEATURES • Provides Plug-and-Play compatibility for ISA add-in • Read the card's resource requirements data cards • Identify the card and configure its resources • Conforms to Intel/Microsoft Plug-and-Play specifica­ • Locate a driver for the card tion vl.Oa (May 5, 1994) lbis process is done automatically at every hard reset of • Interface to serial resource EEPROM with read and write the system. Plug-and-Play ISA cards will interoperate capability for storage of data structures required by Plug­ and-Play and additional user defined data. with standard ISA cards in a fully compatible manner. Information that identifies the card and describes the sys­ • Provides five chip select outputs: tem resources which are requested by the card, such as - Two I/O chip selects, /CSO and /CSl, f{AO-AlS} memory and IJO space, DMA channel, and interrupt level - Two memory chip selects, JC,S2 and /CS3, f{AO-A23} supported is maintained in a standardized read-only for­ - JC,S4 is the OR of CSO and CS3 and is used as described mat below In a system that uses only Plug-and-Play ISA cards, it • Supports two DMA channels and two interrupts from the will be possible to achieve full auto-configuration. It is logical device recognized that the current generation of standard ISA - Interrupts directed to any of 11 interrupt channels on the cards will coexist with Plug-and-Play ISA cards in the ISA bus same system. In such systems, the configuration solution - DMA directed to any of 7 DMA channels on the ISA needs to be augmented in the BIOS and/or operating sys­ bus tem to manage and arbitrate the allocation of ISA bus re­ • Provides four quasi-bidirectional general purpose I/O sources.
    [Show full text]
  • Nubus Physical Designs
    Macintosh Technical Notes ® Developer Technical Support #234: NuBus Physical Designs—Beware Revised by: Rich Collyer December 1989 Written by: Rich Collyer June 1989 This Technical Note discusses the possible problems you might run into while designing a NuBus™ card. It covers some of the specifications which, if not followed, will have problems with current Macintosh machines, and possibly future machines. Changes since June 1989: Added warnings about the no component area and full-size NuBus cards. If you are making a NuBus card for the Macintosh II family of computers, then you have to be very careful to follow the physical specifications which are listed in the NuBus specifications (IEEE P1196). There are two areas where some developers have run into problems. The first problem has to do with not positioning the external connector properly. The result is that some products have problems with the external hole on the back of the Macintosh IIcx. The second problem has to do with developers who run ribbon cables over the top of their boards to connect two boards. If a slot is not cut into the top of the board to allow the ribbon cable to sit below the top of the card, then the boards will have problems in our machines. External Connector The NuBus specification allows for an external connector plastics opening of only 74.55 mm x 11.90 mm. The Macintosh II and IIx allowed a significantly larger hole than the specification (80.00 mm x 17.00 mm) and some developers incorrectly assumed that Apple would continue to allow for this larger size.
    [Show full text]
  • Cifx PC Cards for Real-Time Ethernet and Fieldbus
    cifX PC cards for Real-Time Ethernet and Fieldbus All major industrial protocols All common PC card formats One hardware for all Real-Time Ethernet protocols Master and Slave Wide range of device drivers Same application interface for all networks PC cards in all formats for all protocols The cifX PC card family is the unified standard supporting all Real-Time Ethernet and Fieldbus systems for PC based automation. The protocol stack is executed autonomously on the PC card and process data exchange with the host is done via Dual-Port-Memory or DMA (Direct Memory Access). Thanks to the common Hilscher Platform Strategy all PC cards use the same driver and tools - independent of protocol and card format. A change of communication protocol is done by just loading a different firmware. A rotary switch delivers an easy and reliable slot assignment for the PCI- and PCI Express card types. In addition special types e.g. with integrated NVRAM, 2-channel cards or detached network interface are available. A complete software package is always included in the scope of delivery. This package consists of one FDT-based configuration tool (IEC standard) for all products and networks, loadable firmware, documentation and a driver tool-kit. Due to own network controller netX a 10-year guarantee of delivery is granted. Spectra GmbH & Co. KG Niederlassung Österreich Spectra (Schweiz) AG [email protected] [email protected] [email protected] cifX - Communication for PC based Automation NVRAM included PCI Same Function - Same API - Same Tools Especially for compact Box PCs Hilscher offers specific types with integrated NVRAM for secure data storage.
    [Show full text]
  • Dell EMC Openmanage CIM Reference Guide Version 9.1 Notes, Cautions, and Warnings
    Dell EMC OpenManage CIM Reference Guide Version 9.1 Notes, cautions, and warnings NOTE: A NOTE indicates important information that helps you make better use of your product. CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. WARNING: A WARNING indicates a potential for property damage, personal injury, or death. Copyright © 2017 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other trademarks may be trademarks of their respective owners. 2017 - 12 Rev. A00 Contents 1 Introduction....................................................................................................................................................6 Server Administrator..........................................................................................................................................................6 Documenting CIM Classes and Their Properties........................................................................................................... 6 Base Classes................................................................................................................................................................. 7 Parent Classes.............................................................................................................................................................. 7 Classes That Describe Relationships........................................................................................................................
    [Show full text]
  • Designing PCI Cards and Drivers for Power Macintosh Computers
    Designing PCI Cards and Drivers for Power Macintosh Computers Revised Edition Revised 3/26/99 Technical Publications © Apple Computer, Inc. 1999 Apple Computer, Inc. Adobe, Acrobat, and PostScript are Even though Apple has reviewed this © 1995, 1996 , 1999 Apple Computer, trademarks of Adobe Systems manual, APPLE MAKES NO Inc. All rights reserved. Incorporated or its subsidiaries and WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH No part of this publication may be may be registered in certain RESPECT TO THIS MANUAL, ITS reproduced, stored in a retrieval jurisdictions. QUALITY, ACCURACY, system, or transmitted, in any form America Online is a service mark of MERCHANTABILITY, OR FITNESS or by any means, mechanical, Quantum Computer Services, Inc. FOR A PARTICULAR PURPOSE. AS A electronic, photocopying, recording, Code Warrior is a trademark of RESULT, THIS MANUAL IS SOLD “AS or otherwise, without prior written Metrowerks. IS,” AND YOU, THE PURCHASER, ARE permission of Apple Computer, Inc., CompuServe is a registered ASSUMING THE ENTIRE RISK AS TO except to make a backup copy of any trademark of CompuServe, Inc. ITS QUALITY AND ACCURACY. documentation provided on Ethernet is a registered trademark of CD-ROM. IN NO EVENT WILL APPLE BE LIABLE Xerox Corporation. The Apple logo is a trademark of FOR DIRECT, INDIRECT, SPECIAL, FrameMaker is a registered Apple Computer, Inc. INCIDENTAL, OR CONSEQUENTIAL trademark of Frame Technology Use of the “keyboard” Apple logo DAMAGES RESULTING FROM ANY Corporation. (Option-Shift-K) for commercial DEFECT OR INACCURACY IN THIS purposes without the prior written Helvetica and Palatino are registered MANUAL, even if advised of the consent of Apple may constitute trademarks of Linotype-Hell AG possibility of such damages.
    [Show full text]
  • Tms320f28004x Microcontrollers Datasheet (Rev. F)
    TMS320F280049, TMS320F280049C, TMS320F280048, TMS320F280048C, TMS320F280045, TMS320F280049, TMS320F280049C,TMS320F280041, TMS320F280041C, TMS320F280048, TMS320F280048C,TMS320F280040, TMS320F280040C TMS320F280045, www.ti.com TMS320F280041, TMS320F280041C,SPRS945F –TMS320F280040, JANUARY 2017 – REVISED TMS320F280040C FEBRUARY 2021 SPRS945F – JANUARY 2017 – REVISED FEBRUARY 2021 TMS320F28004x Microcontrollers 1 Features – Embedded Real-time Analysis and Diagnostic (ERAD) • TMS320C28x 32-bit CPU • Communications peripherals – 100 MHz – One Power-Management Bus (PMBus) – IEEE 754 single-precision Floating-Point Unit interface (FPU) – One Inter-integrated Circuit (I2C) interface – Trigonometric Math Unit (TMU) (pin-bootable) • 3×-cycle to 4×-cycle improvement for – Two Controller Area Network (CAN) bus ports common trigonometric functions versus (pin-bootable) software libraries – Two Serial Peripheral Interface (SPI) ports • 13-cycle Park transform (pin-bootable) – Viterbi/Complex Math Unit (VCU-I) – Two Serial Communication Interfaces (SCIs) – Ten hardware breakpoints (with ERAD) (pin-bootable) • Programmable Control Law Accelerator (CLA) – One Local Interconnect Network (LIN) – 100 MHz – One Fast Serial Interface (FSI) with a – IEEE 754 single-precision floating-point transmitter and receiver instructions • Analog system – Executes code independently of main CPU – Three 3.45-MSPS, 12-bit Analog-to-Digital • On-chip memory Converters (ADCs) – 256KB (128KW) of flash (ECC-protected) • Up to 21 external channels across two independent banks
    [Show full text]
  • PPC7A10 at Our Website: Click HERE Powerx Product Manual PPC7A
    Full-service, independent repair center -~ ARTISAN® with experienced engineers and technicians on staff. TECHNOLOGY GROUP ~I We buy your excess, underutilized, and idle equipment along with credit for buybacks and trade-ins. Custom engineering Your definitive source so your equipment works exactly as you specify. for quality pre-owned • Critical and expedited services • Leasing / Rentals/ Demos equipment. • In stock/ Ready-to-ship • !TAR-certified secure asset solutions Expert team I Trust guarantee I 100% satisfaction Artisan Technology Group (217) 352-9330 | [email protected] | artisantg.com All trademarks, brand names, and brands appearing herein are the property o f their respective owners. Find the Abaco Systems / Radstone PPC7A10 at our website: Click HERE PowerX Product Manual PPC7A Appendix C - PPC7A This appendix contains hardware information for PPC7A boards. The information contained in this document must be used in conjunction with PowerX Quick Start, PowerX User Guides and/or the PowerX product Manual. Link Settings...................................................................................................................................... C-3 Default Link Settings............................................................................................................................... C-3 RTC Standby Supply Voltage Link (E1)................................................................................................. C-4 FLASH Write Enable Links (E3 and E9)...............................................................................................
    [Show full text]
  • PCI-X & PCI Core User's Guide
    PCI-X & PCI Core User's Guide Version 7.1.0 27-Feb-2007 © PLD Applications, 1996-2007 PLD Applications Web: http://www.plda.com Europarc Pichaury A2 Email: [email protected] 1330, rue Guillibert USA : 1 866 513 0362 (toll free) 13856 Aix-en-Provence Intl : + 33 442 393 600 CEDEX 3 - France Fax : + 33 442 394 902 Associate Member PCI-X & PCI Core User's Guide Features General ° 32-bit/64-bit PCI-X & PCI master/target interface ° Supports bus speed up to 133 MHz ° Multi-function core can implement up to 2 independent functions ° Full support for 64-bit addressing ° PCI-X Specification 2.0a mode 1 compliant ° PCI Specification 3.0 compliant ° Supports PCI power management ° Built-in support for in-site programming through JTAG interface ° Supports Message Signalled Interrupts Customization ° Easy customization with the PCI Wizard's user interface and on-line help. ° PCI Wizard has built-in support for VHDL and Verilog. ° All features can be parameterized, removing all unused logic ° Full plug-and-play support Configuration ° Supports all required and optional type 0 configuration registers ° Up to 6 BARs plus expansion ROM can be implemented ° Up to 32 user defined configuration registers Data transfer ° Supports up to 4KB burst transfers with zero wait-state insertion. ° Supports all memory and I/O commands ° Supports interrupt acknowledge cycles in target mode ° Can insert wait-states and generate all types of terminations ° Up to two split channels and 32 outstanding split transactions DMA ° Up to 4 independent DMA channels with rotating priority ° Flexible backend interface can directly control FIFO devices.
    [Show full text]
  • PCI20EX PCI Express (Pcie)
    PCI20EX PCI Express (PCIe) Bus ARCNET® Network Interface Modules INSTALLATION GUIDE INTRODUCTION The PCI20EX series of ARCNET network interface modules (NIMs) links PCI Express (PCIe) bus compatible computers with the ARCNET local area network (LAN). Since most PC motherboards have migrated from the legacy PCI and PCI-X Bus, a PCI Express style NIM is required. The PCI20EX series is compliant to the PCI Express Card Electromechanical Specification Revision 2.0 and both standard height and low-profile brackets are provided. The PCI Express interface allows for jumperless configuration and Plug and Play operation. The module operates with either an NDIS driver or a null stack driver in a Windows® environment. The PCI20EX incorporates the COM20022 ARCNET controller chip with enhanced features over the earlier generation ARCNET chips. New features include command chaining, sequential access to internal RAM, duplicate node ID detection and variable data rates up to 10 Mbps. Bus contention problems are minimized since the module’s interrupt and I/O base address are assigned through Plug and Play. The PCI20EX exploits the new features of the COM20022 which includes 10 Mbps communications utilizing the various EIA-485 transceiver options. Each PCI20EX module has two LEDs on the board for monitoring network operation and bus access to the module. It is equipped with an 8 position, general purpose DIP switch typically used to assign the ARCNET node address. Ultimately, the node address is configured via software so the DIP switch can also indicate user-defined functions such as data rate, cable interface, or master/slave status of the system.
    [Show full text]
  • A Not So Short Introduction to Pcie
    Practical introduction to PCI Express with FPGAs Michal HUSEJKO, John EVANS [email protected] IT-PES-ES v 1.0 Agenda • What is PCIe ? o System Level View o PCIe data transfer protocol • PCIe system architecture • PCIe with FPGAs o Hard IP with Altera/Xilinx FPGAs o Soft IP (PLDA) o External PCIe PHY (Gennum) v 1.0 System Level View • Interconnection • Top-down tree hierarchy • PCI/PCIe configuration space • Protocol v 1.0 Interconnection • Serial interconnection • Dual uni-directional • Lane, Link, Port • Scalable o Gen1 2.5/ Gen2 5.0/ Gen3 8.0 GT/s o Number of lanes in FPGAs: x1, x2, x4, x8 • Gen1/2 8b10b • Gen3 128b/130b v 1.0 Image taken from “Introduction to PCI Express” Tree hierarchy • Top-down tree hierarchy with single host • 3 types of devices: Root Complex, Endpoint, Switch • Point-to-point connection between devices without sideband signalling • 2 types of ports: downstream/upstream • Configuration space Image taken from “Introduction to PCI Express” v 1.0 PCIe Configuration space • Similar to PCI conf space – binary compatible for first 256 bytes • Defines device(system) capabilities • Clearly identifies device in the system o Device ID o Vendor ID o Function ID o All above • and defines memory space allocated to device. v 1.0 PCIe transfer protocol • Transaction categories • Protocol • Implementation of the protocol v 1.0 Transaction categories • Configuration – move downstream • Memory – address based routing • IO – address based routing • Message – ID based routing v 1.0 Transaction Types v 1.0 Table taken from “PCI
    [Show full text]
  • Datasheet for Onenand Power Ramp and Stabilization Times and for Onenand Boot Copy Times
    TMS320DM365 www.ti.com SPRS457E–MARCH 2009–REVISED JUNE 2011 TMS320DM365 Digital Media System-on-Chip (DMSoC) Check for Samples: TMS320DM365 1 TMS320DM365 Digital Media System-on-Chip (DMSoC) 1.1 Features 12 • Highlights – Support for 32-Bit and 16-Bit – High-Performance Digital Media (Thumb® Mode) Instruction Sets System-on-Chip (DMSoC) – DSP Instruction Extensions and Single Cycle – Up to 300-MHz ARM926EJ-S Clock Rate MAC – Two Video Image Co-processors – ARM® Jazelle® Technology (HDVICP, MJCP) Engines – Embedded ICE-RT Logic for Real-Time – Supports a Range of Encode, Decode, and Debug Video Quality Operations • ARM9 Memory Architecture – Video Processing Subsystem – 16K-Byte Instruction Cache • HW Face Detect Engine – 8K-Byte Data Cache • Resize Engine from 1/16x to 8x – 32K-Byte RAM • 16-Bit Parallel AFE (Analog Front-End) – 16K-Byte ROM Interface Up to 120 MHz – Little Endian • 4:2:2 (8-/16-bit) Interface • Two Video Image Co-processors • 8-/16-bit YCC and Up to 24-Bit RGB888 (HDVICP, MJCP) Engines Digital Output – Support a Range of Encode and Decode • 3 DACs for HD Analog Video Output Operations, up to D1 on 216-MHz device and • Hardware On-Screen Display (OSD) up to 720p on the 270- and 300-MHz parts – Capable of 720p 30fps H.264 video – H.264, MPEG4, MPEG2, MJPEG, JPEG, processing WMV9/VC1 Note: 216-MHz is only capable of D1 • Video Processing Subsystem processing – Front End Provides: – Peripherals include EMAC, USB 2.0 OTG, • HW Face Detect Engine DDR2/NAND, 5 SPIs, 2 UARTs, 2 • Hardware IPIPE for Real-Time Image MMC/SD/SDIO,
    [Show full text]