The task in short
Design a chip that drives 8 hobby servos. A microcontroller writes the servo positions into the chip over a serial interface (SPI, I²C or UART, you choose). The chip makes the servo pulses by itself.
The design must fit in one Tiny Tapeout tile on the SkyWater SKY130 130 nm process, targeting the TTSKY26d shuttle. It must pass the GitHub Actions checks in the official template. Bring your GitHub repository to Session 2, where we go through the solutions.
1Know your box: limits of one digital tile
| Item | Limit |
|---|---|
| Tile size (SKY130, 1x1) | about 160 × 100 µm. Bigger options are 1x2, 2x2, 3x2, 4x2, 6x2 and 8x2, but this challenge is 1x1. |
| Logic capacity | About 1000 simple gates at the default 60 % placement density, or about 320 flip-flops (≈ 40 bytes) if you only had registers. |
| Pins | clk, rst_n (active-low reset)8 inputs ui_in[7:0]8 outputs uo_out[7:0]8 bidirectional uio[7:0], each with its own output enable uio_oe |
| Clock | Up to about 50 MHz (the template constrains to 20 ns). The demo board RP2040 can supply anything from 1 Hz upwards. Use 10 MHz for this task. |
| I/O bandwidth | The sky130 pads are rated about 66 MHz in and 33 MHz out. Signals go through the shared project multiplexer, which adds up to about 20 ns round trip and about 10 ns clock insertion delay, so keep serial clocks in the low-MHz range. |
| Electrical | 3.3 V on the demo board, about 4 mA drive per pin, inputs are not 5 V tolerant. A servo signal input is fine with 3.3 V, but power the servos from a separate 5 V supply. |
| Memory | No RAM inside a 1x1 tile. Registers are built from flip-flops, so every bit costs area. |
Your job: read those pages yourself and do a quick area budget before you write any code. How many flip-flops does your design need? Is that comfortably under the tile limit?
2Make your own repository from the SKY130 template
- Log in to GitHub, open github.com/TinyTapeout/ttsky-verilog-template, press Use this template → Create a new repository. Make it public.
- Settings → Pages → Source: GitHub Actions. This turns on the docs and GDS viewer pages.
- Clone it to your PC:
git clone https://github.com/<you>/<repo>.git - Edit
info.yaml: title, author, description,clock_hz: 10000000,tiles: "1x1",top_module: "tt_um_<githubname>_servo8", all source files, and a name for every pin you use. - Rename the module in
src/project.vand intest/tb.v. Add your source files toPROJECT_SOURCESintest/Makefile.
Target shuttle: TTSKY26d (SkyWater SKY130).
Submissions close on 30 November 2026, chips are expected around May 2027. The template is already set up for ttsky26d,
so a working design can actually be submitted after Session 2.
3The design specification
3.1 Servo signal
A hobby servo (SG90, MG90S, MG996R …) reads the width of a positive pulse that repeats at a fixed rate. The classic spec is a 20 ms (50 Hz) frame with a pulse of 1.0–2.0 ms, where 1.5 ms is the centre. Most servos accept a wider range of about 0.5–2.5 ms for close to 180° travel, and digital servos accept faster frame rates. Look up the datasheet of a servo you have and compare it with the numbers below.
For this challenge:
- Frame (cycle) time: 10 ms (100 Hz)
- Pulse width: 0.5 ms (register = 0) to 2.0 ms (register = 255), linear
- A disabled channel outputs constant 0
- Outputs must be glitch-free, so drive them from flip-flops
3.2 Register bank
| Address | Name | Bits | Reset | Function |
|---|---|---|---|---|
| 0x0 – 0x7 | DUTY0 – DUTY7 | 8 | you choose | Pulse width of PWM channel n |
| 0x8 | ENABLE | 8 | 0x00 | Bit n = 1 turns on PWM channel n |
All registers must be writable and readable over the serial interface.
3.3 Serial interface: pick one
| SPI (recommended first try) | I²C | UART | |
|---|---|---|---|
| Pins (TT standard) | uio[0] CS_N, uio[1] MOSI, uio[2] MISO, uio[3] SCK | uio[2] SCL, uio[3] SDA (open drain via uio_oe) | uio[1] TXD, uio[2] RXD |
| Difficulty | easy | hard (start/stop, ACK, open drain) | medium (baud generator, oversampling) |
Define your own frame format and document it in docs/info.md. For SPI, a simple example is a 16-bit frame:
first byte [7]=R/W, [3:0]=address, second byte = data (write) or register contents on MISO (read).
The interface signals come from outside and are not in step with your 10 MHz clock. Synchronise them with two flip-flops before you use them, and state the maximum serial clock your design supports.
3.4 Suggested pin out
uo_out[7:0]: PWM0 … PWM7uio[3:0]: serial interface (as in the table above). Setuio_oeso that only the outputs are driven.ui_in: free. Bonus idea: an emergency “all off” input.
4Verify it
- Write a cocotb test in
test/test.pythat resets the chip, writes some registers over your serial interface, reads them back, and measures the pulse widths onuo_out: 0 → 0.5 ms, 255 → 2.0 ms, and a period of 10 ms. - Run it locally with Icarus Verilog:
cd test pip install -r requirements.txt make gtkwave tb.fst tb.gtkw # or: surfer tb.fst - Commit and push. All GitHub Actions must be green: test, gds (synthesis and place-and-route on SKY130), precheck, gl_test (your test on the gate-level netlist) and docs.
- Open the gds summary and note the cell count and utilisation of your tile.
Hand-in for Session 2
- The link to your public GitHub repository, with all actions green
docs/info.mdfilled in, with how it works, the register map, the serial frame format and how to test it- A waveform screenshot showing one write, one read and a measured servo pulse
- Your numbers: number of flip-flops, utilisation %, and the maximum serial clock
Hints
Hint 1: avoid a 14-bit counter and 8 adders
Choose a time step of 1.5 ms / 255 ≈ 5.88 µs (170 kHz). Then the whole frame is exactly 1700 steps, the fixed 0.5 ms is exactly 85 steps, and the 2.0 ms maximum is 85 + 255 = 340 steps. One prescaler (10 MHz / 59) and one 11-bit counter can drive all 8 channels. Each channel only needs an 8-bit compare.
Hint 2: area budget
9 registers × 8 bits = 72 flip-flops, plus prescaler, frame counter, serial shift registers, synchronisers and 8 output flip-flops. The total is about 130 flip-flops. That fits a 1x1 tile, but there is little room for extras.
Hint 3: simulation time
One 10 ms frame at 10 MHz is 100 000 clock cycles. That is fine in Icarus, but don’t simulate 50 frames. You can also make the clock and step rates
parameters so your test can use a faster setting.
Tools from Session 1
VS Code with TerosHDL (lint, schematic and state machine viewer), Icarus Verilog, cocotb, GTKWave or Surfer, Yosys
(yosys -p "read_verilog src/*.v; synth -top tt_um_...; stat" gives a quick flip-flop count).