🔧

Understanding Combinational Logic Fundamentals

May 10, 2025

Lecture Notes on Combinational Logic

Introduction to Combinational Logic

  • Combinational logic consists of combinations of logic gates to create specialized truth tables.
  • Important logic gates include:
    • AND Gate: Outputs 1 only when all inputs equal 1.
    • OR Gate: Outputs 1 if any input equals 1.
    • Exclusive OR Gate (XOR): Outputs 1 if there is an odd number of 1s in the input.

Example of Combinational Logic

  • A practical example involves a classroom with:
    • Door sensors
    • Motion detectors
    • Glass break detectors
  • The alarm system monitors these sensors to trigger an alarm.

Alarm Triggering Conditions

  • Conditions to trigger the alarm:
    • Alarm goes off if:
      • Motion is detected
      • Door is open
      • Glass is broken
  • This scenario can be represented using an OR gate:
    • Inputs: Door (D), Motion (M), Glass (G)
    • Alarm triggers if any of these inputs are true.

System Armed Condition

  • An armed signal indicates whether the alarm system is active.
    • Set to 1 when armed, 0 when disarmed.
  • The new condition for the alarm:
    • The alarm goes off if the system is armed (A) AND (D OR M OR G) is true.

Circuit Representation

  • Circuit logic can be summarized:
    1. Use an OR gate for inputs D, M, G.
    2. Combine the output with the armed signal (A) using an AND gate.

Boolean Expression

  • The Boolean expression for this system is:
    • Alarm = A AND (D OR M OR G)
  • Consideration for glass break sensor:
    • If glass is broken, the alarm should also trigger regardless of other conditions.
  • New expression:
    • Alarm = (A AND (D OR M)) OR G

Order of Precedence in Logic Operations

  • Important to follow the order of operations:
    1. Parentheses
    2. AND (3) operations
    3. OR (+) operations
  • Similar to mathematical operations where multiplication comes before addition.

Steps for Combining Signals

  1. Combine D and M using an OR gate to get (D OR M).
  2. Combine the armed signal A with (D OR M) using an AND gate.
  3. Finally, combine the output with G using an OR gate to finalize the alarm condition.

Summary

  • The lecture covered the construction of combinational logic circuits using logical gates to monitor and trigger alarms based on specified conditions in a classroom environment.
  • The discussion included how to derive a Boolean expression and the importance of understanding order of operations in logic.