33
ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark Faust @ PSU ECE

ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Embed Size (px)

DESCRIPTION

Lecture 11 Topics –Additional Design Techniques Distributed Connections –Open Collector, Open Drain –Dot AND Three State Outputs More on MUXs and Decoders/DMUXs More on XOR and XNOR 3

Citation preview

Page 1: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

ECE 171Digital Circuits

Chapter 10MUX

Herbert G. Mayer, PSUStatus 11/23/2015

Copied with Permission from prof. Mark Faust @ PSU ECE

Page 2: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Syllabus

Open Collector Wired Drain Wired AND References

Page 3: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Lecture 11

• Topics– Additional Design Techniques

• Distributed Connections– Open Collector, Open Drain– Dot AND

• Three State Outputs• More on MUXs and Decoders/DMUXs• More on XOR and XNOR

3

Page 4: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

TTL Open Collector Outputs

4

Page 5: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

CMOS Open Drain Outputs

5

Page 6: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Wired AND (Dot AND)

6

Page 7: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Wired AND Examples

7

Page 8: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

A Design ExampleF A B C A B C D

8

Page 9: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

A Design Example

F A B C A B C D

9

Page 10: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Using Open Drain Gate to Drive LEDs

10Connect to open drain output

Page 11: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Three-State Outputsand the Disconnect State

TTL CMOS• Floating Output• High Impedance• Tri-State® (National Semiconductor)

11

Page 12: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Tri-State® Buffers74LS126A Bus Buffer

OE F 0 Z 1 A

74LS125A Bus BufferOE F 0 B 1 Z

12

Page 13: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Data Bus Sharing

13

Page 14: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Bus Buffers

14

Page 15: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

More About MUXs and Decoders/DMUXs

15

Page 16: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Off-the-shelf MUXs

16

Page 17: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

MUX Trees

• Determine number of select inputs needed 2n = 4, n = 2

• List inputs and output in truth table order A B F

• Annotate with the bit weights 2 1 A B F

• Reverse the order 2 1 A B F 1 2

• Circled numbers indicate number of 2-to-1 muxs

A 4-to-1 MUX using 2-to-1 MUXs

17

Page 18: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Generalizing…

• Determine number of select inputs needed 2n = 16, n = 4

• List inputs and output in truth table order A B C D F

• Annotate with the bit weights 8 4 2 1 A B C D F

• Reverse the order 8 4 2 1 A B C D F 1 2 4 8

• Circled numbers indicate number of 2-to-1 muxsand 8-to-1 muxs

A 16-to-1 MUX using 8-to-1 MUXs

18

Page 19: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Generalizing…

• Determine number of select inputs needed 2n = 64, n = 6

• List inputs and output in truth table order U V W X Y Z F

• Annotate with the bit weights 3216 8 4 2 1 U V W X Y Z F

• Reverse the order 3216 8 4 2 1 U V W X Y Z F 1 2 4 8 1632

• Circled numbers indicate number of 4-to-1 muxs

A 64-to-1 MUX using 4-to-1 MUXs

19

Page 20: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

20

Page 21: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

DMUXs

0 01 0D A DSD A DS

21

Page 22: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Larger DMUXs2-to-4 3-to-8 4-to-16

Off-the-shelf devices use active L ENOutputs also active L3-to-8 DMUX == “1 of 8 DMUX”1-to-2 DMUX unavailable

logic gatesuse 2-to-4 dmux

22

Page 23: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

DMUX Trees

• Determine number of address inputs needed 2n = 4, n = 2

• List inputs and output in truth table order A B D0 D1 D2 D3

• Annotate with the bit weights 2 1 A B D0 D1 D2 D3

• Reverse the order 2 1 A B D0 D1 D2 D3 1 2

• Circled numbers indicate number of 1-to-2 dmuxs

A 1-to-4 DMUX using 1-to-2 DMUXs

23

Page 24: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

DMUX Trees

• Determine number of address inputs 24 = 16, n = 4

• List I/Os in truth table order A B C D D0 … D15

• Annotate with the bit weights 8 4 2 1 A B C D D0 … D15

• Reverse the order 8 4 2 1 A B C D D0 … D15 1 2 4 8

• Circled numbers indicate number of 3-to-8 and 1-to-2 dmuxs respectively

A 4-to16 DMUX

24

Page 25: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

More on XOR and XNORDistinctive K-Map patterns indicative of XOR and XNOR

1 ( ) ( )1F X Y Z X Y ZF X Y Z

2

2 ( )

2 ( )

F X Y Z X Y Z

F Y X Z X Z

F Y X Z

33F Y Z Y ZF Y Z

XOR ( ) is commutative and associative25

Page 26: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

More on XOR and XNOR

Equivalent XOR SymbolsEven number of bubbles rule

Equivalent XNOR SymbolsOdd number of bubbles rule

26

Page 27: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

The Odd Function

XOR XOR

27

Page 28: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

The Even Functions

XNOR XNOR

28

Page 29: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

ParityA single bit error detection scheme

Even parity: generate and transmit odd function – checker willuse odd function to detect parity errorOdd parity: generate and transmit even function – checker willuse even function to detect parity error 29

Page 30: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

ParityA single bit error detection scheme

Even parity: generate and transmit odd function – checker willuse odd function to detect parity error

1101

1

1

01

1

1

0

30

Page 31: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Comparators

31

Page 32: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Comparators

Non-expandable 4-bit comparator requires external logic toconstruct an 8-bit comparator 32

Page 33: ECE 171 Digital Circuits Chapter 10 MUX Herbert G. Mayer, PSU Status 11/23/2015 Copied with Permission from prof. Mark PSU ECE

Comparators

Expandable 4-bit comparator doesn’t require external logic toconstruct an 8-bit comparator – can accept inputs from other “stage”

33