ASIC · FPGA · FirmwareTapeout-ready

RISC-V SoC: RTL to GDSII and timing closure on SKY130

My RV32IM microcontroller SoC, taken from RTL to tapeout-ready GDSII with open-source tools over 44 tracked implementation runs.

  • 100 MHzboth clocks at typical
  • 2.12 x 2.12 mmdie with 82-pad ring
  • 44tracked implementation runs
  • 50.4 mWcore power
  • 17.1 mVIR drop from the pads
  • 0DRC · LVS · antenna violations

Architecture · block diagram

  • Main data path
  • Logic
  • Processor
  • Memory
  • Interconnect
  • Off-chip
RV32IM SoC on SKY130: core, caches, AXI4-Lite/APB interconnect, SDRAM controller and PCIe root portSKY130 DIE · 2.12 X 2.12 MM · 22860 CELLSRV32IM core5-stage pipeline2 KB SRAM2 KB I-cacheAXI4-Lite interconnectAXI4-Lite → APBUART · GPIO · SPItimer · INTCasync FIFOsclk → mclkSDRAM controller100 MHz · 32 MBasync FIFOsclk → pclkPCIe Gen1 x1root portPHY macroPIPE · 2.5 Gb/sSPI flashoff-chip boot imageSDR SDRAM32 MB · off-chiprefillboot
FIG. 01

The story

I wanted to take one design from RTL to GDSII myself, through each stage of the flow. So I designed a microcontroller-class SoC around an RV32IM core. I targeted SkyWater's open SKY130 PDK and held the design to the checks that a commercial tapeout requires. Open-source tools can run that flow. Most of the work is to read the reports of each run and decide what to change next.

Challenges

The die size was fixed, with an 82-pad I/O ring and a seal ring built to SkyWater's I/O guide. The SDRAM controller runs in a separate clock domain behind async FIFOs. I constrained those crossings explicitly instead of cutting them with false paths. Setup had to be met at typical and at the slow corner (ss, 100 °C). Hold had to be met at the fast corner (ff, −40 °C). Signoff also required zero DRC, LVS and antenna errors, with metal fill and density inside the PDK limits.

What I built

The core is an RV32IM processor with a 5-stage pipeline. Below 0x8000_0000, it fetches from a 2 KB SRAM. Above that address, it fetches through a 2 KB instruction cache that refills over the interconnect. The rest of the SoC sits on an AXI4-Lite interconnect:

  • an APB bridge for the UART, GPIO, SPI, timer and interrupt controller
  • a boot loader that reads SPI flash
  • an SDR SDRAM controller for 32 MB of external memory, at 100 MHz in its own clock domain

I also wrote the bare-metal firmware: the startup assembly, linker scripts, interrupt-driven tests and a two-stage boot loader. The boot loader copies code from SPI flash into SDRAM. I verified the chip in RTL simulation, and again in gate-level simulation with back-annotated routed delays.

The hardest problem

The first baseline run had a worst setup slack of about −10 ns. It took 44 implementation runs to close that gap. I committed each run with its reports and a journal entry: what the run showed, and what changed next. The run names trace the path: sram-channels, placement-padding, load-use-stall, wire-rc-calibration, hold-repair, cdc-constraints, antenna-buffers, kogge-stone, booth, fetch-ahead, on-chip-variation.

Some fixes were physical: cell padding around congested areas, a utilization sweep from 60% down to 45%, and antenna repair with diodes and buffers. Other fixes changed the microarchitecture: an extra register-read stage, a Kogge-Stone adder, a Booth multiplier with registered operands, and fetch-ahead in the front end. I changed one variable per run and recorded its effect.

Later, I built a PCIe variant with a Gen1 x1 root port. The PHY is a hard macro behind an on-chip 32-bit PIPE at 62.5 MHz. Its lane uses analog pads, and it has its own clamped supply pads. That die is 2.4 x 2.4 mm, with 64 digital signal pads, 7 analog pads and 22 supply pads. It passes DRC and LVS. Setup and hold are met at three corners with a 5% on-chip variation derate.

Result

Setup and hold are met at all three corners. At typical, both clocks run at 100 MHz. At the slow corner, they run at 50 and 62.5 MHz, and hold is met at the fast corner. Physical verification reports zero DRC errors, an LVS match and zero antenna violations, with metal fill and density inside the PDK limits. The core draws 50.4 mW, with 17.1 mV of IR drop from the supply pads. The design has 22860 cells on a 2.12 x 2.12 mm die.

Final layout of the PCIe variant: SRAM macros on the left, the PHY macro against the east edge, pad ring around the core.
Layout render
GDS layout of the RV32IM SoC with the PCIe PHY macro on SKY130, 2.4 x 2.4 mm
Where it's used

Where you'd find something like this

01

Microcontroller-class SoCs for sensors, controllers and edge devices

02

Open PDKs as a low-cost path from RTL to silicon

03

A reference flow for teams planning their first tapeout

Available · Asia/Dhaka (UTC+6)

Have hardware that needs to work?

Tell me what you're building. I'll come back with questions, a rough scope and an estimate, usually within 2 days.

PAD 01 · I/O