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.

VHDL Syntax<br />

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

Before using SLEW, declare it with the following syntax placed after the architecture<br />

declaration, but before the begin statement in the top-level VHDL file:<br />

attribute SLEW: string;<br />

Specify the VHDL constraint as follows:<br />

attribute SLEW of {top_level_port_name}: signal is " value";<br />

VHDL Syntax Example<br />

entity top is<br />

port (FAST_OUT: out std_logic);<br />

end top;<br />

architecture MY_DESIGN of top is<br />

attribute SLEW: string;<br />

attribute SLEW of FAST_OUT: signal is "FAST";<br />

begin<br />

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

Verilog Syntax<br />

Place the following attribute specification before the port declaration in the top-level<br />

Verilog code:<br />

(* SLEW="value" *)<br />

Verilog Syntax Example<br />

module top (<br />

(* SLEW="FAST" *) output FAST_OUT<br />

);<br />

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

User <strong>Constraints</strong> File (UCF) and Netlist <strong>Constraints</strong> File (NCF) Syntax<br />

Placed on output or bi-directional port:<br />

NET "top_level_port_name" SLEW="value";<br />

UCF and NCF Syntax Example<br />

NET "FAST_OUT" SLEW="FAST";<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 265

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

Saved successfully!

Ooh no, something went wrong!