Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why does GTY fabric logic count half of a 156.25 MHz oscillator?

An UltraScale+ board uses a 156.25 MHz LVDS crystal oscillator at a GTY reference input. The serial link operates, while a nominal one-millisecond timer in the fabric takes two milliseconds. The board reference measures 156.25 MHz and the timer implies 78.125 MHz. Both can be true. Follow the dedicated reference clock to the paths inside the FPGA.

Trace both outputs of the reference buffer

AMD's GTY guide UG578 defines separate O and ODIV2 outputs on IBUFDS_GTE4. O feeds the transceiver reference path. ODIV2 can reach BUFG_GT through HROW for use in fabric. Its name does not determine its frequency. REFCLK_HROW_CK_SEL set to binary 00 passes O, 01 divides it by two, and 10 holds this branch at zero. Also check CEB, which powers down the buffer when high. If the transceiver's reference is present while the fabric branch is inactive, find the branch selection and downstream enable before concluding the oscillator stopped.

Assume the 156.25 MHz LVDS crystal oscillator is correctly coupled and terminated for the input. Its period is 6.4 nanoseconds. With divide-by-two selected at ODIV2, the branch reaches 78.125 MHz and a 12.8-nanosecond period before BUFG_GT. On the other hand, ODIV2 can pass the full clock and let BUFG_GT divide it. UG572 encodes BUFG_GT DIV as the divisor minus one. Zero passes the input and one divides by two. Either stage could produce a final 78.125 MHz. Applying both divides gives 39.0625 MHz.

Reproduce the one-millisecond wait on hardware

Consider a counter meant to wait 156,250 clock periods. It waits one millisecond at 156.25 MHz, two milliseconds at 78.125 MHz, and four at 39.0625 MHz. Mark the start and end on observable pins and use an independent instrument timebase. A diagnostic counter using the same fabric clock does not independently verify the time interval.

If the fabric is meant to run at 78.125 MHz, one millisecond takes 78,125 periods. Verify the counter's endpoints as well. Depending on how it starts at zero, the terminal count may be one below the period count. Check both clock division stages and the reported period before changing the counter threshold. The same markers can then be reused when replacing a 156.25 MHz LVDS crystal oscillator.

Compare hardware measurements with the implemented clock constraints

Verify the input location, swing, duty cycle, and coupling required by the selected device. The source's LVDS label alone is insufficient to establish compatibility with a particular transceiver pin. In the implemented design, follow O, ODIV2, and BUFG_GT, including any module generated by the transceiver wizard. A TXOUTCLK or user clock elsewhere in the design can have the same rate without being the ODIV2 branch.

Check the timing report for each clock domain. UG903 explains that Vivado derives clocks at recognized blocks once the associated primary clock is defined. A manually defined clock on the same object can suppress the automatic result. Reconcile the implemented network, reported period, and bench timing marker. UG572 also requires BUFG_GT to be held in reset while changing its division setting. Do not infer a fixed first-edge latency after enabling it. Arrange downstream startup around a verified valid clock.

Give the transceiver reference, fabric clock, and data-side user clock distinct labels in the test record. If the transceiver stays locked while fabric timers and control pulses all stretch, check clock ratios and counter values first. If the external reference also breaks up, trace the source path. Record board and FPGA revisions so oscillator qualification and system timing remain reproducible.

Also document any divide added by the observation circuit. A diagnostic pin driven by a flip-flop that toggles on each rising fabric edge produces a complete period every two fabric clocks. A measured 39.0625 MHz at that pin could then indicate 78.125 MHz inside. An interval bounded by two explicit markers, or a documented monitor divider, makes the observation interpretable.

If a marker crosses into an independent clock domain, account for its synchronization latency when locating an individual edge. A scope can still check a millisecond interval. Compare a fixed-divider build with each real operating mode, and keep the implemented clock report and both divider choices with the trace. A report for one setting cannot verify the timing of all runtime configurations.

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.