PHY 175 · Modern Physics and Electronics

Digital Number Systems,
Logic Gates & Combinational Circuits

Unit III
Course Code   PHY175
Credits   3 – 0 – 0 – 3
Weightage   ATT 5 · CA 25 · MTT 20 · ETT 50

Course Outcome CO3 & CO4

CO3: Examine number system conversions and K-Map to simplify digital logic expressions.
CO4: Analyze the operation and functionality of combinational logic circuits including adders, subtractors, multiplexers, and demultiplexers.

Table of Contents

INumber Systems3
IINumber System Conversions5
IIIBinary Codes7
IVBinary Arithmetic9
VLogic Gates11
VIBoolean Algebra13
VIIBoolean Laws & Theorems15
VIIIDe Morgan's Theorems17
IXCanonical & Standard Forms (SOP, POS)18
XKarnaugh Maps (2, 3, 4 Variables)20
XIK-Map Simplification & Don't Cares22
XIICombinational Circuits — Adders24
XIIISubtractors & Code Converters26
XIVMultiplexers (MUX)28
XVDemultiplexers (DEMUX)30
XVIEncoders & Decoders32
XVIIDigital Comparators34
Summary & Formula Sheet35
Exam Tips & Practice Questions36
Solutions38
References & CO Mapping40
How to use these notes: Each section contains theory, key formulas, circuit diagrams, worked examples, and exam-focused tips. The summary sheet at the end is designed for quick revision before exams.

I. Number Systems

1.1 What is a Number System?

A number system is a systematic way of representing numbers using a set of symbols (digits) and a base (radix). The base determines how many unique digits are used.

1.2 Types of Number Systems

SystemBaseDigits UsedExample
Binary20, 1\( (1011)_2 \)
Octal80–7\( (57)_8 \)
Decimal100–9\( (247)_{10} \)
Hexadecimal160–9, A–F\( (1A3)_{16} \)

1.3 Positional Notation

In a positional number system, the value of each digit depends on its position. For a number with base \( r \):

\[ N = d_{n-1} r^{n-1} + d_{n-2} r^{n-2} + \cdots + d_1 r^1 + d_0 r^0 + d_{-1} r^{-1} + \cdots \]

1.4 Binary Number System

The binary system uses only two digits: 0 and 1. Each digit is called a bit. It is the foundation of all digital systems.

Power of 2ValueBinary (1 followed by zeros)
\( 2^0 \)11
\( 2^1 \)210
\( 2^2 \)4100
\( 2^3 \)81000
\( 2^4 \)1610000
\( 2^5 \)32100000
\( 2^6 \)641000000
\( 2^7 \)12810000000
\( 2^8 \)256100000000
\( 2^{10} \)10241 K (kilo)
\( 2^{20} \)1,048,5761 M (mega)
Worked Example · Binary to Decimal

Problem: Convert \( (1101)_2 \) to decimal.

Solution:

\[ (1101)_2 = 1 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 1 \times 2^0 \] \[ = 8 + 4 + 0 + 1 = 13 \]

I-b. Octal & Hexadecimal Systems

1.5 Octal Number System

Base 8. Uses digits 0–7. Each octal digit corresponds to exactly 3 binary digits (triad). Octal is used as a compact representation of binary.

OctalBinary (3-bit)Decimal
00000
10011
20102
30113
41004
51015
61106
71117

1.6 Hexadecimal Number System

Base 16. Uses digits 0–9 and letters A–F. Each hex digit corresponds to exactly 4 binary digits (tetrad). Hexadecimal is widely used in computer memory addressing and machine code.

HexBinary (4-bit)Decimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

1.7 Summary Table

SystemBaseDigitsBinary Group
Binary20, 11 bit
Octal80–73 bits
Decimal100–9
Hexadecimal160–9, A–F4 bits
Worked Example · Octal to Decimal

Problem: Convert \( (247)_8 \) to decimal.

Solution:

\[ (247)_8 = 2 \times 8^2 + 4 \times 8^1 + 7 \times 8^0 = 128 + 32 + 7 = 167 \]
Worked Example · Hex to Decimal

Problem: Convert \( (2F)_{16} \) to decimal.

Solution:

\[ (2F)_{16} = 2 \times 16^1 + 15 \times 16^0 = 32 + 15 = 47 \]

II. Number System Conversions

2.1 Decimal to Binary (Integer Part)

Repeatedly divide the decimal number by 2, recording remainders. The binary number is read from bottom to top.

Convert (45)₁₀ to binary: 2 | 45 2 | 22 → 1 (LSB) 2 | 11 → 0 2 | 5 → 1 2 | 2 → 1 2 | 1 → 0 | 0 → 1 (MSB) Read bottom to top: (101101)₂

2.2 Decimal to Binary (Fractional Part)

Repeatedly multiply the fractional part by 2, recording the integer part. Read from top to bottom.

Convert (0.6875)₁₀ to binary: 0.6875 × 2 = 1.3750 → 1 (MSB of fraction) 0.3750 × 2 = 0.7500 → 0 0.7500 × 2 = 1.5000 → 1 0.5000 × 2 = 1.0000 → 1 (LSB of fraction) Read top to bottom: (0.1011)₂

2.3 Binary to Octal & Hexadecimal

Group binary digits into sets of 3 (octal) or 4 (hex), starting from the binary point. Pad with zeros if necessary.

Worked Example · Binary to Hex

Problem: Convert \( (11010110)_2 \) to hex.

Solution:

Group into 4 bits from the right: 1101 0110

1101 = D, 0110 = 6

Therefore, \( (11010110)_2 = (D6)_{16} \)

2.4 Any Base to Decimal

Use positional notation with the base as the radix.

Worked Example · Binary Fraction to Decimal

Problem: Convert \( (10.101)_2 \) to decimal.

Solution:

\[ (10.101)_2 = 1 \times 2^1 + 0 \times 2^0 + 1 \times 2^{-1} + 0 \times 2^{-2} + 1 \times 2^{-3} \] \[ = 2 + 0 + 0.5 + 0 + 0.125 = 2.625 \]

II-b. Conversion Chart & Summary

2.5 Conversion Between Bases — Summary

From → ToMethod
Decimal → BinaryDivide by 2 (integer), multiply by 2 (fraction)
Binary → DecimalPositional notation (powers of 2)
Binary → OctalGroup into 3 bits
Binary → HexGroup into 4 bits
Octal → BinaryEach digit → 3 bits
Hex → BinaryEach digit → 4 bits
Octal → DecimalPositional notation (powers of 8)
Hex → DecimalPositional notation (powers of 16)
Decimal → OctalDivide by 8
Decimal → HexDivide by 16

2.6 Complete Conversion Table (0–15)

DecimalBinary (4-bit)OctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
Worked Example · Hex to Binary

Problem: Convert \( (3A7)_{16} \) to binary.

Solution:

3 → 0011, A → 1010, 7 → 0111

Therefore, \( (3A7)_{16} = (001110100111)_2 \)

Worked Example · Octal to Binary

Problem: Convert \( (52)_8 \) to binary.

Solution:

5 → 101, 2 → 010

Therefore, \( (52)_8 = (101010)_2 \)

Worked Example · Decimal to Hex

Problem: Convert \( (250)_{10} \) to hexadecimal.

Solution:

Divide by 16: \( 250 \div 16 = 15 \) remainder \( 10 \rightarrow A \)

\( 15 \div 16 = 0 \) remainder \( 15 \rightarrow F \)

Read bottom to top: \( (FA)_{16} \)

III. Binary Codes

3.1 What is a Binary Code?

A binary code is a way of representing decimal digits, alphabetic characters, or other symbols using binary bits. Different codes serve different purposes (arithmetic, error detection, display, etc.).

3.2 BCD (Binary Coded Decimal)

In BCD, each decimal digit is represented by its 4-bit binary equivalent. Only the codes 0000–1001 are used; 1010–1111 are invalid in BCD.

DecimalBCDDecimalBCD
0000050101
1000160110
2001070111
3001181000
4010091001
Worked Example · BCD Conversion

Problem: Convert \( (47)_{10} \) to BCD.

Solution:

\( 4 \rightarrow 0100 \), \( 7 \rightarrow 0111 \)

Therefore, \( (47)_{10} = (0100\,0111)_{BCD} \)

3.3 Gray Code

A Gray code is a binary code in which consecutive values differ by only one bit. This minimizes errors during transitions. Used in rotary encoders, K-maps, and position sensors.

Binary to Gray Conversion

  1. The MSB of the Gray code equals the MSB of the binary number.
  2. Each subsequent Gray bit is the XOR of the current binary bit and the previous binary bit.
\[ G_i = B_i \oplus B_{i+1} \]

Gray to Binary Conversion

  1. The MSB of the binary number equals the MSB of the Gray code.
  2. Each subsequent binary bit is the XOR of the previous binary bit and the current Gray bit.
DecimalBinaryGray
0000000
1001001
2010011
3011010
4100110
5101111
6110101
7111100
Worked Example · Binary to Gray

Problem: Convert \( (1011)_2 \) to Gray code.

Solution:

MSB: \( G_3 = B_3 = 1 \)

\( G_2 = B_3 \oplus B_2 = 1 \oplus 0 = 1 \)

\( G_1 = B_2 \oplus B_1 = 0 \oplus 1 = 1 \)

\( G_0 = B_1 \oplus B_0 = 1 \oplus 1 = 0 \)

Therefore, Gray code = \( (1110)_G \)

III-b. Other Binary Codes

3.4 Excess-3 Code (XS-3)

The Excess-3 code is a BCD code obtained by adding 3 (binary 0011) to each BCD code. It is a self-complementing code (1's complement gives the 9's complement in decimal).

DecimalBCDExcess-3
000000011
100010100
200100101
300110110
401000111
501011000
601101001
701111010
810001011
910011100

3.5 ASCII Code

ASCII (American Standard Code for Information Interchange) is a 7-bit (or 8-bit extended) code used to represent alphanumeric characters. It can encode 128 characters (7-bit) or 256 (8-bit).

CharacterASCII (Decimal)ASCII (Binary, 7-bit)
A651000001
B661000010
a971100001
0480110000
9570111001
Space320100000

3.6 Parity Bit

A parity bit is an extra bit added to a binary code to detect errors during transmission.

Worked Example · Parity Bit

Problem: Data = 1011. Find the even parity bit.

Solution:

Number of 1s = 3 (odd). To make it even, parity bit = 1.

Transmitted: 10111 (4 ones → even)

3.7 Code Comparison Summary

CodeBitsUseKey Feature
BinaryVariableGeneral computationPositional
BCD4 per digitDisplays, calculatorsDirect decimal mapping
GrayVariableEncoders, K-mapsSingle-bit change
Excess-34ArithmeticSelf-complementing
ASCII7/8TextStandard character set

IV. Binary Arithmetic

4.1 Binary Addition

Rules for binary addition:

OperationResultCarry
0 + 000
0 + 110
1 + 010
1 + 101
1 + 1 + 111
Worked Example · Binary Addition

Problem: Add \( (1011)_2 + (1101)_2 \).

Solution:

1 0 1 1 + 1 1 0 1 ─────────── 1 1 0 0 0 (with carries: 1+1=10, 1+1+0=10, 0+1+1=10, 1+1=10) Verify: 11 + 13 = 24 → (11000)₂ ✓

4.2 Binary Subtraction

Rules for binary subtraction:

OperationResultBorrow
0 − 000
1 − 010
1 − 100
0 − 111

4.3 2's Complement Method

Subtraction \( A - B \) is performed as \( A + (2's\ complement\ of\ B) \). The 2's complement is obtained by inverting all bits and adding 1.

\[ 2's\ complement = 1's\ complement + 1 \]
Worked Example · 2's Complement Subtraction

Problem: Perform \( (1011)_2 - (0110)_2 \) using 2's complement.

Solution:

1's complement of \( 0110 \) = \( 1001 \)

2's complement = \( 1001 + 1 = 1010 \)

Add: \( 1011 + 1010 = 10101 \)

Discard the carry: \( 0101 = 5 \)

Verify: \( 11 - 6 = 5 \) ✓

4.4 Binary Multiplication & Division

Worked Example · Binary Multiplication

Problem: Multiply \( (101)_2 \times (11)_2 \).

Solution:

1 0 1 × 1 1 ───────── 1 0 1 (×1) 1 0 1 (×1, shifted left) ───────── 1 1 1 1 = 15 Verify: 5 × 3 = 15 ✓

V. Logic Gates

5.1 What is a Logic Gate?

A logic gate is an electronic circuit that performs a Boolean operation on one or more binary inputs to produce a single binary output. They are the building blocks of all digital circuits.

5.2 Basic Gates

AND Gate

Output is 1 only when all inputs are 1.

\[ Y = A \cdot B \]
ABY = A·B
000
010
100
111

OR Gate

Output is 1 when at least one input is 1.

\[ Y = A + B \]
ABY = A+B
000
011
101
111

NOT Gate (Inverter)

Output is the complement of the input.

\[ Y = \overline{A} \]
AY = Ā
01
10

5.3 Universal Gates

NAND Gate

AND followed by NOT. Output is 0 only when all inputs are 1.

\[ Y = \overline{A \cdot B} \]
ABY = (A·B)′
001
011
101
110

NOR Gate

OR followed by NOT. Output is 1 only when all inputs are 0.

\[ Y = \overline{A + B} \]
ABY = (A+B)′
001
010
100
110

V-b. Special Gates & Summary

5.4 XOR Gate (Exclusive-OR)

Output is 1 when inputs are different.

\[ Y = A \oplus B = A\overline{B} + \overline{A}B \]
ABY = A ⊕ B
000
011
101
110

5.5 XNOR Gate (Exclusive-NOR)

Output is 1 when inputs are same.

\[ Y = \overline{A \oplus B} = AB + \overline{A}\overline{B} \]
ABY = (A ⊕ B)′
001
010
100
111

5.6 Universal Gate Implementation

NAND and NOR are called universal gates because any logic function can be implemented using only NAND or only NOR gates.

GateUsing NANDUsing NOR
NOTNAND with inputs tiedNOR with inputs tied
ANDNAND + NOTTwo NOR + NOT (De Morgan)
ORTwo NAND + NOT (De Morgan)NOR + NOT
XOR4 NAND gates5 NOR gates

5.7 Summary Table of All Gates

GateSymbolExpressionOutput = 1 when…
ANDA·B\( A \cdot B \)All inputs are 1
ORA+B\( A + B \)Any input is 1
NOTĀ\( \overline{A} \)Input is 0
NAND(A·B)′\( \overline{A \cdot B} \)Not all inputs are 1
NOR(A+B)′\( \overline{A + B} \)All inputs are 0
XORA⊕B\( A \oplus B \)Inputs are different
XNOR(A⊕B)′\( \overline{A \oplus B} \)Inputs are same
Worked Example · Gate Output

Problem: Find the output of \( Y = (A + B) \cdot \overline{C} \) when \( A = 1, B = 0, C = 1 \).

Solution:

\( A + B = 1 + 0 = 1 \)

\( \overline{C} = \overline{1} = 0 \)

\( Y = 1 \cdot 0 = 0 \)

VI. Boolean Algebra

6.1 What is Boolean Algebra?

Boolean algebra is a mathematical system for analyzing and simplifying digital logic circuits. Variables take only two values: 0 (false) and 1 (true). It uses three basic operations: AND (·), OR (+), and NOT (′ or overbar).

6.2 Basic Identities

IdentityAND FormOR Form
Identity Law\( A \cdot 1 = A \)\( A + 0 = A \)
Null (Dominance) Law\( A \cdot 0 = 0 \)\( A + 1 = 1 \)
Idempotent Law\( A \cdot A = A \)\( A + A = A \)
Complement Law\( A \cdot \overline{A} = 0 \)\( A + \overline{A} = 1 \)
Double Negation\( \overline{\overline{A}} = A \)
Commutative Law\( A \cdot B = B \cdot A \)\( A + B = B + A \)
Associative Law\( (A \cdot B) \cdot C = A \cdot (B \cdot C) \)\( (A + B) + C = A + (B + C) \)
Distributive Law\( A(B + C) = AB + AC \)\( A + BC = (A+B)(A+C) \)
Absorption Law\( A + AB = A \)\( A(A + B) = A \)
Redundancy Law\( A + \overline{A}B = A + B \)\( A(\overline{A} + B) = AB \)

6.3 De Morgan's Theorems

Theorem 1

The complement of a sum equals the product of the complements.

\[ \overline{A + B} = \overline{A} \cdot \overline{B} \]
Theorem 2

The complement of a product equals the sum of the complements.

\[ \overline{A \cdot B} = \overline{A} + \overline{B} \]

6.4 Proof of De Morgan's Theorem 1

ABA+B(A+B)′A′B′A′·B′
0001111
0110100
1010010
1110000

Columns 4 and 7 are identical → theorem proved.

VII. Boolean Laws & Theorems

7.1 Complete List of Boolean Laws

LawExpression
Identity\( A + 0 = A \); \( A \cdot 1 = A \)
Null\( A + 1 = 1 \); \( A \cdot 0 = 0 \)
Idempotent\( A + A = A \); \( A \cdot A = A \)
Complement\( A + \overline{A} = 1 \); \( A \cdot \overline{A} = 0 \)
Involution\( \overline{\overline{A}} = A \)
Commutative\( A + B = B + A \); \( AB = BA \)
Associative\( (A+B)+C = A+(B+C) \); \( (AB)C = A(BC) \)
Distributive\( A(B+C) = AB + AC \); \( A + BC = (A+B)(A+C) \)
Absorption\( A + AB = A \); \( A(A+B) = A \)
Consensus\( AB + \overline{A}C + BC = AB + \overline{A}C \)
De Morgan's 1\( \overline{A+B} = \overline{A} \cdot \overline{B} \)
De Morgan's 2\( \overline{A \cdot B} = \overline{A} + \overline{B} \)

7.2 Consensus Theorem

\[ AB + \overline{A}C + BC = AB + \overline{A}C \]

The term \( BC \) is redundant and can be removed. This is often used in K-map simplification to eliminate redundant groups.

7.3 Boolean Simplification Examples

Worked Example 1 · Simplify

Problem: Simplify \( Y = A + \overline{A}B \).

Solution:

\[ Y = A + \overline{A}B = (A + \overline{A})(A + B) = 1 \cdot (A+B) = A + B \]
Worked Example 2 · Simplify

Problem: Simplify \( Y = AB + A\overline{B} \).

Solution:

\[ Y = A(B + \overline{B}) = A \cdot 1 = A \]
Worked Example 3 · Simplify

Problem: Simplify \( Y = (A + B)(A + \overline{B}) \).

Solution:

\[ Y = A \cdot A + A \cdot \overline{B} + B \cdot A + B \cdot \overline{B} \] \[ = A + A\overline{B} + AB + 0 = A(1 + \overline{B} + B) = A \cdot 1 = A \]
Worked Example 4 · Simplify

Problem: Simplify \( Y = \overline{\overline{A} + \overline{B}} \).

Solution:

By De Morgan's Theorem 1:

\[ Y = \overline{\overline{A}} \cdot \overline{\overline{B}} = A \cdot B = AB \]

VIII. De Morgan's Theorems

8.1 Statement

De Morgan's theorems provide a way to convert between AND and OR operations with complemented inputs/outputs. They are fundamental to digital logic design and simplification.

Theorem 1 — Complement of a Sum

\( \overline{A + B} = \overline{A} \cdot \overline{B} \)

The complement of OR is the AND of complements.

Theorem 2 — Complement of a Product

\( \overline{A \cdot B} = \overline{A} + \overline{B} \)

The complement of AND is the OR of complements.

8.2 Generalization to n Variables

\[ \overline{A_1 + A_2 + \cdots + A_n} = \overline{A_1} \cdot \overline{A_2} \cdots \overline{A_n} \] \[ \overline{A_1 \cdot A_2 \cdots A_n} = \overline{A_1} + \overline{A_2} + \cdots + \overline{A_n} \]

8.3 Proof by Truth Table

Proof of Theorem 1: \( \overline{A + B} = \overline{A} \cdot \overline{B} \)

ABA + B\( \overline{A+B} \)\( \overline{A} \)\( \overline{B} \)\( \overline{A} \cdot \overline{B} \)
0001111
0110100
1010010
1110000

Proof of Theorem 2: \( \overline{A \cdot B} = \overline{A} + \overline{B} \)

ABA·B\( \overline{A \cdot B} \)\( \overline{A} \)\( \overline{B} \)\( \overline{A} + \overline{B} \)
0001111
0101101
1001011
1110000

8.4 Applications

IX. Canonical & Standard Forms (SOP, POS)

9.1 Minterms and Maxterms

For a Boolean function of \( n \) variables, there are \( 2^n \) possible combinations. Each combination corresponds to a minterm (product term) or maxterm (sum term).

ABMinterm (m)Maxterm (M)
00\( \overline{A}\overline{B} \) = \( m_0 \)\( A + B \) = \( M_0 \)
01\( \overline{A}B \) = \( m_1 \)\( A + \overline{B} \) = \( M_1 \)
10\( A\overline{B} \) = \( m_2 \)\( \overline{A} + B \) = \( M_2 \)
11\( AB \) = \( m_3 \)\( \overline{A} + \overline{B} \) = \( M_3 \)

9.2 Sum of Products (SOP)

In SOP form, the function is expressed as the OR of multiple AND terms (minterms). It is the most common form for implementation with NAND gates.

\[ Y = \sum m(1, 3, 5, 7) = \overline{A}\overline{B}C + \overline{A}BC + A\overline{B}C + ABC \]

9.3 Product of Sums (POS)

In POS form, the function is expressed as the AND of multiple OR terms (maxterms). It is convenient for implementation with NOR gates.

\[ Y = \prod M(0, 2, 4, 6) = (A+B+C)(A+\overline{B}+C)(\overline{A}+B+C)(\overline{A}+\overline{B}+C) \]

9.4 Canonical vs Standard Forms

FormDescriptionExample
Canonical SOPEach term contains all variables (minterms)\( \overline{A}\overline{B}C + A\overline{B}C \)
Standard SOPTerms may not contain all variables\( \overline{B}C + A\overline{B} \)
Canonical POSEach term contains all variables (maxterms)\( (A+B+C)(\overline{A}+B+C) \)
Standard POSTerms may not contain all variables\( (A+B)(\overline{A}+C) \)
Worked Example · Truth Table to SOP

Problem: Given the truth table below, write the canonical SOP expression.

ABCY
0000
0011
0100
0111
1000
1011
1100
1111

Solution:

Y = 1 for minterms \( m_1, m_3, m_5, m_7 \).

\[ Y = \overline{A}\overline{B}C + \overline{A}BC + A\overline{B}C + ABC \]

X. Karnaugh Maps (2, 3, 4 Variables)

10.1 What is a K-Map?

A Karnaugh map (K-map) is a graphical method for simplifying Boolean expressions. It arranges truth table values in a grid where adjacent cells differ by only one variable, enabling easy identification of groups (prime implicants).

10.2 2-Variable K-Map

B=0 B=1 ┌──────┬──────┐ A=0 │ m₀ │ m₁ │ ├──────┼──────┤ A=1 │ m₂ │ m₃ │ └──────┴──────┘

10.3 3-Variable K-Map

BC=00 BC=01 BC=11 BC=10 ┌──────┬──────┬──────┬──────┐ A=0 │ m₀ │ m₁ │ m₃ │ m₂ │ ├──────┼──────┼──────┼──────┤ A=1 │ m₄ │ m₅ │ m₇ │ m₆ │ └──────┴──────┴──────┴──────┘ Note: Column order 00, 01, 11, 10 (Gray code)

10.4 4-Variable K-Map

CD=00 CD=01 CD=11 CD=10 ┌──────┬──────┬──────┬──────┐ AB=00│ m₀ │ m₁ │ m₃ │ m₂ │ ├──────┼──────┼──────┼──────┤ AB=01│ m₄ │ m₅ │ m₇ │ m₆ │ ├──────┼──────┼──────┼──────┤ AB=11│ m₁₂ │ m₁₃ │ m₁₅ │ m₁₄ │ ├──────┼──────┼──────┼──────┤ AB=10│ m₈ │ m₉ │ m₁₁ │ m₁₀ │ └──────┴──────┴──────┴──────┘

10.5 Rules for K-Map Grouping

  1. Groups must contain \( 2^n \) cells (1, 2, 4, 8, 16, …).
  2. Groups must be rectangular (horizontal or vertical, no diagonals).
  3. Groups can wrap around edges (top-bottom, left-right).
  4. Each group should be as large as possible.
  5. All 1s must be covered at least once.
  6. Overlapping groups are allowed (helps make larger groups).
  7. Each group yields a product term; the final expression is the OR of all group terms.

10.6 Prime Implicants & Essential Prime Implicants

XI. K-Map Simplification & Don't Cares

11.1 3-Variable K-Map Example

Worked Example · 3-Variable K-Map

Problem: Simplify \( Y = \sum m(1, 3, 5, 7) \).

Solution:

BC=00 BC=01 BC=11 BC=10 ┌──────┬──────┬──────┬──────┐ A=0 │ 0 │ 1 │ 1 │ 0 │ ├──────┼──────┼──────┼──────┤ A=1 │ 0 │ 1 │ 1 │ 0 │ └──────┴──────┴──────┴──────┘ Group: m₁, m₃, m₅, m₇ (four 1s in middle two columns) This covers B=1 (C varies, A varies) Result: Y = C

Verification: \( m_1=\overline{A}\overline{B}C \), \( m_3=\overline{A}BC \), \( m_5=A\overline{B}C \), \( m_7=ABC \). Grouping:

\[ Y = \overline{A}C(\overline{B}+B) + AC(\overline{B}+B) = \overline{A}C + AC = C \]

11.2 4-Variable K-Map Example

Worked Example · 4-Variable K-Map

Problem: Simplify \( Y = \sum m(0, 1, 2, 3, 8, 9, 10, 11) \).

Solution:

CD=00 CD=01 CD=11 CD=10 ┌──────┬──────┬──────┬──────┐ AB=00│ 1 │ 1 │ 1 │ 1 │ ├──────┼──────┼──────┼──────┤ AB=01│ 0 │ 0 │ 0 │ 0 │ ├──────┼──────┼──────┼──────┤ AB=11│ 0 │ 0 │ 0 │ 0 │ ├──────┼──────┼──────┼──────┤ AB=10│ 1 │ 1 │ 1 │ 1 │ └──────┴──────┴──────┴──────┘ Group: Top row (m₀,m₁,m₃,m₂) + Bottom row (m₈,m₉,m₁₁,m₁₀) These 8 cells wrap around → B = 0 (A varies, C,D vary) Result: Y = B̄

11.3 Don't Care Conditions

Don't care conditions are input combinations that never occur in practice. They can be treated as either 0 or 1 to make larger groups and achieve better simplification. Denoted by \( X \) or \( d \).

Worked Example · K-Map with Don't Cares

Problem: Simplify \( Y = \sum m(0, 2, 4, 6) + d(1, 3, 5) \).

Solution:

BC=00 BC=01 BC=11 BC=10 ┌──────┬──────┬──────┬──────┐ A=0 │ 1 │ X │ X │ 1 │ ├──────┼──────┼──────┼──────┤ A=1 │ 1 │ X │ 0 │ 1 │ └──────┴──────┴──────┴──────┘ Treat X = 1 where helpful. Group: All 1s and Xs except m₇ → covers all but m₇. Result: Y = A + C̄ (or Y = C̄ + A)

11.4 Common K-Map Groupings

Group SizeVariables EliminatedResulting Term
1 (single 1)0Full minterm (all variables)
21Product of n−1 variables
42Product of n−2 variables
83Product of n−3 variables
1641 (always true)

XII. Combinational Circuits — Adders

12.1 What is a Combinational Circuit?

A combinational circuit is a digital circuit whose output depends only on the present inputs (no memory). Examples: adders, subtractors, multiplexers, demultiplexers, encoders, decoders, comparators.

12.2 Half Adder

A half adder adds two single bits and produces a Sum and a Carry.

A ──┬──[ XOR ]── Sum │ B ──┼──[ AND ]── Carry │

Truth Table

ABSum (S)Carry (C)
0000
0110
1010
1101
\[ S = A \oplus B \qquad C = A \cdot B \]

12.3 Full Adder

A full adder adds three bits (A, B, and Carry-in \( C_{in} \)) and produces Sum and Carry-out \( C_{out} \).

Truth Table

ABC_inSum (S)C_out
00000
00110
01010
01101
10010
10101
11001
11111
\[ S = A \oplus B \oplus C_{in} \] \[ C_{out} = AB + C_{in}(A \oplus B) \]

12.4 Ripple Carry Adder (4-bit)

A 4-bit adder is built by cascading four full adders. The carry from each stage propagates to the next.

A₃ B₃ A₂ B₂ A₁ B₁ A₀ B₀ │ │ │ │ │ │ │ │ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ▼ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │ FA₃ │←─│ FA₂ │←─│ FA₁ │←─│ FA₀ │← C_in = 0 └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │ │ │ │ S₃ S₂ S₁ S₀

XIII. Subtractors & Code Converters

13.1 Half Subtractor

A half subtractor subtracts one bit from another and produces a Difference and a Borrow.

Truth Table

ABDifference (D)Borrow (Bo)
0000
0111
1010
1100
\[ D = A \oplus B \qquad B_o = \overline{A} \cdot B \]

13.2 Full Subtractor

A full subtractor subtracts B and Borrow-in from A, producing Difference and Borrow-out.

Truth Table

ABB_inDifference (D)B_out
00000
00111
01011
01101
10010
10100
11000
11111
\[ D = A \oplus B \oplus B_{in} \] \[ B_{out} = \overline{A}B + \overline{A}B_{in} + B B_{in} \]

13.3 Adder-Subtractor Circuit

A single circuit can perform both addition and subtraction by using XOR gates controlled by a mode signal \( M \):

Worked Example · Half Adder

Problem: Find Sum and Carry for A = 1, B = 1.

Solution:

\[ S = A \oplus B = 1 \oplus 1 = 0 \] \[ C = A \cdot B = 1 \cdot 1 = 1 \]

So Sum = 0, Carry = 1. (1 + 1 = 10 in binary)

Worked Example · Full Adder

Problem: Find Sum and C_out for A = 1, B = 0, C_in = 1.

Solution:

\[ S = 1 \oplus 0 \oplus 1 = 0 \] \[ C_{out} = 1 \cdot 0 + 1(1 \oplus 0) = 0 + 1 = 1 \]

So Sum = 0, C_out = 1. (1 + 0 + 1 = 10 in binary)

XIV. Multiplexers (MUX)

14.1 What is a Multiplexer?

A multiplexer (MUX) is a combinational circuit that selects one of \( 2^n \) input lines and routes it to a single output line, based on \( n \) select lines. It is also called a data selector.

Data Inputs: I₀ ──┐ I₁ ──┤ I₂ ──┤ ┌───────┐ I₃ ──┼──→│ 4:1 │──→ Y (Output) I₄ ──┤ │ MUX │ I₅ ──┤ └───────┘ I₆ ──┤ ↑ I₇ ──┘ S₂ S₁ S₀ (Select lines)

14.2 4:1 Multiplexer

A 4:1 MUX has 4 data inputs (\( I_0, I_1, I_2, I_3 \)), 2 select lines (\( S_1, S_0 \)), and 1 output \( Y \).

Truth Table

S₁S₀Output Y
00\( I_0 \)
01\( I_1 \)
10\( I_2 \)
11\( I_3 \)
\[ Y = \overline{S_1}\overline{S_0}I_0 + \overline{S_1}S_0 I_1 + S_1\overline{S_0}I_2 + S_1 S_0 I_3 \]

14.3 Multiplexer Tree (Larger MUX from Smaller)

A 8:1 MUX can be built from two 4:1 MUX and one 2:1 MUX. Similarly, 16:1 MUX can be built from 4:1 MUXs and 4:1 MUX tree.

4:1 MUX Tree for 16:1 ┌───────┐ │ 4:1 M1│──┐ └───────┘ │ ┌───────┐ │ ┌───────┐ │ 4:1 M2│──┼──→│ 4:1 │──→ Y └───────┘ │ │ Output│ ┌───────┐ │ └───────┘ │ 4:1 M3│──┤ ↑ └───────┘ │ S₃ S₂ ┌───────┐ │ │ 4:1 M4│──┘ └───────┘ ↑ S₁ S₀

14.4 Applications of Multiplexers

ApplicationDescription
Data selectionSelecting one of many data sources
Parallel-to-serial conversionSend parallel data over a single line
Function generationImplement any Boolean function using MUX
Communication systemsTime-division multiplexing
Display systemsSelecting display segments
Worked Example · MUX Output

Problem: For a 4:1 MUX with \( S_1 S_0 = 10 \) and inputs \( I_0=1, I_1=0, I_2=1, I_3=0 \), find the output.

Solution:

\( S_1 S_0 = 10 \) selects \( I_2 \).

Therefore, \( Y = I_2 = 1 \).

XV. Demultiplexers (DEMUX)

15.1 What is a Demultiplexer?

A demultiplexer (DEMUX) is a combinational circuit that takes one input and routes it to one of \( 2^n \) output lines, based on \( n \) select lines. It is the reverse of a multiplexer.

Input: D ──→ ┌───────┐ ──→ Y₀ │ 1:4 │ ──→ Y₁ │ DEMUX │ ──→ Y₂ │ │ ──→ Y₃ └───────┘ ↑ S₁ S₀ (Select lines)

15.2 1:4 Demultiplexer

A 1:4 DEMUX has 1 data input \( D \), 2 select lines (\( S_1, S_0 \)), and 4 outputs (\( Y_0, Y_1, Y_2, Y_3 \)).

Truth Table

S₁S₀Y₀Y₁Y₂Y₃
00D000
010D00
1000D0
11000D
\[ Y_0 = D \cdot \overline{S_1} \cdot \overline{S_0} \] \[ Y_1 = D \cdot \overline{S_1} \cdot S_0 \] \[ Y_2 = D \cdot S_1 \cdot \overline{S_0} \] \[ Y_3 = D \cdot S_1 \cdot S_0 \]

15.3 Comparison: MUX vs DEMUX

FeatureMultiplexer (MUX)Demultiplexer (DEMUX)
FunctionMany → OneOne → Many
Data inputs\( 2^n \)1
Data outputs1\( 2^n \)
Select lines\( n \)\( n \)
Also calledData selectorData distributor
ApplicationsData selection, PISOData distribution, SIPO
Worked Example · DEMUX Output

Problem: For a 1:4 DEMUX with \( D = 1 \) and \( S_1 S_0 = 01 \), find the outputs.

Solution:

\( S_1 S_0 = 01 \) selects \( Y_1 \).

Therefore, \( Y_1 = D = 1 \), and \( Y_0 = Y_2 = Y_3 = 0 \).

XVI. Encoders & Decoders

16.1 What is an Encoder?

An encoder converts \( 2^n \) input lines into an \( n \)-bit binary code. It is the reverse of a decoder.

16.2 4-to-2 Encoder

Inputs (I₀ I₁ I₂ I₃)Outputs (A₁ A₀)
1 0 0 00 0
0 1 0 00 1
0 0 1 01 0
0 0 0 11 1
\[ A_1 = I_2 + I_3 \qquad A_0 = I_1 + I_3 \]

16.3 Priority Encoder

A priority encoder is an encoder that includes priority logic. If multiple inputs are active simultaneously, the input with the highest priority is encoded. This avoids ambiguity when more than one input is 1.

16.4 What is a Decoder?

A decoder converts an \( n \)-bit binary code into \( 2^n \) output lines, activating only one output at a time. It is used for memory addressing, seven-segment displays, and instruction decoding.

16.5 2-to-4 Decoder

A₁A₀Y₀Y₁Y₂Y₃
001000
010100
100010
110001
\[ Y_0 = \overline{A_1}\overline{A_0} \qquad Y_1 = \overline{A_1}A_0 \] \[ Y_2 = A_1\overline{A_0} \qquad Y_3 = A_1 A_0 \]

16.6 Seven-Segment Display Decoder

A BCD-to-7-segment decoder takes a 4-bit BCD input and drives 7 output segments (a–g) to display decimal digits 0–9. Used in calculators, digital clocks, and meters.

BCD Input ──→ ┌─────────┐ ──→ a │ BCD to │ ──→ b │ 7-seg │ ──→ c │ Decoder │ ──→ d └─────────┘ ──→ e ──→ f ──→ g

16.7 Encoder vs Decoder

FeatureEncoderDecoder
Function\( 2^n \) inputs → n outputsn inputs → \( 2^n \) outputs
InputsManyFew
OutputsFew (binary code)Many (one active)
ApplicationKeyboard encoding, priorityMemory addressing, displays

XVII. Digital Comparators

17.1 What is a Comparator?

A digital comparator compares two binary numbers and determines whether they are equal, or which one is greater.

17.2 1-bit Comparator

Compares two single bits A and B. Three outputs:

Truth Table

ABA > BA = BA < B
00010
01001
10100
11010
\[ (A > B) = A\overline{B} \] \[ (A = B) = \overline{A \oplus B} = AB + \overline{A}\overline{B} \] \[ (A < B) = \overline{A}B \]

17.3 2-bit Comparator

Compares two 2-bit numbers \( A_1A_0 \) and \( B_1B_0 \). The comparison starts from the MSB. If MSBs are equal, comparison moves to the next bit.

17.4 Applications of Comparators

ApplicationDescription
Microprocessor ALUComparison for branch instructions
Sorting networksData sorting in hardware
Analog-to-digital convertersComparator-based flash ADCs
Control systemsThreshold detection
Test equipmentDigital multimeters, oscilloscopes

17.5 Summary of Combinational Circuits

CircuitInputsOutputsFunction
Half Adder22 (S, C)Adds 2 bits
Full Adder32 (S, C_out)Adds 3 bits
Half Subtractor22 (D, Bo)Subtracts 2 bits
Full Subtractor32 (D, B_out)Subtracts 3 bits
MUX (4:1)6 (4 data + 2 sel)1Selects 1 of 4
DEMUX (1:4)3 (1 data + 2 sel)4Routes to 1 of 4
Encoder (4:2)42Binary encoding
Decoder (2:4)24One-hot decoding
Comparator2n (n-bit each)3Compare two numbers

Summary & Formula Sheet

Number Systems & Conversions

ConceptFormula / Rule
Decimal to BinaryDivide by 2, read remainders bottom-up
Binary to Decimal\( \sum d_i \times 2^i \)
Binary to HexGroup into 4 bits
Binary to OctalGroup into 3 bits
Hex to BinaryEach hex digit → 4 bits
Octal to BinaryEach octal digit → 3 bits
Binary to Gray\( G_i = B_i \oplus B_{i+1} \)
Gray to Binary\( B_i = B_{i+1} \oplus G_i \)
2's Complement1's complement + 1

Boolean Algebra

LawExpression
Identity\( A + 0 = A \); \( A \cdot 1 = A \)
Null\( A + 1 = 1 \); \( A \cdot 0 = 0 \)
Idempotent\( A + A = A \); \( A \cdot A = A \)
Complement\( A + \overline{A} = 1 \); \( A \cdot \overline{A} = 0 \)
Absorption\( A + AB = A \); \( A(A+B) = A \)
Distributive\( A(B+C) = AB + AC \)
De Morgan's 1\( \overline{A+B} = \overline{A} \cdot \overline{B} \)
De Morgan's 2\( \overline{A \cdot B} = \overline{A} + \overline{B} \)

Logic Gates

GateExpressionOutput = 1 when…
AND\( A \cdot B \)All inputs 1
OR\( A + B \)Any input 1
NOT\( \overline{A} \)Input is 0
NAND\( \overline{A \cdot B} \)Not all inputs 1
NOR\( \overline{A + B} \)All inputs 0
XOR\( A \oplus B \)Inputs different
XNOR\( \overline{A \oplus B} \)Inputs same

Combinational Circuits

CircuitKey Formulas
Half Adder\( S = A \oplus B \), \( C = AB \)
Full Adder\( S = A \oplus B \oplus C_{in} \), \( C_{out} = AB + C_{in}(A \oplus B) \)
Half Subtractor\( D = A \oplus B \), \( B_o = \overline{A}B \)
Full Subtractor\( D = A \oplus B \oplus B_{in} \), \( B_{out} = \overline{A}B + \overline{A}B_{in} + BB_{in} \)
4:1 MUX\( Y = \sum_{i=0}^{3} m_i I_i \)
1:4 DEMUX\( Y_i = D \cdot m_i \)
4:2 Encoder\( A_1 = I_2 + I_3 \), \( A_0 = I_1 + I_3 \)
2:4 Decoder\( Y_i = m_i \)
1-bit Comparator\( (A>B)=A\overline{B} \), \( (A=B)=\overline{A \oplus B} \), \( (A

Exam Tips & Practice Questions

Top 12 Exam Tips
  1. Memorize powers of 2 up to \( 2^{10} \) — used constantly in number conversions.
  2. For binary-to-hex, group from the binary point in sets of 4. Pad with zeros if needed.
  3. For binary-to-octal, group in sets of 3. Don't mix up with hex groupings.
  4. Remember De Morgan's theorems — they appear in nearly every simplification problem.
  5. For K-maps, always use Gray code column/row ordering (00, 01, 11, 10).
  6. Groups in K-maps must be power-of-2 sizes and can wrap around edges.
  7. Don't-care conditions can be treated as 1 or 0 to make larger groups.
  8. Memorize half/full adder/subtractor equations — they are frequently asked.
  9. In MUX/DEMUX problems, the select lines determine which input/output is active.
  10. NAND and NOR are universal gates — any function can be built with them alone.
  11. For a 4:1 MUX, the output expression is a sum of 4 minterms multiplied by inputs.
  12. For comparator problems, always check MSB first, then move to lower bits.

Practice Questions

Q1 · Number Conversion Easy

Convert \( (11010110)_2 \) to decimal, octal, and hexadecimal.

Q2 · Binary Arithmetic Easy

Perform \( (10110)_2 + (1101)_2 \) and verify your answer in decimal.

Q3 · Boolean Simplification Medium

Simplify \( Y = A\overline{B} + AB + \overline{A}B \) using Boolean algebra.

Q4 · De Morgan's Theorem Medium

Simplify \( Y = \overline{(A+B) \cdot (C+D)} \) using De Morgan's theorems.

Q5 · K-Map Medium

Simplify \( Y = \sum m(0, 1, 2, 4, 5, 6) \) using a 3-variable K-map.

Q6 · K-Map with Don't Cares Hard

Simplify \( Y = \sum m(0, 2, 5, 7, 8, 10, 13, 15) + d(1, 3) \) using a 4-variable K-map.

Q7 · Half/Full Adder Easy

Design a full adder using two half adders and an OR gate. Draw the circuit.

Q8 · MUX Medium

Implement the Boolean function \( Y = \sum m(0, 1, 3, 5, 7) \) using an 8:1 multiplexer.

Q9 · DEMUX Medium

For a 1:8 DEMUX with \( D=1 \) and \( S_2 S_1 S_0 = 101 \), find the active output.

Q10 · Comparator Hard

Design a 2-bit magnitude comparator. Write the expressions for \( A>B \), \( A=B \), and \( A

Solutions to Practice Questions

Solution Q1 · Number Conversion

Binary: \( (11010110)_2 \)

Decimal:

\[ 1 \times 2^7 + 1 \times 2^6 + 0 \times 2^5 + 1 \times 2^4 + 0 \times 2^3 + 1 \times 2^2 + 1 \times 2^1 + 0 \times 2^0 \] \[ = 128 + 64 + 0 + 16 + 0 + 4 + 2 + 0 = 214 \]

Octal: Group into 3 bits from the right: 11 010 110 → pad: 011 010 110 → \( (326)_8 \)

Hex: Group into 4 bits: 1101 0110 → \( (D6)_{16} \)

Solution Q2 · Binary Arithmetic
1 0 1 1 0 + 0 1 1 0 1 ───────────── 1 0 0 0 1 1 (carries: 0+1=1, 1+0=1, 1+1=10, 0+1+1=10, 1+0+1=10)

Verify: \( 22 + 13 = 35 \) → \( (100011)_2 = 32 + 2 + 1 = 35 \) ✓

Solution Q3 · Boolean Simplification
\[ Y = A\overline{B} + AB + \overline{A}B \]

Group first two terms: \( A(\overline{B} + B) = A \)

\[ Y = A + \overline{A}B = (A + \overline{A})(A + B) = A + B \]

Answer: \( Y = A + B \)

Solution Q4 · De Morgan's Theorem
\[ Y = \overline{(A+B) \cdot (C+D)} \]

Apply De Morgan's 2:

\[ Y = \overline{(A+B)} + \overline{(C+D)} \]

Apply De Morgan's 1:

\[ Y = \overline{A}\overline{B} + \overline{C}\overline{D} \]
Solution Q5 · K-Map

\( Y = \sum m(0, 1, 2, 4, 5, 6) \)

BC=00 BC=01 BC=11 BC=10 ┌──────┬──────┬──────┬──────┐ A=0 │ 1 │ 1 │ 0 │ 1 │ ├──────┼──────┼──────┼──────┤ A=1 │ 1 │ 1 │ 0 │ 1 │ └──────┴──────┴──────┴──────┘ Group 1: m₀, m₁, m₄, m₅ (left 2×2) → B̄ Group 2: m₀, m₂, m₄, m₆ (wrap: m₀,m₂ and m₄,m₆) → C̄

Answer: \( Y = \overline{B} + \overline{C} \)

Solution Q6 · K-Map with Don't Cares

\( Y = \sum m(0, 2, 5, 7, 8, 10, 13, 15) + d(1, 3) \)

CD=00 CD=01 CD=11 CD=10 ┌──────┬──────┬──────┬──────┐ AB=00│ 1 │ X │ X │ 1 │ ├──────┼──────┼──────┼──────┤ AB=01│ 0 │ 1 │ 1 │ 0 │ ├──────┼──────┼──────┼──────┤ AB=11│ 1 │ 1 │ 1 │ 1 │ ├──────┼──────┼──────┼──────┤ AB=10│ 1 │ 0 │ 0 │ 1 │ └──────┴──────┴──────┴──────┘

Answer: \( Y = BD + \overline{B}\overline{D} + AC \)

Solution Q7 · Full Adder from Half Adders
A ──┬──[ XOR ]──┬──[ XOR ]── Sum │ (HA1) │ (HA2) B ──┴──[ AND ]──┼──[ AND ]──┐ (HA1) │ (HA2) │ │ ├──[ OR ]── C_out C_in ───────────┘──────────┘

Sum = \( A \oplus B \oplus C_{in} \)

C_out = \( AB + C_{in}(A \oplus B) \)

Solution Q8 · MUX Implementation

\( Y = \sum m(0, 1, 3, 5, 7) \)

Use an 8:1 MUX with select lines \( S_2 S_1 S_0 = A B C \).

Connect inputs: \( I_0 = 1, I_1 = 1, I_2 = 0, I_3 = 1, I_4 = 0, I_5 = 1, I_6 = 0, I_7 = 1 \)

These correspond to minterm indices \( m_0, m_1, m_3, m_5, m_7 \).

Solution Q9 · DEMUX Output

\( S_2 S_1 S_0 = 101 \) = decimal 5 → selects output \( Y_5 \).

Since \( D = 1 \), \( Y_5 = 1 \) and all other outputs are 0.

Solution Q10 · 2-bit Comparator

Compare \( A_1A_0 \) and \( B_1B_0 \).

Equal: \( (A=B) = (A_1 \odot B_1)(A_0 \odot B_0) \)

Greater: \( (A>B) = A_1\overline{B_1} + (A_1 \odot B_1)A_0\overline{B_0} \)

Less: \( (A

Where \( \odot \) denotes XNOR (equality).

References & CO Mapping

Textbooks

RefTitleAuthorPublisher
T-1Principles of ElectronicsV. K. Mehta and Rohit MehtaS. Chand & Company
R-1Electronic Devices and Circuit TheoryRobert L. Boylestad and Louis NashelskyPearson Education India
R-2Digital FundamentalsThomas L. FloydPearson Education India

Relevant Websites

RefWeb AddressFeature
RW-2geeksforgeeks.org/computer-networksOptical fiber and wireless communication
RW-3electronics-tutorials.ws/boolean/book_7.htmlLogic gates
RW-4tutorialspoint.com/digital-electronics/four-variable-k-mapK-Map (up to 4 variables)
RW-5robocraze.com/blogs/post/what-are-multiplexers-and-demultiplexersMultiplexers and de-multiplexers

Audio-Visual Aids

RefTopic
AV-5Number system and codes
AV-6Adders and subtractors

Key Takeaways

  1. Number systems: binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16).
  2. Binary-to-hex groups 4 bits; binary-to-octal groups 3 bits.
  3. Binary codes include BCD, Gray, Excess-3, and ASCII.
  4. Gray code changes only one bit between consecutive values.
  5. Boolean algebra has identities: identity, null, idempotent, complement, distributive, absorption.
  6. De Morgan's theorems convert between AND/OR with complemented inputs.
  7. SOP and POS are canonical forms; K-maps simplify to minimal SOP or POS.
  8. K-map groups must be power-of-2 sizes and can wrap around edges.
  9. Half adder: \( S = A \oplus B \), \( C = AB \). Full adder uses two half adders.
  10. MUX: many → one; DEMUX: one → many.
  11. Encoder: \( 2^n \) inputs → n outputs. Decoder: n inputs → \( 2^n \) outputs.
  12. Comparators produce \( A>B \), \( A=B \), \( A

CO Mapping

CODescriptionSections Covered
CO3Examine number system conversions and K-Map to simplify digital logic expressionsI, II, III, IV, V, VI, VII, VIII, IX, X, XI
CO4Analyze the operation and functionality of combinational logic circuitsXII, XIII, XIV, XV, XVI, XVII

End of Unit III

Digital Number Systems · Logic Gates · Boolean Algebra · K-Maps · Combinational Circuits

PHY 175 · Modern Physics and Electronics

Complete · Exam-Ready · Full Marks Guaranteed