Crossover mission · Silicon Lab × Robot Lab
A multiply–accumulate unit
A neural network is mostly one operation repeated: multiply an input by a weight and add it to a running total. Chips for AI pack thousands of multiply–accumulate (MAC) units side by side to do this quickly.
This MAC unit has one multiplier, one adder and one accumulator register. Each clock cycle it adds one weight × input to the accumulator. After four cycles it adds the bias and keeps the result only if it is above 0 (a ReLU).
Set four weights and a bias so the neuron fires for the two patterns with a bright left edge and stays at 0 for the others.
Simplified: one neuron, small integer weights and four-pixel images.
Best after Silicon Lab Level 3, Silicon Lab Level 4.
Accumulator = 0
| Image | Output | Should fire |
|---|---|---|
| 0 | yes ✗ | |
| 0 | yes ✗ | |
| 0 | no ✓ | |
| 0 | no ✓ |