Next Article in Journal
Research on a Hybrid Self-Powered Landslide Rainfall Sensor Based on Triboelectric Nanogenerators and Electromagnetic Generators
Previous Article in Journal
Towards Novel Spintronic Materials: Mg-Based d0-d Heusler (Nowotny–Juza) Compounds
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

MCE-HGCN: Heterogeneous Graph Convolution Network for Analog IC Matching Constraints Extraction

1
School of Information Engineering, Wuhan University of Technology, Wuhan 430070, China
2
Chongqing Research Institute, Wuhan University of Technology, Chongqing 401151, China
*
Authors to whom correspondence should be addressed.
Micromachines 2025, 16(6), 677; https://doi.org/10.3390/mi16060677
Submission received: 9 May 2025 / Revised: 31 May 2025 / Accepted: 1 June 2025 / Published: 3 June 2025

Abstract

:
Matching constraints in an analog integrated circuit (IC) are critical to optimizing layout performance. To extract these matching constraints accurately and efficiently from the netlist, we propose the heterogeneous matching constraint extraction graph neural network (MCE-HGCN). First, the netlist is mapped into a heterogeneous attribute multi-graph, and based on the characteristics of analog IC matching constraints, a mixed-domain attention mechanism is developed to leverage both the topology information and node attributes in the graph to characterize node embeddings. A matching classifier, implemented using the support vector machine (SVM), is then employed to classify different types of matching constraints from the netlist. Additionally, a matching filter is introduced to remove interference terms. Experimental results demonstrate that the MCE-HGCN model converges effectively with small datasets. In the matching prediction process, the mean F1 score reached 0.917 across different netlist processes and circuit types while maintaining a shorter runtime compared to other methods. Ablation experiments also show that incorporating the mixed-domain attention mechanism and the matching filter individually leads to significant performance improvements. Overall, MCE-HGCN excels at extracting matching constraints from various analog circuits and processes, offering valuable insights for placement guidance and enhancing the efficiency of analog IC layout design.

1. Introduction

To mitigate the influence of factors such as parasitic effects and process variations on the performance of analog IC chips, various topological constraints must be incorporated into the layout design [1]. These constraints typically include symmetry, matching, and proximity requirements. Symmetry constraints ensure that devices are placed in mirror-image locations. Matching constraints mandate either axisymmetric placement or placement that balances the center of mass across the device layouts. Proximity constraints dictate that devices be positioned in specific locations, such as within a shared substrate, a common trap region, or enclosed by a guard ring, often in alignment with their matched counterparts [2]. Mismatches between sensitive devices in critical circuit blocks can significantly degrade overall performance. For instance, mismatches in differential circuits can disrupt current balance and reduce the circuit’s common-mode rejection ratio (CMRR). To enhance circuit robustness and achieve optimal performance metrics, it is essential to carefully consider and implement various matching constraints during the layout design process.
Traditionally, the identification of matching constraints in analog IC design relies on the expertise of seasoned designers. This manual process is not only time-intensive but also subjective, as it varies with individual judgment. Classical approaches to automating the extraction of matching constraints are typically based on sensitivity analysis. However, these methods struggle to scale effectively for large and complex analog ICs [3]. Alternatively, data mining techniques infer constraints in new designs by comparing them with labeled knowledge bases. However, the intricate nature of analog IC design poses significant challenges to constructing comprehensive design pattern libraries [4,5]. Recently, graph neural networks (GNNs) [6] have shown promise in aiding analog IC design, with applications such as parasitic prediction, layout performance evaluation, and layout decomposition. In the realm of constraint extraction, Gao et al. [7] introduced a graph learning framework that transforms symmetry constraint detection into a binary classification problem. They employed rule-based and probability-based filters to eliminate misclassifications and enhance detection accuracy. Similarly, Kunal et al. [8] used a graph convolutional network to traverse circuit graphs, embedding node features and domain-specific information into vectors. By applying a two-layer fully connected neural network, they estimated graph edit distances (GED) to identify symmetry constraints. However, these supervised learning approaches require extensive labeled datasets. To address symmetry constraint extraction at different levels of analog IC modules, Kunal et al. [9,10] represented circuit netlists as undirected bipartite graphs, created hierarchical representations, and automatically identified sub-circuit modules to extract constraints across module levels. Other methods, such as the approach in [11], analyze signal flow and use graph automorphism to detect graph symmetries, while Eick et al. [12] generate constraints directly through pattern matching and organize them hierarchically using structural signal flow graphs. Kunal et al. [13] attempts to integrate GNNs with graph-based algorithms to achieve layout constraint extraction at different design levels. Unlike the aforementioned method that directly extracts constraints from SPICE netlists, Yao et al. [14] proposed a layout-based symmetry constraint extraction method. However, this approach requires a large number of high-quality layouts.
For matching constraint extraction, Liu et al. [15] applied a two-sample Kolmogorov–Smirnov (K–S) test [16] and heuristic algorithms to assess graph similarity in system-level circuits. Their scalable graph similarity algorithm, based on spectral analysis, identifies matched device pairs, though its applicability is often hindered by the computational complexity of the statistical analysis. Chen et al. [17] proposed an unsupervised learning framework for symmetry constraint extraction using GNNs. By representing circuit netlists as heterogeneous graphs, they leveraged unsupervised GNN embeddings to derive device-level matching constraints. Sub-circuit feature embeddings were further obtained through neighbor sampling and aggregation, while cosine similarity calculations identified circuit-level symmetry relations among candidate pairs. In short, most research on analog IC constraint extraction has predominantly focused on identifying symmetry constraints or locating matching device pairs. Furthermore, Xu et al. [18] proposed a netlist information extraction method based on the edge-augmented graph attention network (EGAT) to fully leverage the connectivity characteristics of circuits and device information for learning the general rules of symmetry constraints. However, these efforts of-ten fail to discern the specific structures of matching constraints, offering limited practical guidance for placement tasks [19].
In this paper, we construct the netlist as a heterogeneous attribute multigraph and enhance a graph convolutional network with mixed-domain attention mechanisms on nodes and edges. This approach enables the training of node embedding models and the prediction of node embeddings within the graph. By calculating the Euclidean distances between node pairs and integrating manually labeled matching information, the analog IC matching constraint extraction problem is reformulated as a triple classification task using a support vector machine (SVM). During the matching prediction process, a matching classifier identifies matching types in new netlists, while a matching filter eliminates non-adjacent matching pairs to mitigate the impact of unrelated node embeddings. This process reduces misclassification and provides more accurate guidance for layout generation. Our primary contributions are as follows:
(1)
Framework for matching constraint extraction: We propose a framework based on heterogeneous graph convolutional networks to identify matching structure types required for layout placement from analog netlists. The matching constraint extraction task is reformulated as a classification problem involving node pairs within a heterogeneous graph.
(2)
Mixed-domain attention mechanism: We enhance the heterogeneous graph neural network with a mixed-domain attention mechanism that considers both nodes and edges. This improvement facilitates more effective message passing between different node and edge types, maximizes the utility of small datasets, and strengthens the identification of matching structures in netlists.
(3)
Matching classifier and filter: A matching classifier based on support vector machines is proposed to identify matching structures within circuits. Additionally, matching filters are implemented to further improve recognition accuracy.
(4)
Experimental validation: Experimental results confirm the effectiveness of the proposed method in extracting matching constraints across various ICs and processes. This approach provides layout engineers with valuable support in determining device matching relationships.
The rest of the paper is organized as follows: Section 2 introduces the problem description of matching constraint extraction and the method for constructing the graph. Section 3 describes the proposed heterogeneous graph neural network framework MCE-HGCN for extracting matching constraints in analog IC. Section 4 represents the experiments and results. Finally, Section 5 concludes the paper.

2. Problem Description and Graph Construction

2.1. Problem Description

Matching constraints in analog ICs are often implemented to ensure a consistent gate orientation between devices, thereby reducing performance mismatches caused by processing variations and enhancing device symmetry [20,21]. Common matching layouts, are shown in Figure 1, are typically categorized into common centroid and axisymmetric structures. In Figure 1a, two MOS devices are divided into eight smaller segments, arranged crosswise to share the same center of mass. This structure is commonly used in circuits requiring high precision matching, such as differential pairs. By mitigating offsets introduced by fabrication process errors, this layout improves circuit performance and stability. In Figure 1b, on the other hand, eight smaller MOS devices are symmetrically cross-placed. This configuration enhances the module’s symmetry, reduces common-mode noise interference, and increases the common-mode rejection ratio (CMRR) of the circuit. It is frequently employed in high current mirror circuits to maintain consistent current flow direction.

2.2. Heterogeneous Attribute Multi-Graph

Analog IC can be naturally represented as graph data due to the structural similarity between their topologies and graph data structures. In this study, the analog IC netlist is modeled as a heterogeneous attribute multigraph, G = V , E , A , R , where each device in the netlist is denoted as a node, v V , and V represents the set of all types of nodes. A directed edge, e = u , v , τ v E , denotes the interconnection of an edge of type τ v from a vertex u to a vertex v , where the edge type is denoted by the pin type of the node v that is connected to it by e , E is the set of all types of directed edges, and A and R denote the associated sets of node types and the set of edge types, respectively.
Figure 2 illustrates the construction process for the heterogeneous attribute multigraph of an analog IC. On the left is the circuit schematic corresponding to the netlist, and on the right is the resulting heterogeneous attribute graph. The schematic consists of three PMOS (m0, m1, m8), six NMOS (m2, m3, m4, m5, m6, m7), a capacitor (c0), and a resistor (r0). These components are mapped to four distinct node types: PMOS, NMOS, CAP, and RES. The wire nets in the schematic are represented as directed edges in the graph, with edge types defined by the pin types of the connected nodes. These pin types include nd, ng, ns (drain, gate, and source of NMOS), pd, pg, ps (drain, gate, and source of PMOS), and c, r (pins connected to the capacitor and resistor).

3. MCE-HGCN Framework

3.1. MCE-HGCN Network

Existing graph neural networks face limitations in effectively extracting matching constraints. To address this, the MCE-HGCN network is proposed to enhance the aggregation of attribute features for different node and edge connections in heterogeneous attribute multigraphs [22,23]. Figure 3 illustrates the workflow of MCE-HGCN, which consists of four main stages: data preparation, graph construction, model training and prediction, and matching constraint extraction. First, in the data preparation and graph construction stages, the connection network between devices in the netlist and their respective attributes are represented as a heterogeneous graph and a node feature matrix.
The message passing computation procedure for the traditional inductive graph convolution operation [24] is described in Equation (1). The embedding representation h u l at layer l is calculated by aggregating information from the node embeddings at the previous layer ( l 1 ) and their neighboring nodes.
h u l = σ ( W × A g g ( h u l 1 , v N u h v l 1 ) ) ,
where σ × is the activation function, W is the learnable weight matrix, and A g g is the aggregation function. The commonly used aggregation functions are the average aggregation function, the long short-term memory (LSTM) aggregation function, the pooling aggregation function, etc. h u l 1 is the embedding representation of the node at the layer l − 1, and v is the neighboring node of the node u belonging to the set of neighboring nodes N v .

3.2. Mixed-Domain Attention Mechanism

In heterogeneous graphs, message passing between nodes of the same type has been emphasized in numerous studies due to the stronger influence and correlation observed within such nodes. However, this approach often overlooks the contributions of nodes and edges of different types in the local neighborhood, which are critical for capturing the topological information in analog IC netlists. To address this limitation, a mixed-domain attention mechanism is proposed, incorporating node attention and edge attention [25,26]. This mechanism enables the model to better capture the interplay between different types of neighboring nodes and edges, ensuring effective message passing.

3.2.1. Node Attention

Node attention captures the importance of neighboring nodes of different types while reducing the impact of noisy nodes. Take a node u of type t and its N neighbor nodes v i N u of type t i A , where the embedding of node u is denoted as h u = v i N u A ~ u , v × h v . In the analog IC matching constraint extraction task, matching constraints typically exist between devices of the same type but not across different types. To reflect this, the learning parameter vectors μ for neighboring nodes of different types are set to 0 during the message passing, resulting in an attention score of 0. The attention score a v i of neighboring node v i to node u is as fellow:
a v i = 0 , t i t σ μ T W h u | | W h v i , t i = t ,
where h u and h v i are the feature vectors of node u and node v i , respectively, and || denotes the splicing operation. Equation (2) is normalized by the SoftMax function to obtain the attention weights of the message passing neighbor nodes, as shown in Equation (3).
α u , v i = s o f t m a x a v i .

3.2.2. Edge Attention

Edge attention distinguishes the influence of different edge types on the embedded information of nodes during message passing. Take a node u with type t and its N neighbor nodes, v i N u , the edge type of node v i connecting to node u is τ i R , and the edge type of node u connecting to node v i is τ i R . The edge attention mechanism is shown in Figure 4. In the analog IC matching constraint extraction, the possibility of matching between devices is higher if there is a co-polar connection between devices (i.e., two graph nodes are interconnected with the same edge type), so the message passing attention score b v i for edge type τ i between neighboring nodes is computed, as shown in Equation (4).
b v i = σ ρ γ T W h u , τ i τ i σ γ T W h u | | W h v i , τ i = τ i .
The attention weights of the message passing edges are obtained by normalization using the softmax function, as shown in Equation (5).
β u , v i = s o f t m a x b v i .
Given that neighboring nodes may have distinct features and edge types, a simple concatenation operation may not effectively capture their relationships. To better encode matching features in node embeddings, we adopt a multiplication-based blending operation. The heterogeneous graph convolution operation, combining node and edge attention, is formulated as follows:
h u l = σ ( W × A g g ( h u l 1 , v i N u α u , v i × β u , v i × h v l 1 ) ) .
This mixed-domain attention mechanism regulates the message passing between different nodes and edge types. We enhance the message passing between matching nodes and reduce the interference of other nodes’ information on the prediction of matching results. The enhanced graph neural network has three layers. The model input dimensions are n × 3, where n is the number of nodes in each heterogeneous graph. The network uses the ReLU6 activation function, and its hidden layers contain 16 neurons.

3.3. Matching Constraint Extraction Methods

3.3.1. Matched Classifier

Based on the constructed heterogeneous graph neural network model, the embedding representation of each node in the heterogeneous graph is computed, and the matching constraint value between two nodes is determined using Euclidean distance [27], as defined in Equation (7).
d u , v = i = 1 n h u i h v i 2 ,
where d u , v represents the Euclidean distance between nodes u and v ; h u i and h v i are the values of the embedding vectors for u and v in the i-th dimension, respectively; and n is the dimensionality of the embedding vectors. Using this distance, combined with matching information extracted from the layout, the matching relationships between nodes are categorized as no match, match, or highly match, corresponding to independent devices, axisymmetric matching structures, and common centroid matching structures, respectively. In analog ICs, the relationships between nodes (devices) are complex, often involving multiple edges. This complexity makes identifying the type of node pairs challenging when a graph neural network serves as the output layer. To address this, we train a matching classifier using a support vector machine (SVM) to predict the matching relationships in new netlists, improving the efficiency of layout design. The implementation is detailed in lines 4–8 of Algorithm 1, where node pairs in the graph data are sequentially identified, their Euclidean distances are calculated, and these distances are combined with labeled information from the corresponding netlist to train the classifier.
Algorithm 1 Matchings Predict Model Training
Input: Heterogeneous attribute multi-graph datasets G s , Annotated matching relationship P = 1 : m 1 , m 2 , , m i , , n : m 1 , m 2 , , m j .
Output: Matching predict model M .
1. Initialize the MCE-HGCN net;
2. for each graph g in G s do
3.  predict graph embedding H g ;
4.  for each node i in graph g do
5.      for each node i + 1 in graph g do
6.        Compute the Euclidean distance d between node i and node i + 1 by nodes’ embedding;
7.        Add d to Euclidean distance set D between node pairs; D = d 1 , d 2 , , d N , N is the number of nodes in the graph;
8.  Support vector machine training S V M ( D ,   P ) ;
9. return M .

3.3.2. Matched Filter

During the message passing process, the embedding values of non-adjacent nodes may sometimes appear similar, potentially introducing noise into the prediction of matching constraints. To mitigate this issue, we design a matching filter. After the matching classifier predicts the matching pairs, the filter uses the neighbor relationships in the graph to eliminate non-adjacent node pairs from the results.
The specific implementation of the matching filter is outlined in lines 4–6 of Algorithm 2. For a predicted matching pair p = u , v , where p P and G P = S , D represents the graph’s node pair set (with S as the list of source nodes and D as the list of target nodes), adjacency is determined as follows: if p G P , then node u and v have adjacency; otherwise, they are non-adjacent node pairs and are removed from the prediction result. This filtering step ensures that only relevant node pairs are considered in the matching predictions, thereby improving the accuracy and reliability of the constraint extraction process.
Algorithm 2 Matching Constraints Extraction
Input: An analog circuit netlist n i .
Output: Matching pairs P s in the netlist.
1. Construct the heterogeneous attribute multi-graph g i form the netlist n i ;
2. MCE-HGCN predicts nodes’ embedding H g i in g i ;
3. Predicting matching node pairs p by S V M H g i ;
4. for each node pair p P do
5.  if  p G P then
6.     Add p to P s ;
7. return  P s .

4. Experiment

4.1. Experimental Data

The experimental dataset includes netlists and manual layouts for operational transconductance amplifier (OTA) circuits and low dropout regulator (LDO) circuits, using SMIC 130 nm and 180 nm processes [28]. Additionally, the dataset contains data for comparators (COMP) and analog-to-digital converters (ADC) from the TSMC 40 nm process, sourced from the open-source MAGICAL layout framework. Inter-device matching constraints in the netlist are labeled based on the actual matching relationships and types observed in the corresponding layout. As illustrated in Figure 5, PMOS devices MM0 and MM1 exhibit axisymmetric placement and are labeled as “match”. NMOS devices MM2 and MM3 follow a common centroid placement and are labeled as “highly match”. Devices MM4, MM5, MM6, MM7, MM8, XR0, and XC0 are independent devices and are labeled as “no match”.
The specific data distribution is shown in Table 1. The heterogeneous attribute multi-graph dataset is constructed by Algorithm 1, which creates the relationship graphs for nodes and edges, while also labeling the matching device pairs in each graph.

4.2. Model Training

The experiments were conducted using the Windows 10 64-bit operating system on a computer configured with an Inter(R) Core (TM) i5-13600KF 3.5 GHz and an NVIDIA GeForce GTX 4060 Ti 16 G graphics card. The model training, validation, and testing were carried out using the PyTorch 1.7.1 deep learning framework and the DGL 0.7.2 graph neural network learning framework. The model training process was set to run for 1000 epochs, with the Stochastic Gradient Descent (SGD) optimizer. The learning rate was configured to 0.0001, and the cross-entropy loss function was used. The regularization parameter for the SVM classifier was set to 1, with a linear kernel function and a one-vs-rest multi-class strategy.
The training loss curve for the MCE-HGCN model is shown in Figure 6. After approximately 1000 epochs, the network loss stabilized at around 0.003, indicating that the model had converged and various metrics had become stable.

4.3. Experimental Analysis

4.3.1. Comparison Experiments

The experiments compare the proposed method with pattern matching [12], unsupervised learning [18], and the inductive graph neural network GraphSAGE [22] trained with supervised learning. The evaluation metrics for prediction include accuracy, F1 score, precision, and recall. Accuracy measures the overall correctness of the predictions, while the F1 score is especially useful for evaluating classification results in datasets with imbalanced categories (e.g., matched vs. non-matched). It provides a more comprehensive measure of the model’s classification performance. We implemented pattern matching and unsupervised learning methods using open-source code and the collected data. We modified their outputs to include accuracy A c c , F1 score F 1 s c o r e , and prediction time. The formulas for A c c and F 1 s c o r e are as follows:
A c c = T P + T N T P + F N + F P + T N ,
F 1 s c o r e = 2 × P × R P + R ,
where precision P = T P T P + F P , recall R = T P T P + F N , and T P , F P , T N , and F N represent the number of true positive predictions, false positive predictions, true negative predictions, and false negative predictions, respectively.
The experimental results are summarized in Table 2, which includes the matching constraint prediction time, accuracy, F1 score, precision, and recall for OTA netlists (130 nm and 180 nm processes), LDO netlists (130 nm process), COMP netlist (40 nm process), and ADC netlists (40 nm process). Clearly, the proposed MCE-HGCN outperforms the pattern matching, unsupervised learning, GraphSAGE, and EGAT methods across all five test sets, achieving higher prediction accuracy and F1 score. The average prediction accuracy reaches 98.2%, indicating high precision, while the average F1 score of 0.917 demonstrates the model’s strong ability to predict matching constraints in the test netlists. These results are further supported by the precision and recall metrics. Although the prediction time for OTA netlists is slightly longer than that of the pattern matching and GraphSAGE methods, the difference is minimal, with an average prediction time of only 0.80 s. In the future, we will also apply MCE-HGCN to more advanced technologies and different types of circuits to extract matching constraints from their netlists.
To enable a clearer comparison of experimental outcomes, we employed stacked histograms illustrating the proportion of each metric (accuracy, F1 score, precision, and recall) for every test case across different methods. Each metric’s proportion was calculated by dividing its value by the total across all five methods. As shown in Figure 7, the proposed MCE-HGCN approach consistently outperformed other methods, achieving the highest accuracy and F1 score proportions for OTA circuits under both 130 nm and 180 nm processes, all within a comparable prediction time frame. Furthermore, for the 130 nm LDO, 40 nm COMP, and ADC circuits, MCE-HGCN required only 0.8%, 2.0%, and 4.1% of the total prediction time frame, while still delivering the highest F1 score proportion among the methods evaluated. These results indicate MCE-HGCN’s efficiency and adaptability in extracting matching constraints across varied circuits types and processes, offering valuable support for layout design engineers.
The micro-average receiver operating characteristic (ROC) curve for the experimental tests is shown in Figure 8, illustrating the testing curves and area under the curve (AUC) values for pattern matching, unsupervised learning, GraphSAGE, EGAT, and the proposed approach. The ROC curve for MCE-HGCN is closest to the upper-left corner, indicating that the model maintains a low false-positive rate (FPR) and a high true-positive rate (TPR) across various thresholds. The AUC value of 0.91 is the highest, suggesting excellent performance in identifying matching constraints in the netlist.

4.3.2. Ablation Experiment

To validate the optimization effects of this work on the original network, a series of ablation experiments were conducted. These experiments focused on assessing the impact of the mixed-domain attention mechanism on match extraction and the performance of match filters. The experimental results are shown in Table 3 and Figure 9. According to Table 3, when the mixed-domain attention mechanism is omitted, the model achieves higher prediction accuracy but generally lower F1 score, leading to poorer predictive performance for match types. On the other hand, when the match filter is not included, interference from non-connected components affects the prediction results, resulting in reduced prediction accuracy and F1 score. Figure 9 illustrates the distribution of validation metrics across five test cases, comparing scenarios with and without the mixed-domain attention mechanism and matching filter. The results clearly indicate that incorporating these two components significantly enhances performance. Specifically, MCE-HGCN showed consistent improvements in accuracy, F1 score, precision, and recall, while maintaining a similar or reduced time proportion compared to approaches lacking these components. This confirms the effectiveness of the mixed-domain attention mechanism and matching filter in optimizing matching constraint extraction

5. Conclusions

In this paper, we proposed an analog IC matching constraint extraction method based on graph convolutional neural networks (GCNs). First, a heterogeneous attribute multi-graph dataset was constructed using the interconnection relationships and device attributes from the input netlist. Next, to effectively capture the characteristics of matching devices, we developed a mix-domain attention mechanism that operates at both node and edge levels. This mechanism manages the exchange of information between matching devices, significantly improving the similarity of their embedding representation. A support vector machine (SVM) was employed as the matching classifier to categorize different types of matching constraints. Additionally, a matching filter was designed to reduce the influence of non-interconnected devices on the prediction outcomes.
The effectiveness of this method was demonstrated through comparisons with traditional pattern matching, unsupervised learning, and the GraphSAGE, and EGAT methods, as well as through ablation experiments. The following conclusions were drawn:
(1) For small datasets, leveraging the characteristics of inter-device relationships through attention mechanisms significantly optimized the message passing in the graph neural network, enabling effective prediction of matching constraints between devices; (2) the introduction of matching filters successfully mitigated interference from non-connected devices, further enhancing the accuracy and robustness of the matching constraint extraction process; and (3) the MCE-HGCN effectively extracted matching constraints from the netlist, assisting layout engineers in quickly determining the spatial arrangement of devices. This, in turn, improved the efficiency of analog layout design and provided valuable insights for intelligent analog layout generation, guiding the placement of devices and enhancing the overall design performance.

Author Contributions

Conceptualization, Y.Z. and B.J.; formal analysis, Y.Z.; funding acquisition, N.X.; investigation, Y.Z. and Y.Y.; methodology, Y.Y.; project administration, N.X.; supervision, B.J.; writing—original draft, Y.Z.; writing—review and editing, B.J. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by National Science and Technology Major Project (No. 2021ZD0114600), the General program of Chongqing Natural Science Foundation (No. CSTB2022NSCQ-MSX0295), and the National Natural Science Foundation of China (Nos. 92373102 and 62104174).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Dhar, T.; Kunal, K.; Li, Y.; Madhusudan, M.; Poojary, J.; Sharma, A.K.; Xu, W.; Burns, S.M.; Harjani, R.; Hu, J.; et al. ALIGN: A system for automating analog layout. IEEE Des. Test 2020, 38, 8–18. [Google Scholar] [CrossRef]
  2. Martins, R.; Lourenço, N.; Horta, N. Analog Integrated Circuit Design Automation; Springer: Cham, Switzerland, 2017. [Google Scholar]
  3. Malavasi, E.; Charbon, E.; Felt, E.; Sangiovanni Vincentelli, A. Automation of IC layout with analog constraints. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 1996, 15, 923–942. [Google Scholar] [CrossRef]
  4. Wu, P.H.; Lin, M.P.H.; Ho, T.Y. Analog layout synthesis with knowledge mining. In Proceedings of the 2015 European Conference on Circuit Theory and Design (ECCTD), Trondheim, Norway, 24–26 August 2015; pp. 1–4. [Google Scholar]
  5. Zhu, K.; Chen, H.; Liu, M.; Pan, D.Z. Automating analog constraint extraction: From heuristics to learning. In Proceedings of the 2022 27th Asia and South Pacific Design Automation Conference (ASP-DAC), Taipei, Taiwan, 17–20 January 2022; pp. 108–113. [Google Scholar]
  6. Chen, S.; Liu, J.; Shen, L. A Survey on Graph Neural Network Acceleration: A Hardware Perspective. Chin. J. Electron. 2024, 33, 601–622. [Google Scholar] [CrossRef]
  7. Gao, X.; Deng, C.; Liu, M.; Zhang, Z.; Pan, D.Z.; Lin, Y. Layout symmetry annotation for analog circuits with graph neural networks. In Proceedings of the 26th Asia and South Pacific Design Automation Conference, Tokyo, Japan, 18–21 January 2021; pp. 152–157. [Google Scholar]
  8. Kunal, K.; Poojary, J.; Dhar, T.; Madhusudan, M.; Harjani, R.; Sapatnekar, S.S. A general approach for identifying hierarchical symmetry constraints for analog circuit layout. In Proceedings of the 39th International Conference on Computer-Aided Design, San Diego, CA, USA, 2–5 November 2020; pp. 1–8. [Google Scholar]
  9. Kunal, K.; Dhar, T.; Madhusudan, M.; Poojary, J.; Sharma, A.; Xu, W.; Sapatnekar, S.S. GANA: Graph convolutional network based automated netlist annotation for analog circuits. In Proceedings of the 2020 Design, Automation & Test in Europe Conference & Exhibition (DATE), Grenoble, France, 9–13 March 2020; pp. 55–60. [Google Scholar]
  10. Bai, Y.; Ding, H.; Bian, S.; Chen, T.; Sun, Y.; Wang, W. Simgnn: A neural network approach to fast graph similarity computation. In Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, Melbourne, VIC, Australia, 11–15 February 2019; pp. 384–392. [Google Scholar]
  11. Zhou, Z.; Dong, S.; Hong, X.; Hao, Q.; Chen, S. Analog constraints extraction based on the signal flow analysis. In Proceedings of the 2005 6th International Conference on ASIC, Shanghai, China, 24–27 October 2005; Volume 2, pp. 825–828. [Google Scholar]
  12. Eick, M.; Strasser, M.; Lu, K.; Schlichtmann, U.; Graeb, H.E. Comprehensive generation of hierarchical placement rules for analog integrated circuits. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2011, 30, 180–193. [Google Scholar] [CrossRef]
  13. Kunal, K.; Dhar, T.; Madhusudan, M.; Poojary, J.; Sharma, A.K.; Xu, W.; Burns, S.M.; Hu, J.; Harjani, R.; Sapatnekar, S.S. GNN-based hierarchical annotation for analog circuits. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2023, 42, 2801–2814. [Google Scholar] [CrossRef]
  14. Yao, W.; Gao, X.; Lin, Y.; Li, L. Automatic layout symmetry extraction for analog constraint learning. In Proceedings of the 2023 International Symposium of Electronics Design Automation (ISEDA), Nanjing, China, 8–11 May 2023; pp. 76–81. [Google Scholar]
  15. Liu, M.; Li, W.; Zhu, K.; Xu, B.; Lin, Y.; Shen, L.; Tang, X.; Sun, N.; Pan, D.Z. S3det: Detecting system symmetry constraints for analog circuits with graph similarity. In Proceedings of the 2020 25th Asia and South Pacific Design Automation Conference (ASP-DAC), Beijing, China, 13–16 January 2020; pp. 193–198. [Google Scholar]
  16. Arnold, T.B.; Emerson, J.W. Nonparametric goodness-of-fit tests for discrete null distributions. R J. 2011, 3, 34–39. [Google Scholar] [CrossRef]
  17. Chen, H.; Zhu, K.; Liu, M.; Tang, X.; Sun, N.; Pan, D.Z. Universal symmetry constraint extraction for analog and mixed-signal circuits with graph neural networks. In Proceedings of the 2021 58th ACM/IEEE Design Automation Conference (DAC), San Francisco, CA, USA, 5–9 December 2021; pp. 1243–1248. [Google Scholar]
  18. Xu, Q.; Wang, L.; Wang, J.; Cheng, L.; Chen, S.; Kang, Y. Graph attention-based symmetry constraint extraction for analog circuits. IEEE Trans. Circuits Syst. I Regul. Papers. 2024, 71, 3754–3763. [Google Scholar] [CrossRef]
  19. Li, Y.; Lin, Y.; Madhusudan, M.; Sharma, A.; Xu, W.; Sapatnekar, S.S.; Harjani, R.; Hu, J. A customized graph neural network model for guiding analog IC placement. In Proceedings of the 39th International Conference on Computer-Aided Design, San Diego, CA, USA, 2–5 November 2020; pp. 1–9. [Google Scholar]
  20. Xu, B.; Zhu, K.; Liu, M.; Lin, Y.; Li, S.; Tang, X.; Sun, N.; Pan, D.Z. Magical: Toward fully automated analog ic layout leveraging human and machine intelligence. In Proceedings of the 2019 IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Westminster, CO, USA, 4–7 November 2019; pp. 1–8. [Google Scholar]
  21. Chen, H.; Liu, M.; Xu, B.; Zhu, K.; Tang, X.; Li, S.; Lin, Y.; Sun, N.; Pan, D.Z. MAGICAL: An open-source fully automated analog IC layout system from netlist to GDSII. IEEE Des. Test 2020, 38, 19–26. [Google Scholar] [CrossRef]
  22. Hamilton, W.; Ying, Z.; Leskovec, J. Inductive representation learning on large graphs. Adv. Neural Inf. Process. Syst. 2017, 30, 1–11. [Google Scholar]
  23. Yun, S.; Jeong, M.; Kim, R.; Kang, J.; Kim, H.J. Graph transformer networks. Adv. Neural Inf. Process. Syst. 2019, 32, 1–11. [Google Scholar]
  24. Shao, K.; Zhang, Y.; Wen, Y.; Zhang, Z.; He, S.; Bo, X. DTI-HETA: Prediction of drug–target interactions based on GCN and GAT on heterogeneous graph. Brief. Bioinform. 2022, 23, bbac109. [Google Scholar] [CrossRef] [PubMed]
  25. Linmei, H.; Yang, T.; Shi, C.; Ji, H.; Li, X. Heterogeneous graph attention networks for semi-supervised short text classification. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China, 3–7 November 2019; pp. 4821–4830. [Google Scholar]
  26. Yang, T.; Hu, L.; Shi, C.; Ji, H.; Li, X.; Nie, L. HGAT: Heterogeneous graph attention networks for semi-supervised short text classification. ACM Trans. Inf. Syst. (TOIS) 2021, 39, 1–29. [Google Scholar] [CrossRef]
  27. Peng, J.; Wang, Y.; Xue, J.; Liu, Z. Fast cross-platform binary code similarity detection framework based on CFGs taking advantage of NLP and inductive GNN. Chin. J. Electron. 2024, 33, 128–138. [Google Scholar] [CrossRef]
  28. Bin, L.; Yi, W.; Jianjun, C.; Yaqing, C.; Xiaohu, Y. Technology Dependency of TID Response for a Custom Bandgap Voltage Reference in 65 nm to 28 nm Bulk CMOS Technologies. Chin. J. Electron. 2023, 32, 1286–1292. [Google Scholar] [CrossRef]
Figure 1. Matching layout. (a) Common centroid matching layout; (b) axisymmetric matching layout.
Figure 1. Matching layout. (a) Common centroid matching layout; (b) axisymmetric matching layout.
Micromachines 16 00677 g001
Figure 2. Heterogeneous attribute multi-graph construction process: (a) analog IC schematic; (b) heterogeneous attribute multi-graph.
Figure 2. Heterogeneous attribute multi-graph construction process: (a) analog IC schematic; (b) heterogeneous attribute multi-graph.
Micromachines 16 00677 g002
Figure 3. Computation flow of the proposed MCE-HGCN framework.
Figure 3. Computation flow of the proposed MCE-HGCN framework.
Micromachines 16 00677 g003
Figure 4. Edge attention mechanism.
Figure 4. Edge attention mechanism.
Micromachines 16 00677 g004
Figure 5. OTA circuit netlist and layout. (a) OTA circuit netlist; (b) OTA circuit layout.
Figure 5. OTA circuit netlist and layout. (a) OTA circuit netlist; (b) OTA circuit layout.
Micromachines 16 00677 g005
Figure 6. MCE-HGCN model training loss curve.
Figure 6. MCE-HGCN model training loss curve.
Micromachines 16 00677 g006
Figure 7. Stacked histograms of matching constraint extraction results from different methods. The percentages in the figure are rounded to one decimal place.
Figure 7. Stacked histograms of matching constraint extraction results from different methods. The percentages in the figure are rounded to one decimal place.
Micromachines 16 00677 g007
Figure 8. Micro-average ROC curves of different methods.
Figure 8. Micro-average ROC curves of different methods.
Micromachines 16 00677 g008
Figure 9. Stacked histogram of matching constraint extraction with different optimization factors. The percentages in the figure are rounded to one decimal place.
Figure 9. Stacked histogram of matching constraint extraction with different optimization factors. The percentages in the figure are rounded to one decimal place.
Micromachines 16 00677 g009
Table 1. Statistics of the experimental dataset.
Table 1. Statistics of the experimental dataset.
Circuit TypeNumber of Training DatasetNumber of Test Dataset
CircuitsUnmatched PairsMatched PairsHighly Matched PairsCircuitsUnmatched PairsMatched PairsHighly Matched Pairs
130 nm OTAs1007914407928265208
130 nm LDOs4588186114760
180 nm OTAs431901127515321215
40 nm COMP////112583
40 nm ADC////114647719
Table 2. Matching constraint extraction results for different methods.
Table 2. Matching constraint extraction results for different methods.
Metrics130 nm OTAs180 nm OTAs130 nm LDOs40 nm COMP40 nm ADCAverage
Pattern matching [12]Time/s1.681.691.571.482.281.74
A c c /%94.996.398.097.196.396.5
F 1 s c o r e 0.7060.6670.6670.8000.5670.681
Precision0.7920.9131.0001.0001.0000.941
Recall0.7020.5600.5000.6670.3960.565
Unsupervised learning [15]Time/s2.182.211.973.092.542.40
A c c /%91.894.992.888.296.992.9
F 1 s c o r e 0.4290.4240.4210.5000.7970.514
Precision0.6140.6830.3080.4000.6710.535
Recall0.5440.8630.6670.6670.9790.744
GraphSAGE [22]Time/s1.521.511.531.611.881.61
A c c /%94.491.285.088.296.291.0
F 1 s c o r e 0.6670.4000.0800.5000.7580.481
Precision1.0000.2860.0520.4000.6180.471
Recall0.5000.6670.1670.6670.9790.596
EGAT [18]Time/s1.912.120.080.801.021.19
A c c /%86.393.892.068.870.882.3
F 1 s c o r e 0.7240.8260.6000.5460.3400.607
Precision0.7000.7600.5000.3750.2050.508
Recall0.7500.9050.7501.0001.0000.881
MCE-HGCNTime/s1.681.810.040.140.330.80
A c c /%96.397.199.499.398.898.2
F 1 s c o r e 0.8740.9200.9230.9570.9130.917
Precision0.7870.8510.8571.0000.8550.870
Recall1.0001.0001.0000.9170.9790.979
The best results for each metric in each case are highlighted in bold.
Table 3. Matching constraint extraction results with different optimization factors.
Table 3. Matching constraint extraction results with different optimization factors.
Metrics130 nm OTAs180 nm OTAs130 nm LDOs40 nm COMP40 nm ADCAverage
MCE-HGCN without mixed attentionsTime/s2.082.131.641.321.681.77
A c c /%94.194.794.883.589.791.4
F 1 s c o r e 0.5600.5830.2000.7430.7260.542
Precision0.6000.9470.2000.8350.8500.686
Recall0.5330.4210.2000.3100.6330.419
MCE-HGCN without match filterTime/s1.821.900.050.841.091.14
A c c /%94.591.799.486.488.392.06
F 1 s c o r e 0.7780.6270.9230.7650.8200.783
Precision0.8010.7000.9210.7490.8500.804
Recall0.3780.5670.9300.7790.9200.715
MCE-HGCNTime/s1.681.810.040.140.330.80
A c c /%96.397.199.499.398.898.2
F 1 s c o r e 0.8740.9200.9230.9570.9130.917
Precision0.7870.8510.8571.0000.8550.868
Recall1.0001.0001.0000.9170.9790.979
The best results for each metric in each case are highlighted in bold.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, Y.; Yin, Y.; Xu, N.; Jia, B. MCE-HGCN: Heterogeneous Graph Convolution Network for Analog IC Matching Constraints Extraction. Micromachines 2025, 16, 677. https://doi.org/10.3390/mi16060677

AMA Style

Zhang Y, Yin Y, Xu N, Jia B. MCE-HGCN: Heterogeneous Graph Convolution Network for Analog IC Matching Constraints Extraction. Micromachines. 2025; 16(6):677. https://doi.org/10.3390/mi16060677

Chicago/Turabian Style

Zhang, Yong, Yong Yin, Ning Xu, and Bowen Jia. 2025. "MCE-HGCN: Heterogeneous Graph Convolution Network for Analog IC Matching Constraints Extraction" Micromachines 16, no. 6: 677. https://doi.org/10.3390/mi16060677

APA Style

Zhang, Y., Yin, Y., Xu, N., & Jia, B. (2025). MCE-HGCN: Heterogeneous Graph Convolution Network for Analog IC Matching Constraints Extraction. Micromachines, 16(6), 677. https://doi.org/10.3390/mi16060677

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop