Loading...
Loading...
| System | Base | Digits | |---|---|---| | Decimal | 10 | 0-9 | | Binary | 2 | 0, 1 | | Octal | 8 | 0-7 | | Hexadecimal | 16 | 0-9, A-F |
Binary to Decimal: Multiply each bit by 2^position
Decimal to Binary: Divide by 2, collect remainders bottom to top
Hex to Binary: Each hex digit = 4 binary bits
Addition: 1+1 = 10 (write 0, carry 1)
Subtraction using 2's complement:
2's complement = 1's complement + 1
1's complement = flip all bits
A - B = A + (2's complement of B)
Basic Laws:
| Law | AND form | OR form | |---|---|---| | Identity | A · 1 = A | A + 0 = A | | Null | A · 0 = 0 | A + 1 = 1 | | Idempotent | A · A = A | A + A = A | | Complement | A · A' = 0 | A + A' = 1 | | Involution | (A')' = A | — |
De Morgan's Theorems (Very Important!):
Simplify using Boolean algebra:
F = AB + AB' = A(B + B') = A·1 = A
F = A + AB = A(1 + B) = A·1 = A (Absorption Law)
| Gate | Symbol | Operation | Truth Table | |---|---|---|---| | AND | · | Output=1 only if ALL inputs=1 | 0·0=0, 0·1=0, 1·1=1 | | OR | + | Output=1 if ANY input=1 | 0+0=0, 0+1=1, 1+1=1 | | NOT | ' or ¬ | Inverts input | 0'=1, 1'=0 | | NAND | | AND followed by NOT | Universal gate | | NOR | | OR followed by NOT | Universal gate | | XOR | ⊕ | Output=1 if inputs are DIFFERENT | 0⊕0=0, 0⊕1=1, 1⊕1=0 | | XNOR | ⊙ | Output=1 if inputs are SAME | Complement of XOR |
Universal Gates: NAND and NOR can implement any Boolean function.
K-Map minimizes Boolean expressions visually by grouping 1s.
Rules for Grouping:
2-variable K-Map:
B' B
A' | 0 | 1 |
A | 2 | 3 |
4-variable K-Map (standard arrangement):
CD
AB 00 01 11 10
00 | 0 | 1 | 3 | 2 |
01 | 4 | 5 | 7 | 6 |
11 | 12 |13 |15 |14 |
10 | 8 | 9 |11 |10 |
Reading simplified expression:
Sequential circuits have memory — output depends on current input AND previous state.
| S | R | Q (next) | |---|---|---| | 0 | 0 | Q (no change) | | 0 | 1 | 0 (reset) | | 1 | 0 | 1 (set) | | 1 | 1 | INVALID |
Q1 (2023): Minimize F = Σm(0,1,2,5,6,7) using K-Map Group 1s cleverly → F = A'B' + AB + B'C'... (draw K-map for visual solving)
Q2 (2023): Convert (156)₁₀ to binary, octal, and hex 156/2 = 78R0, 78/2=39R0, 39/2=19R1, 19/2=9R1, 9/2=4R1, 4/2=2R0, 2/2=1R0, 1/2=0R1 Binary: 10011100₂ → Octal: 234₈ → Hex: 9C₁₆
Q3 (2022): Implement XOR using only NAND gates A XOR B = (A NAND (A NAND B)) NAND (B NAND (A NAND B)) Uses 4 NAND gates total.
Complete Digital Logic Design notes for B.Tech CS/ECE Semester 1/2 — number systems, Boolean algebra, logic gates, K-map, combinational and sequential circuits.
40 pages · 2.0 MB · Updated 2026-03-11
Boolean algebra is a branch of algebra that deals with binary variables (0 and 1) and logical operations (AND, OR, NOT). It is the mathematical foundation of all digital systems.
Combinational circuits: output depends only on current inputs (no memory). Sequential circuits: output depends on current inputs AND past state (has memory via flip-flops).
Karnaugh Map is a visual method to minimize Boolean expressions. It groups 1s in powers of 2 to find the simplest SOP (Sum of Products) expression.
Engineering Mathematics 1 — Calculus, Matrices, Differential Equations
Engineering Mathematics 1
Programming Fundamentals Using C — Complete Notes
Programming Fundamentals (C)
DBMS Complete Notes — B.Tech CS Sem 4
Database Management Systems
Compiler Design — Complete Notes CS Sem 6
Compiler Design
Machine Learning Complete Notes — B.Tech CS Sem 6
Machine Learning
Your feedback helps us improve notes and tutorials.