Ethernet System Hardware on AM-Class Devices - Technical Overview: Hardware - TI Training
←
→
Page content transcription
If your browser does not render page correctly, please read the page content below
Agenda • OSI Model Description – Physical Layer • Ethernet Interfaces Overview – MII – RMII – RGMII • Ethernet PHY/MAC Management – MDIO • Ethernet Interface Layout Considerations – Length Matching – Reference Planes – Via Spacing 2
OSI: Open Systems Interconnect Model • Partitions a communication system 7 into seven functional abstraction layers. Host 6 • Characterizes and standardizes the Layers communication functions of a 5 telecommunication or computing system without regard to their 4 underlying internal structure and technology. 3 • Ensures the interoperability of diverse Media 2 communication systems with standard Layers protocols. 1 4
OSI: Open Systems Interconnect Model Each of the seven OSI layers exchanges information with its immediate neighbor 7 DATA (peer) via the Protocol Data Unit (PDU) structure. Host 6 Data to be transmitted is composed at Layers 5 TRANSMIT the top-most layer of the transmitting device and passed as a PDU to Layer n-1. 4 3 As each layer processes the PDU, it is passed downward until reaching Layer 1, Media 2 where the bits are transmitted to the Layers receiving device. 1 BITS 5
OSI: Open Systems Interconnect Model At the receiving device, the flow is reversed. The data is passed from the 7 DATA lowest to the highest layer for consumption by the host. Host 6 Layers 5 RECEIVE 4 3 Media 2 Layers 1 BITS 6
AM-Class Devices: Ethernet Interface Overview Ethernet MAC Ethernet PHY Ethernet Port (Media Access Control) (PHYsical Layer) (RJ-45) 11
Common Platform Switch (CPSW) RMII/RGMII/MII_1 PORT 1 PORT 0 MDIO RMII/RGMII/MII_2 PORT 2 12
Common Platform Switch (CPSW): Switch Mode CPSW: Switch Mode Ports 1 and 2 are switched and will intelligently route packets based on final destination. Egress packets P1 destined for the partner port will be “switched” internally to the MAC rather than be put on the wire. All data is directly shared between Port 1 and Port 2 to facilitate switching. P0 Switch mode does not permit different subnets on Port 1 and Port 2. Both P1 and P2 must be attached to the same IP P2 subnet. 13
Common Platform Switch (CPSW): Dual-MAC Mode CPSW: Dual-MAC Mode Ports 1 and 2 are independent. All packets to and from the external ports are routed to Port 0 regardless of source P1 or destination. No data is shared between Port 1 and Port 2. This applies to both ingress and egress packets. P0 This mode provides “two LAN card” functionality and as such Port 1 and Port 2 can be attached to different IP subnets. P2 14
AM-Class Devices: PHY/MAC Ethernet Interfaces 15
PHY/MAC Ethernet Interfaces: MII MII (Media Independent Interface) • 16-pin interface • Supports interface speeds of 10/100Mbps • Discrete TX and RX clocking (2.5/25MHz) 16
PHY/MAC Ethernet Interfaces: RMII RMII (Reduced Media Independent Interface) • 8-pin interface • Supports interface speeds of 10/100Mbps • Shared clock for both TX and RX (50MHz) 17
PHY/MAC Ethernet Interfaces: RGMII RGMII (Reduced Gigabit Media Independent Interface) • 12-pin interface • Supports interface speeds of 10/100/1000Mbps • Discrete TX and RX clocking (2.5/25/125MHz) 18
Ethernet PHY/MAC Management Ethernet System HW/SW on AM-Class Devices 19
AM-Class Devices: PHY/MAC Management 20
MDIO (Management Data Input/Output) MDIO (Management Data Input/Output) provides a bidirectional management interface for the PHYs and MACs to communicate with each other. Many of the functions of the PHY are performed autonomously. So MDIO is needed to exchange information in parallel to the PHY/MAC data interface. MDIO Detail: • 2-pin interface: • Data (MDIO) • Clock (MDC) • 2.5MHz Clock • Shared bus for up to 32 PHY devices • Continuously polled* 21
PHY Control and Status Registers (CSR) PHY Control and Status Registers (CSR) The PHY CSRs conform to the IEEE802.3 management register set. All functionality and bit definitions must comply with the standard to ensure interoperability with MACs from different vendors. In a typical configuration, the PHY auto-negotiates to the highest common performance mode (speed + duplex) with the (wire-side) link partner and updates it’s internal registers accordingly. 22
PHY/MAC Management via MDIO MDIO 23
Debugging PHY: Basic Control Register Basic Control Register (PHY Index 0) • Is the PHY in Isolate Mode? • Is the PHY powered-up? • Is the PHY in Loopback Mode? 24
Debugging PHY: Basic Status Register Basic Status Register (PHY Index 1) • Ensure that the Link is up. • Check for remote faults. • Was Auto-Negotiation successful? 25
Debugging PHY: Auto Negotiation Advertisement Auto-Negotiation Advertisement (PHY Index 4) • Is the PHY configured/strapped correctly? • Check for remote faults. 26
Debugging PHY: Auto Negotiation Link Partner Auto-Negotiation Link Partner Ability (PHY Index 5) • Is the Link Partner configured correctly? • Check for remote faults. 27
Debugging PHY: MAC Control Register MAC Control Register (MAC CPSW_SL Address 0x04) • Is the link speed correct? • Is GIG mode set? • Is the interface enabled? 28
Debugging PHY: CPSW_STATS CPSW_STATS (MAC CPSW_STATS 0x00-0x8C) • Does the Good TX+ Good RX frame count increment? • Are RX CRC Errors present? 29
Ethernet Interfaces: PCB Layout Considerations Ethernet System HW/SW on AM-Class Devices 30
PCB Layout Best Practices A primary concern when designing a system that implements one or more high-speed interfaces is accommodating and isolating the relevant high-speed signals. High-speed signals are most likely to impact, or be impacted by, other signals on the board. As a result, they must be laid out early (preferably first) in the PCB design process to ensure that prescribed routing rules can be followed. High-speed PCB layout best practices include: • Do not place probe or test points on any high-speed signal. • Do not route high-speed traces under or near crystals, oscillators, clock signal generators, switching power regulators, mounting holes, magnetic devices, or ICs that use or duplicate clock signals. • Ensure that high-speed signals are routed ≥ 90 mils from the edge of the reference plane. • Maximize keep-out spacing when possible. • After BGA breakout, keep high-speed signals clear of the SoC as high-current transients produced during internal state transitions can be difficult to filter out. 31
PCB Layout: Length Matching Length Matching: Match the etch lengths of the relevant traces of each interface. When matching the length of the high-speed signals (clock/data), add serpentine routing to match the lengths as close to the mismatched ends as possible. 32
PCB Layout: Reference Planes Reference Planes: High-speed signals should be routed over a solid GND reference plane and not across a plane split or a void in the reference plane unless absolutely necessary. TI does not recommend high-speed signal references to power planes. Routing across a plane split or a void in the reference plane forces return high-frequency current to flow around the split or void. This can result in the following conditions: • Excess radiated emissions from an unbalanced current flow • Delays in signal propagation delays due to increased series inductance • Interference with adjacent signals • Degraded signal integrity (that is, more jitter and/or reduced signal amplitude) 33
PCB Layout: Reference Planes Example n PLANE VOID n PLANE n VOID n>=(Tracewidth * 1.5) 34
PCB Layout: Stitching Capacitors If routing over a plane-split is completely unavoidable, place stitching capacitors across the split to provide a return path for the high-frequency current. These stitching capacitors minimize the current loop area and any impedance discontinuity created by crossing the split. These capacitors should be 1μF or lower and placed as close as possible to the plane crossing. Signal Plane Signal Plane Signal Plane Signal Plane 35
PCB Layout: Via Equalization and Spacing Equalize Via Count: If using vias is necessary on a high-speed Ethernet signal trace, ensure that the via count on each member of the data bus is equal and that the vias are as evenly spaced as possible. TI recommends placing vias as close as possible to the SoC. Signal Isolation: To minimize crosstalk in Ethernet interface implementations, the spacing between the signals should be a minimum of 3 times the width of the trace. This spacing is referred to as the 3W rule. A PCB design with a trace width of 6 mils requires a minimum of 18 mils spacing between high-speed signals. Where the high-speed Ethernet signals abut a clock or a other periodic signal, increase this keep-out to a minimum of 50 mils to ensure proper isolation. 36
For More Information • High Speed Interface Layout Guidelines: http://www.ti.com/cn/lit/pdf/spraar7 • TI Ethernet PHYs: http://www.ti.com/lsds/ti/interface/ethernet-overview.page • IEEE 802.3: Ethernet: http://standards.ieee.org/about/get/802/802.3.html • For questions regarding topics covered in this training, visit the support forums at the TI E2E Community website: http://e2e.ti.com
You can also read