← BVM analog tapeout
analog/bandgap · TTSKY26d · SKY130A · 1x2 analog tile

SC Bandgap Tapeout Guide

A switched-capacitor bandgap from the first equation to a clean GDS, written so a first-time analog layouter can follow every step and see why it matters.

–days to submission (30 Nov 2026)
Step 0 · context

Where the bandgap sits in our tile

The bandgap is the first block in the analog chain. Everything else on the tile takes its current from bias_gen, and bias_gen takes its voltage from us. If VREF is wrong, the clock doubler delay, both output buffers and the DAC all move with it.

Signal context

dig_top ↔ analog/bandgap
dig_top (digital macro) reg_bank: BG_CTRL, BG_SEQ* bg_seq* 50 MHz → φ1, φ2, cap, ota_en, valid STATUS.bg_ok ← ok & valid analog/bandgap (this block) bias core + 1:8 switched mirror → Q MIM array (C_A, C_B+trim, C_F) OTA + switches hold capacitor C_H bias_ok (analog flag) → φ1 φ2 cap i8_en ota_en bg_en trim[3:0] bias_ok bias_genVREF/R, gate input out_buf → ua[0]follower, gate input VREF * proposed additions, see the table below
The idea

A bandgap adds two voltages that drift in opposite directions with temperature. VBE of a bipolar transistor falls by about 2 mV/K. The difference ΔVBE between two transistors at different current densities rises in proportion to absolute temperature. With the right weights the drifts cancel and the sum sits near 1.2 V.

In a classic bandgap, resistor ratios set the weights. Here capacitor ratios do it. Charge is sampled onto capacitors in one clock phase and dumped onto a feedback capacitor in the next. Capacitor ratios match well and need no large resistors.

In our tile
  • VREF only drives gates (bias_gen input, out_buf input). A sampled-and-held output is fine for that.
  • The 50 MHz harness clock is already in dig_top. The phase sequencer goes there as RTL, so students cross the digital/analog boundary on purpose.
  • No spare analog pin: ua[0..2] are taken. We observe the bandgap only through out_buf on ua[0].
  • The block has its own small bias core and start-up. It cannot borrow current from bias_gen, because bias_gen depends on VREF.

Changes from the generic plan

to agree with the mentor in week 1
Generic plan saidFor this tileWhy
Own 2x2 tile, 2 analog pinsShares the 1x2 tile (~160 × 225 µm); no own pinARCHITECTURE.md: ua[0] VREF via out_buf, ua[1] bias, ua[2] DAC
6-bit PTAT trim4-bit bg_trim in BG_CTRL (already in regmap). BG_CTRL bits [6:4] are free for a 5th bit or a mode bitKeeps the register map stable; Step 1 shows what 4 bits buy
Separate measurement bufferReuse out_buf instance 1Already in the architecture, biased from bias_gen
External clock + sequencer in the blockbg_seq RTL inside dig_top; phases cross into the analog blockDigital non-overlap is exact and testable in cocotb
New register for modesProposed BG_SEQ @ 0x08: [2:0] div_sel, [3] burst, [7:4] hold_exp. STATUS [1] bg_validNeeds a regmap entry. Reset value 0x04 = continuous, 5.12 µs slot
bg_ok from the analog blockbg_ok = analog bias_ok AND sequencer valid, combined and synchronised in dig_topAn SC reference is only valid after a few clean updates

Working specification

targets, not predictions
ItemTargetSet by
Supply1.8 V (VDPWR)TT 1x2 analog template
VREF≈ 1.2 V at code 8CA/CF = 1 (Step 3)
Temperature coefficient after trim< 50 ppm/°C, 0–85 °CTrim LSB + curvature (Step 1)
Sampled noise< 1 mV rmsUnit cap size (Step 4)
Phase slot0.32–41 µs, default 5.12 µsOTA settling (Step 5)
Current, continuous mode≤ 15 µA (burst: ≤ 4 µA)Bias core + OTA (Steps 5–6)
Area≈ 80 × 90 µm budgetMostly the MIM array (Steps 4, 7)
Loadgates only, < 0.5 pF wiringbias_gen + out_buf inputs
Words you will meet (glossary)
CTAT / PTATComplementary / proportional to absolute temperature. VBE is CTAT, ΔVBE is PTAT.
Virtual groundThe OTA input node X. Feedback holds it at a fixed voltage, so charge that arrives there must go onto CF.
Auto-zeroThe OTA is put in unity feedback during φ1, so its offset is stored on the capacitors and subtracted in φ2.
Non-overlapA short gap where all switches are open between φ1 and φ2, so no capacitor is ever shorted to two sources at once.
Charge injectionWhen a MOS switch opens, its channel charge spills onto the capacitors. It looks like an offset.
kT/C noiseEvery time a switch opens on a capacitor, a random voltage of √(kT/C) is frozen on it.
Common centroidPlacing the units of matched devices so each group has the same centre of gravity. Linear process gradients then cancel.
DRC / LVS / PEXDesign-rule check (can it be made), layout-versus-schematic (is it what you drew), parasitic extraction (what wires add).
Guard ringA ring of substrate or well contacts around a device. It soaks up stray currents and keeps the substrate potential defined.

Done when