Device Family Support................................................................................................................................4-3
10GBASE-KR PHY Performance and Resource Utilization..................................................................4-3
Parameterizing the 10GBASE-KR PHY....................................................................................................4-4
10GBASE-KR Link Training Parameters .................................................................................... 4-5
10GBASE-KR Auto-Negotiation and Link Training Parameters.............................................4-7
Device Family Support................................................................................................................................5-3
1G/10 GbE PHY Performance and Resource Utilization.......................................................................5-3
Parameterizing the 1G/10GbE PHY..........................................................................................................5-4
1G/10GbE PHY Clock and Reset Interfaces............................................................................................ 5-8
1G/10GbE PHY Data Interfaces................................................................................................................ 5-9
XGMII Mapping to Standard SDR XGMII Data.................................................................................. 5-11
Serial Data Interface.................................................................................................................................. 5-12
Altera Corporation
TOC-4
Altera Transceiver PHY IP Core User Guide
1G/10GbE Control and Status Interfaces...............................................................................................5-12
XAUI PHY Optional PMA Control and Status Interface....................................................................6-16
XAUI PHY Register Interface and Register Descriptions....................................................................6-18
XAUI PHY Dynamic Reconfiguration for Arria II GX, Cyclone IV GX, HardCopy IV GX, and
Stratix IV GX.........................................................................................................................................6-25
XAUI PHY Dynamic Reconfiguration for Arria V, Arria V GZ, Cyclone V and Stratix V
Recommendations for Tuning Link Partner’s Transmitter.....................................................8-23
Enabling Dynamic PMA Tuning for PCIe Gen3.................................................................................. 8-23
PHY for PCIe (PIPE) Dynamic Reconfiguration..................................................................................8-24
Logical Lane Assignment Restriction..........................................................................................8-25
PHY for PCIe (PIPE) Simulation Files and Example Testbench........................................................8-25
Custom PHY IP Core.......................................................................................... 9-1
Device Family Support................................................................................................................................9-2
Performance and Resource Utilization.....................................................................................................9-2
Altera Corporation
TOC-6
Altera Transceiver PHY IP Core User Guide
Parameterizing the Custom PHY.............................................................................................................. 9-3
General Options Parameters.......................................................................................................... 9-3
Word Alignment Parameters.........................................................................................................9-7
Rate Match FIFO Parameters.........................................................................................................9-9
8B/10B Encoder and Decoder Parameters.................................................................................9-10
Byte Order Parameters..................................................................................................................9-11
Low Latency PHY IP Core.................................................................................10-1
Device Family Support..............................................................................................................................10-2
Performance and Resource Utilization...................................................................................................10-2
Parameterizing the Low Latency PHY....................................................................................................10-3
General Options Parameters....................................................................................................................10-4
Arria V Transceiver Native PHY IP Core.........................................................13-1
Device Family Support..............................................................................................................................13-2
Performance and Resource Utilization...................................................................................................13-3
Parameterizing the Arria V Native PHY................................................................................................13-3
General Parameters....................................................................................................................................13-3
Cyclone V Transceiver Native PHY IP Core Overview.................................... 15-1
Cyclone Device Family Support...............................................................................................................15-2
Cyclone V Native PHY Performance and Resource Utilization.........................................................15-2
Parameterizing the Cyclone V Native PHY...........................................................................................15-2
General Parameters....................................................................................................................................15-3
Analog Settings Having Global or Computed Values for Cyclone V Devices....................19-27
Analog Settings for Stratix V Devices...................................................................................................19-34
Analog PCB Settings for Stratix V Devices ............................................................................. 19-34
Analog Settings Having Global or Computed Default Values for Stratix V Devices ........19-38
Altera Corporation
Altera Transceiver PHY IP Core User Guide
TOC-11
Migrating from Stratix IV to Stratix V Devices Overview...............................20-1
Differences in Dynamic Reconfiguration for Stratix IV and Stratix V Transceivers.......................20-2
Differences Between XAUI PHY Parameters for Stratix IV and Stratix V Devices.........................20-3
Differences Between XAUI PHY Ports in Stratix IV and Stratix V Devices.....................................20-5
Differences Between PHY IP Core for PCIe PHY (PIPE) Parameters in Stratix IV and Stratix
V Devices...............................................................................................................................................20-7
Differences Between PHY IP Core for PCIe PHY (PIPE) Ports for Stratix IV and Stratix V
Differences Between Custom PHY Parameters for Stratix IV and Stratix V Devices....................20-11
Differences Between Custom PHY Ports in Stratix IV and Stratix V Devices................................20-13
Additional Information for the Transceiver PHY IP Core..............................21-1
Revision History for Previous Releases of the Transceiver PHY IP Core..........................................21-6
How to Contact Altera............................................................................................................................21-42
Altera Corporation
Introduction to the Protocol-Specific and
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Native Transceiver PHYs
2015.01.19
UG-01080
Subscribe
The Arria V, Cyclone V, and Stratix V support three types of transceiver PHY implementations or
customization.
The three types of transceiver PHY implementations are the following:
• Protocol-specific PHY
• Non-protocol-specific PHY
• Native transceiver PHY
The protocol-specific transceiver PHYs configure the PMA and PCS to implement a specific protocol. In
contrast, the native PHY provides broad access to the low-level hardware, allowing you to configure the
transceiver to meet your design requirements. Examples of protocol-specific PHYs include XAUI and
Interlaken.
You must also include the reconfiguration and reset controllers when you implement a transceiver PHY
in your design.
Send Feedback
1
Protocol-Specific Transceiver PHYs
The protocol-specific transceiver PHYs configure many PCS to meet the requirements of a specific
protocol, leaving fewer parameters for you to specify.
Altera offers the following protocol-specific transceiver PHYS:
• 1G/10 Gbps Ethernet
• 10GBASE-R
• Backplane Ethernet 10GBASE-KR PHY
• Interlaken
• PHY IP Core for PCI Express (PIPE)
• XAUI
These transceiver PHYs include an Avalon® Memory-Mapped (Avalon-MM) interface to access control
and status registers and an Avalon Streaming (Avalon-ST) interface to connect to the MAC for data
transfer.
The following figure illustrates the top level modules that comprise the protocol-specific transceiver PHY
IP cores. As illustrated, the Altera Transceiver Reconfiguration Controller IP Core is instantiated
separately.
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
ISO
9001:2008
Registered
To MAC
To HSSI Pins
Transceiver PHY
PMA PCS
Customized functionality for:
10GBASE-R
10GBASE-KR
1G/10GBASE-R
XAUI
Interlaken
PCI Express PIPE
Avalon-ST
TX and RX
Avalon-MM
Control &
Status
PCS & PMA
Control & Status
Register Memory Map
S
Reset
Controller
S
Altera Transceiver
Reconfiguration
Controller
Offset Cancellation
Analog Settings
Avalon-MM PHY
Management
Read & Write
Control & Status
Registers
M
Avalon-MM master interface
M
S
Avalon-MM slave interface
S
PLLCDR
Rx Deserializer
Tx Serializer
Embedded
Controller
1-2
Native Transceiver PHYs
Figure 1-1: Transceiver PHY Top-Level Modules
UG-01080
2015.01.19
Native Transceiver PHYs
Altera Corporation
Related Information
• 10GBASE-R PHY IP Core on page 3-1
• Backplane Ethernet 10GBASE-KR PHY IP Core Overview
• 1G/10 Gbps Ethernet PHY IP Core on page 5-1
• XAUI PHY IP Core on page 6-1
• Interlaken PHY IP Core on page 7-1
• PHY IP Core for PCI Express (PIPE) on page 8-1
Each device family, beginning with Series V devices offers a separate Native PHY IP core to provide lowlevel access to the hardware. There are separate IP Cores for Arria V, Arria V GZ, Cyclone V, and Stratix
V devices.
The Native PHYs allow you to customize the transceiver settings to meet your requirements. You can also
use the Native PHYs to dynamically reconfigure the PCS datapath. Depending on protocol mode selected,
built-in rules validate the options you specify. The following figure illustrates the Stratix V Native PHY.
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
PLLs
PMA
altera _xcvr_native_ <dev>
Transceiver Native PHY
Transceiver
Reconfiguration
Controller
Reconfiguration to XCVR
Reconfiguration from XCVR
TX and RX Resets
Calilbration Busy
PLL and RX Locked
RX PCS Parallel Data
TX PCS Parallel Data
CDR Reference Clock
(when neither PCS is enabled)
TX PLL Reference Clock
Serializer/
Clock
Generation
Block
RX Serial Data
to
FPGA fabric
Transceiver
PHY Reset
Controller
TX PMA Parallel Data
RX PMA Parallel Data
TX Serial Data
Serializer
Deserializer
Standard
PCS
(optional)
10G PCS
(optional)
UG-01080
2015.01.19
Figure 1-2: Stratix V Transceiver Native PHY IP Core
Native Transceiver PHYs
1-3
As shown, the Stratix V Native PHY connects to the separately instantiated Transceiver Reconfiguration
Controller and Transceiver PHY Reset Controller.
Table 1-1: Native Transceiver PHY Datapaths
DatapathsStratix VArria VArria V GZCyclone V
PMA Direct:
YesYesYes-
This datapath connects the
FPGA fabric directly to the
PMA, minimizing latency.
You must implement any
required PCS functions in the
FPGA fabric.
(1)
Introduction to the Protocol-Specific and Native Transceiver PHYs
(1)
PMA Direct mode is supported for Arria V GT, ST, and GZ devices, and for Stratix V GT devices only.
Send Feedback
Altera Corporation
1-4
Non-Protocol-Specific Transceiver PHYs
DatapathsStratix VArria VArria V GZCyclone V
UG-01080
2015.01.19
Standard:
YesYesYesYes
This datapath provides a
complete PCS and PMA for
the TX and RX channels. You
can customize the Standard
datapath by enabling or
disabling individual modules
and specifying data widths.
10G:
Yes-Yes-
This is a high performance
datapath. It provides a
complete PCS and PMA for
the TX and RX channels. You
can customize the 10G
datapath by enabling or
disabling individual modules
and specifying data widths.
Related Information
• Analog Settings for Arria V Devices on page 19-2
• Analog Settings for Arria V GZ Devices on page 19-11
• Analog Settings for Cyclone V Devices on page 19-26
• Analog Settings for Stratix V Devices on page 19-34
Non-Protocol-Specific Transceiver PHYs
Non-protocol specific transceiver PHYs provide more flexible settings than the protocol-specific
transceiver PHYs. They include the Custom PHY, Low Latency PHY, and Deterministic Latency PHY IP
Cores.
These PHYs include an Avalon® Memory-Mapped (Avalon-MM) interface to access control and status
registers and an Avalon Streaming (Avalon-ST) interface to connect to the MAC for data transfer.
Related Information
• Custom PHY IP Core on page 9-1
• Deterministic Latency PHY IP Core on page 11-1
• Low Latency PHY IP Core on page 10-1
Transceiver PHY Modules
The following sections provide a brief introduction to the modules included in the transceiver PHYs.
Altera Corporation
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
UG-01080
2015.01.19
Transceiver Reconfiguration Controller
PCS
The PCS implements part of the physical layer specification for networking protocols. Depending upon
the protocol that you choose, the PCS may include many different functions. Some of the most commonly
included functions are: 8B/10B, 64B/66B, or 64B/67B encoding and decoding, rate matching and clock
compensation, scrambling and descrambling, word alignment, phase compensation, error monitoring,
and gearbox.
PMA
The PMA receives and transmits differential serial data on the device external pins. The transmit (TX)
channel supports programmable pre-emphasis and programmable output differential voltage (VOD). It
converts parallel input data streams to serial data. The receive (RX) channel supports offset cancellation to
correct for process variation and programmable equalization. It converts serial data to parallel data for
processing in the PCS. The PMA also includes a clock data recovery (CDR) module with separate CDR
logic for each RX channel.
Avalon-MM PHY Management Interface
You can use the Avalon-MM PHY Management module to read and write the control and status registers
in the PCS and PMA for the protocol-specific transceiver PHY. The Avalon-MM PHY Management
module includes both Avalon-MM master and slave ports and acts as a bridge. It transfers commands
received from an embedded controller on its slave port to its master port. The Avalon-MM PHY
management master interface connects the Avalon-MM slave ports of PCS and PMA registers and the
Transceiver Reconfiguration module, allowing you to manage these Avalon-MM slave components
through a simple, standard interface. (Refer to Transceiver PHY Top-Level Modules.)
1-5
Transceiver Reconfiguration Controller
Altera Transceiver Reconfiguration Controller dynamically reconfigures analog settings in Arria V,
Cyclone V, and Stratix V devices.
Reconfiguration allows you to compensate for variations due to process, voltage, and temperature (PVT)
in 28-nm devices. It is required for Arria V, Cyclone V, and Stratix V devices that include transceivers.
For more information about the Transceiver Reconfiguration Controller, refer to Transceiver Reconfigu‐
ration Controller IP Core. The reset controller may be included in the transceiver PHY or may be a
separately instantiated component as described in Transceiver PHY Reset Controller.
Related Information
Transceiver Reconfiguration Controller IP Core Overview on page 16-1
Resetting the Transceiver PHY
This section provides an overview of the embedded reset controller and the separately instantiated
Transceiver PHY Reset Controller IP Core.
The embedded reset controller ensures reliable transceiver link initialization. The reset controller initial‐
izes both the TX and RX channels. You can disable the automatic reset controller in the Custom, Low
Latency Transceiver, and Deterministic Latency PHYs. If you disable the embedded reset controller, the
powerdown, analog and digital reset signals for both the TX and RX channels are top-level ports of the
transceiver PHY. You can use these ports to design a custom reset sequence, or you can use the Alteraprovided Transceiver Reset Controller IP Core.
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
Altera Corporation
1-6
Running a Simulation Testbench
UG-01080
2015.01.19
The Transceiver PHY Reset Controller IP Core handles all reset sequencing of the transceiver to enable
successful operation. Because the Transceiver PHY Reset Controller IP is available in clear text, you can
also modify it to meet your requirements. For more information about the Transceiver PHY Reset
Controller, refer to Transceiver Reconfiguration Controller IP Core.
To accommodate different reset requirements for different transceivers in your design, instantiate
multiple instances of a PHY IP core. For example, if your design includes 20 channels of the Custom PHY
IP core with 12 channels running a custom protocol using the automatic reset controller and 8 channels
requiring manual control of RX reset, instantiate 2 instances of the Custom PHY IP core and customize
one to use automatic mode and the other to use your own reset logic. For more information, refer to
“Enable embedded reset control” in Custom PHY General Options.
For more information about reset control in Stratix V devices, refer to Transceiver Reset Control in Stratix
V Devices in volume 3 of the Stratix V Device Handbook. For Stratix IV devices, refer to Reset Control and
Power Down in volume 4 of the Stratix IV Device Handbook. For Arria V devices, refer to Transceiver
Reset Control and Power-Down in Arria V Devices. For Cyclone V devices refer to Transceiver Reset
Control and Power Down in Cyclone V Devices.
Related Information
• General Options Parameters on page 9-3
• Transceiver PHY Reset Controller IP Core on page 17-1
• Transceiver Reset Control in Stratix V Devices
• Reset Control and Power Down
• Transceiver Reset Control and Power-Down in Arria V Devices
• Transceiver Reset Control and Power Down in Cyclone V Devices
Running a Simulation Testbench
When you generate your transceiver PHY IP core, the Quartus® II software generates the HDL files that
define your parameterized IP core. In addition, the Quartus II software generates an example Tcl script to
compile and simulate your design in ModelSim.
Altera Corporation
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
<instance_name> _sim/synopsys Simulation files for Synopsys simulation tools
<project_dir>
<project_dir>/<instance_name> - includes PHY IP Verilog HDL and
SystemVerilog design files for synthesis
<instance_name>. v or .vhd - the parameterized transceiver PHY IP core
<instance_name> .qip - lists all files used in the transceiver PHY IP design
<instance_name> .bsf - a block symbol file for you transceiver PHY IP core
<instance_name> _sim/altera_xcvr <PHY_IP_name> - includes plain text
files that describe all necessary files required for a successful simulation. The
plain text files contain the names of all required files and the correct order
for reading these files into your simulation tool.
<instance_name> _sim/aldec Simulation files for Riviera-PRO simulation tools
<instance_name> _sim/cadence Simulation files for Cadence simulation tools
<instance_name> _sim/mentor Simulation files for Mentor simulation tools
UG-01080
2015.01.19
Figure 1-3: Directory Structure for Generated Files
Running a Simulation Testbench
1-7
Table 1-2: Transceiver PHY Files and Directories
The following table describes the key files and directories for the parameterized transceiver PHY IP core
and the simulation environment which are in clear text.
<project_dir>The top-level project directory.
<instance_name> .v or .vhdThe top-level design file.
<instance_name> .qipA list of all files necessary for Quartus II compila‐
<instance_name> .bsfA Block Symbol File (.bsf) for your transceiver
File NameDescription
tion.
PHY.
<project_dir>/<instance_name>/The directory that stores the HDL files that define
the protocol-specific PHY IP core. These files are
used for synthesis.
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
Altera Corporation
1-8
Running a Simulation Testbench
File NameDescription
sv_xcvr_native.svDefines the transceiver. It includes instantiations of
the PCS and PMA modules and Avalon-MM PHY
management interface.
stratixv_hssi_ <module_name> _rbc. svThese files perform rule based checking for the
module specified. For example, if the PLL type, data
rate, and FPGA fabric transceiver interface width
are not compatible, the checker reports an error.
altera_wait_generate.vGenerates waitrequest for protocol-specific
transceiver PHY IP core that includes backpressure.
alt_reset_ctrl_tgx_cdrauto.svIncludes the reset controller logic.
<instance_name> _phy_assignments.qipIncludes an example of the PLL_TYPE assignment
statement required to specify the PLL type for each
PLL in the design. The available types are clock
multiplier unit (CMU) and auxiliary transmit
(ATX).
UG-01080
2015.01.19
<project_dir>/<instance_name> _sim/ altera_xcvr_
The simulation directory.
<PHY_IP_name>/
<project_dir>/<instance_name>_sim/ aldecSimulation files for Riviera-PRO simulation tools.
<project_dir>/<instance_name>_sim/ cadenceSimulation files for Cadence simulation tools.
<project_dir>/<instance_name>_sim/ mentorSimulation files for Mentor simulation tools.
<project_dir>/<instance_name>_sim/ synopsysSimulation files for Synopsys simulation tools.
The Verilog and VHDL transceiver PHY IP cores have been tested with the following simulators:
• ModelSim SE
• Synopsys VCS MX
• Cadence NCSim
If you select VHDL for your transceiver PHY, only the wrapper generated by the Quartus II software is in
VHDL. All the underlying files are written in Verilog or System Verilog. To enable simulation using a
VHDL-only ModelSim license, the underlying Verilog and System Verilog files for the transceiver PHY
are encrypted so that they can be used with the top-level VHDL wrapper without using a mixed-language
simulator.
For more information about simulating with ModelSim, refer to the Mentor Graphics ModelSim Support
chapter in volume 3 of the Quartus II Handbook.
The transceiver PHY IP cores do not support the NativeLink feature in the Quartus II software.
Generating Custom Simulation Scripts for Multiple Transceiver PHYs with ip-make-simscript
Use the ip-make-simscript utility to generate simulation command scripts for multiple transceiver
PHYs or Qsys systems. Specify all Simulation Package Descriptor files (.spd). The .spd files list the
required simulation files for the corresponding IP core. The MegaWizard Plug-In Manager and Qsys
generate the .spd files.
Altera Corporation
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
UG-01080
2015.01.19
When you specify multiple .spd files, the ip-make-simscript utility generates a single simulation script
containing all required simulation information. The default value of TOP_LEVEL_NAME is the
TOP_LEVEL_NAME defined in the IP core or Qsys .spd file. If this is not the top-level instance in your
design, specify the top-level instance of your testbench or design.
You can set appropriate variables in the script or edit the variable assignments directly in the script. If the
simulation script is a Tcl file that can be sourced in the simulator, set the variables before sourcing the
script. If the simulation script is a shell script, pass in the variables as command-line arguments to shell
script.
To run ip-make-simscript , type the following at the command prompt:
The protocol-specific and native transceiver PHYs are not supported in Qsys in the current release.
Introduction to the Protocol-Specific and Native Transceiver PHYs
Send Feedback
Altera Corporation
2015.01.19
<path>
Installation directory
ip
Contains the Altera IP Library and third-party IP cores
altera
Contains the Altera IP Library
alt_mem_if
Contains the UniPHY IP core files
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Getting Started Overview
2
UG-01080
Subscribe
Send Feedback
This chapter provides a general overview of the Altera IP core design flow to help you quickly get started
with any Altera IP core.
The Altera IP Library is installed as part of the Quartus II installation process. You can select and
parameterize any Altera IP core from the library. Altera provides an integrated parameter editor that
allows you to customize IP cores to support a wide variety of applications. The parameter editor guides
you through the setting of parameter values and selection of optional ports. The following sections
describe the general design flow and use of Altera IP cores.
Installation and Licensing of IP Cores
The Altera IP Library is distributed with the Quartus II software and downloadable from the Altera
website.
The following figure shows the directory structure after you install an Altera 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 2-1: IP Core Directory Structure
You can evaluate an IP core in simulation and in hardware until you are satisfied with its functionality
and performance. Some IP cores require that you purchase a license for the IP core when you want to take
your design to production. After you purchase a license for an Altera IP core, you can request a license file
from the Altera Licensing page of the Altera website and install the license on your computer. For
additional information, refer to Altera Software Installation and Licensing.
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
ISO
9001:2008
Registered
Select Design Flow
Specify Parameters
Qsys or
SOPC Builder
Flow
MegaWizard
Flow
Complete Qsys or
SOPC Builder System
Specify Parameters
IP Complete
Perform
Functional Simulation
Debug Design
Does
Simulation Give
Expected Results?
Yes
Optional
Add Constraints
and Compile Design
2-2
Design Flows
Related Information
• Altera
• Altera Licensing
• Altera Software Installation and Licensing
Design Flows
This section describes how to parameterize Altera IP cores.
You can use the following flow(s) to parameterize Altera IP cores:
Figure 2-2: Design Flows
(2)
UG-01080
2015.01.19
The MegaWizard Plug-In Manager flow offers the following advantages:
• Allows you to parameterize an IP core variant and instantiate into an existing design
• For some IP cores, this flow generates a complete example design and testbench
(2)
Altera IP cores may or may not support the Qsys and SOPC Builder design flows.
Altera Corporation
Getting Started Overview
Send Feedback
UG-01080
2015.01.19
MegaWizard Plug-In Manager Flow
This section describes how to specify parameters and simulate your IP core with the MegaWizard Plug-In
Manager.
The MegaWizard™ Plug-In Manager flow allows you to customize your IP core and manually integrate
the function into your design.
Specifying Parameters
To specify IP core parameters, follow these steps:
1. Create a Quartus II project using the New Project Wizard available from the File menu.
2. In the Quartus II software, launch the IP Catalog.
3. You can select the IP core for your protocol implementation from the IP Catalog.
4. Specify the parameters on the Parameter Settings pages. For detailed explanations of these
parameters, refer to the "Parameter Settings" chapter in this document or the "Documentation" button
in the MegaWizard parameter editor.
Note: Some IP cores provide preset parameters for specific applications. If you wish to use preset
parameters, click the arrow to expand the Presets list, select the desired preset, and then click
Apply. To modify preset settings, in a text editor modify the <installation directory>/ip/altera/
alt_mem_if_interfaces/alt_mem_if_<memory_protocol>_emif/
alt_mem_if_<memory_protocol>_mem_model.qprs file.
5. If the IP core provides a simulation model, specify appropriate options in the wizard to generate a
simulation model.
MegaWizard Plug-In Manager Flow
2-3
Note:
Altera IP supports a variety of simulation models, including simulation-specific IP functional
simulation models and encrypted RTL models, and plain text RTL models. These are all
cycle-accurate models. The models allow for fast functional simulation of your IP core instance
using industry-standard VHDL or Verilog HDL simulators. For some cores, only the plain text
RTL model is generated, and you can simulate that model.
Note: For more information about functional simulation models for Altera IP cores, refer to
Simulating Altera Designs in volume 3 of the Quartus II Handbook.
Caution: Use the simulation models only for simulation and not for synthesis or any other purposes.
Using these models for synthesis creates a nonfunctional design.
6. If the parameter editor includes EDA and Summary tabs, follow these steps:
a. Some third-party synthesis tools can use a netlist that contains the structure of an IP core but no
detailed logic to optimize timing and performance of the design containing it. To use this feature if
your synthesis tool and IP core support it, turn on Generate netlist.
b. On the Summary tab, if available, select the files you want to generate. A gray checkmark indicates
a file that is automatically generated. All other files are optional.
Note:
If file selection is supported for your IP core, after you generate the core, a generation report
(<variation name>.html)appears in your project directory. This file contains information
about the generated files.
7. Click the Finish button, the parameter editor generates the top-level HDL code for your IP core, and a
simulation directory which includes files for simulation.
Getting Started Overview
Send Feedback
Altera Corporation
2-4
Simulate the IP Core
Note: The Finish button may be unavailable until all parameterization errors listed in the messages
window are corrected.
8. Click Yes if 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.
You can now integrate your custom IP core instance in your design, simulate, and compile. While
integrating your IP core instance into your design, you must make appropriate pin assignments. You can
create a virtual pin to avoid making specific pin assignments for top-level signals while you are simulating
and not ready to map the design to hardware.
For some IP cores, the generation process also creates complete example designs. An example design for
hardware testing is located in the < variation_name > _example_design/example_project/ directory. An
example design for RTL simulation is located in the < variation_name > _example_design/simulation/
directory.
Note:
For information about the Quartus II software, including virtual pins, refer to Quartus II Help.
Related Information
• Simulating Altera Designs
• Quartus II Help
Simulate the IP Core
This section describes how to simulate your IP core.
UG-01080
2015.01.19
You can simulate your IP core variation with the functional simulation model and the testbench or
example design generated with your IP core. 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 provided
with the testbench.
For more information about simulating Altera IP cores, refer to Simulating Altera Designs in volume 3 of
the Quartus II Handbook.
Related Information
Simulating Altera Designs
Altera Corporation
Getting Started Overview
Send Feedback
2015.01.19
10GBASE-R PHY IP Core
10.3125 Gbps serial
XFI/SFP+
Stratix V FPGA
PMA
Hard PCS
10GBASE-R
64b/66b
Scrambler
Gearbox
SDR XGMII
72 bits @ 156.25 Mbps
Avalon-MM
Control & Status
Transceiver
Reconfiguraiton
www.altera.com
101 Innovation Drive, San Jose, CA 95134
10GBASE-R PHY IP Core
3
UG-01080
Subscribe
Send Feedback
The Altera 10GBASE-R PHY IP Core implements the functionality described in IEEE Standard 802.3
Clause 45.
It delivers serialized data to an optical module that drives optical fiber at a line rate of 10.3125 gigabits per
second (Gbps). In a multi-channel implementation of 10GBASE-R, each channel of the 10GBASE-R PHY
IP Core operates independently. Both the PCS and PMA of the 10GBASE-R PHY are implemented as
hard IP blocks in Stratix V devices, saving FPGA resources.
Figure 3-1: 10GBASE-R PHY with Hard PCS with PMA in Stratix V Devices
Note: For a 10-Gbps Ethernet solution that includes both the Ethernet MAC and the 10GBASE-R PHY,
Note: For more detailed information about the 10GBASE-R transceiver channel datapath, clocking, and
The following figure illustrates a multiple 10 GbE channel IP core in a Stratix IV GT device. To achieve
higher bandwidths, you can instantiate multiple channels. The PCS is available in soft logic for Stratix IV
GT devices; it connects to a separately instantiated hard PMA. The PCS connects to an Ethernet MAC via
single data rate (SDR) XGMII running at 156.25 megabits per second (Mbps) and transmits data to a 10
Gbps transceiver PMA running at 10.3125 Gbps in a Stratix IV GT device.
2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are
trademarks of Altera Corporation and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as
trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance
of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any
products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information,
product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
refer to the 10-Gbps Ethernet MAC MegaCore Function User Guide.
channel placement, refer to the “10GBASE-R” section in the Transceiver Configurations in Stratix VDevices chapter of the Stratix V Device Handbook.
ISO
9001:2008
Registered
To MAC
To Embedded
Controller
Avalon-MM
connections
10GBASE-R PHY - Stratix IV Device
SDR XGMII
72 bits @ 156.25 Mbps
To MAC
SDR XGMII
72 bits @ 156.25 Mbps
Avalon-MM
PHY
Management
Bridge
M
S
S
Low Latency
Controller
S
Transceiver
Reconfig
Controller
Alt_PMA
10GBASE-R
10.3 Gbps
10.3125 Gbps serial
To HSSI Pins
PCS
10GBASE-R
(64b/66b)
S
S
Alt_PMA
10GBASE-R
10.3 Gbps
10.3125 Gbps serial
To HSSI Pins
PCS
10GBASE-R
(64b/66b)
S
S
3-2
10GBASE-R PHY IP Core
To make the most effective use of this soft PCS and PMA configuration for Stratix IV GT devices, you can
group up to four channels in a single quad and control their functionality using one Avalon-MM PHY
management bridge, transceiver reconfiguration module, and low controller. As this figure illustrates, the
Avalon-MM bridge Avalon-MM master port connects to the Avalon-MM slave port of the transceiver
reconfiguration and low latency controller modules so that you can update analog settings using the
standard Avalon-MM interface.
Note: This configuration does not require that all four channels in a quad run the 10GBASE-R protocol.
Figure 3-2: Complete 10GBASE-R PHY Design in Stratix IV GT Device
UG-01080
2015.01.19
Altera Corporation
The following figures illustrate the 10GBASE-R in Arria V GT, Arria V GZ, and Stratix V GX devices.
10GBASE-R PHY IP Core
Send Feedback
Transceiver
Reconfiguration
Controller
Data
Wiring
Soft PCS
TX PMA
PMA
RX PMA & CDR
CMU
PLL
Reset
Controller
Avalon-MM Slave
Avalon-MM Master
PMA + Reset Control & Status
(Memory Map)
10-GB BaseR
CSR
Tx Serial
Rx Serial
Reconfiguration
Avalon-MM
Management
Interface
to Embedded
Controller
Control & Status
Conduits
(Optional or by
I/F Specification)
Avalon-ST
Streaming
Data
Tx Data
Rx Data
Arria V GT 10GBASE-R Top Level
Arria V GT 10GBASE-R
To/From
Transceiver
S
M
S
S
UG-01080
2015.01.19
Figure 3-3: 10GBASE-R PHY IP Core In Arria V GT Devices
10GBASE-R PHY IP Core
3-3
10GBASE-R PHY IP Core
Send Feedback
Altera Corporation
Data
Wiring
PLD-PCS & Duplex PCS
PCS-PMA
PCS
TX PMA
PMA
RX PMA & CDR
Generic
PLL
Reset
Controller
Transceiver
Reconfiguration
Controller
S
PMA + Reset Control & Status
(Memory Map)
Tx Serial
Rx Serial
S
Control & Status
(Optional or by
I/F Specification)
Avalon-ST
Streaming
Data
Tx Data
Rx Data
Transceiver Protocol
Arria V GZ Transceiver Protocol
To/From
XCVR
Avalon-MM Slave
Avalon-MM Master
S
M
Avalon-MM
Management
Interface
to Embedded
Controller
3-4
10GBASE-R PHY IP Core
Figure 3-4: 10GBASE-R PHY IP Core In Arria V GZ Devices
UG-01080
2015.01.19
Altera Corporation
10GBASE-R PHY IP Core
Send Feedback
Data
Wiring
PLD-PCS & Duplex PCS
PCS-PMA
PCS
TX PMA
PMA
RX PMA & CDR
Generic
PLL
Reset
Controller
PMA + Reset Control & Status
(Memory Map)
Tx Serial
Rx Serial
S
Control & Status
(Optional or by
I/F Specification)
Avalon-ST
Streaming
Data
Tx Data
Rx Data
Transceiver Protocol
Stratix V Transceiver Protocol
To/From
XCVR
Avalon-MM Slave
Avalon-MM Master
S
M
Avalon-MM
Management
Interface
to Embedded
Controller
Transceiver
Reconfiguration
Controller
S
UG-01080
2015.01.19
Figure 3-5: 10GBASE-R PHY IP Core In Stratix V Devices
10GBASE-R PHY IP Core
3-5
10GBASE-R PHY IP Core
The following table lists the latency through the PCS and PMA for Arria V GT devices with a 66-bit PMA.
The FPGA fabric to PCS interface is 64 bits wide. The frequency of the parallel clock is 156.25 MHz which
is line rate (10.3125 Gpbs)/interface width (64).
Table 3-1: Latency for TX and RX PCS and PMA Arria V Devices
TX28131
RX3399
The following table lists the latency through the PCS and PMA for Stratix V devices with a 40-bit PMA.
The FPGA fabric to PCS interface is 64 bits wide. The frequency of the parallel clock is 156.25 MHz which
PCS (Parallel Clock CyclesPMA (UI)
is line rate (10.3125 Gbps)/interface width (64).
Send Feedback
Altera Corporation
3-6
10GBASE-R PHY Release Information
Table 3-2: Latency for TX and RX PCS and PMA Stratix V Devices
PCS (Parallel Clock Cycles)
MinimumMaximumMinimumMaximum
TX712812124
RX1433153443
Related Information
• IEEE 802.3 Clause 49
• 10-Gbps Ethernet MAC MegaCore Function User Guide