Top Banner
LOGIC CIRCUITS COMBINATIONAL LOGIC CIRCUIT SEQUENTONAL LOGIC CIRCUIT DESIGN PROCEDURE THE PROBLEM IS STATED INPUT |& OUTPUT VARIABLES ARE DETERMINED INPUT & OUTPUT VARIABLES ARE ASSIGNED LETTER SYMBOLS TRUTH TABLE IS DERIVED TO DEFINE THE RELATIONSHIPS B/W INPUTS & OUTPUTS THE SIMPLIFIED BOOLEAN FUNCTION FOR EACH OUTPUT IS OBTAINED THE LOGIC DIAGRAM IS DRAWN
34

Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Apr 10, 2015

Download

Documents

Naveed Ahmad
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

LOGIC CIRCUITS• COMBINATIONAL LOGIC CIRCUIT

• SEQUENTONAL LOGIC CIRCUIT

DESIGN PROCEDURE• THE PROBLEM IS STATED

• INPUT |& OUTPUT VARIABLES ARE DETERMINED

• INPUT & OUTPUT VARIABLES ARE ASSIGNED LETTER SYMBOLS

• TRUTH TABLE IS DERIVED TO DEFINE THE RELATIONSHIPS B/W INPUTS & OUTPUTS

• THE SIMPLIFIED BOOLEAN FUNCTION FOR EACH OUTPUT IS OBTAINED

• THE LOGIC DIAGRAM IS DRAWN

Page 2: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

CONSTRAINTS FOR A PRACITAL DESIGN

• MINIMUM NUMBER OF GATES

• MINIMUM NUMBER OF INPUTS TO A GATE

• MINIMUM PROPAGATION TIME OF THE SIGNAL THROUGH THE CIRCUIT

• MINIMUM NUMBER OF INTERCONNECTIONS

• LIMITATIONS OF THE DRIVING CAPABILITIES OF EACH GATE

Page 3: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

COMBINATIONAL LOGIC

CIRCUITn INPUT

VARIABLES m OUTPUT

VARIABLES

BLOCK DIAGRAM OF A COMBINATIONAL CIRCUIT

ADDERS

HALF ADDERS x y C S

0 0 0 0

0 1 0 1

1 0 0 1

1 1 1 0

S = x’ y + x y’

C = xy

Page 4: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

xy’

x’y

xy

s

c

(a) S = x y’ + x’ y C = x y

xy

x’

y’

xy

s

c

(b) S = (x + y) (x’ + y’) c = x y

Page 5: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

x’

y’

x

y

S

C

(c) S = (c + x’ y’)’ C = x y

xy

x’y’

S

C

(d) S = (x + y) . (x’ + y’) C = (x’ + y’)’

Page 6: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

xy

X OR

s

c

(e)S = x y

C = x y VARIOUS IMPLEMENTATIONS OF A HALF ADDER

Page 7: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

FULL ADDER

x y z c s

0 0 0 0 0

0 0 1 0 1

0 1 0 0 1

0 1 1 1 0

1 0 0 0 1

1 0 1 1 0

1 1 0 1 0

1 1 1 1 1

1

1

1

1

00 01 11 10yz

x0

1

z

x

z

S = x’ y’ z + x’ y z’ + x y’ z’ + xyz

yz

1

1

1 1

00 01 11 10x0

1

z

x

z

C = x y +xz + yz

Page 8: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

MAP FOR FULL ADDER

x’

z

y’

y

x

xz’

z

S

xy

y

x

z

z

c

IMPLEMENTATION OF FULL – ADDER IN SUM OF PRODUCTS

y’

x’yz’

S=x’y’z+x’yz’+xy’z’+xyz C=xy+xz+yz

Page 9: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

xy

z

s

c

IMPELEMENTATION OF A FULL – ADDER WITH TWO

HALF – ADDER AND AN OR GATE

S = z (x y) = z’(x y) + z (x y)’ = z’ (x y’ + x’ y) + z (xy + x’y’) = z’ (x y’ +x’ y) + z(x y + x’ y’) = x y’ z’ + x’ y z’ + x y z + x’ y’ z

Page 10: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

c = z(x y’ + x’ y) + x y = x y’ z + x’ y z + x y = x y’ z + y (x’ z+ x) = x y’ z + y [ (x + x’) (x + z)] = x y’ z + y (x + z) = x y’ z + x y + y z = z ( x y’ + y) + x y = z[( x + y) ( y + y’)] + x y = z (x + y) + x y = x z + y z + x y

Page 11: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Half subtractor

B D

0 0

1 1

0 1

0 0

X y

0 0

0 1

1 0

1 1

D = x’ y + x y’

B =x’ yD = x - y

x

y

B

D

Page 12: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Full subtractor

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

0 0

1 1

1 1

1 0

0 1

0 0

0 0

1 1

X y z B D

D = x – y - z

y

1 1

1 1x

0

1

0 0y z

01 11 10

x

z

D = x’y’z+x’yz’ +

xy’z’+xyz

Page 13: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

1

11 1x

o

1

0 0 01 11 10

x

z

B =x’y+x’z+yz

y z y

MAPS FOR FULL- SUBTRACTOR

D= x’y’z+x’yz’+xy’z’+xyz

B = x’y+x’z+yz

Page 14: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Full subtractorx

y

z B

D

D=z(xy)

D=z’(xy’+x’y)+z(xy’+x’y)’

D=xy’z’+x’yz’+z(xy+x’y’)

D=xy’z’+x’yz’+xyz+x’y’z

B=z(xy’+x’y)’+x’y

B=z(x’y’+xy)+x’y

=x’y’z+xyz+x’y

B=x’y+x’y’z+xyz = x’(y+y’z)+xyz = x’(y+y’)(y+z)+xyz = x’(y+z)+xyz = x’y+x’z+xyz = x’y+z(x’+xy) = x’y+z(x+x’)(x’+y) =x’y+z(x’+y) = x’y+x’z+yz

Page 15: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Code conversion

Input

BCD

Output

Excess-3 code

A B C D w x y z

0 0 0 0 0

1 0 0 0 1

2 0 0 1 0

3 0 0 1 1

4 0 1 0 0

5 0 1 0 1

6 0 1 1 0

7 0 1 1 1

8 1 0 0 0

9 1 0 0 1

0 0 1 1

0 1 0 0

0 1 0 1

0 1 1 0

0 1 1 1

1 0 0 0

1 0 0 1

1 0 1 0

1 0 1 1

1 1 0 0

Z=D’Y=CD+C’D’=CD+(C+D)’

x=B’C+B’D+BC’D’ = B’(C+D)+BC’D’W=A+BC+BD = A+B(C+D)

Page 16: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Truth table for code-conversion example

Z=D’

y=CD+C’D’=CD+(C+D)’

X=B’C+B’D+BC’D’=B’(C+D)+BC’D’

=B’(C+D)+B(C+D)’

W=A+BC+BD=A+B(C+D)

Page 17: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

A

1

1

X

1

X X X

XX

AB

00

01

11

10

00CD

01 11 10

B

C

1

1

D

Y =CD+C’D’

D

1

X X X X

XX

AB

00

01

11

10

00 01 11 10

A

B

C

Z=D’

1

11

1

CD

Page 18: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

A

1

1

X

1

X X X

XX

AB

00

01

11

10

00CD

01 11 10

B

C

1 1

DW=A+BC+BD

D

1

X X X X

XX

AB

00

01

11

10

00 01 11 10

A

B

C

X=B’C+B’D+BC’D’

1 1

1

1

MAPS FOR BCD-TO-EXCESS-8 CODE CONVERTOR

CD

Page 19: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

C

D

B

A

B

C’

F

(a) AND / OR Implementation

F=A(B+CD)+BC’

Page 20: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

C

D

B

A

C’

B

1

2

3

4

5 6 F

ANDAND

AND

OR

OR

(b) Substituting Equivalent NOR Functions

Page 21: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Implementation of F = A (B+CD ) + BC’ with NOR gates

(Block Diagram Method)

1

2

3

4

5 6

C’

D’

B

A’

B’

C (c) NOR implementation

F

Page 22: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

F

1

2

3

4

5 6

C’

D’

B

A’

B’

C

T1

T2

T3

T4

T5

Analysis Procedure

Page 23: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

T1 = (C’ +D’)’ = CD

T2 = (B’ + C)’ = BC’

T3 = (B + T1)’ = (B + CD)’ = B’ (C’ + D’)

T4 = (A’ + T3)’ = [A’ + B’ (C’ + D’]’ = A (B + CD)

T5 = (T4 + T2 )’ = [A (B + CD) + BC’ ]’

F = (T5)’ = [{A(B+CD)+BC’}’]’

F = A(B + CD) + BC’

Method – 1 : Algebraic manipulation

Page 24: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Method – 2 Derivation of the truth table

1010011111101000011110101010111010100011101001110101010001010101001001010100000101000111100100000110100010101010001000100100011100010100010001010010000101000000FT5T4T3T2T1DCBA

Page 25: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

F

Method 3 : Block Diagram Transformation

C’

D’

B

A’

B’

C

ABC

F = (A+B+C)’

F = (A+B+C) + BC’

(a) NOR Logic diagram

ABC

F = A’+B’+C’=(A+B+C)’

Page 26: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

C’

D’

B

A’

B’

CF

(b) Substitution of invert AND symbols in alternate levels

Page 27: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

C

D

B

A

B

C’F

F = A(B + CD) + BC’

(c) AND – OR Logic diagram

Conversion of NOR logic diagram to AND - OR

Page 28: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

x

y

x

y

x

y

F

F = x y = x y’ + x’ yF = x y = x y + x’ y’

(a) With AND – OR – NOT gates (X-OR Implementation)

X y

Page 29: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

x

y

X y x’+y’

[x ( x’ + y’ )]’ = x’ + x y

[ y (x’+ y’)]’ = y’ + x y

[ ( x’ + x y)( y’ + x y)]’

= x (x’ + y’) + y (x’ + y’) = xy’+x’y

(b) With NAND gates (X-OR Implementation)

Page 30: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Exclusive – OR implementations

00 01 11 10

00 1 1

01 1 1

11 1 1

10 1 1

00 01 11 10

00 1 1

01 1 1

11 1 1

10 1 1

CDC C

BB

ABAB

A A

DD

(a) F=A B C D F= (1,2,4,7,8,11,13,14) (0’s and 1’s are odd)

(b) F=A B C D F= (0,3,5,6,9,10,12,15) (0’s and 1’s are even

Map for a four-variable (a) exclusive-OR function and (b) equivalence function

Page 31: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

11

1100 01 11 10BC

0

1

A

A

B

C

1111

00 01 11 10BC

0

1

A

A

B

C(a)

F= A B C

A B C

For Table (b)

Map for three-variable functions

Uses of X OR AND (i) Arithmetic operations(ii) Error- detection & error-correction codes

F= A B C = A B C

(A B C ) =

(A B C)’ =

F= A B C = A B C

F= A B C

(1’s are odd) (1’s are even)

Page 32: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

Odd-parity generation Three-bit messages

X Y Z

Parity-bit Generated

p

0

0

0

0

1

1

1

1 1

1

1

1

0

0

0

0 0

0

0

0

1

1

1

1

1

1

1

1

0

0

0

0

Page 33: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

x

y

zP

x

y

z

P

C

P= x y z

C= x y z p

(a) 3-bit add parity generator

(a) (b) 4-bit odd parity checker

Logic diagrams for parity generation and checking

Note : Parity checker can also be used as parity generator by Keeping input at 0 and making output as p

Page 34: Digital And Logic Design No. 3 (Logic Circuits) from APCOMS

ODD-PARITY CHECK

Four- bits received Parity-errorcheck

0 0 0 0 1

0 0 0 1 0

0 0 1 0 0

0 0 1 1 1

0 1 0 0 0

0 1 0 1 1

0 1 1 0 1

0 1 1 1 0

1 0 0 0 0

1 0 0 1 1

1 0 1 0 1

1 0 1 1 0

1 1 0 0 1

1 1 0 1 0

1 1 1 0 0

1 1 1 1 1

x y z p c