01.07.2013 Views

Xilinx Constraints Guide

Xilinx Constraints Guide

Xilinx Constraints Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PlanAhead Syntax<br />

Chapter 4: <strong>Xilinx</strong> <strong>Constraints</strong><br />

For more information about using the PlanAhead software to create constraints, see<br />

Floorplanning the Design in the PlanAhead User <strong>Guide</strong> (UG632). See PlanAhead in this<br />

<strong>Guide</strong> for information about:<br />

• Defining placement constraints<br />

• Assigning placement constraints<br />

• Defining I/O pin configurations<br />

• Floorplanning and placement constraints<br />

PACE Syntax<br />

PACE is mainly used to assign location constraints to IOs. It can also be used to assign<br />

certain IO properties such as IO Standards. You can access PACE from the Processes<br />

window in the Project Navigator.<br />

For more information, see the PACE help, especially the topics within Editing Pins<br />

and Areas in the Procedures section. PACE is supported for CPLD devices only. It is<br />

not supported for FPGA devices.<br />

Digital Clock Manager (DCM) Constraint Examples<br />

This section applies to all FPGA devices.<br />

You can lock the DCM in the UCF file. The syntax is as follows:<br />

INST “instance_name" LOC = DCM_XYB; (for all Spartan devices)<br />

INST “instance_name" LOC = DCM_ADV_XYB; (for Virtex-4 and Virtex-5 devices)<br />

A is the X coordinate, starting with 0 at the left-hand bottom corner. A increases in value<br />

as you move across the device to the right.<br />

B is the Y coordinate, starting with 0 at the left-hand bottom corner. B increases in<br />

value as you move up the device.<br />

Example<br />

INST “myinstance” LOC = DCM_X0Y0;<br />

Flip-Flop Constraint Examples<br />

Flip-flop constraints can be assigned from the schematic or through the UCF file.<br />

From the schematic, attach LOC constraints to the target flip-flop. The constraints are<br />

then passed into the EDIF netlist and are read by PAR after the design is mapped.<br />

The following examples show how the LOC constraint is applied to a schematic and to<br />

a UCF (User <strong>Constraints</strong> File). The instance names of two flip-flops, /top-12/fdrd and<br />

/top-54/fdsd, are used to show how you would enter the constraints in the UCF.<br />

Slice-Based XY Grid Designations<br />

Spartan-3 devices and higher and Virtex-4 devices and higher are the only architectures<br />

that use slice-based XY grid designations.<br />

Flip-flops can be constrained to a specific slice, a range of slices, a row or column of slices.<br />

Example One<br />

Place the flip-flop in SLICE_X1Y5. SLICE_X0Y0 is in the lower left corner of the device.<br />

<strong>Constraints</strong> <strong>Guide</strong><br />

UG625 (v. 13.2) July 6, 2011 www.xilinx.com 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!