| Number of Circuits | Number of Patterns |
| 1 | 2 |
| 2 | 4 |
| 3 | 8 |
| 4 | 16 |
| .... | .... |
| 8 | 256 |
| 10 | 1024 (1K) |
| 16 | 65536 (64K) |
| 20 | 1048576 (1M) |
| n | 2n |
The Decimal Odometer Analogy
| pattern in word: | off
(0) |
on
(1) |
off
(0) |
off
(0) |
on
(1) |
on
(1) |
off
(0) |
off
(0) |
| weight | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
the value of this encoded word (01001100) would be 64 + 8 + 4 = 76
| weight | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| pattern | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 3-Bit Addition: The 8 Possible Input Combinations and Their Outputs | ||||||||
|---|---|---|---|---|---|---|---|---|
| bit values being added
|
0
0 0 |
0
0 1 |
0
1 0 |
0
1 1 |
1
0 0 |
1
0 1 |
1
1 0 |
1
1 1 |
| column result | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
| carry to next column | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 |
| Examples: (4-bit "words") |
|
| 3-Bit Subtraction: The 8 Possible Input Combinations and Their Outputs | ||||||||
|---|---|---|---|---|---|---|---|---|
| "Subtrahend"
minus "minuend" minus borrow from previous |
0
0 0 |
0
0 1 |
0
1 0 |
0
1 1 |
1
0 0 |
1
0 1 |
1
1 0 |
1
1 1 |
| column result | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
| borrow from next column | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 |
| Examples: (4-bit "words") |
|
| Example: (4-bit "words" 8-bit "double-word" result) |
|