40- and 100-Gbps Ethernet MAC and PHY MegaCore Function User Guide

ID 683114
Date 6/15/2022
Public
Document Table of Contents

2.3. IP Core Parameters

The 40-100GbE parameter editor provides the parameters you can set to configure the 40-100GbE IP core and simulation testbenches.

The 40-100GbE parameter editor has two tabs, the Main tab and the 40GBASE-KR4 tab. The 40GBASE-KR4 tab in the 40-100GbE parameter editor is relevant only for certain variations that target a Stratix V device; for other variations, the parameters on the tab are unavailable.

Table 11.   40-100GbE Parameters: Main TabDescribes the parameters for customizing the 40-100GbE IP core on the Main tab of the 40-100GbE parameter editor.

Parameter

Type

Range

Default Setting

Parameter Description

General Design Options

Device family

String

  • Stratix IV
  • Stratix V
  • Arria V GZ

According to the setting in the project or IP Catalog settings.

Selects the device family.

MAC configuration

String

  • 40 GbE
  • 100 GbE

100 GbE

Selects the MAC datapath width.

Core options

String

  • PHY
  • MAC
  • MAC & PHY

MAC & PHY

Selects the core components to generate.

PHY configuration 2 3 4

Integer

40 GbE:

  • 24.24 Gbps (4x6.25)
  • 40 Gbps (4x10)

100 GbE:

  • 100 Gbps (10x10)
  • CAUI-4 (4x25)

The default value depends on the MAC configuration value.

40 GbE:

  • 40 Gbps (4x10)

100 GbE:

  • 100 Gbps (10x10)

Selects the Ethernet speed and lane configuration.

MAC client interface 5

String

  • Custom–ST interface
  • Avalon–ST interface

Avalon–ST interface

Selects the Avalon–ST interface or the narrower, custom streaming client interface to the MAC.

Duplex mode 6

Integer

  • RX
  • TX
  • Full Duplex

Full Duplex

Selects datapath mode to generate.

PHY Configuration Options

PHY PLL type 2 7 8

String

  • ATX
  • CMU

ATX

Configures the PHY PLL.

PHY reference frequency 2

Integer (encoding)

The range and default settings depend on the PHY configuration.

Despite its apparent availability in the parameter editor, CAUI–4 variations do not support the 322.265625 MHz clock frequency. For correct functioning of CAUI–4 variations, you must set this parameter to the value of 644.53125 MHz.

Sets the expected incoming PHY clk_ref reference frequency. The input clock frequency must match the frequency you specify for this parameter (± 100ppm).

In Sync-E variations, the input clock frequencies for the rx_ref_clk and tx_ref_clk clocks must match the frequency you specify for this parameter, although the two clocks can be driven from different sources and need not be aligned with each other.

Advanced Design Options

Status clock rate 2

Float

  • Stratix IV: 37.5–50.0
  • Arria V GZ or Stratix V: 100.0–125.0
  • Stratix IV: 37.5
  • Arria V GZ or Stratix V: 100.0

Sets the clock rate of clk_status in MHz.

Statistics counters 5

Boolean

  • True
  • False

True

If turned on, the IP core includes built–in statistics counters. If turned off, the IP core is configured without statistics counters.

Enable SyncE support

Boolean

  • True
  • False

False

Enables or disables a separate reference clock for the RX CDR block in the transceiver and exposes the RX recovered clock as an output signal. If this option is turned on (set to true), the TX PLL and the RX CDR in the transceiver have separate input reference clocks and the RX recovered clock is visible as an IP core output signal. If it is turned off, the two PLLs share one input reference clock and the RX recovered clock is not available as an output signal.

Table 12.  40-100GbE Parameters: 40GBASE-KR4 TabDescribes the parameters for customizing a 40GBASE-KR4 40-100GbE IP core, on the 40GBASE-KR4 tab of the 40-100GbE parameter editor. The parameters on this tab are available only if the following conditions hold:
  • Your IP core targets a Stratix V device. You set the target device family for your Quartus II project or in the Quartus II software before you acess the IP Catalog.
  • You select the value of 40 GbE for the MAC configuration parameter on the Main tab.
  • You select a Core option value that includes a PHY component (PHY or MAC & PHY) on the Main tab.
  • You select the value of 40 Gbps (4x10) for the PHY configuration parameter on the Main tab.
  • You select the value of Full Duplex for the Duplex mode parameter on the Main tab.

Parameter

Type

Range

Default Setting

Parameter Description

KR4 General Options

Enable KR4

Boolean

  • True
  • False

False

If this parameter is turned on, the IP core is a 40GBASE-KR4 variation. If this parameter is turned off, the IP core is not a 40GBASE-KR4 variation, and the other parameters on this tab are not available.

Enable KR4 Reconfiguration

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core supports dynamic analog reconfiguration through a dedicated reconfiguration interface. If this parameter is turned off, the IP core cannot support auto-negotiation (AN) or link training (LT) modes, and the AN and LT parameters on this tab are not available. This parameter does not affect FEC availability.

Auto-Negotiation

Enable Auto-Negotiation

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core includes logic to implement auto-negotiation as defined in Clause 73 of IEEE Std 802.3ap–2007. If this parameter is turned off, the IP core does not include auto-negotiation logic and cannot perform auto-negotiation.

Currently the IP core can only negotiate to KR4 mode.

Link fail inhibit time for 40Gb Ethernet

Integer (Unit: ms)

500–510 ms

504 ms

Specifies the time before link_status is set to FAIL or OK. A link fails if the time duration specified by this parameter expires before link_status is set to OK. For more information, refer to Clause 73 Auto-Negotiation for Backplane Ethernet in IEEE Standard 802.3ap–2007.

The 40GBASE-KR4 IP core asserts the lanes_deskewed signal to indicate link_status is OK.

Auto-Negotiation Master

String

  • Lane 0
  • Lane 1
  • Lane 2
  • Lane 3

Lane 0

Selects the master channel for auto-negotiation.

Pause ability–C0

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core supports symmetric pauses as defined in Annex 28B of Section 2 of IEEE Std 802.3–2008.

Pause ability–C1

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core supports asymmetric pauses as defined in Annex 28B of Section 2 of IEEE Std 802.3–2008.

Link Training: PMA Parameters

VMAXRULE

Integer

0–63 60

Specifies the maximum VOD. The default value, 60, represents 1200 mV.

VMINRULE

Integer

0–63 9

Specifies the minimum VOD. The default value, 9, represents 165 mV.

VODMINRULE

Integer

0–63 24

Specifies the minimum VOD for the first tap. The default value, 24, represents 440 mV.

VPOSTRULE

Integer

0–31 31

Specifies the maximum value that the internal algorithm for pre-emphasis will ever test in determining the optimum post-tap setting.

VPRERULE

Integer

0–15 15

Specifies the maximum value that the internal algorithm for pre-emphasis will ever test in determining the optimum pre-tap setting.

PREMAINVAL

Integer

0–63 60

Specifies the Preset VOD value. This value is set by the Preset command of the link training protocol, defined in Clause 72.6.10.2.3.1 of IEEE Std 802.3ap–2007.

PREPOSTVAL

Integer

0–31 0

Specifies the preset Post-tap value.

PREPREVAL

Integer

0–15 0

Specifies the preset Pre-tap value.

INITMAINVAL

Integer

0–63 52

Specifies the initial VOD value. This value is set by the Initialize command of the link training protocol, defined in Clause 72.6.10.2.3.2 of IEEE Std 802.3ap–2007.

INITPOSTVAL

Integer

0–31 30

Specifies the initial Post-tap value.

INITPREVAL

Integer

0–15 5

Specifies the initial Pre-tap value.

Link Training: General

Enable Link Training

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core includes the link training module, which configures the remote link partner TX PMD for the lowest Bit Error Rate (BER). LT is defined in Clause 72 of IEEE Std 802.3ap–2007.

Enable microcessor interface

Boolean

  • True
  • False

False

If this parameter is turned on, the IP core includes a dedicated interface through which you can control the link training.

Enable RX equalization

Boolean

  • True
  • False

False

If this parameter is turned on, the IP core includes the RX part of the link training module. This part of the link training configures local receiver RX Continuous Linear Time Equalizer (CTLE) and Decision Feedback Equalizer (DFE) to achieve the lowest Bit Error Rate (BER) .

Maximum bit error count

Integer

2n – 1 for n an integer in the range 4–12. 4095

Specifies the maximum number of errors on a lane before the Link Training Error bit (40GBASE-KR4 register offset 0xD2, bit 4, 12, 20, or 28, depending on the lane) is set, indicating an unacceptable bit error rate.

n is the width of the Bit Error Counter that is configured in the IP core. The value to which you set this parameter determines n, and thus the width of the Bit Error Counter. Because the default value of this parameter is 4095, the default width of the Bit Error Counter is 12 bits.

You can use this parameter to tune PMA settings. For example, if you see no difference in error rates between two different sets of PMA settings, you can increase the width of the bit error counter to determine if a larger counter enables you to distinguish between PMA settings.

Number of frames to send before sending actual data

Integer

  • 127
  • 255
127

Specifies the number of additional training frames the local link partner delivers to ensure that the link partner can correctly detect the local receiver state.

FEC Options

Include FEC sublayer

Boolean

  • True
  • False

False

If this parameter is turned on, the IP core includes logic to implement FEC.

Set FEC_ability bit on power up/reset

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core sets the FEC ability bit (40GBASE-KR4 register offset 0xB0, bit 16) on power up and reset.

Set FEC_Enable bit on power up/reset

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core sets the FEC enable bit (40GBASE-KR4 register offset 0xB0, bit 18) on power up and reset. If you turn on this parameter but do not turn on Set FEC_ability bit on power up/reset, this parameter has no effect: the IP core cannot specify the value of 1 for FEC Requested without specifying the value of 1 for FEC Ability.

Set FEC_Error_indication_ability bit on power up/reset

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core is programmed by default (40GBASE-KR4 register offset 0xB0, bit 17) to report decoding errors to the PCS.

Use M20K for FEC Buffer (if available)

Boolean

  • True
  • False

True

If this parameter is turned on, the IP core is configured with a pipelined FEC buffer to support the Quartus II software in inferring M20K memory. Turning on this parameter potentially saves device resources.
Table 13.   40-100GbE PHY Parameter SettingsLists the PHY parameters that are configured automatically based on parameter values you select in the 40G/100G Ethernet parameter editor.

Parameter

40GbE Value

40GBASE-KR4 Value

100GbE Value

40GbE at 24.24 Gbps

100GbE at CAUI–4

Lanes

4

10

4

4

Data rate per lane

10312.5 Mbps

10312.5 Mbps

6250.0 Mbps

25781.25 Mbps

Available PHY reference clock frequencies

644.53125 MHz

322.265625 MHz

644.53125 MHz

322.265625 MHz

390.625 MHz

195.3125 MHz

644.53125 MHz

2 This parameter is disabled in MAC-only operation.
3 The PHY configuration parameter is disabled when MAC configuration is set to 100GbE and Device family is not Stratix V. If the parameter is disabled, the IP core must always be set to the regular 10 Gbps PHY link option of 4 x 10.3125 or 10 x 10.3125.
4 For the Device family parameter, the CAUI-4 option requires the Stratix V GT device.
5 This parameter is disabled in PHY-only operation.
6 The Duplex mode parameter is disabled when PHY configuration is set to CAUI–4; CAUI–4 variations must always be set to the duplex configuration.
7 The PHY PLL type parameter is disabled when PHY configuration is set to CAUI–4; CAUI–4 variations must always be set to the ATX configuration.
8 The PHY PLL type parameter is disabled when the IP core targets a Stratix IV device; Stratix IV variations must always be set to the CMU configuration.