Skip to main content

ChipLeap

Tell it the model and the speed you need. ChipLeap designs the chip,
explains every choice, writes the RTL and checks it.

CI status PyPI version MIT license Python 3.10 or newer

Website · Quick start · Docs · Changelog

A rendered die that ChipLeap designed for SmolLM2 135M on the IHP 130 nm open PDK, with SRAM, a RISC-V core, a GEMV engine and an octal PSRAM interface
A chip ChipLeap designed for SmolLM2 135M on the open IHP 130 nm PDK, rendered to scale from its floorplan.

What it does

You describe a workload (say, Llama 3.2 1B decoding), a target (5 tokens per second) and your limits (area, power, process nodes). ChipLeap works out the rest:

  1. Sizes the problem. The bandwidth, compute and memory the target needs, and which memories and nodes can deliver them.
  2. Designs the architecture. An agent finds the bottleneck, tries every single change, keeps the best one and writes down why. It chooses the on-chip memory, the external memory, the dataflow, the array size, the precision, the CPU, the clock and the node.
  3. Generates the hardware. Accelerator RTL in SystemVerilog, an X-HEEP RISC-V SoC configuration or AXI4 IP for any host, a C driver, a testbench and a datasheet.
  4. Checks it. Simulation against a golden model, synthesis, place and route, and the SoC generator's own checks, on open-source tools or the commercial ones you already have.

The agent's decisions for Llama 3.2 1B: each step's floorplan drawn to the same scale, from a bare microcontroller to a 16 nm design with a GEMV engine and LPDDR5
The agent's decisions for Llama 3.2 1B at 5 tokens per second. Every floorplan is drawn to the same scale.

Quick start

pip install chipleap                # or: uv tool install chipleap
chipleap init llama.yaml            # an example spec to edit
chipleap explore llama.yaml -o out  # decisions, Pareto front and the hardware in out/
chipleap verify out                 # simulate, synthesize and check it

Open out/report.html to see each decision, the Pareto front and where the time goes.

The HTML report: the recommended design, the Pareto front of 2,154 evaluated designs and the agent's progress toward the target

Ask your AI assistant

ChipLeap is also an MCP server, so Claude, Cursor, VS Code or Codex can drive it:

claude mcp add chipleap -s user -- chipleap mcp

Then ask things like "Design the smallest chip on the IHP open PDK that runs SmolLM2 135M at two tokens per second" or "Why is this design memory bound, and what is the cheapest fix?". docs/mcp.md covers the other clients.

Works with what you have

  • Any workload: twelve LLM presets (SmolLM2, Qwen, Gemma, Llama, Phi, TinyLlama), or your own network of convolutions and matrix multiplies.
  • Any host: a complete X-HEEP RISC-V SoC, or the accelerator alone as AXI4 IP for an Arm, RISC-V or FPGA SoC (platforms).
  • Open tools: Verilator, Yosys and LibreLane (OpenROAD, KLayout, Netgen) on the IHP SG13G2 open PDK.
  • Commercial tools: Cadence Xcelium and Genus, Synopsys VCS and Design Compiler, Siemens Questa, on your machine or on a design server over ssh (guide).
  • Your own PDK: chipleap tech add measures it from its liberty files and keeps the numbers on your machine.

Every tool is optional. chipleap doctor lists what it found, and chipleap verify skips what is missing and says why.

Down to the layout

The routed layout of the 1 x 8 GEMV engine on IHP SG13G2, drawn from its GDS: signal wires on four metal layers under the power grid

chipleap verify out --steps all adds place and route with LibreLane, the open flow Tiny Tapeout uses for its IHP shuttles. The picture is the GDS it wrote for the SmolLM2 chip's 1 x 8 GEMV engine: a 0.80 mm² core with clean DRC, LVS and antenna checks that meets its 90 MHz clock at the slow corner, with room to spare (about 101 MHz, and 148 MHz at the typical one).

The accelerator model is the same tile schedule the RTL runs, so it is checked against it:

  • Cycles: equal to simulation without memory stalls, within a few percent with random stalls, on Verilator, Xcelium, VCS and Questa alike.
  • Area: logic area within 3 % on average of synthesis on IHP SG13G2, across 12 configurations.
  • Clock: the model allows what the routed accelerator meets at the slow corner: 100 MHz with one port, less with more ports or a wider GEMV engine.

The other nodes are scaled from published figures and say so. docs/model.md lists every number and its source; docs/verification.md explains each check.

Learn more

Guide What it covers
Spec format Workloads, targets, constraints and what the explorer may change
The model Timing, energy and area, with sources
Verification Simulation, synthesis, place and route, X-HEEP checks
Platforms X-HEEP or AXI4 IP, and how to integrate each
Commercial tools Cadence, Synopsys and Siemens tools, remote servers, your own PDK
X-HEEP integration How the accelerator plugs into the SoC
Where it fits Agentic EDA, workload-to-chip services and academic tools, compared

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. pytest runs the suite, and the hardware tests run when their tools are installed.

License

MIT. Generated X-HEEP configurations carry X-HEEP's Apache-2.0 header. ChipLeap is an independent project, not affiliated with EPFL, IHP or any company named here.

Metadata

Release files for chipleap 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chipleap 0.3.0
File Size Uploaded
chipleap-0.3.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chipleap 0.3.0
File Interpreter ABI Platform
chipleap-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / chipleap-0.3.0.tar.gz

Download URL chipleap-0.3.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
327bf5b96980292065a0144a55fcff1bb1a81325e9a27deee3423a0664faef81
BLAKE2b-256 checksum
How to use checksums
0610b701f218a17c73655298094e68a70dfff008380918e5c644a937bcfd3896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / chipleap-0.3.0-py3-none-any.whl

Download URL chipleap-0.3.0-py3-none-any.whl
Size 171.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80bcfd7f3516847178ee8991a6ff2be681b052a24a21fcb603766f8a6730ac82
BLAKE2b-256 checksum
How to use checksums
dd0ab9928e2b928782d6caf32c42ffc3939009f3daa8719e2086c0981c21fbaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page