How it works
A pseudo-differential ring-oscillator delta-sigma ADC.
- Rings: two identical 15-stage current-starved ring oscillators, tuned by Vin+ (
ua[0]) and Vin- (ua[1]).
- Front end: the sampled ring phases are subtracted (mod 30) and differentiated once, which gives a first-order
noise-shaped code.
- Decimation: a sinc2 decimator (/64) turns it into 781.25 kS/s samples.
- Correction: one shared adder flattens the sinc droop (taps -3/16, 1+3/8, -3/16, shifts only). It then removes
the rings' curvature with a fixed cubic correction y + (2^-5 - 2^-7) y^3, plus a small even-order trim set from the
pins. The cube comes from a shift-add multiply on the same adder. There is no multiplier and no calibration loop.
Analog block (ring_pair_tt, 123.55 x 20.59 um, custom layout):
- Each ring:
- bias mirror: 8 x NMOS 0.42/0.5 on the input, into 8 x PMOS 0.84/0.5;
- 15 symmetric current-starved stages (starve P 0.84/0.5 and N 0.42/0.5; inverter P 0.84/0.15, N 0.42/0.15), so
rising and falling edges get equal current;
- non-inverting two-inverter tap buffers.
- Layout: folded stage order, so every stage inside a ring sees the same load. Every transistor has its own guard
ring. A thin TinyTapeout wrapper adds met3 power rails.
- Ring isolation: ring P's tap wires leave through the macro's top edge, so no ring-P wire crosses ring N. A
grounded met3 shield separates ring P's input line from ring N's bias line. A met4 routing obstruction covers the
macro, so no tile wiring crosses the rings. Extracted ring-P to ring-N coupling: 0.41 fF inside the macro, 6.8 fF in
the whole tile (original layout: 16.9 / 23.4 fF).
- Tap wires: ring P's tap wires are longer than in the original layout, so its phase steps are less even (widths
-16 to +15 % of a step; ring N -6 to +7 %). In the model this costs about 0.2 dB.
Simulated (post-layout rings with routed tap loads, tt 27 C, 1.8 V, 50 MHz clock; no device noise):
- Rings: 57.1 MHz at Vcm 1.04 V (both rings), about 173 MHz/V; 52.2 / 61.7 MHz at -FS / +FS. About 0.3 mA for both
rings. The gain falls at higher Vcm (about 158 MHz/V at 1.08 V).
- Full scale (0 dBFS): +-27.6 mV per input. Output scale about 424 LSB per mV of Vin+ - Vin- (16-bit signed
word). The output clips (sat flag) above about 42 mV per input and wraps without a flag above about 63-68 mV.
- Ring-to-ring coupling: ring P pulls ring N by 7 kHz (first harmonic, 57 kHz peak-to-peak; original layout
41 kHz). The rings lock at zero differential input: locked at 0 and -0.03 mV per input, back on the line at
+-0.10 mV (a dead band of about 0.03-0.13 mV; original layout at least 0.6 mV). The built-in offset between the
rings is about 0.005 MHz with the tap loads (0.05 MHz, 0.15 mV, without).
- Ring-to-ring mismatch (device Monte Carlo, 40 seeds): about 0.8 % per ring in frequency; input-referred offset
up to about +-5 mV per chip.
- SNDR at -1 dBFS, Vcm 1.04 V, transistor-level rings through the gate-level netlist, noise-free:
- 68-69.5 dB with the correction on and the trims at 0x1e / 0x1f;
- 70.2 dB with the correction on and both trims off (0x00);
- 62 dB with the correction bypassed.
- Slow corner (ss / 85 C / 1.62 V, Vcm 1.145 V): 47.5 dB with the correction on, 49.0 dB bypassed
(distortion-limited).
- For comparison, the behavioural model with the measured ring pulling and phase-step widths gives 71.5 dB on /
65.8 dB bypassed.
- Expected on silicon: lower than these numbers; device noise, clock jitter, supply noise and mismatch are not in
them. Our estimate from the input transistors' 1/f and thermal noise is about 48 dB over the full band and about
53 dB in a 20 kHz band (+-3 dB, not simulated).
- The layout-extracted gate-level netlist is bit-exact with the model.
Process, temperature and supply:
- Re-set the common mode per chip; the 50 MHz point moves between 0.93 and 1.15 V (simulated corners).
- At the slow corner (ss / 85 C / 1.62 V) the rings run short of headroom: set Vcm for about 50 MHz (about 1.145 V in
simulation).
- The fixed correction is not always better: at the slow corner, bypass is 1.5 dB better. Compare both per chip.
- Gain changes by about 1.1-1.4 % per 10 mV of VDD.
- Start-up (1 us supply ramp), simulated at tt, ss / 85 C / 1.62 V, ff / -40 C / 1.98 V, sf and fs: both rings reach
one clean wavefront within 0.2 us of the supply reaching 90 %.
- Digital timing: 50 MHz has 9.3 ns of setup slack at tt. At ss / 100 C / 1.60 V, static timing supports 46.9 MHz
(nominal wiring) or 45.9 MHz (slow wiring).
Pins
| Pin |
Function |
| ua[0], ua[1] |
Vin+, Vin- (analog). DC level of both = common mode Vcm, about 1.04 V (set per chip, see below) |
| ui[4:0] |
even-order trim term 1: {enable, sign, offset[2:0]}, term = p2 >> (4 + offset). Must be driven (no pull-ups) |
| uio[4:0] |
even-order trim term 2 (same format), inputs. Must be driven |
| ui[5] |
1 = bypass the correction |
| ui[7:6] |
mode: 00 ADC word, 01 ring-P phase (0..29 on uo[4:0]), 10 ramp test pattern, 11 raw difference code (6-bit two's complement on uo[5:0]) |
| uo[7:0] |
data byte |
| uio[5] |
byte select: 0 = high byte, 1 = low byte (32 clocks each) |
| uio[6] |
frame: toggles once per new sample |
| uio[7] |
saturation flag for the current sample |
Nominal trim: both trim terms off (t1 = t2 = 0x00) gave 70.2 dB, against 68.4 dB for 0x1e / 0x1f, in one simulated
record (tt, Vcm 1.04 V). Re-trim per chip on the bench.
How to test
- Readout: clock 50 MHz. Set mode 10; the 16-bit word must count up once per frame. Ignore the first frame
after reset.
- Ring alive: mode 01 at the full 50 MHz clock, both inputs at about 1.04 V. The ring-P phase on uo[4:0] drifts
by a steady number of steps per clock (about +4 steps per clock for rings at 57 MHz). A slow clock samples the
ring at random points, so the phase then looks random.
- Common mode: bias both inputs at the same DC level Vcm, starting from about 1.04 V.
- In mode 01 at the full 50 MHz clock, the phase stands still when the rings run at exactly 50 MHz. The drift
rate shows the offset: 1 step per clock = 50 MHz / 30.
- Set Vcm so the rings run about 10-20 % above the clock (best correction; 57 MHz at about 1.04 V on a typical
chip).
- Keep them below 1.5x the clock (75 MHz).
- Transfer curve: mode 11 with DC inputs; the average raw code tracks Vin+ - Vin- (about 0.21 codes per mV per
input). Measure the per-chip offset (up to about +-5 mV from device mismatch) and calibrate it out.
- Noise floor: short ua[0] and ua[1] together at Vcm and capture in mode 00. The spectrum shows this chip's
noise floor.
- SNDR: mode 00. Apply a low-distortion differential sine around Vcm, up to about +-27 mV per input. Capture the
words (high byte after each frame edge, low byte after byte select rises) and compute SNDR with an FFT.
- Above about 42 mV per input the output clips with the sat flag.
- Above about 63-68 mV per input it wraps around without the flag.
- Trim: sweep the two trim terms for the best SNDR, starting from both off, then toggle ui[5] to compare
correction on/off. Keep the better setting for that chip (at the simulated slow corner, bypass was better).
External hardware
- Signal source: a low-distortion differential sine source (THD better than about -80 dB, e.g. an audio DAC with
a passive filter).
- Common mode: an adjustable DC common mode of about 0.9-1.4 V (the source's DC offset, or a buffered divider
from a clean reference).
- Capture: a capture path for about 1.6 MB/s.
- On the RP2040 demo board, capture bursts into RAM: USB full speed sustains only about 1 MB/s.
- Or use a logic analyser.
Credits
We gratefully acknowledge the Center of Excellence (CoE) in Integrated Circuits and Systems (ICAS) and the
Department of Electronics and Communication Engineering (ECE) for providing the necessary resources and guidance.
Special thanks to Dr. H V Ravish Aradhya (HoD - ECE), Dr. M Uttara Kumari (R & D Dean) and Dr. K. N. Subramanya (Principal) for their constant encouragement and support in facilitating
this Tiny Tapeout SKY26D submission.