Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Passive Crystals and Oscillator Circuits

Why can a KSZ9131RNX drop gigabit traffic even when its 25 MHz crystal passes?

A prototype works on a 100 Mb/s port but shows errors under a sustained gigabit load. The measured 25 MHz crystal is close to nominal. Before ordering a tighter tolerance, separate the PHY reference from RGMII timing. At gigabit speed the interface has a short interval between changing data edges. Two delays applied to the same transfer direction can move the sample toward the next edge.

Label the clock nodes on the schematic

The KSZ9131RNX can use a 25 MHz passive crystal between XI and XO. When a 25 MHz active oscillator drives XI, the data sheet instructs the designer to leave XO unconnected. The specified reference tolerance is ±50 ppm, which corresponds to ±1,250 Hz at 25 MHz. A crystal's on-board frequency also depends on loading and temperature. Record the measurement point and the conditions before purchasing a replacement based on room-temperature tolerance alone.

RGMII TXC runs from the MAC to the PHY. RXC runs from the PHY to the MAC. The nominal clocks are 125 MHz at 1000 Mb/s and 25 MHz at 100 Mb/s. CLK125_NDO is a separate optional output. Seeing 125 MHz on that output does not establish the sampling margins of TXC or RXC. Label each clock waveform with its port and direction.

Use a four-nanosecond interval to locate the delay

A 125 MHz cycle is 8 ns. Data transfers on both clock edges, so the ideal interval between consecutive edges is 4 ns. Suppose the data and clock leave the transmitter in alignment and board delay mismatch is negligible. One 2 ns clock delay puts the sample in the middle of the illustrative interval. Two delays of about 2 ns in the same direction put the sampling edge near the next data transition. Duty cycle, jitter, board skew and receiver timing all change the actual margins.

If the clock trace adds 0.2 ns relative to data in this example, one nominal 2 ns delay places the sample about 2.2 ns after the first transition and 1.8 ns before the next. Subtract the receiving setup and hold limits and measurement uncertainty. Two delays would move the illustrative sampling edge to 4.2 ns, past the next nominal transition. The 100 Mb/s clock has a much longer 40 ns period. A passing test at that rate cannot establish gigabit margins.

Capture both a rising and a falling sampling edge. Unequal high and low times create unequal windows even at the same frequency. Four nanoseconds is only the ideal half cycle. Save the control signal and an active data lane together with the clock, then check the other lanes as required. A clock-only trace cannot establish setup or hold margin against the actual data.

Read back settings after boot

The data sheet treats the two directions differently. By default the PHY bypasses its local transmit-clock delay and expects the MAC to provide corresponding TXC timing. Its transmit DLL can be enabled when appropriate. On the receive path the PHY defaults to an approximately 2 ns RXC delay relative to its outgoing data. Boot software or the network driver may alter these settings. Compare the register state after hardware reset with its state under the running operating system, alongside the MAC vendor’s description of the port.

A PHY-internal delay may be invisible to an external probe. Correlate the timing at the pins with the DLL readback to establish where the sampling delay is applied. Hold the cable, temperature and traffic constant and alter one delay in one direction. Compare the error counters and captured waveforms. Changing a network cable or negotiating a different speed can help isolate faults. Keep at least one controlled comparison in which the other conditions stay fixed.

If two comparable fixtures are available, preserve the failing configuration on one and apply the readback-based correction on the other. Verify the reference with the same method on both. Send known patterns and sustained traffic separately in each direction. A total error count without direction can hide whether the fault is in host transmit or host receive.

Decide whether to replace the clock

Check the 25 MHz passive crystal's on-board frequency, load matching, startup and actual temperature range. If the reference fails, confirm the exact order code, load capacitance and full tolerance budget. For a 25 MHz active oscillator, verify its output levels, supply, startup and XI electrical compatibility. If the reference passes and errors track the delay configuration, correct that configuration and repeat the temperature and traffic tests. Tighter crystal tolerance does not recover nanoseconds lost to a duplicated delay.

Record the reference result, TX delay owner, RX delay owner and gigabit error statistics as separate lines. This tells engineering and purchasing whether the board needs a different crystal, a layout correction or a consistent MAC and PHY configuration.

References

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.