Design challenge: 8-channel servo controller on one Tiny Tapeout tile

Homework before Session 2 (Wednesday 14 October 2026, 2:00–4:00 PM IST, Zoom link) · BVM Engineering College · Jørgen Kragh Jakobsen, IC Works

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.

Everything you need is in the Session 1 slides (“Tiny Tapeout 101” steps 1–6 and “Open source tools you can start with”). Recording and slides are here.

1Know your box: limits of one digital tile

ItemLimit
Tile size (SKY130, 1x1)about 160 × 100 µm. Bigger options are 1x2, 2x2, 3x2, 4x2, 6x2 and 8x2, but this challenge is 1x1.
Logic capacityAbout 1000 simple gates at the default 60 % placement density, or about 320 flip-flops (≈ 40 bytes) if you only had registers.
Pinsclk, 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
ClockUp 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 bandwidthThe 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.
Electrical3.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.
MemoryNo RAM inside a 1x1 tile. Registers are built from flip-flops, so every bit costs area.

Sources: tinytapeout.com/specs/gpio, /specs/clock, /specs/memory, /faq, and the info.yaml of the SKY template.

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

  1. Log in to GitHub, open github.com/TinyTapeout/ttsky-verilog-template, press Use this template → Create a new repository. Make it public.
  2. Settings → Pages → Source: GitHub Actions. This turns on the docs and GDS viewer pages.
  3. Clone it to your PC: git clone https://github.com/<you>/<repo>.git
  4. 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.
  5. Rename the module in src/project.v and in test/tb.v. Add your source files to PROJECT_SOURCES in test/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:

10 ms frame 0.5 ms + 0 … 1.5 ms pulse = 0.5 ms + value × 1.5 ms / 255

3.2 Register bank

AddressNameBitsResetFunction
0x0 – 0x7DUTY0 – DUTY78you choose
(hint: which value gives 1.5 ms?)
Pulse width of PWM channel n
0x8ENABLE80x00Bit 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²CUART
Pins (TT standard)uio[0] CS_N, uio[1] MOSI, uio[2] MISO, uio[3] SCKuio[2] SCL, uio[3] SDA (open drain via uio_oe)uio[1] TXD, uio[2] RXD
Difficultyeasyhard (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

4Verify it

  1. Write a cocotb test in test/test.py that resets the chip, writes some registers over your serial interface, reads them back, and measures the pulse widths on uo_out: 0 → 0.5 ms, 255 → 2.0 ms, and a period of 10 ms.
  2. Run it locally with Icarus Verilog:
    cd test
    pip install -r requirements.txt
    make
    gtkwave tb.fst tb.gtkw     # or: surfer tb.fst
  3. 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.
  4. Open the gds summary and note the cell count and utilisation of your tile.

Hand-in for Session 2

You can work in pairs. Copilot or other AI tools are allowed, but you must be able to explain every line.

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).