PHY-Less Ethernet Implementation Using Freescale Power Architecture Based Microprocessors

Similar documents
Patrick B. Billings. NMSG/NPD Applications Engineering

DP83848 Single 10/100 Mb/s Ethernet Transceiver Reduced Media Independent Interface (RMII ) Mode

Implementing an Ethernet Solution Using Power Architecture Based Processors: An Overview of the etsec, VeTSEC and dtsec IP Blocks Mark Cheng

Introduction to Ethernet. Guy Hutchison 8/30/2006

Relationship of 1000BASE-T1 to other standards

Introduction to Ethernet and lab3.3

MAC-PHY Rate Adaptation Baseline. Arthur Marris

From the Ethernet MAC to the link partner

KSZ9031RNX-EVAL Board User s Guide. Micrel, Inc All rights reserved

MAC on the HUB. Y. Ermoline, V0.1. This note describe design steps of the MAC on HUB FPGA to work with Ethernet for IPbus.

Optimal Management of System Clock Networks

HSMC-NET. Terasic HSMC-NET Daughter Board. User Manual

HSMC Ethernet Quad-PHY Daughter Board

IEEE 802 LANs SECTION C

MAX Gbps Parallel-to-Serial MII Converter

40-Gbps and 100-Gbps Ethernet in Altera Devices

Application of High Speed Serial Data Transmission System in Remote Sensing Camera

Tri-Speed Ethernet MAC IP User Guide

Canova Tech. IEEE Plenary Meeting, San Diego (CA) cg draft 2.0 PLCA (Clause 148) Overview July 9 th, 2018

MAC on the HUB. Y. Ermoline, V0.2a. This note describe design steps of the MAC on HUB FPGA to work with Ethernet for IPbus.

LogiCORE IP Virtex-6 FPGA Embedded Tri-Mode Ethernet MAC Wrapper v2.3

Virtex-5 FPGA Embedded Tri-Mode Ethernet MAC Wrapper v1.7

Virtex-6 FPGA Embedded Tri-Mode Ethernet MAC Wrapper v1.4

HB0571 CoreTSE_AHB v3.1 Handbook

Gigabit Ethernet Switch Subsystem

Canova Tech The Art of Silicon Sculpting

Using GCR4 to Adjust Ethernet Timing in MSC8144 DSPs

Methode Electronics. DM7041-X 1000BASE-T Small Form Factor Pluggable BDT Bus Interface. ISO 9001 Certified

Clause BASE-X Physical Coding Sublayer (PCS) UNIVERSITY of NEW HAMPSHIRE INTEROPERABILITY LABORATORY

M242 COMPUTER NETWORS AND SECURITY

Virtex-5 FPGA Embedded Tri-Mode Ethernet MAC User Guide. UG194 (v1.7) October 17, 2008

INT-1010 TCP Offload Engine

FCC Ethernet Controller

10/100M Ethernet-FIFO convertor

Part3. Local Area Networks (LAN)

TruePHY ET1011C Gigabit Ethernet Transceiver

TruePHY ET1011 Gigabit Ethernet Transceiver

Product Change Notification - SYST-27SHNF957 (Printer Friendly)

INT 1011 TCP Offload Engine (Full Offload)

FPGA Implementation of Low Power Serial to High Speed Data Networks

BlazePPS (Blaze Packet Processing System) CSEE W4840 Project Design

LogiCORE IP AXI Ethernet v6.0

NS9750B-0. Use in conjunction with: Errata , Rev G. Release date: May Phone: Web:

HB0627 CoreSGMII v3.2 Handbook

Table 1: Cross Reference of Applicable Products

10-Gbps Ethernet Hardware Demonstration Reference Design

Application of Zero Delay Buffers in Switched Ethernet

Cortina Systems IXF Port Gigabit Ethernet Media Access Controller

Programmable Logic Design Grzegorz Budzyń Lecture. 15: Advanced hardware in FPGA structures

RoHS compliant RJ45 gigabit Ethernet Small Form Pluggable (SFP), 3.3V 1000BASE Ethernet. Performance

ETHERNET IP CORE VERIFICATION USING SYSTEM VERILOG HDL

10G XENPAK to SFP+ Converter Module SL-XENPAK-SFP+

Frequently Asked Questions Regarding Xmultiple SFP Gigabit 1000BASE-T

The RM9150 and the Fast Device Bus High Speed Interconnect

Internet Architecture and Protocol

Link Layer and Ethernet

Local Area Networks. Ethernet LAN

NS9360. Errata _F. Release date: March 2008

Link Layer and Ethernet

Quad Serial Gigabit Media Independent v3.4

KSZ8081MNX / KSZ8091MNX

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Quick Start Guide for TWR-SER2 TOWER SYSTEM. TWR-SER2 Enhanced serial module

KSZ8795CLXD-EVAL Board (KSZ8795CLX+KSZ9031RNX) Demo Evaluation Board User s Guide

LatticeSCM SPI4.2 Interoperability with PMC-Sierra PM3388

RTL8212-GR RTL8212N-GR RTL8211N-GR

C H A P T E R GIGABIT ETHERNET PROTOCOL

80C300. Full Duplex CMOS Ethernet 10/100 Mega Bit/Sec Data Link Controller 98012

AN 830: Intel FPGA Triple-Speed Ethernet and On-Board PHY Chip Reference Design

80220/ BASE-TX/10BASE-T Ethernet Media Interface Adapter

Local Area Networks. Aloha Slotted Aloha CSMA (non-persistent, 1-persistent, p-persistent) CSMA/CD Ethernet Token Ring

MSC8156 Ethernet Interface

Network Media and Layer 1 Functionality

DG0633 Demo Guide IGLOO2 FPGA CoreTSE MAC 1000 Base-T Loopback Demo - Libero SoC v11.7 SP2

KSZ8081RNB / KSZ8091RNB

Bit A binary digit. The smallest unit of data, either a zero or a one. Bus A shared connection for multiple devices over a cable or backplane.

Intel IXP42X Product Line and IXC1100 Control Plane Processor: Using the Intel LXT973 Ethernet Transceiver

SMIC PHY Spec. Single port 10/100 Fast Ethernet Transceiver

Logic Built In Self-Test Verification Statergy For SerDes PHY

EECS 122, Lecture 7. Kevin Fall Jean Walrand

Overview of Ethernet Networking

Introductory to Computer Networks Local Area Networks. Lecture 16 Fall Isfahan University of technology Dr.

LatticeSC/M 2.5GbE Physical/MAC Layer Interoperability Over CX-4

LogiCORE IP Quad Serial Gigabit Media Independent v1.2

PLC Stamp 1200 micro Datasheet

UDP1G-IP reference design manual

LogiCORE IP Quad Serial Gigabit Media Independent v1.1 Product Guide

AN 830: Intel FPGA Triple-Speed Ethernet and On-Board PHY Chip Reference Design

802.3cb Proposed Text Changes for Clause 69, 73, 78, 125

LogiCORE IP Quad Serial Gigabit Media Independent v1.3

DESIGN AND IMPLEMENTATION OF AN AVIONICS FULL DUPLEX ETHERNET (A664) DATA ACQUISITION SYSTEM

82543GC Gigabit Ethernet Controller Specification Update

Intel Stratix 10 SoC Device Design Guidelines

LogiCORE IP Tri-Mode Ethernet MAC v5.2

7500P PHY Reference Version 1.0.1

Quad 100BaseTX/FX/10BaseT Physical Layer Device

8 PORT LOW COST 10/100 SWITCH

Today. Last Time. Motivation. CAN Bus. More about CAN. What is CAN?

Lecture Outline. Lecture 2. OSI model and networking. The OSI model and networking. The OSI model and networking. The OSI model and networking

Transcription:

June 24, 2010 PHY-Less Ethernet Implementation Using Freescale Power Architecture Based Microprocessors FTF-NET-F0568 Patrick B. Billings NMG, NPD Applications Engineering and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc.

Session Introduction This session focuses on some of the considerations of designing an Ethernet solution with a Freescale processor but without an external transceiver (PHY). The importance of these considerations can greatly reduce the probability of encountering design issues based on the chosen Ethernet interface or attachment unit interface (AUI). Media independent interface (MII), reduced gigabit MII (RGMII), and serial gigabit MII (SGMII) are examples used for this session. I am a member of the applications support team and have worked on several customer tickets inquiring about various products and their capability to perform to specifications without an external PHY. and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 2

Session Objectives After completing this session you will have an understanding of: The caveats of no PHY with the MII interface in Half-Duplex Mode The expectations of no PHY with the RGMII interface The expectations of no PHY with the SGMII interface The basic principles to apply to any chosen interface and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 3

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases When a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 4

OSI Model Layers Supported Layers of the Protocol Stack by Freescale Ethernet Hardware Media Layers Host Layers 7: Application end use (FTP, SMTP, ) 6: Presentation encryption & decryption 5: Session interhost communication 4: Transport reliability and flow control 3: Network / Internet logical addressing 2: Data Link (MAC) physical addressing 1: Physical (PHY) transmission/reception of bits Media Access Control (MAC) Ethernet Type II Frame L2 header L3 header (IPv4/IPv6) L4 header (TCP/UDP) Preamble SFD DA SA EthType Payload CRC32 IFG 7 bytes 1 byte 6 bytes 6 bytes 2 bytes 46 1500 bytes 4 bytes 12 bytes and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 5

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases When a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 6

Supported Ethernet Physical Interfaces (AUIs) INTERFACE SPEED (Mbps) DUPLEX MII (Media Independent Interface) 10 / 100 Full / Half RMII (Reduced MII) 1 10 / 100 Full / Half SMII (Serial MII) 1 10 / 100 Full / Half GMII (Gigabit MII) 2 10 / 100 / 1000 Full RGMII (Reduced GMII) 1 10 / 100 / 1000 Full / Half SGMII (Serial GMII) 1 10 / 100 / 1000 Full / Half XAUI (TEN Attachment Unit Interface) 10,000 Full TBI (Ten Bit Interface) 1000 Full RTBI (Reduced TBI) 1000 Full FIFO (8/16-bit) GMII Style (Platform Clk/4.2) Encoded (Platform Clk/3.2) Full Controllers CPM-FCC (8280,8560), QE-UEC (8360), FEC (880), TSEC (8560), etsec (8572), dtsec (P4080), 10G (P4080), VeTSEC (P1020) (Not all interfaces supported for each controller. Must refer to each products specific documentation.) 1 Half Duplex -10/100 is supported on this interface via encoding methods because there are no physical COL and CRS signals. 2 10/100 supported via fallback mode to MII and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 7

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases When a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 8

Role of the Transceiver Transceivers are called Medium Attachment Units (MAUs) in IEEE 802.3 Medium: Coaxial cable, twisted pair, optical fiber AUI: MII, RMII, GMII, etc. Interrupt Link Partner PHY (Layer 1) PHY (Layer 1) etsec based device (Layer 2,3,4) Advertise (reg 4) Advertise (reg 4) CPU ECM/MCM DDR CTRL DDR DMA Partner Ability (reg 5) Partner Ability (reg 5) MAC etsec Data and Buffer Descriptors AUI- Attachment Unit Interface DMA Direct Memory Access MDC MDIO and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 9

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases when a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 10

Possible Reasons PHY Is Not Needed Cost Real Estate Medium Distance Others and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 11

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases When a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 12

MII Half-Duplex with a PHY COL and CRS are active Clock speed 2.5 MHz or 25 MHz Collisions are normal and a back-off algorithm is used PHY manages the detection of collisions PHY manages the detection of the carrier Should be no reception when transmitting (No MAC loopback for Half-Duplex Mode) and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 13

Linear Feedback Shift Register and Back-off Algorithm Typically, when the PHY detects a collision event, it asserts the COL signal to the MPC8548. The MPC8548 then employs a back-off algorithm to determine the number of time slots to wait before retransmitting. One time slot equals 512 bits. The MAC-calculated back-off time is a multiple of 1 time slot and a generated random value. The MPC8548 processor employs the IEEE standard 802.3 back-off algorithm. random is based on hardware from an 11-bit linear feedback shift register (LFSR). The LFSR starts with a seed value based on the polynomial function implemented. For each Tx clock, the logic generates a pseudo-random number for use in the back-off time calculation. To add to the randomness, bit 2 of the 32-bit CRC from the etsec is XORed with bit 2 of the LFSR. MPC8548 is used only as an example and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 14

MII Half-Duplex Without a PHY COL and CRS are active Clock speed 2.5 MHz or 25 MHz Collisions are normal and a back-off algorithm is used Who manages the detection of collisions? Who manages the detection of the carrier? Should be no reception when transmitting (No MAC loopback for Half-Duplex Mode) What are we connected to? A bus Point-to-point device Backplane traces A connector? and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 15

PHY-Less MII Half-Duplex Caveats Carrier Sense and Collision Detect must be provided. By default, if more than 15 collision events are detected before a successful transmission, the MPC8548 processor reports excessive collisions and no longer attempts to transmit the data. Software must take steps to re-enable the etsec transmitter. Because the values from the LFSR are deterministic, MAC-to-MAC connections can become synchronized relative to Tx clocks and generate identical backoff times, causing the devices in the system to re-transmit at the same time. This can lead to an excessive collision event. The logic that controls the assertion of the COL signal must ensure it only asserts after the preamble, SFD, DA, SA, and Type fields of an Ethernet frame (22 bytes into the frame). Since each Tx clock sends a nibble of data over the MII, this equates to 44 Tx clocks. In addition, the devices should exhibit a soft reset at different points in time while the Tx clock is running. Furthermore, the logic that drives the Rx_DV signal must not assert it to an MPC8548 processor that is concurrently transmitting and asserting TX_EN. and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 16

PHY-Less MII Ensure signal integrity monotonic clock edges meet rise/fall time and other timing requirements matched I/O levels Point-to-Point connections Bus connections if there is an arbiter for CRS and COL and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 17

RGMII with a PHY External 125 MHz clock source is needed etsec outputs TX 125 MHz clock etsec has internal dividers to support 100 Mbps and 10 Mbps Half-Duplex is encoded (No COL and CRS signals used) TX and RX have different timings for the data (needed delay provided by trace or PHY) and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 18

Tx Data leads the GTX_CLK (-0.5ns) Spec Min max tskew T -0.5ns 0.5ns tskew R 1ns 2.8ns and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 19

Tx Data lags GTX_CLK (+0.5ns) Spec Min max tskew T -0.5ns 0.5ns tskew R 1ns 2.8ns and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 20

RGMII without a PHY External 125 MHz clock source is needed etsec outputs TX 125 MHz clock etsec has internal dividers to support 100 Mbps and 10 Mbps Half-Duplex is encoded (No COL and CRS signals used) TX and RX have different timings for the data (needed delay provided by trace or PHY) What are we connected to? A bus Point-to-point device Backplane traces A connector? and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 21

PHY-Less RGMII Ensure signal integrity monotonic clock edges meet rise/fall time and other timing requirements matched I/O levels TX and RX input skew specifications Point-to-point connection only and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 22

SGMII with a PHY SerDes block is used (differential signaling) Ten Bit Interface (TBI) interface signals are routed to the SerDes block 10/100/1000 Mbps supported with rate adaptation logic for SGMII. 1000Base-X is only 1 Gbps. Internal TBI PHY is used to establish the link (Speed fixed at 1000Mbps) 100MHz or 125Mhz Clk_P Clk_N SerDes TBI TBI PHY TXD_P TXD_N RXD_P RXD_N MDC Fixed 1.25Gbaud Lane n PHY SGMII or 1000Base-X Link Partner Advertisement registers may have two formats: 1000Base-X or SGMII. SW determines which is used. etsec MDIO and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 23

SGMII without a PHY SerDes block is used (differential signaling) TBI interface signals are routed to the SerDes block 100MHz or 125Mhz Clk_P Clk_N TXD_P TXD_N Lane n 10/100/1000 Mbps supported with rate adaptation logic for SGMII. 1000Base-X is only 1Gbps. Internal TBI PHY is used to establish the link (Speed fixed at 1000Mbps) Advertisement registers may have two formats: 1000Base-X or SGMII. SW determines which is used. SerDes TBI TBI PHY etsec Fixed 1.25Gbaud RXD_P RXD_N MDC MDIO? What are we connected to? A bus Point-to-point device Backplane traces A connector and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 24

Freescale processor employs built in TBI PHY Pay attention to trace length; Under 12 inches is OK PHY-Less SGMII SGMII and 1000Base-X format of Advertisement Registers read by software to determine capabilities 1000Base-X is 1 Gbps only. SGMII allows 10/100Mbps No auto-negotiation assumes link is good and TBI SR[Link Status] is set SerDes control registers are used. Ensure signal integrity Point-to-point connection only and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 25

Agenda Supported Layers of the Open System Interconnection (OSI) Model Supported Ethernet Interfaces (AUIs) Role of the Transceiver (Ethernet PHY) Cases When a PHY Is Not Needed Design Considerations for Freescale Processors Built on Power Architecture Technology Summary and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 26

Session Summary Many physical interface options (AUIs) are available for an Ethernet solution Freescale designs to an interface specification, so in most cases operation without a PHY is possible if the interface signal requirements are met. Timings, IO levels, etc. Input Output Buffer Information Specification (IBIS) modeling can help determine signal degradation to/from our device across the interconnect. For MII Half-Duplex mode, Bit 2 of the 32-bit CRC mentioned is not active until the payload portion of the Ethernet frame. Therefore, the calculated back-off times of multiple etsec devices can be identical until the randomness of bit 2 of the 32-bit CRC is introduced. For SGMII, differential signaling should not be a problem for traces less than 12 inches. and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 27

Visit http://www.freescale.com/powerquicc Request help at NSDsupport@freescale.com For Further Information and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 28

Session Closing You should understand In most cases PHYless operation will work IBIS modeling can help determine signal integrity Where to find more information and VortiQa are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. 2010 Freescale Semiconductor, Inc. 29