UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 44174

Design Advisory for techniques on properly synchronizing flip-flops and SRLs after startup

Description

The CLB SRLs and CLB/IOB D flip-flops (DFF) in FPGA fabric are, and have always been, released in all devicesusing the GWE (global write enable) signal as part of the startup sequence.As a reminder, the userclocks used in a design are asynchronous to the configuration clock (CCLK). This allows those synchronous elements to possiblychange state after configuration.

GWE releases SRLs andflip-flops synchronously to the configuration clock and has always had a significant skew across the part. Consequently, two types of behaviors are occasionally observed in a synchronous design. Xilinx is highly confident that the vast majority of designs will not be affected.

  • Timing violations can occur with flip-flops and SRLssince GWE is releasing synchronous elements with respect to the configuration clock instead of the user's system clock.
  • Propagation of the GWE signal means SRLs and flip-flops might be released at slightly different times which results in some parts of the designstarting up before others.

If the design meets one of the criteria below, the solution at the bottom of this answer record should be implemented in the design to prevent the possibility of this behavior from occurring:

  • The design relies upon synchronous startup of initialized sequential elements and uses flip-flops and SRLs (this includes inferred SRLs with initial values, check the map report to determine if SRLs are used in the design).
  • The design relies upon synchronous startup of initialized sequential elements and the design does not assert a reset to synchronous elements after startup. SRLs cannot be reset.

This behavior is not new,and is consistent across all FPGA device families.To properly initialize the SRLs and flip flops, it is recommended to always use one of the solutions below.

Solution

Two different techniques can be used to ensure that the design comes out of startup synchronously to the user's system clock.

1)The first methodinvolves controlling the clocks driving the SRL and D flip-flop.

  • Initially after startup, the clock should be stopped.
  • Once the EOS signal asserts from the STARTUP primitive, the clock can be restarted synchronously to the user's systemclock.
  • The best way to control this is to use a BUFGCE, BUFR reset, or BUFHCE.
    • Do not use these elements for clocks providing feedback to the DCMs. Gating the feedback clock to the DCM might cause unreliable operation of the DCM.The only clocks that need to be controlled are the ones which go to the SRL and DFF elements in a design.

2) An alternative method uses theCE ports of individual synchronous elements which can be controlled instead of stopping the clock.

  • Initially after startup, theCE ports should not be enabled.
  • Once the EOS signal asserts from the STARTUP primitive, the CE pins can be enabled synchronously to the user's system clock.
  • This solution cannot be used with inferred SRL logic.If working with inferred SRLs, use solution #1 instead.
  • Be aware this technique may be more susceptible to timing and routing problems and should only be used if solution #1 can't be used

Both techniques can be used as appropriate.

Linked Answer Records

Master Answer Records

Associated Answer Records

AR# 44174
Date Created 11/18/2011
Last Updated 11/15/2012
Status Active
Type Design Advisory
Devices
  • Virtex-4 FX
  • Virtex-4 LX
  • Virtex-4 QPro/R
  • More
  • Virtex-4 SX
  • Virtex-4Q
  • Virtex-4QV
  • Virtex-5 FXT
  • Virtex-5 LX
  • Virtex-5 LXT
  • Virtex-5 SXT
  • Virtex-5 TXT
  • Virtex-5Q
  • Virtex-5QV
  • Virtex-6 CXT
  • Virtex-6 HXT
  • Virtex-6 LX
  • Virtex-6 LXT
  • Virtex-6 SXT
  • Virtex-7
  • Virtex-7 HT
  • Spartan-6 LX
  • Spartan-6 LXT
  • Kintex-7
  • Artix-7
  • Spartan-3
  • Spartan-3 XA
  • Spartan-3A
  • Spartan-3A DSP
  • Spartan-3AN
  • Spartan-3E
  • Spartan-II
  • Spartan-IIE
  • Virtex
  • Virtex QPro/R
  • Virtex-E
  • Virtex-E QPro
  • Virtex-II
  • Virtex-II Pro
  • Virtex-II Pro X
  • Virtex-II QPro/R
  • Less