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 />

Example 6-22 Sequential Circuit Using Multiple Wait Statements<br />

library IEEE;<br />

use IEEE.STD_LOGIC_1164.all;<br />

entity EXAMPLE is<br />

port (DATA1, DATA2, DATA3, DATA4 : in<br />

STD_LOGIC_VECTOR (3 downto 0);<br />

RESULT : out STD_LOGIC_VECTOR (3 downto 0);<br />

CLK : in STD_LOGIC;<br />

RST : in STD_LOGIC);<br />

end EXAMPLE;<br />

architecture ARCH of EXAMPLE is<br />

begin<br />

process begin<br />

SEQ_LOOP : loop<br />

wait until CLK'EVENT and CLK = '1';<br />

exit SEQ_LOOP when RST = '1';<br />

RESULT

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

Saved successfully!

Ooh no, something went wrong!