Docsity

Implementing Boolean Functions-Digital Logic Design-Lecture Slides, Slides of Digital Logic Design and Programming

Toggle sidebar
bg1
•Any combinational circuit can be constructed using
decoders and OR gates! Why?
•Here is an example:
Implement a full adder circuit with a decoder and two
OR gates.
•Recall full adder equations, and let X, Y, and Z be the
inputs:
–S(X,Y,Z) = X+Y+Z = m(1,2,4,7)
–C (X,Y,Z) = m(3, 5, 6, 7).
•Since there are 3 inputs and a total of 8 minterms, we
need a 3-to-8 decoder.
18-Jul-12 Chapter 3-ii: Combinational Logic
Design (3.4 - 3.6) 20
Implementing Boolean functions
using decoders
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Implementing Boolean Functions-Digital Logic Design-Lecture Slides and more Slides Digital Logic Design and Programming in PDF only on Docsity!

• Any combinational circuit can be constructed using

decoders and OR gates! Why?

• Here is an example:

Implement a full adder circuit with a decoder and two

OR gates.

• Recall full adder equations, and let X, Y, and Z be the

inputs:

– S(X,Y,Z) = X+Y+Z = m(1,2,4,7)

– C (X,Y,Z) = m(3, 5, 6, 7).

• Since there are 3 inputs and a total of 8 minterms, we

need a 3-to-8 decoder.

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Implementing Boolean functions

using decoders

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Implementing a Binary Adder

Using a Decoder

S(X,Y,Z) = Σm(1,2,4,7)

C(X,Y,Z) = Σm(3,5,6,7)

3-to-8 decoder using two 2-to-4 decoders

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

4-input tree decoder

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Encoders (cont.)

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Encoder Example

• Example: 8-to-3 binary encoder (octal-to-binary)

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

A 0 = D 1 + D 3 + D 5 + D 7

A 1 = D 2 + D 3 + D 6 + D 7

A 2 = D 4 + D 5 + D 6 + D 7

Simple Encoder Design Issues

• There are two ambiguities associated with the

design of a simple encoder:

1. Only one input can be active at any given time. If two

inputs are active simultaneously, the output produces an

undefined combination (for example, if D 3 and D 6 are 1

simultaneously, the output of the encoder will be 111.

2. An output with all 0's can be generated when all the

inputs are 0's,or when D 0 is equal to 1.

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Priority Encoders

• Solves the ambiguities mentioned above.

• Multiple asserted inputs are allowed; one has

priority over all others.

• Separate indication of no asserted inputs.

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

4-to-2 Priority Encoder (cont.)

• The operation of the priority encoder is such

that:

• If two or more inputs are equal to 1 at the

same time, the input in the highest-numbered

position will take precedence.

• A valid output indicator , designated by V, is

set to 1 only when one or more inputs are

equal to 1. V = D

+ D

+ D

+ D

by inspection.

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Example: 4-to-2 Priority Encoder

K-Maps

8-to-3 Priority Encoder

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

A Matrix of switches = Keypad

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

C0 C1 C2 C

R

R

R

R

1 2 3 F

4 5 6 E

7 8 9 D

0 A B C

Priority Interrupt Encoder Schematic

18-Jul- Chapter 3-ii: Combinational Logic Design (3.4 - 3.6)

Device A
Device B
Device C
Device D

Microprocessor

Interrupt

Encoder

Req(1:0)
IntRq

Interrupting

Devices