Combinational Logic Gates and Switching Theory Study Guide
Overview of Combinational and Sequential Logic
Definition of Logic: Development of a logical conclusion based on known information.
Combinational Logic:
Refers to logic where the produced output depends solely on existing or present conditions of the inputs.
Can be implemented using logic gates exclusively.
Input Combinations Formula: The number of possible input combinations shown in rows of a truth table is determined by , where is the number of inputs.
Sequential Logic:
Refers to logic whose operation requires some form of memory device (such as flip-flops and latches).
Outputs depend not only on current existing or present input conditions, but also on previous input conditions.
Fundamentals of Logic Gates and Logic Families
General Logic Gate Concepts:
Logic gates serve as the foundational building blocks in digital electronics.
Regardless of the underlying technology family (CMOS or TTL), a logic gate is internally composed of an electronic circuit (usually transistor-based) designed to provide a preset logic function.
Terminal Structure: Logic gates feature exactly one output terminal. Except for the NOT gate (which has one input), logic gates may have two or more input terminals.
Input and Output Signal Conditions:
Input Statuses:
High Logic Level ()
Low Logic Level ()
Don't Care Status (): Indicates that a particular input has no effect on the circuit output.
Output Statuses:
High Logic Level ()
Low Logic Level ()
Indeterminate Condition: An unpredictable output condition caused by specific circuit design limitations (e.g., when both inputs to an active-high SR flip-flop are driven high simultaneously).
Truth Table Definition:
A tabulated list displaying all possible input and output combinations for a given logic circuit.
For an --input device, there are exactly possible input/output combination rows.
Advanced Low-Power Schottky TTL ( Series):
Propagation Delay:
Power Dissipation:
Maximum Clock Rate:
Fan-out (Same Series):
Fast TTL ( Series):
Propagation Delay:
Power Dissipation:
Maximum Clock Rate:
Fan-out (Same Series):
Inverter (NOT Gate) Integrated Circuits Matrix
Comprehensive Device Catalog for Inverters:
(TTL): Hex Inverter
(CMOS): Hex Inverter
(CMOS): Unbuffered Hex Inverter
(LS TTL): Hex Inverter
(LS TTL): Hex Inverter with Open-Collector (o.c.) outputs
(TTL): Hex Inverter with Open-Collector (o.c.) outputs
(LS TTL): Hex Schmitt Inverter
(CMOS): Hex Schmitt Inverter
(CMOS): Unbuffered Hex Inverting Buffer
(CMOS): Hex Inverter
(CMOS): Unbuffered Hex Inverter
(CMOS): Hex 3-state Inverter
(CMOS): Hex Schmitt Inverter
(LS TTL): Octal 3-state Schmitt Inverter
(CMOS): Hex Inverting Buffer
Detailed Specifications of Standard Logic Gates
Timing Diagram Principles:
Displays truth table behavior graphically over time.
Inputs and outputs are vertically aligned; horizontal axis denotes state changes across cycles or periods ().
Frame durations () may or may not be equal.
In combinational logic, time denotes non-absolute period intervals when input conditions occur (unlike sequential logic where time represents absolute microsecond or second points).
Inverter (NOT Gate):
Function: Complements the input logic signal (equivalent to 1's complement). Input Output ; Input Output
Schematic Symbol: Triangle with an inversion bubble at the output tip. A triangle without an inversion bubble represents a non-inverting buffer or driver.
Electrical Switching Analogue: A normally closed switch connected in parallel across the output load.
Common IC Package: / (14-pin DIP with 6 inverters; Pin 14 = , Pin 7 = GND).
OR Gate:
Function: Accepts 2 or more inputs. Output is high () when at least one input is . Output is low () only when all inputs are
Truth Table (2-Input): ; ; ;
Boolean Expression:
Electrical Switching Analogue: Parallel normally open switches in series with power supply and load.
Common IC Packages:
/ : Quad 2-Input OR Gate
: Quad 2-Input OR Gate
: Dual 4-Input OR Gate
: Triple 3-Input OR Gate
AND Gate:
Function: Accepts 2 or more inputs. Output is high () only when all inputs are high. Output is low () if any input is low.
Truth Table (2-Input): ; ; ;
Boolean Expression: or
Electrical Switching Analogue: Series normally open switches in series with power supply and load.
Common IC Packages:
/ : Quad 2-Input AND Gate
: Triple 3-Input AND Gate
: Quad 2-Input AND Gate
: Dual 4-Input AND Gate
NOR Gate (NOT-OR):
Function: Consists of an OR gate followed by an inverter. Output is high () only when all inputs are at logic low (). Output is low () if at least one input is high.
Truth Table (2-Input): ; ; ;
Boolean Expression:
Electrical Switching Analogue: Series normally closed switches connected across the load.
Common IC Packages:
/ : Quad 2-Input NOR Gate
: Dual 3-Input NOR Gate
: Quad 2-Input NOR Gate
: Dual 4-Input NOR Gate
NAND Gate (NOT-AND):
Function: Consists of an AND gate followed by an inverter. Output is low () only when all inputs are high (). Output is high () if any input is low.
Truth Table (2-Input): ; ; ;
Boolean Expression:
Electrical Switching Analogue: Parallel normally closed switches connected across the load.
Common IC Packages:
/ : Quad 2-Input NAND Gate
: Triple 3-Input NAND Gate
: Dual 4-Input NAND Gate
: Quad 2-Input NAND Gate
Exclusive-OR (XOR) Gate:
Function: Produces a high logic output () only when an odd number of inputs are high (odd parity). Output is low () when inputs are both low or both high (even parity).
Truth Table (2-Input): ; ; ;
Truth Table (3-Input): ; ; ; ; ; ; ;
Boolean Expression:
Applications: Code checking, code conversion, arithmetic binary addition.
Common IC Packages:
/ : Quad 2-Input XOR Gate
: Quad 2-Input XOR Gate
: Quad 2-Input XOR Gate
Exclusive-NOR (XNOR / ENOR) Gate:
Function: Complement of the XOR gate. Output is high () when inputs are identical (even parity). Referred to as the Equality Gate. Output is low () when inputs differ (odd parity).
Truth Table (2-Input): ; ; ;
Truth Table (3-Input): ; ; ; ; ; ; ;
Boolean Expression:
Common IC Packages:
/ : Quad 2-Input XNOR Gate
: Quad 2-Input Exclusive NOR Gate
Summary of Universal 2-Input Logic Gate Behaviors
NOT Gate: Any input produces an opposite output state.
OR Gate: High logic level on any input produces a high logic output.
NOR Gate: High logic level on any input produces a low logic output.
AND Gate: Low logic level on any input produces a low logic output.
NAND Gate: Low logic level on any input produces a high logic output.
XOR Gate: Output is high when one and only one input is high (high output if the total number of s is odd).
XNOR Gate: Output is high when inputs are equal (high output if the total number of s is even).
Practical Applications of Logic Gates
Applications of NOT Gates:
Used for switch state indicator inversion (e.g., Change Switch Position Off = Logic State, On = Logic State feeding LED Cathode driver circuit).
Applications of OR Gates:
Doorbell system triggering: Actuators connected to "Front Door" or "Back Door" pushbuttons activate the single doorbell output when either button is depressed.
Applications of AND Gates:
Industrial machinery safety interlock: Power converter activation requires Part Sensor signal AND Safety Switches signal simultaneously.
Applications of NOR Gates:
Mixing tank outlet control: Outlet valve logic remains deactivated when any sensor (Start Sensor, Level Sensors) detects high status (output active only when all input conditions are ).
Applications of NAND Gates:
Automobile interior dome light system: Actuated when any car door opens, pulling the corresponding NAND input to logic low to produce a high logic light output.
Applications of XOR Gates:
Dual-location stairway light control: Uses two 3-way switches (Switch A and Switch B). Toggling either switch flips the parity, thereby turning the stairway lamp on or off.
Applications of XNOR Gates:
Water level monitoring and alarm activation: Evaluates signals from a High Level Float and a Low Level Float. Triggers warning lamp / alarm output under specific matched float equality logic levels.
Discrete Logic Gate Implementations
Transistor Inverter (NOT Gate):
Circuit Structure: Single NPN bipolar junction transistor (e.g., ).
Resistors: base input resistor, collector pull-up resistor connected to supply.
Operation: Base high conducts transistor to ground (output ); base low cuts off transistor (output pulled up to ).
Discrete OR Gate Implementations:
Diode OR Gate: Diodes connected to inputs and , cathodes joined to load resistor driving a NPN transistor buffer stage with LED indicator and current limit resistor ().
Transistor OR Gate: Parallel NPN transistors () with separate base resistors ( and ) and shared collector output network.
Discrete AND Gate Implementations:
Transistor AND Gate: Series-connected NPN transistors () with base inputs and via resistors and collector pull-up.
Discrete NOR Gate Implementation:
Circuit Structure: Two NPN transistors () wired in parallel.
Resistors: Inputs and fed through base resistors; collectors tied together to a common pull-up resistor connected to .
Operation: Triggering either base pulls output voltage to ground.
Discrete NAND Gate Implementation:
Circuit Structure: Two NPN transistors ( / ) wired in series.
Resistors: Base inputs fed via resistors; top collector pulled up to or via or resistor.
Operation: Output grounds only when both transistor bases are driven high simultaneously.
Discrete XOR Gate Implementation:
Components: Transistor , Diodes , Resistors , , , Switches , DC Voltage source .
Discrete XNOR Gate Implementation:
Components: Transistor , Diodes , Resistors , , , , Switches , DC Voltage source .
Equivalent Logic Circuit Configurations and Boolean Transformations
XOR Gate Equivalent Logic Constructions:
Standard Logic Gate Design #1: (constructed using 2 NOT gates, 2 AND gates, and 1 OR gate).
Standard Logic Gate Design #2 (NAND-Only):
XNOR Gate Equivalent Logic Constructions:
Standard Logic Gate Design #1:
Standard Logic Gate Design #2:
Operational Relationship: Placing an inverter at the output of an XNOR equivalent circuit yields an XOR output, and placing an inverter at the output of an XOR equivalent circuit yields an XNOR output.
Gate Conversions Using Inverters (De Morgan's Laws):
Inverting Outputs:
AND Gate with Inverted Output
OR Gate with Inverted Output
Inverting Inputs:
AND Gate with Inverted Inputs (i.e., )
OR Gate with Inverted Inputs (i.e., )
NAND Gate with Inverted Inputs (i.e., )
NOR Gate with Inverted Inputs (i.e., )
Inverting Inputs and Outputs (Double Negation Equivalences):
Inverters at Inputs + AND Gate + Output Inverter
Inverters at Inputs + OR Gate + Output Inverter
Inverters at Inputs + NAND Gate + Output Inverter
Inverters at Inputs + NOR Gate + Output Inverter
Universal Gate Synthesis (NAND and NOR)
Universal NAND Gate Principles:
The 2-input NAND gate is classified as a universal gate because combinations of NAND gates can implement all 6 other logic gate functions (NOT, AND, OR, NOR, XOR, XNOR).
SSD (Small Scale Integration) designs frequently utilize NAND gates exclusively.
Basic Logic Gate Synthesis Using NAND Gates:
NOT Gate: Connect inputs together:
AND Gate: NAND gate followed by a NAND inverter:
OR Gate: Invert inputs using NAND inverters, then feed into a NAND gate:
NOR Gate: NAND OR-configuration followed by a NAND inverter:
XOR Gate: Constructed using 4 NAND gates.
XNOR Gate: Constructed using 5 NAND gates (XOR configuration followed by a NAND inverter).
Universal NOR Gate Principles:
The 2-input NOR gate is also a universal gate capable of representing all other logic gate functions.
Basic Logic Gate Synthesis Using NOR Gates:
NOT Gate: Connect inputs together:
OR Gate: NOR gate followed by a NOR inverter:
AND Gate: Invert inputs using NOR inverters, then feed into a NOR gate:
NAND Gate: NOR AND-configuration followed by a NOR inverter:
Circuit Synthesis and Conversion Examples:
Synthesis Example 1: Convert to a NAND-only logic circuit.
Conversion Steps: Apply double negation and De Morgan's Law:
Circuit Implementation: First NAND gate computes , second NAND inverter computes , third NAND gate combines inputs to produce
Synthesis Example 2: High output required when either or is high, but is low.
Initial Expression:
Standard Gate Logic: 1 OR gate for , 1 NOT gate for , 1 AND gate to multiply.
NAND-Only Conversion: Convert operations into products: , giving
Synthesis Example 3: Simplification and synthesis of using NAND gates only.
Boolean Simplification Step 1:
Boolean Simplification Step 2:
Boolean Simplification Step 3:
NAND Conversion: Apply double negation:
Implementation: 1 NAND gate computes , 1 NAND inverter computes , 1 final NAND gate produces output
Synthesis Example 4: Convert to a NOR-only logic circuit.
Conversion Steps: Apply double negation to convert multiplication to addition terms:
NOR-Only Implementation: NOR gate computes , NOR inverter computes , combined in a NOR gate, followed by a final NOR inverter output stage.