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

Description Using Concurrent Assignment<br />

In the following two examples, note that comparing to 0 instead of 1<br />

will infer the BUFT primitive instead of the BUFE macro. (The BUFE<br />

macro has an inverter on the E pin.)<br />

VHDL Code<br />

Following is VHDL code for a tristate element using a concurrent<br />

assignment.<br />

library ieee;<br />

use ieee.std_logic_1164.all;<br />

entity three_st is<br />

port(T : in std_logic;<br />

I: in std_logic;<br />

O: out std_logic);<br />

end three_st;<br />

architecture archi of three_st is<br />

begin<br />

O

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

Saved successfully!

Ooh no, something went wrong!