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

Why doesn't a lower-jitter oscillator fix apparently rotated LVDS words in an FPGA?

A high-speed acquisition board sends a fixed training pattern. The receiver samples stable bits, but after one restart the parallel word has the wrong order. Every word looks rotated. Before changing polarity or clock quality, use the training stream to answer two questions. Is each bit sampled reliably? Which bit does the receiver treat as the start of the word? Both affect the reported numbers and need different tests.

In a source-synchronous interface, the transmitter sends data and an associated clock. The receiver samples at the intended instant and groups serial bits into words. Sampling close to a data transition can cause intermittent errors. Stable bits grouped from the wrong start can yield consistently rotated words. Supporting the bit rate gives the receiver no information about which bit starts each word. The protocol or design defines that boundary, usually through training patterns, markers, or a specified initialization sequence.

Use a pattern with distinct rotations

Suppose the transmitter repeats 11010010 and the design defines the leftmost bit as the start. A receiver that starts at the third bit can assemble 01001011. It is the same repeating bit stream grouped from a different point. Shift to the agreed start and expect the original pattern. A repeating 10101010 looks the same after a two-bit rotation, so it cannot uniquely identify the boundary. Choose test data with distinguishable rotations and confirm bit order and link format before setting the criterion.

Compare a second pattern. If both are stable with the same offset and a receiver word-alignment operation restores them, start with its boundary state. If one position alternates between zero and one on repeated reads, investigate sampling margin, phase, and signal integrity. Both problems can coexist. Establish reliable sampling and word alignment at a speed or setting with margin. Then raise the speed or vary voltage and temperature and check the valid sampling window. A software rotation fix and a hardware sampling improvement should be verified separately.

AMD's 7 Series FPGA guide describes the ISERDESE2 Bitslip mechanism. A control input adjusts parallel output alignment until the receiver can recognize the expected pattern. Follow the guide's clock and timing conditions. The operation can change ordering differently in single- and double-data-rate modes. A hand-rotated example is no substitute for the mode-specific behavior. Allow the output to settle after bitslip before scoring the pattern.

Restart the endpoints in different orders

Use a repeatable startup sequence and retain the transmitted training mode, raw FPGA words, number of alignment operations, and test results for application data. Test cold start, restarting just the transmitter, restarting just the receiver, and returning after data loss. Some faults only appear when the receiver comes up first. Define when the logic retrains, what establishes a correct boundary, and when data is passed downstream. State left over from a previous session can make one restart work by chance.

During debug, check how much sample timing can move after training. Scan supported phase or input delay settings and map the positions that read the known pattern correctly. Check that the chosen point has margin to either side. For a clock substitution, jitter and the receiver's setup and hold budget are relevant to this window. If bits are reliable across the window but words stay rotated, correct initialization first. A stable word alone is insufficient for bit-error acceptance, and alignment settings cannot address random bit errors.

For an “LVDS clock replacement,” purchasing can ask for two sets of information. The first is clock load and jitter. The second is the transmitter and receiver configuration that determines digital alignment. The oscillator data sheet supports the first. Interface documentation and bench reports support the second. Keep training records that distinguish rotated words from random errors, so repair teams can test the failure after restart without trying another clock first.

On multilane links, check more than the easiest lane. Once each lane trains correctly, verify that the system combines data from the same frame. Within-lane bit sampling, word boundaries, and cross-lane framing each need evidence. A board swap can then be diagnosed by identifying which part of that chain changed.

Align display conventions before comparing trained data bit for bit. One tool may print the least significant bit first and another the most significant bit first. Correctly received words can look different unless byte order and display order are consistent.

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.