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.

Verilog Syntax<br />

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

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

Specify the Verilog constraint as follows:<br />

(* KEEP = “{TRUE|FALSE |SOFT}” *)<br />

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

UCF and NCF Syntax<br />

INST “instance_name” KEEP={TRUE|FALSE};<br />

The following statement ensures that the net $SIG_0 remains visible.<br />

NET “$1I3245/$SIG_0” KEEP;<br />

XCF Syntax<br />

BEGIN MODEL “entity_name”<br />

NET “signal_name” keep={yes|no|true|false};<br />

END;<br />

In an XST Constraint File (XCF) file, the value of the KEEP constraint may optionally<br />

be enclosed in double quotes. For the SOFT value, this becomes mandatory, as shown<br />

below:<br />

BEGIN MODEL “entity_name”<br />

NET “signal_name” keep=”soft”;<br />

END;<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!