Chapter 3 · 5 hours
Combinational Logic Circuits
IOE past exam questions
Past questions and answers
35 questions set from this chapter, 2 of them more than once. Most asked first.
- Asked 3 times
- 2079 Bhadra · 4+2 marks
- 2079 Baisakh · 3+3 marks
- 2076 Chaitra · 4+2 marks
Simplify the function using K-map F = Σ(1,2,3,8,9,10,11,14) and D = Σ(0,4,12). Also realize the simplified circuit using NAND Gates.
Answer
Given , where X marks a don't-care cell.
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 1 | 1 | 1 |
+---+---+---+---+
01 | X | 0 | 0 | 0 |
+---+---+---+---+
11 | X | 0 | 0 | 1 |
+---+---+---+---+
10 | 1 | 1 | 1 | 1 |
+---+---+---+---+
Groups (don't-cares 0 and 12 are used where they make a group bigger; don't-care 4 is left out):
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(8,10,12,14) →
Check: the octet covers 1, 2, 3, 8, 9, 10, 11, and the quad covers 8, 10, 14 (with 12). All minterms are covered.
Realization using NAND gates
Take double complement and apply De Morgan's theorem:
So = NAND(, NAND(, )). is made with a NAND gate whose inputs are tied together. The single literal goes into the output NAND as plain .
D ──[NAND]── D' (inputs tied)
A, D' ──[NAND]── P1 ─┐
├──[NAND]── F
B ────────── ─┘
Total: 3 two-input NAND gates (one used as an inverter).
- Asked 2 times
- 2074 Chaitra · 4+2 marks
- 2074 Asoj · 3 marks
What do you mean by static and dynamic hazards? Give example of static hazards and explain how do you eliminate such hazards?
Answer
A hazard is an unwanted short pulse (glitch) at the output of a combinational circuit. It happens when an input changes and different signal paths have different propagation delays, so the output briefly takes a wrong value even though the steady-state value is correct.
Static hazard
The output should stay at the same value, but it momentarily changes and comes back.
- Static-1 hazard: output should stay 1 but goes . Occurs in SOP (AND-OR) circuits.
- Static-0 hazard: output should stay 0 but goes . Occurs in POS (OR-AND) circuits.
Dynamic hazard
The output should change once ( or ) but it changes three or more times, e.g. . It happens in multi-level circuits where one input reaches the output through three or more paths of different delay. A circuit that is free of static hazards at every level (a two-level hazard-free design) is also free of dynamic hazards.
Example of a static-1 hazard
Let . Then for both values of A, so F should stay at 1.
A ──┬──────────[AND]── AB ──┐
│ B ───┘ [OR]── F
└─[NOT]──A'─[AND]─ A'C ─┘
C ────┘
When A falls from 1 to 0, AB goes to 0 at once, but A'C rises only after the inverter delay. For that short time both AND outputs are 0, so F dips to 0: a static-1 hazard.
A ‾‾‾‾‾|_________
AB ‾‾‾‾‾|_________
A'C ______|‾‾‾‾‾‾‾‾ (late by inverter delay)
F ‾‾‾‾‾|_|‾‾‾‾‾‾‾ (glitch)
Eliminating the hazard
On the K-map, the two groups AB (cells 6, 7) and A'C (cells 1, 3) sit next to each other (cells 3 and 7) but no group covers both. A move between two adjacent 1-cells that are in different groups is a hazard.
The fix is to add a redundant group (the consensus term) that covers the adjacent cells:
When , the extra term holds F at 1 while A changes, so the glitch is removed. The logic function is unchanged because is the consensus of and .
Rule: in an SOP circuit, make sure every pair of adjacent 1s on the K-map is covered by at least one common group. For POS circuits, do the same with the 0s to remove static-0 hazards.
- 2081 Bhadra · 4+2 marks
Simplify the following Boolean logic function using K-map. Also realize the logic function using an 8:1 multiplexer and necessary logic gates. Y(A,B,C,D) = ΠM(0,2,4,6,7,8,10,13,15)
Answer
means Y = 0 at these cells. So Y = 1 at the remaining cells:
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 1 | 1 | 0 |
+---+---+---+---+
01 | 0 | 1 | 0 | 0 |
+---+---+---+---+
11 | 1 | 0 | 0 | 1 |
+---+---+---+---+
10 | 0 | 1 | 1 | 0 |
+---+---+---+---+
Grouping the 1s:
- Quad m(1,3,9,11) →
- Pair m(1,5) →
- Pair m(12,14) →
(Grouping the 0s gives the minimal POS , which has more terms, so the SOP form is used.)
Realization with an 8:1 multiplexer
Use A, B, C as the select lines and connect each data input – to 0, 1, D or . For each value of ABC, compare Y for D = 0 and D = 1:
| ABC (sel) | Minterms | Y at D=0 | Y at D=1 | Data input |
|---|---|---|---|---|
| 000 | 0, 1 | 0 | 1 | |
| 001 | 2, 3 | 0 | 1 | |
| 010 | 4, 5 | 0 | 1 | |
| 011 | 6, 7 | 0 | 0 | |
| 100 | 8, 9 | 0 | 1 | |
| 101 | 10, 11 | 0 | 1 | |
| 110 | 12, 13 | 1 | 0 | |
| 111 | 14, 15 | 1 | 0 |
+-----------+
D ───── | I0 |
D ───── | I1 |
D ───── | I2 |
0 ───── | I3 8:1 |── Y
D ───── | I4 MUX |
D ───── | I5 |
D' ───── | I6 |
D' ───── | I7 |
+-----------+
S2 S1 S0
A B C
D ──[NOT]── D'
Only one NOT gate is needed besides the multiplexer. Check: for , Y = , so minterm 12 (D=0) gives 1 and minterm 13 gives 0, as required.
- 2081 Baisakh · 4+2 marks
Implement the following function using K-Map. F(A,B,C,D) = Σ(0,2,4,5,11) + d(3,7,12,15). Implement the function using NOR gate only.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 0 | X | 1 |
+---+---+---+---+
01 | 1 | 1 | X | 0 |
+---+---+---+---+
11 | X | 0 | X | 0 |
+---+---+---+---+
10 | 0 | 0 | 1 | 0 |
+---+---+---+---+
Groups (don't-cares 3, 7, 15 are used for the quad; 12 is not needed):
- Pair m(0,2) →
- Pair m(4,5) →
- Quad m(3,7,11,15) →
Check: 0, 2 by ; 4, 5 by ; 11 by . (The minimal POS needs four sum terms, so SOP is simpler here.)
Realization using NOR gates only
For NOR-only realization of an SOP expression, write each product term as a NOR of complemented literals (De Morgan: ), feed these to a NOR gate (which gives ), and invert with one more NOR whose inputs are tied.
where are the three first-level NOR outputs.
B ──[NOR]── B' (inputs tied)
C ──[NOR]── C' (inputs tied)
D ──[NOR]── D' (inputs tied)
A, B, D ──[NOR]── P1 ─┐
A, B', C ──[NOR]── P2 ─┤──[NOR]── F'
C', D' ──[NOR]── P3 ─┘
F' ──[NOR]── F (inputs tied)
Gates used: 3 NOR inverters (for ), three first-level NORs, one 3-input NOR and one NOR inverter: 8 NOR gates in all.
- 2080 Bhadra · 4+2 marks
Simplify the Boolean function F(A,B,C,D) = Σm(0,1,2,4,7,8,9,10,12,15) and don't care condition (5,11,13) using K-Map and implement by only NOR gates.
Answer
Given .
K-map simplification (grouping 1s)
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | 0 | 1 |
+---+---+---+---+
01 | 1 | X | 1 | 0 |
+---+---+---+---+
11 | 1 | X | 1 | 0 |
+---+---+---+---+
10 | 1 | 1 | X | 1 |
+---+---+---+---+
- Octet m(0,1,4,5,8,9,12,13) →
- Quad m(0,2,8,10) →
- Quad m(5,7,13,15) →
Variable A drops out completely.
POS form for NOR realization
NOR gates give a POS expression directly (NOR-NOR = OR-AND). The 0s are at cells 3, 6 and 14; grouping them (with don't-care 11):
- Pair of 0s M(3,11) →
- Pair of 0s M(6,14) →
Check: the SOP and POS forms agree on every cell; e.g. cell 6 (B=1, C=1, D=0) makes the second sum term 0, so F = 0.
NOR-only circuit
B ──[NOR]── B' (inputs tied)
C ──[NOR]── C' (inputs tied)
D ──[NOR]── D' (inputs tied)
B, C', D' ──[NOR]── P1 ─┐
├──[NOR]── F
B', C', D ──[NOR]── P2 ─┘
Gates: 3 NOR inverters, 2 three-input NORs and 1 two-input NOR: 6 NOR gates. (Implementing the SOP form instead would need more gates.)
- 2079 Bhadra · 6 marks
Simplify the following Boolean function using K-map and draw the circuit of simplified expression using NOR gates only. F = Σm(7,9,12,13,14,15) + don't care (0,2,3,5).
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 0 | X | X |
+---+---+---+---+
01 | 0 | X | 1 | 0 |
+---+---+---+---+
11 | 1 | 1 | 1 | 1 |
+---+---+---+---+
10 | 0 | 1 | 0 | 0 |
+---+---+---+---+
Groups (don't-care 5 is used in the BD quad; 0, 2, 3 are not needed):
- Quad m(12,13,14,15) →
- Pair m(9,13) →
- Quad m(5,7,13,15) →
Check: 12, 13, 14, 15 by AB; 7 (and 5, 13, 15) by BD; 9 by .
Circuit using NOR gates only
For NOR-only realization of an SOP expression, write each product term as a NOR of complemented literals (De Morgan: ), feed these to a NOR gate (which gives ), and invert with one more NOR whose inputs are tied.
A ──[NOR]── A' (inputs tied)
B ──[NOR]── B' (inputs tied)
D ──[NOR]── D' (inputs tied)
A', B' ──[NOR]── P1 ─┐
B', D' ──[NOR]── P2 ─┤──[NOR]── F'
A', C, D' ──[NOR]── P3 ─┘
F' ──[NOR]── F (inputs tied)
Gates: 3 NOR inverters (), 3 first-level NORs, a 3-input NOR giving and a final NOR inverter.
- 2078 Bhadra · 3+3 marks
Obtain the minimal SOP form of F(A,B,C,D) = Σm(3,4,6,8,10,15) + d(0,2,7,14) using K-map and implement the simplified result using NOR gate only.
Answer
Given .
K-map and minimal SOP
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 0 | 1 | X |
+---+---+---+---+
01 | 1 | 0 | X | 1 |
+---+---+---+---+
11 | 0 | 0 | 1 | X |
+---+---+---+---+
10 | 1 | 0 | 0 | 1 |
+---+---+---+---+
Every group below is a quad, made possible by the don't-cares 0, 2, 7, 14:
- Quad m(2,3,6,7) →
- Quad m(0,2,4,6) →
- Quad m(0,2,8,10) →
- Quad m(6,7,14,15) →
Check: 3 (and 2, 7) by ; 4, 6 by ; 8, 10 by ; 15 (with 7, 14) by . This is the only minimal SOP (4 terms, 8 literals).
Implementation using NOR gates only
For NOR-only realization of an SOP expression, write each product term as a NOR of complemented literals (De Morgan: ), feed these to a NOR gate (which gives ), and invert with one more NOR whose inputs are tied.
B ──[NOR]── B' (inputs tied)
C ──[NOR]── C' (inputs tied)
A, C' ──[NOR]── P1 ─┐
A, D ──[NOR]── P2 ─┤
├──[NOR]── F'
B, D ──[NOR]── P3 ─┤
B', C' ──[NOR]── P4 ─┘
F' ──[NOR]── F (inputs tied)
Gates: 2 NOR inverters (), 4 two-input NORs, one 4-input NOR and one NOR inverter: 8 NOR gates.
- 2076 Asoj · 5+2 marks
Simplify the following function using K-map. And also draw reduced circuit using NOR gate y(A,B,C,D) = ΠM(0,2,3,8,10,11,12,15) and d = ΠM(7,13,14).
Answer
Given with don't-cares . The listed maxterms are the 0-cells; the remaining cells 1, 4, 5, 6, 9 are 1s.
K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 1 | 0 | 0 |
+---+---+---+---+
01 | 1 | 1 | X | 1 |
+---+---+---+---+
11 | 0 | X | 0 | X |
+---+---+---+---+
10 | 0 | 1 | 0 | 0 |
+---+---+---+---+
Simplified POS (grouping the 0s)
- Quad of 0s M(12,13,14,15) →
- Quad of 0s M(0,2,8,10) →
- Quad of 0s M(3,7,11,15) →
Simplified SOP (grouping the 1s)
- Quad m(4,5,6,7) →
- Quad m(1,5,9,13) →
Both forms are correct. The SOP form has only 2 terms and 4 literals, so it gives the smaller NOR circuit.
Reduced circuit using NOR gates
Each product term becomes a NOR of complemented literals:
B ──[NOR]── B' (inputs tied)
D ──[NOR]── D' (inputs tied)
A, B' ──[NOR]── P1 ─┐
├──[NOR]── y'
C, D' ──[NOR]── P2 ─┘
y' ──[NOR]── y (inputs tied)
Gates: 2 NOR inverters, 2 first-level NORs, 1 NOR giving and 1 NOR inverter: 6 two-input NOR gates.
(The POS form could be built as a NOR-NOR circuit, , but it needs 8 NOR gates including inverters.)
- 2075 Chaitra · 2.5 marks
Define combinational logic circuit.
Answer
A combinational logic circuit is a digital circuit whose outputs at any instant depend only on the present combination of its inputs. It has no memory and no feedback, so past inputs do not affect the output.
+--------------------+
x1 ──────>| |──────> z1
x2 ──────>| Combinational |──────> z2
: | logic (gates) | :
xn ──────>| |──────> zm
+--------------------+
n inputs m outputs
Key features
- Built only from logic gates (AND, OR, NOT, NAND, NOR, XOR).
- Output = f(present inputs); it can be fully described by a truth table or Boolean expressions, one per output.
- No clock and no storage elements (no flip-flops).
- An n-input circuit has input combinations.
Examples: half adder, full adder, subtractor, multiplexer, demultiplexer, encoder, decoder, magnitude comparator, code converters.
By contrast, a sequential circuit contains memory (flip-flops), so its output depends on both present inputs and past history (the present state).
- 2075 Chaitra · 6 marks
Simplify the function using K-map F = Σ(0,1,4,8,10,11,12) and D = Σ(2,3,6,9,15). Also convert the result into only NAND gates.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | X | X |
+---+---+---+---+
01 | 1 | 0 | 0 | X |
+---+---+---+---+
11 | 1 | 0 | X | 0 |
+---+---+---+---+
10 | 1 | X | 1 | 1 |
+---+---+---+---+
Groups (don't-cares 2, 3, 9 complete the octet; 6 and 15 are not used):
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(0,4,8,12) →
Check: the octet covers 0, 1, 8, 10, 11 and the quad covers 0, 4, 8, 12.
Conversion to NAND gates only
So = NAND(, NAND(, )). The complements and come from NAND gates with tied inputs. The single literal enters the output NAND as plain .
C ──[NAND]── C' (inputs tied)
D ──[NAND]── D' (inputs tied)
C', D' ──[NAND]── P1 ─┐
├──[NAND]── F
B ────────── ─┘
Total: 4 two-input NAND gates (two as inverters).
- 2075 Asoj · 4+2 marks
Simplify the function using K-map F = Σ(0,1,4,8,10,11,12) and D = Σ(2,3,6,9,15). Also realize the simplified circuit using NOR Gates.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | X | X |
+---+---+---+---+
01 | 1 | 0 | 0 | X |
+---+---+---+---+
11 | 1 | 0 | X | 0 |
+---+---+---+---+
10 | 1 | X | 1 | 1 |
+---+---+---+---+
Groups (don't-cares 2, 3, 9 complete the octet; 6 and 15 are not used):
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(0,4,8,12) →
Check: the octet covers 0, 1, 8, 10, 11 and the quad covers 0, 4, 8, 12.
Realization using NOR gates
Write the product term as a NOR: . Then
So: NOR(, ); = NOR(, ); = NOR(, ).
B ──[NOR]── B' (inputs tied)
C ──┐
[NOR]── P ──┐
D ──┘ [NOR]── F' ──[NOR]── F
B' ─────────────┘ (inputs tied)
Total: 4 two-input NOR gates.
(Alternatively, the POS form gives a NOR-NOR circuit, but it needs 6 NOR gates including inverters.)
- 2074 Chaitra · 4+2 marks
Minimize the expression and implement the reduced expression by using NAND gates. F = A'BC'D' + A'BC'D + A'BCD + A'BCD' + AB'C'D' + AB'C'D + AB'CD' + ABC'D' + ABCD'
Answer
Minterm numbers
Write each term as a binary number ABCD:
| Term | ABCD | Minterm |
|---|---|---|
| 0100 | 4 | |
| 0101 | 5 | |
| 0111 | 7 | |
| 0110 | 6 | |
| 1000 | 8 | |
| 1001 | 9 | |
| 1010 | 10 | |
| 1100 | 12 | |
| 1110 | 14 |
K-map minimization
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 0 | 0 | 0 |
+---+---+---+---+
01 | 1 | 1 | 1 | 1 |
+---+---+---+---+
11 | 1 | 0 | 0 | 1 |
+---+---+---+---+
10 | 1 | 1 | 0 | 1 |
+---+---+---+---+
- Quad m(4,5,6,7) →
- Quad m(8,10,12,14) →
- Pair m(8,9) →
Check: row 01 is covered by ; 8, 10, 12, 14 by ; 9 (with 8) by . The 9-term, 36-literal expression reduces to 3 terms and 7 literals.
NAND implementation
An SOP expression maps directly to a two-level NAND-NAND circuit:
A ──[NAND]── A' (inputs tied)
B ──[NAND]── B' (inputs tied)
C ──[NAND]── C' (inputs tied)
D ──[NAND]── D' (inputs tied)
A', B ──[NAND]── P1 ─┐
A, D' ──[NAND]── P2 ─┤──[NAND]── F
A, B', C' ──[NAND]── P3 ─┘
Gates: 4 NAND inverters (for ), three first-level NANDs (two 2-input, one 3-input) and one 3-input output NAND.
- 2074 Chaitra · 3 marks
What do you mean by Max term? Explain with example.
Answer
A maxterm is a sum (OR) term that contains all the variables of the function exactly once, each either in true or complemented form. A maxterm is 0 for exactly one input combination and 1 for all others.
How to write a maxterm: for the input combination that should give 0, write a variable as it is if its value is 0, and complemented if its value is 1. Maxterm is the one that is 0 at decimal input .
For three variables A, B, C:
| A B C | Maxterm | Symbol |
|---|---|---|
| 0 0 0 | ||
| 0 0 1 | ||
| 0 1 0 | ||
| 0 1 1 | ||
| 1 0 0 | ||
| 1 0 1 | ||
| 1 1 0 | ||
| 1 1 1 |
Each maxterm is the complement of the minterm with the same number: .
Example: let F be 0 only for inputs 000, 010 and 101. The function is the AND (product) of the maxterms for these rows (the canonical POS form):
Check: for input 010, the second factor , so F = 0. For any other input not in the list, all three factors are 1, so F = 1.
- 2074 Asoj · 6 marks
Simplify the function using K-map F = Σ(0,1,4,8,10,11,12) and D = Σ(2,3,6,9,15). Also realize the simplified logic circuit.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | X | X |
+---+---+---+---+
01 | 1 | 0 | 0 | X |
+---+---+---+---+
11 | 1 | 0 | X | 0 |
+---+---+---+---+
10 | 1 | X | 1 | 1 |
+---+---+---+---+
Groups (don't-cares 2, 3, 9 complete the octet; 6 and 15 are not used):
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(0,4,8,12) →
Check: the octet covers 0, 1, 8, 10, 11 and the quad covers 0, 4, 8, 12.
Logic circuit
needs one OR gate, one AND gate and inverters for B, C, D:
B ──[NOT]── B' ─────────────┐
[OR]── F
C ──[NOT]── C' ──┐ │
[AND]─ C'D'┘
D ──[NOT]── D' ──┘
Since , the AND gate with two inverters can be replaced by a single NOR gate:
B ──[NOT]── B' ─────────┐
[OR]── F
C ──┐ │
[NOR]── C'D' ───────┘
D ──┘
The simplified circuit uses only 3 gates (NOT, NOR, OR), compared with 7 four-input AND terms for the unsimplified expression.
| A B C D (example) | B' | C'D' | F |
|---|---|---|---|
| 0 1 0 0 (m4) | 0 | 1 | 1 |
| 0 1 0 1 (m5) | 0 | 0 | 0 |
| 1 0 1 1 (m11) | 1 | 0 | 1 |
- 2073 Shrawan · 6 marks
Simplify Σ(1,2,3,8,10,13) + d(0,4,5,6,7,9,12) by using K-Map and write its standard SOP expression.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 1 | 1 | 1 |
+---+---+---+---+
01 | X | X | X | X |
+---+---+---+---+
11 | X | 1 | 0 | 0 |
+---+---+---+---+
10 | 1 | X | 0 | 1 |
+---+---+---+---+
The many don't-cares allow three large groups (two octets and one quad):
- Octet m(0,1,2,3,4,5,6,7) →
- Octet m(0,1,4,5,8,9,12,13) →
- Quad m(0,2,8,10) →
Check: 1, 2, 3 by ; 8, 13 (and 1) by ; 10 (and 2, 8) by . All six minterms are covered; don't-cares 0, 4, 5, 6, 7, 9, 12 are taken as 1, so the 0s are only 11, 14, 15.
Standard SOP expression
The standard (canonical) SOP lists every minterm where the simplified F is 1. Expanding:
- → to
- →
- →
Without the don't-cares, the required minterms alone are .
- 2072 Chaitra · 4+3 marks
Simplify Σ(1,2,3,8,9,10,11,13,14) + d(0,4,7,12) by using K-Map and write its standard product of sum (POS) expression.
Answer
Given . The 0-cells are 5, 6, 15.
K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 1 | 1 | 1 |
+---+---+---+---+
01 | X | 0 | X | 0 |
+---+---+---+---+
11 | X | 1 | 0 | 1 |
+---+---+---+---+
10 | 1 | 1 | 1 | 1 |
+---+---+---+---+
Simplified SOP (grouping 1s)
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(8,9,12,13) →
- Quad m(8,10,12,14) →
Simplified POS (grouping 0s)
Treat don't-cares 4 and 7 as 0 so the 0s form large groups:
- Quad of 0s M(4,5,6,7) →
- Pair of 0s M(7,15) →
Check: cell 5 (A=0, B=1) makes ; cell 15 (B=C=D=1) makes the second factor 0. All 1-cells give both factors = 1.
Standard POS expression
The standard (canonical) POS is the product of the maxterms where F = 0. For the simplified POS, the 0s are cells 4, 5, 6, 7 (from ) and 7, 15 (from ):
In terms of the given data only, ; the simplification chose don't-cares 4 and 7 as 0.
- 2070 Chaitra · 3 marks
Convert the following term into standard min term. A+B'C.
Answer
A standard (canonical) minterm form has all variables in every term. Here the variables are A, B, C.
Step 1: expand each term with the missing variables using .
Term (B and C missing):
Term (A missing):
Step 2: add and remove the repeated term ( appears twice; ):
Step 3: write the minterm numbers
| Term | ABC | Minterm |
|---|---|---|
| 001 | ||
| 100 | ||
| 101 | ||
| 110 | ||
| 111 |
Check: F = 1 whenever A = 1 (rows 4 to 7) or when B = 0, C = 1 (rows 1 and 5), which gives the same set.
- 2070 Chaitra · 5 marks
Use K-map method to implement the following function and also draw the reduced circuit using NOR gate. F(A,B,C,D) = Σm(0,2,4,6,8,10,15) and d = Σm(3,11,14)
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 0 | X | 1 |
+---+---+---+---+
01 | 1 | 0 | 0 | 1 |
+---+---+---+---+
11 | 0 | 0 | 1 | X |
+---+---+---+---+
10 | 1 | 0 | X | 1 |
+---+---+---+---+
- Quad m(0,2,4,6) →
- Quad m(0,2,8,10) →
- Quad m(10,11,14,15) →
Check: 0, 2, 4, 6 by ; 8, 10 by ; 15 by (using don't-cares 11 and 14). Don't-care 3 is not needed.
Reduced circuit using NOR gates
For NOR-only realization of an SOP expression, write each product term as a NOR of complemented literals (De Morgan: ), feed these to a NOR gate (which gives ), and invert with one more NOR whose inputs are tied.
A ──[NOR]── A' (inputs tied)
C ──[NOR]── C' (inputs tied)
A, D ──[NOR]── P1 ─┐
B, D ──[NOR]── P2 ─┤──[NOR]── F'
A', C' ──[NOR]── P3 ─┘
F' ──[NOR]── F (inputs tied)
Gates: 2 NOR inverters, 3 two-input NORs, one 3-input NOR and one NOR inverter: 7 NOR gates.
- 2069 Chaitra · 4+4 marks
Simplify F(A,B,C,D) = Π(0,2,5,8,10) + d(7,15). Write its standard SOP and implement the simplified circuit using NOR gates only.
Answer
Given . The listed maxterms are the 0s; the other cells (except don't-cares 7, 15) are 1s.
Standard SOP
The standard (canonical) SOP is the sum of the minterms not in the maxterm list:
K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 1 | 1 | 0 |
+---+---+---+---+
01 | 1 | 0 | X | 1 |
+---+---+---+---+
11 | 1 | 1 | X | 1 |
+---+---+---+---+
10 | 0 | 1 | 1 | 0 |
+---+---+---+---+
Grouping 1s (minimal SOP):
- Quad m(1,3,9,11) →
- Quad m(4,6,12,14) →
- Quad m(9,11,13,15) →
(The last term may also be taken as , quad 12, 13, 14, 15; both are minimal.)
Grouping 0s (minimal POS):
- Quad of 0s M(0,2,8,10) →
- Pair of 0s M(5,7) →
Implementation using NOR gates only
The POS form has fewer terms, and POS maps directly to a two-level NOR-NOR circuit:
B ──[NOR]── B' (inputs tied)
D ──[NOR]── D' (inputs tied)
B, D ──[NOR]── P1 ─┐
├──[NOR]── F
A, B', D' ──[NOR]── P2 ─┘
Gates: 2 NOR inverters, one 2-input NOR, one 3-input NOR and one 2-input output NOR: 5 NOR gates.
Check with (m5): , , so F = 0, correct.
- 2068 Chaitra · 3+5 marks
Simplify the function using K-map F = Σ(0,1,4,8,10,11,12) and D = Σ(2,3,6,9,15). Also convert the result into standard minterm.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | X | X |
+---+---+---+---+
01 | 1 | 0 | 0 | X |
+---+---+---+---+
11 | 1 | 0 | X | 0 |
+---+---+---+---+
10 | 1 | X | 1 | 1 |
+---+---+---+---+
Groups (don't-cares 2, 3, 9 complete the octet; 6 and 15 are not used):
- Octet m(0,1,2,3,8,9,10,11) →
- Quad m(0,4,8,12) →
Check: the octet covers 0, 1, 8, 10, 11 and the quad covers 0, 4, 8, 12.
Conversion of the result into standard minterm form
A standard (canonical) minterm form has every variable in every term. Multiply each term by for each missing variable X.
Term (A, C, D missing):
Term (A, B missing):
Combine and drop repeated terms ( and appear twice; ):
This contains all 7 original minterms plus the don't-cares 2, 3, 9 that the simplification set to 1 (don't-cares 6 and 15 were taken as 0).
- 2068 Baisakh · 4+2 marks
Simplify Π(0,4,5,8,9,11,15) using K-Map and write its standard SOP expression.
Answer
Given . These cells are 0; the remaining cells are 1:
K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 1 | 1 | 1 |
+---+---+---+---+
01 | 0 | 0 | 1 | 1 |
+---+---+---+---+
11 | 1 | 1 | 0 | 1 |
+---+---+---+---+
10 | 0 | 0 | 0 | 1 |
+---+---+---+---+
Grouping the 1s:
- Quad m(2,3,6,7) →
- Quad m(2,6,10,14) →
- Pair m(12,13) →
- Pair m(1,3) →
Check: 2, 3, 6, 7 by ; 10, 14 (with 2, 6) by ; 12, 13 by ; 1 (with 3) by .
(Grouping the 0s gives the POS form , which has more literals, so the SOP form is the simplified answer.)
Standard SOP expression
The standard (canonical) SOP has one 4-literal minterm for each 1-cell:
- 2082 Shrawan · 2+4+2 marks
What are the minterms and the maxterms? Simplify the following logic function using K-map and implement the result using NAND gates only. Y(A,B,C,D) = Σm(0,1,2,4,5,9,12,15) + d(7,10,13)
Answer
Minterms and maxterms
A minterm is a product (AND) term that contains every variable of the function exactly once, in true or complemented form. It equals 1 for exactly one input combination. A variable is written true if its value is 1 and complemented if it is 0; e.g. for ABC = 101 the minterm is . A function in canonical SOP is a sum of minterms: .
A maxterm is a sum (OR) term that contains every variable exactly once, in true or complemented form. It equals 0 for exactly one input combination. A variable is written true if its value is 0 and complemented if it is 1; e.g. for ABC = 101 the maxterm is . A function in canonical POS is a product of maxterms: .
, and a function's minterm list and maxterm list are complementary (together they hold all numbers).
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | 0 | 1 |
+---+---+---+---+
01 | 1 | 1 | X | 0 |
+---+---+---+---+
11 | 1 | X | 1 | 0 |
+---+---+---+---+
10 | 0 | 1 | 0 | X |
+---+---+---+---+
- Pair m(0,2) →
- Quad m(4,5,12,13) →
- Quad m(1,5,9,13) →
- Quad m(5,7,13,15) →
Check: 0, 2 by ; 4, 5, 12 by ; 1, 9 by ; 15 by (with don't-cares 7, 13). Don't-care 10 is not used.
NAND-only implementation
An SOP expression maps directly to a two-level NAND-NAND circuit (De Morgan: ). Each product term becomes a first-level NAND and the output NAND replaces the OR gate. Complemented inputs are made with NAND gates whose inputs are tied.
A ──[NAND]── A' (inputs tied)
B ──[NAND]── B' (inputs tied)
C ──[NAND]── C' (inputs tied)
D ──[NAND]── D' (inputs tied)
A', B', D' ──[NAND]── P1 ─┐
B, C' ──[NAND]── P2 ─┤
├──[NAND]── Y
C', D ──[NAND]── P3 ─┤
B, D ──[NAND]── P4 ─┘
Gates: 4 NAND inverters, 4 first-level NANDs and one 4-input output NAND.
- 2082 Baisakh · 2+6 marks
Define the minterm and maxterm. Simplify the boolean function F = Σm(2,4,5,13,14) + dΣm(0,1,8,10) and draw its logic diagram of the simplified boolean function using universal gates only.
Answer
Minterm and maxterm
A minterm is a product (AND) term that contains every variable of the function exactly once, in true or complemented form. It equals 1 for exactly one input combination. A variable is written true if its value is 1 and complemented if it is 0; e.g. for ABC = 101 the minterm is . A function in canonical SOP is a sum of minterms: .
A maxterm is a sum (OR) term that contains every variable exactly once, in true or complemented form. It equals 0 for exactly one input combination. A variable is written true if its value is 0 and complemented if it is 1; e.g. for ABC = 101 the maxterm is . A function in canonical POS is a product of maxterms: .
, and a function's minterm list and maxterm list are complementary (together they hold all numbers).
Simplification by K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | X | 0 | 1 |
+---+---+---+---+
01 | 1 | 1 | 0 | 0 |
+---+---+---+---+
11 | 0 | 1 | 0 | 1 |
+---+---+---+---+
10 | X | 0 | 0 | X |
+---+---+---+---+
- Quad m(0,1,4,5) →
- Quad m(0,2,8,10) →
- Pair m(5,13) →
- Pair m(10,14) →
Check: 4, 5 by (with 0, 1); 2 by (with 0, 8, 10); 13 by ; 14 by (with 10). This is a minimal cover (4 terms, 10 literals); the minimal POS also needs 4 terms and 10 literals, so the SOP form is used.
Logic diagram using universal gates (NAND only)
An SOP expression maps directly to a two-level NAND-NAND circuit (De Morgan: ). Each product term becomes a first-level NAND and the output NAND replaces the OR gate. Complemented inputs are made with NAND gates whose inputs are tied.
A ──[NAND]── A' (inputs tied)
B ──[NAND]── B' (inputs tied)
C ──[NAND]── C' (inputs tied)
D ──[NAND]── D' (inputs tied)
A', C' ──[NAND]── P1 ─┐
B', D' ──[NAND]── P2 ─┤
├──[NAND]── F
B, C', D ──[NAND]── P3 ─┤
A, C, D' ──[NAND]── P4 ─┘
Gates: 4 NAND inverters, two 2-input NANDs, two 3-input NANDs and one 4-input output NAND (9 NAND gates).
- 2081 Bhadra · 2+4 marks
Define minterms and maxterms. Simplify the following using k-map. F(A,B,C,D) = Σm(0,1,2,4,6,8,9,12,13,14)
Answer
Minterms and maxterms
A minterm is a product (AND) term that contains every variable of the function exactly once, in true or complemented form. It equals 1 for exactly one input combination. A variable is written true if its value is 1 and complemented if it is 0; e.g. for ABC = 101 the minterm is . A function in canonical SOP is a sum of minterms: .
A maxterm is a sum (OR) term that contains every variable exactly once, in true or complemented form. It equals 0 for exactly one input combination. A variable is written true if its value is 0 and complemented if it is 1; e.g. for ABC = 101 the maxterm is . A function in canonical POS is a product of maxterms: .
, and a function's minterm list and maxterm list are complementary (together they hold all numbers).
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | 0 | 1 |
+---+---+---+---+
01 | 1 | 0 | 0 | 1 |
+---+---+---+---+
11 | 1 | 1 | 0 | 1 |
+---+---+---+---+
10 | 1 | 1 | 0 | 0 |
+---+---+---+---+
Grouping the 1s (SOP):
- Quad m(0,2,4,6) →
- Quad m(4,6,12,14) →
- Quad m(8,9,12,13) →
- Quad m(0,1,8,9) →
Check: 0, 2, 4, 6 by ; 12, 14 by ; 8, 9, 12, 13 by ; 0, 1, 8, 9 by . All 10 minterms are covered by four quads.
Grouping the 0s (POS): the 0s are at 3, 5, 7, 10, 11, 15.
- Pair of 0s M(5,7) →
- Pair of 0s M(10,11) →
- Quad of 0s M(3,7,11,15) →
Both forms use 8 literals; either is an acceptable simplified answer.
- 2081 Baisakh · 2+4 marks
Define min-terms and max-terms. Simplify the function using K-map, F = Σ(1,3,5,8,10,11,12) and D = Σ(2,9,15) and also realize the simplified logic circuit.
Answer
Min-terms and max-terms
A minterm is a product (AND) term that contains every variable of the function exactly once, in true or complemented form. It equals 1 for exactly one input combination. A variable is written true if its value is 1 and complemented if it is 0; e.g. for ABC = 101 the minterm is . A function in canonical SOP is a sum of minterms: .
A maxterm is a sum (OR) term that contains every variable exactly once, in true or complemented form. It equals 0 for exactly one input combination. A variable is written true if its value is 0 and complemented if it is 1; e.g. for ABC = 101 the maxterm is . A function in canonical POS is a product of maxterms: .
, and a function's minterm list and maxterm list are complementary (together they hold all numbers).
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 1 | 1 | X |
+---+---+---+---+
01 | 0 | 1 | 0 | 0 |
+---+---+---+---+
11 | 1 | 0 | X | 0 |
+---+---+---+---+
10 | 1 | X | 1 | 1 |
+---+---+---+---+
- Pair m(1,5) →
- Pair m(8,12) →
- Quad m(2,3,10,11) →
Check: 3, 10, 11 by (with don't-care 2); 1, 5 by ; 8, 12 by . Don't-cares 9 and 15 are not needed.
Logic circuit (AND-OR)
B' ─┐
C ─┴─[AND]── B'C ────┐
A' ─┐ │
C' ─┼─[AND]── A'C'D ──┼─[OR]── F
D ─┘ │
A ─┐ │
C' ─┼─[AND]── AC'D' ──┘
D' ─┘
Complements come from NOT gates. The circuit needs one 2-input AND, two 3-input ANDs and one 3-input OR (plus inverters).
- 2080 Bhadra · 4+2 marks
Simplify the function using K-map F = Σ(1,3,7,11,15) and D = Σ(0,2,5,8,14). Also realize the simplified circuit using NAND Gates.
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | X | 1 | 1 | X |
+---+---+---+---+
01 | 0 | X | 1 | 0 |
+---+---+---+---+
11 | 0 | 0 | 1 | X |
+---+---+---+---+
10 | X | 0 | 1 | 0 |
+---+---+---+---+
- Quad m(3,7,11,15) →
- Quad m(1,3,5,7) →
Check: 3, 7, 11, 15 by ; 1 (with 3, 5, 7) by . Don't-care 5 helps form the quad. ( in place of is an equally small alternative.)
Realization using NAND gates
A ──[NAND]── A' (inputs tied)
C, D ──[NAND]── P1 ─┐
├──[NAND]── F
A', D ──[NAND]── P2 ─┘
Gates: one NAND inverter for , two 2-input NANDs and one 2-input output NAND: 4 NAND gates.
- 2080 Baisakh · 4+2 marks
Simplify the following expression using K-map. Express it in SOP format and realize it using NAND gate only. Y = F(M,N,O,P) = Σm(0,1,2,8,12,14,15) + d(5,10,11)
Answer
Given , with M as the MSB.
K-map simplification
OP
MN 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | 0 | 1 |
+---+---+---+---+
01 | 0 | X | 0 | 0 |
+---+---+---+---+
11 | 1 | 0 | 1 | 1 |
+---+---+---+---+
10 | 1 | 0 | X | X |
+---+---+---+---+
- Quad m(10,11,14,15) →
- Quad m(8,10,12,14) →
- Quad m(0,2,8,10) →
- Pair m(0,1) →
SOP form
Check: 14, 15 by (with 10, 11); 8, 12, 14 by ; 0, 2, 8 by (with 10); 1 by . (, cells 1 and 5, is an equally good choice for the last term.)
Realization using NAND gates only
An SOP expression maps directly to a two-level NAND-NAND circuit (De Morgan: ). Each product term becomes a first-level NAND and the output NAND replaces the OR gate. Complemented inputs are made with NAND gates whose inputs are tied.
M ──[NAND]── M' (inputs tied)
N ──[NAND]── N' (inputs tied)
O ──[NAND]── O' (inputs tied)
P ──[NAND]── P' (inputs tied)
M, O ──[NAND]── G1 ─┐
M, P' ──[NAND]── G2 ─┤
├──[NAND]── Y
N', P' ──[NAND]── G3 ─┤
M', N', O' ──[NAND]── G4 ─┘
Gates: 4 NAND inverters, 4 first-level NANDs and one 4-input output NAND.
- 2078 Bhadra · 2+2 marks
Define SOP and POS form and convert F = A + BC + ABC into its canonical form.
Answer
SOP and POS forms
- Sum of Products (SOP): a logical sum (OR) of product (AND) terms, e.g. . It is built as an AND-OR (or NAND-NAND) circuit. If every term has all the variables, it is the canonical SOP (sum of minterms).
- Product of Sums (POS): a logical product (AND) of sum (OR) terms, e.g. . It is built as an OR-AND (or NOR-NOR) circuit. If every term has all the variables, it is the canonical POS (product of maxterms).
Canonical form of
Expand each term to contain A, B and C:
Add them and keep each term once ():
| Term | ABC | Minterm |
|---|---|---|
| 011 | ||
| 100 | ||
| 101 | ||
| 110 | ||
| 111 |
Canonical SOP:
Canonical POS: the missing numbers 0, 1, 2 are the maxterms:
(The given function itself simplifies to , since is absorbed by .)
- 2078 Bhadra · 4+3 marks
Simplify Σm(0,1,2,8,10,14,15) d = (3,7,11,13) using k-map, write its standard product of sum expression and realize it using NOR gates only.
Answer
Given . The 0-cells are 4, 5, 6, 9, 12.
K-map (grouping the 0s for POS)
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | X | 1 |
+---+---+---+---+
01 | 0 | 0 | X | 0 |
+---+---+---+---+
11 | 0 | X | 1 | 1 |
+---+---+---+---+
10 | 1 | 0 | X | 1 |
+---+---+---+---+
- Quad of 0s M(4,5,6,7) →
- Quad of 0s M(4,5,12,13) →
- Pair of 0s M(9,11) →
Check: 4, 5, 6 by ; 12 by ; 9 by . (, cells 9 and 13, is an equally good third term.)
Standard product of sums
The given 0s are with don't-cares . The simplified POS also makes don't-cares 7, 11, 13 equal to 0, so its standard (canonical) POS is:
Realization using NOR gates only
A POS expression maps directly to a two-level NOR-NOR circuit:
A ──[NOR]── A' (inputs tied)
B ──[NOR]── B' (inputs tied)
D ──[NOR]── D' (inputs tied)
A, B' ──[NOR]── P1 ─┐
B', C ──[NOR]── P2 ─┤──[NOR]── F
A', B, D' ──[NOR]── P3 ─┘
Gates: 3 NOR inverters (), two 2-input NORs, one 3-input NOR and one 3-input output NOR: 7 NOR gates.
- 2078 Kartik · 3+2 marks
Given function F = A(B'+C)+BD, change into its canonical form. Define max term and min term.
Answer
Canonical form of
Step 1: write F in SOP form
Step 2: expand each term to include all four variables A, B, C, D
Step 3: combine, keeping each minterm once
Canonical SOP:
Canonical POS (the remaining numbers):
Minterm and maxterm
- Minterm: a product term containing all variables once (true or complemented); it is 1 for exactly one input combination. Example: is 1 only for ABCD = 0101.
- Maxterm: a sum term containing all variables once (true or complemented); it is 0 for exactly one input combination. Example: is 0 only for ABCD = 0000.
- ; canonical SOP is a sum of minterms and canonical POS is a product of maxterms.
- 2078 Kartik · 4+2 marks
Simplify the given function using K-map F = Π(0,1,4,7,8,10,11,12) and D = (2,3,6,9,15) and implement the final expression using NAND gate only.
Answer
Given with don't-cares . The maxterms are the 0-cells, so the 1-cells are 5, 13, 14.
K-map
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 0 | X | X |
+---+---+---+---+
01 | 0 | 1 | 0 | X |
+---+---+---+---+
11 | 0 | 1 | X | 1 |
+---+---+---+---+
10 | 0 | X | 0 | 0 |
+---+---+---+---+
Grouping the 1s (don't-care 6 is used with 14):
- Pair m(5,13) →
- Pair m(6,14) →
Check: 5 and 13 by ; 14 by . (, cells 14 and 15, can replace the second term with the same cost.)
NAND-only implementation
An SOP expression maps directly to a two-level NAND-NAND circuit (De Morgan: ). Each product term becomes a first-level NAND and the output NAND replaces the OR gate. Complemented inputs are made with NAND gates whose inputs are tied.
C ──[NAND]── C' (inputs tied)
D ──[NAND]── D' (inputs tied)
B, C', D ──[NAND]── P1 ─┐
├──[NAND]── F
B, C, D' ──[NAND]── P2 ─┘
Gates: 2 NAND inverters, two 3-input NANDs and one 2-input output NAND: 5 NAND gates.
- 2076 Chaitra · 2+4+2 marks
Define minterms and maxterms. Simplify the following using k-map and implement the result using NOR gates only. F(A,B,C,D) = Σm(0,1,2,5,8,14) + d(4,10,13)
Answer
Minterms and maxterms
A minterm is a product (AND) term that contains every variable of the function exactly once, in true or complemented form. It equals 1 for exactly one input combination. A variable is written true if its value is 1 and complemented if it is 0; e.g. for ABC = 101 the minterm is . A function in canonical SOP is a sum of minterms: .
A maxterm is a sum (OR) term that contains every variable exactly once, in true or complemented form. It equals 0 for exactly one input combination. A variable is written true if its value is 0 and complemented if it is 1; e.g. for ABC = 101 the maxterm is . A function in canonical POS is a product of maxterms: .
, and a function's minterm list and maxterm list are complementary (together they hold all numbers).
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 1 | 0 | 1 |
+---+---+---+---+
01 | X | 1 | 0 | 0 |
+---+---+---+---+
11 | 0 | X | 0 | 1 |
+---+---+---+---+
10 | 1 | 0 | 0 | X |
+---+---+---+---+
- Quad m(0,1,4,5) →
- Quad m(0,2,8,10) →
- Pair m(10,14) →
Check: 0, 1, 5 by (with 4); 2, 8 by (with 10); 14 by (with 10). Don't-care 13 is not used. (The minimal POS needs 4 terms, so the SOP is simpler.)
NOR-only implementation
For NOR-only realization of an SOP expression, write each product term as a NOR of complemented literals (), feed these to a NOR gate (which gives ), and invert with one more NOR whose inputs are tied.
A ──[NOR]── A' (inputs tied)
C ──[NOR]── C' (inputs tied)
A, C ──[NOR]── P1 ─┐
B, D ──[NOR]── P2 ─┤──[NOR]── F'
A', C', D ──[NOR]── P3 ─┘
F' ──[NOR]── F (inputs tied)
Gates: 2 NOR inverters, two 2-input NORs, one 3-input NOR, a 3-input NOR giving and a NOR inverter: 7 NOR gates.
- 2076 Chaitra · 1+4 marks
What is hazard? Explain types of hazards with hazard cover techniques used in K-map simplification.
Answer
A hazard is an unwanted momentary pulse (glitch) at the output of a combinational circuit, caused by unequal propagation delays along different paths when an input changes. The steady-state output is correct, but the transient is wrong; in sequential systems such glitches can trigger flip-flops falsely.
Types of hazards
| Type | Expected output | Actual output | Usually found in |
|---|---|---|---|
| Static-1 | stays 1 | SOP (AND-OR) circuits | |
| Static-0 | stays 0 | POS (OR-AND) circuits | |
| Dynamic | one change, | multi-level circuits |
- Static hazard: the output should not change, but it briefly changes and returns.
- Dynamic hazard: the output should change once but changes several times, because the changing input reaches the output by three or more paths of different delay.
Hazard cover in K-maps (example)
BC
A 00 01 11 10
+---+---+---+---+
0 | 0 | 1 | 1 | 0 | A'C = cells 1, 3
+---+---+---+---+
1 | 0 | 0 | 1 | 1 | AB = cells 7, 6
+---+---+---+---+
Cells 3 (011) and 7 (111) are adjacent 1s but lie in different groups. With , F should stay 1 while A changes. When A goes , the term falls at once but rises only after the inverter delay, so F momentarily becomes 0: a static-1 hazard.
Hazard cover technique: add a redundant group that covers every pair of adjacent 1s not already in a common group. Here the extra group is cells 3 and 7, i.e. the consensus term :
While A changes with , keeps F at 1, so the glitch disappears. The function is unchanged (consensus theorem: ), only the circuit gains one gate.
Rules
- For SOP circuits: every two adjacent 1-cells must be covered by at least one common prime implicant (removes static-1 hazards).
- For POS circuits: every two adjacent 0-cells must be covered by a common sum term (removes static-0 hazards).
- A two-level circuit built with full hazard cover is also free of dynamic hazards; dynamic hazards are avoided by not using multi-level paths for the same variable.
- 2076 Asoj
Simplify F(A,B,C,D) = Σ(2,3,6,7,9,10,11) and d = Σ(5,8,12) using K-map. Result in SOP and POS form.
Answer
Given .
CD
AB 00 01 11 10
+---+---+---+---+
00 | 0 | 0 | 1 | 1 |
+---+---+---+---+
01 | 0 | X | 1 | 1 |
+---+---+---+---+
11 | X | 0 | 0 | 0 |
+---+---+---+---+
10 | X | 1 | 1 | 1 |
+---+---+---+---+
SOP form (grouping the 1s)
- Quad m(2,3,6,7) →
- Quad m(8,9,10,11) →
Don't-care 8 completes the quad; 5 and 12 are taken as 0.
POS form (grouping the 0s)
The 0-cells are 0, 1, 4, 13, 14, 15. Don't-cares 5, 8, 12 are used as 0 here:
- Quad of 0s M(0,1,4,5) →
- Quad of 0s M(12,13,14,15) →
Check
Expanding the POS:
( is the consensus of and , so it drops out.) Both forms describe the same function. Note that the SOP sets don't-care 8 to 1 while the POS sets it to 0; each form may use the don't-cares differently.
Each form needs only two 2-input gates plus one 2-input output gate (and inverters).
- 2075 Chaitra · 4+2 marks
Simplify the following expressions using K-map and also draw the logical circuit. Y(A,B,C,D) = Σ(0,2,3,4,7,8,10,13) and d = Σ(5,6,12)
Answer
Given .
K-map simplification
CD
AB 00 01 11 10
+---+---+---+---+
00 | 1 | 0 | 1 | 1 |
+---+---+---+---+
01 | 1 | X | 1 | X |
+---+---+---+---+
11 | X | 1 | 0 | 0 |
+---+---+---+---+
10 | 1 | 0 | 0 | 1 |
+---+---+---+---+
- Quad m(2,3,6,7) →
- Quad m(0,2,8,10) →
- Quad m(4,5,12,13) →
Check: 2, 3, 7 by (with 6); 0, 2, 8, 10 by ; 4, 13 by (with 5, 12). All 8 minterms are covered with three quads.
Logic circuit
A ─[NOT]─ A' ─┐
C ────────────┴─[AND]── A'C ──┐
B ─[NOT]─ B' ─┐ │
D ─[NOT]─ D' ─┴─[AND]── B'D' ─┼─[OR]── Y
B ────────────┐ │
C ─[NOT]─ C' ─┴─[AND]── BC' ──┘
Gates: 4 NOT gates, three 2-input AND gates and one 3-input OR gate. (As , that AND with two inverters can be replaced by one NOR gate.)
Questions from Old Question Collection (EX 502) (IOE EX 502 exam papers (BEL/BEX/BCT II/I) from 2068 to 2081) and Old Question Collection (BEI, EX 401) (IOE EX 401 exam papers (BEI I/I) from 2075 to 2082). Answers are written for this site; check them against your class notes.
Chapter titles and hours from the IOE syllabus ↗