IC220 Gates Basic building blocks of logic Slide Set #A1: Digital - - PowerPoint PPT Presentation

ic220
SMART_READER_LITE
LIVE PREVIEW

IC220 Gates Basic building blocks of logic Slide Set #A1: Digital - - PowerPoint PPT Presentation

Appendix Goals Establish an understanding of the basics of logic design for future material IC220 Gates Basic building blocks of logic Slide Set #A1: Digital Logic Combinational Logic (Appendix A) Decoders, Multiplexors, PLAs


slide-1
SLIDE 1

1

IC220 Slide Set #A1: Digital Logic (Appendix A)

2

Appendix Goals Establish an understanding of the basics of logic design for future material

  • Gates

– Basic building blocks of logic

  • Combinational Logic

– Decoders, Multiplexors, PLAs

  • Clocks
  • Memory Elements
  • Finite State Machines

3

Logic Design – Digital Signals

  • Only two valid, stable values

– False = – True =

  • Vs. voltage levels

– Low voltage “usually” – High voltage “usually” – But for some technologies may be the reverse

  • How can we make a function with these signals?
  • 1. Specify equations:
  • 2. Implement with

4

Boolean Algebra

  • One approach to expressing the logic function
  • Operators:

– NOT

Output true if

– AND: ‘A logical product’

Output true if

– OR : ‘A logical sum’

Output true if

– XOR

Output true if

– NAND

Output true if

– NOR

Output true if

A x  AB B A x   

B A x   B A x  

B A x   B A x  

slide-2
SLIDE 2

5

Gates

6

Example

A(1) C(0) D(1) B(1) G

Equation: 7

Truth Tables Part 1

  • Alternative way to specify logical functions
  • List all outputs for all possible inputs

– n inputs, how many entries? – Inputs usually listed in numerical order

A x  B A x  

A x 1 1 A B x 1 1 1 1 1 1 1 8

Truth Tables Part 2

  • Not just for individual gates
  • Not just for one output

A B C F G 1 1 1 1 1 1 1 1 1 1 1 1

A C B G F EX: A-1 to A-4

slide-3
SLIDE 3

9

Laws of Boolean Algebra

  • Identity Law
  • Zero and One Law
  • Inverse Law
  • Commutative Law

A A   0

1 1   A

0   A 1   A A   A A A B B A   

A B B A   

A A  1

10

Laws of Boolean Algebra

  • Associative Law
  • Distributive Law
  • DeMorgan’s Law

C B A C B A      ) ( ) ( C B A C B A      ) ( ) (

) ( ) ( ) ( C A B A C B A      

) ( ) ( ) ( C A B A C B A      

B A B A    B A B A   

11

DeMorgan’s Law and Bubble Pushing

B A B A   

B A B A   

12

Bubble Pushing Example

slide-4
SLIDE 4

13

Representing Combinational Logic

Truth Table Boolean Formula Circuit

For combinational logic, these three:

  • are equivalently _____________
  • straight-forward to ____________
  • have no ______________

14

2-Level Logic

  • Represent ______ logic function(s)

– Utilizing just two types of gates

(assuming we get NOT for free)

– Two forms

  • Sum of products
  • Product of sums

– Relationship with truth table

  • Generate a gate level implementation of any set of

logic functions

  • Allows for simple reduction/minimization

15

Example

  • Show the sum of products for the following truth table.
  • Strategy: _________ all the products where the output is ________
  • z =
  • Is this optimal?

A B C z 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

EX: A-11 to A-15

16

Reduction/Minimization

  • Reduction is important to reduce the size of the circuit that performs

the function. This, in turn, reduces the cost of, and delay through, the circuit.

  • What?

– Less power consumption – Less heat – Less space – Less time to propagate a signal through the circuit – Less points of possible failure

  • It makes good engineering and economic sense!
slide-5
SLIDE 5

17

  • Sum of Products: Truth Table:
  • Okay to duplicate terms while minimizing

Minimization by Hand

A B C z 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

) ( ) ( ) ( ) ( C B A C B A C B A C B A z            

18

Karnaugh Maps (k-Maps)

  • A graphical (pictorial) method used to minimize Boolean

expressions.

  • Don’t require the use of Boolean algebra theorems and equation

manipulations.

  • A special version of a truth table.
  • Works with two to four input variables

(gets more and more difficult with more variables)

  • Groupings must be __________________
  • Final result is in _____________________ form

19

Karnaugh Maps (k-Maps) Example #1

  • Lets create a k-map table

– Borders represent all possible conditions – NOT in counting order – Be consistent

  • What are the values for the map?

– The values of ___

  • To reduce, circle our powers of 2!
  • Result:

A B C z 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

A A C B BC C B C B

20

K-Maps Example #2

  • Suppose we already have this k-Map. Minimize the function.
  • Every “1” must be ____________ by at least one term
  • Larger blocks in k-Map produce smaller product terms

1 1 1 1 1 1 1 1 B A AB B A B A D C CD D C D C

slide-6
SLIDE 6

21

Truth Table and Logical Circuit Example

  • How does a truth table and subsequent sum of products equation create a

logic circuit?

  • From the earlier example:

z = + +

  • Lets build the logical circuit:

– Which gates do we need? – How many inputs do we have? – How do we connect the circuit?

C B  B A C A

22

Example Circuit

A B C z

z = + +

C B  B A C A

EX: A-21 to A-24

23

Don’t Cares

  • Sometimes don’t care about the output.
  • Each X can be either a 0 or 1 (helps with minimization)
  • But in actual circuit, each X will have some specific value

1 1 1 1 1 1 B A AB X B A X B A D C CD D C D C

24

General Skills

  • Make sure you can populate a K-Map from a truth table
  • Make sure you can populate a truth table from a K-Map
  • Given a circuit, know how to construct a truth table
  • Given a truth table, know how to produce a sum-of-products, and

how to draw a circuit

  • Be able to understand minimization and use it
  • Know DeMorgan’s Law and other Boolean laws