A2 Solutions – Logic circuits
A2 Solutions – Logic circuits
You can flip an input from false (0) to true (1) and vice versa by clicking on the input box.
Verify that the output is true (1) and the light is turned on only when both of the inputs
are true (1). The table below contains all the input combinations that you should try.
This is identical to the logic circuit that you created in the previous task, except that the
AND logic gate has been replaced with an XOR logic gate. This is a new logic operation.
You can flip an input from false (0) to true (1) and vice versa by clicking on the input box.
Try all the input combinations in the table below and fill in the table with the
corresponding output.
Before, we described how the result of the OR operator is true if at least one of its inputs
is true. How would you describe the result of the XOR logic operator with words?
The result of the XOR operator is true if exactly one of its inputs is true.
You can use logical reasoning to deduce what this combination will be, or you can create
the circuit and try out the different combinations of input values. Write your answer in
the table below, and provide a brief explanation for your answer.
Explanation:
In order for the output to be true, both of the inputs of the AND gate must be true. The first input to
the AND gate is motion, so motion must be true. The second input to the AND gate is the inverse of
light, so the inverse of light must be true. Therefore, light must be false.
Explorer question: What is the logical expression that describes the output of this circuit?
Try setting the input bits to all four possible combinations and write down the binary
result, to verify that it is correct.
Note: As you can see in the image above, the binary result has two digits, so your answer must
also contain two digits.
0 0 1 1
+ 0 + 1 + 0 + 1
00 01 01 11