05.07.2013 Views

Xilinx Synthesis Technology User Guide

Xilinx Synthesis Technology User Guide

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

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

Generate Statement<br />

The repetitive structures are declared with the "generate" VHDL<br />

statement. For this purpose "for I in 1 to N generate" means that the<br />

bit slice description will be repeated N times. As an example,<br />

Example 6-7 gives the description of an 8-bit adder by declaring the<br />

bit slice structure.<br />

Example 6-7 8 Bit Adder Described with a "for...generate"<br />

Statement<br />

entity EXAMPLE is<br />

port ( A,B : in BIT_VECTOR (0 to 7);<br />

CIN : in BIT;<br />

SUM : out BIT_VECTOR (0 to 7);<br />

COUT : out BIT<br />

);<br />

end EXAMPLE;<br />

architecture ARCHI of EXAMPLE is<br />

signal C : BIT_VECTOR (0 to 8);<br />

begin<br />

C(0)

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

Saved successfully!

Ooh no, something went wrong!