PCI Express Design with Stratix IV GX FPGAs

Download Report

Transcript PCI Express Design with Stratix IV GX FPGAs

PCI Express Hard IP Quick
Start Guide with SOPC Builder
© 2009 Altera Corporation—Confidential
Objectives

Implement a PCI Express system from design to
working model in under 45 minutes using an
Arria® II GX* device & SOPC Builder

You will see
 How easy it is to create PCI Express designs using Arria II GX
device Hard IP blocks and transceivers
 How SOPC Builder simplifies complex systems like PCI Express
* Procedures presented may be similarly performed on Stratix IV GX devices
© 2009 Altera Corporation—Confidential
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
PCI Express Hard IP Quick
Start Guide with SOPC Builder
Altera PCI Express Solutions
© 2009 Altera Corporation—Confidential
Altera PCI Express Solutions

Arria II GX FPGAs
 Arria II GX embedded transceivers
 Arria II GX PCIe Hard IP blocks


SOPC Builder
PCI Express Compiler
© 2009 Altera Corporation—Confidential
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
Introducing Arria II GX FPGAs

Increased system integration on a low-cost FPGA




Lower power



Up to 256k equivalent logic elements
Up to 8.5Mbits of on-chip RAM and 736 18x18 multipliers
Up to 16 full-duplex transceivers up to 3.75Gbps
40nm process with 0.9V core voltage
<100mW per transceiver channel (@ 3.125Gbps)
Transceiver FPGA design made easy



Built-in PCI Express hard IP
Single design environment
Protocol IP packs, design examples, and reference designs
Low Power, Low Cost, Easy to Use
© 2009 Altera Corporation—Confidential
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
Arria II GX FPGA Architecture
DSP
• 56 to 736 multipliers
Logic
• 16K to 256K LEs
Transceivers
• Up to 3.75 Gbps
• 4 to 16 channels
• 100 mW per channel
Hard PCI Express IP
• Gen1.1 x1, x4, x8
Configurable I/O
• Up to 612 I/O
• 1-Gbps LVDS
• 600-Mbps DDR2
and DDR3
Internal memory
• 0.7 to 9 Mbits of
block memory
• Up to 5 Mbits of
LAB memory
Up to 6 PLLs
© 2009 Altera Corporation—Confidential
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.
6
Transceiver Block Architecture

Easily configured using Quartus® II
MegaWizard® plug-ins
Transceiver Channel 3
TX3 & RX3
Transceiver Channel 2
PCIe Link
Central Control
Unit (CCU)
Clock Management
Unit 1
Clock Management
Unit 0
Transceiver Channel 1
PIPE to FPGA
TX2 & RX2
Arria II GX device
with 8 transceiver
channels (2
transceiver blocks)
TX1 & RX1
Transceiver Channel 0
TX0 & RX0
© 2009 Altera Corporation—Confidential
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 Block


Performs transaction, data link, and PHYMAC layer functionality
Supports




Connects directly to embedded transceivers using internal PIPE interface


PCI Express Gen 1.1
x1, x4 & x8 lane configurations
Root port and endpoint applications
Shared by two adjacent transceiver blocks
Enabled through the PCI Express Compiler Wizard
Arria II GX FPGA
PCI Express Hard IP Block
Embedded
Transceiver Block
Transaction
Layer
Data Link
Layer
PHYMAC
Layer
PIPE
Transceiver Block n
Transceiver Block 2
Transceiver Block 1
Transceiver Block 0
© 2009 Altera Corporation—Confidential
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
To / from
Slot or cable
PCI Express Hard IP Diagram


Clock & Reset Selection
PCS

PCI Express
Protocol Stack
Retry VC RX
Buffer Buffer
TL
Interface Adapter
Local
Mgmt IF
(LMI)
FPGA Interface
Transceiver Block
PMA

PCS
PIPE
PMA

PLD Fabric
PCI Express Hard IP Block
Transceiver Block
Application
Layer
Configurable maximum
payload size






128, 256, or 512 bytes
1 Virtual Channel
4-Kbyte receive buffer
2-Kbyte transmit retry
buffer
64-bit application datapath
width
Interrupt support (legacy,
MSI & MSI-X)
Advanced error reporting
(AER) support
Power management
support
Local management
interface (LMI) to access
configuration registers
Status & debug interface
© 2009 Altera Corporation—Confidential
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.
9
Example PCIe Hard IP Location
Arria II GX Device with 12 channels
& 1 hard IP block
GXBL2
Channel3
Channel2
Channel1
Channel0
PCIe Hard IP
Block
GXBL1 (Slave)
PCIe Lane 7
Channel3
PCIe Lane 6
Channel2
PCIe Lane 5
Channel1
PCIe Lane 4
Channel0
GXBL0 (Master)
PCIe Lane 3
Channel3
PCIe Lane 2
Channel2
PCIe Lane 1
Channel1
PCIe Lane 0
Channel0
PCIe
© 2009 Altera Corporation—Confidential
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
SOPC Builder

System design tool enabling designers to describe their
system in design blocks
 Automates IP Block connectivity
 Supports both Memory-mapped and Streaming systems
Reduce Development Time by Weeks!
© 2009 Altera Corporation—Confidential
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 Compiler

Configures PCIe
MegaCore® IP
function
 Includes all PCIe Hard
IP settings
 Includes embedded
transceiver blocks

Output files
 Verilog HDL or VHDL
wrapper files
 Tcl constraint file
 SDC file for TimeQuest
timing analysis
 Application layer design
example & testbench to
verify chosen settings
© 2009 Altera Corporation—Confidential
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
PCI Express / SOPC Builder Design Flow
2. PCI Express Compiler gets called
from SOPC Builder to configure
PCIe MegaCore block and add to
embedded system
1. Open SOPC Builder
from the Quartus II
software to build
embedded system
3. SOPC Builder
generates HDL that is
added to Quartus II
project for compilation
into Arria II GX device
© 2009 Altera Corporation—Confidential
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 Hard IP Quick
Start Guide with SOPC Builder
PCI Express Endpoint using SOPC
Builder Demonstration
© 2009 Altera Corporation—Confidential
Example PCIe-SOPC Builder System
Memory
DMADMA
DMA
© 2009 Altera Corporation—Confidential
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.
15
PCIe Endpoint Design Example
© 2009 Altera Corporation—Confidential
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
Design Example Simulation

Modelsim™ simulation directory generated at
<sopc_builder_system>_sim
 Scripts to simplify setting up & running ModelSim

Testbench files located in directory
<pcie_component_name>_examples
 Uses an auto-generated bus functional model (BFM) to emulate
the other end of the PCIe link
 Performs link initialization and generates verification messages
 Modify files altpcietb_bfm_driver.v or .vhd to perform additional
transactions
© 2009 Altera Corporation—Confidential
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.
17
PCI Express Compiler / SOPC Builder
Demonstration
Click here if demo does not open
PCI Express Hard IP Quick
Start Guide with SOPC Builder
Summary
© 2009 Altera Corporation—Confidential
Summary


SOPC Builder makes designing complex PCI
Express systems straightforward and simple
Arria II GX Hard IP block provides a low-cost and
easy-to-use way to implement your PCI Express
solution
© 2009 Altera Corporation—Confidential
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
Additional Materials






Arria II GX FPGA Overview
Arria II GX Getting Started
Arria II GX Design Resources
Altera PCI Express Solutions webpage
Altera PCI Express Hard IP webpage
Altera Online training



Altera Documentation



PCI Express online training for Altera 40 nm devices
Using SOPC Builder
Arria II GX Device Handbook
PCI Express Compiler User Guide
PCI Express protocol resources


Download PCIe Specification at PCI-SIG (www.pcisig.com)
Training and reference materials available from Mindshare Inc.
(www.mindshare.com)
© 2009 Altera Corporation—Confidential
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
Your Feedback is important

For any feedback or questions regarding this
training, please send an e-mail to
[email protected]
© 2009 Altera Corporation—Confidential
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.
22