ICLayout-Bench
A benchmark framework for AI-driven integrated-circuit layout.
From netlists to GDS, with isolated EDA tools and independent evaluation.
简体中文 · Quick Start · Dataset · Documentation · Issues
Why ICLayout-Bench?
ICLayout-Bench measures how well an LLM agent turns a transistor-level circuit, its operating conditions and a process design kit (PDK) into a correct, high-quality layout. You evaluate a model through an agent CLI (a harness): Bench gives the agent each task and an isolated EDA workspace, freezes the GDS it submits and scores that layout independently.
flowchart LR
Task["Netlist + requirements + PDK"] --> Agent["Your model in an agent harness"]
Agent <--> EDA["Isolated EDA workspace"]
Agent --> GDS["Submitted GDS"]
GDS --> Judge["Independent evaluation"]
Judge --> Result["Score 0–100 + evidence"]
The public ICLayout-Bench Dataset provides 92 tasks on four open PDKs (FreePDK45, GF180MCU, IHP SG13G2 and SKY130A), from logic cells and SRAM to regulators, data converters and RF amplifiers. Its 21-task core selection is the standard benchmark.
| Capability | What it provides |
|---|---|
| End-to-end layout tasks | Declared netlists, operating conditions, physical constraints and PDK resources, with GDS as the submission. |
| Independent evaluation | Artifact checks, DRC, LVS, parasitic extraction and post-layout measurements on frozen candidate bytes. |
| Native agent harnesses | Codex, Claude Code, DSH, Kimi Code and ZCode, plus custom controllers through HTTP/MCP. |
| Repeatable experiments | Explicit model/effort conditions, independent repetitions, saved evidence and interrupted-session recovery. |
| Usage and cost analysis | Native token counts, timing and cost coverage alongside the independent score. |
Choose your path
| You want to | Start here |
|---|---|
| Evaluate a model or agent on your own machine | Quick Start |
| Benchmark your own agent program, or add tools such as MCP servers | Custom controllers and tool schemes |
| Score a GDS you already have, without a model | Standalone evaluation |
Prerequisites
You need:
- Linux x86-64 with Docker usable by your account, and Bubblewrap
(
bwrap, usually thebubblewrappackage), which sandboxes the agent CLI. - Python 3.12+ and Git.
- One supported agent CLI, installed and signed in, that can reach the model you want to evaluate; see step 2.
- Access to Hugging Face to download the public Dataset on first use, or a local Dataset directory.
Quick Start
1. Install Bench and the EDA image
In a fresh Python 3.12+ virtual environment:
python -m pip install iclayout-bench
docker pull "$(python -m benchmarking.eda image)"
The package contains the framework only; tasks come from the Dataset and EDA
tools from the image. Each release uses the tools image published with it
(iclayout-bench-tools:v<version>), so a pinned package keeps the same toolchain.
Check the host before the first run:
python -m benchmarking.eda doctor # Linux, Python, Git, Docker
bwrap --unshare-all --share-net --ro-bind / / true && echo "bwrap OK"
For wheel or source installs, see installation options; to use another image, see images.
2. Connect your model
Bench does not call model APIs itself. It launches an agent CLI that talks to your model and records the model ID and effort with every result. Choose the harness that can reach your model, then sign in with that CLI:
| Your model is reached through | harness |
model value |
Setup |
|---|---|---|---|
| OpenAI (ChatGPT sign-in or API key) | codex |
A model ID accepted by Codex | codex login; see Codex |
| Anthropic (Claude sign-in or API key) | claude-code |
A model ID accepted by Claude Code | Sign in to Claude Code; see Claude Code |
| Kimi Code account | kimi-code |
A model alias in your Kimi configuration | kimi login; see Kimi Code |
| BigModel or Z.AI coding plan | zcode |
account:<plan>/<model> |
zcode login in a dedicated profile; see ZCode |
| Any OpenAI- or Anthropic-compatible API | zcode |
<provider>/<model> |
Endpoint and key variable in a profile config.json; see ZCode |
| DSH | dsh |
A model ID accepted by DSH | settings.yaml in its home; see DSH |
| Your own agent program | command |
A label recorded with results | [scheme.launch]; see custom controllers |
By default a native harness uses your CLI's normal sign-in. To keep benchmark
credentials separate, sign in inside a dedicated profile directory and point
harness_home at it (details).
Each run is sandboxed: the agent sees the task and Bench's tools, not your
personal skills, rules, memories, plugins or MCP servers, and the configured
model and effort override the CLI's own settings.
3. Write experiment.toml
harness = "codex" # harness from step 2
model = "your-model-id" # exact model ID for that harness
effort = "medium" # reasoning effort the model supports
concurrency = 1 # tasks solved at the same time
repetitions = 1 # independent solves per task
# harness_home = "profiles/codex" # optional dedicated sign-in profile
[dataset]
source = "lizhangmai/ICLayout-Bench" # Dataset repository ID or local directory
name = "core" # "core" benchmark or "all" tasks
split = "test"
Paths in this file resolve from its own directory. The full field list is in the configuration reference.
4. Check the setup, then solve one task
# Resolve configuration and task bindings; no model or Docker calls.
python -m benchmarking.run --config experiment.toml --case NAND2_X1 --dry-run
# Solve and evaluate one small task. This makes real model calls.
python -m benchmarking.run --config experiment.toml --case NAND2_X1
Bench downloads the Dataset on first use. NAND2_X1, a two-input logic gate,
is a quick end-to-end check. The agent works until it submits or the task's
solve budget runs out; each task declares its own budget, from one to a few
hours. Dry-run does not test sign-in, quota or Docker; the first real run does.
5. Read the result
Results are grouped under results/<config-file-name>/:
python -m benchmarking.run --status --output results/experiment
The status lists every task run with its state, independent outcome
(pass or fail) and score (0–100). Each run directory,
results/experiment/<task-id>/<timestamp>/, keeps the evidence:
| File | Contents |
|---|---|
result.json |
Score and metrics, verdict, condition, token usage and known cost |
final.gds, layout.png |
The scored layout and its preview |
evaluation/ |
Evaluation plan, measurements and DRC/LVS/extraction/simulation logs |
agent.jsonl, native/ |
Agent launches and native conversation logs |
See reading a run for every field.
6. Run the core benchmark
Omit --case to run every task in the selection. For a long batch, choose an
output directory and run it in the background:
python -m benchmarking.run --config experiment.toml --output results/my-model --detach
python -m benchmarking.run --status --output results/my-model # progress and scores
python -m benchmarking.run --stop --output results/my-model # stop, keeping evidence
python -m benchmarking.run --config experiment.toml --output results/my-model --resume --detach
The last command continues an interrupted batch: finished tasks are skipped and
unfinished sessions keep their original deadlines. With concurrency = 1 the
core tasks run one after another, each for up to its solve budget, so a full
pass can take more than a day. Raise concurrency within your machine's
resources and your provider's rate limits. See
failure recovery for the other options.
Next steps
- Compare models or efforts: use
efforts = ["medium", "high"], several--configfiles or a matrix; setrepetitionsfor independent repeats. See multiple conditions. - Track usage and cost: add a
[pricing]table, then export per-run tokens, cost and duration withpython -m benchmarking.analyze results/my-model/*/*/result.json --output results/my-model-analysis. See usage and cost. - Add participant tools: declare MCP servers, instructions or a solver image
in a
[scheme]. See participant tool schemes.
How scoring works
The Agent performs device implementation, placement, routing and iteration in its EDA workspace, and may run process checks before submitting. The evaluator then checks the accepted layout snapshot in a separate trusted environment: artifact checks, DRC, LVS, parasitic extraction and post-layout measurements. Rejected layouts score 0, as do runs that end with an exhausted budget or an agent error; infrastructure errors leave the score unknown rather than zero. Valid layouts score up to 100, measuring electrical and area quality against each task's declared targets. A feasible layout can still have room to improve. See scoring.
Documentation
| Need | Guide |
|---|---|
| Configure harnesses, run experiments, recover sessions and analyze results | Running |
| Understand task inputs, scoring and reference qualification | Tasks |
| Set up images, PDK resources and EDA backends | Tools |
| Understand ownership, isolation and the HTTP contract | Architecture |
| Develop and verify framework changes | Contributing |
FAQ
The run fails before the agent starts. What should I check?
Run python -m benchmarking.eda doctor and the bwrap check from
step 1. Bench refuses to launch an agent
without Bubblewrap isolation. Sign-in, endpoint and quota problems appear only
in real runs; check the harness profile. See
startup troubleshooting.
Where are the tasks and reference layouts?
Tasks live in an independently supplied Dataset, selected by explicit path or repository revision. The Python package bundles no tasks. Delivered Datasets omit reference layouts and qualification evidence; authors retain those separately.
Can the agent use my own skills, MCP servers or settings?
Not implicitly. Runs are isolated from your personal CLI configuration so that conditions are comparable. Declare extra instructions, MCP servers or files in a participant tool scheme; the scheme is recorded with the results.
Does passing a task mean a score of 100?
Passing establishes physical and functional validity. Scores measure quality against declared electrical and area targets, with each metric capped at its target. A reference proves feasibility and can score below 100. See scoring.
Are token counts and costs always available?
The framework retains native usage when the harness supplies it. Missing counts, timing or prices remain unknown. Token-based costs use the frozen price table and can differ from the actual bill. See usage and cost.
License
The framework is MIT licensed. Task materials, PDKs and EDA tools retain their own licenses; consult the selected Dataset's notices for material rights.
Metadata
Release files for iclayout-bench 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iclayout_bench-0.8.2.tar.gz | 970.2 kB | With provenance | Details for iclayout_bench-0.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iclayout_bench-0.8.2-py3-none-any.whl | Python 3 | none | any | Details for iclayout_bench-0.8.2-py3-none-any.whl |
Total release size: 1.4 MB
Release files / iclayout_bench-0.8.2.tar.gz
| Download URL | iclayout_bench-0.8.2.tar.gz |
|---|---|
| Size | 970.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13c54f84388ec7c54aac93741ef4bcb261814076bd835930d5860c51e3eacc8d
|
|
BLAKE2b-256 checksum How to use checksums |
a13922f9bc574cb616286b7626b9b6093b58368c9cdc29fc9f08bfe1aa52de13
|
| 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 11, 2026.
Transparency logRelease files / iclayout_bench-0.8.2-py3-none-any.whl
| Download URL | iclayout_bench-0.8.2-py3-none-any.whl |
|---|---|
| Size | 473.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c04b1da088becd349ad048feea8f75ccc6518cd56c37afb78943a259e18e675
|
|
BLAKE2b-256 checksum How to use checksums |
17c8592447188ebbf8724eb4e7b455570466caf4c5e2b0065be78b8155da951d
|
| 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 11, 2026.
Transparency logSecurity for iclayout-bench 0.8.2
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.
Attestation for iclayout_bench-0.8.2.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 11, 2026.
Transparency logA 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.