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.

Contents<br />

8-bit Shift-Left Register with Positive-Edge Clock, Serial In, and Serial<br />

Out ...........................................................................................2-56<br />

VHDL Code .........................................................................2-56<br />

Verilog Code .......................................................................2-57<br />

8-bit Shift-Left Register with Negative-Edge Clock, Clock Enable, Serial<br />

In, and Serial Out .....................................................................2-57<br />

VHDL Code .........................................................................2-57<br />

Verilog Code .......................................................................2-58<br />

8-bit Shift-Left Register with Positive-Edge Clock, Asynchronous Clear,<br />

Serial In, and Serial Out ...........................................................2-59<br />

VHDL Code .........................................................................2-59<br />

Verilog Code .......................................................................2-60<br />

8-bit Shift-Left Register with Positive-Edge Clock, Synchronous Set,<br />

Serial In, and Serial Out ...........................................................2-60<br />

VHDL Code .........................................................................2-61<br />

Verilog Code .......................................................................2-61<br />

8-bit Shift-Left Register with Positive-Edge Clock, Serial In, and Parallel<br />

Out ...........................................................................................2-62<br />

VHDL Code .........................................................................2-63<br />

Verilog Code .......................................................................2-63<br />

8-bit Shift-Left Register with Positive-Edge Clock, Asynchronous Parallel<br />

Load, Serial In, and Serial Out ............................................2-64<br />

VHDL Code .........................................................................2-64<br />

Verilog Code .......................................................................2-65<br />

8-bit Shift-Left Register with Positive-Edge Clock, Synchronous Parallel<br />

Load, Serial In, and Serial Out ............................................2-65<br />

VHDL Code .........................................................................2-66<br />

Verilog Code .......................................................................2-67<br />

8-bit Shift-Left/Shift-Right Register with Positive-Edge Clock, Serial In,<br />

and Parallel Out .......................................................................2-67<br />

VHDL Code .........................................................................2-68<br />

Verilog Code .......................................................................2-68<br />

Dynamic Shift Register ..................................................................2-69<br />

16-bit Dynamic Shift Register with Positive-Edge Clock, Serial In and<br />

Serial Out .................................................................................2-69<br />

LOG File ...................................................................................2-70<br />

VHDL Code ..............................................................................2-70<br />

Verilog Code ............................................................................2-72<br />

Multiplexers ...................................................................................2-72<br />

Log File ....................................................................................2-76<br />

Related Constraints .................................................................2-77<br />

4-to-1 1-bit MUX using IF Statement .......................................2-77<br />

VHDL Code .........................................................................2-77<br />

Verilog Code .......................................................................2-78<br />

4-to-1 MUX Using CASE Statement ........................................2-78<br />

VHDL Code .........................................................................2-78<br />

Verilog Code .......................................................................2-79<br />

4-to-1 MUX Using Tristate Buffers ...........................................2-80<br />

VHDL Code .........................................................................2-80<br />

Verilog Code .......................................................................2-81<br />

XST <strong>User</strong> <strong>Guide</strong> xi

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

Saved successfully!

Ooh no, something went wrong!