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

The input and output ports defined in the module declaration called<br />

EXAMPLE are the basic input and output I/O signals for the design.<br />

The inout port in Verilog is analogous to a bi-directional I/O pin on<br />

the device with the data flow for output versus input being<br />

controlled by the enable signal to the tristate buffer. The preceding<br />

example describes E as a tristate buffer with a high-true output<br />

enable signal. If oe = 1, the value of signal A will be output on the pin<br />

represented by E. If oe = 0, then the buffer is in high impedance (Z)<br />

and any input value driven on the pin E (from the external logic) will<br />

be brought into the device and fed to the signal represented by D.<br />

Verilog Assignments<br />

There are two forms of assignment statements in the Verilog<br />

language:<br />

• Continuous Assignments<br />

• Procedural Assignments<br />

Continuous Assignments<br />

Continuous assignments are used to model combinatorial logic in a<br />

concise way. Both explicit and implicit continuous assignments are<br />

supported. Explicit continuous assignments are introduced by the<br />

assign keyword after the net has been separately declared. Implicit<br />

continuous assignments combine declaration and assignment.<br />

Note Delays and strengths given to a continuous assignment are<br />

ignored by XST.<br />

Example of an explicit continuous assignment:<br />

wire par_eq_1;<br />

…...<br />

assign par_eq_1 = select ? b : a;<br />

Example of an implicit continuous assignment:<br />

wire temp_hold = a | b;<br />

Note Continuous assignments are only allowed on wire and tri data<br />

types.<br />

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

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

Saved successfully!

Ooh no, something went wrong!