Docsity

Digital System Design: Solutions for SOP, POS, Truth Table, Circuit Design, Exercises of Digital Systems Design

Toggle sidebar
bg1
Introduction to Digital System Design
Assignment #1
Solutions
1. Suppose I have a 3-variable function expressed as f=x1·x2+x3·x1. Write down
•The Canonical SOP expression for f
•The Canonical POS expression for f
Solution. The function fconsists of two cubes, c1=x1·x2and c2=x3·x1. Since these cubes have
2 literals each, and fhas 3 variables, both these cubes contain 2 minterms each.
The minterms of c1and c2are as follows:
c1≡x1·x2·x3and x1·x2·x3.
c2≡x1·x2·x3and x1·x2·x3
In other words,
c1=m3+m7.
c2=m1+m3.
•Since f=c1+c2,CS OP (f) = m1+m3+m7
•From the above, we can write the CPOS of fas CP OS (f) = M0·M2·M4·M5·M6
2. Consider a function which is expressed as f=x1·x4+x3·x1. Draw the truth table of f
Solution. Note that the function depends on three variables x4,x3and x1. Therefore the truth table
will have 3 inputs (and 23= 8 rows). The truth table is shown in Figure 1.
1
Docsity.com
pf3

Partial preview of the text

Download Digital System Design: Solutions for SOP, POS, Truth Table, Circuit Design and more Exercises Digital Systems Design in PDF only on Docsity!

Introduction to Digital System Design

Assignment

Solutions

  1. Suppose I have a 3-variable function expressed as f = x 1 · x 2 + x 3 · x 1. Write down
    • The Canonical SOP expression for f
    • The Canonical POS expression for f

Solution. The function f consists of two cubes, c 1 = x 1 · x 2 and c 2 = x 3 · x 1. Since these cubes have 2 literals each, and f has 3 variables, both these cubes contain 2 minterms each. The minterms of c 1 and c 2 are as follows: c 1 ≡ x 1 · x 2 · x 3 and x 1 · x 2 · x 3. c 2 ≡ x 1 · x 2 · x 3 and x 1 · x 2 · x 3 In other words, c 1 = m 3 + m 7. c 2 = m 1 + m 3.

  • Since f = c 1 + c 2 , CSOP (f ) = m 1 + m 3 + m 7
  • From the above, we can write the CPOS of f as CP OS(f ) = M 0 · M 2 · M 4 · M 5 · M 6
  1. Consider a function which is expressed as f = x 1 · x 4 + x 3 · x 1. Draw the truth table of f

Solution. Note that the function depends on three variables x 4 , x 3 and x 1. Therefore the truth table will have 3 inputs (and 23 = 8 rows). The truth table is shown in Figure 1.

x 4 x 3 x 1 f 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 1 1 1 1 1

Table 1: Truth table for f

  1. Draw a circuit which uses switches, with a lightbulb as an output (like we drew in the second class). The lightbulb should be lit up when either 1 or two input variables have a ’1’ value. The lightbulb should be turned off at all other times. The three inputs to the circuit are x 1 , x 2 and x 3.

Solution. The solution is shown in Figure 3. If one or more inputs have a ’1’ value, at least one of the 3 parallel switches are turned on. However, if all 3 inputs are ’1’, the 3 series switches to the right are turned on, which ensures that the light bulb does not turn on, since both its terminals are shorted to ground.

lightbulb

x (^3) Resistor

x 2 x 3

x 2

x 1

x 1

Figure 1: Circuit for Lightbulb

  1. Prove the following theorems

(a) (x + y) = x + y