Manuscript Offprint

arXiv:2610.38426

The Code Behind the Layout: AI Agents for Analog Layout Generators

Minxing Chu, Anhang Li, Martins Atilla, Ruichen Qi, Mehdi Saligane

Minxing Chu1^{1}, Anhang Li2^{2}, Martins Atilla1^{1}, Ruichen Qi1^{1}, Mehdi Saligane1^{1}

1^{1}Brown University, Providence, RI, USA 2^{2}University of Michigan, Ann Arbor, MI, USA {minxing_chu, martins_atilla, ruichen_qi, mehdi_saligane}@brown.edu, anhangli@umich.edu

Abstract—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.

I. INTRODUCTION

Analog layout remains one of the least automated stages of integrated circuit design. A current mirror laid out in one process is typically redrawn for every new sizing and every new technology node. The reasoning behind the layout, such as which devices must match, which nets carry signal, and where taps and routes are placed, is rarely recorded and must be reconstructed each time. Generator-based frameworks capture this reasoning in code. The BAG family expresses schematics, layouts and measurements as Python generators [1], and LAYGO2 assembles layouts from dynamic templates on technology grids [2]. ALIGN and MAGICAL derive placement and routing from netlists and constraints [3], [4], while gLayout composes hierarchical device and routing generators over a mapped PDK [5], [6] (Table I). In each case, a generator is a parameterized program: a new set of device sizes yields a new member of the same layout family, and the designer's decisions carry over to every member.

However, writing a generator still requires substantial expertise in both the layout itself, from design-rule spacing and device construction to net routing, and the framework's programming interface used to express it. Meanwhile, large language models (LLMs) have become increasingly capable of solving non-trivial programming tasks [7], [8], and researchers have begun to apply them to generator design and to layout itself [9]. LLMs now read circuit schematics [10], propose

Figure

Fig. 1. Overview of the family-level editing loop.

circuit topologies [11], [12] and size analog circuits [13]. They also translate design intent into generator code [5], extend existing generators, tune their exposed parameters from post-layout feedback [14], [15], and repair design-rule violations with a checker in the loop [16], [17]. Moreover, state-of-the-art models can even draw an entire layout from scratch, polygon by polygon, directly from design intent, without a generator backbone in the loop [14].

This progress raises a practical question with two sides. If a model can produce a layout by itself, why keep a generator framework at all? And if the framework stays, how much does the model gain by working inside it, editing and extending the generator? We study this question from three aspects. The first is at which level the model should act. The three levels in Table I, the raw geometry, the calls to the framework's device and routing cells, and the generator source, differ in where the design knowledge resides and in how much code an edit has to touch, and a policy that cannot land a working edit at a level gains nothing from it. The second is how an edit should be evaluated. Checking it only on the set of device sizes it was written for, which we call a configuration, is what existing layout agents do; checking it across the family is what the generator makes possible, and the question is how many configurations that check needs. The third is whether the verdicts of those checks can train a smaller local model to do the same work at lower cost. Cost has two sources, the physical verification each tested configuration requires and the inference tokens the frontier model consumes; a verdict that holds across a family can serve as a training label and so reduce the second.

We address these questions through controlled experiments on gLayout [6], [18] in SKY130. Two frontier models, Claude

Opus 5.5 and GPT-6.1, serve as the editing policy: the agent that proposes the edits. Each runs the same tasks at three action levels: raw geometry, device and routing cells, and full generators. A local 32B model trained on the family verdicts then takes over the editing (Fig. 1).

References (24)