The project in short
Together we design one mixed-signal tile and send it to fabrication on the next Tiny Tapeout SKY130 shuttle. On the digital side: an SPI slave, a register bank and two PWM generators (one block, used twice). On the analog side: a bandgap reference, a bias generator, a clock doubler and a PWM DAC (RC filter + output buffer). Every trim and enable bit sits in the register bank, written over SPI.
The point is to learn the full flow, from schematic to layout to tapeout, and especially how digital and analog circuits meet on one tile.
Shuttle and limits
| Item | TTSKY26d / SKY130 analog |
|---|---|
| Submission closes | 30 November 2026 |
| Chips expected | May 2027 |
| Tile | 1x2 analog tile, about 160 × 225 µm (2x2 if the layout does not fit) |
| Analog pins | ua[0]–ua[5], used in order; < 500 Ω, < 5 pF, max 4 mA. We use three. |
| Supplies | 1.8 V digital (VDPWR); 3.3 V analog optional |
| Clock | Up to 50 MHz from the Tiny Tapeout harness |
| Layout rules | Metal 5 is reserved for the power grid; pins as in the Tiny Tapeout analog template |
Block diagram
- Digital: SPI slave, generated register bank and one PWM block used twice. PWM 0 drives the DAC and
uo_out[0]; PWM 1 goes touo_out[1]. - Bring-up first: both PWMs run at 50 % from reset. If the duty follows the register after an SPI write, SPI and the register bank work before any analog block is measured.
- Analog chain: the trimmed bandgap reference sets the bias current, which sets the clock doubler delay and biases both output buffers. The reference reaches
ua[0]through a buffer, so measuring it does not load the bandgap. Each block has its own enable bit. - Clock: the 50 MHz clock comes in on the digital pins together with
enaandrst_n, and goes to both the digital macro and the clock doubler. The 50 MHz clock XOR-ed with a quarter-period delayed copy gives 100 MHz. Each PWM chooses the normal or the doubled clock. - PWM DAC: PWM 0 drives a two-stage RC filter and the same output buffer as the reference, out on
ua[2], so one register sweeps an analog voltage.
Blocks
| Block | Domain | What it does |
|---|---|---|
analog/bandgap | analog | Switched-capacitor reference with 4-bit trim and start-up circuit; bg_ok flag. Design guide → |
analog/out_buf | analog | Unity-gain buffer for a pad; one cell, used twice: reference to ua[0] and inside the PWM DAC to ua[2] |
analog/bias_gen | analog | VREF/R current, 5-bit binary-weighted mirror, 1–32 µA; feeds the clock doubler, both output buffers and ua[1] |
analog/clk_doubler | analog | Clock XOR delayed clock → 100 MHz for the PWMs; delay biased from the bias generator |
analog/pwm_dac | analog | Two-stage RC low-pass (poly R + MIM C) and a unity-gain buffer to ua[2], driven by PWM 0 |
analog/tt_analog_top | analog | Top schematic and layout in the Tiny Tapeout analog template; places the digital macro |
digital/spi_slave | digital | SPI mode 0, 16-bit frame: R/W bit, 7-bit address, 8-bit data |
digital/reg_bank | digital | Generated from the register database with the IC Works regmap tool, never hand-edited |
digital/pwm | digital | Counter + comparator, 6 or 8 bits, clock select; one module, instanced twice |
digital/dig_top | digital | SPI + register bank + two PWMs; hardened into one macro |
Block design guides
Interactive step-by-step guides that take one block from the first equation to a DRC/LVS-clean layout, written for a first custom analog tapeout.
- Switched-capacitor bandgap — temperature cancellation, SC core and phases, MIM array matching, OTA settling, sequencer and burst mode, layout procedure, verification and the four-week schedule.
Register map (draft)
SPI frame, CS low, 16 clocks, MSB first: [15] R/W (1 = read) · [14:8] address · [7:0] data.
The same frame as in the servo challenge.
| Addr | Name | Bits | Reset |
|---|---|---|---|
| 0x00 | BG_CTRL | [7] bg_en, [3:0] bg_trim | 0x88 (on, mid trim) |
| 0x01 | BIAS_CTRL | [7] bias_en, [4:0] bias_trim | 0x90 (on, code 16) |
| 0x02 | CLK_CTRL | [0] dbl_en (clock doubler on) | 0x00 |
| 0x03 | PWM0_DUTY | [7:0] duty = value / 2N | 0x80 (50 %) |
| 0x04 | PWM0_CTRL | [0] en, [1] width (0 = 6 bit, 1 = 8 bit), [2] clk_sel (0 = clk, 1 = doubled) | 0x01 |
| 0x05 | PWM1_DUTY | as PWM0_DUTY | 0x80 (50 %) |
| 0x06 | PWM1_CTRL | as PWM0_CTRL | 0x01 |
| 0x07 | STATUS (read-only) | [0] bg_ok | — |
Pins
| Pin | Use |
|---|---|
uio[0] / uio[1] / uio[3] | SPI CS_N / MOSI / SCK (in) |
uio[2] | SPI MISO (out) |
uo_out[0] | PWM 0 (also drives the DAC) |
uo_out[1] | PWM 1 |
ua[0] | Reference voltage (VREF), buffered |
ua[1] | Bias current |
ua[2] | DAC output |
clk, ena, rst_n | Tiny Tapeout clock (up to 50 MHz, also to the clock doubler), enable and reset |
The DAC filter
The simple route is to keep plain PWM, run it fast and filter with two RC stages instead of one. A second pole cuts the ripple by (fc / fPWM)² rather than fc / fPWM, and that is what makes small capacitors enough.
| PWM | PWM frequency | Each RC stage | Ripple | Capacitor area |
|---|---|---|---|---|
| 6-bit at 100 MHz (doubler) | 1.56 MHz | ~1 pF + ~2 MΩ | ~1.5 mVpp (LSB 28 mV) | ~1 000 µm², ~3 % of the tile |
| 6-bit at 50 MHz | 781 kHz | ~2 pF + ~4 MΩ | ~1.5 mVpp (LSB 28 mV) | ~2 000 µm², ~6 % of the tile |
| 8-bit at 50 MHz | 195 kHz | ~10 pF + ~3.2 MΩ | ~1.5 mVpp (LSB 7 mV) | ~10 000 µm², ~28 % of the tile |
Stretch option: sigma-delta and switched-capacitor filter
A first-order sigma-delta (the carry-out of an 8-bit accumulator) spreads the pulses evenly, so a passive switched-capacitor low-pass with C2/C1 = 256 (C1 ≈ 40 fF, C2 ≈ 10 pF) keeps the ripple within one LSB, even at 8 bits. Not needed for a working DAC, but a nice extra for anyone who wants to learn noise shaping and switched-capacitor circuits.
How the project is organised
One folder per block, each with its own depend.config, all listed in workspace.config.
This is the same layout IC Works uses for its own chip projects.
bvm_analog_tapeout/
├── workspace.config components in this project
├── setup/
│ ├── analog/ xschemrc, corner runner, layout tech files
│ └── digital/ LibreLane flow, cocotb common
├── analog/
│ ├── bandgap/ bias_gen/ clk_doubler/ out_buf/ pwm_dac/
│ └── tt_analog_top/ top schematic + layout, LVS
├── digital/
│ ├── spi_slave/ reg_bank/ pwm/
│ └── dig_top/ integration and harden
├── tapeout/ the Tiny Tapeout repo we submit
├── obj/ build outputs (not in git)
└── doc/ datasheet, bring-up notes