Skip to main content

ChipLeap

From a spec or from your RTL to GDS. Tell it the model and the speed you need, and ChipLeap
designs the chip, explains every choice and writes the RTL; or bring RTL of your own. Either way it checks it down to the layout.

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 generator is the path for AI workloads. For anything else, the checks run on RTL you wrote: see Your own RTL.

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

Your own RTL

Point ChipLeap at a directory of Verilog or SystemVerilog with cocotb tests:

chipleap project init path/to/rtl       # writes project.yaml: top, sources, clock, reset, tests
chipleap verify path/to/rtl             # lint, simulation, coverage, formal, CDC, synthesis, equivalence
chipleap verify path/to/rtl --steps all # and every step after it, down to the whole chip

Each step names what it found: a failing test with its file and line, a failing property or netlist with its counterexample, an unsafe crossing with the path between its registers. An assistant gets the same through MCP and can fix the RTL in a loop. docs/projects.md describes the project file and every step.

The full digital flow

These are the steps ChipLeap runs on a project today, with what each reported for examples/uart, a UART written by hand with cocotb tests and a Python reference model, at 100 MHz on IHP SG13G2. Every tool in the table is open source, and each step skips itself, with the reason, when its tool is missing; simulation, synthesis and place and route also run on Cadence, Synopsys and Siemens tools (guide).

Step Tools The UART on this release
Project project.yaml: top, sources, parameters, clocks, resets, tests, golden model 3 SystemVerilog files, 5 cocotb tests, a Python model
Lint Verilator -Wall, slang -Wextra no warnings
Simulation cocotb 2 on Icarus or Verilator, against the golden model 5 of 5 tests pass
Coverage Verilator line, branch and toggle coverage, with the points never reached line 83.3 % (two default: arms no state reaches), branch 100 %, toggle 100 %
Formal SymbiYosys on the design's own assertions the transmitter's line in every state, proved for every cycle with abc pdr
Clock and reset crossings ChipLeap's structural checker on the netlist Yosys elaborates the receive line through a two-flop synchronizer, accepted; one warning, the reset released asynchronously
Synthesis Yosys and ABC on IHP's standard cells 221 cells, 51 flip-flops, 0.0041 mm², critical path 1.01 ns
Equivalence Yosys (or EQY): RTL against synthesis, synthesis against the routed netlist 74 of 75 points proved and the last equal for 40 cycles; all 959 routed points proved
Place and route LibreLane 3.0.14 (OpenROAD, KLayout), signed off at the slow corner, IHP's antenna deck on the result 362 cells on a 0.0105 mm² core, 100 MHz met at 125 C (about 247 MHz), DRC, LVS and antenna clean
Gate-level simulation the cocotb tests on the routed netlist with SDF delays, Icarus 13 5 of 5 tests pass
Design for test OpenROAD scan insertion, Fault with Quaigh for ATPG 3 chains of 17 flip-flops, 99.2 % stuck-at coverage with 39 patterns, which pass through the scan and the routed netlists
Power OpenROAD with the activity of the project's own tests 0.416 mW at the typical corner (1.01 mW vectorless)
IR drop OpenROAD PDNSim on the routed power grid 0.615 mV at worst
Power intent UPF read and placed by OpenROAD the receiver in a domain of its own, 13 signals between the two
ECO OpenROAD edits on the routed design, then LibreLane's signoff again a gate resized and the UART signed off again in about a minute
Macros macro/v1 packages, checked and rewritten before use aispice's StrongARM comparator, 29.1 x 40.8 um, both decisions measured after layout, its transistors in LVS
Chip assembly LibreLane with IHP's pad ring, then bond pads, seal ring and fill in KLayout 33 pads on a 1.52 x 1.52 mm die
Timing at the ports OpenSTA through IHP's IO cells at every corner +0.759 ns of setup slack at the slow corner (+0.899 ns at the core's side of the pads, against the budget the pads leave it)
Signoff IHP's DRC deck on the whole die (density included), its LVS deck down to the macros' transistors, its antenna deck and OpenROAD's antenna check 0 DRC violations, LVS match, 0 antenna violations
chipleap verify examples/uart               # lint to equivalence, in about ten seconds
chipleap verify examples/uart --steps all   # and place and route, gate level, DFT, power, IR drop, UPF and the chip

The UART chip's layout drawn from its GDS: 33 bond pads and IHP's IO cells around a 400 um core, with aispice's comparator in the core's upper left, inside the seal ring
The UART as a chip, drawn from its GDS before fill: 33 pads, IHP's IO ring, the core with aispice's comparator in its upper left, and the seal ring.

With a chip section the project becomes a whole chip (docs/chips.md): the core, hardened blocks from macro packages and a pad ring of IHP's IO cells, routed by LibreLane, with bond pads, seal ring and fill, timed at its own ports through the pads, checked with IHP's DRC and LVS decks, and a bond map for the package. The UART chip's comparator takes its inputs from two analog pads and drives the receive line. It builds and checks in about 13 minutes on a laptop.

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", "Why is this design memory bound, and what is the cheapest fix?" or "Make my RTL in ./uart lint clean and pass its tests". 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 RTL: your own Verilog or SystemVerilog with cocotb tests, through the same checks down to the layout (projects).
  • After the layout: DFT with scan chains and ATPG, gate-level power from your tests, IR drop, UPF power domains and ECOs on the routed design (after place and route).
  • 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, Icarus, slang, cocotb, Yosys, LibreLane (OpenROAD, KLayout, Netgen) and Fault 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 4 x 8 GEMV engine with two read ports 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 3.0.14, the release Tiny Tapeout's GDS action uses for its IHP shuttles, on the IHP-Open-PDK commit of your PDK checkout. The picture is the GDS it wrote for the SmolLM2 chip's 4 x 8 GEMV engine with two read ports: a 1.47 mm² core with clean DRC, LVS and antenna checks. Routed for its 50 MHz clock, it meets timing with 5.6 ns to spare at the slow corner (hold +0.093 ns). Its buffers are 16-word flop buffers there, since its two read ports write more than one word a cycle, which the layout's SRAM banks do not take.

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 24 configurations, a macro-backed build's bank interface included, and buffers priced with the SRAM macros the layout places, equal to the routed SmolLM2 accelerator's.
  • Clock: the model allows what the routed accelerator meets at the slow corner on LibreLane 3.0.14: 100 MHz with up to four ports, about 92 MHz with eight and 80 MHz with sixteen, and less for a GEMV engine with eight or more lanes or more than eight columns.

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.

Analog and mixed-signal: aispice

ChipLeap covers the digital side. Its analog counterpart, aispice, designs and sizes analog blocks on the same PDK: IC templates proven at every corner, layouts drawn by generators and checked with IHP's DRC and LVS decks, specs measured before and after extraction. It exports a block as a macro package, and assembles analog-on-top chips that place ChipLeap's digital blocks the same way.

The two tools hand hardened blocks to each other as macro packages: GDS, LEF, liberty, a Verilog model, a SPICE netlist, measured specs and DRC and LVS evidence, described by one macro.toml. Both check a package with the same rules before placing it:

chipleap macro check tiny_ota.macro --pdk ihp-sg13g2

docs/macro-package.md is the format, shared word for word with aispice.

Learn more

Guide What it covers
Spec format Workloads, targets, constraints and what the explorer may change
Chips The pad ring, macros, timing at the ports, signoff and the bond map
Your own RTL The project file, and lint, simulation, coverage, formal, CDC, synthesis, equivalence, place and route, gate-level simulation, DFT, power, IR drop, UPF and ECO on your design
The model Timing, energy and area, with sources
Verification Simulation, synthesis, place and route, the steps after it, 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
Macro packages The block format ChipLeap and aispice share, and the rules both check
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.4.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.4.0
File Size Uploaded Provenance Actions
chipleap-0.4.0.tar.gz 2.6 MB With provenance Details for chipleap-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 3.3 MB

Release files / chipleap-0.4.0.tar.gz

Download URL chipleap-0.4.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
7709e54034f5aaaea14f55782d7ebf419b1740ae1739d7f9476dfa73c1d5a055
BLAKE2b-256 checksum
How to use checksums
d14c88a15d8e6b1f56bb984597c7ffa8a051ef0892abbfe800e15bf728d1742e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

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

Download URL chipleap-0.4.0-py3-none-any.whl
Size 656.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb9b35b6cbb82d6226018a157b5880e9ce2b5386a31f639d5a09add50af045b9
BLAKE2b-256 checksum
How to use checksums
cf76ed52f170e9cb0e5d5fae0e08ec0912cf7afb55208f6f34ffa43fe32388fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for chipleap 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chipleap-0.4.0.tar.gz

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 Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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