OR vs EX-OR vs EX-NOR Logic Gates: A Comparison

logic gate
or gate
xor gate
ex-nor gate
digital circuit

This article explores the differences between OR, EX-OR (XOR), and EX-NOR logic gates, including their truth tables and logic symbols.

OR Logic Gate

The OR gate is a fundamental electronic circuit. It produces a “true” or high output (represented by 1) if one or more of its inputs are true. The OR operation is often represented by a plus sign (+).

OR Gate Symbol and Truth Table

OR logic gate

Figure: OR gate logic symbol

The following truth table summarizes the behavior of the OR gate:

Input-1Input-2Output
000
011
101
111

Table: OR gate truth table

In essence, the output OutputOutput of an OR gate with inputs Input1Input_1 and Input2Input_2 can be represented as:

Output=Input1+Input2Output = Input_1 + Input_2

EX-OR (XOR) Logic Gate

The Exclusive-OR (EX-OR or XOR) gate is a circuit that outputs “true” only if exactly one of its two inputs is true. If both inputs are true, or both are false, the output is false. The EX-OR operation is denoted by an encircled plus sign (⊕).

EX-OR Gate Symbol and Truth Table

EX-OR logic gate

Figure: EX-OR gate logic symbol

Here’s the truth table for the EX-OR gate:

Input-1Input-2Output
000
011
101
110

Table: EX-OR gate truth table

Mathematically, the EX-OR operation can be described as:

Output=Input1Input2Output = Input_1 \oplus Input_2

EX-NOR Logic Gate

The Exclusive-NOR (EX-NOR) gate is the inverse of the EX-OR gate. It outputs “true” if both inputs are the same (either both true or both false), and “false” if the inputs are different. The EX-NOR symbol is an EX-OR gate with a small circle at the output, indicating inversion.

EX-NOR Gate Symbol and Truth Table

EX-NOR logic gate

Figure: EX-NOR gate logic symbol

The EX-NOR gate’s truth table is as follows:

Input-1Input-2Output
001
010
100
111

Table: EX-NOR gate truth table

The EX-NOR operation can be represented as:

Output=Input1Input2Output = \overline{Input_1 \oplus Input_2}

This indicates that the output is the inverse (or complement) of the EX-OR operation.

Digital Circuits Interview Questions and Answers

Prepare for your digital circuits interview with these 10 key Q&As covering logic gates, flip-flops, combinational/sequential logic, multiplexers, counters, and more.

digital circuit
interview question
logic gate
CMOS Transistor Logic Circuits Explained

CMOS Transistor Logic Circuits Explained

Learn about CMOS transistors (NMOS & PMOS) and their role in building digital logic gates like inverters, AND, NAND, OR, NOR, XOR, and XNOR gates.

cmos
transistor
logic gate
Latch vs. Flip-Flop: Key Differences Explained

Latch vs. Flip-Flop: Key Differences Explained

Understand the core differences between latches and flip-flops in digital circuits, their triggering mechanisms, and when to use each for optimal performance.

latch
flip-flop
digital circuit