
The Deterministe 3x3 is an educational hardware baseline designed to be directly compared against the TinyNPU 3x3. Instead of using a neural network with spatial weights and thresholds, this chip uses strict, classical boolean logic (AND / NOT gates) to classify 3x3 binary pixel grids.
It acts as a physical representation of "If/Else" programming. It requires absolute perfection: a shape is only recognized if all its required pixels are exactly 1 (True) AND all background pixels are exactly 0 (False). It has zero tolerance for noise, missing pixels, or shifting. This intentionally demonstrates the "brittle" nature of classical deterministic logic when processing imperfect real-world data, contrasting with the NPU's ability to generalize.
To make the comparison perfectly transparent, the 8-bit output bus mimics the NPU's structure but outputs pure logic states instead of math scores:
no_match, is_d2, is_d1, is_v, is_h).ui_in[7:0] and the 9th pixel on uio_in[0].uo_out[7:0].val & 0x07) to get the detected shape ID:
0 = Unknown / Rejected1 = Horizontal Line (-)2 = Vertical Line (|)3 = Diagonal 1 ()4 = Diagonal 2 (/)val >> 3). You can read the exact boolean flags triggered by the input. If the input is imperfect (e.g., 2 pixels instead of 3), the no_match flag (the highest bit) will trigger instantly, and the ID will drop to 0.To fully exploit the educational aspect of this chip, it should be tested alongside the TinyNPU 3x3 using:
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Pixel 0 | Prediction ID [Bit 0 / LSB] | Pixel 8 (Le 9ème pixel de la matrice) |
| 1 | Pixel 1 | Prediction ID [Bit 1] | |
| 2 | Pixel 2 | Prediction ID [Bit 2 / MSB] | |
| 3 | Pixel 3 | Logic Gate: is_h (Horizontal) | |
| 4 | Pixel 4 | Logic Gate: is_v (Vertical) | |
| 5 | Pixel 5 | Logic Gate: is_d1 (Diagonale 1) | |
| 6 | Pixel 6 | Logic Gate: is_d2 (Diagonale 2) | |
| 7 | Pixel 7 | Logic Gate: no_match (Rejeté) |