# Question Video: Evaluating the Output of Multiple XOR Gates Using Truth Tables Physics

The diagram shows two XOR gates connected as part of a logic circuit. The truth table shows the output for the different combinations of the inputs. What is the value of ๐ in the table?

05:24

### Video Transcript

The diagram shows two XOR gates connected as part of a logic circuit. The truth table shows the output for the different combinations of the inputs. What is the value of ๐ in the table?

Okay, so, before we get to answering this question, we should first have a look at the set-up thatโs been given to us in the diagram. So, what weโve been given is an XOR gate which has two inputs, input A and B, and the output of this XOR gate becomes one of the inputs of another XOR gate. As well as, of course, input C which is an independent input into the second XOR gate. And then, the output of the second XOR gate has been given to us in the truth table, based on the values of input A, B, and C.

Now before we have a look at the truth table, letโs have a look at what an XOR gate actually does. So, an XOR gate, otherwise known as an exclusive OR gate, behaves according to this truth table. Now an XOR gate has two inputs, which weโll call as a general term input ๐ผ and input ๐ฝ. So, if the first input, input ๐ผ, is zero and the second input, input ๐ฝ, is also zero, then the output ends up being zero. If the first input is zero and the second input is one, however, then the output ends up being one.

If the first input is one this time and the second input is zero, then the output ends up being one yet again. And if both the inputs are one, then the output is zero. This is why itโs known as an exclusive OR gate. Because in order for the output to be one, then either the first input or the second input need to be one, exclusively. In other words, one of the inputs must be one in order for the output to be one. But if theyโre both one, then the output is zero, hence the exclusivity.

This is why an XOR gate is very slightly different to an OR gate. And the only difference between an OR gate and an XOR gate is that for an OR gate this value of the output wouldโve been one as well.

But anyway, so weโve got two XOR gates connected in this fashion. So, letโs try and find the value of ๐ in the table. Now, looking at the table, we can see that ๐ is here. And that value is the value of the output which corresponds to an input A-value of zero, an input B-value of one, and an input C-value of one. In other words, if input A is set to zero, if input B is set to one, and if input C is set to one, then the output is going to end up being ๐. So, letโs figure out the value of ๐.

Letโs do this step-by-step by first considering the first XOR gate. Now in this first XOR gate, the first input value is zero and the second input value is one. That corresponds to this row of the table. The value of the first input is zero. The value of the second input is one. And the output, therefore, ends up being one. And so, we can say that the output of the first XOR gate is one. But then this one ends up being one of the inputs to the second XOR gate.

And so, at this point, what we have is an input of one and another input of one for the second XOR gate. That corresponds to this row of the truth table. The first input is one, the second input is one, and so the output is going to be zero. Therefore, the output on the second XOR gate is zero. But as we said earlier, this value is equal to ๐. And so, we can say that the value of ๐ in the table is zero.

Moving on then, what is the value of ๐ in the table?

Okay, so, looking in the truth table, we can see ๐ over here. Now ๐ represents the value of the output when the value of input A is one, input B is zero, and input C is one. So, letโs write those down. Input A is one, input B is zero, and input C is one. Once again, starting with the first XOR gate, we can see that the first input is one and the second input is zero. That corresponds to this row. The first input is one and the second input is zero. And so, the output of the XOR gate is going to be one.

So, we write down one as the output. And then, this becomes the input for the second XOR gate, yet again. So, now for the second XOR gate weโve got an input of one and yet another input of one. That corresponds to this row of the table. The first input is one, the second input is one, and so the output is going to be zero. So, we can say the output of the second XOR is zero. But as we said earlier this output corresponds to the value of ๐. Hence, we can say that zeroโs equal to ๐. And so the value of ๐ in the table is zero as well.

Looking at the next part of the question then. This part of the question asks, what is the value of ๐ in the table?

So, in the table, ๐ is directly beneath ๐. And this time ๐ represent the value of the output, yet again, but when the value of input A is one, B is one, and C is zero. So, input A is one, input B is one, and input C is zero. Starting with the first XOR gate yet again, we can see that the first input being one and the second input being one corresponds to an output of zero. And so, the output of the first XOR gate โ now this becomes an input for the second XOR gate yet again.

So, weโve got an input of zero and zero. And that corresponds to this row. The first input is zero, the second input is zero, and the output is going to be zero. So, the output here is zero. But then this corresponds to the value of ๐. And so, we know that the value of ๐ in the table is zero.

Finally, what is the value of ๐  in the table?

Now ๐  is down here, once again an output value, but this time corresponding to all of the inputs being one. So, input A is one, input B is one, and input C is one. Looking at the first XOR gate, having the first input and second input being one corresponds to an output value of zero. So, the output of the first XOR gate is zero. And so, weโve got two inputs now of zero and one into the second XOR gate. Looking at this row then, the first input is zero, the second input is one, and so the output is going to be one. Hence, we can say that one is here. But we saw earlier that this corresponds to ๐ . And therefore, we can say that the value of ๐  in the table is one.