01.07.2013 Views

Xilinx Constraints Guide

Xilinx Constraints Guide

Xilinx Constraints Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Specify the VHDL constraint as follows:<br />

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

attribute rloc of {component_name|entity_name| label_name}: {component |entity|label}<br />

is “[element]X mYn[ .extension]”;<br />

For descriptions of valid values, see <strong>Guide</strong>lines for Specifying Relative Locations.<br />

For more information about basic VHDL syntax, see VHDL Attributes.<br />

The following code sample shows how to use RLOCs with a VHDL generate statement.<br />

The code is a simple example showing how to auto-generate the RLOCs for several<br />

instantiated FDEs. This methodology can be used with virtually any primitive.<br />

Note The user must create the itoa function.<br />

LEN:for i in 0 to bits-1 generate<br />

constant row :natural:=((width-1)/2)-(i/2);<br />

constant column:natural:=0;<br />

constant slice:natural:=0;<br />

constant rloc_str : string := "R" & itoa(row) & "C" & itoa(column) & ".S" & itoa(slice);<br />

attribute RLOC of U1: label is rloc_str;<br />

begin<br />

U1: FDE port map (<br />

Q=> dd(j),<br />

D=> ff_d,<br />

C=> clk,<br />

CE =>lcl_en(en_idx));<br />

end generate LEN;<br />

Verilog Syntax<br />

Place the Verilog constraint immediately before the module or instantiation.<br />

Specify the Verilog constraint as follows:<br />

(* RLOC = “[element ]XmY n[.extension ]” *)<br />

For descriptions of valid value, see <strong>Guide</strong>lines for Specifying Relative Locations in<br />

this chapter.<br />

For more information about basic Verilog syntax, see Verilog Attributes.<br />

UCF and NCF Syntax<br />

For all FPGA devices, the following statement specifies that an instantiation of FF1 be<br />

placed in a slice that is +4 X coordinates and +4 Y coordinates relative to the origin slice.<br />

INST “/V2/design/FF1” RLOC=X4Y4;<br />

XCF Syntax<br />

For Virtex®-4 and Virtex-5 devices:<br />

BEGIN MODEL “entity_name ”<br />

INST "instance_name " rloc=[element]XmYn [.extension] ;<br />

END;<br />

PlanAhead Syntax<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 />

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

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

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

Saved successfully!

Ooh no, something went wrong!