YURUNOX · Ethernet architecture & component selection

Ethernet PHY vs Switch vs Controller

A PHY operates the physical link, a controller gives a host the MAC and frame-data path, and a switch forwards frames among multiple ports. These functions can share one package, so choose from the packet path, interfaces and software model—not the marketing noun or port-speed headline.

Ports are the visible result—not the silicon boundary Ethernet switch with multiple connected twisted-pair network cables
A multi-port Ethernet switch in use. The enclosure does not reveal whether PHYs, magnetics, controller logic or routing functions are integrated. Photo: Raysonho, CC0 1.0 via Wikimedia Commons.

Choose the missing job, not a familiar label

An embedded endpoint normally needs one host-facing frame engine and one physical-link path. A forwarding node needs a MAC and physical-link function per active port plus a switch core. The package boundaries vary.

Functional comparison—verify integration in the actual datasheet
BlockPrimary jobCommon connectionsIt does not automatically provide
Ethernet PHYTranslate between a digital MAC-side interface and the medium-dependent signal; establish and monitor the linkMII, RMII, RGMII, SGMII or another digital interface; MDI toward copper, fiber or single-pair Ethernet; often MDIO managementHost DMA, packet memory, sockets, multi-port forwarding, magnetics or a connector
Controller or MACLet a processor transmit and receive frames; often adds buffers, DMA, filtering, interrupts or a host bridgeInternal system bus, PCIe, USB, SPI or memory on the host side; external PHY interface or integrated PHY on the network sideAn integrated PHY, TCP/IP offload, switch fabric, driver or cable interface unless explicitly stated
Ethernet switchLearn, forward, filter, queue, flood or mirror frames among ports according to Layer 2 rulesSeveral port MACs, integrated/external PHYs, CPU or cascade port; a separate management pathA host endpoint controller, PHY on every port, IP routing or a complete management software stack

On narrow screens, scroll the table horizontally.

Fast rule: an existing MAC usually needs a PHY; a host without a MAC needs a controller or MAC-PHY; multiple ports that forward locally need a switch. Then confirm which PHYs and host-data interfaces are actually integrated.

Draw the frame path and management path separately

On transmit, software prepares data, the controller moves and formats the frame, the PHY creates the specified medium signal, and media circuitry connects it to the cable. A switch inserts a forwarding decision between ingress and egress port MACs.

Ethernet frame path and separate management pathFrame data moves from CPU memory through controller MAC, PHY, magnetics and cable. MDIO configures the PHY but does not carry normal application frames. A switch core forwards between port MACs. Endpoint frame path CPU + memoryController / MACRMII / RGMIIPHYMagneticsCable MDIO/MDC managementRegister configuration and status—not application frames Switch forwarding path Ingress PHY + MAC Switch lookup + queuesMAC table · VLAN · port state · QoS Egress MAC + PHY CPU portif connected Functional diagram only: any adjacent blocks may be integrated in one IC or module.
Management access and normal frame traffic are separate paths. Scroll horizontally on small screens.

Microchip AN1120 explains the MAC, PHY, MII, management and MDI boundaries. A link LED mainly reports a physical result; it does not prove that DMA descriptors, VLANs or IP software are correct.

What each block actually contributes

PHY: the physical-link specialist

The PHY encodes and drives the selected Ethernet medium, receives and recovers data, and participates in link establishment. Features such as auto-negotiation, diagnostics, polarity correction, master/slave behavior or low-power modes depend on the PHY and Ethernet variant.

Its digital boundary connects to a MAC. Its medium-dependent interface connects to the circuitry specified for copper, fiber, backplane or single-pair Ethernet. It does not normally allocate host descriptors or decide that a destination MAC address should leave switch port 3. TI’s PHY selection guide distinguishes the MAC-side digital domain from the MDI.

VIA VT6103L Fast Ethernet PHY transceiver mounted on a motherboard
A VIA VT6103L one-port 10/100 PHY. It shows a physical transceiver as a separate IC; this legacy device is not a current design recommendation. © Raimond Spekking / CC BY-SA 4.0 via Wikimedia Commons.
ASIX AX88772E USB Fast Ethernet controller integrated circuit
An ASIX AX88772E USB-to-Ethernet controller with an integrated 10/100 PHY. The photograph demonstrates one controller boundary, not universal controller contents. Photo: Allanchou1357 / CC BY 4.0 via Wikimedia Commons.

Controller: the host’s frame-data path

A MAC creates and interprets Ethernet frames. The surrounding controller may add packet FIFOs, descriptor DMA, interrupts, checksum assistance, timestamps, a PCIe or USB bridge, packet SRAM, an integrated PHY, or protocol offload.

The term is broad. The ENC28J60 integrates an SPI interface, packet memory, MAC and 10BASE-T PHY. The W5500 adds an integrated 10/100 MAC/PHY, 32 KiB buffer memory and a hardwired IPv4 socket model. Neither architecture should be treated like an MCU’s raw MAC/DMA peripheral.

Switch: local multi-port forwarding

A switch learns source addresses, looks up destinations and applies VLAN, port-state, queueing and security rules before selecting egress ports. A CPU port can carry selected frames or management traffic, but the data path must be connected and supported by the host.

A switch is not automatically a router. A management IP address only proves that the device can be managed through IP; it does not mean every forwarded frame receives a Layer 3 routing decision.

Broadcom BCM53128 multi-port Gigabit Ethernet switch integrated circuit on a Netgear board
A Broadcom BCM53128 multi-port switch IC. Package appearance does not reveal port modes, integrated PHY count or CPU interface. © Raimond Spekking / CC BY-SA 4.0 via Wikimedia Commons.

Real devices prove that product names are not integration boundaries

Examples show architecture patterns—not equivalent alternatives
Official exampleIntegrated blocksExternal boundaryDecision consequence
STM32F2 Ethernet peripheralMAC and dedicated DMA inside the MCUMII or RMII to an external PHYAn MCU feature table saying “Ethernet” does not create a cable port.
Microchip LAN7430PCIe endpoint, Ethernet MAC, DMA and Gigabit copper PHYPCIe host side; MDI toward external media circuitryThe controller includes the PHY but still does not imply magnetics or a connector.
Microchip LAN7431Related PCIe Ethernet controller without the LAN7430’s integrated copper PHY boundaryMII/RGMII for an external PHY or compatible subsystemRelated names and a common controller category can require different BOMs.
Microchip KSZ9477SSeven-port Layer 2 switch with several integrated Gigabit PHYs and CPU/cascade optionsPort-specific copper and digital interfacesCount which ports include PHYs; do not equate seven switch ports with seven integrated copper PHYs.
NXP SJA1105Five-port store-and-forward switch coreEvery cited port can be configured for MII, RMII or RGMII to processors, switches or external PHYsA complete switch board may still require a separate PHY for every media port.

Review the current official ordering code, revision, errata and supported software before design approval. These examples have different roles, speeds and grades.

MII-family names describe internal data interfaces—not the cable

Questions to answer at both ends of the connection
InterfaceMain jobWhat must match
MIIParallel 10/100 frame-data interfaceSpeed modes, I/O voltage, transmit/receive clocks, pins and timing
RMIIReduced-pin 10/100 interface50 MHz reference-clock source/direction, timing, straps and I/O voltage
RGMIIReduced-pin 10/100/1000 parallel interfaceVersion, clock-delay ownership, skew, trace matching, voltage and timing across temperature
SGMIISerial MAC–PHY or subsystem interfaceCompatible SerDes, reference clocks, in-band status, AC coupling and configuration
MDIO/MDCRegister management and link statusAddress straps, register model, pullups, clock, reset and driver

RGMII traces do not connect directly to 1000BASE-T cable pairs, and SGMII is not automatically an optical port. A successful MDIO read does not prove that the payload interface works. A live link does not prove that the MAC and host driver can receive a frame.

Magnetics and the connector remain separate choices

For conventional isolated twisted-pair Ethernet, the PHY’s MDI normally connects through a specified transformer network before the cable connector. A MagJack can combine transformer and connector, but it is still not the PHY. Use the exact PHY reference schematic for magnetics, center taps, termination, protection, chassis-ground strategy and layout; a transformer selected only by turns ratio can fail signal-integrity, EMC or isolation requirements.

Interactive architecture selector

This planning aid identifies the likely missing block. It does not replace a datasheet review or throughput qualification.

What does the host already have, and what must the product do?

Likely starting architecture

MAC/DMA + external PHY

CPU memory → MAC/DMA → RMII/RGMII → PHY → specified media circuit

Verify clock direction or delay mode, I/O voltage, MDIO, reset/straps, magnetics, connector, driver and compliance plan.

The result assumes ordinary Ethernet frame traffic. Protocol offload, TSN, safety, security, PoE, deterministic latency and aggregate throughput can change the architecture.

Two illustrative failures expose the boundary

Illustrative scenario · not a customer project

“The MCU has Ethernet,” but the prototype has no link

The schematic routes MCU RMII pins toward an RJ45 without a PHY. The missing function is physical signaling: RMII is a digital MAC–PHY interface and cannot directly create 100BASE-TX cable waveforms.

Evidence to check: the MCU block diagram ends at MAC/DMA and MII/RMII. Corrective direction: select a compatible PHY and add its clocks, management, reset, straps, power, magnetics, termination, protection and driver. The buyer question is “Which blocks are integrated?” rather than “Does the MCU list Ethernet?”

Illustrative scenario · not a customer project

SPI can configure the switch, but the CPU cannot send frames

Firmware reads switch registers over SPI, yet the CPU never appears as an endpoint. The likely mistake is treating the management bus as the normal data path. If the switch’s CPU port is RGMII, the processor still needs a compatible MAC and correctly timed RGMII connection.

Evidence to check: separate arrows in the switch block diagram for management and CPU-port data. Corrective direction: connect and configure the host-data port, support any required switch tagging, or select a switch/controller architecture with a compatible host frame interface.

Troubleshoot one functional boundary at a time

Changing PHY registers, MAC drivers and IP settings together destroys useful evidence. TI’s DP83822 troubleshooting guide starts with schematic/layout, power and device health, then narrows the fault. Apply the same boundary method to other devices using their own limits.

Symptom → likely boundary → first evidence
SymptomLikely boundaryCheck before replacing silicon
No linkPHY power, clock, reset, straps, MDI, magnetics, cable or partnerSupplies, reference clock, reset/strap timing, PHY status, approved cable/partner and supported loopbacks
Link up, no frames in RAMMAC–PHY data interface, MAC mode, pin mux, DMA or driverLink speed versus MAC speed, RMII/RGMII clocks, counters, descriptors, interrupts and internal loopback
One direction failsTX/RX timing, filters, queue or one half of the digital interfaceDirectional clocks/signals, error counters, receive filters and staged PHY/MAC/external loopbacks
Switch floods or CPU misses trafficMAC table, VLAN, port state, tagging or CPU-port configurationLearned addresses, VLAN/port tables, counters, ingress/egress capture and host tagging
Intermittent link in EMC testingPhysical layout, magnetics, protection, clock or power integrityExact reference layout, return paths, supplies, clocks, magnetics and compliance measurements

Qualify the complete architecture and orderable part

  1. Define the network role and every port.List endpoint, bridge or router role; speed, medium, reach, isolation, PoE, environment and simultaneous traffic.
  2. Inventory integrated blocks.Confirm MAC, DMA, PHY, switch fabric, packet memory, host bridge, offload, magnetics and connector separately.
  3. Match both ends of every interface.Record clock ownership, I/O voltage, delay mode, SerDes behavior, reset, straps and management address.
  4. Plan the software model.Name the MAC, PHY and switch drivers, tagging protocol, VLAN model, DMA or socket ownership, boot configuration and diagnostics.
  5. Check the media implementation.Use the exact reference schematic for supplies, routing, magnetics, protection, connector and compliance tests.
  6. Approve the complete suffix.Verify package, temperature grade, qualification, lifecycle, errata, maintained drivers and allowed alternatives.

A useful RFQ includes the target host, port count, speeds, media, available data interfaces, management interface, software environment, operating grade, current part numbers and permitted alternate boundaries. “Gigabit Ethernet chip” is not a sufficient requirement.

For sourcing review, see YURUNOX’s quality-assurance approach, purchasing process, and the verified brand pages for Texas Instruments, STMicroelectronics and Broadcom.

Ethernet PHY, switch and controller FAQs

Is an Ethernet PHY the same as an Ethernet controller?

No. A PHY operates the physical link. A controller gives a host a frame data path and normally contains a MAC plus buffers, DMA or a host-bus interface. Some controllers integrate a PHY, so inspect the block diagram rather than treating the names as package definitions.

Does an Ethernet switch contain PHYs?

It may integrate several PHYs, but not necessarily one for every port. Other ports may expose RGMII, SGMII or another digital interface for an external PHY, processor, optical module or cascaded switch. Count switch ports and integrated PHYs separately.

Can a basic PHY connect directly to an MCU over SPI?

A basic PHY normally carries frame data to a MAC through an MII-family interface and uses MDIO for management. An SPI Ethernet controller or MAC-PHY can connect to an MCU over SPI because it adds controller logic, packet buffering and a defined host-data protocol.

What is the difference between MII and MDIO?

MII and its variants carry transmit and receive frame data, clocks and control. MDIO and MDC read status and configure management registers. Successful MDIO access does not validate the frame-data interface, magnetics or cable path.

If an MCU has an Ethernet MAC, does it still need a PHY?

Usually yes, unless the selected MCU or module explicitly integrates the required PHY. MII, RMII or RGMII pins are digital MAC-side interfaces. Verify the block diagram, package pinout and reference schematic.

Can an Ethernet switch replace a router?

Not by itself. A conventional Layer 2 switch forwards Ethernet frames within bridging domains. A router makes Layer 3 IP forwarding decisions between networks. Some products integrate both functions, but a switch management IP address does not prove routing capability.

Why can link be up while ping still fails?

Link-up mainly proves that the physical partners established a link. Ping also depends on MAC timing, DMA, descriptors, frame filters, VLANs, ARP, IP configuration, firewall policy and the protocol stack. Continue debugging above the PHY boundary.

Which MAC-to-PHY interface is best?

There is no universal best choice. RMII saves pins at 10/100 Mb/s, RGMII supports Gigabit Ethernet with demanding parallel timing, and SGMII reduces pins through compatible SerDes. Choose by speed, pins, voltage, timing, routing, EMC, software and component support.

Technical sources

  1. Microchip AN1120 — Ethernet Theory of Operation: MAC, PHY, MII, management and MDI boundaries.
  2. Texas Instruments — Ethernet PHY Basics and Selection Process: PHY domains and MII-family selection.
  3. STMicroelectronics RM0033: an MCU MAC/DMA with MII/RMII to an external PHY.
  4. Microchip LAN7430/LAN7431 datasheet: related controllers with different PHY boundaries.
  5. Microchip ENC28J60 datasheet and WIZnet W5500 documentation: two stand-alone controller/software models.
  6. Microchip KSZ9477S and NXP SJA1105 datasheet: switches with integrated-versus-external PHY patterns.
  7. Texas Instruments DP83822 Troubleshooting Guide: boundary-based PHY application debugging.

Manufacturer examples support the integration patterns. No board simulation, throughput benchmark, EMC test or interoperability qualification is claimed for this article.

Cart (0 items)