Threshold Logic Circuits
Collection
Boolean gates, voting functions, modular arithmetic, and adders as threshold networks.
•
248 items
•
Updated
•
1
4-bit logical left shift by 1 bit.
shiftleft4(a3, a2, a1, a0) = [a2, a1, a0, 0]
MSB (a3) is discarded, 0 shifts in at LSB.
| Input | Output |
|---|---|
| 0001 | 0010 |
| 0101 | 1010 |
| 1000 | 0000 |
| 1111 | 1110 |
Single layer with 4 neurons copying bits to shifted positions.
| Output | Source | Weights [a3,a2,a1,a0] | Bias |
|---|---|---|---|
| y3 | a2 | [0, 1, 0, 0] | -1 |
| y2 | a1 | [0, 0, 1, 0] | -1 |
| y1 | a0 | [0, 0, 0, 1] | -1 |
| y0 | 0 | [0, 0, 0, 0] | -1 |
| Inputs | 4 |
| Outputs | 4 |
| Neurons | 4 |
| Layers | 1 |
| Parameters | 8 |
| Magnitude | 7 |
MIT