Of all the high speed routing standards, Ethernet comes with an alphabet soup of variant protocols that can mystify the systems designer who might be unfamiliar with Ethernet. The important signal integrity metrics in channel design are rather clear, but other aspects of these protocols don’t seem necessary until you design your first switch.
Most designers (and guides on Ethernet layout/routing) focus on the media independent interface (MII) or reduced media independent interface (RMII) as they’re used for 100 Mbps routing between the MAC and PHY layers in a system. This is fine for most systems running 10/100 Ethernet on a small number of ports, but once you get to gigabit and faster Ethernet, you’ll start to see another group of acronyms, especially once you start looking at PHY transceivers, switches, media converters, controllers, and other components.
The different types of interfaces used in Ethernet systems are very useful if you’re trying to, for instance, miniaturize your BOM in a system with high port count. So how do you approach the different versions of MII for your system? Hopefully, the brief summary of the various protocols below can help you get familiar with system-level design for networking systems that rely on Ethernet.
The standard MII specification is the baseline for other MII-variant protocols running at 100 Mbps and faster. You can find some general guidelines in another Altium article and in one of my recent Signal Integrity Journal articles, but I’ll briefly summarize some basic information on MII and its variant specifications.
MII was originally designed to connect the MAC block of an IC to a PHY transceiver for 100 Mbps (25 MHz clock in 4-bit Rx/Tx data paths). The MII specification is defined by the IEEE 802.3 Ethernet Working group (specifically, under the 802.3u standard) and is intended for connection with a range of different media (e.g., copper or fiber). The goal in this specification is to allow a single networking protocol to interface with a variety of media with a single MAC and external PHY. This central idea is the foundation for all other MII variants.
In addition to the specs I’ve listed here, there are some common qualities to these interfaces:
This is about where the similarities among the MII variants end for designing Ethernet links. The variants differ in signal count, total data rate, clock rate, bus width, and data nibble size. They may also run at different logic levels; make sure to watch for this when selecting components to ensure compatibility. The current set of variants and their specs are shown in the table below:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Even at 100 Mbps in these specs, Ethernet can be pretty forgiving off of the board as long as the MII routing and PHY output routing are done properly on the board. The clock rates here are pretty low for typical digital components (except HSGMII), but the rise time can be well under 1 ns for the higher data rate protocols. Pay attention to this if you’re testing a prototype; make sure you’ve used a high attenuation ratio probe (10x) and give your scope plenty of bandwidth to examine signal behavior.
If you’re trying to miniaturize your system, take advantage of integration in IC manufacturer product lines. This reduces the amount of MAC-to-PHY routing on the board, reduces component count, and makes routing easier. If you get component count low enough, you might even be able to remove a couple layers from your board. All of this will help you get to a lower BOM cost and simpler overall system architecture, even if you’re working at 10G or with fiber.
For example, some switch ICs with high port count include an integrated PHY interface for gigabit MII variants. For a high port count switch, you may need to use an external PHY transceiver IC to support maybe half of your ports, but that can reduce your routing by 50% or more. If you can then use SGMII to route to an external PHY interface, you’ve reduced signal count significantly compared to simply using GMII to get high data throughput to a large number of ports. This is the type of approach you’ll see in some reference designs, particularly for L2 switches that need high port counts.
If you want to learn more about gigabit Ethernet, take a look at Mark Harris’ ultra-deep dive into the subject. He does a great job looking more at overall system design (including the PHY output and magnetics design and routing), which should give anyone a good introduction into the topic of GMII/SGMII and faster gigabit Ethernet layout and routing.
If you’re designing IoT products, networking equipment, or embedded systems and you need to route media independent interface connections, use the complete set of PCB design and layout tools in Altium Designer® for your next design. The upgraded Design Rules Editor makes it easy to encode the MII specification requirements as design rules, and you’ll have access to a range of other design tools.
When you’ve finished your design, and you want to share your project, the Altium 365™ platform makes it easy to collaborate with other designers. We have only scratched the surface of what is possible to do with Altium Designer on Altium 365. You can check the product page for a more in-depth feature description or one of the On-Demand Webinars.