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.

where<br />

value<br />

is any chosen name under which you want to group the two elements.<br />

Example<br />

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

architecture MY_DESIGN of top is<br />

attribute LUTNM: string;<br />

attribute LUTNM of LUT5_inst1: label is "logic_group1";<br />

attribute LUTNM of LUT5_inst2: label is "logic_group1";<br />

begin<br />

-- LUT5: 5-input Look-Up Table<br />

-- Virtex-5<br />

-- <strong>Xilinx</strong> HDL Libraries <strong>Guide</strong> version 8.2i<br />

LUT5_inst1 : LUT5<br />

generic map (<br />

INIT => X"a49b44c1")<br />

port map (<br />

O => aout, -- LUT output (1-bit)<br />

I0 => d(0), -- LUT input (1-bit)<br />

I1 => d(1), -- LUT input (1-bit)<br />

I2 => d(2), -- LUT input (1-bit)<br />

I3 => d(3), -- LUT input (1-bit)<br />

I4 => d(4) -- LUT input (1-bit)<br />

);<br />

-- End of LUT5_inst1 instantiation<br />

-- LUT5: 5-input Look-Up Table<br />

-- Virtex-5<br />

-- <strong>Xilinx</strong> HDL Libraries <strong>Guide</strong> version 8.2i<br />

LUT5_inst2 : LUT5<br />

generic map (<br />

INIT => X"649d610a")<br />

port map (<br />

O => bout, -- LUT output (1-bit)<br />

I0 => d(0), -- LUT input (1-bit)<br />

I1 => d(1), -- LUT input (1-bit)<br />

I2 => d(2), -- LUT input (1-bit)<br />

I3 => d(3), -- LUT input (1-bit)<br />

I4 => d(4) -- LUT input (1-bit)<br />

);<br />

-- End of LUT5_inst2 instantiation<br />

END MY_DESIGN;<br />

For more information about 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 />

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

where<br />

value is any chosen name under which you want to group the two elements.<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!