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.

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

Schematic LOC=SLICE_XlY5<br />

UCF INST “/top-12/fdrd” LOC=SLICE_X1Y5;<br />

Example Two<br />

Place the flip-flop in the rectangular area bounded by the SLICE_X1Y1 in the lower left<br />

corner and SLICE_X5Y7 in the upper right corner.<br />

Schematic LOC=SLICE_R1C1:SLICE_R5C7<br />

UCF INST “/top-12/fdrd”<br />

LOC=SLICE_X1Y1:SLICE_X5Y7;<br />

Example Three<br />

Place the flip-flops anywhere in the row of slices whose Y coordinate is 3. Use the<br />

wildcard (*) character in place of either the X or Y value to specify an entire row (Y*)<br />

or column (X*) of slices.<br />

Schematic LOC=SLICE_X*Y3<br />

UCF INST “/top-12/fdrd/top-54/fdsd”<br />

LOC=SLICE_X*Y3;<br />

Example Four<br />

Place the flip-flop in either SLICE_X2Y4 or SLICE_X7Y9.<br />

Schematic LOC=SLICE_X2Y4,SLICE_X7Y9<br />

UCF INST “/top-54/fdsd” LOC=SLICE_X2Y4,<br />

SLICE_X7Y9;<br />

In Example Four, repeating the LOC constraint and separating each such constraint by a<br />

comma specifies multiple locations for an element. When you specify multiple locations,<br />

PAR can use any of the specified locations.<br />

Example Five<br />

Do not place the flip-flop in the column of slices whose X coordinate is 5. Use the<br />

wildcard (*) character in place of either the X or Y value to specify an entire row (Y*)<br />

or column (X*) of slices.<br />

Schematic PROHIBIT=SLICE_X5Y*<br />

UCF CONFIG PROHIBIT=SLICE_X5Y*;<br />

I/O Constraint Examples<br />

You can constrain I/Os to a specific IOB. You can assign I/O constraints from the<br />

schematic or through the UCF file.<br />

From the schematic, attach LOC constraints to the target PAD symbol. The constraints<br />

are then passed into the netlist file and read by PAR after mapping.<br />

Alternatively, in the UCF file a pad is identified by a unique instance name. The<br />

following example shows how the LOC constraint is applied to a schematic and to<br />

a UCF (User <strong>Constraints</strong> File). In the examples, the instance names of the I/Os are<br />

/top-102/data0_pad and /top-117/q13_pad. The example uses a pin number to lock to<br />

one pin.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!