Loading subject…
Logic diagrams
Logic diagrams are visual representations of how logic gates are connected and interact within a circuit.
| Gate | Symbol shape | Boolean notation | Reads as |
|---|---|---|---|
| AND | Flat back, rounded front | A . B | A AND B |
| OR | Curved back, pointed front | A + B | A OR B |
| NOT | Triangle with an output bubble | NOT A (or A with a bar) | NOT A |
| NAND | AND shape plus output bubble | NOT (A . B) | NOT (A AND B) |
| NOR | OR shape plus output bubble | NOT (A + B) | NOT (A OR B) |
| XOR | OR shape with a second curved back line | A (+) B | A XOR B |
| XNOR | XOR shape plus output bubble | NOT (A (+) B) | A XNOR B |
| A | B | S = A XOR B | C = A AND B | Binary result |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 00 |
| 0 | 1 | 1 | 0 | 01 |
| 1 | 0 | 1 | 0 | 01 |
| 1 | 1 | 0 | 1 | 10 |
The last row is the point of the carry: 1 + 1 = 2, which needs two bits, and the carry column supplies the second one.
| Law | AND form | OR form |
|---|---|---|
| Identity | A . 1 = A | A + 0 = A |
| Annulment | A . 0 = 0 | A + 1 = 1 |
| Idempotent | A . A = A | A + A = A |
| Complement | A . NOT A = 0 | A + NOT A = 1 |
| Involution | NOT (NOT A) = A | NOT (NOT A) = A |
| Commutative | A . B = B . A | A + B = B + A |
| Associative | (A . B) . C = A . (B . C) | (A + B) + C = A + (B + C) |
| Distributive | A . (B + C) = (A . B) + (A . C) | A + (B . C) = (A + B) . (A + C) |
| Absorption | A . (A + B) = A | A + (A . B) = A |
| De Morgan | NOT (A . B) = NOT A + NOT B | NOT (A + B) = NOT A . NOT B |
Q = NOT B, so five gates collapse into a single NOT gate and input A turns out not to affect the output at all.
| You are given | You are asked for | Route |
|---|---|---|
| A written requirement | A logic diagram | Identify inputs and output, pick the gate, draw left to right |
| A Boolean expression | A logic diagram | One gate per operator, innermost bracket first |
| A logic diagram | A truth table | One column per gate, trace each row (A1.2.4) |
| A complex expression | A simpler diagram | Apply Boolean laws, then redraw from the final expression |