ITKokka
Lesson 4 ยท Note 3

Combinational Logic Gates

๐Ÿ“Œ The Short Note

Download

๐Ÿ“– Explanation

Combinational Logic Gates

Combinational logic circuits are formed by combining basic logic gates such as AND, OR, and NOT to produce a required output.

The output of a combinational logic circuit depends only on the current input values. It does not depend on previous input values.

This concept is important when analysing digital circuits because a circuit can be designed to produce a specific output for each possible combination of inputs.

Key Idea: In a combinational logic circuit, the output depends only on the current inputs, not on previous inputs.

What Are Combinational Logic Gates?

A combinational logic circuit is a digital circuit created by connecting logic gates together to perform a required logical operation.

The basic gates used to construct these circuits are:

  • AND gate
  • OR gate
  • NOT gate

By combining these gates, more complex logic operations can be produced. NAND and NOR are examples of gates formed by combining a basic gate with a NOT operation.

Basic logic gates
      โ†“
AND + OR + NOT
      โ†“
Combined logic operations
      โ†“
Required output

Current Inputs and Output

A key characteristic of combinational logic is that the output is determined by the inputs that are present at that moment.

Current inputs
      โ†“
Logic operation
      โ†“
Current output

Previous input values are not stored and do not determine the next output.

Basic Gates Used to Form Combinational Gates

AND Gate

An AND gate produces an output of 1 only when all inputs are 1.

For two inputs:

Q = A ยท B

Here, ยท represents the AND operation.

ABQ
000
010
100
111

The AND operation can therefore be remembered as:

AND โ†’ all inputs must be 1.

OR Gate

An OR gate produces an output of 1 when at least one input is 1.

For two inputs:

Q = A + B

Here, + represents the OR operation in Boolean algebra.

ABQ
000
011
101
111

The OR operation can therefore be remembered as:

OR โ†’ at least one input must be 1.

NOT Gate

A NOT gate produces the opposite or complement of its input.

Q = Aฬ…

Therefore:

  • If A = 0, then Q = 1
  • If A = 1, then Q = 0
AQ
01
10

The NOT operation can therefore be remembered as:

NOT โ†’ opposite value.


NOR Gate

A NOR gate is a combination of an OR gate followed by a NOT gate.

OR gate
   โ†“
NOT gate
   โ†“
NOR output

Its Boolean expression is:

Q = (A + B)ฬ…

This means:

Q = NOT (A OR B)

How the NOR Gate Works

First, the two inputs are processed by the OR operation. The result is then inverted by the NOT operation.

Therefore, a NOR gate produces an output of 1 only when all inputs are 0.

NOR Truth Table

ABA + BQ = (A + B)ฬ…
0001
0110
1010
1110

Notice that the output is 1 only for the input combination 0, 0.

Example: Security sensors

Consider two security sensors. Suppose the required output is 1 only when both sensors are inactive.

Sensor 1 = 0
Sensor 2 = 0
      โ†“
     NOR
      โ†“
Output = 1

If either sensor becomes active and changes to 1, the NOR output becomes 0.

Key Idea: NOR = NOT OR. A NOR gate produces 1 only when all inputs are 0.


NAND Gate

A NAND gate is a combination of an AND gate followed by a NOT gate.

AND gate
   โ†“
NOT gate
   โ†“
NAND output

Its Boolean expression is:

Q = (A ยท B)ฬ…

This means:

Q = NOT (A AND B)

How the NAND Gate Works

First, the inputs are processed by the AND operation. The result is then inverted by the NOT operation.

Therefore, a NAND gate produces an output of 0 only when all inputs are 1.

NAND Truth Table

ABA ยท BQ = (A ยท B)ฬ…
0001
0101
1001
1110

Notice that the output is 0 only for the input combination 1, 1.

Example: Two-condition control system

Imagine a device that should produce an OFF output only when two conditions are simultaneously ON.

Condition A = 1
Condition B = 1
      โ†“
     NAND
      โ†“
Output = 0

If either condition changes to 0, the NAND output becomes 1.

Key Idea: NAND = NOT AND. A NAND gate produces 0 only when all inputs are 1.


NAND and NOR Comparison

NAND and NOR are both formed by adding a NOT operation to another basic gate, but their logical behaviour is different.

GateCombinationOutput = 1Output = 0
NOROR followed by NOTAll inputs are 0At least one input is 1
NANDAND followed by NOTAt least one input is 0All inputs are 1

Truth Table Comparison

ABNORNAND
0011
0101
1001
1100

A useful memory method is:

NOR  โ†’ NOT OR
NAND โ†’ NOT AND

Boolean Expressions

The Boolean expressions for the gates in this topic are:

GateBoolean expression
ANDQ = A ยท B
ORQ = A + B
NOTQ = Aฬ…
NORQ = (A + B)ฬ…
NANDQ = (A ยท B)ฬ…

The bar over an expression represents the NOT/complement operation.

Analysing a Combinational Circuit

When an examination question gives a circuit made from several gates, analyse it from the inputs towards the final output.

Use this sequence:

Identify inputs
      โ†“
Apply the first gate operation
      โ†“
Use that result as the next input
      โ†“
Continue through the circuit
      โ†“
Find the final output

For example, if an OR gate is followed by a NOT gate:

A, B
 โ†“
OR
 โ†“
NOT
 โ†“
Q

the complete circuit is a NOR gate.

Similarly:

A, B
 โ†“
AND
 โ†“
NOT
 โ†“
Q

is a NAND gate.

Truth Tables in Combinational Logic

A truth table lists all possible combinations of input values and shows the output produced for each combination.

For two binary inputs, the number of possible combinations is:

2ยฒ = 4

For three binary inputs:

2ยณ = 8

Therefore, a circuit with n binary inputs has:

2โฟ

possible input combinations.

Truth tables are especially useful for checking whether a circuit produces the expected output for every possible input state.

Real-World Applications

Combinational logic is used in many digital systems where outputs must be generated from current input conditions.

Examples include:

  • Control circuits
  • Alarm systems
  • Sensor-based systems
  • Digital electronic devices
  • Computers and calculators
  • Decision-making circuits
Example: Sensor-based security system

Suppose two sensors provide inputs to a logic circuit. The required alarm behaviour can be represented using combinations of AND, OR, and NOT operations.

The sensors provide the current input values, and the logic circuit produces the required output according to those values.

Exam-Focused Points

Key Idea: A combinational logic circuit's output depends on the current input values.

Key Idea: NOR = OR + NOT and gives 1 only when all inputs are 0.

Key Idea: NAND = AND + NOT and gives 0 only when all inputs are 1.

Quick Revision

  • Combinational logic circuits are formed by combining logic gates.
  • Basic gates include AND, OR, and NOT.
  • A NOR gate is an OR gate followed by a NOT gate.
  • A NAND gate is an AND gate followed by a NOT gate.
  • NOR output is 1 only when all inputs are 0.
  • NAND output is 0 only when all inputs are 1.
  • A truth table shows every possible input combination and its output.
  • For n binary inputs, there are 2โฟ possible input combinations.
  • The output of combinational logic depends on the current inputs, not previous inputs.

Summary

A combinational logic circuit is produced by combining logic gates to perform a required logical operation. Its output is determined only by the current input values.

The NOR gate combines OR and NOT operations and produces 1 only when all inputs are 0. The NAND gate combines AND and NOT operations and produces 0 only when all inputs are 1.

For examinations, students should be able to identify the gates, write their Boolean expressions, complete their truth tables, and determine the output of a circuit from its current inputs.

Share:
โ† Basic Logic GatesBoolean Expressions & Logic Circuits โ†’