header

Digital Logic Examples

Example 1

Design a digital circuit whose output values are given in the table below.

Inputs  
A B Output
0 0 0
0 1 0
1 0 0
1 1 1

The only row in which the desired output is one is the last row. Since both A and B are one, the desired product is AB. Therefore, the output can be expressed as follows:

Output = AB 

Here is the circuit diagram:

Example 2

Design a digital circuit whose outputs is defined in the table below.

A B C Output
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0

The output is one in rows 2, 4, 6, and 7. The corresponding products are given below.

Sum of Products Terms 

Adding these products gives us the sum of products expression for the output:

Output = (~A)(~B)C + (~A)BC + A(~B)C + AB(~C) 

Here is the corresponding circuit diagram:

Example 3

Design a digital circuit having the output defined by the table below.

A B C Output
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1

The output has a value of one in rows 2, 3, 5, and 8. The corresponding products are:

Sum of Products Terms 

The sum of products expression is given by:

Output = (~A)(~B)C + (~A)B(~C) + A(~B)(~C) + ABC 

Here is the circuit diagram: