m (Gelthor moved page Turing Complete/XOR Gate to Level/XOR Gate without leaving a redirect) |
m (Use ON & OFF in truth table) |
||
Line 9: | Line 9: | ||
}} | }} | ||
{| {{ | {| {{TruthTable}} | ||
|+ XOR Gate Truth Table | |+ XOR Gate Truth Table | ||
|- | |- | ||
! Input | ! Input 1 !! Input 2 !! Output | ||
|- | |- | ||
| {{ | | {{Off t}}|| {{Off t}}|| {{Off t}} | ||
|- | |- | ||
| {{ | | {{Off t}}|| {{On t}}|| {{On t}} | ||
|- | |- | ||
| {{ | | {{On t}}|| {{Off t}}|| {{On t}} | ||
|- | |- | ||
| {{ | | {{On t}}|| {{On t}}|| {{Off t}} | ||
|} | |} | ||
Revision as of 23:30, 1 September 2024
This level has you create the XOR Gate. It is like the OR gate except that it outputs false if both inputs are true.
Input 1 | Input 2 | Output |
---|---|---|
0 |
0 |
0
|
0 |
1 |
1
|
1 |
0 |
1
|
1 |
1 |
0
|
The solution to this level requires more effort than just placing down a single NAND gate and some inverters.
The simplest solution, which is also required for the achievement, is to place four NAND gates. The first one has the input pins as the input, while the second and third have one of the input pins and the output of the first gate as the inputs. The final gate has the inputs hooked up to the second and third gate.