introduction to vhdl - ymk.k-space.orgymk.k-space.org/me_vhdl2.pdf · entity mux select is port...

Post on 05-May-2018

240 Views

Category:

Documents

9 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Introduction to VHDL

Modules #6 and #7

Digilent Inc. Course

Data Selectors / Multiplexers

Bus Multiplexer

MUX VHDL Example:

Selected Signal Assignment

Bus MUX VHDL Example:

Selected Signal Assignment

More Complex MUX VHDL:

Conditional Assignment

Decoder

Decoder VHDL Example:

Selected Signal Assignment

DeMultiplexer (DeMUX)

DeMUX VHDL Code

� Assignment: modify the code of a MUX to implement a DeMUX

7-Segment Decoder

7-Segment Decoder VHDL Code

Priority Encoder

Shifters

Shifters

Shifters VHDL Example

Bit-Slice Design Method

� Consider a circuit that works on a pair of bits

� Goal is to create a circuit that can simply be replicated N times

� once for each bit

� Some circuits defy this approach

� Information passing between adjacent bits

Comparators

Comparator Bit-Slice Design

Comparator Bit-Slice Design

Adders

Arithmetic and Logic Unit (ALU)

8-Bit, 4-Function ALU VHDL

Assignment

� Lab Project P6

� Do only on Xilinx Webpack

� Simulate to show results

� No Digilent board demo is necessary

top related