Altera Low Latency Ethernet 10G MAC Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Instruments de mesure Altera Low Latency Ethernet 10G MAC. Altera Low Latency Ethernet 10G MAC User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 109
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Low Latency Ethernet 10G MAC
User Guide
Last updated for Altera Complete Design Suite: 15.0
Subscribe
Send Feedback
UG-01144
2015.05.04
101 Innovation Drive
San Jose, CA 95134
www.altera.com
Vue de la page 0
1 2 3 4 5 6 ... 108 109

Résumé du contenu

Page 1 - Low Latency Ethernet 10G MAC

Low Latency Ethernet 10G MACUser GuideLast updated for Altera Complete Design Suite: 15.0SubscribeSend FeedbackUG-011442015.05.04101 Innovation DriveS

Page 2 - Contents

Getting Started with LL Ethernet 10G MAC22014.12.15UG-01144SubscribeSend FeedbackThis chapter provides a general overview of the Altera IP core design

Page 3

Signal Direction Width Descriptionmii_rx_d[] Out 4 RX data bus.mii_rx_dv Out 1 When asserted, indicates the RX data is valid.mii_rx_err Out 1 When ass

Page 4

Signal Direction Width Descriptiontx_egress_timestamp_96b_data[] Out 96 Carries the 96-bit egress timestamp inthe following format:• Bits 48 to 95: 48

Page 5 - About LL Ethernet 10G MAC

Signal Direction Width Descriptiontx_egress_timestamp_64b_fingerprint[]Out n n = value of the Timestampfingerprint width parameter.The fingerprint of

Page 6 - Features

Signal Direction Width Descriptiontx_path_delay_10g_data(for 10 Gbps)In16Connect this bus to the Altera PHYIP. This bus carries the path delay,which i

Page 7 - Release Information

Signal Direction Width Descriptiontx_etstamp_ins_ctrl_ingress_timestamp_96b[]In 96 96-bit format of ingress timestamp.(48 bits second + 32 bits nanose

Page 8 - Resource Utilization

Signal Direction Width Descriptiontx_etstamp_ins_ctrl_offset_checksum_field[]In 16 The location of the checksum field,relative to the first byte of th

Page 9 - TX and RX Latency

Signal Direction Width Descriptionrx_ingress_timestamp_64b_data[] Out 64 Carries the 64-bit ingress timestampin the following format:• Bits 16 to 63:

Page 10 - Related Information

Additional InformationA2014.12.15UG-01144SubscribeSend FeedbackThis section provides additional information about the document and Altera.Low Latency

Page 11

Date Version ChangesDecember 2014 2014.12.15• Updated the Performance and Resource Utilization table—improvedthe resource utilization for IEEE 1588v2

Page 12

Date Version ChangesJune 2014 2014.06.30• Improved the performance and resource utilization.• Added a new feature—Unidirectional Ethernet.• Added a ne

Page 13 - Parameter Value Description

Installing and Licensing IP CoresThe Altera IP Library provides many useful IP core functions for your production use without purchasingan additional

Page 14

7. To generate an HDL instantiation template that you can copy and paste into your text editor, clickGenerate > HDL Example.8. Click Finish. The pa

Page 15 - Extension Description

Related Information• Parameter Settings on page 2-4Parameter SettingsYou customize the MAC IP core by specifying the parameters on the parameter edito

Page 16

Parameter Value DescriptionNumber of PFC queues 2—8 Specify the number of PFC queues. Thisparameter is only enabled if you turn Enablepriority-based f

Page 17 - RTL Simulation

Parameter Value DescriptionTimestamp fingerprint width 1–32 Specify the width of the timestamp fingerprintin bits on the transmit path. The default va

Page 18

Extension Description<variation name>.qip Contains Quartus II project information for your MegaCore functionvariation.<variation name>.bsf

Page 19 - Send Feedback

Figure 2-3: Simulation in Quartus II Design FlowPost-fit timing simulation netlist Post-fit timing simulation (3)Post-fit functional simulation net

Page 20 - Design Considerations

Altera verifies that the current version of the Quartus II software compiles the previous version of each IPcore. The MegaCore IP Library Release Note

Page 21 - Clock Crosser

Figure 2-5: Upgrading IP CoresDouble-click to upgrade in editor(no auto upgrade)Upgrade requiredMigration detailsSupports Auto upgradeUpgrade success1

Page 22 - Dual Clock FIFO

ContentsAbout LL Ethernet 10G MAC... 1-1Features...

Page 23 - Subscribe

6. To regenerate the new IP variation for the new target device, click Generate. When generation iscomplete, click Close.7. Click Finish to complete m

Page 24 - Interfaces Description

Migration—Maintains 64-bit on Avalon-ST InterfaceThis migration path implements 32-bit to 64-bit adapters on the Avalon ST interface and XGMII, anduse

Page 25 - Figure 3-2: Interface Signals

The timing constraint file uses the set_net_delay to constraint the fitter placement and set_max_skew toperform timing check on the paths. For a proje

Page 26 - Address Insertion

Functional Description of LL Ethernet 10G MAC32014.12.15UG-01144SubscribeSend FeedbackThe Low Latency (LL) Ethernet 10G MAC IP core handles the flow o

Page 27 - CRC-32 Insertion

InterfacesTable 3-1: InterfacesInterfaces DescriptionAvalon-ST InterfaceThe client-side interface of the MAC employs the Avalon-ST protocol,which is a

Page 28 - XGMII Encapsulation

Figure 3-2: Interface SignalsThe inclusion and width of some signals depend on the operating mode and features selected.MAC RXClock andResetcsr_clkcsr

Page 29 - XGMII Transmission

Frame TypesThe MAC IP core supports the following frame types:• Basic Ethernet frames, including jumbo frames.• VLAN and stacked VLAN frames.• Control

Page 30 - Unidirectional Feature

CRC-32 InsertionBy default, the MAC TX computes and inserts CRC-32 checksum into TX frames. The MAC TXcomputes the CRC-32 checksum over frame bytes th

Page 31 - TX Timing Diagrams

The following figure shows the timing diagram on the Avalon-ST data interfaces where CRC insertion isdisabled on transmit and CRC removal is disabled

Page 32

An underflow could occur on the Avalon-ST TX interface. An underflow occurs when theavalon_st_tx_valid signal is deasserted in the middle of frame tra

Page 33

Length Checking...3-14CRC and

Page 34

Figure 3-6: Endian Conversion55 (1)D5 CC CC EE 01 05 09 0D55(1)55 88 EE AA 00 04 08 0C55(1)55 EE CC 2E 03 07 0B 0FFB 55 EE AA 88 00 02 06 0A 0ECCtx_31

Page 35 - RX Datapath

Table 3-2: Register Field and Link StatusBit 0 Register Field Bit 1 Register Field Link Status TX XGMII Interface BehaviorDon't care Don't c

Page 36 - Length Checking

Figure 3-8: Normal Frame with Preamble Passthrough Mode, Padding Bytes Insertion, and SourceAddress Insertion EnabledThe following diagram shows the t

Page 37 - Payload Length

Figure 3-10: Back-to-back Transmission of Normal Frames with Preamble Passthrough Mode EnabledThe following diagram shows back-to-back transmission of

Page 38 - RX Timing Diagrams

Figure 3-12: Error Condition—Underflow, continuedtx_312_5_clkavalon_st_tx_startofpacketavalon_st_tx_validavalon_st_tx_readyavalon_st_tx_endofpacketava

Page 39 - IEEE 802.3 Flow Control

RX DatapathThe MAC RX receives Ethernet frames from the XGMII and forwards the payload with relevant framefields to the client after performing checks

Page 40 - Pause Frame Transmission

Address CheckingThe MAC RX can accept frames with the following address types:• Unicast address—bit 0 of the destination address is 0.• Multicast addr

Page 41 - Priority-Based Flow Control

Frame LengthThe frame length must be at least 64 (0x40) bytes and not exceed the following maximum value for thedifferent frame types:• Basic—The valu

Page 42 - Reset Requirements

Overflow HandlingWhen an overflow occurs on the client side, the client can backpressure the Avalon-ST receive interfaceby deasserting the avalon_st_r

Page 43 - No Stage Steps

Figure 3-16: Back-to-back Transmission of Normal Frames with Preamble Passthrough Mode EnabledThe following diagram shows back-to-back reception of no

Page 44 - Operating Mode PHY

PHY-side Interfaces...

Page 45

To use the IEEE 802.3 flow control, set the following registers:• On the transmit datapath:• Set tx_pfc_priority_enable to 0 to disable the PFC.• Set

Page 46

The following figure shows the transmission of an XON pause frame. The MAC sets the destinationaddress field to the global multicast address, 01-80-C2

Page 47 - IEEE 1588v2

PFC Frame ReceptionWhen the MAC RX receives a PFC frame from the remote partner, it asserts theavalon_st_rx_pfc_pause_data[n] signal if Pause Quanta n

Page 48 - Transmit Datapath

Figure 3-18: CSR Resetcsr, tx, rx clockscsr_rst_ntx_rst_nrx_rst_nWhen you assert csr_rst_n , you must also assert tx_rst_n and rx_rst_n . Hold the re

Page 49 - Frame Format

Table 3-4: Supported PHYsOperating Mode PHY10G 10GBASE-R PHY, XAUI PHY1G/10G10GBASE-KR or 1G/10G PHY10M/100M/1G/10GTo connect the MAC IP core to 64-bi

Page 50 - PTP Packet over UDP/IPv4

Figure 3-19: PHY Configuration with 10GBASE-R Register Mode Enabled.Figure shows a block diagram of the PHY configuration when operating in 10GBASE-R

Page 51 - PTP Packet over UDP/IPv6

Figure 3-20: Fault SignalingRemote Fault (0x9c000002)Idle (07070707)Remote Fault (0x9c000002)ClientInterfaceMACTxRS TxMACRxRS Rx2link_fault_status_xgm

Page 52 - 4 Octets

IEEE 1588v2The IEEE 1588v2 option provides time stamp for receive and transmit frames in the LL Ethernet 10GMAC IP core designs. The feature consists

Page 53 - Word Offset Purpose Variation

Figure 3-22: Overview of IEEE 1588v2 FeatureIEEE 1588v2Tx LogicIEEE 1588v2Rx LogicPTP SoftwareStackTime-of-DayClockPHYTxPHYRx10GbE MAC IP10GBASE-R PHY

Page 54 - (LL Ethernet 10G MAC)

Table 3-5: Timestamp and Correction Insertion for 1-Step Clock SynchronizationPTP MessageOrdinary Clock Boundary ClockE2E TransparentClockP2P Transpar

Page 55

About LL Ethernet 10G MAC12014.12.15UG-01144SubscribeSend FeedbackThe Altera® Low Latency (LL) Ethernet 10G (10GbE) Media Access Controller (MAC) IP c

Page 56 - Register Access

Figure 3-23: PTP Packet in IEEE 802.3flagFieldcorrectionFieldtransportSpecific | messageTypereserved | versionPTPreserved1 Octet1 Octet1 Octet2 Octets

Page 57 - Access Definition

Figure 3-24: PTP Packet over UDP/IPv4MAC HeaderUDP HeaderIP HeaderPTP HeaderTime To LiveProtocol = 0x11Version | Internet Header LengthDifferentiated

Page 58

Figure 3-25: PTP Packet over UDP/IPv6Version | Traffic Class | Flow LabelPayload Length4 Octet2 OctetsSource IP Address16 OctetsDestination IP Address

Page 59

Configuration Registers for LL Ethernet 10GMAC42014.12.15UG-01144SubscribeSend FeedbackThe LL Ethernet 10G MAC IP core provides a total of 4Kb registe

Page 60

Mapping 10-Gbps Ethernet MAC Registers to LL Ethernet 10G MAC RegistersUse this table to map the legacy Ethernet 10-Gbps MAC registers to the LL Ether

Page 61

Register Names (10-Gbps Ethernet MAC)Offset(10-Gbps Ethernet MAC)Offset(LL Ethernet 10G MAC)TX Address Insertion Control 1200 02ATX Address Insertion

Page 62 - Flow Control Registers

Register Names (10-Gbps Ethernet MAC)Offset(10-Gbps Ethernet MAC)Offset(LL Ethernet 10G MAC)TX Period for 10G 1110 100TX Fractional Nano-second Adjust

Page 63

Access DefinitionRW1C Read and write 1 to clear. Writing 0 has no effect. Writing 1 clears the bit if the bit hasbeen set to 1 by the IP core. The cli

Page 64

Table 4-5: MAC Reset Control RegisterWordOffsetRegister Name Description Access HW ResetValue0x001F mac_reset_control The user application can use the

Page 65

WordOffsetRegister Name Description Access HW ResetValue0x0022 tx_transfer_statusThe MAC sets the following bits to indicatethe status of the TX datap

Page 66

FeaturesThe LL Ethernet 10G MAC supports the following features:• Full-duplex MAC in four operating modes: 10G, 1G/10G, or 10M/100M/1G/10G).• Three v

Page 67

WordOffsetRegister Name Description Access HW ResetValue0x0028 tx_preamble_control(4)• Bit 0—configures the preamblepassthrough mode on transmit.0: Di

Page 68

WordOffsetRegister Name Description Access HW ResetValue0x002D tx_vlan_detection• Bit 0—TX VLAN detection disable.0: The MAC detects VLAN and stackedV

Page 69

Flow Control RegistersTable 4-7: Flow Control RegistersWordOffsetRegister Name Description Access HW ResetValue0x0040 tx_pauseframe_control• Bits 1:0—

Page 70

WordOffsetRegister Name Description Access HW ResetValue0x0044 tx_pauseframe_enable• Bit 0—configures the transmission ofpause frames. This bit affect

Page 71

WordOffsetRegister Name Description Access HW ResetValue0x0058 pfc_holdoff_quanta_0(5)Specifies the gap between two consecutivetransmissions of XOFF p

Page 72

RX Configuration and Status RegistersTable 4-9: RX Configuration and Status RegistersWordOffsetRegister Name Description Access HW ResetValue0x00A0 rx

Page 73

WordOffsetRegister Name Description Access HW ResetValue0x00A6 rx_crccheck_control CRC checking on receive.• Bit 0—always set this bit to 0.• Bit 1—CR

Page 74

WordOffsetRegister Name Description Access HW ResetValue0x00AC rx_frame_controlConfigure this register before you enablethe MAC IP core for operations

Page 75

WordOffsetRegister Name Description Access HW ResetValue0x00AC rx_frame_controlBit 16—EN_SUPP00: Disables the use of supplementaryaddress 0.1: Enables

Page 76 - ECC Registers

WordOffsetRegister Name Description Access HW ResetValue0x00B0 rx_frame_spaddr0_0 You can specify up to four 6-bytesupplementary addresses:• rx_framed

Page 77 - Statistics Registers

Release InformationThe following table lists information about this release of the LL Ethernet 10G MAC IP core.Table 1-1: Release InformationItem Desc

Page 78

WordOffsetRegister Name Description Access HW ResetValue0x00FCrx_pktovrflow_error36-bit error counter that collects thenumber of RX frames that are tr

Page 79

Table 4-10: TX Timestamp RegistersWordOffsetRegister Name Description Access HW ResetValue0x0100 tx_period_10GSpecifies the clock period for thetimest

Page 80

WordOffsetRegister Name Description Access HW ResetValue0x10A tx_fns_adjustment_mult_speedStatic timing adjustment in fractionalnanoseconds on the TX

Page 81

Step Description 10G 10M, 100M or 1G2 Convert the digitallatency in UI to ns.123 UI * 0.097 = 11.931 ns 53 UI * 0.8 = 42.4 ns3 Add the analog latencyt

Page 82

Table 4-14: RX Timestamp RegistersWordOffsetRegister Name Description Access HW ResetValue0x0120 rx_period_10GSpecifies the clock period on the RXdata

Page 83 - Direction Width Description

WordOffsetRegister Name Description Access HW ResetValue0x12A rx_fns_adjustment_mult_speedStatic timing adjustment in fractionalnanoseconds on the RX

Page 84

Table 4-16: Example: Calculating Timing Adjustments for 10M – 10GbE Design in Stratix V DeviceStep Description 10G 10M, 100M or 1G1 Identify the digit

Page 85

Table 4-18: ECC RegistersWord Offset Register Name Description Access HW ResetValue0x0240 ecc_status• Bit 0—a value of '1' indicates that an

Page 86 - Avalon-MM Programming Signals

Memory-based statistics counters may not be accurate when the MAC IP core receives or transmits back-to-back undersized frames. On the TX datapath, yo

Page 87 - Avalon-ST Data Interfaces

WordOffsetRegister Name Description Access HW ResetValue0x014Atx_stats_pauseMACCtrl_Frames36-bit statistics counter that collectsthe number of valid p

Page 88

Configuration Arria V GX/GT/GZArria 10 Stratix V10G MAC with Arria 10 Transceiver Native PHYpresets:• 10GBASE-R• 10GBASE-R Low Latency• 10GBASE-R Regi

Page 89

WordOffsetRegister Name Description Access HW ResetValue0x0158tx_stats_broadcast_FramesErr36-bit statistics counter that collectsthe number of broadca

Page 90 - Avalon-ST Status Interface

WordOffsetRegister Name Description Access HW ResetValue0x0166tx_stats_etherStatsPkts128to255Octets36-bit statistics counter that collectsthe number o

Page 91

WordOffsetRegister Name Description Access HW ResetValue0x0172tx_stats_etherStatsJabbers36-bit statistics counter that collectsthe number of oversized

Page 92

Interface Signals for LL Ethernet 10G MAC52014.12.15UG-01144SubscribeSend FeedbackRelated InformationInterfaces on page 3-2Overview of the interfaces

Page 93

Signal OperatingModeDirection Width Descriptiontx_156_25_clk 10G, 1G/10G,10M/100M/1G/10GIn 1156.25-MHz clock for the MAC TXdatapath when you choose to

Page 94 - PHY-side Interfaces

Signal OperatingModeDirection Width Descriptionrx_rst_n All In 1Active-low reset for the MAC RXdatapath.csr_clk 10G, 1G/10G,10M/100M/1G/10GIn 1 Clock

Page 95

Table 5-3: Error Correction SignalsSignal Direction Width Descriptionecc_err_det_corr Out 1 The MAC IP core can indicate detected andcorrected ECC err

Page 96

Signal Direction Width Descriptioncsr_read In 1 Assert this signal to request a read.csr_readdata[] Out 32 Data read from the specified register. The

Page 97 - XGMII RX Signals

Signal Direction Width Descriptionavalon_st_tx_empty[]In 2 Use this signal to specify the number of empty bytes(not used) in the cycle that contain th

Page 98 - GMII TX Signals

Signal Direction Width Descriptionavalon_st_rx_empty[]Out 2/3Contains the number of empty bytes during thecycle that contain the end of the RX data.Th

Page 99 - MII RX Signals

MAC SettingsALMs ALUTsLogicRegistersMemory BlockOperatingModeEnabled Options10M/100M/1G/10GTimestampingand memory-based statisticscounters.Time of day

Page 100 - 1588v2 Interfaces

Signal Direction Width Descriptionavalon_st_tx_pfc_gen_data[]In n(4–16)n = 2 x Number of PFC queues parameter.Each pair of bits is associated with a p

Page 101 - 2014.12.15

Table 5-9: Avalon-ST TX Status SignalsSignal Direction Width Descriptionavalon_st_txstatus_validOut 1 When asserted, this signal qualifies the avalon_

Page 102

Signal Direction Width Descriptionavalon_st_tx_pfc_status_data[]Out n(4 - 16)n = 2 x Number of PFC queues parameterWhen set to 1, the respective bit i

Page 103

Signal Direction Width Descriptionavalon_st_rxstatus_data[]Out 40Contains information about the RX frame.• Bits 0 to 15: Payload length.• Bits 16 to 3

Page 104

Signal Direction Width Descriptionavalon_st_rx_pfc_status_data[]Out n(4 - 16)n = 2 x Number of PFC queues parameterWhen set to 1, the respective bit i

Page 105

Signal Condition Direction Width Descriptionxgmii_tx_control[]Use legacy Ethernet10G MAC XGMIIinterface disabled.Enable 10GBASE-Rregister modedisabled

Page 106

Signal Condition Direction Width Descriptionxgmii_tx[] Use legacy Ethernet10G MAC XGMIIinterface enabled.Out 728-lane SDR XGMII transmit data andcontr

Page 107 - Additional Information

XGMII RX SignalsTable 5-12: XGMII Receive SignalsSignal Condition Direction Width Descriptionxgmii_rx_data[]Use legacy Ethernet10G MAC XGMIIinterface

Page 108 - Date Version Changes

Signal Condition Direction Width Descriptionxgmii_rx_validUse legacy Ethernet10G MAC XGMIIinterface disabled.Enable 10GBASE-Rregister modeenabled.In 1

Page 109

GMII RX SignalsTable 5-14: GMII RX SignalsSignal Direction Width Descriptiongmii_rx_clk In 1 125-MHz RX clock.gmii_rx_d[] In 8 RX data.gmii_rx_dv In 1

Commentaires sur ces manuels

Pas de commentaire