3-input XOR gate using 2-input XOR gates


A 3-input XOR gate can be implemented using 2-input XOR gates by cascading 2 2-input XOR gates. Two of the three inputs will feed one of the 2-input XOR gates. The output of the first gate will, then, be XORed with the third input to get the final output.

Let us say, we want to XOR three inputs A,B and C to get the output Z. First, XOR A and B together to obtain intermediate output Y. Then XOR Y and C to obtain Z. The schematic representation to obtain 3-input XOR gate by cascading 2-input XOR gates is shown in figure below:

Implementation of 3-input XOR gate using 2-input XOR gates




8 comments:

  1. This returns 1 if all 3 inputs are 1. It's a parity gate, not XOR.

    ReplyDelete
  2. Hi

    Yes, the most accepted functionality of a multi-input XOR gate is as an odd-parity checker. :-)

    ReplyDelete
  3. VLSI UNIVERSE is correct. The standard for a multiple input XOR gate is an odd-parity checker. It is also the most useful one.

    ReplyDelete
  4. how do i make it so that when all the inputs are on the output is off

    ReplyDelete
    Replies
    1. That means you want to implement a NAND gate

      Delete
    2. how do i implement nand gate in this?

      Delete
    3. Sorry, your query is not clear

      Delete
  5. Code of ex-or gate

    ReplyDelete

Thanks for your valuable inputs/feedbacks. :-)