
CIMTinyTO is an open-source standard-cell Stochastic Compute-in-Memory (SCIM) and Digital Compute-in-Memory (DCIM) accelerator macro fabricated on SkyWater 130nm (sky130_fd_sc_hd) in a $2\times 2$ tile footprint.
Standard analog CIM macros rely on custom analog SRAM bitcells, sensitive sense amplifiers, and power-hungry ADCs—components prone to PVT mismatch and incompatible with standard digital ASIC flows. CIMTinyTO eliminates all analog circuitry by combining:
Stochastic Computing (SC): Multi-bit integer multiplications are replaced by single-gate logical AND operations between unipolar stochastic bitstreams generated on-chip.
Standard-Cell Weight Memory Fabric: A 256-bit DFF memory array organized as a serial shift register with full Design-for-Testability (DFT) loopback (w_dout).
Unified Column Delta Reduction: Conventional bipolar CIM requires two separate Wallace trees per column to count positive and negative pulses ($16 \times 2 = 32$ trees), exceeding the Tiny Tapeout area limit. CIMTinyTO solves this by mathematically proving that:
$\Delta_{\text{col}} = 2 \cdot P_{\text{col}} - A$
where $P_{\text{col}}$ is the column pulse count and $A = \sum_{i=0}^{15} a_i$ is the active activation count, computed once by a single shared activation Wallace tree and broadcast to all 16 columns. This cuts macro tree count from 32 down to 17, saving 855 standard cells!
16 Parallel Saturating Accumulators: 13-bit signed accumulators with hardware clamping at $\pm 4095$ and a sticky overflow status flag.
Silicon Hardening & Hole #8 Pad Quiescence: During the 256-cycle compute phase, the output bus uo_out is clamped to 8'h00, eliminating off-chip pad dynamic power ({{CONTENT}}lt;0.25,\mu\text{W}$) and protecting on-chip power rails against $L \cdot di/dt$ ground bounce.
The accelerator natively supports two operating modes configured via ui_in[4] during a ctrl_strobe pulse:
ui_in[4] = 0): Single AND gate PE ($W \in {0, 1}$, $X \in [0, 1] \implies \Delta = P$).ui_in[4] = 1): Single AND gate PE + Subtractor ($W \in {-1, +1}$, $X \in [0, 1] \implies \Delta = 2P - A$), enabling direct execution of quantized neural networks (Micro-ResNet).The chip operates with a 50 MHz master clock. An end-to-end $16 \times 16$ Matrix-Vector Multiply (MVM) sequence is executed as follows:
rst_n = 0 for at least 3 clock cycles to initialize the LFSR seeds and clear the accumulators.uio[5] (w_shift_en) = 1.uio[4] (w_din).uio[2] (w_dout) to verify the scan chain continuity (DFT loopback).w_shift_en = 0.ui_in[7:0].uio[6] (wr_act) = 1 for 1 clock cycle.ui_in[4] to select mode (0 = Unipolar, 1 = Hybrid ReLU).ui_in[2] = 1 (START_COMPUTE command).uio[7] (ctrl_strobe) = 1 for 1 clock cycle.uio[0] (busy) = 1 and computes for exactly 256 clock cycles.busy drops to 0 and uio[1] (done) pulses high for 1 cycle.ui_in[3:0] to the desired column index (0 to 15).ui_in[4] = 0 to read the low byte (uo_out[7:0] = acc[7:0]).ui_in[4] = 1 to read the high byte (uo_out[7:0] = {{3{acc[12]}}, acc[12:8]}).uio[3] (overflow) to verify that no numerical saturation occurred.| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | ui_in[0] (Data / Activation byte bit 0) | uo_out[0] (Accumulator readback bit 0) | uio_out[0] (Status: busy flag, active compute) |
| 1 | ui_in[1] (Data / Activation byte bit 1) | uo_out[1] (Accumulator readback bit 1) | uio_out[1] (Status: done strobe flag, compute complete) |
| 2 | ui_in[2] (Data / Activation byte bit 2) | uo_out[2] (Accumulator readback bit 2) | uio_out[2] (DFT: w_dout serial weight memory loopback) |
| 3 | ui_in[3] (Data / Activation byte bit 3) | uo_out[3] (Accumulator readback bit 3) | uio_out[3] (Status: overflow saturation flag) |
| 4 | ui_in[4] (Data / Activation bit 4 / Command mode select: 0=Unipolar, 1=Hybrid ReLU) | uo_out[4] (Accumulator readback bit 4) | uio_in[4] (Control: w_din serial weight data in) |
| 5 | ui_in[5] (Data / Activation bit 5 / Command reserved bit) | uo_out[5] (Accumulator readback bit 5) | uio_in[5] (Control: w_shift_en serial weight shift enable) |
| 6 | ui_in[6] (Data / Activation byte bit 6) | uo_out[6] (Accumulator readback bit 6) | uio_in[6] (Control: wr_act activation register write strobe) |
| 7 | ui_in[7] (Data / Activation byte bit 7) | uo_out[7] (Accumulator readback bit 7) | uio_in[7] (Control: ctrl_strobe command strobe) |