52
DIGITAL ELECTRONICS CHAPTER 3 DEE 204

Digital design chap 3

Embed Size (px)

DESCRIPTION

digital design

Citation preview

Page 1: Digital design   chap 3

DIGITAL ELECTRONICSCHAPTER 3

DEE 204

Page 2: Digital design   chap 3

DIGITAL ELECTRONICS• Function of combination logic

Conversion of BCD to 7 segment decoder.

Multiplexer, tri-state output, fan out, address, half adder, full adder, comparator.

Logic minimisation and Karnaugh maps.

Page 3: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• BCD to 7 segment decoder

displays decimal characters 0 to 9 using a 7 segment configuration

takes a 4-bit BCD input and provides output by passing current through it and LED emits light

Lamp test: to verify that no segments are burned out

Zero suppression: blank out unnecessary zeros in multi-digit displays

Page 4: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Circuit for a BCD to 7 segment decoder

Page 5: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Table of input and output variables of BCD to 7

segment decoder

Page 6: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Table of input and output variables of BCD to

7 segment decoder

Page 7: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Multiplexer (MUX)- also known as data selector - is a device that allows digital information from several sources to be routed onto a single line for transmission over that line to a common destination- has several input lines and single output line

Page 8: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Block diagram for a 1-of-n data selector/multiplexer

Page 9: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• MultiplexerFor an 8-input MUX with truth table:

INPUTS OUTPUTSA2 A1 A0 Y

0 0 0 00 0 1 10 1 0 00 1 1 11 0 0 01 0 1 11 1 0 11 1 1 0

Page 10: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• MultiplexerThe connection to a 74LS151 IC is as shown:

Page 11: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Tri-state logic- normal logic circuits only have two output states; HIGH and LOW- in complex digital systems a number of gate inputs may be required, causing certain operation problems

Page 12: Digital design   chap 3

FUNCTION OF COMBINATION LOGICRelated problems:

Transistor-transistor-logic (TTL) totem-pole outputs or CMOS active pull-up/pull-down outputs can’t be connected together open-collector outputs can be connected together with common collector but resistor connected externally, loading and speed

Page 13: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Problems solved by - developing special circuits with one more output state known as third state or high impedance state- usually used as buffer gates- modification of NAND gate with addition of diodes D1 and D2 and an inverter gate

Page 14: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Fan-out- maximum number of inputs of several gates that can be driven by the output of a logic gate - maximum number of inputs of the same IC family that the gate can drive maintaining its output levels within specified limits

Page 15: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Fan-in- the number of inputs- at hardware level, it provides information about the intrinsic speed of the gate itself- increases or decreases the propagation delay

Page 16: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Address:- location in memory- indicates the positions of instructions and data in the memory- starts with the number ‘0’ and up to the largest address

Page 17: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Half adder

- adds two bits and produces a sum and carry output- accepts two binary digits on inputs and produces two binary digits on outputs, a sum bit and a carry bitRules of binary addition0 + 0 = 00 + 1 = 11 + 0 = 11 + 1 = 10

Page 18: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Half-adder

The logic symbol and logic diagram for a half-adder:

Page 19: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Half adderThe truth table for a half adder:

Page 20: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Full adder- has an input carry while the half-adder does not- accepts two input bits and an input carry and generates a sum output and an output carry

Page 21: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Full adder logic symbol

Page 22: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Full adder logic diagram

inout CBAABC

inCBAS

Page 23: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Full adder truth table

Page 24: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Comparators- a special combinational circuit designed primarily to compare the relative magnitude of two binary numbers- for two n-bit numbers A and B as inputs, the outputs could be either A=B, A<B or A>B- depending on the relative magnitudes, one of the outputs will be HIGH

Page 25: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• ComparatorThe block diagram of a n-bit comparator:

Page 26: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• ComparatorLogic diagram of a one-bit comparator:

Page 27: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Comparator

Truth table of a one-bit comparator:

Page 28: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Logic minimization or simplification Boolean sum of products (SOP) –

when two or more product terms are summed by Boolean addition

Boolean product of sums (POS) – when two or more sum terms are multiplied

Karnaugh map

Page 29: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• The sum of products (SOP) formExample:

ACCBABA

DCBCDEABC

ABCAB

Page 30: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Example:Convert Boolean expression to SOP form

CBAc

DCBBAb

EFCDBABa

)

)

)

Page 31: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Solution

An SOP expression is ‘1’ if one or more of the product terms is ‘1’

CBCACBACBACBAc

BDBCBBADACABDCBBAb

BEFBCDABEFCDBABa

)

)

)

Page 32: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• The product of sums (POS) formExample:

CACBABA

DCBEDCCBA

CBABA

Page 33: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Example:Convert Boolean expression to POS form

DCBADCBADCBADCBADCBA

DCBADCBAAADCBDCB

DCBADCBADDCBACBA

DCBADCBCBA

as form POS thegiving thus,

Aor A variablemissing is termsecond thegconsiderin

Dor D variablemissing is first term thegconsiderin

Page 34: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Example:Simplify or minimize Boolean expression

Page 35: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Example:

Simplify or minimize Boolean expression

Page 36: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Karnaugh map- a systematic method for simplifying Boolean expressions - similar to the truth table presenting all possible values of input variables and resulting output of each value

Page 37: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Karnaugh map

Page 38: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Karnaugh map3-variable K-map

0 1

00

01

11

10

CAB

CBA CBA

CBA BCA

CAB ABC

CBA CBA

Page 39: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Karnaugh map : 4-variable K-

map 00 01 11 10

00

01

11

10

CD

AB

DCBA DCBA

DCBA DCBA

DCAB DCAB

DCBA DCBA

CDBA DCBA

BCDA DBCA

ABCD DABC

CDBA DCBA

Page 40: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Karnaugh mapExample:Draw the truth table and Karnaugh map for

ABBAY

Page 41: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Karnaugh map for the given expression

0 1

00 1 1

01

11 1

10 1

CAB

CBACABCBACBA

Page 42: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Map the Karnaugh map for the given expression

1 1 1 0 1 1 0 1 0 1 0 0

itin 1 putting and expression theevaluating

ABCCABCBACBA

Page 43: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Mapping the Karnaugh map for the given expression

0 1

00 1

01 1

11 1 1

10

CAB

Page 44: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Karnaugh map : 4-variable K-

map

0 1 0 1 1 0 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0

itin 1 putting and expression theevaluating

DCBADCBADCABDCABDCBACDBA

Page 45: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Karnaugh map : 4-variable K-

map 00 01 11 10

00 1 1

01 1

11 1 1

10 1

CD

AB

Page 46: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Map the Karnaugh map for the given expression

011

010

101 001

0 1 1 100 000

CAB BA A

iablesoutput var possible all gconsiderin

CABBAA

Page 47: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Mapping the Karnaugh map for the given expression

0 1

00 1 1

01 1 1

11 1

10 1 1

CAB

Page 48: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Deriving expression from Karnaugh map

0 1

00

01

11

10

CAB

CBA CBA

CBA BCA

CAB ABC

CBA CBA

Page 49: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Deriving expression from Karnaugh map- grouping the 1s

0 1

00 1

01 1

11 1 1

10

CAB

Page 50: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC

• Deriving expression from Karnaugh map-determining the Boolean expression

0 1

00 1

01 1

11 1 1

10

CAB

CBABC

AB

Page 51: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Deriving the expression from the Karnaugh map

00 01 11 10

00 1 1

01 1 1 1 1

11

10 1 1

CD

AB

Page 52: Digital design   chap 3

FUNCTION OF COMBINATION LOGIC• Grouping the 1s in the Karnaugh map

00 01 11 10

00 1 1

01 1 1 1 1

11

10 1 1

CD

AB CA

BA

DBA