Differentiable Constraints’ Encoding for Gradient-Based Analog Integrated Circuit Placement Optimization
Abstract
:1. Introduction
2. Related Work and Contributions
- In this paper, differentiable implementations of boundary, regularity, and SI constraints are formulated for the first time in the literature. These are inherently model-independent, i.e., they can be used to train simple models, such as the multilayer perceptron [11], or even complex encoder-decoder architectures [12];
- Existent automatic approaches for analog IC placement that focus on retargeting from legacy designs/templates [3,4], or even ML-based approaches [10], use previously designed placement solutions (layouts) that comprise expert design knowledge. These examples are used as a surrogate for the explicit definition of the constraints to be met. However, legacy layouts containing robust implementations of the abovementioned constraints are scarce and expensive to obtain, and thus, here, the model’s training requires only sizing data, which is way easier to produce, and the model is focused on complying with the explicitly and efficiently described topological constraints. When compared with optimization processes with several topological constraints [1,2], which also explore the possibility of explicitly defining the constraints to be met, the inherent time-consuming optimization cycles are bypassed by the use of deep models. This is, once the model is fully trained, it can produce several valid solutions for a singular problem at push-button speed through its generative characteristics;
- The novel formulations for the boundary, regularity, proximity, and SI constraints are used to train a model that produces placement solutions from scratch at push-button speed for several state-of-the-art block-level analog IC structures, including circuit topologies and technology nodes not used for training, ultimately proving its generalization capabilities.
3. Unsupervised ANN Model with a Broader Topological Constraints Coverage
3.1. Notation
3.2. Input Vector Features
3.3. Boundary
3.4. Regularity
3.5. Relative Proximity
3.6. Symmetry Island
3.6.1. Intra-Group Axis
3.6.2. Inter-Group Axis
3.7. Loss Function
4. Experimental Results
5. Discussion
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Lin, P.H.; Chang, Y.W.; Lin, S.C. Analog Placement Based on Symmetry-Island Formulation. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2009, 28, 791–804. [Google Scholar] [CrossRef] [Green Version]
- Patyal, A.; Chen, H.M.; Lin, M.P.H.; Fang, G.Q.; Chen, S.Y.H. Pole-Aware Analog Layout Synthesis Considering Monotonic Current Flows and Wire-Crossings. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2022, 42, 266–279. [Google Scholar] [CrossRef]
- Wu, P.H.; Lin, M.P.H.; Chen, T.C.; Yeh, C.F.; Li, X.; Ho, T.Y. A Novel Analog Physical Synthesis Methodology Integrating Existent Design Expertise. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2015, 34, 199–212. [Google Scholar] [CrossRef]
- Pan, P.C.; Chin, C.Y.; Chen, H.M.; Chen, T.C.; Lee, C.C.; Lin, J.C. A Fast Prototyping Framework for Analog Layout Migration with Planar Preservation. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2015, 34, 1373–1386. [Google Scholar] [CrossRef]
- Han, J.; Bae, W.; Chang, E.; Wang, Z.; Nikolic, B.; Alon, E. LAYGO: A Template-and-Grid-Based Layout Generation Engine for Advanced CMOS Technologies. IEEE Trans. Circuits Syst. I Regul. Pap. 2021, 68, 1012–1022. [Google Scholar] [CrossRef]
- Unutulmaz, A.; Dündar, G.; Fernández, F.V. Template Coding with LDS and Applications of LDS in EDA. Analog. Integr. Circuits Signal Process. 2014, 78, 137–151. [Google Scholar] [CrossRef]
- Afacan, E.; Lourenço, N.; Martins, R.; Dündar, G. Review: Machine Learning Techniques in Analog/RF Integrated Circuit Design, Synthesis, Layout, and Test. Integration 2021, 77, 113–130. [Google Scholar] [CrossRef]
- Mina, R.; Jabbour, C.; Sakr, G.E. A Review of Machine Learning Techniques in Analog Integrated Circuit Design Automation. Electronics 2022, 11, 435. [Google Scholar] [CrossRef]
- Gusmão, A.; Passos, F.; Póvoa, R.; Horta, N.; Lourenço, N.; Martins, R. Semi-Supervised Artificial Neural Networks towards Analog IC Placement Recommender. In Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS), Seville, Spain, 12–14 October 2020. [Google Scholar] [CrossRef]
- Guerra, D.; Canelas, A.; Póvoa, R.; Horta, N.; Lourenço, N.; Martins, R. Artificial Neural Networks as an Alternative for Automatic Analog IC Placement. In Proceedings of the SMACD 2019—16th International Conference on Synthesis, Modeling, Analysis and Simulation Methods and Applications to Circuit Design (SMACD), Lausanne, Switzerland, 15–18 July 2019. [Google Scholar] [CrossRef]
- Gusmão, A.; Póvoa, R.; Horta, N.; Lourenço, N.; Martins, R. DeepPlacer: A Custom Integrated OpAmp Placement Tool Using Deep Models. Appl. Soft Comput. 2022, 115, 108188. [Google Scholar] [CrossRef]
- Gusmão, A.; Horta, N.; Lourenço, N.; Martins, R. Scalable and Order Invariant Analog Integrated Circuit Placement with Attention-Based Graph-to-Sequence Deep Models. Expert Syst. Appl. 2022, 207, 117954. [Google Scholar] [CrossRef]
- Wu, I.P.; Ou, H.C.; Chang, Y.W. QB-Trees: Towards an Optimal Topological Representation and Its Applications to Analog Layout Designs. In Proceedings of the Design Automation Conference, Austin, TX, USA, 5–9 June 2016; Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2016. [Google Scholar]
- Sanabria-Borbón, A.C.; Soto-Aguilar, S.; Estrada-López, J.J.; Allaire, D.; Sánchez-Sinencio, E. Gaussian-Process-Based Surrogate for Optimization-Aided and Process-Variations-Aware Analog Circuit Design. Electronics 2020, 9, 685. [Google Scholar] [CrossRef] [Green Version]
- Valencia-Ponce, M.A.; Tlelo-Cuautle, E.; de la Fraga, L.G. On the Sizing of Cmos Operational Amplifiers by Applying Many-Objective Optimization Algorithms. Electronics 2021, 10, 3148. [Google Scholar] [CrossRef]
- Kunal, K.; Dhar, T.; Madhusudan, M.; Poojary, J.; Sharma, A.; Xu, W.; Burns, S.M.; Hu, J.; Harjani, R.; Sapatnekar, S.S. GANA: Graph Convolutional Network Based Automated Netlist Annotation for Analog Circuits. In Proceedings of the 2020 Design, Automation and Test in Europe Conference and Exhibition, Grenoble, France, 9–13 March 2020; Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2020; pp. 55–60. [Google Scholar]
- Xu, B.; Lin, Y.; Tang, X.; Li, S.; Shen, L.; Sun, N.; Pan, D.Z. WellGAN: Generative-Adversarial-Network-Guided Well Generation for Analog/Mixed-Signal Circuit Layout. In Proceedings of the 56th Design Automation Conference, Las Vegas, NV, USA, 2–6 June 2019; Institute of Electrical and Electronics Engineers Inc.: New York, NY, USA, 2019. [Google Scholar]
- Zhu, K.; Liu, M.; Lin, Y.; Xu, B.; Li, S.; Tang, X.; Sun, N.; Pan, D.Z. GeniusRoute: A New Analog Routing Paradigm Using Generative Neural Network Guidance. In Proceedings of the IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Westminster, CO, USA, 4–7 November 2019. [Google Scholar] [CrossRef]
- Eick, M.; Strasser, M.; Lu, K.; Schlichtmann, U.; Graeb, H.E. Comprehensive Generation of Hierarchical Placement Rules for Analog Integrated Circuits. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2011, 30, 180–193. [Google Scholar] [CrossRef]
- Eick, M.; Graeb, H.E. MARS: Matching-Driven Analog Sizing. IEEE Trans. Comput. Des. Integr. Circuits Syst. 2012, 31, 1145–1158. [Google Scholar] [CrossRef]
- 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 25th Asia and South Pacific Design Automation Conference (ASP-DAC), Beijing, China, 13–16 January 2020; pp. 193–198. [Google Scholar] [CrossRef]
- 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 IEEE/ACM International Conference on Computer-Aided Design, Virtual Event, 2–5 November 2020. [Google Scholar] [CrossRef]
- Povoa, R.; Lourenco, N.; Martins, R.; Canelas, A.; Horta, N.C.G.; Goes, J. Single-Stage Amplifier Biased by Voltage Combiners with Gain and Energy-Efficiency Enhancement. IEEE Trans. Circuits Syst. II Express Briefs 2018, 65, 266–270. [Google Scholar] [CrossRef]
- Povoa, R.; Lourenco, N.; Martins, R.; Canelas, A.; Horta, N.; Goes, J. A Folded Voltage-Combiners Biased Amplifier for Low Voltage and High Energy-Efficiency Applications. IEEE Trans. Circuits Syst. II Express Briefs 2020, 67, 230–234. [Google Scholar] [CrossRef]
- Povoa, R.; Lourenco, N.; Martins, R.; Canelas, A.; Horta, N.; Goes, J. Single-Stage OTA Biased by Voltage-Combiners with Enhanced Performance Using Current Starving. IEEE Trans. Circuits Syst. II Express Briefs 2018, 65, 1599–1603. [Google Scholar] [CrossRef]
Notation | Definition |
---|---|
Number of devices in the model | |
An matrix | |
An matrix | |
An column vector | |
Entry of matrix | |
ith entry of vector | |
identity matrix | |
matrix filled with ones | |
Diagonal matrix where each entry in the diagonal is and zero otherwise | |
Column vector obtained from the entries on the main diagonal of the square matrix , | |
Transpose of a two-dimensional matrix . | |
Upper triangular matrix obtained from the entries on and above the main diagonal of the square matrix , and zero otherwise | |
Matrix obtained from summing the values of the multi-dimensional matrix (dimensionality greater or equal to 2) along dimension . | |
Matrix obtained from summing the values of the multi-dimensional matrix (dimensionality greater or equal to 3) first along dimension then . | |
Sum of all elements of | |
Compute the maximum of the multi-dimensional matrix over dimension | |
Compute the minimum of the multi-dimensional matrix over dimension | |
Compute a multi-dimensional matrix with the dimension of whose entries are respectively, the minimum or maximum of each value of and . | |
A multi-dimensional matrix with the dimension of and whose entries are the respectively, the minimum or maximum of each value of and . | |
Hadamard (or Schur) product of two multi-dimensional matrices with the same dimension. Example for two dimensional matrices: | |
Inner product of two vectors. | |
Kronecker product of two multi-dimensional matrices with the same number of dimensions. Example for two-dimensional matrices: |
Topology | VCB [23] | FVC [24] | VCOTA [25] | |
---|---|---|---|---|
Technology | umc130 nm | umc130 nm | tsmc65 nm | umc130 nm |
Number of Devices | 14 | 15 | 22 | |
Number of Sizing Examples | 5000 | 258 | 40 | 5979 |
Training Set | 70% | 70% | 0% | 70% |
Validation Set | 15% | 15% | 50% | 15% |
Number of Train and Validation Samples | 4250 | 2213 * | 1260 * | 5082 |
Test Set/Number of Test Samples | 15%/750 | 15%/391 * | 50%/1260 * | 15%/897 |
Symmetry | Current-Flow | Boundary | Row Regularity | Proximity | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PM0 | PM3 | PM0 | → | NM10 | Right | NM5 | NM11 | PM0 | PM1 | PM2 | PM3 | PM0 | NM10 | |||
PM1 | PM2 | PM3 | → | NM11 | Left | NM4 | NM10 | PM12 | PM14 | PM13 | PM15 | PM3 | NM11 | |||
PM12 | PM15 | PM1 | → | NM4 | → | NM8 | Top | NM10 | NM11 | NM4 | NM16 | NM17 | NM5 | PM0 | PM1 | PM12 |
PM14 | PM13 | PM2 | → | NM5 | → | NM9 | NM9 | NM21 | NM20 | NM8 | PM3 | PM2 | PM15 | |||
NM4 | NM5 | PM12 | → | NM4 | → | NM8 | NM10 | NM11 | PM12 | PM14 | NM16 | |||||
NM18 | NM19 | PM15 | → | NM5 | → | NM9 | PM15 | PM13 | NM17 | |||||||
NM7 | NM6 | PM14 | → | NM16 | → | NM20 | NM4 | NM7 | ||||||||
NM17 | NM16 | PM13 | → | NM17 | → | NM21 | NM5 | NM6 | ||||||||
NM10 | NM11 | NM7 | → | NM9 | NM4 | NM9 | ||||||||||
NM9 | NM8 | NM6 | → | NM8 | NM5 | NM8 | ||||||||||
NM20 | NM21 | NM18 | → | NM21 | NM16 | NM18 | ||||||||||
NM19 | → | NM20 | NM17 | NM19 | ||||||||||||
NM16 | NM19 | NM20 | ||||||||||||||
NM17 | NM18 | NM21 | ||||||||||||||
NM10 | NM11 |
Constraint | VCB [23]/umc130 nm | FVC [24]/umc130 nm | FVC [24]/tsmc65 nm | VCOTA [25]/umc130 nm | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TrE | VaE | TeE | Comp. (%) | TrE | VaE | TeE | Comp.(%) | TrE | VaE | TeE | Comp.(%) | TrE | VaE | TeE | Comp. (%) | |
Wasted Area | 0.90 | 0.86 | 0.85 | −0.7 | 1.02 | 0.86 | 0.91 | +5.2 | - | 0.67 | 0.59 | −10.8 | 0.77 | 0.61 | 0.59 | −3.6 |
Symmetry/SI (×10−2) | 0.62 | 9.47 | 9.18 | −3.1 | 0.87 | 12.9 | 13.3 | +3.1 | - | 10.6 | 9.75 | −8.0 | 10.7 | 11.0 | 10.6 | −3.6 |
Current-Flow (×10−2) | 0.14 | 2.13 | 2.60 | +22.1 | <0.1 | 1.78 | 1.90 | +6.7 | - | 3.78 | 3.05 | −19.3 | < 0.1 | 4.93 | 5.88 | +19.2 |
Boundary (×10−2) | 0.92 | 2.71 | 2.91 | +7.4 | 7.65 | 4.20 | 4.53 | +7.9 | - | 3.89 | 2.11 | −45.8 | 5.15 | 4.52 | 4.24 | −6.2 |
Regularity (×10−7) | 3.01 | 1.27 | 1.32 | +3.9 | 2.79 | 4.56 | 3.85 | −15.6 | - | 2.84 | 2.78 | −2.1 | 23.4 | 16.3 | 15.0 | −8.0 |
Proximity | 0.47 | 0.61 | 0.61 | −0.8 | 0.21 | 0.43 | 0.44 | +3.5 | - | 0.36 | 0.30 | −17.9 | 0.21 | 0.34 | 0.32 | −3.9 |
Overlap (×10−2) | 4.83 | 7.81 | 8.05 | +3.1 | 6.13 | 12.7 | 12.1 | −4.7 | - | 14.4 | 14.9 | +3.5 | 7.85 | 15.1 | 15.4 | +2.0 |
Placement | Compactness | Comp. | Proximity | Comp. | Current-Flow | Comp. | Regularity | Comp. | Boundary | Comp. | Total | Comp. |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Human [25] | 6.72 | 1.10× | 8.33 | 2.19× | 0.89 | 17.8× | 0.54 | 4.50× | 1.53 | 3.26× | 18.01 | 1.70× |
This Work | 6.12 | - | 3.81 | - | 0.05 | - | 0.12 | - | 0.47 | - | 10.57 | - |
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. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Gusmão, A.; Alves, P.; Horta, N.; Lourenço, N.; Martins, R. Differentiable Constraints’ Encoding for Gradient-Based Analog Integrated Circuit Placement Optimization. Electronics 2023, 12, 110. https://doi.org/10.3390/electronics12010110
Gusmão A, Alves P, Horta N, Lourenço N, Martins R. Differentiable Constraints’ Encoding for Gradient-Based Analog Integrated Circuit Placement Optimization. Electronics. 2023; 12(1):110. https://doi.org/10.3390/electronics12010110
Chicago/Turabian StyleGusmão, António, Pedro Alves, Nuno Horta, Nuno Lourenço, and Ricardo Martins. 2023. "Differentiable Constraints’ Encoding for Gradient-Based Analog Integrated Circuit Placement Optimization" Electronics 12, no. 1: 110. https://doi.org/10.3390/electronics12010110
APA StyleGusmão, A., Alves, P., Horta, N., Lourenço, N., & Martins, R. (2023). Differentiable Constraints’ Encoding for Gradient-Based Analog Integrated Circuit Placement Optimization. Electronics, 12(1), 110. https://doi.org/10.3390/electronics12010110