Manuscript Offprint

arXiv:2610.19508

CktHGVAE: A Symmetric Design/State Heterogeneous Graph Variational Autoencoder for Transistor-level Analog/Mixed-signal Circuit Design and Analysis

Shigeyasu Uno

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Shigeyasu Uno

Ritsumeikan University, 1-1-1 Noji-Higashi, Kusatsu, Shiga 525-8577, Japan

suno@fc.ritsumei.ac.jp

Abstract. We propose CktHGVAE, a heterogeneous graph variational autoencoder for transistor-level analog/mixed-signal CMOS circuits that takes not only design variables but also state variables as its inputs and outputs. With a single hyperparameter configuration without topology-specific tuning, comparison between model-generated and SPICE-simulated circuit operational states gives median R2R^{2} values above 0.9 for typical single-ended voltage amplifiers and the CMOS inverter, and 0.81-0.96 for differential amplifiers with larger datasets. Latent-space optimization in the PCA-reduced latent space with Bayesian optimization, evolutionary search, random search, and quasi-exhaustive search is demonstrated for a common-source voltage amplifier with NMOS input and resistive load, where the objective function is defined as a penalty for deviation from required circuit specifications. For each search strategy, 93.3 - 100% of all design candidates suggested by the model satisfy the required circuit specifications at the decoder output, and SPICE simulations verify that 90 - 100% of them indeed satisfy the requirements. The model pretrained on a batch of topologies can be transferred to unseen topologies without retraining at all, with zero-shot reconstruction median R2R^{2} values of 0.72-0.90 in three of four scenarios, including transfer from single-ended to differential topologies, although the transfer fidelity depends on the choice of pretraining topologies. Our demonstrations suggest that the proposed model can potentially serve as a basis for AMS CMOS circuit design automation.

Keywords: analog circuit sizing; heterogeneous graph neural network; variational autoencoder; zero-shot topology transfer; SPICE-verified generative modeling

1 INTRODUCTION

As the need for semiconductor chips grows in wide range of industries, electronic circuit designing based on complementary metal-oxide-semiconductor (CMOS) large-scale integrated (LSI) technology has been gaining much more importance. While digital circuit design has already been highly automated, analog and mixed signal (AMS) circuit design automation still needs significant advancement [1, 2]. One of the reasons is that the analog circuit performances are highly dependent on subtle differences in transistor operating conditions, process-specific characteristics and variabilities. Therefore, in determining design parameters such as transistor sizes and values of passive elements (resistance/capacitance/inductance) in electronic circuits, AMS CMOS circuit designers depend heavily on their physical insights, experiences, and many trials of numerical simulations by SPICE simulators.

Efforts to bring automation in determining design parameters have mainly been directed toward optimization of design variables: given an objective function based on design requirements, find a set (vector) of design parameters minimizing/maximizing the objective function [2, 3]. Some of such efforts were found being successful in finding optimal transistor sizes for some important analog circuit topologies. However, such optimization in high-dimensional design space often suffer from the ‘curse of dimensionality’, being limited to several tens of design parameters [3, 4]. Also, it still needs many trials of circuit simulations until reaching the final optimum.

In recent years, utilization of deep learning has emerged as a new direction of AMS CMOS circuit design automation which could overcome above challenges in optimization methods. Some works use multi-layer perceptron (MLP) as a surrogate model of circuit simulator: for a given set of design parameters, it outputs key performance indicators (KPI) [5]. Other works use variational autoencoder (VAE) neural network [6] for dimensionality reduction in design parameters: VAE constructs low-dimensional latent space to represent input design variables, and optimization of objective function is performed in this reduced-dimensional space [7]. The VAE is also used to augment training dataset to reduce actual number of SPICE simulations [8]. Other forms of generative models have also been used such as large-language-models (LLM) [9–13], transformer [14], and combination of transformer and graph representation [15, 16].

Many of state-of-the-art machine learning models for AMS CMOS circuit design automation incorporate the graph-neural-networks (GNN) [17], which is in fact a natural and reasonable path because electronic circuits are inherently graphs of device connection. FALCON uses GNN to construct a surrogate model of circuit simulator: for a given topology and design parameters, GNN is used to calculate target KPIs [18]. While optimal circuit topology is found by a feed-forward classification MLP, transistor sizing is done by using this GNN-based surrogate model and gradient-based optimization. OPAMP-Generator also uses GNN to design operational amplifier end-to-end in multiple steps [19]. First, circuit topology is represented as directed acyclic graph (DAGs) of amplifier elements with macromodel description to encode both topology and element characteristics using graph variational autoencoder (GVAE). Optimal topology and element characteristics are then found by bi-level Bayesian optimization in the latent space, followed by device sizing based on gm/Id methodology. CktGNN treats a whole operational amplifier as DAG of connection between amplifying elements represented by macromodels [20]. It then uses gated recurrent unit (GRU) based aggregation function for message passing in encoding, and the whole architecture is based on VAE. CktGen treats a whole amplifier consisting of several amplifying elements represented by macromodels similarly to CktGNN, and it encodes the whole circuit adjacency matrix using GNN as well as element type and position vectors [21]. These are used as inputs of transformer encoder to construct latent space, and transformer decoder is conditioned by circuit specifications (design requirements) to generate both circuit topology and element characteristics which meet required specifications. The whole architecture is basically conditional VAE (CVAE) with latent space alignment by contrastive learning.

These previous works indicate several important implications in leveraging neural networks for AMS CMOS circuit design automations. First, GNN is a natural and effective representation of electronic circuit operation [18–21]. Second, VAE is a preferred architecture thanks to its ability in reduced-order latent space optimization [7], generation of (or augmentation to) unseen circuit operation/dataset/topologies [8, 20, 21], and conditional circuit generation for circuit design automation and optimization workflow [21]. Also, generation of latent space and analysis of its structure could potentially lead to providing a ‘meaning’ and ‘explanation’ of a given circuit operation, which is highly helpful for AMS circuit designers but not available from conventional black-box optimization methods. However, state-of-the-art models such as CktGNN and CktGen mainly focus on topology generation with circuit blocks represented by macromodels, so their latent spaces are not suitable for transistor-level modeling of circuit behaviour [20, 21]. Device-level graph representations have also been used [14, 16], but mainly for generating circuit topologies rather than for modeling the operating state of a given circuit. In terms of latent space construction, the VAE-based approaches reviewed above use design variables such as device types and transistor sizes (and circuit topology) as inputs/outputs of the VAE. Performance information enters the latent space only indirectly, for example through specification conditioning as in CktGen [21], and KPIs or state variables such as node voltages and currents need to be derived by a separate neural network or by circuit simulation [7]. Therefore, the latent space constructed in this way represents the design space only, and does not directly encode the circuit operation (state variables).

Now, if we take both design and state variables as inputs/outputs of the VAE, the latent space would represent the joint manifold of design and state variables obtained from actual circuit simulation results. Such symmetric treatment of design/state variables eliminates the need for a separate neural network or SPICE simulations to derive KPIs determined by the operating point, since the state variables output by the VAE can be used to calculate them. To the best of our knowledge, no GVAE that treats design and state variables symmetrically as its inputs and outputs has been proposed for AMS CMOS circuit design.

In this work, we propose a simple but effective neural network model architecture to solve the issues described above, named CktHGVAE: circuit heterogeneous graph variational autoencoder. Its architecture is as simple as graph variational autoencoder where both encoder/decoder consist of graph neural networks applied to circuit topological graph. Both inputs/outputs consist of a mixture of design variables (transistor sizes, device types, applied voltages, etc.) and state variables (node voltages, currents, etc.) mapped on each node of the topological graph. Here we demonstrate the following:

(a) our model can successfully learn the DC operating-point circuit operation of 12 fundamental circuit topologies, tested against circuit simulation results

(b) our model provides specification-directed optimization search in the PCA-reduced latent space with Bayesian optimization, evolutionary search, random search, and quasi-exhaustive search, whose suggested designs are verified by SPICE simulations

(c) our model pretrained on a group of topology is well transferred to unseen topology, providing ‘zero-shot’ cross-topology transfer.

References (28)