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 outputCurrent 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 outputPrevious 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 ยท BHere, ยท represents the AND operation.
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
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 + BHere, + represents the OR operation in Boolean algebra.
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
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, thenQ = 1 - If
A = 1, thenQ = 0
| A | Q |
|---|---|
| 0 | 1 |
| 1 | 0 |
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 outputIts 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
| A | B | A + B | Q = (A + B)ฬ |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 |
Notice that the output is 1 only for the input combination 0, 0.
Consider two security sensors. Suppose the required output is 1 only when both sensors are inactive.
Sensor 1 = 0
Sensor 2 = 0
โ
NOR
โ
Output = 1If 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 outputIts 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
| A | B | A ยท B | Q = (A ยท B)ฬ |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Notice that the output is 0 only for the input combination 1, 1.
Imagine a device that should produce an OFF output only when two conditions are simultaneously ON.
Condition A = 1
Condition B = 1
โ
NAND
โ
Output = 0If 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.
| Gate | Combination | Output = 1 | Output = 0 |
|---|---|---|---|
| NOR | OR followed by NOT | All inputs are 0 | At least one input is 1 |
| NAND | AND followed by NOT | At least one input is 0 | All inputs are 1 |
Truth Table Comparison
| A | B | NOR | NAND |
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 0 | 0 |
A useful memory method is:
NOR โ NOT OR
NAND โ NOT ANDBoolean Expressions
The Boolean expressions for the gates in this topic are:
| Gate | Boolean expression |
|---|---|
| AND | Q = A ยท B |
| OR | Q = A + B |
| NOT | Q = Aฬ
|
| NOR | Q = (A + B)ฬ
|
| NAND | Q = (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 outputFor example, if an OR gate is followed by a NOT gate:
A, B
โ
OR
โ
NOT
โ
Qthe complete circuit is a NOR gate.
Similarly:
A, B
โ
AND
โ
NOT
โ
Qis 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ยฒ = 4For three binary inputs:
2ยณ = 8Therefore, 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
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
1only when all inputs are0. - NAND output is
0only when all inputs are1. - A truth table shows every possible input combination and its output.
- For
nbinary 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.