NOR Calculator
The NOR calculator enables you to find the NOR output for a given set of inputs.
AND00102 in decimal
OR111115
XOR110113
NOR0000
a101111
b01106
All operations at 4 bits
| Operation | Binary | Decimal |
|---|---|---|
| AND (a & b) | 0010 | 2 |
| OR (a | b) | 1111 | 15 |
| XOR (a ^ b) | 1101 | 13 |
| NAND | 1101 | 13 |
| NOR | 0000 | 0 |
| XNOR | 0010 | 2 |
| NOT a | 0100 | 4 |
The rule
AND, OR, XOR, NOR and NOT, bit by bit
What each gate does
- AND — 1 only where both bits are 1. Used to mask bits off.
- OR — 1 where either is 1. Used to set bits.
- XOR — 1 where the bits differ. Self-inverse, which makes it the basis of simple ciphers and of swapping without a temporary.
- NOT — flips every bit, within a fixed width.
- NOR and NAND — the negations. Either one alone can build every other gate, which is why chips are made from them.