Decoders, Encoders, - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Decoders, Encoders,

Description:

Decoders, Encoders, & Multiplexers. ELEC 311. Digital Logic and Circuits. Dr. Ron Hayne ... Encoders. Output code has fewer bits than input code. Example. 2n-to-n ... – PowerPoint PPT presentation

Number of Views:2892
Avg rating:3.0/5.0
Slides: 21
Provided by: drron6
Category:

less

Transcript and Presenter's Notes

Title: Decoders, Encoders,


1
Decoders, Encoders, Multiplexers
  • ELEC 311
  • Digital Logic and Circuits
  • Dr. Ron Hayne
  • Images Courtesy of John Wakerly and Prentice-Hall

2
Decoders
  • Converts coded inputs into coded outputs
  • One-to-one mapping
  • Enable
  • Must be asserted to perform mapping
  • Example Codes
  • n-bit binary
  • BCD
  • 1-out-of-m

3
Binary Decoder (n-to-2n)
  • Activates exactly one of 2n outputs based on an
    n-bit input value

4
2-to-4 Decoder
5
74x138 3-to-8 Decoder
6
74x138 3-to-8 Decoder
7
74x138 3-to-8 Decoder
8
Decoders in VHDL
9
Cascading Decoders
10
Encoders
  • Output code has fewer bits than input code
  • Example
  • 2n-to-n
  • Only works properly if inputs asserted one at a
    time

11
Priority Encoders
12
Priority Encoders
  • H7 I7
  • H6 I6 I7'
  • H0 I0 I1' I6' I7'
  • A2 H4 H5 H6 H7
  • A1 H2 H3 H6 H7
  • A0 H1 H3 H5 H7
  • IDLE (I0 I1 I6 I7)'
  • I0' I1' I6' I7'

13
Multiplexers
  • Digital Switch
  • Selects 1 of n sources
  • Based on s control lines
  • n 2s
  • Sources b bits wide

14
74x151 8-input, 1-bit Mux
15
74x157 2-input, 4-bit Mux
16
74x157 2-input, 4-bit Mux
17
Multiplexers in VHDL
18
Demultiplexers
  • Digital Switch
  • Selects 1 of n destinations
  • Based on s control lines
  • n 2s
  • Destinations b bits wide
  • Decoder with enable used as demux
  • Enable input connected to data line

19
Three-State Buffers
20
Three-State Buffers
21
Summary
  • Decoders
  • (Priority) Encoders
  • Multiplexers
  • Demultiplexers
  • Three-State Buffers
Write a Comment
User Comments (0)
About PowerShow.com