Device Family Support................................................................................................................................1-3
Definition: Device Support Level...................................................................................................1-4
Performance and Resource Utilization.....................................................................................................1-4
Primary MAC Address................................................................................................................................4-5
MAC Reset Control Register......................................................................................................................4-5
TX_Configuration and Status Registers................................................................................................... 4-6
Flow Control Registers..............................................................................................................................4-10
Unidirectional Control Registers.............................................................................................................4-12
RX Configuration and Status Registers.................................................................................................. 4-13
Interface Signals for LL Ethernet 10G MAC.......................................................5-1
Clock and Reset Signals...............................................................................................................................5-1
Low Latency Ethernet 10G MAC User Guide Document Revision History......................................A-1
Altera Corporation
2014.12.15
Client
Module
Altera FPGA
External PHY
Interface
Avalon-ST
XGMII/
GMII/MII
10M/100M/
LL 10GbE MAC
PHY
Serial
Interface
www.altera.com
101 Innovation Drive, San Jose, CA 95134
About LL Ethernet 10G MAC
1
UG-01144
Subscribe
Send Feedback
The Altera® Low Latency (LL) Ethernet 10G (10GbE) Media Access Controller (MAC) IP core is a
configurable component that implements the IEEE 802.3-2008 specification. The MAC IP core offers the
following operating modes:
• 10G—single-speed mode that implements the Avalon® Streaming (Avalon-ST) interface on the client
side and the 32-bit single data rate (32-bit SDR) XGMII on the network side.
• 1G/10G—dual-speed mode that implements the Avalon-ST interface on the client side and GMII/32bit SDR XGMII on the network side.
• 10M/100M/1G/10G—quad-speed mode that implements the Avalon-ST interface on the client side
and MII/GMII/32-bit SDR XGMII on the network side.
To build a complete Ethernet subsystem in an Altera device and connect it to an external device, you can
use the LL Ethernet 10G MAC IP core with an Altera PHY IP core such as a soft XAUI PHY or any of the
supported PHYs.
The following figure shows a system with the LL Ethernet 10G MAC IP core.
Figure 1-1: Typical Application of LL Ethernet 10G MAC
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
1-2
Features
Features
The LL Ethernet 10G MAC supports the following features:
• Full-duplex MAC in four operating modes: 10G, 1G/10G, or 10M/100M/1G/10G).
• Three variations for selected operating modes: MAC Tx only block, MAC Rx only block, and MAC Tx
• Interfaces:
• Virtual local area network (VLAN) and stacked VLAN tagged frames decoding (type 'h8100).
• Cyclic redundancy code (CRC)-32 computation and insertion on the TX datapath. Optional CRC
• Deficit idle counter (DIC) for optimized performance with average inter-packet gap (IPG) for LAN
• Optional statistics collection on TX and RX datapaths.
• Programmable maximum length of TX and RX data frames up to 64 Kbytes (KB).
• Programmable promiscuous (transparent) mode.
• Optional padding insertion on the TX datapath and termination on the RX datapath.
• Ethernet flow control using pause frames.
• Optional timestamping feature as specified by IEEE 1588v2 for the following configurations:
UG-01144
2014.12.15
and MAC Rx block.
• Client-side—32-bit Avalon-ST interface.
• PHY-side—32-bit XGMII, 16-bit GMII, or 4-bit MII depending on the operating mode.
• Management—32-bit Avalon-MM interface.
checking and forwarding on the RX datapath.
applications.
• 10GbE MAC with 10GBASE-R PHY IP core
• 1G/10GbE MAC with 1G/10GbE PHY IP core
• 10M/100M/1G/10GbE MAC with 10M-10GbE PHY IP core
• Optional features for 10G operating mode:
• Unidirectional feature as specified by IEEE 802.3 (Clause 66).
• Priority-based flow control (PFC) with programmable pause quanta. PFC supports 2 to 8 priority
queues.
• Preamble passthrough mode on TX and RX datapaths, which allows user-defined preamble in the
client frame. This feature is supported only in the 10G operating mode.
• 10GBASE-R register mode on the TX and RX datapaths, which enables lower latency.
Altera Corporation
About LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
Release Information
The following table lists information about this release of the LL Ethernet 10G MAC IP core.
Table 1-1: Release Information
Version15.0
Release DateMay 2015
Ordering CodeIP-10GEUMAC
Product IDID 0119
Vendor ID6AF7
Altera verifies that the current version of the Quartus II software compiles the previous version of each
MegaCore function, if this MegaCore function was included in the previous release. 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.
ItemDescription
Release Information
1-3
Related Information
• MegaCore IP Library Release Notes and Errata
• Errata for Low Latency Ethernet 10G MAC MegaCore function in the Knowledge Base
Device Family Support
The IP core provides the following support for Altera device families.
Table 1-2: Device Family Support for LL Ethernet 10G MAC
Device FamilySupport
With 1588 FeatureWithout 1588 Feature
Arria® 10Preliminary-I2-I3
Arria V GZFinal-I3, -C3-I4, -C4
Stratix® VFinal-I3, -C3-I4, -C4
The following table lists possible configurations and the devices each configuration supports:
Table 1-3: Device Family Support for Configurations
Minimum Speed Grade
10G MAC with 10GBASE-R PHYArria V GZNoYes
10G MAC with 10GBASE-R PHY and IEEE
1588v2
About LL Ethernet 10G MAC
Send Feedback
ConfigurationArria V GX/GT/
GZ
Arria V GZNoYes
Arria 10Stratix V
Altera Corporation
1-4
Definition: Device Support Level
UG-01144
2014.12.15
ConfigurationArria V GX/GT/
10G MAC with Arria 10 Transceiver Native PHY
GZ
NoYesNo
Arria 10Stratix V
presets:
• 10GBASE-R
• 10GBASE-R Low Latency
• 10GBASE-R Register Mode
• 10GBASE-R w/KR-FEC
10M/100M/1G/10G MACArria V GZYesYes
10M/100M/1G/10G MAC with IEEE 1588v2Arria V GZYesYes
10M/100M/1G/10G MAC with Backplane
Arria V GZYesYes
Ethernet 10GBASE-KR PHY
10M/100M/1G/10G MAC with 1G/10GbE PHY
Arria V GZYesYes
MegaCore function and IEEE 1588v2
Definition: Device Support Level
Altera IP cores provide the following support for Altera device families:
• Preliminary support—Altera verifies the IP core 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. This IP core can be used in production designs with caution.
• Final support—Altera verifies with IP core with final timing models for this device family. The IP core
meets all functional and timing requirements for the device family. This IP core is ready to be used in
production designs.
Performance and Resource Utilization
Resource Utilization
The following resource estimation is obtained by compiling the LL 10GbE MAC with the Quartus II
software targeting a commercial Stratix V. These estimates are based on the number of ALMs needed
minus the recoverable and unavailable ALMs due to the virtual I/Os (in Quartus II Fitter terms). The
estimates also apply to other supported devices.
Table 1-4: Resource Utilization for LL Ethernet 10G MAC
This chapter provides a general overview of the Altera IP core design flow to help you quickly get started
with LL Ethernet 10G MAC. 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 the MAC IP core to support a wide variety of
applications. The parameter editor guides you through the setting of parameter values and selection of
optional ports.
Introduction to Altera IP Cores
Altera and strategic IP partners offer a broad portfolio of off-the-shelf, configurable IP cores optimized for
Altera devices. The Quartus® II software installation includes the Altera IP library. You can integrate
optimized and verified Altera IP cores into your design to shorten design cycles and maximize
performance. You can evaluate any Altera IP core in simulation and compilation in the Quartus II
software. The Quartus II software also supports integration of IP cores from other sources. Use the IP
Catalog to efficiently parameterize and generate synthesis and simulation files for a custom IP variation.
The Altera IP library includes the following categories of IP cores:
• Basic functions
• DSP functions
• Interface protocols
• Low power functions
• Memory interfaces and controllers
• Processors and peripherals
Note:
The IP Catalog (Tools > IP Catalog) and parameter editor replace the MegaWizard™ Plug-In
Manager for IP selection and parameterization, beginning in Quartus II software version 14.0. Use
the IP Catalog and parameter editor to locate and paramaterize Altera and other supported IP
cores.
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
acds
quartus - Contains the Quartus II software
ip - Contains the Altera IP Library and third-party IP cores
altera - Contains the Altera IP Library source code
<IP core name> - Contains the IP core source files
2-2
Installing and Licensing IP Cores
Installing and Licensing IP Cores
The Altera IP Library provides many useful IP core functions for your production use without purchasing
an additional license. Some Altera MegaCore® IP functions require that you purchase a separate license
for production use. However, the OpenCore® feature allows evaluation of any Altera IP core in simulation
and compilation in the Quartus II software. After you are satisfied with functionality and perfformance,
visit the Self Service Licensing Center to obtain a license number for any Altera product.
Figure 2-1: IP Core Installation Path
Note: The default IP installation directory on Windows is <drive>:\altera\<version number>; on Linux it is
<home directory>/altera/ <version number>.
UG-01144
2014.12.15
Related Information
• Altera Licensing Site
• Altera Software Installation and Licensing Manual
Specifying IP Core Parameters and Options
You can quickly configure a custom IP variation in the parameter editor. Use the following steps to
specify IP core options and parameters in the parameter editor. Refer to Specifying IP Core Parametersand Options (Legacy Parameter Editors) for configuration of IP cores using the legacy parameter editor.
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. Specify a top-level name for your custom IP variation. The parameter editor saves the IP variation
settings in a file named <your_ip>.qsys. Click OK.
3. Specify the parameters and options for your IP variation in the parameter editor, including one or
more of the following. Refer to your IP core user guide for information about specific IP core
parameters.
• Optionally select preset parameter values if provided for your IP core. Presets specify initial
parameter values for specific applications.
• Specify parameters defining the IP core functionality, port configurations, and device-specific
features.
• Specify options for processing the IP core files in other EDA tools.
4. Click Generate HDL, the Generation dialog box appears.
5. Specify output file generation options, and then click Generate. The IP variation files generate
according to your specifications.
6. To generate a simulation testbench, click Generate > Generate Testbench System.
Altera Corporation
Getting Started with LL Ethernet 10G MAC
Send Feedback
View IP port
and parameter
details
Apply preset parameters for
specific applications
Specify your IP variation name
and target device
UG-01144
2014.12.15
Parameterizing the IP Core
7. To generate an HDL instantiation template that you can copy and paste into your text editor, click
Generate > HDL Example.
8. Click Finish. The parameter editor adds the top-level .qsys file to the current project automatically. Ifyou are prompted to manually add the .qsys file to the project, click Project > Add/Remove Files in
Project to add the file.
9. After generating and instantiating your IP variation, make appropriate pin assignments to connect
ports.
Figure 2-2: IP Parameter Editor
2-3
Parameterizing the IP Core
1. Select the speed for the LL Ethernet 10G MAC IP.
2. Turn on the necessary MAC Options.
3. Type the number of PFC priorities.
4. Select the datapath option.
5. Turn on the necessary resource optimization options. Some options are grayed out if it is not
supported in a selected configuration.
6. Turn on the necessary timestamp options. Some options are grayed out if it is not supported in a
selected configuration.
7. Click Finish.
Getting Started with LL Ethernet 10G MAC
Send Feedback
Altera Corporation
2-4
Parameter Settings
Related Information
• Parameter Settings on page 2-4
Parameter Settings
You customize the MAC IP core by specifying the parameters on the parameter editor in the Quartus II
software. The parameter editor enables only the parameters that are applicable to the selected speed.
ParameterValueDescription
UG-01144
2014.12.15
Speed10G, 1G/10G, 10M/
100M/1G/10G
Select the desired speed. By default, 10 Gbps is
selected.
If you turn on the Enable 10GBASE-R registermode parameter, only 10 Gbps is available.
Datapath optionsTX only, RX only, TX &RXSelect the MAC variation to instantiate.
• TX only—instantiates MAC TX.
• RX only—instantiates MAC RX.
• TX & RX—instantiates both MAC TX and
RX.
If you turn on the Enable 10GBASE-R registermode parameter, only the TX & RX option is
available.
Enable ECC on memory
blocks
Enable preamble passthrough mode
On, OffTurn on this option to enable error detection
and correction on memory blocks.
On, OffTurn on this option to enable preamble pass-
through mode. You must also set the tx_
preamble_control, rx_preamble_control,
and rx_custom_preamble_forward registers to
1. When enabled, the MAC IP core allows
custom preamble in data frames on the
transmit and receive datapaths.
Enable priority-based flow
control (PFC)
Altera Corporation
This parameter applies only to 10Gbps MAC
variations.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
On, OffTurn on this option to enable PFC. You must
also set the tx_pfc_priority_enable[n]bit to
1 and specify the number of priority queues in
the Number of PFC queues field.
This parameter applies only to 10Gbps MAC
variations.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
Getting Started with LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
Parameter Settings
ParameterValueDescription
Number of PFC queues2—8Specify the number of PFC queues. This
parameter is only enabled if you turn Enablepriority-based flow control (PFC).
Enable unidirectional featureOn, OffTurn on this option to enable unidirectional
feature as specified in the IEEE802.3 specifica‐
tion (Clause 66). This feature is only supported
in 10Gbps speed mode.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
2-5
Enable 10GBASE-R register
mode
On, OffTurn on this option to enable 10GBASE-R
register mode on the transmit and receive
datapaths to further reduce the MAC and PHY
round-trip latency. In this mode, the MAC
datapaths must run at 322.265625 MHz. This
feature is only supported in 10Gbps speed
mode.
Enable supplementary
address
On, OffTurn on this option to enable supplementary
addresses. You must also set the EN_SUPP0/1/2/
3 bits in the rx_frame_control register to 1.
Enable statistics collectionOn, OffTurn on this option to collect statistics on the
transmit and receive datapaths.
Statistics countersMemory-based,
Register-based
Specify the implementation of the statistics
counters. When you turn on Statisticscollection, the default implementation of the
counters is Memory-based.
• Memory-based—selecting this option frees
up logic elements. The MAC IP core does
not clear memory-based counters after they
are read.
• Register-based—selecting this option frees
up the memory. The MAC IP core clears
register-based statistic counters after the
counters are read.
Enable time stamping
Enable PTP one-step clock
support
Getting Started with LL Ethernet 10G MAC
Send Feedback
On, OffTurn on this option to enable time stamping on
the transmit and receive datapaths.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
On, OffTurn on this option to enable 1-step time
stamping. This option is enabled only when
you turn on time stamping.
Altera Corporation
2-6
Generated Files
ParameterValueDescription
Timestamp fingerprint width1–32Specify the width of the timestamp fingerprint
in bits on the transmit path. The default value is
4 bits.
UG-01144
2014.12.15
Time of Day FormatEnable 96b Time of Day
Format only, Enable 64b
Time of Day Format
only, Enable both 96b
and 64b Time of Day
Format
Use legacy Ethernet 10G
On, OffTurn on this option to maintain compability
MAC XGMII
Use legacy Ethernet 10G
On, OffTurn on this option to maintain compability
MAC Avalon MemoryMapped Interface
Use legacy Ethernet 10G
On, OffTurn on this option to maintain compability
MAC Avalon Streaming
Interface
Specify the time of day format.
with the 64-bit Ethernet 10G MAC on the
XGMII.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
with the 64-bit Ethernet 10G MAC on the
Avalon-MM Interface.
with the 64-bit Ethernet 10G MAC on the
Avalon-ST interface.
This parameter is not available if you turn on
the Enable 10GBASE-R register mode
parameter.
Generated Files
The following table describes the generated files and other files that might be in your project directory.
The names and types of generated files specified in the MegaWizard Plug-In Manager report vary
depending on whether you create your design with VHDL or Verilog HDL.
Table 2-1: Generated Files
ExtensionDescription
<variation name>.v or .vhd A MegaCore function variation file, which defines a VHDL or Verilog HDL
<variation name>.cmpA VHDL component declaration file for the MegaCore function variation.
<variation name>.qsysA Qsys file for the MAC IP core design.
Altera Corporation
description of the custom MegaCore function. Instantiate the entity defined
by this file inside of your design. Include this file when compiling your
design in the Quartus II software.
Add the contents of this file to any VHDL architecture that instantiates the
MegaCore function.
Getting Started with LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
ExtensionDescription
<variation name>.qipContains Quartus II project information for your MegaCore function
variation.
<variation name>.bsfQuartus II symbol file for the MegaCore function variation. Use this file in
the Quartus II block diagram editor.
<variation name>.sipContains IP core library mapping information required by the Quartus II
software.The Quartus II software generates a . sip file during generation of
some Altera IP cores. You must add any generated .sip file to your project
for use by NativeLink simulation and the Quartus II Archiver.
<variation name>.spdContains a list of required simulation files for your MegaCore function.
Simulating Altera IP Cores in other EDA Tools
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.
Simulating Altera IP Cores in other EDA Tools
2-7
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.
Getting Started with LL Ethernet 10G MAC
Send Feedback
Altera Corporation
Post-fit timing
simulation netlist
Post-fit timing simulation (3)
Post-fit functional
simulation netlist
Post-fit functional
simulation
Analysis & Synthesis
Fitter
(place-and-route)
TimeQuest Timing Analyzer
Device Programmer
Quartus II
Design Flow
Gate-Level Simulation
Post-synthesis
functional
simulation
Post-synthesis functional
simulation netlist
(Optional) Post-fit
timing simulation
RTL Simulation
Design Entry
(HDL, Qsys, DSP Builder)
Altera Simulation
Models
EDA
Netlist
Writer
2-8
Upgrading Outdated IP Cores
Figure 2-3: Simulation in Quartus II Design Flow
UG-01144
2014.12.15
Note: Post-fit timing simulation is supported only for Stratix IV and Cyclone IV devices in the current
version of the Quartus II software. 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 support 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. Use the simulation
models only for simulation and not for synthesis or any other purposes. Using these models for
synthesis creates a nonfunctional design.
Related Information
Simulating Altera Designs
Upgrading Outdated IP Cores
Altera IP components are version-specific with the Quartus II software. The Quartus II software alerts
you when your IP core is outdated. Click Project > Upgrade IP Components to easily identify and
upgrade outdated IP cores.
To upgrade outdated IP cores appropriately, your restored project archive must retain the original
Quartus II-generated file structure. Failure to upgrade outdated IP cores can result in a mismatch between
the outdated IP core variation and the current supporting libraries.
Altera Corporation
Getting Started with LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
Migrating IP Cores to a Different Device
Altera verifies that the current version of the Quartus II software compiles the previous version of each IP
core. The MegaCore IP Library Release Notes and Errata reports any verification exceptions. Altera does
not verify compilation for IP cores older than the previous release.
Figure 2-4: Upgrading IP Components in Project Navigator
Related Information
MegaCore IP Library Release Notes and Errata
2-9
Migrating IP Cores to a Different Device
IP migration allows you to target the latest device families with IP originally generated for a different
device. Some Altera IP cores migrate automatically, some IP cores require manual IP regeneration, and
some do not support device migration and must be replaced in your design.
The text and icons in the Upgrade IP Components dialog box identifies the migration support for each
IP core in the design.
Note:
Migration of some IP cores requires installed support for the original and migration device
families. For example, migration from a Stratix V device to an Arria 10 device requires installation
of Stratix V and Arria 10 device families with the Quartus II software.
Getting Started with LL Ethernet 10G MAC
Send Feedback
Altera Corporation
Double-click to
upgrade in editor
(no auto upgrade)
Upgrade required
Migration details
Supports Auto
upgrade
Upgrade success
2-10
Migrating IP Cores to a Different Device
Figure 2-5: Upgrading IP Cores
UG-01144
2014.12.15
1. Click File > Open Project and open the Quartus II project containing IP for migration to another
device in the original version of the Quartus II software.
2. To specify a different target device for migration, click Assignments > Device and select the target
device family.
3. To display IP cores requiring migration, click Project > Upgrade IP Components. The Description
field prompts you to run auto update or double-click IP cores for migration.
4. To migrate one or more IP cores that support automatic upgrade, ensure that the Auto Upgrade
option is turned on for the IP core(s), and then click Perform Automatic Upgrade. The Status and
Version columns update when upgrade is complete.
5. To migrate an IP core that does not support automatic upgrade, double-click the IP core name, andthen click OK. The parameter editor appears.
a. If the parameter editor specifies a Currently selected device family, turn off Match project/
default, and then select the new target device family.
b. Click Finish to migrate the IP variation using best-effort mapping to new parameters and settings.
A new parameter editor opens displaying best-effort mapped parameters.
c. Click Generate HDL, and then confirm the Synthesis and Simulation file options. Verilog HDL is
the defauilt output file format specified. If your original IP core was generated for VHDL, select
VHDL to retain the original output format.
Altera Corporation
Getting Started with LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
Design Considerations
2-11
6. To regenerate the new IP variation for the new target device, click Generate. When generation is
complete, click Close.
7. Click Finish to complete migration of the IP core. Click OK if you are prompted to overwrite IP core
files. The Device Family column displays the new target device name when migration is complete. The
migration process replaces <my_ip>.qip with the <my_ip>.qsys top-level IP file in your project.
Note: If migration does not replace <my_ip>.qip with <my_ip>.qsys, click Project > Add/Remove
Files in Project to replace the file in your project.
8. Review the latest parameters in the parameter editor or generated HDL for correctness. IP migration
may change ports, parameters, or functionality of the IP core. During migration, the IP core's HDL
generates into a library that is different from the original output location of the IP core. Update any
assignments that reference outdated locations. If your upgraded IP core is represented by a symbol in a
supporting Block Design File schematic, replace the symbol with the newly generated <my_ip>.bsf
after migration.
Note: The migration process may change the IP variation interface, parameters, and functionality.
This may require you to change your design or to re-parameterize your variant after the
Upgrade IP Components dialog box indicates that migration is complete. The Description
field identifies IP cores that require design or parameter changes.
Related Information
Altera IP Release Notes
Design Considerations
Migrating from Legacy Ethernet 10G MAC to LL Ethernet 10G MAC
Altera recommends the following migration path. Migrating your existing design in this manner allows
you to take advantage of the benefits of LL Ethernet 10G MAC—low resource count and low latency.
Migration—32-bit Datapath on Avalon-ST Interface
This migration path implements 32-bit datapath on the Avalon ST and Avalon-MM interfaces.
1. Instantiate the LL Ethernet 10G MAC IP core in your design. If you are using a PHY with 64-bit SDR
XGMII interface, turn on the Use legacy Ethernet 10G MAC XGMII Interface option.
2. Modify your user logic to accommodate 32-bit datapaths on Avalon-ST TX and RX data interfaces.
3. Ensure that tx_312_5_clk and rx_312_5_clk are connected to 312.5-MHz clock sources. Altera
recommends that you use the same clock source for these clock signals.
4. Update the register offsets to the offsets of the LL Ethernet 10G MAC. The configuration registers of
the LL Ethernet 10G MAC allow access to new features such as error correction and detection on
memory blocks.
5. If you turn on the Use legacy Ethernet 10G MAC XGMII Interface option, add a 156.25 MHz clock
source for tx_156_25_clk and rx_156_25_clk. This 156.25 MHz clock source must be rise-to-rise
synchronous to the 312.5 MHz clock source.
6. Ensure that csr_clk is within 125 MHz to 156.25 MHz. Otherwise, some statistic counters may not be
accurate.
Getting Started with LL Ethernet 10G MAC
Send Feedback
Altera Corporation
2-12
Migration—Maintains 64-bit on Avalon-ST Interface
Migration—Maintains 64-bit on Avalon-ST Interface
This migration path implements 32-bit to 64-bit adapters on the Avalon ST interface and XGMII, and
uses the same register offsets to maintain backward compatibility with the legacy 10-Gbps Ethernet
(10GbE) MAC IP Core.
1. Instantiate the LL Ethernet 10G MAC IP core in your design. To maintain compatibility on the
interfaces, turn on the Use legacy Ethernet 10G MAC XGMII Interface, Use legacy Ethernet 10G
MAC Avalon Memory-Mapped Interface, and Use legacy Ethernet 10G MAC Avalon Streaming
Interface options.
2. Ensure that tx_312_5_clk and rx_312_5_clk are connected to 312.5-MHz clock sources. Altera
recommends that you use the same clock source for these clock signals.
3. Add a 156.25-MHz clock source for tx_156_25_clk and rx_156_25_clk. This 156.25 MHz clock
source must be rise-to-rise synchronous to the 312.5 MHz clock source.
4. Ensure that csr_clk is within 125 MHz to 156.25 MHz. Otherwise, some statistic counters may not be
accurate.
Timing Constraints
Altera provides timing constraint files (.sdc) to ensure that the IP core meets the design timing
requirements in Altera devices. The files constraints the false paths and multi-cycle paths in the IP core.
The timing constraints files are specified in the <variation_name>.qip file and is automatically included in
the Quartus II project files.
UG-01144
2014.12.15
The timing constraints files are in the IP directory. You can edit these files as necessary. They are for clock
crossing logic and grouped as below:
• Pseudo-static CSR fields
• Clock crosser
• Dual clock FIFO
Note:
For the IP to work correctly, there must be no other timing constraints files cutting or overriding
the paths, for example, set_false_path, set_clock_groups, at the project level.
Pseudo-Static CSR Fields
Most of the configuration registers in the MAC IP core must not be programmed when the MAC is in
operation. As such, they are not synchronized to reduce resource usage. These registers are all in the
set_false_path constraint.
Clock Crosser
Clock crossers perform multi-bit signals crossing from one clock domain to another.
The working principle of the clock crosser is to let the crossed-over data stabilize first before indicating
that the data is valid in the latched clock domain. Using such structure, the data bits must not skew for
more than one latched clock period. The timing constraint file applies a common timing check over all
the clock crossers irrespective of their latched clock domain. This is over-pessimistic for signals crossing
into the CSR clock, but there are no side-effects, like significant run-time impact and false violations,
during the internal testing. If your design runs into clock crosser timing violation paths within the IP and
the latched clock domain is csr_clk, you can dismiss the violation manually or by editing the .sdc file if
the violation is less than one csr_clk period.
Altera Corporation
Getting Started with LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
Dual Clock FIFO
Dual Clock FIFO
2-13
The timing constraint file uses the set_net_delay to constraint the fitter placement and set_max_skew to
perform timing check on the paths. For a project with very high device utilization, Altera recommends
that you implement addition steps like floor planning or LogicLock to aid the place-and-route process.
The additional steps can give a more consistent timing closure along these paths instead of only relying on
the set_net_delay.
A caveat of using set_max_skew is that it does not analyze whether the insertion delay of the path in
concern exceeds a limit. In other words, a path could meet skew requirement but have longer than
expected insertion delay. If this is not checked, it may cause functional failure in certain latency-sensitive
paths. Therefore, a custom script (alt_em10g32_clock_crosser_timing_info.tcl) is available for you to check
that the round-trip clock crosser delay is within expectation. To use this script, manually add it to the user
flow and run it. To ensure that the IP core operates correctly, the results must be positive (no error).
The bit skew of the dual clock FIFO gray-coded pointers must be within one 312.5 MHz clock period.
The timing constraint file uses the set_net_delay to constraint the fitter placement and set_max_skew to
perform timing check on the paths. For a project with very high device utilization, Altera recommends
that you implement addition steps like floor planning or LogicLock to aid the place-and-route process.
The additional steps can give a more consistent timing closure along these paths instead of only relying on
the set_net_delay.
Notes:
(1) Applies to 1G/10G and Multi Speed MAC only.
(2) Applies to Multi Speed MAC only.
(1)
(1)
(2)
(2)
www.altera.com
101 Innovation Drive, San Jose, CA 95134
Functional Description of LL Ethernet 10G MAC
3
UG-01144
Subscribe
Send Feedback
The Low Latency (LL) Ethernet 10G MAC IP core handles the flow of data between a client and an
Ethernet network through an Ethernet PHY. On the transmit path, the MAC IP core accepts client frames
and constructs Ethernet frames by inserting various control fields, such as checksums before forwarding
them to the PHY. Similarly, on the receive path, the MAC accepts Ethernet frames via a PHY, performs
checks, and removes the relevant fields before forwarding the frames to the client. You can configure the
MAC IP core to collect statistics on both transmit and receive paths.
Architecture
The LL Ethernet 10G MAC IP core is a composition of the following blocks: MAC receiver (MAC RX),
MAC transmitter (MAC TX), configuration and status registers, and clock and reset.
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
3-2
Interfaces
Interfaces
Table 3-1: Interfaces
InterfacesDescription
UG-01144
2014.12.15
Avalon-ST Interface
The client-side interface of the MAC employs the Avalon-ST protocol,
which is a synchronous point-to-point, unidirectional interface that
connects the producer of a data stream (source) to a consumer of the data
(sink). The key properties of this interface include:
• Frame transfers marked by startofpacket and endofpacket signals.
• Signals from source to sink are qualified by the valid signal.
• Errors marking a current packet are aligned with the end-of-packet cycle.
• Use of the ready signal by the sink to backpressure the source.
In the MAC IP core, the Avalon-ST interface acts as a sink in the TX
datapath and source in the RX datapath. This interface supports packets,
backpressure, and error detection. It operates at 312.5 MHz. The ready
latency on this interface is 0.
Avalon-MM Control and
Status Register Interface
The Avalon-MM control and status register interface is an Avalon-MM slave
port. This interface uses word addressing which provides access to the
configuration and status registers, and statistics counters.
XGMIIIn 10G mode, the network-side interface of the MAC IP core implements the
XGMII protocol. Depending on the configuration, the XGMII consists of 32or 64-bit data bus and 4- or 8-bit control bus operating at 312.5 MHz. This
interface operates at 322.265625 MHz if the 10GBASE-R register mode is
enabled. The data bus carries the MAC frame with the most significant byte
occupying the least significant lane.
GMII
MIIIn 10M or 100M mode, the network-side interface of the MAC IP core
Altera Corporation
In 1G/10G and 10M/100M/1G/10G operating modes, the network-side
interface of the MAC IP core implements 8 bits wide GMII protocol when
the MAC operates at 1 Gbps. This 8-bit interface supports gigabit operations
at 125 MHz.
implements the MII protocol. This 4-bit MII supports 10-Mbps and 100Mbps operations at 125 MHz, with a clock enable signal that divides the
clock to effective rates of 2.5 MHz for 10 Mbps and 25 MHz for 100 Mbps.
The inclusion and width of some signals depend on the operating mode and features selected.
Interfaces
3-3
Related Information
Interface Signals for LL Ethernet 10G MAC on page 5-1
Describes each signal in detail.
Functional Description of LL Ethernet 10G MAC
Send Feedback
Altera Corporation
Client - MAC Tx Interface
(optional)
Client Frame
MAC Frame
Destination
Addr[47:0]
Source
Addr[47:0]
Type/
Length[15:0]
Payload
[<p-1>:0]
Destination
Addr[47:0]
SFD[7:0]
Preamble
[55:0]
CRC32
[31:0]
PAD [<s>]
Source
Addr[47:0]
Client-Defined Preamble
[63:0]
(optional)
Type/
Length[15:0]
Payload
[<p-1>:0]
PAD [<s>]
CRC32
[31:0]
EFD[7:0]
IPG
[<l-1>:0]
Frame Length
(1)(2)
(3)
3-4
Frame Types
Frame Types
The MAC IP core supports the following frame types:
• Basic Ethernet frames, including jumbo frames.
• VLAN and stacked VLAN frames.
• Control frames, which include pause and PFC frames.
TX Datapath
The MAC TX receives the client payload data with the destination and source addresses, and appends
various control fields depending on the MAC configuration.
Figure 3-3: Typical Client Frame at TX Interface
UG-01144
2014.12.15
Padding Bytes Insertion
Address Insertion
Altera Corporation
By default, the MAC TX inserts padding bytes (0x00) into TX frames to meet the following minimum
payload length:
• 46 bytes for basic frames
• 42 bytes for VLAN tagged frames
• 38 bytes for stacked VLAN tagged frames
Ensure that CRC-32 insertion is enabled when padding bytes insertion is enabled.
You can disable padding bytes insertion by setting the tx_pad_control register to 0. When disabled, the
MAC IP core forwards the frames to the PHY-side interface without padding. Ensure that the minimum
payload length is met; otherwise the current frame may get corrupted. You can check for undersized
frames by referring to the statistics collected.
By default, the MAC TX retains the source address received from the client. You can configure the MAC
TX to replace the source address with the primary MAC address specified in the tx_addrins_macaddr0
and tx_addrins_macaddr1 registers by setting the bit tx_src_addr_override[0] to 1.
Functional Description of LL Ethernet 10G MAC
Send Feedback
tx_312_5_clk
avalon_st_tx_ready
avalon_st_tx_valid
avalon_st_tx_startofpacket
avalon_st_tx_endofpacket
avalon_st_tx_data[31:0]
avalon_st_tx_empty[1:0]
avalon_st_tx_error
...00000000
0
rx_312_5_clk
avalon_st_rx_ready
avalon_st_rx_valid
avalon_st_rx_startofpacket
avalon_st_rx_endofpacket
avalon_st_rx_data[31:0]
avalon_st_rx_empty[1:0]
avalon_st_rx_error[5:0]
...4EB30AF4
0
UG-01144
2014.12.15
CRC-32 Insertion
By default, the MAC TX computes and inserts CRC-32 checksum into TX frames. The MAC TX
computes the CRC-32 checksum over frame bytes that include the source address, destination address,
length, data, and padding bytes. The computation excludes the preamble and SFD bytes. The MAC TX
then inserts the CRC-32 checksum into the TX frame. Bit 31st of the checksum occupies the least signifi‐
cant bit of the first byte in the CRC field.
You can disable this function by setting the tx_crc_control[1] register bit to 0.
The following figure shows the timing diagram on the Avalon-ST data interfaces where CRC insertion is
enabled on transmit and CRC removal is disabled on receive. The frame from the client is without
CRC-32 checksum. The MAC TX inserts the CRC-32 checksum (4EB00AF4) into the frame. The frame is
then looped back to the RX datapath with the CRC-32 checksum.
Figure 3-4: Avalon-ST TX and RX Interfaces with CRC Insertion Enabled
CRC-32 Insertion
3-5
Functional Description of LL Ethernet 10G MAC
Send Feedback
Altera Corporation
tx_312_5_clk
avalon_st_tx_ready
avalon_st_tx_valid
avalon_st_tx_startofpacket
avalon_st_tx_endofpacket
avalon_st_tx_data[31:0]
avalon_st_tx_empty[1:0]
avalon_st_tx_error
0
rx_312_5_clk
avalon_st_rx_ready
avalon_st_rx_valid
avalon_st_rx_startofpacket
avalon_st_rx_endofpacket
avalon_st_rx_data[31:0]
avalon_st_rx_empty[1:0]
avalon_st_rx_error[5:0]
...4EB30AF4
...4EB30AF4
0
3-6
XGMII Encapsulation
The following figure shows the timing diagram on the Avalon-ST data interfaces where CRC insertion is
disabled on transmit and CRC removal is disabled on receive. The MAC TX receives the frame from the
client with a CRC-32 checksum (4EB00AF4). The frame with the same CRC-32 checksum is then looped
back to the RX datapath.
Figure 3-5: Avalon-ST TX and RX Interface with CRC Insertion Disabled
UG-01144
2014.12.15
XGMII Encapsulation
By default, the MAC TX inserts 7-byte preamble, 1-byte SFD and 1-byte EFD (0xFD) into frames received
from the client.
The MAC TX also supports custom preamble in 10G operations. To use custom preamble, set the
tx_preamble_control register to 1. In this mode, the MAC TX accepts the first 8 bytes in the frame from
the client as custom preamble and inserts only 1-byte EFD (0xFD) into the frame. The MAC TX also
replaces the first byte of the preamble with 1-byte START (0xFB).
Altera Corporation
Functional Description of LL Ethernet 10G MAC
Send Feedback
UG-01144
2014.12.15
An underflow could occur on the Avalon-ST TX interface. An underflow occurs when the
avalon_st_tx_valid signal is deasserted in the middle of frame transmission. When this happens, the
10GbE MAC TX inserts an error character |E| into the frame and forwards the frame to the XGMII.
Inter-Packet Gap Generation and Insertion
The MAC TX maintains an average IPG between TX frames as required by the IEEE 802.3 Ethernet
standard. The average IPG is maintained at 96 bit times (12 byte times) using the deficit idle count (DIC).
The MAC TX inserts or deletes idle bytes depending on the value of the DIC; the DIC must be between 9
to 15 bytes. Averaging the IPG ensures that the MAC utilizes the maximum available bandwidth.
XGMII Transmission
On the XGMII, the MAC TX performs the following:
• Aligns the first byte of the frame to lane 0 of the interface.
• Performs endian conversion. Transmit frames received from the client on the Avalon-ST interface are
big endian. Frames transmitted on the XGMII are little endian; the MAC TX therefore transmits
frames on this interface from the least significant byte.
The following figure shows the timing on the Avalon-ST TX data interface and XGMII. The least signifi‐
cant byte of the value in D5 is transmitted first on the XGMII.
The MAC TX implements the unidirectional feature as specified by clause 66 in the IEEE802.3 specifica‐
tion. This is an optional feature supported only in 10G operations. When you enable this feature, two
output ports—unidirectional_en, unidirectional_remote_fault_dis— and two register fields—
UniDir_En (Bit 0), UniDirRmtFault_Dis (Bit 1)— are accessible to control the TX XGMII interface.
Altera Corporation
Functional Description of LL Ethernet 10G MAC
Send Feedback
Loading...
+ 79 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.