05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User 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.

XST <strong>User</strong> <strong>Guide</strong><br />

VHDL Attribute Syntax<br />

In your VHDL code, constraints can be described with VHDL<br />

attributes. Before it can be used, an attribute must be declared with<br />

the following syntax.<br />

attribute AttributeName : Type ;<br />

Example:<br />

attribute RLOC : string ;<br />

The attribute type defines the type of the attribute value. The only<br />

allowed type for XST is string. An attribute can be declared in an<br />

entity or architecture. If declared in the entity, it is visible both in the<br />

entity and the architecture body. If the attribute is declared in the<br />

architecture, it cannot be used in the entity declaration. Once declared<br />

a VHDL attribute can be specified as follows:<br />

attribute AttributeName of ObjectList : ObjectType is<br />

AttributeValue ;<br />

Examples:<br />

attribute RLOC of u123 : label is "R11C1.S0" ;<br />

attribute bufg of signal_name: signal is {“clk”<br />

|”sr”|”oe”};<br />

The object list is a comma separated list of identifiers. Accepted object<br />

types are entity, component, label, signal, variable and type.<br />

Verilog Meta Comment Syntax<br />

Constraints can be specified as follows in Verilog code:<br />

// synthesis attribute AttributeName [of]<br />

ObjectName [is] AttributeValue<br />

Example:<br />

// synthesis attribute RLOC of u123 is R11C1.S0<br />

// synthesis attribute HU_SET u1 MY_SET<br />

//synthesis attribute bufg of signal_name is {“clk”<br />

|”sr”|”oe”};<br />

Note The parallel_case, full_case, translate_on and translate_off<br />

directives follow a different syntax described later in the section on<br />

XST language level constraints.<br />

5-10 <strong>Xilinx</strong> Development System

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

Saved successfully!

Ooh no, something went wrong!