Last updated for Altera Complete Design Suite: 14.0
Subscribe
Send Feedback
UG-01008
2014.06.30
101 Innovation Drive
San Jose, CA 95134
www.altera.com
TOC-2
Triple-Speed Ethernet MegaCore Function User Guide
Contents
About This MegaCore Function.........................................................................1-1
About This MegaCore Function................................................................................................................1-1
Device Family Support................................................................................................................................1-1
Example Applications..................................................................................................................................1-5
Triple-Speed Ethernet MegaCore Function User Guide
Test Flow.....................................................................................................................................................10-3
Using Multiple SG-DMA Descriptors....................................................................................................11-4
Using Jumbo Frames.................................................................................................................................11-4
API Functions.............................................................................................................................................11-5
Test Configuration Parameters.................................................................................................................B-3
ToD Clock Features....................................................................................................................................C-1
Triple-Speed Ethernet MegaCore Function User Guide
ToD Clock Device Family Support...........................................................................................................C-1
ToD Clock Performance and Resource Utilization................................................................................C-1
ToD Clock Parameter Setting....................................................................................................................C-2
ToD Clock Interface Signals......................................................................................................................C-3
ToD Clock Avalon-MM Control Interface Signals....................................................................C-3
ToD Clock Avalon-ST Transmit Interface Signals.....................................................................C-4
ToD Clock Configuration Register Space................................................................................................C-5
Adjusting ToD Clock Drift............................................................................................................C-6
TOC-7
ToD Synchronizer..............................................................................................D-1
ToD Synchronizer Block............................................................................................................................D-2
ToD Synchronizer Parameter Settings.....................................................................................................D-3
ToD Synchronizer Signals.........................................................................................................................D-4
ToD Synchronizer Common Clock and Reset Signals..............................................................D-4
ToD Synchronizer Interface Signals.............................................................................................D-4
How to Contact Altera................................................................................................................................F-7
Altera Corporation
2014.06.30
www.altera.com
101InnovationDrive,SanJose,CA95134
About This MegaCore Function
1
UG-01008
Subscribe
Send Feedback
About This MegaCore Function
The Altera®Triple-Speed Ethernet MegaCore®function is a configurable intellectual property (IP) core
that complies with the IEEE 802.3 standard. The IP core was tested and successfully validated by the University
of New Hampshire (UNH) interoperability lab. It combines the features of a 10/100/1000-Mbps Ethernet
media access controller (MAC) and 1000BASE-X/SGMII physical coding sublayer (PCS) with an optional
physical medium attachment (PMA).
Device Family Support
For new additions and enhancements to the latest Quartus II software and Altera IP, refer to the What’s
New for Altera IP page of the Altera website.
For a list of IP support for all device families, refer to the All Intellectual Property page of the Altera website.
2014 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
10/100/1000 Ethernet MAC Versus Small MAC
• 1000BASE-X/SGMII PCS features:
• Compliance with Clause 36 of the IEEE standard 802.3.
• Optional embedded PMA implemented with serial transceiver or LVDS I/O and soft CDR in Altera
devices that support this interface at 1.25-Gbps data rate.
• Support for auto-negotiation as defined in Clause 37.
• Support for connection to 1000BASE-X PHYs. Support for 10BASE-T, 100BASE-T, and 1000BASE-
T PHYs if the PHYs support SGMII.
• MAC interfaces:
• Client side—8-bit or 32-bit Avalon®Streaming (Avalon-ST)
or reduced gigabit medium independent interface (RGMII) on the network side. Optional loopback
on these interfaces.
• Optional management data I/O (MDIO) master interface for PHY device management.
• PCS interfaces:
• Client side—MII or GMII
• Network side—ten-bit interface (TBI) for PCS without PMA; 1.25-Gbps serial interface for PCS with
PMA implemented with serial transceiver or LVDS I/O and soft CDR in Altera devices that support
this interface at 1.25-Gbps data rate.
UG-01008
2014.06.30
• Programmable features via 32-bit configuration registers:
• FIFO buffer thresholds.
• Pause quanta for flow control.
• Source and destination MAC addresses.
• Address filtering on receive, up to 5 unicast and 64 multicast MAC addresses.
• Promiscuous mode—receive frame filtering is disabled in this mode.
• Frame length—in MAC only variation, up to 64 Kbytes including jumbo frames. In all variants
containing 1000BASE-X/SGMII PCS, the frame length is up to 10 Kbytes.
• Optional auto-negotiation for the 1000BASE-X/SGMII PCS.
• Error correction code protection feature for internal memory blocks.
• Optional IEEE 1588v2 feature for 10/100/1000-Mbps Ethernet MAC with SGMII PCS and embedded
serial PMA variation operating without internal FIFO buffer in full-duplex mode, 10/100/1000-Mbps
MAC with SGMII PCS and embedded LVDS I/O, or MAC only variation operating without internal
FIFO buffer in full-duplex mode. These features are supported in Arria V, Arria 10, Cyclone V, MAX
10, and Stratix V device families.
10/100/1000 Ethernet MAC Versus Small MAC
Table 1-1: Feature Comparison between 10/100/1000 Ethernet MAC and Small MAC
Small MAC10/100/1000 Ethernet MACFeature
interfaces
Altera Corporation
10/100 Mbps or 1000 MbpsTriple speed (10/100/1000 Mbps)Speed
MII/GMII or RGMIIExternal
MII only for 10/100 Mbps small MAC, GMII or RGMII
for 1000 Mbps small MAC
About This MegaCore Function
Send Feedback
10/100/1000-Mbps
EthernetMAC
MII/GMII/RGMII
ClientSide
NetworkSide
Avalon-ST
(TransmitandReceive)
Avalon-MM
(ManagementandControl)
UG-01008
2014.06.30
High-Level Block Diagrams
Small MAC10/100/1000 Ethernet MACFeature
1-3
interface
registers
options
Fully programmableControl
Limited programmable options. The following options
are fixed:
• Maximum frame length is fixed to 1518. Jumbo
frames are not supported.
• FIFO buffer thresholds are set to fixed values.
• Store and forward option is not available.
• Interpacket gap is set to 12.
• Flow control is not supported; pause quanta is not in
use.
• Checking of payload length is disabled.
• Supplementary MAC addresses are disabled.
• Padding removal is disabled.
• Sleep mode and magic packet detection is not
supported.
Fully configurableSynthesis
Limited configurable options. The following options are
NOT available:
• Flow control
• VLAN
• Statistics counters
• Multicast hash table
• Loopback
• TBI and 1.25 Gbps serial interface
• 8-bit wide FIFO buffers
High-Level Block Diagrams
About This MegaCore Function
High-level block diagrams of different variations of the Triple-Speed Ethernet MegaCore function.
Figure 1-1: 10/100/1000-Mbps Ethernet MAC
Send Feedback
Altera Corporation
10/100/1000-Mbps
EthernetMAC
MII/GMII/RGMII
ClientSide
NetworkSide
Avalon-ST
(TransmitandReceive)
Avalon-MM
(ManagementandControl)
10/100/1000-Mbps
EthernetMAC
MII/GMII/RGMII
Avalon-ST
(TransmitandReceive)
Multi-PortMAC
10/100/1000-Mbps
EthernetMAC
MII/GMII
ClientSide
NetworkSide
Avalon-ST
(Transmitand
Receive)
Avalon-MM
(Management
andControl)
1.25-GbpsSerial
MACandPCSwithOptionalEmbeddedPMA
1000BASE-X/SGMII
PCS
PMA
(Optional)
TBI
MII/GMII
ClientSide
NetworkSide
1.25-GbpsSerial
PCSwithOptionalEmbeddedPMA
1000BASE-X/SGMII
PCS
PMA
(Optional)
TBI
1-4
High-Level Block Diagrams
Figure 1-2: Multi-port MAC
Figure 1-3: 10/100/1000-Ethernet MAC and 1000BASE-X/SGMII PCS with Optional PMA
UG-01008
2014.06.30
Figure 1-4: 1000BASE-X/SGMII PCS with Optional PMA
Altera Corporation
About This MegaCore Function
Send Feedback
GigabitorFast
EthernetPHY
Device
User
Application
HostInterfaceMDIOMaster
AlteraDevice
Triple-SpeedEthernetMegaCoreFunction
Management
Application
MDIO
Copper
MII/GMII/RGMII
Avalon-STAvalon-MM
10/100/1000-Mbps
EthernetMAC
GigabitorFast
EthernetPHY
Device
User
Application
HostInterfaceMDIOMaster
AlteraDevice
Triple-SpeedEthernetMegaCoreFunction
Management
Application
MDIO
Copper
MII/GMII/RGMII
Avalon-STAvalon-MM
10/100/1000-Mbps
EthernetMAC
UG-01008
2014.06.30
Figure 1-5: Stand-Alone 10/100/1000 Mbps Ethernet MAC
Example Applications
Example Applications
1-5
This section shows example applications of different variations of the Triple-Speed Ethernet MegaCore
function.
The 10/100/1000-Gbps Ethernet MAC only variation can serve as a bridge between the user application and
standard fast or gigabit Ethernet PHY devices.
Figure 1-6: Stand-Alone 10/100/1000 Mbps Ethernet MAC
Example application using this variation for a copper network.
When configured to include the 1000BASE-X/SGMII PCS function, the MegaCore function can seamlessly
connect to any industry standard gigabit Ethernet PHY device via a TBI. Alternatively, when the 1000BASEX/SGMII PCS function is configured to include an embedded PMA, the MegaCore function can connect
About This MegaCore Function
Send Feedback
Altera Corporation
GMII
PMA
Fiber
GBIC/SFP
Module
1.25
Gbps
Serial
AlteraDevice
Triple-SpeedEthernetMegaCoreFunction
TBI
10/100/1000-Mbps
EthernetMAC
1000BASE-X
PCS
Copper
MII/GMII
SGMIIPCSPMA
10/100/1000
1.25Gbps
SGMII
AlteraDevice
TBI
Triple-SpeedEthernetMegaCoreFunction
BASE-TPHY
10/100/1000-Mbps
EthernetMAC
1-6
MegaCore Verification
directly to a gigabit interface converter (GBIC), small form-factor pluggable (SFP) module, or an SGMII
PHY.
Figure 1-7: 10/100/1000 Mbps Ethernet MAC and 1000BASE-X PCS with Embedded PMA
Example application using the Triple-Speed Ethernet MegaCore function with 1000BASE-X and PMA. The
PMA block connects to an off-the-shelf GBIC or SFP module to communicate directly over the optical link.
Figure 1-8: 10/100/1000 Mbps Ethernet MAC and SGMII PCS with Embedded PMA—GMII/MII to 1.25-Gbps
Serial Bridge Mode
UG-01008
2014.06.30
Example application using the Triple-Speed Ethernet MegaCore function with 1000BASE-X and PMA, in
which the PCS function is configured to operate in SGMII mode and acts as a GMII-to-SGMII bridge. In
this case, the transceiver I/O connects to an off-the-shelf Ethernet PHY that supports SGMII (10BASE-T,
100BASE-T, or 1000BASE-T Ethernet PHY).
MegaCore Verification
For each release, Altera verifies the Triple-Speed Ethernet MegaCore function through extensive simulation
and internal hardware verification in various Altera device families. The University of New Hampshire
(UNH) InterOperability Lab also successfully verified the MegaCore function prior to its release.
Altera used a highly parameterizeable transaction-based testbench to test the following aspects of the
Altera Corporation
MegaCore function:
• Register access
About This MegaCore Function
Send Feedback
UG-01008
2014.06.30
• MDIO access
• Frame transmission and error handling
• Frame reception and error handling
• Ethernet frame MAC address filtering
• Flow control
• Retransmission in half-duplex
Altera has also validated the Triple-Speed Ethernet MegaCore function in both optical and copper platforms
using the following development kits:
• Altera Nios II Development Kit, Cyclone II Edition (2C35)
• Altera Stratix III FPGA Development Kit
• Altera Stratix IV FPGA Development Kit
• Quad 10/100/1000 Marvell PHY
• MorethanIP 10/100 and 10/100/1000 Ethernet PHY Daughtercards
Optical Platform
In the optical platform, the 10/100/1000 Mbps Ethernet MAC, 1000BASE-X/SGMII PCS, and PMA functions
are instantiated.
The FPGA application implements the Ethernet MAC, the 1000BASE-X PCS, and an internal system using
Ethernet connectivity. This internal system retrieves all frames received by the MAC function and returns
them to the sender by manipulating the MAC address fields, thus implementing a loopback. A direct
connection to an optical module is provided through an external SFP optical module. Certified 1.25 GBaud
optical SFP transceivers are Finisar 1000BASE-SX FTLF8519P2BNL, Finisar 1000BASE-LX FTRJ-1319-3,
and Avago Technologies AFBR-5710Z.
Optical Platform
1-7
Copper Platform
In the copper platform, Altera tested the Triple-Speed Ethernet MegaCore function with an external
1000BASE-T PHY devices. The MegaCore function is connected to the external PHY device using MII,
GMII, RGMII, and SGMII, in conjunction with the 1000BASE-X/SGMII PCS and PMA functions.
A 10/100/1000 Mbps Ethernet MAC and an internal system are implemented in the FPGA. The internal
system retrieves all frames received by the MAC function and returns them to the sender by manipulating
the MAC address fields, thus implementing a loopback. A direct connection to an Ethernet link is provided
through a combined MII to an external PHY module. Certified 1.25 GBaud copper SFP transceivers are
Finisar FCMJ-8521-3, Methode DM7041, and Avago Technologies ABCU-5700RZ.
Performance and Resource Utilization
In the following tables, the f
of the configurations is more than 125 MHz.
MAX
About This MegaCore Function
Send Feedback
Altera Corporation
1-8
Performance and Resource Utilization
UG-01008
2014.06.30
Table 1-2: Arria II GX Performance and Resource Utilization
The estimated resource utilization and performance of the Triple-Speed Ethernet MegaCore function for the Arria
II GX device family. The estimates are obtained by compiling the Triple-Speed Ethernet MegaCore function using
the Quartus II software targeting an Arria II GX (EP2AGX260EF29I3) device with speed grade -3.
SettingsMegaCore Function
FIFO Buffer
Size (Bits)
Combina-
tional
ALUTs
Logic
Registers
Memory
(M9K Blocks/
M144K Blocks/
MLAB Bits)
10/100/1000-Mbps
Ethernet MAC
All MAC options enabled
26/0/1828394733572048x32RGMII
Full and half-duplex modes
supported
8-port 10/100/1000Mbps Ethernet
MAC
enabled
Full and half-duplex modes
32/0/146242229220201—MII/GMII All MAC options
supported
0/0/0661624—1000BASE-X
1000BASE-X/
SGMII PCS
1/0/16012141191—1000BASE-X SGMII bridge
enabled PMA block (GXB)
Table 1-3: Stratix IV Performance and Resource Utilization
The estimated resource utilization and performance of the Triple-Speed Ethernet MegaCore function for the Stratix
IV device family. The estimates are obtained by compiling the Triple-Speed Ethernet MegaCore function using the
Quartus II software targeting a Stratix IV GX (EP4SGX530NF45C4) device with speed grade -4.
Memory
(M9K Blocks/ M144K
Blocks/MLAB Bits)
Function
SettingsMegaCore
FIFO Buffer
Size (Bits)
Combina-
tional ALUTs
Logic
Registers
10/100Mbps Small
MAC
1000-Mbps
Small MAC
Altera Corporation
12/1/1408212714102048x32MII
Full and half-duplex modes
supported
12/1/128189411572048x32MII All MAC options enabled
12/1/176182711602048x32GMII All MAC options enabled
12/1/176186111702048x32RGMII All MAC options enabled
About This MegaCore Function
Send Feedback
UG-01008
2014.06.30
Performance and Resource Utilization
1-9
Function
10/100/
1000-Mbps
Ethernet
MAC
12-port 10/
100/1000Mbps
Ethernet
MAC
100/1000Mbps
Ethernet
MAC
SettingsMegaCore
MII/GMII Full and half-duplex
modes supported
enabled
MII/GMII All MAC options
enabled
FIFO Buffer
Size (Bits)
Combina-
tional ALUTs
Logic
Registers
Memory
(M9K Blocks/ M144K
Blocks/MLAB Bits)
0/0/336433952721—
8/0/3620397732012048x8
12/1/3364442533452048x32
12/1/2084399431252048x32MII/GMII All MAC options
12/1/2084402131332048x32RGMII All MAC options enabled
0/0/250083437227215—
0/0/500166840454123—24-port 10/
0/0/0661624—1000BASE-X
2/0/0986808—1000BASE-X SGMII bridge
1000BASEX/SGMII
PCS
enabled
2/0/01057819—1000BASE-X SGMII bridge
enabled PMA block (LVDS_IO)
1/0/16012121189—1000BASE-X SGMII bridge
enabled PMA block (GXB)
10/100/
1000-Mbps
bridge enabled
14/1/2084495039712048×32All MAC options enabled SGMII
Ethernet
MAC and
1000BASEX/SGMII
PCS
Table 1-4: Cyclone IV GX Performance and Resource Utilization
The estimated resource utilization and performance of the Triple Speed Ethernet MegaCore function for the Cyclone
IV device family. The estimates are obtained by compiling the Triple-Speed Ethernet MegaCore function using the
Quartus II software targeting a Cyclone IV GX (EP4CGX150DF27C7) device with speed grade -7.
Memory
(M9K Blocks/ Mi44K
Blocks/ MLAB Bits)
Function
SettingsMegaCore
FIFO Buffer
Size (Bits)
Logic
Elements
Logic
Registers
1000-Mbps
Small MAC
About This MegaCore Function
Send Feedback
supported
24/0/0169921612048x32RGMII Only full-duplex mode
Altera Corporation
1-10
Performance and Resource Utilization
UG-01008
2014.06.30
Memory
(M9K Blocks/ Mi44K
Blocks/ MLAB Bits)
31/0/0366656142048x32MII/GMII Full and half-duplex
Function
10/100/
1000-Mbps
SettingsMegaCore
modes supported
FIFO Buffer
Size (Bits)
Logic
Elements
Logic
Registers
Ethernet
MAC
4-port 10/
100/ 1000Mbps
Ethernet
MAC
1000BASEX/SGMII
PCS
enabled
Full and half-duplex modes
supported
enabled PMA block (GXB)
36/0/01061217017—MII/GMII All MAC options
0/0/06611149—1000BASE-X
2/0/011272001—1000BASE-X SGMII bridge
Table 1-5: Stratix V Performance and Resource Utilization
The estimated resource utilization and performance of the Triple-Speed Ethernet MegaCore function for the Stratix V
device family. The estimates are obtained by compiling the Triple-Speed Ethernet MegaCore function using the
Quartus II software targeting a Stratix V GX (5SGXMA7N3F45C3) device with speed grade -3.
Memory
(M20K Blocks/ MLAB
Bits)
Function
SettingsMegaCore
FIFO Buffer
Size (Bits)
Combina-
tional ALUTs
Logic
Registers
10/100Mbps Small
MAC
1000-Mbps
Small MAC
10/100/
1000-Mbps
Ethernet
MAC
Full and half-duplex modes
supported
MII/GMII Full and half-duplex
modes supported
enabled
11/0201812612048x32MII
11/0201812612048x32MII All MAC options enabled
10/128195912272048x32GMII All MAC options enabled
10/128198412372048x32RGMII All MAC options enabled
5/204842983137—
10/2048497136272048x8
16/2048514537772048x32
16/768492834542048x32MII/GMII All MAC options
16/768493334662048x32RGMII All MAC options enabled
Altera Corporation
About This MegaCore Function
Send Feedback
UG-01008
2014.06.30
Release Information
1-11
Function
12-port 10/
100/1000Mbps
Ethernet
MAC
100/1000Mbps
Ethernet
MAC
1000BASEX/SGMII
PCS
SettingsMegaCore
MII/GMII All MAC options
enabled
enabled
enabled PMA block (LVDS_IO)
enabled PMA block (GXB)
(reconfig controller has been
compiled together with
1000BASE-X SGMII bridge
enabled PMA block (GXB))
Table 1-6: Triple-Speed Ethernet MegaCore Function Release Information
14.0Version
June 2014Release Date
16/1248613243062048×32All MAC options enabled SGMII
4/1536531850620Default MAC option SGMII
DescriptionItem
About This MegaCore Function
Send Feedback
Altera Corporation
1-12
Release Information
UG-01008
2014.06.30
DescriptionItem
IP-TRIETHERNETOrdering Code
Product ID(s)
00BD (Triple-Speed Ethernet MegaCore function)
0104 (IEEE 1588v2)
6AF7Vendor ID(s)
Altera verifies that the current version of the Quartus®II software compiles the previous version of each
MegaCore function. The MegaCore IP Library Release Notes and Errata report any exceptions to this
verification. Altera does not verify compilation with MegaCore function versions older than one release.
Related Information
MegaCore IP Library Release Notes and Errata
Altera Corporation
About This MegaCore Function
Send Feedback
2014.06.30
www.altera.com
101InnovationDrive,SanJose,CA95134
Getting Started with Altera IP Cores
2
UG-01008
Subscribe
Send Feedback
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. Altera delivers an IP core library with the Quartus®II software. OpenCore Plus IP evaluation
enables fast acquisition, evaluation, and hardware testing of all Altera IP cores.
Nearly all complex FPGA designs include optimized logic from IP cores. You can integrate optimized and
verified IP cores into your design to shorten design cycles and maximize performance. The Quartus II
software includes the Altera IP Library, and supports IP cores from other sources. You can define and
generate a custom IP variation to represent complex design logic in your project.
The Altera IP Library includes the following IP core types:
• Basic functions
• DSP functions
• Interface protocols
• Memory interfaces and controllers
• Processors and peripherals
Related Information
IP User Guide Documentation
Installing and Licensing IP Cores
The Quartus II software includes the Altera IP Library. The library provides many useful IP core functions
for production use without additional license. You can fully evaluate any licensed Altera IP core in simulation
and in hardware until you are satisfied with its functionality and performance. Some Altera IP cores, such
as MegaCore®functions, require that you purchase a separate license for production use. After you purchase
a license, visit the Self Service Licensing Center to obtain a license number for any Altera product.
2014 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.
The default IP installation directory on Windows is <drive>:\altera\<version number>; on Linux it
is <home directory>/altera/ <version number>.
Related Information
• Altera Licensing Site
• Altera Software Installation and Licensing Manual
OpenCore Plus IP Evaluation
Altera's free OpenCore Plus feature allows you to evaluate licensed MegaCore IP cores in simulation and
hardware before purchase. You need only purchase a license for MegaCore IP cores if you decide to take
your design to production. OpenCore Plus supports the following evaluations:
• Simulate the behavior of a licensed IP core in your system.
• Verify the functionality, size, and speed of the IP core quickly and easily.
• Generate time-limited device programming files for designs that include IP cores.
• Program a device with your IP core and verify your design in hardware
OpenCore Plus evaluation supports the following two operation modes:
• Untethered—run the design containing the licensed IP for a limited time.
• Tethered—run the design containing the licensed IP for a longer time or indefinitely. This requires a
connection between your board and the host computer.
All IP cores using OpenCore Plus in a design time out simultaneously when any IP core times out.Note:
Upgrading Outdated IP Cores
Each IP core has a release version number that corresponds to its Quartus II software release. When you
include IP cores from a previous version of the Quartus II software in your project, click Project > UpgradeIP Components to identify and upgrade any outdated IP cores.
The Quartus II software prompts you to upgrade an IP core when the latest version includes port, parameter,
or feature changes. The Quartus II software also notifies you when IP cores are unsupported or cannot
upgrade in the current version of the Quartus II software. Most Altera IP cores support automatic simultaneous upgrade, as indicated in the Upgrade IP Components dialog box. IP cores unsupported by autoupgrade may require regeneration in the parameter editor, as indicated in the Upgrade IP Components
dialog box.
Upgrading IP cores changes your original design files. If you have not already preserved your original source
files, click Project > Archive Project and save the project archive.
1. In the latest version of the Quartus II software, open the Quartus II project containing an outdated IP
core variation.
2-3
Note:
File paths in a restored project archive must be relative to the project directory and you must
reference the IP variation .v or .vhd file or .qsys file, not the .qip file.
2. Click Project > Upgrade IP Components. The Upgrade IP Components dialog box displays all outdated
IP cores in your project, along with basic instructions for upgrading each core.
3. To simultaneously upgrade all IP cores that support automatic upgrade, click Perform Automatic
Upgrade. The IP variation upgrades to the latest version.
4. To upgrade IP cores unsupported by automatic upgrade, follow these steps:
a. Select the IP core in the Upgrade IP Components dialog box.
b. Click Upgrade in Editor. The parameter editor appears.
c. Click Finish or Generate to regenerate the IP variation and complete the upgrade. The version number
updates when complete.
Note:
Example designs provided with any Altera IP core regenerate automatically whenever you
upgrade the IP core in the Upgrade IP Components dialog box.
Figure 2-2: Upgrading Outdated IP Cores
Getting Started with Altera IP Cores
Altera Corporation
Send Feedback
2-4
IP Catalog and Parameter Editor
Example 2-1: Upgrading IP Cores at the Command Line
Alternatively, you can upgrade IP cores at the command line. To upgrade a single IP core, type the
following command:
IP cores older than Quartus II software version 12.0 do not support upgrade. 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 reports any
verification exceptions for MegaCore IP. The Quartus II Software and Device SupportRelease Notes reports any verification exceptions for other IP cores. Altera does not
verify compilation for IP cores older than the previous two releases.
Related Information
• MegaCore IP Library Release Notes
• Quartus II Software and Device Support Release Notes
IP Catalog and Parameter Editor
The Quartus II IP Catalog (Tools > IP Catalog) and parameter editor help you easily customize and integrate
IP cores into your project. You can use the IP Catalog and parameter editor to select, customize, and generate
files representing your custom IP variation.
The IP Catalog automatically displays the IP cores available for your target device. Double-click any IP core
name to launch the parameter editor and generate files representing your IP variation. The parameter editor
prompts you to specify your IP variation name, optional ports, architecture features, and output file generation
options. The parameter editor generates a top-level .qsys or .qip file representing the IP core in your project.
Alternatively, you can define an IP variation without an open Quartus II project. When no project is open,
select the Device Family directly in IP Catalog to filter IP cores by device.
Note:
Use the following features to help you quickly locate and select an IP core:
• Filter IP Catalog to Show IP for active device family or Show IP for all device families.
• Search to locate any full or partial IP core name in IP Catalog. Click Search for Partner IP, to access
partner IP information on the Altera website.
• Right-click an IP core name in IP Catalog to display details about supported devices, installation location,
and links to documentation.
Altera Corporation
The IP Catalog is also available in Qsys (View > IP Catalog). The Qsys IP Catalog includes exclusive
system interconnect, video and image processing, and other system-level IP that are not available in
the Quartus II IP Catalog.
Getting Started with Altera IP Cores
Send Feedback
SearchandfilterIPforyourtargetdevice
Double-clicktocustomize,right-clickforinformation
UG-01008
2014.06.30
Figure 2-3: Quartus II IP Catalog
Using the Parameter Editor
2-5
Note:
The IP Catalog and parameter editor replace the MegaWizard™Plug-In Manager in the Quartus II
software. The Quartus II software may generate messages that refer to the MegaWizard Plug-In
Manager. Substitute "IP Catalog and parameter editor" for "MegaWizard Plug-In Manager" in these
messages.
Using the Parameter Editor
The parameter editor helps you to configure your IP variation ports, parameters, architecture features, and
output file generation options.
• Use preset settings in the parameter editor (where provided) to instantly apply preset parameter values
for specific applications.
• View port and parameter descriptions, and links to documentation.
• Generate testbench systems or example designs (where provided).
Getting Started with Altera IP Cores
Send Feedback
Altera Corporation
ViewIPportandparameterdetails
Applypresetparametersforspecificapplications
SpecifyyourIPvariationnameandtargetdevice
Legacyparametereditors
2-6
Design Walkthrough
Figure 2-4: IP Parameter Editors
UG-01008
2014.06.30
Design Walkthrough
This walkthrough explains how to create a Triple-Speed Ethernet MegaCore function design using Qsys in
the Quartus II software. After you generate a custom variation of the Triple-Speed Ethernet MegaCore
function, you can incorporate it into your overall project.
This walkthrough includes the following steps:
1. Creating a New Quartus II Project on page 2-6
2. Specifying IP Core Parameters and Options on page 2-7
3. Generating a Design Example or Simulation Model on page 2-7
4. Simulate the System on page 2-8
5. Compiling the Triple-Speed Ethernet MegaCore Function Design on page 2-8
6. Programming an FPGA Device on page 2-8
Creating a New Quartus II Project
You need to create a new Quartus II project with the New Project Wizard, which specifies the working
directory for the project, assigns the project name, and designates the name of the top-level design entity.
To create a new project, follow these steps:
1. From the Windows Start menu, select Programs > Altera > Quartus II <version> to launch the Quartus
II software. Alternatively, you can use the Quartus II Web Edition software.
2. On the File menu, click New Project Wizard.
3. In the New Project Wizard: Directory, Name, Top-Level Entity page, specify the working directory,project name, and top-level design entity name. Click Next.
Altera Corporation
Getting Started with Altera IP Cores
Send Feedback
UG-01008
2014.06.30
Specifying IP Core Parameters and Options
2-7
4. In the New Project Wizard: Add Files page, select the existing design files (if any) you want to include
in the project.
(1)
Click Next.
5. In the New Project Wizard: Family & Device Settings page, select the device family and specific device
you want to target for compilation. Click Next.
6. In the EDA Tool Settings page, select the EDA tools you want to use with the Quartus II software to
develop your project.
7. The last page in the New Project Wizard window shows the summary of your chosen settings. Click
Finish to complete the Quartus II project creation.
Specifying IP Core Parameters and Options
Follow these steps to specify IP core parameters and options.
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. This name identifies the IP core variation files in
your project. If prompted, also specify the target Altera device family and output file HDL preference.
Click OK.
3. Specify parameters and options for your IP variation:
• Optionally select preset parameter values. Presets specify all initial parameter values for specific
applications (where provided).
• Specify parameters defining the IP core functionality, port configurations, and device-specific features.
• Specify options for generation of a timing netlist, simulation model, testbench, or example design
(where applicable).
• Specify options for processing the IP core files in other EDA tools.
4. Click Finish or Generate to generate synthesis and other optional files matching your IP variation
specifications. The parameter editor generates the top-level .qip or .qsys IP variation file and HDL files
for synthesis and simulation. Some IP cores also simultaneously generate a testbench or example design
for hardware testing.
5. To generate a simulation testbench, click Generate > Generate Testbench System. Generate Testbench
System is not available for some IP cores that do not provide a simulation testbench.
6. To generate a top-level HDL example for hardware verification, click Generate > HDL Example.
Generate > HDL Example is not available for some IP cores.
The top-level IP variation is added to the current Quartus II project. Click Project > Add/Remove Files in
Project to manually add a .qip or .qsys file to a project. Make appropriate pin assignments to connect ports.
Generating a Design Example or Simulation Model
After you have parameterized the MegaCore function, you can also generate a design example, in addition
to generating the MegaCore component files.
In the parameter editor, click Example Design to create a functional simulation model (design example that
includes a testbench). The testbench and the automated script are located in the <variation name>_testbench
directory.
(1)
To include existing files, you must specify the directory path to where you installed the MegaCore function.
You must also add the user libraries if you installed the MegaCore IP Library in a different directory from where
you installed the Quartus II software.
Getting Started with Altera IP Cores
Send Feedback
Altera Corporation
2-8
Simulate the System
Generating a design example can increase processing time.Note:
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.
Related Information
• Testbench
More information about the MegaCore function simulation model.
• Quartus II Help
More information about the Quartus II software, including virtual pins.
Simulate the System
During system generation, Qsys generates a functional simulation model—or design example that includes
a testbench—which you can use to simulate your system in any Altera-supported simulation tool.
Related Information
• Quartus II Software Release Notes
More information about the latest Altera-supported simulation tools.
UG-01008
2014.06.30
• Simulating Altera Designs
More information in volume 3 of the Quartus II Handbook about simulating Altera IP cores.
• System Design with Qsys
More information in volume 1 of the Quartus II Handbook about simulating Qsys systems.
Compiling the Triple-Speed Ethernet MegaCore Function Design
Before you begin
Refer to Design Considerations on page 8-1 chapter before compiling the Triple-Speed Ethernet MegaCore
function design.
To compile your design, click Start Compilation on the Processing menu in the Quartus II software. You
can use the generated .qip file to include relevant files into your project.
Related Information
Quartus II Help
More information about compilation in Quartus II software.
Programming an FPGA Device
After successfully compiling your design, program the targeted Altera device with the Quartus II Programmer
and verify the design in hardware. For instructions on programming the FPGA device, refer to the DeviceProgramming section in volume 3 of the Quartus II Handbook.
Related Information
Device Programming
Altera Corporation
Getting Started with Altera IP Cores
Send Feedback
UG-01008
2014.06.30
Generated Files
The type of files generated in your project directory and their names may vary depending on the custom
variation of the MegaCore function you created.
Table 2-1: Generated Files
Generated Files
DescriptionFile Name
2-9
<variation_name>.v or
<variation_name>.vhd
A MegaCore function variation file, which defines a VHDL or
Verilog HDL top-level description of the custom MegaCore
function. Instantiate the entity defined by this file inside your
design. Include this file when compiling your design in the
Quartus II software.
<variation_name>.bsf
Quartus II symbol file for the MegaCore function variation. You
can use this file in the Quartus II block diagram editor.
<variation_name>.qip and
<variation_name>.sip
<variation_name>.cmp
Contains Quartus II project information for your MegaCore
function variations.
A VHDL component declaration file for the MegaCore function
variation. Add the contents of this file to any VHDL architecture
that instantiates the MegaCore.
<variation_name>.spd
Simulation Package Descriptor file. Specifies the files required
for simulation.
Testbench Files (in <variation_name>_testbench folder)
Read me file for the testbench design.README.txt
generate_sim.qpf and
generate_sim.qsf
Dummy Quartus II project and project setting file. Use this to
start the Quartus II in the correct directory to launch the generate_
sim_verilog.tcl and generate_sim_vhdl.tcl files.
generate_sim_verilog.tcl and
generate_sim_vhdl.tcl
/testbench_vhdl/<variation_name>/
<variation_name>_tb.vhd or
A Tcl script to generate the DUT VHDL or Verilog HDL
simulation model for use in the testbench.
VHDL or Verilog HDL testbench that exercises your MegaCore
function variation in a third party simulator.
A Tcl script for use with the ModelSim simulation software./testbench_vhdl/<variation_name>/run_
A signal tracing macro script used with the ModelSim simulation
software to display testbench signals.
Altera Corporation
2-10
Design Constraint File No Longer Generated
UG-01008
2014.06.30
DescriptionFile Name
/testbench_vhdl/models or
/testbench_verilog/models
A directory containing VHDL and Verilog HDL models of the
Ethernet generators and monitors used by the generated testbench.
Design Constraint File No Longer Generated
For a new Triple-Speed Ethernet MegaCore function created using the Quartus II software ACDS 13.0 or
later, the Quartus II software no longer generate the <variation_name>_constraints.tcl file that contains the
necessary constraints for the compilation of your MegaCore Function variation. Table 2-2 lists the
recommended Quartus II pin assignments that you can set in your design.
Table 2-2: Recommended Quartus II Pin Assignments
Quartus II Pin
Assignment
INPUT_
REGISTER
OUTPUT_
REGISTER
IO_
STANDARD
Value
ONFAST_
ONFAST_
1.4-V PCML
or 1.5-V
PCML
and TBI interface.
To optimize I/O timing for MII, GMII
and TBI interface.
I/O standard for GXB serial input and
output pins.
I/O standard for LVDS/IO serial input
and output pins.
Global clockGLOBAL_
To assign clock signals to use the global
clock network. Use this setting to guide
the Quartus II in the fitter process for
better timing closure.
LVDS/IO transceiver serial input
and output pins.
• ref_clk for MAC and PCS with
LVDS/IO (with internal FIFO).
• clk and reset pins for MAC
only (without internal FIFO).
• clk and ref_clk input pins for
MAC and PCS with transceiver
(without internal FIFO).
Regional clockGLOBAL_
To assign clock signals to use the
regional clock network. Use this setting
to guide the Quartus II in the fitter
process for better timing closure.
• rx_clk <n> and tx_clk <n>
input pins for MAC only using
MII/GMII interface (without
internal FIFO).
• rx_clk <n> input pin for MAC
only using RGMII interface
(without internal FIFO).
OFFGLOBAL_
To prevent a signal to be used as a
global signal.
Signals for Arria V devices:
• *reset_ff_wr and *reset_ff_
rd
• *| altera_tse_reset_
synchronizer_chain_out
Altera Corporation
Getting Started with Altera IP Cores
Send Feedback
2014.06.30
www.altera.com
101InnovationDrive,SanJose,CA95134
Parameter Settings
3
UG-01008
Subscribe
Send Feedback
Parameter Settings
You customize the Triple-Speed Ethernet MegaCore function by specifying parameters using the Triple-Speed
Ethernet parameter editor, launched from Qsys in the Quartus II software. The customization enables specific
core features during synthesis and generation.
This chapter describes the parameters and how they affect the behavior of the MegaCore function. Each
section corresponds to a page in the Parameter Settings tab in the parameter editor interface.
Core Configuration
Table 3-1: Core Configuration Parameters
Core Variation
• 10/100/1000 Mb
Ethernet MAC
• 10/100/1000 Mb
Ethernet MAC with
1000BASE-X/SGMII
PCS
• 1000BASE-X/SGMII
PCS only
• 1000 Mb Small MAC
• 10/100 Mb Small MAC
DescriptionValueName
Determines the primary blocks to include in the
variation.
2014 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.
On/OffEnable ECC protection
Turn on this option to enable ECC protection
for internal memory blocks.
ISO
9001:2008
Registered
Loading...
+ 193 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.