BEC302 · DIGITAL SYSTEM DESIGN · Unit 1
Logic simplification and combinational logic design
Unit Scope & Exam Weightage: This unit is the toolkit of digital design: number systems and code conversion, signed arithmetic, Boolean algebra and De Morgan's theorem, canonical SOP/POS forms, Karnaugh maps up to five variables, the Quine–McCluskey tabulation method, and hazards. In AKTU papers it is worth 14–21 marks — practically every paper carries one K-map or QM minimisation (7 marks), one base/conversion numerical (2 or 7 marks), and a theorem/universal-gate question.
Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | Karnaugh maps up to 5 variables | 5 (2023-24 ×2, 2024-25, 2025-26 ×2) |
7m × 4 + 2m | Survival Mode Numerical |
| 2 | Number Systems (base conversion, unknown base) | 4 (2023-24, 2024-25 ×2, 2025-26) |
7m × 2 + 2m × 2 | High-Yield Numerical |
| 3 | review of Boolean algebra and Demorgans theorem (De Morgan, universal gates, hazards) | 5 (2023-24 ×2, 2024-25 ×2, 2025-26) |
7m × 5 | Survival Mode Proof |
| 4 | tabulation method | 1 (2025-26) |
7m | Algorithm |
| 5 | Binary codes / code conversion | 1 (2025-26) |
2m | Quick Definition |
| 6 | signed magnitude representation | 1 (2023-24) |
2m | Core Concept |
| 7 | Binary arithmetic | 1 (2023-24) |
2m | Core Concept |
| 8 | SOP & POS forms / Canonical forms | Integrated in #1, #3 | — | Supporting Topic |
2-Hour Last-Night Survival Checklist:
- K-map groups: group only powers of two (1,2,4,8,16), wrap edges and corners, use don't-cares () only to enlarge groups, and write the product term from bits that do not change inside the group.
- 5-variable map: draw two 4×4 planes ( and ); cells directly above/below in the two planes pair up, and matching 4-cell blocks form 8-cell groups.
- Quine–McCluskey: sort minterms by number of 1s, combine terms differing in one bit, repeat until no combination is possible, then mark essential prime implicants with a coverage chart; include don't-cares only if they help.
- Base conversion: convert through decimal for unrelated bases; for fractional decimal→octal multiply repeatedly by 8 and take integer parts. Unknown base questions: equate the value in decimal and solve the polynomial.
- Theorems: , ; XOR needs 4 NANDs (); hazard = temporary wrong output caused by unequal path delays, cured by a consensus term or output strobe.
1. Number Systems, Binary Arithmetic and Codes
Number system (2 Marks): A positional notation with radix (base) , where . Digital circuits use base 2 because two stable voltage levels map directly to 0 and 1.
1.1 Conversion Routes
| From → To | Method |
|---|---|
| Base → decimal | Expand powers of and sum |
| Decimal integer → base | Repeated division by , read remainders upward |
| Decimal fraction → base | Repeated multiplication by , read integer parts downward |
| Binary → octal / hex | Group bits in 3s / 4s from the binary point |
| Hex ↔ octal | Go through binary (or decimal) |
1.2 Signed Magnitude, 1's and 2's Complement
| Representation of in 8 bits | Code | Feature |
|---|---|---|
| Sign-magnitude | 10000101 |
MSB is sign; two representations of zero |
| 1's complement | 11111010 |
Invert all bits; two zeros; end-around carry |
| 2's complement | 11111011 |
Invert + 1; single zero; arithmetic is simplest |
2's-complement subtraction: ; discard the final carry. Overflow in signed addition occurs iff the carry into the sign bit differs from the carry out.
1.3 Binary Codes
- BCD (8421): each decimal digit coded by 4 bits; invalid codes 1010–1111.
- Excess-3: BCD digit + 3 (
0011); self-complementing. - Gray code: successive codes differ in one bit; ; used for shaft encoders to avoid multi-bit race.
- Cyclic code: a code in which every cyclic shift of a valid code word is another valid code word; used in error detection (CRC/polynomial codes).
Examiner Tip (code questions): For "Define cyclic codes" (2025-26, 2 marks), state the cyclic-shift property and one application (CRC); for signed magnitude, explicitly mention the MSB sign bit, the remaining magnitude bits, and the double-zero defect — that triple is what the marker checks.
2. Boolean Algebra, Canonical Forms and Hazards
Boolean algebra (2 Marks): Algebra of the two-valued variable set with operations AND (), OR () and NOT (). It obeys commutative, associative and distributive laws, plus the absorption and complement laws used for simplification.
2.1 De Morgan's Theorem (with Proof by Truth Table)
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 1 | 1 | 0 | 0 | 0 | 0 |
Generalised form: and — "break the bar, change the sign".
2.2 Canonical SOP and POS
| Form | Meaning | Notation |
|---|---|---|
| Minterm () | Product term containing every variable once; equals 1 for one combination | |
| Maxterm () | Sum term containing every variable once; equals 0 for one combination | |
| Canonical SOP | Sum of minterms where | |
| Canonical POS | Product of maxterms where |
Conversion: ; the missing indices of one form give the other.
2.3 Universal Gates and XOR Implementation
NAND and NOR are universal because each alone can realise NOT, AND and OR:
- NOT:
- AND:
- OR: (NAND form)
XOR using 4 NAND gates: let ; ; ; . This is the minimum-NAND XOR requested in the 2024-25 paper.
2.4 Hazards
Hazard (2 Marks): an unwanted temporary change (glitch) at the output of a combinational circuit caused by unequal propagation delays through different paths when an input changes. A static-1 hazard produces a brief 0 in an output that should stay 1; a static-0 hazard is the reverse; a dynamic hazard causes multiple transitions.
Cure: add the consensus/redundant term that bridges adjacent 1-groups in the K-map (e.g. removes the hazard in ), use output strobing (sample after delays settle), or design with synchronous registers.
3. Karnaugh Map Minimisation (up to 5 Variables)
K-map (2 Marks): a grid of cells arranged in Gray-code order so that horizontally/vertically adjacent cells differ in exactly one variable; grouping adjacent 1s eliminates variables from the product term.
3.1 Grouping Rules
- Groups must contain 1, 2, 4, 8, 16… cells.
- Wraparound is allowed (top↔bottom row, left↔right column, four corners).
- Make the fewest, largest groups; every 1 must be covered, overlapping is permitted.
- A don't-care may be used only if it enlarges a group; it need not be covered.
- Read the term from variables that remain constant across the whole group.
3.2 Five-Variable Map
Use two 4×4 planes for and , with variables as rows and as columns. Equivalent cells in the two planes pair vertically; a 4-cell square appearing in both planes gives an 8-cell octet that eliminates as well.
After-Topic PYQs:
- 2023-24 (7 Marks): "Use Karnaugh maps to simplify the Boolean function: ."
- 2025-26 (7 Marks): "Simplify the Boolean function . Also implement the minimized function using basic logic gates."
- 2024-25 (7 Marks): "Minimize the logic function using K-MAP Method "
- 2025-26 (2 Marks): "Simplify the following expression using K-map: "
- 2025-26 (7 Marks): "Minimize the following using Quine-McCluskey Method: ."
- 2023-24 (7 Marks): "State and Prove Demorgan's theorem."
- 2025-26 (7 Marks): "What do you mean by universal logic gates? Implement all other logic gates using universal logic gates."
- 2024-25 (7 Marks): "What do you mean by Hazards? Explain the different method by which hazard can be eliminated."
- 2024-25 (2 Marks): "The solution to the quadratic equation are and . What is the base of the number system?"
- 2025-26 (2 Marks): "Determine the value of base , if "
- 2023-24 / 2025-26 (7 Marks each): conversion problems listed in Solved Q1 and Q2 below.
Solved Exam-Ready Questions
Solved Q1 (2024-25 — 7 Marks | Base Conversions)
Q: Convert the following in their corresponding base: (i) (ii) (iii)
Solution:
- (i) Hex → binary: replace each hex digit by 4 bits: , , .
- (ii) Binary → octal: group in threes from the point, padding with zeros:
100 010 100 . 110 101→ .
- (iii) Base 4 → base 3 via decimal: . Repeated division by 3: , → digits .
Solved Q2 (2023-24 — 7 Marks | Mixed Conversions)
Q: Convert the following: 1. Hexadecimal equivalent of the decimal number 256. 2. Decimal equivalent of . 3. to octal. 4. Convert and into binary.
Solution:
- .
- .
- Integer part: r2; r7; r5 → . Fraction: ; ; ; ; →
- ; .
Solved Q3 (2024-25 / 2025-26 — 2 Marks | Unknown Base)
Q: The solution to the quadratic equation are and . What is the base of the number system? and Determine the value of base , if
Solution:
- First question: the coefficients
11and22are written in base , so the polynomial is . Sum of roots ; check product ✓. Base = 8. - Second question: . So . Discriminant , so (reject ). Base = 16; check ✓.
Solved Q4 (2023-24 — 7 Marks | 4-Variable K-map)
Q: Use Karnaugh maps to simplify the Boolean function: .
Solution:
- Plot 1s at the listed minterms on a Gray-ordered 4×4 map (rows ; columns ).
- Cross-plane four-cell group : while vary → term .
- Four-cell group : → term .
- Four-cell group : → term .
- Four-cell group : → term .
- Pair : → term .
- Verify every minterm is covered: 1→pair; 2,6,10,14→; 4→; 9→pair/; 11→; 12,13→; 15→.
Solved Q5 (2025-26 — 7 Marks | K-map with Don't Cares + Gate Implementation)
Q: Simplify the Boolean function . Also implement the minimized function using basic logic gates.
Solution:
- Plot 1s at 1,3,7,11,15 and don't-cares at 0,2,5.
- Use the don't-care at 5 to form the four-cell group (rows , columns with , both ): → term .
- Form the four-cell group : → term .
- All required minterms are now covered: 1 by ; 3,7 by both; 11,15 by . Don't-cares 0 and 2 are unused.
- Gate implementation: one NOT gate on → AND(); AND(); OR the two products. Alternatively implement with one inverter, one OR and one AND — three gates.
- Verification by algebra: at , but → ✓; at (don't care) , which is allowed.
Solved Q6 (2024-25 — 7 Marks | Five-Variable K-map)
Q: Minimize the logic function using K-MAP Method
Solution:
- Draw two 4×4 planes: plane holds minterms 8–15 ( = 8–15); plane holds 16–31, i.e. local indices 0–15.
- Octet from the two matching four-cell blocks at local indices 8,9,10,11 in both planes (, free) → term .
- Quad in plane at indices 9,11,13,15 (, free) → term .
- Quad in plane at local indices 10,11,14,15 () → term .
- Pair in plane at local indices 0,2 () → term .
- Single at () → term .
- All fifteen 1s are covered; note is covered by and by .
Solved Q7 (2025-26 — 7 Marks | Quine–McCluskey)
Q: Minimize the following using Quine-McCluskey Method: .
Solution:
- List with don't-cares: , grouped by number of 1s:
- 0 ones:
0000(0) - 1 one:
0010(2),0100(4 absent) - 2 ones:
0011(3),0101(5),0110(6),1001(9),1010(10),1100(12) - 3 ones:
0111(7),1101(13) - 4 ones:
1111(15)
- 0 ones:
- First combination: 0–2 →
00-0; 2–3 →001-; 2–6 →0-10; 2–10 →-010; 3–7 →0-11; 5–7 →01-1; 5–13 →-101; 6–7 →011-; 9–13 →1-01; 12–13 →110-; 7–15 →-111; 13–15 →11-1. - Second combination:
0-10with0-11→0-1-(covers 2,3,6,7);-101with-111→-1-1(covers 5,7,13,15). - Prime implicants: (0,2), (2,3,6,7), (2,10), (5,7,13,15), (12,13), (9,13), (13,15).
- Essential prime implicants: minterm 0 is covered only by ; minterm 10 only by ; minterm 12 only by . These three are essential.
- Remaining minterms 3,5,6,7 are covered by plus (minimum two more terms).
Solved Q8 (2023-24 — 7 Marks | De Morgan Proof + Universal Gates)
Q: State and Prove Demorgan's theorem. / What do you mean by universal logic gate? Implement XOR gate using minimum number of NAND gate.
Solution:
- Theorem 1: — "the complement of a sum equals the product of the complements"; proved by the truth table in Section 2.1 (columns 3 and 4 identical).
- Theorem 2: — proved by columns 5 and 6 of the same table.
- Inductive extension to variables follows by treating as one variable.
- Universal gate: a gate type sufficient to realise any Boolean function by itself. NAND and NOR qualify because NOT, AND and OR can all be built from one type.
- XOR in 4 NANDs: ; ; ; .
- Verification: for , , , ✓; for , , , , ✓.
Solved Q9 (2024-25 — 7 Marks | Hazards)
Q: What do you mean by Hazards? Explain the different method by which hazard can be eliminated.
Solution:
- Definition: a glitch — a momentary incorrect output — produced when an input change travels along paths with different propagation delays.
- Static-1 hazard: output should remain 1 but momentarily drops to 0 (e.g. with as changes).
- Static-0 hazard: dual case in POS realisation. Dynamic hazard: output changes more than once before settling.
- K-map cure: add the consensus term covering the two adjacent groups that are not themselves grouped — for the example add , giving (hazard-free).
- Strobing: enable the output only after the worst-case delay has elapsed.
- Design cure: use synchronous circuits with registers, or implement the function in a single level of NAND/NOR logic with matched delays.
Practice Questions (Self-Test)
- (2 Marks) Define cyclic codes.
- (2 Marks) Explain signed magnitude representation with an 8-bit example for .
- (2 Marks) Simplify using a K-map. (Ans: .)
- (7 Marks) Convert to binary, octal and decimal.
- (7 Marks) Minimise with a K-map. (Hint: look for an octet and two quads.)
- (7 Marks) Implement using only NOR gates.