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# 1607

12.1 Constraints - How do I specify TIMESPEC and TIMEGRP constraints in a UCF?

Description

The User Constraint File (UCF) is a user-created ASCII file that contains user timing and location constraints. It is read by NGDBuild, which also accepts a design netlist, such as EDIF, and produces a ".ngd" file.

How do I constrain by time specification or time group in a UCF?

解决方案

Sample Timing Constraint Schematic
Sample Timing Constraint Schematic

-- User Constraint File (UCF) Below---

# This is a comment.

# "Period" specifies a minimum PERIOD of CLK net. "Offset" specifies that data on MAY, which can arrive up to 6 ns before the clock edge arrives on CLK. (NOTE: PERIOD constraints do not apply to elements in output pads.)

NET CLK PERIOD = 20ns;

NET MAY OFFSET = IN:6ns:BEFORE:CLK_PD;

# Groups all clocked loads of CLK2 into CLK2_LOADS time group.

# Groups all clocked loads of VAL into VAL_LOADS time group.

# TNM => Time group Name

NET CLK2 TNM=CLK2_LOADS;

NET VAL TNM=VAL_LOAD;

# Specifies the worst-case speed of path from IPAD to CLK2 loads.

# Includes pad, buffer, and net delays. TS01 is a time spec identifier; it can have names of the form TS<string>.

# PADS(CLK2_PD) is a time group name specified inside of a time spec.

TIMESPEC TS01=FROM:PADS(CLK2_PD):TO:CLK2_LOADS=15ns;

# Specifies the maximum frequency for all loads clocked by CLK2.

TIMESPEC TS02 = PERIOD CLK2_LOADS 10Mhz;

# or

TIMESPEC TS02A=FROM:CLK2_LOADS:TO:CLK2_LOADS=30Mhz;

# Specifies the minimum delay on the path from Synchronous RAM to OFD. Includes Clock to Out delay, net delay, and setup time.

TIMESPEC TS03=FROM:CLK2_LOADS:TO:VAL_LOAD=15000ps;

AR# 1607
创建日期 08/21/2007
Last Updated 12/15/2012
状态 Active
Type 综合文章
器件
  • 4000/E/XL/XV
  • 4000E/EX/XL QPro/R
  • Spartan/XL
  • More
  • Spartan-3
  • Spartan-3 XA
  • Spartan-3A
  • Spartan-3A DSP
  • Spartan-3AN
  • Spartan-3E
  • Spartan-6 LX
  • Spartan-6 LXT
  • Spartan-II
  • Spartan-IIE
  • Spartan-IIE XA
  • Spartan-XL IQ
  • Virtex
  • Virtex QPro/R
  • Virtex-4 FX
  • Virtex-4 LX
  • Virtex-4 QPro/R
  • Virtex-4 SX
  • Virtex-5 FXT
  • Virtex-5 LX
  • Virtex-5 LXT
  • Virtex-5 SXT
  • Virtex-5 TXT
  • Virtex-5Q
  • Virtex-6 CXT
  • Virtex-6 HXT
  • Virtex-6 LX
  • Virtex-6 LXT
  • Virtex-6 SXT
  • Virtex-E
  • Virtex-E QPro
  • Virtex-EM
  • Virtex-II
  • Virtex-II Pro
  • Virtex-II Pro X
  • Virtex-II QPro/R
  • Less