Digital Circuits and Systems Universality, Rearranging Truth Tables - - PowerPoint PPT Presentation

digital circuits and systems
SMART_READER_LITE
LIVE PREVIEW

Digital Circuits and Systems Universality, Rearranging Truth Tables - - PowerPoint PPT Presentation

Spring 2015 Week 2 Module 7 Digital Circuits and Systems Universality, Rearranging Truth Tables Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay


slide-1
SLIDE 1

Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras

*Currently a Visiting Professor at IIT Bombay

Digital Circuits and Systems

Spring 2015 Week 2 Module 7

Universality, Rearranging Truth Tables

slide-2
SLIDE 2

Universality, Rearranging Truth Tables 2

Summary of Digital Logic Gates

slide-3
SLIDE 3

Universality, Rearranging Truth Tables 3

Summary of Digital Logic Gates

slide-4
SLIDE 4

Universality, Rearranging Truth Tables 4

AND/OR CIRCUITS

The simplest type of combinational logic design consists of inverters, AND gates, and OR gates. This is known as an AND/OR circuit.

An AND/OR circuit can be designed to implement any function by performing the following steps:

1.

Put the expression in SOP form

2.

Form complemented literals with inverters.

3.

Form product terms with AND gates.

4.

Sum the product terms with an OR gate

slide-5
SLIDE 5

Universality, Rearranging Truth Tables 5

Example yz x xy z) y, f(x,   Exercise logic OR/AND using function the Implement ) x x )( z y )( y x ( z) y, f(x,     y x z f

slide-6
SLIDE 6

Universality

 All Boolean functions can be implemented using

the set {AND, OR, NOT}

 Universal gates

 Gates which can implement any Boolean function

without the need to use any other type of gate

 NAND and NOR are universal gates

 To show universality of a gate:

 Show that AND, OR and NOT can be implemented using that

gate

Universality, Rearranging Truth Tables 6

slide-7
SLIDE 7

NAND Universality

 AND, OR and NOT can be implemented using NAND only

Universality, Rearranging Truth Tables 7

NOT or INV

x F = x.x = x

AND

y x F = xy = xy P = xy

OR

y x F = x . y = x + y = x + y

slide-8
SLIDE 8

Exercises

 Show that NOR gate is a universal gate also  Is XOR a universal gate?

 If so, show how {AND, OR, NOT} operations can be

done using XOR gates only.

 If not, show which operations can be done and which

cannot be.

Universality, Rearranging Truth Tables 8

slide-9
SLIDE 9

Universality, Rearranging Truth Tables 9

Boolean Expression  Truth Table

 To convert boolean expression to truth table:

 Expand the expression into the minterms (i.e., canonical SOP form) and

enter 1’s in truth table rows (or, expand into canonical POS and enter 0’s for each maxterm).

 

z y z z , y , x f  

       

 

                    7 6 4 3 2 , , , , , z y x z y x z y x z y x z y x z y x y y z x x x z y y y z x z x z y z x yz x x z

Example x y z f 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

slide-10
SLIDE 10

Universality, Rearranging Truth Tables 10

Truth Table  Boolean Expression

 To convert a truth table to a boolean expression:

 Write a canonical SOP expression that consists of all minterms

(or write a canonical POS using maxterms) and then simplify the algebraic expression.

   

  7 6 4 3 2 , , , , , z , y , x f

       

z y z yz x x z z x z y z x y y z x x x z y y y z x z y x z y x z y x z y x z y x z y x                    

Example

slide-11
SLIDE 11

Truth tables to Boolean Expression

 When the expressions get more complicated,

simplification gets harder

 You may miss out combinations

 More inputs, more the effort  Systematic way to reduce effort

 Karnaugh Maps

Universality, Rearranging Truth Tables 11

slide-12
SLIDE 12

Rearranging Truth Tables

Universality, Rearranging Truth Tables 12

x y z f 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Minterms f(x,y,z) m0 1 m1 m2 1 m3 1 m4 1 m5 m6 1 m7 1 x\yz 00 01 10 11 1 1 1 1 1 1 1 x\yz 00 01 11 10 1 1 1 1 1 1 1

slide-13
SLIDE 13

In General

Universality, Rearranging Truth Tables 13

x1 x2x3 00 01 11 10 1

m000 m001 m010 m011 m100 m101 m110 m111

x1 x2x3 00 01 11 10

m0 m1 m3 m2

1

m4 m5 m7 m6

slide-14
SLIDE 14

End of Week 2: Module 7

Thank You

Universality, Rearranging Truth Tables 14