
This chip classifies a grayscale 28 × 28 digit using a 144-input neural network with 16 binary hidden units and ten signed output scores. The host removes two pixels from every edge to leave a 24 × 24 center crop, then sums the unsigned bytes within each nonoverlapping 2 × 2 block. A sum of 320 or more encodes one. Transfer the 144 bits in row-major order with the top-left block first.
Each hidden unit starts at its signed bias, adds the weight for each active input, and emits one when the sum is zero or positive. The output layer uses the same conditional addition and selects the highest score. On a tie the lower digit wins. All learned parameters and both layers are on-chip.
Select the project, hold reset low for two rising clock edges with input zero, then release reset. Use a synchronous clock up to 10 MHz. Present a feature on UI0 with UI7 high before each rising edge. UI7 low inserts an idle cycle. The 144th transfer starts inference and sets UO5 (busy). The chip ignores input transfers while busy. Keep UI7 low until sending the next frame.
Exactly 4980 rising edges after the last input transfer, busy clears and UO4 (valid) goes high. Read the digit on UO3 through UO0. With readback disabled, output bits 7 and 6 are zero. Valid stays high until the next accepted feature. Asserting reset clears classifier state asynchronously. Release reset near the falling edge. Deselection on a rising edge also discards a partial frame or inference. To recover, clock reset and resend all 144 features. The earliest next frame starts on the rising edge following completion.
A Tiny Tapeout devkit provides clock, reset, synchronous feature transfers and digital readout. The bidirectional pins are inputs until readback is enabled. No external weights, memory, or analog connections are needed.
Release all eight bidirectional pins on the host. UI6 enables readback and UI3–UI1 select the view. Hold the controls stable for four rising edges when switching views. The two input synchronizer stages feed a registered data word and output enable. UO7–UO6 carry bits 9–8, UIO7–UIO0 carry bits 7–0, and the normal digit and flags remain on UO5–UO0. Keep UI7 low between frames. Clear UI6 and clock four times before allowing any other device to drive UIO.
| Select | Meaning |
|---|---|
| 0 | Constant 0x0C7 |
| 1 | Signed accumulator, 10-bit two’s complement |
| 2 | Bit 7 output-layer flag, bits 6–2 neuron, bits 1–0 accumulator high bits |
| 3 | Bits 7–6 valid and busy, bits 5–3 FSM state, bit 2 output layer, bits 1–0 winning score high bits |
| 4 | Current winning score, signed 10-bit |
| 5 | Eight-bit input or weight index |
| 6 | Hidden units 7–0 |
| 7 | Hidden units 15–8 |
The states LOAD, INIT, FETCH, ADD and STORE have encodings 0 through 4. The accumulator is reused for every neuron. To read every score, select view 1 directly after the final feature transfer. Count that transfer as edge zero. Sample classes 0 through 9 at edges 4674, 4708, and every 34 edges thereafter up to 4980. The digit is valid at edge 4980. With no further transfers, read view 4 and the hidden bits at leisure. The digit is the first class attaining the maximum score.
Use the project clock as the timing reference for UI, host-driven UIO and project enable. Change data and commands while the clock is low, preferably on the falling edge. Keep them stable across the next rising edge. Release reset while the clock is low and stable before resuming transfers. The bit stream is a synchronous protocol. Crossing from an unrelated host clock requires a handshake outside this interface.
The revised input constraints use 20 ns maximum delay and 0 ns minimum delay relative to the rising edge. The former assumption of 20 ns minimum hid external hold and reset-removal requirements.
The frozen integer network classified 8,457 of 10,000 official MNIST test images correctly (84.57%). The 448/512 result (87.50%) is the development accuracy used to select the best checkpoint across 140 epochs. The two results use different image sets.
Asserting reset clears the readback registers and releases all eight UIO drivers, including when the project clock is stopped.
With project enable high, send 0x2E and 0x35 on UI on the first two rising clock edges after reset release. Release all eight host UIO drivers before shifting.
Stop the clock low at the state you want to inspect. Drive 0x16 on UI and sample UO7. Set UI0 to the incoming bit, then pulse the clock once. Repeat for all 225 bits. Feed each sampled bit back into UI0 to restore the captured state, or supply a saved bit stream to load it. Reset before starting a fresh application workload.
Across nine extracted RC and library corners, the smallest input hold or reset-removal slack is 0.2773 ns at the macro pins with a 0 ns minimum input delay. This margin applies at the macro boundary and does not include board or shuttle timing.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Pooled feature / scan data in | Digit bit 0 | Readback data bit 0 when enabled |
| 1 | Readback selector bit 0 | Digit bit 1 | Readback data bit 1 when enabled |
| 2 | Readback selector bit 1 | Digit bit 2 | Readback data bit 2 when enabled |
| 3 | Readback selector bit 2 | Digit bit 3 | Readback data bit 3 when enabled |
| 4 | Prediction valid | Readback data bit 4 when enabled | |
| 5 | Busy | Readback data bit 5 when enabled | |
| 6 | Readback enable | Readback data bit 8 | Readback data bit 6 when enabled |
| 7 | Feature valid | Readback data bit 9 / scan data out | Readback data bit 7 when enabled |