
AigaioNPU is a 2x2 output-stationary systolic array for signed INT8 matrix multiplication and MXINT8 block scaling. It also supports INT4 activations with INT8 weights.
Each processing element (PE) uses bit-serial shift-and-add multiplication and stores its result in a 28-bit accumulator. INT8 uses 8 clocks per beat; INT4 uses 4.
Activations move right, weights move down, and the staggered timing creates diagonal waves of computation. For MXINT8, each operand also carries a 2-bit block-exponent offset that sets how far the product is shifted before accumulation (see MXINT8 design notes).
The host loads numbers one byte at a time on ui[7:0]. A 3-bit command on uio[2:0] says what
the byte is for, and each command runs once when GO (uio[3]) goes from 0 to 1.
uio[2:0] |
Command | Action |
|---|---|---|
| 0 | LOAD_A0 | ui -> activation, row 0 |
| 1 | LOAD_A1 | ui -> activation, row 1 |
| 2 | LOAD_W0 | ui -> weight, column 0 |
| 3 | LOAD_W1 | ui -> weight, column 1 |
| 4 | STEP | push the four loaded values into the array |
| 5 | CLEAR | zero all four accumulators; ui[0] = activation precision for this job (0 = INT8, 1 = INT4) |
| 6 | SELECT | ui[1:0] = PE (0=PE00, 1=PE01, 2=PE10, 3=PE11), ui[3:2] = byte 0..3 (0 = lowest) |
| 7 | LOAD_SH | MX block-exponent offsets (0..3): ui[1:0] = a0, ui[3:2] = a1, ui[5:4] = w0, ui[7:6] = w1 |
uo[7:0] shows the selected byte of the selected PE's result (28 bits, sign-extended to 32).
Timing rules for the host:
| Mode | Clocks per beat | Minimum STEP spacing | Wait after last STEP |
|---|---|---|---|
| INT8 / MXINT8 | 8 | 16 clocks | 40 clocks |
| INT4 activations | 4 | 8 clocks | 20 clocks |
ui before raising GO and keep it there for a few clocks: GO passes through a
2-flop synchronizer, so the command is executed 2-3 clocks after GO rises.ui = 0 when going back to plain INT8 or INT4 without scaling.ui[3:0] of each activation is used (signed, -8..7). Weights are always INT8.To compute C = A x W, where A is 2xK and W is Kx2:
ui = 0 (INT8) or 1 (INT4 activations).uo. Combine the four bytes into a signed 32-bit result.For MXINT8, quantize each 32-element block of A's rows and W's columns to INT8 elements plus a shared exponent, send the offsets (block exponent minus a reference exponent, 0..3) with LOAD_SH when a new block starts, and scale the result by 2^(refA + refW - 12).
Example: A = [[1, 2], [3, 4]], W = [[5, 6], [7, 8]] gives C = [[19, 22], [43, 50]].
None. The demo board's microcontroller drives the pins.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | DATA0 | RESULT0 | CMD0 |
| 1 | DATA1 | RESULT1 | CMD1 |
| 2 | DATA2 | RESULT2 | CMD2 |
| 3 | DATA3 | RESULT3 | GO |
| 4 | DATA4 | RESULT4 | |
| 5 | DATA5 | RESULT5 | |
| 6 | DATA6 | RESULT6 | |
| 7 | DATA7 | RESULT7 |