SlideShare a Scribd company logo
Creating Your Own PCI Express
    System with FPGA Devices
    Learning Zone @
    Embedded World




© 2010 Altera Corporation - Public
PCI Express Overview
      PCI Express (Peripheral                                                                            CPU            CPU

      Component Interconnect                                                                      PCI
      Express) is a computer                                                      Graphics
                                                                                                Express     North-bridge
                                                                                                                (high
                                                                                                                                      Memory

      expansion standard                                                                                      BW, low
                                                                                                              latency)
      introduced by Intel in 2004                                                              Serial ATA
                                                                                    HDD
        − Officially abbreviated as PCIe                                                          PCI                       PCI
                                                                                                Express
            (PCI-E is also commonly used)                                       Mbyte down
                                                                                 devices                    South-bridge
                                                                                                             (I/O bridge)
      PCIe replaces PCI, PCI-X,                                                                                             USB 2.0

      and AGP                                                                     Gigabit
                                                                                 Ethernet*
                                                                                                                  LPC                 External
      PCIe complements SERDES-                                                    Add ins
                                                                                                                                      modules

                                                                                                                LPC
      based bus interface to the
      CPU


© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
2
PCIe Functional Elements
    Root complex                                                                           CPU              CPU
       − Connects host CPU/memory
         complex to PCIe hierarchy
       − One or more downstream ports
         (= rootports)                                                                             Root                  Memory
                                                                                                  complex
       − Rootport discovers, initializes, and
         enumerates PCIe topology
                                                                                                                         Downstream port
    Switch                                                                                                               PCIe link
                                                                                                                         Upstream port
       − Assembly of logical PCIe-to-PCIe
         bridges
       − One upstream port directed towards                                                               Switch
         root complex
       − One or more downstream ports

    Endpoint                                                                    PCIe
                                                                                                 PCIe          Legacy         Switch
       − Legacy and native endpoints e.g.                                     to PCI-X
                                                                                               endpoint       endpoint
                                                                               bridge
            terminal point to PCI, USB,
            InfiniBand, Fibre Channel, Ethernet…
                                                                                       PCI-X expansion slot

© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
3
PCIe Technology Timeline
                                              Raw bit rate     Link BW         BW/lane/way
                                  PCIe 1.x        2.5 GT/s      2 Gbps          ~250 MBps                         Future
                                  PCIe 2.0        5.0 GT/s      4 Gbps          ~500 MBps                         FPGA
                                  PCIe 3.0        8.0 GT/s      8 Gbps           ~1 GBps                         Releases
Total Bandwidth / Gbps




                         100
                          90                                                                              • Gen3: 8 GT/s signaling
                          80                                                                              • Lower latencies, improved PM
                                                                                                          • Enhanced software model
                          70
                          60
                          50                                                   PCIe Gen2
                          40                                                   @ 5 GT/s
                          30                            PCIe Gen1
                                                        @ 2.5 GT/s
                         20
                         10    PCI/PCI-X
                          0
                               1999        2001        2003          2005          2007            2009      2011        2013
Note:
Link BW = 0.8 x (raw bit rate) in Gen1/Gen2 due to 8B/10B encoding
Dotted line is for projected numbers, Total bandwidth = Link Bandwithx8 Lanes
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
4
PCIe Support in Altera Devices
                                                 Hard IP Gen1/2                                          Soft IP Gen1
             Device
                                                                PCI Express                                      PCI Express
                                        Supported                                              Supported
                                                                configuration                                    configuration

    Cyclone IV GX
                                                                    x1, x2, x4                                          x1, x4
    (PCIe Gen1 only)                   1 per device

    Arria II GX
                                                                    x1, x4, x8                                     x1, x4, x8
    (PCIe Gen1 only)                   1 per device


    Stratix IV GX                                                   x1, x4, x8                                     x1, x4, x8
                                     2 to 4 per device


    HardCopy IV GX                                                  x1, x4, x8                                     x1, x4, x8
                                     1 to 2 per device

    Stratix IV GT                                                   x1, x4, x8                                     x1, x4, x8
                                     2 to 4 per device

          Save up to 40K LEs and no License
                  Fees with Hard IP
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
5
PCI Express Hard IP Block
       Performs transaction, data link, PHYMAC layer and functionality
       Supports
         −      PCI Express Gen 1 and Gen 2
         −      x1, x2, x4 & x8 lane configurations
         −      Root port and endpoint applications
       Connects directly to embedded transceivers using internal PIPE interface
         −      Shared by two adjacent transceiver blocks
       Enabled through the PCI Express Compiler Wizard
    FPGA
                    PCI Express Hard IP Block

                                                                                                            Embedded
                                                                                                         Transceiver Block
                                                                                         PIPE            Transceiver Block n
                          Transaction         Data Link               PHYMAC
                                                                                                           Transceiver Block 2
                             Layer             Layer                   Layer
                                                                                                             Transceiver Block 1      To / from
                                                                                                                Transceiver Block 0   Slot or cable



© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
PCI Express Hard IP Diagram
                                                                                                           Configurable maximum
                                                                                                           payload size
Transceiver Block          PCI Express Hard IP Block                                        PLD Fabric      −   128, 256, 512, 1024*, or 2048*
                                                                                                                bytes
                                       Clock & Reset Selection
                                                                                                           1 or 2* Virtual Channels (VC)
  PMA     PCS                                                                                              16-Kbyte receive buffer per
                                                                                                           VC
                                                          TL




                                                                           FPGA Interface
                                   PCI Express         Interface Adapter                                   2-Kbyte transmit retry buffer
                    PIPE




                                                                                            Application
Transceiver Block                 Protocol Stack                                              Layer        128-bit or 64-bit application
                                                                                                           datapath width
                                                                  Local                                    Interrupt support (legacy, MSI
                                                                 Mgmt IF                                   & MSI-X)
  PMA     PCS                                                     (LMI)
                                 Retry VC RX                                                               Advanced error reporting
                                 Buffer Buffer                                                             (AER) support
                                                                                                           Power management support
                                                                                                           Local management interface
                                                                                                           (LMI) to access configuration
                                                                                                           registers
                                                                                                           Status & debug interface



                                                                                                                      * Stratix IV GX/GT only
  © 2010 Altera Corporation - Public
  ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
  and Altera marks in and outside the U.S.
PCI Express Solutions




© 2010 Altera Corporation - Public
Industrial PC or Controller

                 USB
                                                  Processor                            DSP
             Graphics                            (Intel Atom)                        (Optional)

            Hard Disk
                                                     PCIe                                RapidIO
                  DVI

                                                                                                           Isolation
                                                                                                           and RJ-45
                                                                                              Industrial
               Motor Control                                                                   Ethernet
               Power Stage                                                                                 Isolation
                                               PWM                                                         and RJ-45




                        Sensor                        Camera                          ADC/DAC              OPTO I/O


© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
CNC EtherCAT Drives Demo




                                     CNC application runs on 3S software and positions motors
                                     via an EtherCAT Industrial Ethernet network connected to
                                          an LCD for data display and I/O control options




© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
PCI Express Testing




© 2010 Altera Corporation - Public
PCIe Hard IP Testing
                                                                                 Altera PCIe Gen2 development card
     Interoperability testing
       − Compatibility/functionality
           with chipsets
                Core generator with
                verifying payloads (built in
                DMA engine)
       − Test for PCIe compliance using
           PCI-SIG tests
     Performance testing
       − Testing throughput of PCIe link
                                                                                               PCIe Gen2 motherboard
       − Stress test using the chain DMA
           architecture                                                                                  PCle Gen2 platforms

     Test configurations                                                                Motherboard            Chipset         Processor
       − Modes
                                                                           AMD         Asus M3A78-T          790GX/SB750       AMD790GX
                   PCI Express Gen1 x1, x4, x8
                   PCI Express Gen2 x1, x4, x8                             Intel        Asus P5Q-EN            Intel-645        LGA775

                                                                           Intel            DX58S0            Tylersburg        Core I7

© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
12
Preliminary Results of PCI Express Hard IP
Bandwidth Testing – Tylersburg Chipset
                                                                                                         Simultaneous read/
     HIP configuration                                  DMA write                   DMA read
                                                                                                                write

     HIP:Gen1:x8:128 bits                             1,691 MBps                  1,695 MBps             1,683/1,449 MBps

     HIP:Gen1:x8:64 bits                              1,774 MBps                  1,522 MBps             1,524/1,631 MBps

     HIP:Gen2:x4:64 bits                              1,772 MBps                  1,528 MBps             1,528/1,634 MBps

     HIP:Gen2:x4:128 bits                             1,670 MBps                  1,613 MBps             1,607/1,402 MBps

     HIP:Gen2:x8:256 bits                             3,400 MBps                  3,300 MBps             3,173/2,155 MBps

       Theoretical maximum bandwidth                                                                      Demo Here
         − Gen2 x8: 4,000 MBps

       Stratix IV GX hard IP is close to theoretical maximum now
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
13
PCI Express Development
    Kits




© 2010 Altera Corporation - Public
PCI Express Development Kits
Stratix IV GX FPGA                                 Arria II GX FPGA                                       Cyclone IV GX Transceiver
Development Kit                                    Development Kit                                        Starter Kit
Applications                                       Applications                                           Applications
 −Develop and test PCI                                −Develop and test PCI                                −Develop and test PCI
  Express Gen2 (to x8 lane)                            Express Gen1 (to x4 lane)                            Express Gen1 (to x1 lane)
 −Develop and test memory                             −Develop and test memory                             −Develop and test memory
  subsystems                                           subsystems                                           subsystems
 −System Development                                  −System Development                                  −FPGA prototyping & power
 −Supported other protocols                           −Supported other protocols
                                                                                                            measurement
  via (HSMC) Daughter Cards                            via (HSMC) Daughter Cards                           −Testing transceiver signal
                                                                                                            quality to 2.5Gbps
DK-DEV-4SGX230N/C2                    $4,495       DK-DEV-2AGX125N                        $1,495          DK-START-4CGX15N     $395.00




                                        Now                                                  Now                           Coming
                                      shipping                                             shipping                       March 2010

 © 2010 Altera Corporation - Public
 ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
 and Altera marks in and outside the U.S.
Altera PCI Express Solutions Summary
      Industry-leading solutions
        − Stratix IV GX FPGA is industry’s only shipping FPGA solution with
             hard IP support for PCIe Gen2
        − Arria II GX FPGA is the industry’s first low-cost 40-nm FPGA with hard IP
             support for PCIe Gen1 x1, x4, x8
        − Cyclone IV GX is the industry’s lowest-cost FPGA with hard IP support for
             PCIe Gen1 x1, x4

      Low-risk, hardware-verified solutions
        − PCI-SIG compliance workshops
        − Interoperability with multiple ASSP vendors
        − 5 generations of transceiver-based FPGAs with PCI Express support
        − Development kits/demo boards



© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
16
PCI Express Quickstart Guide
    with SOPC Builder
    PCI Express Endpoint using SOPC
    Builder Lab




© 2010 Altera Corporation - Public
Example PCIe-SOPC Builder System




                                           Memory         DMADMA                                         DMA


© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
PCIe Endpoint Design Example




© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
Backup




© 2010 Altera Corporation - Public
Auto Speed Negotiation
     Initially link trains to L0 (normal operation) in 2.5G data rate
     Speeds advertised in training sequence (TS) ordered sets
       − Supported speeds by the other component noted

     Speed change occurs when the link is in electrical idle

          2.5 Gbps                   Detect

          2.5 Gbps               Polling.Active

                                                       2.5 Gbps
          2.5 Gbps               Polling.Config                 Recovery.RcvrLock                                2.5 Gbps
                                                       5.0 Gbps
                                                                                                                 5.0 Gbps
                                                        2.5 Gbps
          2.5 Gbps                   Config             5.0 Gbps Recovery.RcvrCfg                        Recovery.Speed

                                                        2.5 Gbps
         2.5 Gbps                     L0                                   Recovery.Idle
                                                        5.0 Gbps
         5.0 Gbps

 Dedicated PCIe (PIPE) Clock Switch Circuitry in Stratix IV GX/GT and Hardcopy IV GX
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
21
MSC Hpe IRP Platform




© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
PCI-SIG Industry Testing – PCI-SIG
                                                                                                                 PCI-SIG
                             FPGA/PHY                                     Config.                   PCIe IP
                                                                                                               qualification

  Cyclone IV GX (Gen 1)                                                    x1, x4                   Hard IP         Q110

  Arria II GX (Gen1)                                                    x1, x4, x8                  Hard IP         Q209

  Stratix IV GX (Gen1 and Gen2)                                         x1, x4, x8                  Hard IP         1Q09

  Arria GX (Gen1)                                                           x1,x4                    Soft IP        2Q07

  Stratix II GX (Gen1)                                                  x1, x4, x8                   Soft IP        2Q06

  Cyclone II/TI x1 (Gen1)                                                     x1                     Soft IP        1Q06

  Cyclone II/Philips x1 V (Gen1)                                              x1                     Soft IP        4Q05

  Stratix GX (Gen1)
   PCI-SIG qualification across all target lane configurations IP
                                              x1, x4         Soft                                                   1Q05
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
23
PCI Express TX Eye Mask Test
       Data




       Summary
         − The Stratix IV GX device TX eye passes the PCI Express Gen 2 mask
                tests

© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
24
Development Kits




© 2010 Altera Corporation - Public
Stratix IV GX and HardCopy IV GX                                                                         Shipping
                                                                                                         Shipping
Development Kit                                                                                            now
                                                                                                           now


    PCI Express short form factor
    Included daughtercards
       − HSMC loop-back
       − HSMC debug

    Included software
       − Quartus II Development Kit Edition
           12-month license
       − Example designs
    Documentation
       −   User guide
       −   Reference manual
       −   Schematics
       −   Layout design files
© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
Arria II GX Development Kit                                                                              Shipping
                                                                                                         Shipping
                                                                                                           now
                                                                                                           now
     PCI Express short form factor
     Included daughtercards
       − HSMC loop-back
       − HSMC debug
     Included software
       − Quartus II Development Kit Edition
                  12-month license
       − Example designs
     Documentation
       −   User guide
       −   Reference manual
       −   Schematics
       −   Layout design files




© 2010 Altera Corporation - Public
ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off.
and Altera marks in and outside the U.S.
27

More Related Content

PDF
Session 8,9 PCI Express
PPTX
Slideshare - PCIe
PDF
Pcie basic
PDF
Pci express technology 3.0
PPTX
PCI express
PPTX
PDF
Verification Strategy for PCI-Express
PPT
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
Session 8,9 PCI Express
Slideshare - PCIe
Pcie basic
Pci express technology 3.0
PCI express
Verification Strategy for PCI-Express
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)

What's hot (20)

PPTX
PCIe Gen 3.0 Presentation @ 4th FPGA Camp
PDF
Pci express modi
PPTX
Evaluating UCIe based multi-die SoC to meet timing and power
PPT
Pcie drivers basics
ODP
PCIe DL_layer_3.0.1 (1)
PPTX
Difference between PCI PCI-X PCIe
ODP
Pc ie tl_layer (3)
PDF
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
PDF
VLSI-Physical Design- Tool Terminalogy
PPTX
SATA Protocol
PDF
Message Signaled Interrupts
PPTX
RISC-V Introduction
ODP
axi protocol
PPTX
8b/10b Encoder Decoder design and Verification for PCI Express protocol usin...
PDF
SPI Protocol
PPTX
Peripheral Component Interconnect (PCI)
PDF
01 nand flash_reliability_notes
PPTX
03_03_Implementing_PCIe_ATS_in_ARM-based_SoCs_Final
PPTX
Serial Peripheral Interface
PPTX
PCIe Gen 3.0 Presentation @ 4th FPGA Camp
Pci express modi
Evaluating UCIe based multi-die SoC to meet timing and power
Pcie drivers basics
PCIe DL_layer_3.0.1 (1)
Difference between PCI PCI-X PCIe
Pc ie tl_layer (3)
44CON 2014 - Stupid PCIe Tricks, Joe Fitzpatrick
VLSI-Physical Design- Tool Terminalogy
SATA Protocol
Message Signaled Interrupts
RISC-V Introduction
axi protocol
8b/10b Encoder Decoder design and Verification for PCI Express protocol usin...
SPI Protocol
Peripheral Component Interconnect (PCI)
01 nand flash_reliability_notes
03_03_Implementing_PCIe_ATS_in_ARM-based_SoCs_Final
Serial Peripheral Interface
Ad

Viewers also liked (12)

PDF
Fcamp may2010-tech2-fpga high speed io trends-alteraTrends & Challenges in De...
PPTX
Traditional vs. SoC FPGA Design Flow A Video Pipeline Case Study
PDF
Identifying PCIe 3.0 Dynamic Equalization Problems
PDF
X86 hardware for packet processing
PPT
89HT0832P 16-lane 8 Gbps PCIe 3.0 Retimer by IDT
PDF
PDF
Design of all digital phase locked loop (d pll) with fast acquisition time
PDF
PCI Express* based Storage: Data Center NVM Express* Platform Topologies
PPT
Chap1 expan slots
PDF
Moving to PCI Express based SSD with NVM Express
PPTX
Adaptive linear equalizer
PDF
Signal Integrity - A Crash Course [R Lott]
Fcamp may2010-tech2-fpga high speed io trends-alteraTrends & Challenges in De...
Traditional vs. SoC FPGA Design Flow A Video Pipeline Case Study
Identifying PCIe 3.0 Dynamic Equalization Problems
X86 hardware for packet processing
89HT0832P 16-lane 8 Gbps PCIe 3.0 Retimer by IDT
Design of all digital phase locked loop (d pll) with fast acquisition time
PCI Express* based Storage: Data Center NVM Express* Platform Topologies
Chap1 expan slots
Moving to PCI Express based SSD with NVM Express
Adaptive linear equalizer
Signal Integrity - A Crash Course [R Lott]
Ad

Similar to Creating Your Own PCI Express System Using FPGAs: Embedded World 2010 (20)

PDF
Khan and morrison_dq207
PPT
Modeling System Behaviors: A Better Paradigm on Prototyping
PDF
Rhino labs Prese4th ntation At FPGA Camp, Santa Clara, CA
PDF
GPUDirect RDMA and Green Multi-GPU Architectures
PDF
Pc based instrumentation and control
PDF
Vigor Ex
PDF
Sun sparc enterprise t5140 and t5240 servers technical presentation
PDF
XS Japan 2008 Networking English
PDF
ACPI and FreeBSD (Part 1)
PPTX
Design and Reuse Panel
PPTX
8-way-server
PDF
Sears Point Racetrack
PDF
Mpc5121 econfs
PDF
PDF
QsNetIII, An HPC Interconnect For Peta Scale Systems
PDF
Sun sparc enterprise t5440 server technical presentation
PPTX
Intel_Low Power Intelligent Solutions with Intel Atom Processor
PDF
GA 5000- High Computing Gambling PC for mulit-player
PDF
Sun sparc enterprise t5120 and t5220 servers technical presentation
Khan and morrison_dq207
Modeling System Behaviors: A Better Paradigm on Prototyping
Rhino labs Prese4th ntation At FPGA Camp, Santa Clara, CA
GPUDirect RDMA and Green Multi-GPU Architectures
Pc based instrumentation and control
Vigor Ex
Sun sparc enterprise t5140 and t5240 servers technical presentation
XS Japan 2008 Networking English
ACPI and FreeBSD (Part 1)
Design and Reuse Panel
8-way-server
Sears Point Racetrack
Mpc5121 econfs
QsNetIII, An HPC Interconnect For Peta Scale Systems
Sun sparc enterprise t5440 server technical presentation
Intel_Low Power Intelligent Solutions with Intel Atom Processor
GA 5000- High Computing Gambling PC for mulit-player
Sun sparc enterprise t5120 and t5220 servers technical presentation

More from Altera Corporation (11)

PPTX
Altera’s Role In Accelerating the Internet of Things
PPTX
Overview of Nios II Embedded Processor
PPT
Upgrade Your Broadcast System to PCIe Gen2
PPT
Stratix V FPGA Intro Presentation
PDF
Nios II Embedded Processor: Embedded World 2010
PDF
Industrial Safety: Embedded World 2010
PDF
IXXAT--Industrial Ethernet Challenges/Solutions: Embedded World 2010
PDF
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
PDF
Benefits of Using FPGAs for Embedded Processing: Embedded World 2010
PDF
AMC & VPX Form Factor Boards With High Speed SERDES: Embedded World 2010
PPT
Altera Cyclone IV FPGA Customer Presentation
Altera’s Role In Accelerating the Internet of Things
Overview of Nios II Embedded Processor
Upgrade Your Broadcast System to PCIe Gen2
Stratix V FPGA Intro Presentation
Nios II Embedded Processor: Embedded World 2010
Industrial Safety: Embedded World 2010
IXXAT--Industrial Ethernet Challenges/Solutions: Embedded World 2010
Adv. FPGA Motor Control--EBV & Univ. of Koln: Embedded World 2010
Benefits of Using FPGAs for Embedded Processing: Embedded World 2010
AMC & VPX Form Factor Boards With High Speed SERDES: Embedded World 2010
Altera Cyclone IV FPGA Customer Presentation

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Unlocking AI with Model Context Protocol (MCP)
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
A Presentation on Artificial Intelligence
Unlocking AI with Model Context Protocol (MCP)
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
NewMind AI Weekly Chronicles - August'25 Week I
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation_ Review paper, used for researhc scholars
Spectral efficient network and resource selection model in 5G networks

Creating Your Own PCI Express System Using FPGAs: Embedded World 2010

  • 1. Creating Your Own PCI Express System with FPGA Devices Learning Zone @ Embedded World © 2010 Altera Corporation - Public
  • 2. PCI Express Overview PCI Express (Peripheral CPU CPU Component Interconnect PCI Express) is a computer Graphics Express North-bridge (high Memory expansion standard BW, low latency) introduced by Intel in 2004 Serial ATA HDD − Officially abbreviated as PCIe PCI PCI Express (PCI-E is also commonly used) Mbyte down devices South-bridge (I/O bridge) PCIe replaces PCI, PCI-X, USB 2.0 and AGP Gigabit Ethernet* LPC External PCIe complements SERDES- Add ins modules LPC based bus interface to the CPU © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 2
  • 3. PCIe Functional Elements Root complex CPU CPU − Connects host CPU/memory complex to PCIe hierarchy − One or more downstream ports (= rootports) Root Memory complex − Rootport discovers, initializes, and enumerates PCIe topology Downstream port Switch PCIe link Upstream port − Assembly of logical PCIe-to-PCIe bridges − One upstream port directed towards Switch root complex − One or more downstream ports Endpoint PCIe PCIe Legacy Switch − Legacy and native endpoints e.g. to PCI-X endpoint endpoint bridge terminal point to PCI, USB, InfiniBand, Fibre Channel, Ethernet… PCI-X expansion slot © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 3
  • 4. PCIe Technology Timeline Raw bit rate Link BW BW/lane/way PCIe 1.x 2.5 GT/s 2 Gbps ~250 MBps Future PCIe 2.0 5.0 GT/s 4 Gbps ~500 MBps FPGA PCIe 3.0 8.0 GT/s 8 Gbps ~1 GBps Releases Total Bandwidth / Gbps 100 90 • Gen3: 8 GT/s signaling 80 • Lower latencies, improved PM • Enhanced software model 70 60 50 PCIe Gen2 40 @ 5 GT/s 30 PCIe Gen1 @ 2.5 GT/s 20 10 PCI/PCI-X 0 1999 2001 2003 2005 2007 2009 2011 2013 Note: Link BW = 0.8 x (raw bit rate) in Gen1/Gen2 due to 8B/10B encoding Dotted line is for projected numbers, Total bandwidth = Link Bandwithx8 Lanes © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 4
  • 5. PCIe Support in Altera Devices Hard IP Gen1/2 Soft IP Gen1 Device PCI Express PCI Express Supported Supported configuration configuration Cyclone IV GX x1, x2, x4 x1, x4 (PCIe Gen1 only) 1 per device Arria II GX x1, x4, x8 x1, x4, x8 (PCIe Gen1 only) 1 per device Stratix IV GX x1, x4, x8 x1, x4, x8 2 to 4 per device HardCopy IV GX x1, x4, x8 x1, x4, x8 1 to 2 per device Stratix IV GT x1, x4, x8 x1, x4, x8 2 to 4 per device Save up to 40K LEs and no License Fees with Hard IP © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 5
  • 6. PCI Express Hard IP Block Performs transaction, data link, PHYMAC layer and functionality Supports − PCI Express Gen 1 and Gen 2 − x1, x2, x4 & x8 lane configurations − Root port and endpoint applications Connects directly to embedded transceivers using internal PIPE interface − Shared by two adjacent transceiver blocks Enabled through the PCI Express Compiler Wizard FPGA PCI Express Hard IP Block Embedded Transceiver Block PIPE Transceiver Block n Transaction Data Link PHYMAC Transceiver Block 2 Layer Layer Layer Transceiver Block 1 To / from Transceiver Block 0 Slot or cable © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 7. PCI Express Hard IP Diagram Configurable maximum payload size Transceiver Block PCI Express Hard IP Block PLD Fabric − 128, 256, 512, 1024*, or 2048* bytes Clock & Reset Selection 1 or 2* Virtual Channels (VC) PMA PCS 16-Kbyte receive buffer per VC TL FPGA Interface PCI Express Interface Adapter 2-Kbyte transmit retry buffer PIPE Application Transceiver Block Protocol Stack Layer 128-bit or 64-bit application datapath width Local Interrupt support (legacy, MSI Mgmt IF & MSI-X) PMA PCS (LMI) Retry VC RX Advanced error reporting Buffer Buffer (AER) support Power management support Local management interface (LMI) to access configuration registers Status & debug interface * Stratix IV GX/GT only © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 8. PCI Express Solutions © 2010 Altera Corporation - Public
  • 9. Industrial PC or Controller USB Processor DSP Graphics (Intel Atom) (Optional) Hard Disk PCIe RapidIO DVI Isolation and RJ-45 Industrial Motor Control Ethernet Power Stage Isolation PWM and RJ-45 Sensor Camera ADC/DAC OPTO I/O © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 10. CNC EtherCAT Drives Demo CNC application runs on 3S software and positions motors via an EtherCAT Industrial Ethernet network connected to an LCD for data display and I/O control options © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 11. PCI Express Testing © 2010 Altera Corporation - Public
  • 12. PCIe Hard IP Testing Altera PCIe Gen2 development card Interoperability testing − Compatibility/functionality with chipsets Core generator with verifying payloads (built in DMA engine) − Test for PCIe compliance using PCI-SIG tests Performance testing − Testing throughput of PCIe link PCIe Gen2 motherboard − Stress test using the chain DMA architecture PCle Gen2 platforms Test configurations Motherboard Chipset Processor − Modes AMD Asus M3A78-T 790GX/SB750 AMD790GX PCI Express Gen1 x1, x4, x8 PCI Express Gen2 x1, x4, x8 Intel Asus P5Q-EN Intel-645 LGA775 Intel DX58S0 Tylersburg Core I7 © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 12
  • 13. Preliminary Results of PCI Express Hard IP Bandwidth Testing – Tylersburg Chipset Simultaneous read/ HIP configuration DMA write DMA read write HIP:Gen1:x8:128 bits 1,691 MBps 1,695 MBps 1,683/1,449 MBps HIP:Gen1:x8:64 bits 1,774 MBps 1,522 MBps 1,524/1,631 MBps HIP:Gen2:x4:64 bits 1,772 MBps 1,528 MBps 1,528/1,634 MBps HIP:Gen2:x4:128 bits 1,670 MBps 1,613 MBps 1,607/1,402 MBps HIP:Gen2:x8:256 bits 3,400 MBps 3,300 MBps 3,173/2,155 MBps Theoretical maximum bandwidth Demo Here − Gen2 x8: 4,000 MBps Stratix IV GX hard IP is close to theoretical maximum now © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 13
  • 14. PCI Express Development Kits © 2010 Altera Corporation - Public
  • 15. PCI Express Development Kits Stratix IV GX FPGA Arria II GX FPGA Cyclone IV GX Transceiver Development Kit Development Kit Starter Kit Applications Applications Applications −Develop and test PCI −Develop and test PCI −Develop and test PCI Express Gen2 (to x8 lane) Express Gen1 (to x4 lane) Express Gen1 (to x1 lane) −Develop and test memory −Develop and test memory −Develop and test memory subsystems subsystems subsystems −System Development −System Development −FPGA prototyping & power −Supported other protocols −Supported other protocols measurement via (HSMC) Daughter Cards via (HSMC) Daughter Cards −Testing transceiver signal quality to 2.5Gbps DK-DEV-4SGX230N/C2 $4,495 DK-DEV-2AGX125N $1,495 DK-START-4CGX15N $395.00 Now Now Coming shipping shipping March 2010 © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 16. Altera PCI Express Solutions Summary Industry-leading solutions − Stratix IV GX FPGA is industry’s only shipping FPGA solution with hard IP support for PCIe Gen2 − Arria II GX FPGA is the industry’s first low-cost 40-nm FPGA with hard IP support for PCIe Gen1 x1, x4, x8 − Cyclone IV GX is the industry’s lowest-cost FPGA with hard IP support for PCIe Gen1 x1, x4 Low-risk, hardware-verified solutions − PCI-SIG compliance workshops − Interoperability with multiple ASSP vendors − 5 generations of transceiver-based FPGAs with PCI Express support − Development kits/demo boards © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 16
  • 17. PCI Express Quickstart Guide with SOPC Builder PCI Express Endpoint using SOPC Builder Lab © 2010 Altera Corporation - Public
  • 18. Example PCIe-SOPC Builder System Memory DMADMA DMA © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 19. PCIe Endpoint Design Example © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 20. Backup © 2010 Altera Corporation - Public
  • 21. Auto Speed Negotiation Initially link trains to L0 (normal operation) in 2.5G data rate Speeds advertised in training sequence (TS) ordered sets − Supported speeds by the other component noted Speed change occurs when the link is in electrical idle 2.5 Gbps Detect 2.5 Gbps Polling.Active 2.5 Gbps 2.5 Gbps Polling.Config Recovery.RcvrLock 2.5 Gbps 5.0 Gbps 5.0 Gbps 2.5 Gbps 2.5 Gbps Config 5.0 Gbps Recovery.RcvrCfg Recovery.Speed 2.5 Gbps 2.5 Gbps L0 Recovery.Idle 5.0 Gbps 5.0 Gbps Dedicated PCIe (PIPE) Clock Switch Circuitry in Stratix IV GX/GT and Hardcopy IV GX © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 21
  • 22. MSC Hpe IRP Platform © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 23. PCI-SIG Industry Testing – PCI-SIG PCI-SIG FPGA/PHY Config. PCIe IP qualification Cyclone IV GX (Gen 1) x1, x4 Hard IP Q110 Arria II GX (Gen1) x1, x4, x8 Hard IP Q209 Stratix IV GX (Gen1 and Gen2) x1, x4, x8 Hard IP 1Q09 Arria GX (Gen1) x1,x4 Soft IP 2Q07 Stratix II GX (Gen1) x1, x4, x8 Soft IP 2Q06 Cyclone II/TI x1 (Gen1) x1 Soft IP 1Q06 Cyclone II/Philips x1 V (Gen1) x1 Soft IP 4Q05 Stratix GX (Gen1) PCI-SIG qualification across all target lane configurations IP x1, x4 Soft 1Q05 © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 23
  • 24. PCI Express TX Eye Mask Test Data Summary − The Stratix IV GX device TX eye passes the PCI Express Gen 2 mask tests © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 24
  • 25. Development Kits © 2010 Altera Corporation - Public
  • 26. Stratix IV GX and HardCopy IV GX Shipping Shipping Development Kit now now PCI Express short form factor Included daughtercards − HSMC loop-back − HSMC debug Included software − Quartus II Development Kit Edition 12-month license − Example designs Documentation − User guide − Reference manual − Schematics − Layout design files © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S.
  • 27. Arria II GX Development Kit Shipping Shipping now now PCI Express short form factor Included daughtercards − HSMC loop-back − HSMC debug Included software − Quartus II Development Kit Edition 12-month license − Example designs Documentation − User guide − Reference manual − Schematics − Layout design files © 2010 Altera Corporation - Public ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS & STRATIX are Reg. U.S. Pat. & Tm. Off. and Altera marks in and outside the U.S. 27