August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
viiiContents
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
1. About The RapidIO II
DSP
ASSP
DSP
ASSP
CPU
MemoryMemoryMemory
Memory
DSP
Interface
Bridge
FPGA
Controller
Proprietary,
CPRI, OBSAI,
Ethernet, etc,
RapidIO II
MegaCore
Function
DSP
ASSP
RapidIO
Switch
System Interconnect
MegaCore Function
The RapidIO interconnect—an open standard developed by the RapidIO Trade
Association—is a high-performance packet-switched interconnect technology
designed to pass data and control information between microprocessors, digital signal
processors (DSPs), communications and network processors, system memories, and
peripheral devices.
The Altera
specification and targets high-performance, multi-computing, high-bandwidth, and
co-processing I/O applications. Figure 1–1 shows an example system
implementation.
Figure 1–1. Typical RapidIO Application
®
RapidIO II MegaCore® function complies with the RapidIO v2.2
Features
August 2014 Altera CorporationRapidIO II MegaCore Function
This section outlines the features and supported transactions of the RapidIO II IP core.
User Guide
1–2Chapter 1: About The RapidIO II MegaCore Function
Features
New Features in the RapidIO II IP Core v14.0 and v14.0 Arria 10 Edition
Releases
The RapidIO II IP core v14.0 Arria 10 Edition adds the following new feature:
■ Support for Arria 10 devices
For details about changes to the IP core, refer to “Document Revision History” on
page Info–1. For an overview, refer to the RapidIO II IP core chapter in the Altera
MegaCore Library Release Notes. IP core variations that target an Arria 10 device have
additional interfaces and design requirements.
f For information about the new Altera IP design flow in the Quartus II software v14.0
and v14.0 Arria 10 Edition, which impacts all Altera IP cores, refer to the
“Introduction to Altera IP Cores” section in the “Managing Quartus II Projects”
chapter in Volume 1: Design and Synthesis of the Quartus II Handbook and to Introduction
to Altera IP Cores.
The RapidIO II IP core v13.0 and v13.1 do not add any new features.
RapidIO II IP Core Features
The RapidIO II IP core has the following features:
■ Compliant with the RapidIO Trade Association RapidIO Interconnect Specification,
Revision 2.2, June 2011, available from the RapidIO Trade Association website at
www.rapidio.org
■ Supports 8-bit or 16-bit device IDs
■ Supports incoming and outgoing multi-cast events
■ Provides a 128-bit wide Avalon Streaming (Avalon-ST) pass-through interface for
fully integrated implementation of custom user logic
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 1: About The RapidIO II MegaCore Function1–3
Features
■ Physical layer features
■1×/2×/4× serial with integrated transceivers
■Fallback to 1× from 4× and 2× modes
■Fallback to 2× from 4×
■All five standard serial data rates supported: 1.25, 2.5, 3.125, 5.0 and
6.25 gigabaud (Gbaud)
■Long control symbol
■IDLE2 idle sequence
■ Extraction and insertion of command and status (CS) field
■ Support for software control of local and link-partner transmitter emphasis
error detection and recovery, packet assembly, and packet delineation
■Automatic freeing of resources used by acknowledged packets
■Automatic retransmission of retried packets
■Scheduling of transmission, based on priority
■Software support for ackID synchronization
■Virtual channel (VC) 0 support
■Reliable traffic (RT) support
■Critical request flow (CRF) support
■ Transport layer features
■Supports multiple Logical layer modules
■Supports an Avalon Streaming (Avalon-ST) pass-through interface for custom
implementation of capabilities such as data streaming and message passing
■A round-robin, priority-supporting outgoing scheduler chooses packets to
transmit from various Logical layer modules
■ Logical layer features
■Generation and management of transaction IDs
■Automatic response generation and processing
■Response Request Timeout checking
■Capability registers (CARs), command and status registers (CSRs), and Error
Management Extensions registers
■Direct register access, either remotely or locally
■Maintenance master and slave Logical layer modules
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
1–4Chapter 1: About The RapidIO II MegaCore Function
Device Family Support
■Input/Output Avalon
Logical layer modules with 128-bit wide datapath and burst support
■Doorbell module supporting 16 outstanding
mechanism
■Optional preservation of transaction order between outgoing
messages and I/O write requests
■Registers and interrupt indicate NWRITE_R transaction completion
■Preservation of transaction order between outgoing I/O read requests and I/O
write requests from Avalon-MM interfaces
■ Cycle-accurate simulation models for use in Altera-supported VHDL and Verilog
HDL simulators
■ IEEE-encrypted HDL simulation models for improved simulation efficiency
■ Support for OpenCore Plus evaluation
Supported Transactions
The RapidIO II IP core supports the following RapidIO transactions:
■
NREAD
request and response
■
NWRITE
request
®
Memory-Mapped (Avalon-MM) master and slave
DOORBELL
packets with time-out
DOORBELL
■
NWRITE_R
■
SWRITE
■
MAINTENANCE
■
MAINTENANCE
■
MAINTENANCE
■
DOORBELL
request
Device Family Support
Tab le 1– 1 defines the device support levels for Altera IP cores.
Table 1–1. Altera IP Core Device Support Levels
Preliminary support—The IP core is verified with preliminary timing models for this device family.
The IP core meets all functional requirements, but might still be undergoing timing analysis for the
device family. It can be used in production designs with caution.
Final support—The IP core is verified with final timing models for this device family. The IP core
meets all functional and timing requirements for the device family and can be used in production
designs.
request and response
read request and response
write request and response
port-write request
request and response
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 1: About The RapidIO II MegaCore Function1–5
IP Core Verification
Tab le 1– 2 shows the level of support offered by the RapidIO II IP core for each Altera
device family.
Table 1–2. Device Family Support
Device FamilySupport
Arria 10Refer to the What’s New in Altera IP page of the Altera website.
Arria V (GX and GT)Final
Arria V GZFinal
Cyclone VFinal
Stratix VFinal
Other device familiesNo support
IP Core Verification
Before releasing a publicly available version of the RapidIO II IP core, Altera runs a
comprehensive verification suite in the current version of the Quartus
These tests use standalone methods and the Qsys system integration tool to create the
instance files. These files are tested in simulation and hardware to confirm
functionality. Altera tests and verifies the RapidIO II MegaCore function in hardware
for different platforms and environments.
Altera also performs interoperability testing to verify the performance of the IP core
and to ensure compatibility with ASSP devices.
Simulation Testing
Altera verifies the RapidIO II IP core using the following industry-standard
simulators:
■ ModelSim
■ VCS
The test suite contains testbenches that use the Cadence Serial RapidIO Verification IP
(VIP), the Cadence Compliance Management System (CMS) implementation of the
RapidIO Trade Association interoperability checklist, and the RapidIO bus functional
model (BFM) from the RapidIO Trade Association to verify the functionality of the IP
core.
The test suite confirms various functions, including the following functionality:
®
simulator
®
II software.
■ Link initialization
■ Packet format
■ Packet priority
■ Error handling
■ Throughput
■ Flow control
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
1–6Chapter 1: About The RapidIO II MegaCore Function
IP Core Verification
Constrained random techniques generate appropriate stimulus for the functional
verification of the IP core. Functional and code coverage metrics measure the quality
of the random stimulus, and ensure that all important features are verified.
Hardware Testing
Altera tests and verifies the RapidIO II IP core in hardware for different platforms and
environments.
The hardware tests cover serial 1x, 2x, and 4x variations running at 1.25, 2.5, 3.125, 5.0,
and 6.25 Gbaud, and processing the following traffic types:
■
NREAD
s of various payload sizes
■
NWRITE
■
NWRITE_R
■
SWRITE
■
Port-writes
■
DOORBELL
s of various payload sizes
s of various payload sizes
s of various payload sizes
messages
■
MAINTENANCE
reads and writes
The hardware tests also cover the following control symbol types:
■
Status
■
Packet-accepted
■
Packet-retry
■
Packet-not-accepted
■
Start-of-packet
■
End-of-packet
■
Link-request, Link-response
■
Stomp
■
Restart-from-retry
■
Multicast-event
Interoperability Testing
Altera performs interoperability tests on the RapidIO II IP core, which certify that the
RapidIO II IP core is compatible with third-party RapidIO devices.
Altera performs interoperability testing with processors and switches from various
manufacturers including:
■ Texas Instruments Incorporated
■ Integrated Device Technology, Inc. (IDT)
Altera has performed interoperability tests with the IDT CPS-1848 and IDT CPS-1616
switches. Testing of additional devices is an on-going process.
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 1: About The RapidIO II MegaCore Function1–7
Performance and Resource Utilization
Performance and Resource Utilization
This section contains tables showing IP core variation sizes in the different device
families. Ta bl e 1– 3 lists the resources and expected performance for selected
variations that use these modules:
■ Minimal variation:
■Physical layer
■Transport layer
■Avalon-ST pass-through interface
■ Full-featured variation:
■Physical layer
■Transport layer
■Maintenance module
■Doorbell module
■Input/Output Avalon-MM master
■Input/Output Avalon-MM slave
■Error Management Registers block
All variations are configured with the following parameter settings:
■ Transceiver reference clock frequency of 156.25 MHz
■ The maximum RapidIO baud rate supported by the device
■ Support 1×, 2×, and 4× modes of operation
The numbers of ALMs, primary logic registers, and secondary logic registers in
Tab le 1– 3 are rounded up to the nearest 100.
Tab le 1– 3 shows results obtained using the Quartus II software v12.1 SP1 or Quartus
II software v14.0 Arria 10 Edition for the following devices:
(1) In this table, the entry –n indicates that both the industrial speed grade In and the commercial speed grade Cn are supported for this device
family and baud rate.
(2) In the Cyclone V device family, only Cyclone V GT devices support the 5.0 GBaud rate.
(1)
2.5
Gbaud
3.125 Gbaud
5.0
Gbaud
125
MHz
(2)
6.25
Gbaud
156.25 MHz
—
(1)
)
Release Information
Tab le 1– 5 provides information about this release of the RapidIO II IP core.
Table 1–5. RapidIO Release Information
ItemDescription
Version14.014.0 Arria 10 Edition
Release DateJune 2014August 2014
Ordering CodeIP-RAPIDIOII
Product ID0108
Vendor ID6AF7
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 1: About The RapidIO II MegaCore Function1–9
<path>
common
Contains shared components
altera_rapidio2
Contains the RapidIO II MegaCore function files
Installation directory
ip
Contains the Altera MegaCore IP Library and third-party IP cores
altera
Contains the Altera MegaCore IP Library
Installation and Licensing
Altera verifies that the current version of the Quartus II software compiles the
previous version of each IP core. Any exceptions to this verification are reported in the
MegaCore IP Library Release Notes and in the Altera RapidIO II IP core errata. Altera
does not verify compilation with IP core versions older than the previous release.
Installation and Licensing
The RapidIO II IP core is part of the Altera MegaCore IP Library, which is distributed
with the Quartus II software and downloadable from the Altera website,
www.altera.com.
Figure 1–2 shows the directory structure after you install the RapidIO II IP core,
where
<
path> is the installation directory. The default installation directory on
Windows is C:\altera\<version number>; on Linux it is /opt/altera<version number>.
Figure 1–2. Directory Structure
You can use Altera’s free OpenCore Plus evaluation feature to evaluate the IP core in
simulation and in hardware before you purchase a license. You must purchase a
license for the IP core only when you are satisfied with its functionality and
performance, and you want to take your design to production.
After you purchase a license for the RapidIO II IP core, you can request a license file
from the Altera website at www.altera.com/licensing and install it on your computer.
When you request a license file, Altera emails you a license.dat file. If you do not have
internet access, contact your local Altera representative.
OpenCore Plus Evaluation
With the Altera free OpenCore Plus evaluation feature, you can perform the following
actions:
■ Simulate the behavior of a megafunction (Altera IP core or AMPP
megafunction) in your system using the Quartus II software and Altera-supported
VHDL and Verilog HDL simulators.
■ Verify the functionality of your design and evaluate its size and speed quickly and
easily.
■ Generate time-limited device programming files for designs that include IP cores.
■ Program a device and verify your design in hardware.
SM
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
1–10Chapter 1: About The RapidIO II MegaCore Function
Installation and Licensing
OpenCore Plus Time-Out Behavior
OpenCore Plus hardware evaluation supports the following two operation modes:
■ Untethered—the design runs for a limited time.
■ Tethered—requires a connection between your board and the host computer. If
tethered mode is supported by all megafunctions in a design, the device can
operate for a longer time or indefinitely.
All megafunctions in a device time out simultaneously when the most restrictive
evaluation time is reached. If there is more than one megafunction in a design, a
specific megafunction's time-out behavior may be masked by the time-out behavior of
the other megafunctions.
1For Altera IP cores, the untethered time-out is 1 hour; the tethered time-out value is
indefinite.
After the hardware evaluation time expires, the RapidIO II IP core behaves as if its
reset signal were held asserted, and your design stops working.
f
For Information AboutRefer To
Installation and licensingAltera Software Installation and Licensing
Open Core PlusAN 320: OpenCore Plus Evaluation of Megafunctions
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
You can customize the RapidIO II IP core to support a wide variety of applications.
When you generate the IP core you can choose whether or not to generate a
simulation model. If you generate a simulation model, Altera provides a Verilog
testbench customized for your IP core variation. If you specify a VHDL simulation
model, you must use a mixed-language simulator to run the testbench, or create your
own VHDL-only simulation environment.
Customizing and Generating IP Cores
You can customize IP cores to support a wide variety of applications. The Quartus II
IP Catalog displays IP cores available for the current target device. The parameter
editor guides you to set parameter values for optional ports, features, and output files.
To customize and generate a custom IP core variation, follow these steps:
1. In the IP Catalog (Tools > IP Catalog), locate and double-click the name of the IP
core to customize. The parameter editor appears.
2. Getting Started
2. Specify a top-level name for your custom IP variation. This name identifies the IP
core variation files in your project. If prompted, also specify the target Altera
device family and output file HDL preference. Click OK.
3. Specify the desired parameters, output, and options for your IP core variation:
■Optionally select preset parameter values. Presets specify all initial parameter
values for specific applications (where provided).
■Specify parameters defining the IP core functionality, port configuration, and
device-specific features.
■Specify options for generation of a timing netlist, simulation model, testbench,
or example design (where applicable).
■Specify options for processing the IP core files in other EDA tools.
4. Click Finish or Generate to generate synthesis and other optional files matching
your IP variation specifications. The parameter editor generates the top-level .qip
or .qsys IP variation file and HDL files for synthesis and simulation. Some IP cores
also simultaneously generate a testbench or example design for hardware testing.
When you generate the IP variation with a Quartus II project open, the parameter
editor automatically adds the IP variation to the project. Alternatively, click Project > Add/Remove Files in Project to manually add a top-level .qip or .qsys IP variation
file to a Quartus II project. To fully integrate the IP into the design, make appropriate
pin assignments to connect ports. You can define a virtual pin to avoid making
specific pin assignments to top-level signals.
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
2–2Chapter 2: Getting Started
IFiles Generated for Altera IP Cores (Legacy Parameter Editor)
IFiles Generated for Altera IP Cores (Legacy Parameter Editor)
The Quartus II software version 14.0 and previous parameter editor generates the
following output file structure for Altera IP cores:
Figure 2–1. IP Core Generated Files (Legacy Parameter Editor)
<Project Directory>
<your_ip>.qip - Quartus II IP integration file
<your_ip>.v, .sv. or .vhd - Top-level IP synthesis file
<your_ip> - IP core synthesis files
<your_ip>.sv, .v, or .vhd - HDL synthesis files
<your_ip>.sdc - Timing constraints file
<your_ip>.bsf - Block symbol schematic file
<your_ip>.cmp - VHDL component declaration file
<your_ip>_syn.v or .vhd - Timing & resource estimation netlist
In the case of the RapidIO II IP core you generate in the Quartus II software v14.0
Arria 10 Edition:
■ The testbench script appears in <Qsys_system or your_ip>/sim/<vendor>.
■ The testbench files appear in
<Qsys_system or your_ip>/altera_rapidio2_140/sim/tb.
■ The IP core simulation files appear in
<Qsys_system or your_ip>/altera_rapidio2_140/sim/<vendor>.
The RapidIO II IP core does not generate an example design.
Simulating IP Cores
The Quartus II software supports RTL- and gate-level design simulation of Altera IP
cores in supported EDA simulators. Simulation involves setting up your simulator
working environment, compiling simulation model libraries, and running your
simulation.
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–5
Simulating IP Cores
You can use the functional simulation model and the testbench or example design
generated with your IP core for simulation. The functional simulation model and
testbench files are generated in a project subdirectory. This directory may also include
scripts to compile and run the testbench. For a complete list of models or libraries
required to simulate your IP core, refer to the scripts generated with the testbench.
You can use the Quartus II NativeLink feature to automatically generate simulation
files and scripts. NativeLink launches your preferred simulator from within the
Quartus II software.
For more information about simulating Altera IP cores, refer to Simulating Altera
Designs in volume 3 of the Quartus II Handbook.
Simulating the Testbench with the ModelSim Simulator
To simulate the RapidIO II IP core testbench using the Mentor Graphics ModelSim
simulator, perform the following steps:
1. Start the ModelSim simulator.
2. In ModelSim, change directory to the directory where the testbench simulation
script is located:
■For Arria 10 variations, change directory to <variation>/sim/mentor.
■For all other variations you generate from the Quartus II IP Catalog, change
directory to <variation>_sim/mentor.
■For all other variations you generate from the Qsys IP Catalog, change
directory to <Qsys system>/simulation/mentor.
3. To set up the required libraries, compile the generated simulation model, and
exercise the simulation model with the provided testbench, type one of the
following sets of commands:
a. For non-Arria 10 variations, type the following commands:
do msim_setup.tcl
set TOP_LEVEL_NAME <variation>.tb_rio (
ld
run -all
b. For Arria 10 variations, type the following commands:
do msim_setup.tcl
set TOP_LEVEL_NAME <variation>_altera_rapidio2_140.tb_rio
ld
run -all
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
2–6Chapter 2: Getting Started
Integrating Your IP Core in Your Design
Simulating the Testbench with the VCS Simulator
To simulate the RapidIO II IP core testbench using the Synopsys VCS simulator,
perform the following steps:
1. Change directory to the directory where the testbench simulation script is located:
■For Arria 10 variations, change directory to <variation>/sim/synopsys/vcs.
■For all other variations you generate from the Quartus II IP Catalog, change
directory to <variation>_sim/synopsys/vcs.
■For all other variations you generate from the Qsys IP Catalog, change
directory to <Qsys system>/simulation/synopsys/vcs
2. Type the following commands:
sh vcs_setup.sh TOP_LEVEL_NAME="tb_rio"
./simv
f
Quartus II softwareSee the Quartus II Help topics:
IP Catalog
Altera simulation models
For Information AboutRefer To
Integrating Your IP Core in Your Design
When you integrate your IP core instance in your design, you must pay attention to
some additional requirements. If you generate your IP core from the Qsys IP catalog
and build your design in Qsys, you can perform these steps in Qsys. If you generate
your IP core directly from the Quartus II IP catalog, you must implement these steps
manually in your design.
Dynamic Transceiver Reconfiguration Controller for Arria V, Arria V GZ,
Cyclone V, and Stratix V Variations
RapidIO II IP core variations that target an Arria V, Arria V GZ, Cyclone V, or Stratix
V device require an external reconfiguration controller to function correctly in
hardware. RapidIO II IP core variations that target an Arria 10 device include a
reconfiguration controller block and do not require an external reconfiguration
controller. However, you need to control dynamic transceiver reconfiguration in Arria
10 devices through the Arria 10 dynamic reconfiguration interface if you turn on that
interface in the RapidIO II parameter editor.
“About the Quartus II Software”
“About the IP Catalog”
Simulating Altera Designs chapter in volume 3 of
the Quartus II Handbook
Keeping the reconfiguration controller external to the IP core in these devices
provides the flexibility to share the reconfiguration controller among multiple IP cores
and to accommodate FPGA transceiver layouts based on the usage model of your
application. In Arria 10 devices, you can configure individual transceiver channels
flexibly through an Avalon-MM Arria 10 transceiver reconfiguration interface.
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–7
Integrating Your IP Core in Your Design
Altera recommends that you implement the reconfiguration controller with an Altera
Transceiver Reconfiguration Controller. The Transceiver Reconfiguration Controller
performs offset cancellation during bring-up of the transceiver channels.
The Transceiver Reconfiguration Controller is available in the IP catalog. You must
add it to your design and connect it to the RapidIO II IP core reconfiguration signals.
In the Transceiver Reconfiguration Controller parameter editor, you select the features
of the transceiver that can be dynamically reconfigured. However, you must ensure
that the following two features are turned on:
■ Enable PLL calibration
■ Enable Analog controls
An informational message in the RapidIO II parameter editor tells you the number of
reconfiguration interfaces you must configure in your dynamic reconfiguration block.
You must configure the Transceiver Reconfiguration Controller Number of reconfiguration interfaces parameter with this value. For more information, refer to
Table 5–7 on page 5–5.
The Reconfiguration Controller communicates with the RapidIO II IP core on two
busses:
■
reconfig_to_xcvr
■
reconfig_from_xcvr
(output)
(input)
Each of these busses connects to the bus of the same name in the RapidIO II IP core.
You must also connect the following Reconfiguration Controller signals:
■
mgmt_clk_clk
■
mgmt_rst_reset
■
reconfig_busy
f For information about the Altera Transceiver Reconfiguration Controller, refer to the
Altera Transceiver PHY IP Core User Guide.
Transceiver PHY Reset Controller
You must add an Altera Transceiver PHY Reset Controller IP core to your design, and
connect it to the RapidIO II IP core reset signals. This block implements a reset
sequence that resets the device transceivers correctly. The default parameter settings
of the Altera Transceiver PHY Reset Controller IP core are compatible with the
RapidIO II IP core requirements. For more information, refer to “Reset for RapidIO II
IP Cores” on page 4–4.
f For information about the Altera Transceiver PHY Reset Controller IP core, refer to
the Altera Transceiver PHY IP Core User Guide or the Arria 10 Transceiver PHY User
Guide.
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
2–8Chapter 2: Getting Started
Integrating Your IP Core in Your Design
Transceiver Settings
Altera recommends that you maintain the default Native PHY IP core settings
generated for the RapidIO II IP core. If you edit the existing Native PHY IP core, the
regenerated Native PHY IP core does not instantiate correctly in the top-level
RapidIO II IP core. If you must modify transceiver settings, perform the modifications
by editing the project Quartus Settings File (.qsf).
Adding Transceiver Analog Settings for Arria V GZ and Stratix V Variations
In general, Altera recommends that you maintain the default transceiver settings
specified by the RapidIO II IP core. However, Arria V GZ or Stratix V variations
require that you specify some analog transceiver settings.
After you generate your RapidIO II IP core in a Quartus II project that targets an
Arria V GZ or Stratix V device, perform the following steps:
1. In the Quartus II software, on the Assignments tab, click Assignment Editor.
2. In the Assignment Editor, in the Assignment Name column, double click
<<new>> and select Transceiver Analog Settings Protocol.
3. In the To column, type the name of the transceiver serial data input node in your
IP core variation. This name is the variation-specific version of the
rd
signal.
4. In the Va l u e column, click and select SRIO.
5. Repeat steps 2 to 4 to create an additional assignment, with the following
substitution:
In step 3, instead of typing the name of the transceiver serial data input node, type
the name of the transceiver serial data output put node. This name is the
variation-specific version of the
External Transceiver PLL
RapidIO II IP cores that target an Arria 10 device require an external TX transceiver
PLL to compile and to function correctly in hardware. You must instantiate and
connect this IP core to the RapidIO II IP core.
You can create an external transceiver PLL from the IP Catalog. Select the ATX PLL IP
core or the fPLL IP core. In the ATX TX PLL parameter editor, set the following
parameter values:
■ Set PLL output frequency to one half the value you select for the Maximum baud
rate parameter in the RapidIO II parameter editor. The transceiver performs dual
edge clocking, using both the rising and falling edges of the input clock from the
PLL. Therefore, this PLL output frequency setting supports the customer-selected
maximum data rate on the RapidIO link.
■ Set PLL reference clock frequency to the value you select for the Reference clock
frequency parameter in the RapidIO II parameter editor.
td
signal.
■ Turn o n Include Master Clock Generation Block.
■ Turn o n Enable bonding clock output ports.
■ Set PMA interface width to 20.
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–9
Compiling the Full Design and Programming the FPGA
When you generate a RapidIO II IP core, the Quartus II software also generates the
HDL code for an ATX PLL, in the file
<variation>/altera_xcvr_atx_pll_a10_140/synth/altera_rapidio2_pll.v. However, the
HDL code for the RapidIO II IP core does not instantiate the ATX PLL. If you choose
to use the ATX PLL provided with the RapidIO II IP core, you must instantiate and
connect the ATX PLL instance with the RapidIO II IP core in user logic.
You must connect the TX PLL IP core to the RapidIO II IP core according to the
following rules.
Table 2–1. External Transceiver TX PLL Connections to RapidIO II IP Core
SignalDirectionConnection Requirements
pll_refclk0
tx_bonding_clocks
[(6 x <number of lanes>)–1:0]
Input
Output
Drive the PLL
IP core
source. The minimum allowed frequency for the
pll_refclk0
Connect
tx_bonding_clocks_chN
channel N, for each transceiver channel N that connects to
the RapidIO link. The transceiver channel input ports are
RapidIO II IP core input ports.
pll_refclk0
tx_pll_refclk
clock in an Arria 10 ATX PLL is 100 MHz.
tx_bonding_clocks[6n+5:6n]
input port and the RapidIO II
signal from the same clock
input bus of transceiver
to the
For an example of how to configure and connect a TX PLL IP core to the other system
components, such as the external reset controller, refer to the cleartext testbench files
and Chapter 7, Testbench, especially Figure 7–2.
f For information about the connection requirements and options, refer to the Arria 10
Transceiver PHY User Guide.
Compiling the Full Design and Programming the FPGA
You can use the Start Compilation command on the Processing menu in the
Quartus II software to compile your design. After successfully compiling your design,
program the targeted Altera device with the Programmer and verify the design in
hardware.
1Before compiling your design in the Quartus II software, you must perform the
modifications described in “Adding Transceiver Analog Settings for Arria V GZ and
Stratix V Variations” on page 2–8.
f
For Information AboutRefer To
Compiling your design
Programming the device
Quartus II Incremental Compilation for Hierarchical and TeamBased Design chapter in volume 1 of the Quartus II Handbook
Device Programming section in volume 3 of the Quartus II
Handbook
August 2014 Altera CorporationRapidIO II MegaCore Function
User Guide
2–10Chapter 2: Getting Started
Instantiating Multiple RapidIO II IP Cores
Instantiating Multiple RapidIO II IP Cores
If you want to instantiate multiple RapidIO II IP cores that target an Arria V, Arria V
GZ, Cyclone V, or Stratix V device, a few additional steps are required. These steps are
not relevant for variations that target an Arria 10 device.
The Arria V, Arria V GZ, Cyclone V, and Stratix V transceivers are configured with the
Altera Native PHY IP core. When your design contains multiple RapidIO II IP cores,
the Quartus II Fitter handles the merge of multiple Native PHY IP cores in the same
transceiver block automatically, if they meet the merging requirements specified in
the Altera Transceiver PHY IP Core User Guide.
If you have different RapidIO II IP cores in different transceiver blocks on your
device, you may choose to include multiple Transceiver Reconfiguration Controllers
in your design. However, you must ensure that the Transceiver Reconfiguration
Controllers that you add to your design have the correct number of interfaces to
control dynamic reconfiguration of all your RapidIO II IP core transceivers. The
correct total number of reconfiguration interfaces is the sum of the reconfiguration
interfaces for each RapidIO II IP core; the number of reconfiguration interfaces for
each RapidIO II IP core is the number of channels plus one. You must ensure that the
reconfig_togxb
connect to a single Transceiver Reconfiguration Controller.
and
reconfig_fromgxb
signals of an individual RapidIO II IP core
For example, if your design includes one ×4 RapidIO II IP core and three ×1
RapidIO II IP cores, the Transceiver Reconfiguration Controllers in your design must
include eleven dynamic reconfiguration interfaces: five for the ×4 RapidIO II IP core,
and two for each of the ×1 RapidIO II IP cores. The dynamic reconfiguration interfaces
connected to a single RapidIO II IP core must belong to the same Transceiver
Reconfiguration Controller. In most cases, your design has only a single Transceiver
Reconfiguration Controller, which has eleven dynamic reconfiguration interfaces. If
you choose to use two Transceiver Reconfiguration Controllers, for example, to
accommodate placement and timing constraints for your design, each of the
RapidIO II IP cores must connect to a single Transceiver Reconfiguration Controller.
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Chapter 2: Getting Started2–11
Altera
Transceiver
Reconfiguration
Controller
0
x1 RapidIO II
IP Core
x1 RapidIO II
IP Core
Altera
Transceiver
Reconfiguration
Controller
1
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_fromgxb[N-1:0]
reconfig_togxb[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_fromgxb[2N-1:N]
reconfig_togxb[2M-1:M]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_fromgxb[N-1:0]
reconfig_togxb[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_from_xcvr[N-1:0]
reconfig_to_xcvr[M-1:0]
reconfig_fromgxb[2N-1:N]
reconfig_togxb[2M-1:M]
x1 RapidIO II
IP Core
reconfig_fromgxb[N-1:0]
reconfig_togxb[M-1:0]
reconfig_fromgxb[2N-1:N]
reconfig_togxb[2M-1:M]
x4 RapidIO II
IP Core
reconfig_fromgxb[5N-1:4N]
reconfig_togxb[5M-1:4M]
reconfig_fromgxb[3N-1:2N]
reconfig_togxb[3M-1:2M]
reconfig_fromgxb[4N-1:3N]
reconfig_togxb[4M-1:3M]
reconfig_fromgxb[N-1:0]
reconfig_togxb[M-1:0]
reconfig_fromgxb[2N-1:N]
reconfig_togxb[2M-1:M]
Instantiating Multiple RapidIO II IP Cores
Figure 2–4 illustrates an example design with two Transceiver Reconfiguration
Controllers and four RapidIO II IP cores. In the example, Altera Transceiver
Reconfiguration Controller 0 has seven reconfiguration interfaces, and Altera
Transceiver Reconfiguration Controller 1 has four reconfiguration interfaces. Each
sub-block shown in a Transceiver Reconfiguration Controller block represents a single
reconfiguration interface. The example shows only one possible configuration for this
combination of RapidIO II IP cores; subject to the constraints described, you may
choose a different configuration.
Figure 2–4. Example Connections Between Two Transceiver Reconfiguration Controllers and Four RapidIO II IP Cores
August 2014 Altera CorporationRapidIO II MegaCore Function
Refer to Table 5–7 on page 5–5 for the values of N and M in Figure 2–4.
f Refer to the "Transceiver Reconfiguration Controller" chapter of the Altera Transceiver
PHY IP Core User Guide for more information about the Transceiver Reconfiguration
Controller interfaces for Arria V, Arria V GZ, Cyclone V, and Stratix V devices and
how to control dynamic reconfiguration for multiple transceiver channels. Refer to
Table 5–7 on page 5–5 for information about the
reconfig_to_xcvr
Transceiver Reconfiguration Controller interfaces of the same Transceiver
Reconfiguration Controller.
signals that connect a single RapidIO II IP core to multiple
reconfig_from_xcvr
and
User Guide
2–12Chapter 2: Getting Started
Instantiating Multiple RapidIO II IP Cores
RapidIO II MegaCore FunctionAugust 2014 Altera Corporation
User Guide
Loading...
+ 188 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.