Altera Low Latency Ethernet 10G MAC Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Urządzenia pomiarowe Altera Low Latency Ethernet 10G MAC. Altera Low Latency Ethernet 10G MAC User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 0
1 2 3 4 5 6 ... 108 109

Podsumowanie treści

Strona 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

Strona 2 - Contents

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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:

Strona 10 - Related Information

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

Strona 11

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

Strona 12

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 18

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

Strona 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

Strona 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

Strona 21 - Clock Crosser

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

Strona 22 - Dual Clock FIFO

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 33

Length Checking...3-14CRC and

Strona 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

Strona 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

Strona 36 - Length Checking

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 44 - Operating Mode PHY

PHY-side Interfaces...

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 51 - PTP Packet over UDP/IPv6

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

Strona 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

Strona 53 - Word Offset Purpose Variation

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

Strona 54 - (LL Ethernet 10G MAC)

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

Strona 55

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

Strona 56 - Register Access

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

Strona 57 - Access Definition

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

Strona 58

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

Strona 59

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 64

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

Strona 65

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

Strona 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

Strona 67

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

Strona 68

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

Strona 69

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

Strona 70

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

Strona 71

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

Strona 72

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

Strona 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

Strona 74

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

Strona 75

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

Strona 76 - ECC Registers

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

Strona 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

Strona 78

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

Strona 79

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

Strona 80

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

Strona 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

Strona 82

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

Strona 83 - Direction Width Description

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

Strona 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

Strona 85

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

Strona 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

Strona 87 - Avalon-ST Data Interfaces

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

Strona 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

Strona 89

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

Strona 90 - Avalon-ST Status Interface

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

Strona 91

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

Strona 92

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 99 - MII RX Signals

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

Strona 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

Strona 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_

Strona 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

Strona 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

Strona 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

Strona 105

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

Strona 106

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

Strona 107 - Additional Information

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

Strona 108 - Date Version Changes

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

Strona 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

Komentarze do niniejszej Instrukcji

Brak uwag