MCS-212 · Block 1 Unit 3

Boolean Algebra and Circuits

Section 6 of 6

Block 1 · Unit 3Boolean Algebra and Circuits16 min · Section 6 of 6

3.6Designing logic circuits

Covers IGNOU MCS-212 §3.4 (Example 11, E15)

Now everything comes together. Given a description in words (“the light should change whenever any switch is flipped”), we can design a circuit on paper, check it, and simplify it before building anything. This is the everyday work of digital hardware designers.

The four-step design method

  1. Function: turn the description into a table of the Boolean function ff.
  2. Expression: write ff in DNF (few 1s) or CNF (few 0s).
  3. Simplify: use the laws of Boolean algebra; check the result against the table.
  4. Circuit: draw the circuit for the simplified expression.

Key takeaways

  • Design method: table → DNF/CNF → simplify → check → circuit.
  • A light controlled by nn switches (each flip toggles it) is the XOR of the switches: on when an odd number are on.
  • XOR: x1⊕x2=(x1′∧x2)∨(x1∧x2′)x_1 \oplus x_2 = (x_1' \land x_2) \lor (x_1 \land x_2').
  • Always verify the final expression on every input before building the circuit.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

A light is controlled by two switches, and flipping either switch changes the light. With both switches off the light is off. What is f(1,1)f(1, 1)?

Show answer

Answer: B. 0

From (0,0)(0,0) (off) flip x1x_1 to get (1,0)(1,0) (on), then flip x2x_2 to get (1,1)(1,1) (off again). Option 3 treats the switches like an AND gate, but each flip toggles the light.

Question 2 · multiple choice

Which expression describes the two-switch light?

Show answer

Answer: D. (x1′∧x2)∨(x1∧x2′)(x_1' \land x_2) \lor (x_1 \land x_2')

The light is on exactly when the switches differ, which is XOR. Option 3 is on when the switches are equal (XNOR), the opposite behaviour.

Question 3 · multiple choice

For the three-switch hall light, at which input is the light on?

Show answer

Answer: A. (1,1,1)(1, 1, 1)

The light is on when an odd number of switches are on; (1,1,1)(1,1,1) has three. The other options have two switches on, so the light is off.

Question 4 · multiple choice

Which is the correct minterm for the 1-row (1,0,0)(1, 0, 0) of the three-switch table?

Show answer

Answer: C. x1∧x2′∧x3′x_1 \land x_2' \land x_3'

Complement the variables that are 0 in the row (x2x_2 and x3x_3). Option 1 is the minterm printed in the study material; it is 1 at (1,0,1)(1,0,1), a 0-row.

Question 5 · multiple choice

Why can the four-minterm DNF of the three-switch light not be shortened by combining minterms?

Show answer

Answer: D. Because every two of its minterms differ in at least two variables

Two minterms can be merged with (a∧y)∨(a∧y′)=a(a \land y) \lor (a \land y') = a only when they differ in exactly one variable. Option 3 is false: many DNFs can be simplified.

Question 6 · short answer

Design a circuit for a “majority voter”: three inputs x1,x2,x3x_1, x_2, x_3, output 1 when at least two inputs are 1. Give the table rows with output 1, a DNF, and a simplified expression.

Show worked answer

Output 1 at (0,1,1)(0,1,1), (1,0,1)(1,0,1), (1,1,0)(1,1,0), (1,1,1)(1,1,1). DNF: (x1′∧x2∧x3)∨(x1∧x2′∧x3)∨(x1∧x2∧x3′)∨(x1∧x2∧x3)(x_1' \land x_2 \land x_3) \lor (x_1 \land x_2' \land x_3) \lor (x_1 \land x_2 \land x_3') \lor (x_1 \land x_2 \land x_3). Simplify by using the minterm x1∧x2∧x3x_1 \land x_2 \land x_3 three times (idempotent law) and pairing it with each of the others: (x1′∧x2∧x3)∨(x1∧x2∧x3)=x2∧x3(x_1' \land x_2 \land x_3) \lor (x_1 \land x_2 \land x_3) = x_2 \land x_3, and similarly we get x1∧x3x_1 \land x_3 and x1∧x2x_1 \land x_2. So f=(x1∧x2)∨(x1∧x3)∨(x2∧x3)f = (x_1 \land x_2) \lor (x_1 \land x_3) \lor (x_2 \land x_3): three AND gates feeding one 3-input OR gate. Check (1,1,0)(1,1,0): 1∨0∨0=11 \lor 0 \lor 0 = 1; check (1,0,0)(1,0,0): 0∨0∨0=00 \lor 0 \lor 0 = 0.

↑ ↓ move↵ openTab switch type