Docsity

Combinational Logic: Implementation, Conversion, and Multiplexers, Slides of Computer Science

Partial preview of the text

Download Combinational Logic: Implementation, Conversion, and Multiplexers and more Slides Computer Science in PDF only on Docsity!

Combinational Logic Implementation

  • Two-level logic
    • Implementations of two-level logic
    • NAND/NOR
  • Multi-level logic
    • Factored forms
    • And-or-invert gates
  • Time behavior
    • Gate delays
    • Hazards
  • Regular logic
    • Multiplexers
    • Decoders
    • PAL/PLAs
    • ROMs

Implementations of Two-level Logic

  • Sum-of-products
    • AND gates to form product terms

(minterms)

  • OR gate to form sum
  • Product-of-sums
  • OR gates to form sum terms

(maxterms)

  • AND gates to form product

Two-level Logic using NAND Gates

(cont’d)

  • OR gate with inverted inputs is a NAND gate
    • de Morgan's: A' + B' = (A • B)'
  • Two-level NAND-NAND network
    • Inverted inputs are not counted
    • In a typical circuit, inversion is done once and

signal distributed

Two-level Logic using NOR Gates

• Replace maxterm OR gates with NOR gates

• Place compensating inversion at inputs of AND

gate

Two-level Logic using NAND and NOR

Gates

  • NAND-NAND and NOR-NOR networks
    • de Morgan's law: (A + B)' = A' • B'

(A • B)' = A' + B'

  • written differently: A + B = (A' • B')’

(A • B) = (A' + B')'

  • In other words ––
    • OR is the same as NAND with complemented inputs
    • AND is the same as NOR with complemented inputs
    • NAND is the same as OR with complemented inputs
    • NOR is the same as AND with complemented inputs
OR
NAND NAND
OR AND
NOR NOR
AND

Conversion Between Forms

• Convert from networks of ANDs and ORs to

networks of NANDs and NORs

– Introduce appropriate inversions ("bubbles")

• Each introduced "bubble" must be matched by

a corresponding "bubble"

– Conservation of inversions

– Do not alter logic function

• Example: AND/OR to NAND/NAND

A
B
C
D
Z
A
B
C
D
Z
NAND
NAND
NAND

Conversion Between Forms (cont’d)

  • Example: map AND/OR network to NOR/NOR

network

Step 2 conserve "bubbles"

Step 1 conserve "bubbles"

NOR
NOR
NOR
\A
\B
\C
\D
Z
NOR
NOR
A
B
C
D
Z
A
B
C
D
Z

Conversion Between Forms (cont’d)

  • Example: verify equivalence of two forms

Z = { [ (A' + B')' + (C' + D')' ]' }'

= { (A' + B') • (C' + D') }'

= (A' + B')' + (C' + D')'

= (A • B) + (C • D) 

A
B
C
D
Z
NOR
NOR
NOR
\A
\B
\C
\D
Z

Conversion of Multi-level Logic to

NAND Gates

• F = A (B + C D) + B C'

Level 1 Level 2 Level 3 Level 4

original AND-OR network

A

C D

B

B \C

F

introduction and conservation of bubbles

A

C D

B

B \C

F

redrawn in terms of conventional NAND gates (^) A

C D

\B

B \C

F

Conversion of Multi-level Logic to

NORs

• F = A (B + C D) + B C'

Level 1 Level 2 Level 3 Level 4

A

C D

B

B \C

original F AND-OR network

introduction and conservation of bubbles A

C

D B

B

\C

F

redrawn in terms of conventional NOR gates

\A

\C \D

B

\B C

F

AND-OR-Invert Gates

• AOI function: three stages of logic—AND, OR,

Invert

– Multiple gates "packaged" as a single circuit block

2x2 AOI gate symbol

3x2 AOI gate symbol

NAND NAND Invert

possible implementation

A
B
C
D
Z

AND (^) OR Invert

logical concept

A
B
C
D
Z

Conversion to AOI Forms

• General procedure to place in AOI form

– Compute complement of the function in sum-of-

products form

– By grouping the 0s in the Karnaugh map

• Example: XOR implementation––A xor B = A' B

+ A B'

– AOI form: F = (A' B' + A B)'

A
B
A'
B'
A
B
F

Examples of Using AOI Gates

(cont’d)

• Example: AOI implementation of 4-bit equality

function

high if A0 ≠ B

low if A0 = B

if all inputs are low then Ai = Bi, i=0,..., output Z is high

conservation of bubbles

A
B
A
B
A
B
A
B
NOR Z

Summary for Multi-level Logic

• Advantages

– Circuits may be smaller

– Gates have smaller fan-in

– Circuits may be faster

• Disadvantages

– More difficult to design

– Tools for optimization are not as good as for two-

level

– Analysis is more complex