IP Core Integration Using OCP: A PCI Express Example - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

IP Core Integration Using OCP: A PCI Express Example

Description:

Title: PCI Express Core Integration with the OCP Bus Author: Tony Sousek, Nick Sgoupis Description: Version 1 -- Feb. 20, 2005 Version 2 -- Feb. 23, 2006 – PowerPoint PPT presentation

Number of Views:216
Avg rating:3.0/5.0
Slides: 18
Provided by: TonySous4
Category:

less

Transcript and Presenter's Notes

Title: IP Core Integration Using OCP: A PCI Express Example


1
IP Core Integration Using OCPA PCI Express
Example
  • March 2010CAST, Inc.

2
Need for Easier System Integration
  • Background
  • CAST has been delivering IP cores for 16 years
  • Hundreds of diverse customers and applications
  • Challenge
  • Integrating core into system rarely
    straightforward
  • Plug and play impossible with even simple
    propriety IFs
  • Solution
  • Make standard system bus interface an option
    where suitable
  • OCP available for many of our 100 products

3
CASTs Broad Line of IP Products
MULTIMEDIA H.264 1080p encoderDeinterlacer JPEG
2000 with BIIF JPEG, Extended, Speedview,
Lossless, JPEG-LS Support Functions Deinterlace
r, Color Space Converters, etc. Audio
Interfaces I2S, SPDIF
MEMORY STORAGE Memory Controllers DDR1 DDR2
SDRAM NAND flash, Serial flash SDR mobile
SDRAM SD/SDIO/MMC cards Storage
Controllers ATA/IDE interface
PROCESSORS 8-bit 8051 family fast
configurable, small low-power, entry-level
debug 8-bit Z80 16 bit 68000, 80186XL, 387
math coprocessor32-bit 68000 for AHB DSP
32025, 32025TX
PERIPHERALS Smart Card Reader TV
DisplayHigh-Res Display
INTERFACES PCI PCI Express Ethernet MACs USB
1.1, 2.0, 3.0 device, OTG hub CAN, LIN, I2C,
SPI, ECP
SYSTEM IP Subsystems 8051, MAC,
PCI Platforms ARM, eASIC, Tensilica AMBA Library
DMAS TIMERS 8237 82380 DMAs 8254 timer/counter
See more at http//www.cast-inc.com
4
Example OCP IF for PCIe Endpoint Controller Core
  • PCIe core integration challenges
  • Understanding of spec
  • Transaction Layer Packet Details
  • Possible approaches
  • Through examples
  • Through a proprietary interface
  • Through an Application Interface (AIF) and
    standard bus
  • Decision Implement an AIF for OCP
  • Hiding PCIe and OCP details
  • Delivering a complete solution

CAST PCI Express IPhttp//www.cast-inc.com/ip-cor
es/pcie
5
PCIe Design Layers
  • PCIe is a high-speed serial bus
  • Layered architecture
  • Application Data transferred via packets
  • PCIe IP cores usually implementthe lower three
    layers
  • PCIe IP cores solve most of the protocol
    handling
  • connection establishing
  • link control
  • flow control
  • power management
  • error detection and reporting

6
PCIe Core Design
  • Endpoint Controller core handles internal PCIe
    details
  • But typical core stops at the Transaction Layer
    Packet (TLP) interface
  • Designer still required to understand PCIe
    details for TLP
  • correct packet decoding
  • correct packet forming
  • Can impact many elements in application system

7
Incoming Requests
  • Incoming requests perform local subsystem read or
    write
  • Some incoming requests require sending completion
    TLP
  • Completion TLP rules
  • Must form completion packets with respect to
    Max_Payload and Read Completion Boundary
  • Must correctly encode fields in completion TLP
  • Completion address in packet differs (I/O x
    Memory)
  • Application must correctly report a request
    processing problem to the core

8
Outgoing Requests
  • Outgoing Requests are generated by the
    application
  • There is a set of rules for forming outgoing
    request TLP
  • Must be identified by unique Tag
  • Read requests restricted by Max_Read_Request_Size
  • Write requests restricted by Max_Payload
  • Must not cross 4kB address boundary
  • Violations will result in request being discarded
    and error detected at receiver
  • Completion request processing
  • Completions for multiple outstanding requests
    must be processed by Tag
  • Must have correct values in lower addresses to
    process multiple TLPs
  • Must process both Unsupported Request and
    Completer Abort responses

9
User Application Architecture
10
Possible Approaches
  • PCIe IP core providers are aware of the design
    challenges
  • Guiding by Design Examples
  • Application interface module with a proprietary
    backend interface
  • Application interface with a standard SoC bus
    interface

11
Guiding by Examples
  • Requirements
  • Deliverables should follow QIP Metric for quality
    completeness, with extensive design examples
    illustrating TLP
  • Designer duties
  • Understand PCIe specification
  • Implement interface and functional logic for
    incoming request processing
  • Implement a module for outgoing request
    generation and processing
  • Handle verification including PCIe compliance
    testing
  • This approach
  • Can result in highly optimized small design
  • Requires more time for design and verification

12
Proprietary Application Interface
  • Features
  • Custom completion controller for processing
    incoming requests
  • DMA channels to generate and process outgoing
    requests
  • Proprietary backend interface
  • Verification of PCIe protocol guaranteed by IP
    provider
  • Designer Duties
  • Designer must learn new backend interface
  • Adopt application subsystems to interface with
    the proprietary interface
  • This approach
  • Isolates designer from PCIe complexities
  • Subsystems not reusable in any other design
    unless modified

13
Application Interface with SoC Bus
  • Similar to previous approach, but with
    industry-standard bus backend
  • Using SoC bus interface offers significant
    advantages
  • Already familiar to designer
  • Simple system architecture
  • Simple reuse of a previously designed components
  • SoC bus verification models available
  • The bridge fully verifiedby IP core provider

14
OCP Bus
  • Well-defined SoC bus
  • Point-to-Point connections with unique On-Chip
    Bus architecture
  • Flexible extensions to the basic signal set
  • SystemC models available for free

15
Implementing the AIF for OCP
  • AIF bridges TLP interface and OCP bus
  • Completion Controller with queued request
    processing
  • DMA core with up to eight channels
  • OCP-PCIe Bridge Controller
  • Optional Message Controller

16
Verification Reference Design
  • Rigorously verified with Averys PCI-Xactor
  • PureSpec PCIe models
  • PureSuite compliance testsuite
  • Implemented in reference design (Wishbone AHB
    versions)
  • Controller core passed PCI-SIG certification
    testing

17
Conclusions
  • Integration challenges designer must understand
    PCIe to deal with TLP interface
  • Of possible approaches, Application Interface
    (AIF) to standard bus is best
  • AIF with OCP offers several advantages
  • CAST makes OCP interface available for many of
    its 100 products. Learn morehttp//www.cast-inc
    .com
Write a Comment
User Comments (0)
About PowerShow.com