Analog layout generators provide a programmable interface for design reuse and process migration, but their coverage is limited by handcrafted libraries. The designer knowledge embedded in complete layouts remains implicit in their geometry, making it difficult to capture in reusable generator libraries. We present ReLay, a bidirectional layout-code framework that recovers generator programs from existing layouts, enabling cross-PDK portability and parametric resizing of existing designs. Constructions that recur across recovered programs are promoted to library functions, so the library evolves as layouts accumulate. We also introduce the first layout-code benchmark: 1,050 hand-drawn layouts from 27 circuit families across three open-source PDKs, ranging from primitive cells to full chips. Learned functions account for 53-66% of layout-building calls in held-out layouts, demonstrating reuse beyond the learning corpus. Frontier LLM agents use ReLay to produce new layouts at 64-77% lower API cost per completed task than direct geometry generation, with comparable completion rates and electrical quality.
Figures & tables
Fig. 1: Unidirectional and bidirectional generator workflows.
Fig. 2: ReLay layout decompiler and program reconstructor. Both the flat and the structured program regenerate the original GDS byte for byte.
Fig. 3: Library hierarchy and its evolution with the benchmark.
Benchmark
Entries
Families
PDK
Layout
Verification
FALCON [ 30 ]
20
5
45 nm
none
sim.
AnalogGym [ 31 ]
30
5
SKY130
none
sim.
LOADBench [ 32 ]
100+
1
SKY130
none
sim.
Analog-DB [ 33 ]
68
16
3 open ∗
none
sim.
SGAnalog [ 34 ]
273
7
SKY130
none
graph, sim.
OSIRIS [ 35 ]
87,100
2
SKY130
generated
DRC, LVS, sim.
TABLE I: Comparison with published analog circuit benchmarks.
Fig. 4: Evaluating ReLay on multiple tasks. In (b), cost counts all tokens and API charges per completed task, including failed attempts, and build time covers regenerating a completed layout; in (d) and (e), program size counts source tokens, including library definitions. In (e), learning uses only development layouts.
Property
Share of the source that the migrated layout keeps
Placement
finger pairs that keep their left/right and above/below order
Wiring
wire length kept on the same net, metal layer, and direction
Group order
matched groups (common-centroid, interdigitated, or side-by-side) whose fingers keep their order
Device ratios
matched and mirrored pairs whose W/L ratio stays within 1%
Symmetry
device groups mirrored about an axis, such as the two halves of a differential pair, that stay symmetric within 5 nm
Compactness
area, as the source area over the migrated area (at most 1)
TABLE II: Design properties compared before and after migration.
Analog layout remains largely manual and hard to automate. Generator frameworks such as gLayout express layouts as programs, producing layouts from parameterized, design-rule-aware generators; however, writing such generators still takes expert effort. Large language models (LLMs) could now write generator code, and frontier models can even draw layout geometry from design intent. This raises a practical question: if a model can draw the layout itself, what does a generator framework still contribute, and is applying these models to a generator framework better than having them draw a layout from scratch? Through controlled experiments on gLayout in SKY130, we find that the main obstacle to drawing a layout directly is its time and token cost, and that the main advantage of a model building on a generator framework is reusability. Its verified primitives keep each model edit small enough to check, and its parameters allow a single edit to be evaluated across an entire family of layouts. Accordingly, a model is most effective when it develops the layout from the generator source of the family that the design intent belongs to, and tests each edit on the family members most likely to fail, so that one verified change improves every layout the generator produces. The results of these family tests can then serve as supervision for a local model, which learns edits that hold across the family at a fraction of the inference cost.
Minxing Chu, Anhang Li, Martins Atilla +2
Brown University, Providence, RI, USA · University of Michigan, Ann Arbor, MI, USA
Coding agents have demonstrated strong capabilities in software development, yet their ability to tackle long-horizon engineering tasks governed by physical constraints remains less understood. We study this question through analog circuit layout, which demands domain knowledge, geometric reasoning, and iterative interaction with design and verification tools. We introduce AnalogLayoutWorld, an open-source agent benchmark with 40 expert-reviewed tasks for end-to-end layout generation from fixed transistor-level netlists. It combines an integrated design environment with independent physical and post-layout electrical verification, as well as objective layout quality metrics co-designed with analog layout experts. Across 13 model--harness configurations, 91.1% of attempts produce GDS layouts, but only 23.0% satisfy the benchmark's acceptance criteria. We also evaluate Novara, an internally developed agent system, which achieves the highest reported aggregate score. Our analysis links performance differences to test-time scaling under fixed budgets, suggesting that reasoning efficiency and effective use of verification feedback help sustain design quality as task complexity grows.
Language-model agents can repair analog layouts when sign-off tools check every edit, but which model should plan a repair, which should edit it, and at what cost remain open questions. In our tool-grounded repair agent, models only choose bounded layout operators; sign-off tools rerun each task's contract checks after every edit, so failing layouts are never accepted. On layout-versus-schematic (LVS), design-rule checking (DRC), and post-layout repairs of three designs (a production high-voltage digital-to-analog converter (DAC), a 5-V oscillator, and a SKY130 operational transconductance amplifier (OTA)) with six tier-matched models from two vendors, 182 blind runs show that cheap models execute plans but rarely succeed alone (the cheapest model: 1 of 11 runs alone, 16 of 17 under a flagship planner; p < 0.001), cheap planners fail more often, and no fixed assignment is cheapest on every task. We propose a learning controller that selects models for each role and the escalation order from the first tool evaluation and updates Bayesian estimates after every attempt. With rules and initial estimates frozen before testing, the controller fixed 7 of 8 episodes on four sealed held-out tasks, matching the OpenAI flagship alone, at 15-40% of the flagship's spend per fix on three tasks but 8% higher spend overall. The cheapest mid-tier model alone fixed 6 of 8 at the lowest overall spend per fix but missed the hardest task. All 32 extracted DAC repairs match the human-guided LVS repair's integral nonlinearity (INL) within 0.005 least significant bits (LSB) at every code.
Xilai Dai, Saeed Mohammadi
the Elmore Family School of Electrical and Computer Engineering, Purdue University, West Lafayette, IN 47907, USA