Comprehensive Study Guide on Combinational Logic Gates
Introduction to Logic Circuits and Switching Theory
Digital electronics and logic system design rely on formal mathematical structures to manipulate logical statements and electrical signals. Software tools and analyzer platforms are used to analyze, minimize, and synthesize digital circuits:
Karnaugh Map Analyzer (kma): Software tool used to minimize Boolean functions into simplified Sum-of-Products (SOP) or Product-of-Sums (POS) forms. It supports up to multi-variable functions (e.g., 2, 3, or 4 variables , , ) to generate minimal algebraic expressions and logic gate configurations.
DigitalWorks (Digital Works Standard Edition): Circuit design software created by David John Barker used for simulating digital logic circuits, digital counters, and waveform analysis.
Circuit Wizard (CktWiz): Developed by New Wave Concepts Limited, used for logic design, circuit schematic creation, and interactive simulation of combinational and sequential logic systems.
Fundamentals of Combinational vs. Sequential Logic
Digital logic systems are broadly classified into two categories based on how outputs depend on system inputs over time:
Logic: The development of a logical conclusion based on known or provided information.
Combinational Logic
Definition: A type of digital logic where the produced output at any given instant depends solely and exclusively on the existing (present) conditions of the inputs.
Implementation: Combinational logic circuits are constructed using standard logic gates alone, without any memory elements or feedback loops.
Input Combinations: For a system with input variables, the total number of possible unique input combinations in a truth table is given by the formula:
Sequential Logic
Definition: A type of digital logic whose operation depends not only on the current (present) input conditions, but also on previous input conditions (past history or state).
Memory Requirement: Sequential logic requires memory devices such as flip-flops (e.g., SR flip-flop, D flip-flop) or latches to store state information.
Clock Signals and Frequency Division: Sequential circuits often utilize clock signals operating at set primary frequencies () or divided frequencies (e.g., , ) to synchronize state transitions.
Logic Gate Concepts and Physical Characteristics
Logic gates serve as the fundamental building blocks of digital electronic systems.
Primary Function: A logic gate accepts discrete physical electrical signals representing logic high () or logic low () and provides a specific pre-set logic output based on its internal design.
Terminal Configuration: All standard logic gates have exactly one output terminal. Logic gates may have one input terminal (in the case of the NOT gate) or two or more input terminals (in the case of AND, OR, NAND, NOR, XOR, and XNOR gates).
Internal Structure: Regardless of the underlying fabrication technology or logic family (e.g., CMOS, TTL), logic gates are internally constructed using electronic switching components, primarily transistor-based circuits (such as BJT or MOSFET switches).
Logic Families and Performance Parameter Comparison
Digital integrated circuits (ICs) are manufactured using different internal fabrication technologies known as logic families. Logic families dictate performance characteristics such as propagation delay, power consumption, operating frequency, and voltage thresholds.
Classification of Logic Families
Bipolar Technology: Uses Bipolar Junction Transistors (BJTs).
Saturated Bipolar Logic: Resistor-Transistor Logic (RTL), Diode-Transistor Logic (DTL), Transistor-Transistor Logic (TTL).
Non-Saturated Bipolar Logic: Schottky TTL, Emitter-Coupled Logic (ECL).
Unipolar Technology: Uses Field-Effect Transistors (FETs).
PMOS (P-channel MOSFET)
NMOS (N-channel MOSFET)
CMOS (Complementary MOSFET — combining N-channel and P-channel devices)
Transistor-Transistor Logic (TTL) Sub-Families
74: Standard TTL
74S: Schottky TTL
74LS: Low-Power Schottky TTL
74AS: Advanced Schottky TTL
74ALS: Advanced Low-Power Schottky TTL
74F: Fast TTL
Comprehensive TTL Family Performance Comparison
Performance Rating / Parameter | 74 (Standard) | 74S (Schottky) | 74LS (Low-Power Schottky) | 74AS (Advanced Schottky) | 74ALS (Advanced Low-Power Schottky) | 74F (Fast) |
|---|---|---|---|---|---|---|
Propagation Delay () | ||||||
Power Dissipation () | ||||||
Max. Clock Rate () | ||||||
Fan-Out (Same series) | ||||||
() | ||||||
() | ||||||
() | ||||||
() |
Hex Inverter Integrated Circuits Across Families
Device Device Number | Technology Family | Internal Configuration / Description |
|---|---|---|
7404 | TTL | Hex Inverter |
74HC04 | CMOS | Hex Inverter |
74HCU04 | CMOS | Unbuffered Hex Inverter |
74LS04 | Low-Power Schottky TTL | Hex Inverter |
74LS05 | Low-Power Schottky TTL | Hex Inverter with Open-Collector Output |
7406 | TTL | Hex Inverter with Open-Collector Output |
74LS14 | Low-Power Schottky TTL | Hex Schmitt-Trigger Inverter |
74HC14 | CMOS | Hex Schmitt-Trigger Inverter |
4049UB | CMOS | Unbuffered Hex Inverting Buffer |
74HC4049 | CMOS | Hex Inverting Buffer |
4069UB | CMOS | Unbuffered Hex Inverter |
4502B | CMOS | Hex 3-State Inverter |
40106B | CMOS | Hex Schmitt-Trigger Inverter |
74LS240 | Low-Power Schottky TTL | Octal 3-State Schmitt Inverter |
Analysis Tools: Truth Tables and Timing Diagrams
Truth Table Principles
Definition: A tabulated list displaying all possible input variable combinations alongside the resulting output logic state for a given logic circuit.
Input Combinations: For an --input circuit, there are rows.
Input States: Inputs are designated as High (), Low (), or Don't Care ().
Don't Care (): Indicates that a specific input state has no effect on the resulting output value.
Output States: Outputs are designated as High (), Low (), or Indeterminate.
Indeterminate State: An unpredictable status arising from circuit operational constraints or invalid input combinations. For example, in an SR flip-flop, setting both Set () and Reset () inputs to High () creates an invalid, arbitrary, or unpredictable output condition.
SR Flip-Flop Truth Table
(Set) | (Reset) | Functional State | ||
|---|---|---|---|---|
Storage State (No Change) | ||||
Reset State | ||||
Set State | ||||
Intermediate / Indeterminate State (Invalid) |
Timing Diagram Principles
Definition: A graphical representation displaying input and output logic waveforms aligned along a shared horizontal axis representing relative time.
Alignment: Inputs and outputs are vertically aligned to show instantaneous state changes across time intervals or periods ().
Time Context in Combinational Logic: Time horizontal spacing represents relative sequence periods during which specific input combinations occur. Time frame durations () may or may not be equal in length. Unlike sequential logic, combinational logic timing diagrams do not require absolute time values (e.g., microseconds or nanoseconds).
Standard Logic Gates: Fundamentals, Truth Tables, and Integrated Circuits
Inverter (NOT Gate)
Function: Performs logic negation or complementation. The output is the 1's complement of the input signal.
Terminal Count: 1 Input, 1 Output.
Boolean Expression: or
Symbol: A triangle pointing right with an inversion circle (bubble) at the output tip. Without the bubble, the symbol represents a non-inverting buffer/driver.
Mechanical Switch Analogy: A normally closed (NC) switch connected across (in parallel with) the output line.
Truth Table: NOT Gate
Input | Output |
|---|---|
Standard IC Models (Inverters)
7404: Hex Inverter (TTL)
7405: Hex Inverter with Open-Collector Outputs
4009: Hex Inverting Buffer
4049: Hex Inverting Buffer
4069: Hex Inverting Buffer
OR Gate
Function: Performs logical disjunction. Produces a High () output when at least one input is High (). Produces a Low () output only when all inputs are Low ().
Terminal Count: 2 or more Inputs, 1 Output.
Boolean Expression:
Mechanical Switch Analogy: Two or more normally open (NO) switches wired in parallel.
Truth Table: 2-Input OR Gate
Input | Input | Output |
|---|---|---|
Standard IC Models (OR Gates)
7432 / 74LS32: Quad 2-Input OR Gate
4071: Quad 2-Input OR Gate
4072: Dual 4-Input OR Gate
4075: Triple 3-Input OR Gate
AND Gate
Function: Performs logical conjunction. Produces a High () output only when all inputs are High (). If one or more inputs are Low (), the output is Low ().
Terminal Count: 2 or more Inputs, 1 Output.
Boolean Expression: or
Mechanical Switch Analogy: Two or more normally open (NO) switches wired in series.
Truth Table: 2-Input AND Gate
Input | Input | Output |
|---|---|---|
Standard IC Models (AND Gates)
7408 / 74LS08: Quad 2-Input AND Gate
4073: Triple 3-Input AND Gate
4081: Quad 2-Input AND Gate
4082: Dual 4-Input AND Gate
NOR Gate
Function: NOT-OR gate. Produces a High () output only when all inputs are Low (). Produces a Low () output when at least one input is High ().
Structure: Equivalent to an OR gate followed directly by an inverter.
Boolean Expression:
Mechanical Switch Analogy: Two or more normally closed (NC) switches wired in series.
Truth Table: 2-Input NOR Gate
Input | Input | Output |
|---|---|---|
Standard IC Models (NOR Gates)
7402 / 74LS02: Quad 2-Input NOR Gate
4000: Dual 3-Input NOR Gate
4001: Quad 2-Input NOR Gate
4002: Dual 4-Input NOR Gate
NAND Gate
Function: NOT-AND gate. Produces a Low () output only when all inputs are High (). When one or more inputs are Low (), the output is High ().
Structure: Equivalent to an AND gate followed directly by an inverter.
Boolean Expression:
Mechanical Switch Analogy: Two or more normally closed (NC) switches wired in parallel.
Truth Table: 2-Input NAND Gate
Input | Input | Output |
|---|---|---|
Standard IC Models (NAND Gates)
7400 / 74LS00: Quad 2-Input NAND Gate
7410: Triple 3-Input NAND Gate
7420: Dual 4-Input NAND Gate
4011: Quad 2-Input NAND Gate
Derived Logic Gates: XOR and XNOR
Exclusive-OR (XOR) Gate
Function: Produces a High () output only when the inputs are different (i.e., when an odd number of inputs are High). Produces a Low () output when inputs are identical (even parity of 1s).
Boolean Expression:
Applications: Code checking, parity generators/checkers, binary adders, and code converters.
Truth Table: 2-Input XOR Gate
Input | Input | Output | Parity Condition |
|---|---|---|---|
Even Parity of 1s (0 ones) | |||
Odd Parity of 1s (1 one) | |||
Odd Parity of 1s (1 one) | |||
Even Parity of 1s (2 ones) |
Standard IC Models (XOR Gates)
7486 / 74LS86: Quad 2-Input XOR Gate
4030: Quad 2-Input XOR Gate
4070: Quad 2-Input XOR Gate
Exclusive-NOR (XNOR) Gate
Function: Also known as the Equality Gate. Produces a High () output when both inputs are equal (both Low or both High, i.e., even parity of 1s). Produces a Low () output when inputs are different (odd parity of 1s).
Boolean Expression:
Truth Table: 2-Input XNOR Gate
Input | Input | Output | Parity Condition |
|---|---|---|---|
Even Parity of 1s | |||
Odd Parity of 1s | |||
Odd Parity of 1s | |||
Even Parity of 1s |
Standard IC Models (XNOR Gates)
74266 / 74LS266: Quad 2-Input XNOR Gate
4077: Quad 2-Input Exclusive NOR Gate
Summary of Universal Properties for 2-Input Logic Gates
NOT: Any input logic state produces the opposite logic output state.
OR: A High () on any input produces a High () output.
NOR: A High () on any input produces a Low () output.
AND: A Low () on any input produces a Low () output.
NAND: A Low () on any input produces a High () output.
XOR: Output is High () when one and only one input is High () (Odd Parity of 1s).
XNOR: Output is High () when inputs are identical (Even Parity of 1s).
Real-World Applications of Logic Gates
Inverter (NOT) Gate Application:
Logic State Changing Switch: Used to invert control signals between active-high and active-low domains ( supply: Off = , On = ).
Cathode Driver / Logic Level Inversion in display circuits.
OR Gate Application:
Doorbell Chime System: Front Door push-button OR Back Door push-button triggers the chime circuit.
AND Gate Application:
Industrial Machine Safety System: Requires both a Part Sensor signal AND Safety Switches engaged simultaneously to enable the Power Converter circuit.
NOR Gate Application:
Industrial Mixing Tank Control System: Connects multiple level sensors (e.g., Start Sensor, Tank Sensors) to control the Mixing Tank Outlet valve.
NAND Gate Application:
Automotive Interior Light / Warning System: Door switches pull inputs Low when opened. The NAND gate responds by outputting a High signal to activate the car interior dome lamp or warning light.
XNOR Gate Application:
Fluid Level Monitoring Alarm Circuit: Uses a High Level Float switch and Low Level Float switch connected to an XNOR gate. When float switch states match, the alarm status is modulated.
XOR Gate Application:
3-Way Stairway Light Switching: Allows a hallway or stairway light fixture to be toggled independently from two distinct switches (Switch A and Switch B).
Discrete Logic Circuit Implementations
Discrete logic gates are implemented using individual transistors, resistors, and diodes prior to integrated circuit packaging:
Discrete Inverter Gate: Uses a single NPN bipolar junction transistor (e.g., 2N3904 or 2N2222) configured as a common-emitter switch. The base is driven via a base resistor ( or ), with a collector pull-up resistor ( or ) connected to a positive supply voltage ( or ).
Transistor OR Gate: Built using two NPN transistors wired in parallel with collectors tied to and emitters tied together across a shared emitter load resistor ().
Diode OR Gate: Built using two parallel diodes connected to a single load resistor.
Transistor AND Gate: Built using two NPN transistors connected in series (totem-pole fashion) sharing a single load path.
Diode AND Gate: Built using two diodes connected to a positive supply rail through a common pull-up resistor.
Transistor NOR Gate: Two NPN transistors in parallel sharing a single collector pull-up resistor () connected to . Activating either transistor pulls the output to ground.
Transistor NAND Gate: Two NPN transistors in series connected to a common collector pull-up resistor () connected to . Both transistors must conduct to pull the output to ground.
Discrete XOR Gate: Constructed using discrete switching transistors (e.g., ), diodes (), switches (), resistors (, , ), and a source ().
Discrete XNOR Gate: Constructed using switching transistors (), diodes (), switches (), resistors (, , , ), and a source ().
Equivalent Logic Gates and Gate Transformations
De Morgan's Equivalences and Inverter Transformations
Inverting gate inputs, outputs, or both creates functionally equivalent logic operations based on De Morgan's Laws:
Inverting Gate Outputs
AND + Inverter at Output = NAND gate
OR + Inverter at Output = NOR gate
NAND + Inverter at Output = AND gate (Double Negation: )
NOR + Inverter at Output = OR gate (Double Negation: )
Inverting Gate Inputs
Inverters at Inputs + AND = NOR gate ()
Inverters at Inputs + OR = NAND gate ()
Inverters at Inputs + NAND = OR gate ()
Inverters at Inputs + NOR = AND gate ()
Inverting Inputs and Outputs Simultaneously
Inverters at Inputs + AND + Output Inverter = OR gate ()
Inverters at Inputs + OR + Output Inverter = AND gate ()
Inverters at Inputs + NAND + Output Inverter = NOR gate ()
Inverters at Inputs + NOR + Output Inverter = NAND gate ()
Exclusive Gate Implementations
XOR Implementation Options
AND-OR-INVERT Combination: Requires 2 Inverters, 2 AND gates, and 1 OR gate.
Alternative NAND/NOR Realization:
Conversion to XNOR: Adding an inverter to the output of an XOR implementation transforms it directly into an XNOR gate.
XNOR Implementation Options
AND-OR Combination: Requires 2 Inverters, 2 AND gates, and 1 OR gate.
Conversion to XOR: Adding an inverter to the output of an XNOR implementation transforms it directly into an XOR gate.
Universal Logic Gates (NAND and NOR Universal Implementations)
Universal logic gates can recreate every other standard logic operation (NOT, AND, OR, NOR, XOR, XNOR) without using any other gate types.
The Universal NAND Gate
The 2-input NAND gate is one of the most widely used versatile gates in digital logic, frequently employed in Small Scale Integration (SSI) designs.
Synthesizing Standard Logic Functions Using Only NAND Gates
NOT (Inverter): Connect all inputs of the NAND gate together to a single variable signal:
AND Gate: Feed the output of a 2-input NAND gate into a second NAND gate configured as an inverter:
OR Gate: Invert each input variable using NAND inverters before driving a 2-input NAND gate (De Morgan's Theorem):
NOR Gate: Pass inverted inputs into a NAND gate, then invert the resulting output:
XOR Gate: Constructed using 4 NAND gates:
XNOR Gate: Constructed using 5 NAND gates (XOR followed by a NAND inverter).
Universal NAND Gate Implementation Examples
Example 1: NAND Realization for
Boolean Algebraic Reduction:
NAND Transformation Circuit Steps:
Drive inputs and into a NAND gate to produce .
Pass input through a NAND inverter to obtain .
Drive and into a final NAND gate to obtain the expression:
Pass the output through a NAND inverter to obtain the finalized output:
Example 2: Condition for High Output when or is High, but is Low
Initial Boolean Expression:
Conversion Strategy: Convert all OR operations into NAND operations via De Morgan's laws:
NAND Circuit Implementation:
Invert input using NAND inverter .
Invert input using NAND inverter .
Drive and into a NAND gate \rightarrow A + B$.\n 4. Invert input C\rightarrow \overline{C}.\n 5. Drive (A+B)\overline{C} into a NAND gate followed by a NAND inverter to perform the conjunction:\n X = (A + B)\overline{C}\n\n### Example 3: Simplifying and Converting X = [A + (A+B)][B + (B+C)]\n- **Step 1: Simplify Expression using Boolean Algebra Rules:**\n A + (A + B) = A + B\n B + (B + C) = B + C\n X = (A + B)(B + C) = AB + AC + BB + BC\n Since BB = B:\n X = B(1 + A + C) + AC\n Since 1 + A + C = 1:\n X = B + AC\n- **Step 2: Convert X = B + AC for NAND-only implementation:**\n X = \overline{\overline{B + AC}} = \overline{\overline{B} \cdot \overline{AC}}\n- **Step 3: NAND Gate Assembly:**\n 1. Pass inputs AC\overline{AC}.\n 2. Pass input B\overline{B}.\n 3. Drive \overline{B}\overline{AC} into a NAND gate to output:\n X = \overline{\overline{B} \cdot \overline{AC}} = B + AC\n\n---\n\n## The Universal NOR Gate and Implementation Examples\n\nLike the NAND gate, the 2-input NOR gate is a universal gate capable of building all logic operations.\n\n### Conversion Strategy for NOR Logic\n- Express Boolean equations using addition/disjunction (+) operators as much as possible.\n\n### Example 4: Universal NOR Realization for X = (A + B)C\n- **Step 1: Algebraic Transformation into NOR format:**\n X = \overline{\overline{(A + B)C}} = \overline{\overline{A + B} + \overline{C}}\n- **Step 2: NOR Gate Circuit Implementation:**\n 1. Drive inputs AB\overline{A + B}.\n 2. Pass input C\overline{C}.\n 3. Pass \overline{A + B}\overline{C} into a final NOR gate to yield:\n X = \overline{\overline{A + B} + \overline{C}} = (A + B)C$$