An EX-OR gate is a digital logic gate that performs exclusive disjunction.

It has two inputs and one output.

The output of an EX-OR gate is 1 if exactly one of the inputs is 1, and 0, if both inputs are 0 or both inputs, are 1.

In other words, the output is 1 if the inputs are different, and 0 if the inputs are the same.

The truth table for an EX-OR gate is as follows:

Input 1 | Input 2 | Output |
---|

0 | 0 | 0 |

0 | 1 | 1 |

1 | 0 | 1 |

1 | 1 | 0 |

EX-OR gates are often used in digital circuits to perform error detection and correction, and to implement Boolean functions such as addition and multiplication. They can also be used to implement gates such as AND and OR by using multiple EX-OR gates and inverters.