June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
viContents
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
1. About This MegaCore Function
Interlaken is a high-speed serial communication protocol for chip-to-chip packet
transfers. The Altera
Protocol Specification, Revision 1.2. It supports specific combinations of number of lanes
from 4 to 20, and lane rates from 3.125 to 10.3125 gigabits per second (Gbps), on
®
Stratix
IV GT devices, and lane rates from 3.125 to 6.375 Gbps on Stratix IV GX
devices, providing raw bandwidth of 12.50 Gbps to 127.50 Gbps.
Interlaken provides low I/O count compared to earlier protocols, supporting
scalability in both number of lanes and lane speed. Other key features include flow
control, low overhead framing, and extensive integrity checking. The Interlaken
MegaCore function incorporates a physical coding sublayer (PCS), a physical media
attachment (PMA), and a media access control (MAC) block. The MegaCore function
transmits and receives Avalon
interface.
Figure 1–1 shows an example system implementation.
Figure 1–1. Typical Interlaken Application
High-Speed
Memory
Memory
Controller
®
Interlaken MegaCore® function implements the Interlaken
®
Streaming (Avalon-ST) data on its FPGA fabric
Features
Swuitch Fabric or Backplane
Stratix IV GX
FPGA
Interlaken
MegaCore
Function
Interlaken Link
Interlaken
MegaCore
Function
Ethernet MAC
Stratix IV GT
FPGA
Optical
Module
The Interlaken MegaCore function has the following features:
■ Compliant with the Interlaken Protocol Specification, Rev 1.2
■ Supports 4, 8, 10, 12, and 20 serial lanes in configurations that provide nominal
bandwidths of 20 Gbps, 40 Gbps, and 100 Gbps
■ Supports per-lane data rates of 3.125, 6.25, 6.375, and 10.3125 Gbps using Altera
on-chip high-speed transceivers
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
1–2Chapter 1: About This MegaCore Function
■ Supports fast simulation by allowing configuration without high-speed
Device Family Support
transceivers
■ Supports up to 127.5 Gbps raw bandwidth
■ Supports dynamically configurable BurstMax and BurstShort values
■ Provides Avalon-ST interfaces on the transmit and receive datapaths
■ Supports two logical channels in out-of-the-box configuration
■ Supports optional user-controlled in-band flow control with 1, 8, or 16 16-bit
calendar pages
■ Supports optional out-of-band flow control blocks for lane status, link status, and
one calendar page
Tab le 1 –1 lists the theoretical raw bandwidth of the Interlaken MegaCore function in
the supported combinations of lane rate and number of lanes.
Table 1–1. Theoretical Raw Aggregate Bandwidth in Gbps
Number of Lanes
3.1256.256.37510.3125
412.5025.0025.50—
825.0050.0051.00—
10—62.5063.75—
12—75.0076.50123.75
20—125.00127.50—
Device Family Support
Tab le 1 –2 defines the device support levels for Altera IP cores.
Table 1–2. Altera IP Core Device Support Levels
FPGA Device FamiliesHardCopy Device Families
Preliminary support—The 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.
Lane Rate (Gbps)
HardCopy Companion—The IP core is verified with
preliminary timing models for the HardCopy companion
device. The IP core meets all functional requirements, but
might still be undergoing timing analysis for the HardCopy
device family. It can be used in production designs with
caution.
HardCopy Compilation—The IP core is verified with final
timing models for the HardCopy device family. The IP core
meets all functional and timing requirements for the device
family and can be used in production designs.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–3
MegaCore Verification
Tab le 1 –3 shows the level of support offered by the Interlaken MegaCore function for
each Altera device family.
Table 1–3. Device Family Support
Device FamilySupport
Stratix IV GT
Stratix IV GXFinal
Note to Tab le 1–3:
(1) Altera supports the 12-lane, 10-Gbps configuration in Stratix IV GT devices only.
(1)
Final
MegaCore Verification
Before releasing a version of the Interlaken MegaCore function, Altera runs
comprehensive regression tests 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 Interlaken MegaCore function in hardware
for different platforms and environments.
Constrained random techniques generate appropriate stimulus for the functional
verification of the MegaCore function. Functional coverage metrics measure the
quality of the random stimulus, and ensure that all important features are verified.
Performance and Resource Utilization
Tab le 1 –4 lists the resources and expected performance for different Interlaken
MegaCore function variations.
Tab le 1 –4 shows results obtained using the Quartus II software for the following
devices:
■ Stratix IV GT device EP4S100G5F45I1
■ Stratix IV GX devices EP4SGX530NF45C2 and EP4SGX530KH40C2
Resource utilization is shown for variations that include the transceiver and do not
include the out-of-band flow control block.
®
II software.
Table 1–4. Interlaken MegaCore Function FPGA Resource Utilization
ParametersResource Utilization
Device
Stratix IV GX
EP4SGX530NF45C2
Stratix IV GX
EP4SGX530KH40C2
Stratix IV GT
EP4S100G5F45I1
June 2012 Altera CorporationInterlaken MegaCore Function
Number of
Lanes
46.2512,22916,77452
86.2524,82531,77668
106.2529,94938,03396
206.2563,03377,806159
1210.312550,16456,94884
Per-Lane Data Rate
(Gbps)
Combinational
ALUTs
Logic Registers
M9K
Blocks
User Guide
1–4Chapter 1: About This MegaCore Function
Release Information
For all Interlaken MegaCore function variations that target a Stratix IV GX device,
Altera recommends that you target a C2 speed grade device. For all variations that
target a Stratix IV GT device, Altera recommends you target an I1 speed grade device.
In all cases, Altera recommends that you set the Optimization Technique in the
Analysis & Synthesis Settings dialog box to Speed.
f For information about how to apply the Speed setting, refer to volume 1 of the
Quartus II Handbook.
Release Information
Tab le 1 –5 and Tab le 1 –6 provide information about this release of the Interlaken
MegaCore function. Tab le 1 –5 lists the release information common to all Interlaken
MegaCore function licenses.
Table 1–5. Interlaken MegaCore Function Release Information
ItemValue
Version12.0
Release DateJune 2012
Vendor ID6AF7
License Ordering Codes and Product IDs are listed in Table 1–6
Tab le 1 –6 lists the license information for this release of the Interlaken MegaCore
function.
Table 1–6. Interlaken MegaCore Function License Ordering Codes and Product IDs
License
20G LicenseIP-INTLKN/20G/4L00DA
40G LicenseIP-INTLKN/40G/8L00D5
100G Licenses
Note to Tab le 1–6:
(1) For information about the different licenses, refer to “Interlaken MegaCore Function Licenses” on page 1–5.
(1)
Altera verifies that the current version of the Quartus II software compiles the
previous version of each MegaCore function. Any exceptions to this verification are
reported in the MegaCore IP Library Release Notes and Errata. Altera does not verify
compilation with MegaCore function versions older than the previous release.
Installation and Licensing
The Interlaken MegaCore function is part of the MegaCore IP Library, which is
distributed with the Quartus II software and downloadable from the Altera website,
www.altera.com.
Ordering CodeProduct ID
IP-INTLKN/100G/20L00D6
IP-INTLKN/100G/12L00D4
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 1: About This MegaCore Function1–5
<path>
alt_interlaken
Contains the Interlaken MegaCore function files
common
Contains shared components
Installation directory
ip
Contains the Altera MegaCore IP Library and third-party IP cores
altera
Contains the Altera MegaCore IP Library
Installation and Licensing
Figure 1–2 shows the directory structure after you install the Interlaken MegaCore
function, 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 evaluation feature to evaluate the MegaCore
function in simulation before you purchase a license. You must purchase a license for
the MegaCore function only when you are satisfied with its functionality, and you
want to check performance in hardware and take your design to production.
After you purchase a license for the Interlaken MegaCore function, 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.
Interlaken MegaCore Function Licenses
The Altera Interlaken MegaCore function is available to you through several different
licenses, depending on the variation you wish to generate. Licensing is based
primarily on aggregate bandwidth. Tabl e 1– 7 shows the license required to program a
device with each supported variation.
Table 1–7. Interlaken MegaCore Function License Support
After you acquire a license, you can compile and program your device with all the
variations that require that license. However, to program a variation that requires a
different license, you must acquire the additional license. You can generate, simulate,
and compile all MegaCore function-supported variations without a license, because
the Interlaken MegaCore function supports the Altera OpenCore evaluation feature.
Lane Rate (Gbps)
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
1–6Chapter 1: About This MegaCore Function
Installation and Licensing
OpenCore Evaluation
The Altera OpenCore evaluation feature allows you to generate RTL files and
simulation models, to simulate, and to compile to validate timing, but requires that
you acquire a license to generate a programming file with which to configure an
FPGA. Therefore, without a license for the variation your design includes, you cannot
create an SRAM Object File (.sof) or Programmer Object File (.pof) for programming a
device with your design. With the free OpenCore evaluation feature, you can perform
the following actions:
■ Simulate the behavior of a megafunction (Altera MegaCore function 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.
f For more information about installation and licensing, refer to Altera Software
Installation and Licensing.
SM
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Design Flows
2. Getting Started
1You can customize the Interlaken MegaCore
applications. You use the MegaWizard Plug-In Manager or the Qsys system
integration tool to instantiate this MegaCore function.
The MegaWizard Plug-In Manager flow offers the following advantages:
■ Allows you to parameterize the MegaCore function to create a variation that you
can instantiate manually in your design.
The Qsys flow offers the following advantages:
■ Allows you to integrate other Altera-provided custom components such as DMA
controllers, on-chip memories, and FIFOs in your design.
■ Provides visualization of hierarchical designs.
■ Allows customization of interconnect elements and pipelining.
function to support a wide variety of
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
2–2Chapter 2: Getting Started
Design Flows
Figure 2–1 shows the stages for creating a system with the Interlaken MegaCore
function and the Quartus II software. Each stage is described in detail in subsequent
sections.
Figure 2–1. Interlaken MegaCore Function Design Flow
Select Design Flow
MegaWizard Plug-in
Manager Flow
Qsys Flow
Specify Parameters
Generate
MegaCore Function
Simulate with
Testbench
Instantiate MegaCore
In Design
Specify Constraints
Compile Design
Program Device
Specify Parameters
Complete Qsys System
Generate Qsys System
Simulate System
MegaWizard Plug-In Manager Design Flow Summary
You can use the MegaWizard Plug-In Manager in the Quartus II software to
parameterize a custom MegaCore function variation. The Interlaken parameter editor
lets you interactively set parameter values and select optional ports. This flow is best
for manual instantiation of a MegaCore function in your design.
Qsys Design Flow Summary
The Qsys design flow enables you to integrate an Interlaken component in a Qsys
system. The Qsys design flow allows you to connect component interfaces with the
system interconnect, eliminating the requirement to design low-level interfaces and
significantly reducing design time. When you add an Interlaken MegaCore function
instance to your design, an Interlaken parameter editor guides you in selecting the
properties of the Interlaken MegaCore function instance.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 2: Getting Started2–3
MegaWizard Plug-in Manager Design Flow
MegaWizard Plug-in Manager Design Flow
The MegaWizard Plug-in Manager flow allows you to customize the Interlaken
MegaCore function, and manually integrate the function in your design.
Specifying Parameters and Generating the MegaCore Function
To specify Interlaken MegaCore function parameters using the MegaWizard Plug-In
Manager, perform the following steps:
1. Create a Quartus II project using the New Project Wizard available from the File
menu. Ensure that you target a device family supported by the Interlaken
MegaCore function.
2. Launch the MegaWizard Plug-in Manager from the Tools menu, and follow the
prompts in the MegaWizard Plug-In Manager interface to create a custom
megafunction variation.
1To select the Interlaken MegaCore function, click
3. Specify the parameters in the Interlaken parameter editor. For details about these
parameters, refer to Chapter 3, Parameter Settings.
4. Click Finish to generate the MegaCore function and supporting files.
IEEE encrypted functional simulation models for the simulators listed in the
Simulating Altera Designs chapter in volume 3 of the Quartus II Handbook are
included in the supporting files. The models appear in a set directory hierarchy in
the project directory. The functional simulation model is a cycle-accurate VHDL or
Verilog HDL model produced by the Quartus II software.
cUse the simulation models only for simulation and not for synthesis or any
other purposes. Using these models for synthesis creates a nonfunctional
design.
5. If you generate the Interlaken MegaCore function instance in a Quartus II project,
you are prompted to add the Quartus II IP File (.qip) to the current Quartus II
project. You can also turn on Automatically add Quartus II IP Files to all projects.
The .qip contains information about the generated IP core. In most cases, the .qip
contains all of the necessary assignments and information required to process the
MegaCore function or system in the Quartus II compiler. The MegaWizard Plug-In
Manager generates a single .qip for each MegaCore function.
6. Click Exit to close the MegaWizard Plug-In Manager.
You can now simulate your custom MegaCore function variation, integrate it in your
design, and compile.
Simulating the Interlaken MegaCore Function
You can simulate your Interlaken MegaCore function variation using any of the
vendor-specific IEEE encrypted functional simulation models which are generated in
the new <instance name>_sim subdirectory of your project directory.
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
2–4Chapter 2: Getting Started
Qsys Design Flow
You cannot simulate the Interlaken MegaCore function in the ModelSim-Altera
(ModelSim-AE) simulator. ModelSim-AE is the simulation tool provided with the
Quartus II software.
f
Quartus II softwareSee the Quartus II Help topics:
MegaWizard Plug-In Manager
Functional simulation models for Altera IP
cores
For Information AboutRefer To
“About the Quartus II Software”
“About the MegaWizard Plug-In Manager”
Simulating Altera Designs chapter in volume 3 of
the Quartus II Handbook
Instantiating the MegaCore Function in Your Design
After you generate your Interlaken MegaCore function variation, you can instantiate
it in the RTL for your design.
When you integrate your Interlaken MegaCore function variation in your design, note
the following connection and assignment requirements and recommendations:
■ If you turn off Exclude transceiver when you parameterize your Interlaken
MegaCore function, you must ensure that you connect the calibration clock
cal_blk_clk
10–125 MHz. The
transceiver block must be connected to the same clock signal.
■ If you turn off Exclude transceiver when you parameterize your Interlaken
MegaCore function, you should set the RTL parameter
improve your transceiver simulation time. In this version of the Interlaken
MegaCore function, you must modify your RTL files to set the parameter. Add this
parameter to the parameter list in your HSIO bank instances with the value 1’b1.
The HSIO bank instances for the different variations are instantiations of the
modules
alt_ntrlkn_hsio_bank_bpcs_3g
to a clock signal with the appropriate frequency range of
You can use Qsys to build a system that contains your customized Interlaken
MegaCore function. You can easily add other components and quickly create a Qsys
system. Qsys can automatically generate HDL files that include all of the specified
components and interconnections. The HDL files are ready to be compiled by the
Quartus II software to produce output files for programming an Altera device.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 2: Getting Started2–5
Qsys Design Flow
Figure 2–2 shows a block diagram of an example Qsys system.
Qsys Interconnect chapter in volume 1 of the Quartus II
Handbook and the Avalon Interface Specifications
Creating a System with Qsys in volume 1 of the Quartus II
Handbook
Quartus II softwareQuartus II Help
On-Chip
Memory
Specifying Parameters
To specify Interlaken MegaCore function parameters using the Qsys flow, perform the
following steps:
1. Create a new Quartus II project using the New Project Wizard available from the
File menu.
2. On the Tools menu, click Qsys.
3. On the Component Library tab, expand Interface Protocols > Interlaken and
highlight Interlaken.
4. Click Add to add an Interlaken MegaCore function to your system. The Interlaken
parameter editor appears.
5. Specify the parameters in the Interlaken parameter editor. For detailed
explanations of these parameters, refer to Chapter 3, Parameter Settings.
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
2–6Chapter 2: Getting Started
6. Click Finish to complete the Interlaken MegaCore function and add it to the
system.
Qsys Design Flow
Completing the Qsys System
To complete the Qsys system, perform the following steps:
1. Add and parameterize any additional components.
2. Connect the components using the Connection panel on the System Contents tab.
3. If some signals are not displayed, click the Filter icon to display the Filters dialog
box. In the Filter list, click All Interfaces.
4. Ensure your Qsys system meets the connection and assignment requirements
listed in “Specifying Parameters and Generating the MegaCore Function” on
page 2–3.
5. If you intend to simulate your Qsys system, on the Generation tab, set Generate simulation model to Ve r il o g to generate a functional simulation model in Verilog
HDL.
6. Click Generate to generate the system. Qsys generates the system and produces a
system .qip file, <system name>.qip, that contains the assignments and information
required to process the IP cores and system in the Quartus II Compiler. The file is
located in the <project name>/synthesis subdirectory.
7. In the Quartus II software, in the Project menu, click Add/Remove Files in Project
and add the
<system name>.qip file to the project.
Simulating the System
During system generation, Qsys optionally generates various IEEE encrypted
functional simulation models for the Interlaken MegaCore function and functional
simulation models for other components in the Qsys system. You can use these
simulation models to simulate your system with your supported simulation tool.
In addition, you can simulate the static design example that is provided in Verilog
HDL. The static design example is available for several Interlaken MegaCore function
variations. Refer to Chapter 6, Qsys Design Examples.
The design examples are located in the design_examples subdirectory of the
alt_interlaken installation directory. Each testbench provides some basic stimulus to
the user interfaces of the Interlaken MegaCore function. You can use the example as a
basis for your own system simulation.
f For information about simulating Qsys systems, refer to the Creating a System with
Qsys chapter in volume 1 of the Quartus II Handbook.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 2: Getting Started2–7
Specifying Constraints
Specifying Constraints
Altera provides a Synopsys Design Constraints (.sdc) file that you must apply to
ensure that the Interlaken MegaCore function meets design timing requirements. The
script automatically constrains the system clocks and the reference clock based on the
data rate you specify. If your design includes multiple instances of the Interlaken
MegaCore function, you must edit the .sdc file to ensure that each instance name
appears correctly in the file.
The Quartus II software v12.0 requires that you add the following additional
constraints manually:
■ Hard PLL Assignment Constraints
■ I/O Standard Constraints
The following sections describe the constraints you must add manually.
Hard PLL Assignment Constraints
The .sdc script provided with the Quartus II software v12.0 requires that you add
hard PLL assignment constraints to the Quartus Settings File (.qsf) before you
compile your design. You can add these constraints directly to the .qsf, or you can use
the Quartus II Assignment Editor.
You must add the following hard transceiver PLL assignments before compilation:
The valid HSIO bank numbers depend on the number of lanes in your Interlaken
MegaCore function variation. Table 2–1 shows the valid HSIO bank numbers.
Table 2–1. Valid HSIO Bank Numbers Depending on Number of Lanes
Number of Lanes
0123
4v———
8vv——
10vv——
12vvv—
20vvvv
Valid HSIO Bank Numbers
To add the constraint using the Assignment Editor, perform the following steps:
1. Open your Quartus II project in the Quartus II software.
2. On the Processing menu, point to Start and click Start Analysis & Elaboration.
The analysis and elaboration process might take several minutes to complete.
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
2–8Chapter 2: Getting Started
Specifying Constraints
3. On the Assignments menu, click Assignment Editor.
4. Click <<new>> to edit a new assignment.
5. Double-click the new row in the Assignment Name column and select Location.
6. Double-click the new row in the To column.
7. Click the Node Finder icon. The Node Finder dialog box appears.
8. Ensure that Filter is set to Design Entry (all names).
9. To fill the Named field, follow one of these steps:
■If the number of lanes in your Interlaken MegaCore function is 10 or 20, in the
Named field, type
■If the number of lanes in your Interlaken MegaCore function is 4, 8, or 12, in the
Named field, type
*tx_pll_edge0
*tx_pll0
10. Click List.
11. Highlight each node found and click the right-arrow icon to move it from the
Nodes Found list to the Selected Nodes list.
12. Click OK. All the selected nodes appear in separate rows in the Assignment
Editor, with Assignment Name set to Location.
13. For each new row, perform the following steps:
a. Double-click the new row in the Va l u e column and click the Browse icon. A
Location dialog box appears.
b. For Element, select I/O bank.
c. For Location, select IOBANK_Q<m> for your preferred value <m>.
You must preserve the lane order in assigning IO banks, keeping in mind the
requirement that 10- and 20-lane variations use five transceivers in each
transceiver block, and the other variations use four transceivers in each
transceiver block. Refer to “High-Speed I/O Block” on page 4–22.
d. Click OK. The value you selected appears in the Va l ue column.
f For more information about timing analyzers, refer to the Quartus II Help and The
Quartus II TimeQuest Timing Analyzer chapter in volume 3 of the Quartus II Handbook.
I/O Standard Constraints
The Interlaken MegaCore function implements the transceivers with the
programmable transmitter output buffer power (VCCH TX) set to 1.4 V. Therefore, the
MegaCore function requires that you connect the Interlaken interface signals to pins
that implement the 1.4-V PCML I/O standard. This setting increases the data rate
range of the Interlaken interface. On a Stratix IV GX device, this requirement might
not be implemented automatically. If your design includes high-speed transceivers,
you should enforce this requirement manually.
To enforce this requirement, after you generate the system, perform the following
steps:
1. In the Quartus II window, on the Assignments menu, click Assignment Editor.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 2: Getting Started2–9
Compiling the Full Design and Programming the FPGA
2. For each N, perform the following steps:
a. In the <<new>> cell in the To column, type the top-level signal name for your
Interlaken MegaCore function instance
rx_serial_dataN_export
signal.
b. Double-click in the Assignment Name column and click I/O Standard.
c. Double-click in the Va l ue column and click 1.4-V PCML.
3. Repeat step 2 for your Interlaken MegaCore function instance
tx_serial_dataN_export
signals.
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.
The 10- and 20-lane Interlaken MegaCore function variations require fine tuning to
achieve timing closure. Refer to Appendix C, Closing Timing on 10- and 20-lane
Designs for a list of steps you can implement to improve timing.
After successfully compiling your design, program the target Altera device with the
Programmer and verify the design in hardware. Programming the device requires
that you have a license for your Interlaken MegaCore function variation. Refer to
“Interlaken MegaCore Function Licenses” on page 1–5.
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
Quartus II Programmer chapter in volume 3 of the Quartus II
Handbook
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
2–10Chapter 2: Getting Started
Compiling the Full Design and Programming the FPGA
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
3. Parameter Settings
Customize the Interlaken MegaCore function by specifying parameters in the
Interlaken parameter editor, which you access from the MegaWizard Plug-In Manager
or from the Qsys tool in the Quartus II software.
This chapter describes the parameters and how they affect the behavior of the
MegaCore function. To customize your Interlaken MegaCore function, you can
modify parameters to specify the following properties:
■ Operational mode
■ Number of lanes
■ Lane rate
■ Meta frame length
■ Whether the MegaCore function includes or excludes the transceiver
■ Whether the MegaCore function enables out-of-band flow control
■ Number of pages of in-band flow control calendar bits
■ Whether the BurstMax and BurstShort parameters are dynamically configurable
■ BurstMax value, if not dynamically configurable
■ BurstShort value, in variations with a datapath width of 512 bits, if not
dynamically configurable
General Parameters
This section lists the basic parameters that affect the configuration of the Interlaken
MegaCore function.
Operational Mode
The Operational mode parameter specifies whether the MegaCore function is
configured to support simultaneous bidirectional communication. The operational
mode with simultaneous bidirectional communication is called duplex mode. The
current version of the MegaCore function supports only Duplex mode.
Number of Lanes
The Number of lanes parameter specifies the number of lanes available for Interlaken
communication. Supported values are 4, 8, 10, 12, and 20.
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
3–2Chapter 3: Parameter Settings
General Parameters
The Interlaken MegaCore function supports only some combinations of number of
lanes and lane rate. Tab le 3 –1 shows the supported combinations.
Table 3–1. Supported Combinations of Number of Lanes and Lane Rate
Number of Lanes
3.1256.256.37510.3125
4vvv—
8v v v —
10—vv—
12—vvv
20—vv—
Lane Rate (Gbps)
1The Interlaken parameter editor does not enforce the license restrictions. If you
specify a supported combination that your set of licenses does not allow, compilation
does not generate a programming file.
For information about the lane number and lane rate combinations supported by the
different Interlaken IP licenses, refer to “Installation and Licensing” on page 1–4.
Lane Rate
The Lane rate parameter specifies the data rate on each lane. All lanes have the same
data rate.
The Interlaken MegaCore function supports only certain combinations of number of
lanes and lane rate. Refer to Table 3–1. For information about the device support for
different combinations, refer to Table 1–3 on page 1–3.
1The Interlaken parameter editor does not enforce the license restrictions. If you
specify a supported combination that your set of licenses does not allow, compilation
does not generate a programming file.
For information about the lane number and lane rate combinations supported by the
different Interlaken IP licenses, refer to “Installation and Licensing” on page 1–4.
Number of Words in Meta Frame
The Meta frame length in words parameter specifies the length of the meta frame, in
64-bit (8-byte) words. In the Interlaken specification, this parameter is called the
MetaFrameLength parameter.
Smaller values for this parameter shorten the time to achieve lock. Larger values
reduce overhead while transfering data, after lock is achieved. For information about
achieving lock, refer to Appendix A, Initializing the Interlaken MegaCore Function.
Exclude Transceiver
Turn o n th e Exclude transceiver parameter to specify that your Interlaken MegaCore
function does not include an HSIO block. By default, this parameter is turned off.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
Chapter 3: Parameter Settings3–3
In-Band Flow Control Parameters
If this parameter is turned on, the Interlaken MegaCore function simulation model
and the Interlaken MegaCore function generated RTL both exclude the transceivers.
This option is available to you for faster simulation. However, if you exclude the
transceivers from your Interlaken MegaCore function, you must regenerate and
compile with the parameter turned off to create your programming file.
Enable Out-of-Band Flow Control
Turn o n th e Enable out-of-band flow control parameter to specify that your
Interlaken MegaCore function includes out-of-band flow control functionality. By
default, this parameter is not turned on.
Turning off out-of-band flow control decreases the resource utilization of your
Interlaken MegaCore function, and excludes this optional specification feature.
For more information about the out-of-band flow control block, refer to “Out-of-Band
Flow Control Block” on page 4–24.
In-Band Flow Control Parameters
This section lists the parameters that affect the in-band flow control configuration.
Expose Calendar Ports
Turn o n th e Expose calendar ports parameter to specify that the in-band flow control
calendar bits are available on input and output signals of the Interlaken MegaCore
function. If you expose the calendar ports, you are able to view the in-band flow
control RX calendar bits, and you are responsible for specifying the values of the
in-band flow control TX calendar bits that appear in bits [55:40] of the control words
you transmit on the Interlaken link.
If you turn off the Expose calendar ports parameter, a single 16-bit page of in-band
flow control calendar information is included in the Interlaken control words, and the
Interlaken MegaCore function uses only two of those bits. For more information about
the Interlaken MegaCore function behavior when calendar ports are configured and
when they are not, refer to “Calendar and Status Block” on page 4–20.
For information about the calendar port signals, refer to Table 5–6 on page 5–5 and
Table 5–8 on page 5–7.
Number of Sixteen-Bit Calendar Pages
The Width of calendar ports, in 16-bit pages parameter specifies the number of 16-bit
pages of in-band flow control data your Interlaken MegaCore function supports.
Supported values are 1, 8, and 16. You can modify this number from its default value
of 1 only if you turn on the Expose calendar ports parameter.
Burst Parameters
This section lists the parameters that affect the value and dynamic configurability of
the BurstMax and BurstShort Interlaken parameters.
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
3–4Chapter 3: Parameter Settings
Burst Parameters
Enable Dynamic Configuration of BurstMax and BurstShort Parameters
Turn o n th e Enable dynamic burst parameters parameter to enable dynamic
configuration of the BurstMax and BurstShort Interlaken parameters. If you turn on
this option, your Interlaken MegaCore function has additional input ports you set
dynamically to the desired values of the two Interlaken parameters. Supported values
are BurstMax values of 128 and 256 bytes and BurstShort values of 32 and 64 bytes.
Dynamic configuration of BurstShort is restricted to 12-lane, 10.3125 Gbps and 20-lane
Interlaken MegaCore function variations, that is, the variations with a 512-bit wide
channel datapath. In other variations, whether you turn on Enable dynamic burst parameters or not, BurstShort has a static value.
Refer to Table 5–8 on page 5–7 for information about the input ports for dynamic
configuration of BurstMax and BurstShort.
Parameterized Static BurstMax Value
If you disable dynamic configuration of the BurstMax and BurstShort parameters, you
can specify the static value of BurstMax that is configured in your Interlaken
MegaCore function with the BURST MAX length in bytes parameter. This parameter
is available if you turn off Enable dynamic burst parameters. Supported static
BurstMax length values are 128 bytes and 256 bytes.
Parameterized Static BurstShort Value
If you turn off Enable dynamic burst parameters, you can specify the static value of
BurstShort that is configured in your 12-lane, 10.3125 Gbps or 20-lane Interlaken
variation. In these Interlaken variations, the default value of the BurstShort Interlaken
parameter is 32 bytes, but you can specify with the BURST SHORT length in bytes
parameter that it be set to 64 bytes instead.
In other Interlaken MegaCore variations, if you turn off Enable dynamic burst parameters, the static value of BurstShort is 16 bytes in variations with a 128-bit
datapath, and 32 bytes in variations with a 256-bit datapath, as shown in Table 4–1 on
page 4–3.
Interlaken MegaCore FunctionJune 2012 Altera Corporation
User Guide
4. Functional Description
The Interlaken MegaCore function provides the functionality described in the
Interlaken Protocol Definition, Revision 1.2, and arbitration between two incoming
user-defined channels, and regroups received data to two outgoing user-defined
channels. This chapter describes the individual interfaces and main blocks of the
Interlaken MegaCore function and how data passes between them.
This chapter contains the following sections:
■ “Architecture Overview”
■ “Interfaces Overview”
■ “Clocking and Reset Structure” on page 4–5
■ “Transmit Path” on page 4–11
■ “Receive Path” on page 4–17
■ “Calendar and Status Block” on page 4–20
■ “High-Speed I/O Block” on page 4–22
■ “Out-of-Band Flow Control Block” on page 4–24
June 2012 Altera CorporationInterlaken MegaCore Function
User Guide
Loading...
+ 63 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.