No edit summary |
(Added infobox and truth table) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
The 1-bit Xor gate, also called exclusive OR, outputs a {{On}} or 1 state, but only if ONE of the inputs is in a {{On}} or 1 state. If both inputs are {{On}}, it outputs an {{Off}}. If neither input is {{On}}, it outputs an {{Off}}. It is useful when you want to make sure that only 1 of 2 bits is {{On}}. | {{Infobox component | ||
| bit-width = 1 | |||
| type = 1bit | |||
| prerequisite = XOR Gate | |||
}} | |||
{| {{Truthtable}} | |||
|+ XOR Gate Truth Table | |||
|- | |||
! Input One !! Input Two !! 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}} | |||
|} | |||
The 1-bit Xor gate, also called exclusive OR, outputs a {{On}} or 1 state, but only if ONE of the inputs is in a {{On}} or 1 state. If both inputs are {{On}}, it outputs an {{Off}}. If neither input is {{On}}, it outputs an {{Off}}. It is useful when you want to make sure that only 1 of 2 bits is {{On}}. Another common use is to invert a bit if another signal is {{On}}. |
Latest revision as of 12:44, 30 August 2024
File:Component XOR.png | |
Width | 1 |
---|---|
Type | 1bit |
Unlocked by | XOR Gate |
Input One | Input Two | Output |
---|---|---|
0 |
0 |
0
|
0 |
1 |
1
|
1 |
0 |
1
|
1 |
1 |
0
|
The 1-bit Xor gate, also called exclusive OR, outputs a or 1 state, but only if ONE of the inputs is in a or 1 state. If both inputs are , it outputs an . If neither input is , it outputs an . It is useful when you want to make sure that only 1 of 2 bits is . Another common use is to invert a bit if another signal is .