Complete Notes on Digital Logic
Complete Notes on Digital Logic
Digital Logic is the foundation of modern computing and electronics, dealing with binary numbers (0s and 1s)
and logical operations. Below is a detailed set of notes covering all the key topics in Digital Logic.
2. Logic Gates
Logic gates are electronic circuits that perform logical operations on one or more inputs to produce an output.
Basic Gates:
Gate Symbol Truth Table
AND A ⋅ B A
0
0
1
1
OR A + B A
0
0
1
1
NOT ¬A A
0
Gate Symbol Truth Table
1
Other Gates:
• NAND: The complement of AND.
• NOR: The complement of OR.
• XOR (Exclusive OR): Output is 1 when inputs are different.
• XNOR (Exclusive NOR): Output is 1 when inputs are the same.
6. Flip-Flops
A flip-flop is a basic digital memory circuit that can store one bit of data. Flip-flops are used in registers and
counters.
Types of Flip-Flops:
• SR Flip-Flop (Set-Reset): Has two inputs (S and R). It stores a bit of data until set or reset.
• D Flip-Flop (Data): Stores the value of the input data (D) on the clock pulse.
• JK Flip-Flop: A more versatile flip-flop that can be used for a variety of applications, like toggling.
• T Flip-Flop: A single-bit toggle flip-flop. It changes state on every clock pulse when the input T is high.
Flip-Flop Truth Table (SR Flip-Flop):
S R Q (Next)
0 0 Q (Previous)
010
101
1 1 Invalid
8. Memories
Digital memory is used to store data in digital circuits. The main types of memory are:
• ROM (Read-Only Memory): Permanent storage, data cannot be modified easily.
• RAM (Random-Access Memory): Volatile memory, data is lost when the power is turned off.
• Flash Memory: Non-volatile memory that can be electrically erased and reprogrammed.
These notes cover the fundamental aspects of digital logic, providing the necessary theoretical background
and practical examples to understand how digital systems work. Feel free to refer to the truth tables and
diagrams for better clarity on how logic circuits and devices function.