←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Diagrams

Diagrams

Visual representations for Unit 1

The Four Digital Number Systems

The Four Digital Number Systems
Decimal (Base 10)
Digits: 0 to 9
Used by humans in daily life
Binary (Base 2)
Digits: 0 and 1
Directly understood by computer hardware
Octal (Base 8)
Digits: 0 to 7
1 Octal digit = Group of 3 binary bits
Hexadecimal (Base 16)
0-9 and A-F (where A=10, B=11, C=12, D=13, E=14, F=15)
1 Hex digit = Group of 4 binary bits
Explanation
  • The base determines the digits a number system can use.
  • Each step to the left multiplies a position's weight by the base.
Detailed Notes →Quick Revision →

Direct Bit Grouping Method

Direct Bit Grouping Method
Octal Digit
↔ Group of 3 Bits
BINARY
The Central Bridge
Hex Digit
↔ Group of 4 Bits
Explanation
  • Group binary digits in threes for octal and fours for hexadecimal.
  • Start at the radix point and pad the outside of a group with zeros if needed.
Detailed Notes →Quick Revision →

A. Binary Addition Rules

   Carry:  1 1 1
           1 0 1 1  (= 11 in decimal)
         + 1 1 0 1  (= 13 in decimal)
         ---------
         1 1 0 0 0  (= 24 in decimal)
Explanation
  • Add from the rightmost column and pass a carry to the next column.
  • The final carry is outside a fixed-width unsigned result.
Detailed Notes →Quick Revision →

Solved Example: Calculate 28 - 14 using 8-bit 2's Complement

    00011100  (28)
  + 11110010  (-14)
  ----------
  1 00001110
  ↑
  End Carry = 1 (Discard it!)
Explanation
  • Represent minus fourteen by inverting the bits of fourteen and adding one.
  • Add it to twenty-eight and retain the low eight bits to obtain fourteen.
Detailed Notes →Quick Revision →

Solved Example: Add 35 + 48 in BCD

      0011    0101   (35)
    + 0100    1000   (48)
    ----------------
      0111    1101   (Right group is 1101 = 13, which is > 9: INVALID!)
    + 0000    0110   (Add +6 correction to fix it)
    ----------------
      1000    0011
        8       3    = 83 in decimal! (Correct!)
Explanation
  • Add each pair of decimal digits in binary.
  • A digit sum above nine or a carry needs a correction of six before storing the BCD result.
Detailed Notes →Quick Revision →

Classification of Binary Codes

Classification of Binary Codes
Weighted Codes
Each bit position carries a fixed weight (e.g., BCD 8421, 2421)
Non-Weighted Codes
Bits do not have positional weights (e.g., Excess-3, Gray Code)
Alphanumeric Codes
Represent letters, numbers, and symbols (ASCII, EBCDIC, Unicode)
Error Detecting & Correcting
Detect and fix bit errors caused by electrical noise (Parity, Hamming Code)
Explanation
  • Weighted codes assign a fixed value to each position.
  • Other codes represent characters, limit bit changes or add error checks.
Detailed Notes →Quick Revision →

7-Bit Hamming Code Bit Layout

7-Bit Hamming Code Bit Layout
Bit 1
Parity P₁
Bit 2
Parity P₂
Bit 3
Data D₃
Bit 4
Parity P₄
Bit 5
Data D₅
Bit 6
Data D₆
Bit 7
Data D₇
Explanation
  • Parity positions are numbered with powers of two and the remaining positions hold data.
  • Each parity check covers a different set of positions to locate a single changed bit.
Detailed Notes →Quick Revision →

The Three Fundamental Logic Operations

The Three Fundamental Logic Operations
AND Gate (•)
Output is 1 ONLY when ALL inputs are 1. Like two switches connected in SERIES.
OR Gate (+)
Output is 1 if AT LEAST ONE input is 1. Like two switches connected in PARALLEL.
NOT Gate (Inverter)
Output is the OPPOSITE of the input. 0 turns into 1, and 1 turns into 0.
Explanation
  • AND requires both inputs high and OR requires at least one high.
  • NOT reverses the value of its single input.
Detailed Notes →Quick Revision →

XOR and XNOR Comparison

XOR and XNOR Comparison
XOR (Exclusive-OR)
Output = 1 when inputs are DIFFERENT (Odd 1s detector)
XNOR (Exclusive-NOR)
Output = 1 when inputs are THE SAME (Equivalence detector)
Explanation
  • XOR gives one when two input bits differ.
  • XNOR gives one when the two bits match.
Detailed Notes →Quick Revision →

K-Map Grouping Hierarchy

K-Map Grouping Hierarchy
Pair (Group of 2)
Eliminates 1 variable
Quad (Group of 4)
Eliminates 2 variables
Octet (Group of 8)
Eliminates 3 variables
Explanation
  • Groups contain powers of two cells and can wrap around an edge.
  • A larger valid group removes more variables from its product term.
Detailed Notes →Quick Revision →

Solved Example: 3-Variable K-Map

           BC
   A \    00   01   11   10
      +----+----+----+----+
   0  |  0 |  1 |  1 |  0 |  (m0, m1, m3, m2)
      +----+----+----+----+
   1  |  0 |  1 |  1 |  0 |  (m4, m5, m7, m6)
      +----+----+----+----+
Explanation
  • Neighbouring K-map cells differ in one input bit.
  • Combine adjacent ones to remove the variable that changes inside a group.
Detailed Notes →Quick Revision →

Architectural Difference: Memory & Feedback

Architectural Difference: Memory & Feedback
Combinational Circuit
Inputs → [ Logic Gates ] → Outputs
(No feedback, No memory)
Sequential Circuit
Inputs → [ Logic Gates ] → Outputs
           ▲             │
           └── [Memory] ◄┘ (Clocked Feedback)
Explanation
  • A combinational circuit depends on the present inputs.
  • A sequential circuit also uses stored state fed back from an earlier step.
Detailed Notes →Quick Revision →