# Convert XOR gate to inverter. Can also act as `binary`

switch.

Lets review the truth-table of XOR gate gain.

Input A | Input B | XOR |
---|---|---|

0 | 0 | 0 |

0 | 1 | 1 |

1 | 0 | 1 |

1 | 1 | 0 |

Now from above table its clear that if we tie either of INputs A or B to 1 the xor gate will act as inverted when passed through the circuit.

**Example** Lets Tie Input A to 1, we have an inverter B below. Similiarly yuo can tie input B to 1 to get inverter A below.

Input A | Input B | XOR |
---|---|---|

1 | 0 | 1 |

1 | 1 | 0 |

Highlighted in greeen above. Some other sections you can review below.