6
TOPIC : Truth tables and TOPIC : Truth tables and Primitive Cubes Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

Embed Size (px)

Citation preview

Page 1: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

TOPIC : Truth tables and TOPIC : Truth tables and Primitive CubesPrimitive Cubes

UNIT 1: Modeling Digital Circuits

Module 1 : Functional Modeling

Page 2: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

Truth tableTruth table Representation of the function in terms of rows

and columns.◦ The rows represent inputs and the

corresponding outputs.◦ Columns are input and output variables.

It is the simplest way to represent a circuit. In Boolean arithmetic, the possible values are 0

and 1. So for an n-input gate,

number of possible outcomes = 2n

The inputs are given in an increment of 1 from 0 to 2n-1 in Boolean form.

Page 3: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

How the truth table is How the truth table is constructed??constructed??

Assume there are n inputs (x1,x2,…,xn) There are 2n different possible input vectors. Start the first row with (0,0,…,0) as inputs. Write the corresponding outputs in the same row. Increment the input vector value by 1 in the

subsequent rows and enter the outputs. Follow this till the last 2n th vector (1,1,…,1) is reached

Page 4: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

Example of a truth tableExample of a truth table

A B C Out

0 0 0 0

0 0 1 0

0 1 0 1

0 1 1 0

1 0 0 0

1 0 1 1

1 1 0 0

1 1 1 0

Out = AB’C + A’BC’

Page 5: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

Primitive CubesPrimitive Cubes Primitive cubes are compressed form of truth

tables. Observe the truth table of AND gate given below:

Have a look at the first two inputs:A=0, then out=0 irrespective of the second

input B. For these two input vectors, we call the B input as don’t care.

A B Out(AND)

0 0 0

0 1 0

1 0 0

1 1 1

Page 6: TOPIC : Truth tables and Primitive Cubes UNIT 1: Modeling Digital Circuits Module 1 : Functional Modeling

Primitive cube examplesPrimitive cube examplesA B Out(AN

D)

0 0 0

0 1 0

1 0 0

1 1 1

A B Out(AND)

0 X 0

1 0 0

1 1 1

Truth table of AND gatePrimitive cube of AND gate

A B Out(NOR)

0 0 1

0 1 0

1 0 0

1 1 0

A B Out(NOR)

0 0 1

0 1 0

1 X 0

X is don’t care

Truth table of NOR gatePrimitive cube of NOR gate