원시데이터 수집 시스템
선정목록으로

Machine Learning Integrated Pseudo-3-D Flow for Monolithic 3-D ICs

관련 모빌리티 소재 · (2) 샤무드(인공피혁)

기본 정보

저자
  1. Sai Pentapati — Georgia Institute of Technology, Atlanta, GA, USA
  2. Bon Woong Ku — Synopsys Inc., Mountain View, CA, USA
  3. Sung Kyu Lim — Georgia Institute of Technology, Atlanta, GA, USA
DOI
10.1109/jxcdc.2021.3095104
저널
IEEE Journal on Exploratory Solid-State Computational Devices and Circuits
발행년도
2021
발행기관
Institute of Electrical and Electronics Engineers
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/jxcdc.2021.3095104
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W3180602989

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (2) 샤무드(인공피혁)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Monolithic 3-D (M3-D) IC design is a manufacturing technique that opens several new possibilities of chip design and exploration for power, performance, area (PPA), and cost benefits. Designing a commercially viable M3-D IC first requires a sign-off timing closure capability. Since the commercial tools lack such capability, several 3-D flows have been proposed that treat 3-D as a 2-D die and use commercial 2-D electronic design automation (EDA) tools for the RTL-to-GDS stage. The conversion between the two stages is done late in the design flow and the conversion is also nontrivial. Here, we propose a machine learning-based prediction algorithm to decrease the discrepancy between the pre and post-partitioned 3-D design using regression models. Our proposed model is circuit-agnostic and its performance with respect to a circuit-dependent model is also studied. Furthermore, more details on the behavior and analysis of the model are considered. Overall, we achieve a significant reduction in the total negative slack (TNS) of the test design ( <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$3\times $ </tex-math></inline-formula> – <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$16\times $ </tex-math></inline-formula> ) using the machine learning model integrated pseudo-3-D flow at an expense of just −1%–4% increase in total power.

본문 37,233자

본문 펼치기
IEEE Journal on Exploratory Solid-State Computational Devices and Circuits Received 28 April 2021; revised 15 June 2021; accepted 2 July 2021. Date of publication 6 July 2021; date of current version 28 September 2021. _Digital Object Identifier 10.1109/JXCDC.2021.3095104_ ## Machine Learning Integrated Pseudo-3-D Flow for Monolithic 3-D ICs SAI PENTAPATI 1, BON WOONG KU 2, and SUNGKYU LIM1 (Senior Member, IEEE) 1Department of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta, GA 30332 USA 2Synopsys Inc., Mountain View, CA 94043 USA CORRESPONDING AUTHOR: S. PENTAPATI (sai.pentapati@gatech.edu) This work was supported in part by the DARPA ERI 3DSOC Program under Award HR001118C0096 and in part by the Semiconductor Research Corporation under GRC Task 2929. ABSTRACT Monolithic 3-D (M3-D) IC design is a manufacturing technique that opens several new possibilities of chip design and exploration for power, performance, area (PPA), and cost benefits. Designing a commercially viable M3-D IC first requires a sign-off timing closure capability. Since the commercial tools lack such capability, several 3-D flows have been proposed that treat 3-D as a 2-D die and use commercial 2-D electronic design automation (EDA) tools for the RTL-to-GDS stage. The conversion between the two stages is done late in the design flow and the conversion is also nontrivial. Here, we propose a machine learning-based prediction algorithm to decrease the discrepancy between the pre and post-partitioned 3-D design using regression models. Our proposed model is circuit-agnostic and its performance with respect to a circuit-dependent model is also studied. Furthermore, more details on the behavior and analysis of the model are considered. Overall, we achieve a significant reduction in the total negative slack (TNS) of the test design (3×–16×) using the machine learning model integrated pseudo-3-D flow at an expense of just −1%–4% increase in total power. INDEX TERMS Interconnect analysis, monolithic 3-D (M3-D) IC, pseudo-3-D Flows, tier partitioning. I. INTRODUCTION ONOLITHIC 3-D (M3-D) IC design is a process in which multiple dies/tiers are sequentially fabricated # M on top of each other [1], [2] to create a 3-D die stack. The sequential processing helps one to maintain a 3-D contact pitch ∼100 nm enabling a high connection density and bandwidth between the adjacent dies. The 3-D vias connecting the two tiers in an M3-D IC are referred to as monolithic intertier vias (MIVs). The high bandwidth allows for fine-grained gate-level partitioning of an RTL which can lead to various implementations that target wire length reduction, memory latency reduction, etc. In this work, we focus on the gate-level 3-D implementations that target wire length reduction. A twotiered gate-level 3-D integration has (1 _/_ 2)× the footprint of a corresponding 2-D design, and (1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )× the linear dimensions. This leads to an average reduction in wire length of up to 30% in a 3-D design. Commercial electronic design automation (EDA) tools do not support the design and optimization of an M3-D IC. Due to this, several pseudo-3-D flows are developed that make use of the EDA capabilities to create timing-optimized M3-D ICs. Compact-2-D (C2-D) [3] and Shrunk-2-D [4] are two such flows. A general pseudo-3-D flow follows three main stages to create a 3-D IC: pseudo-3-D design, tier partitioning, and MIV planning, 3-D routing. In the pseudo-3-D stage, a 2-D type floorplan is first designed leveraging the commercial EDA tool capabilities for placement, clock design, timing optimization. In shrunk-2-D, all the linear dimensions of the technology are scaled-down by (1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )× so that the footprint and the resultant _x_, _y_ placement are more closely related to a 3-D design in the original unscaled technology. As distances between cells are also approximately (1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )× shorter on average, the parasitics replicate the 3-D parasitics and the timing optimization done in pseudo-3-D is useful for 3-D. In C2-D, the technology dimensions are not scaled as it affects the metal cross section and _RC_ parasitics. Instead, the design uses a larger footprint which is ∼2× expected 3-D footprint, and the resistance and capacitance values are all derated by (1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )× to make sure the net parasitics in the derated pseudo-3-D stage are similar to the final 3-D stage. By being limited to a single active layer in pseudo-3-D, the conversion to 3-D stage requires placement modification and complete routing overhaul, and therefore affects the final 3-D design quality in terms of power, performance, area (PPA). The placement and routing inconsistencies also affect the shrunk-2-D based flow (although, in shrunk-2-D the technology dimensions are shrunk matching the footprint size to final 3-D). IEEE Journal on Exploratory Solid-State Computational Devices and Circuits resistance values of the wires (denoted by lower-case _c, r_ in this article), and the vias at different scenarios (width, thickness, spacing, temperature, etc.) for each metal layer. The total resistance, and capacitance of a net with wires of length _lMi_ on metal layer _Mi_, and _nVi_ number of vias of type _Vi_ is given by _Mi_ _Mi_ _cMilMi_ + _rMilMi_ + _Vi_ _Vi_ _cVinVi_ + _XCap_ (1) _rVinVi_ (2) FIGURE 1. Pseudo-3-D flow and training from the corresponding features. To tackle these problems in the pseudo-3-D flows, we first presented a machine learning integration framework in [5]. A high-level working of the flow is shown in Fig. 1. Better estimations of _RC_ s early in the design stage will improve the final PPA in general. In the pseudo-3-D flows for 3-D ICs in particular, this _RC_ estimation becomes more important as the timing optimization is exclusively done in the pseudo-3-D stage. The 3-D parasitics depend on a lot of variables as will be discussed later in Section II-B, and so a machine learning framework is well suited to learn the different interactions of the net features to estimate the 3-D _R_ and _C_ values. In this article, we extend the machine learning framework to include the following new items: 1) extend the framework with better testing and training methods; 2) comparing the performance of the circuit agnostic model with a circuit-specific model to understand the performance of these models and their interaction with the EDA tools; and 3) more statistically significant importance analysis of the features. In this study, we use a total of 12 memoryless logic RTL downloaded from open cores, ISPD contests [6]–[8]. These are designed with a 28-nm commercial technology node. For all the 2-D designs, six metal layers are used for signal routing. 3-D designs have two tiers and a total of 12 signal routing layers (6 per each die). All the machine learning implementation are done with python3.6. II. RC ANALYSIS _A._ _RC BREAKDOWN OF A NET_ In a GDS layout of an RTL, the nets are complex 3-D structures whose parasitics depend on the exact shape of the net as well as the overall bottom-end-of-line (BEOL) dielectrics, neighboring nets. But such detailed analysis requires a significant amount of time for 3-D extractions and SPICE simulations. So, the commercial EDA tools use several assumptions and simplifications to achieve a trade-off between accuracy and run-time. Consider a rectangular wire of width _W_, thickness _T_, length _L_, at a distance _H_ from the ground plane. The resistance and ground capacitance are given by _Cwire_ = ( _ϵd_ _WL/H_ ); _Rwire_ = ( _ρL/WT_ ), where _ϵd_ is the dielectric constant of the dielectric between the wire and the ground plane. While the resistance model is fairly simple, the total capacitance is much more complex with contributions from the fringing effect of the ground capacitance, and coupling capacitance. Modern-day IC designs also use multiple layers of metals and the _W_ _, T_ _, H_ _, ϵd_ _, ρ_ can be different for the different metal layers. In an EDA tool, it is not feasible to calculate these capacitances from just the physical dimensions, and material properties. So, an _RC_ lookup table is provided by the technology foundry containing precalculated unit length ground capacitance, coupling capacitance, and _Cnet_ = _Rnet_ = where Xcap is the cross coupling capacitance between the net and the neighboring nets in the design. _c_ ( _r_ ) _Mi_ is the capacitance (resistance) of a wire of length 1 _µ_ m, and _c_ ( _r_ ) _Vi_ is the capacitance (resistance) of a via of type _Vi_ . Note that there can be multiple types of vias from metal layer _Mi_ to _Mi_ +1. Coupling capacitance of the net is dependent on the final routing. While most of the nets have a negligible coupling capacitance, the nets that are routed in congested areas can have majority of the total capacitance as the coupling capacitance. _B._ _RC EVOLUTION FROM PSEUDO-3-D TO FINAL-3-D_ _DESIGNS_ As discussed in Section I C2-D’s pseudo-3-D stage works under the assumption that the wire _RC_ s scale down by a factor a (1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> ) when the design is converted from pseudo-3-D to 3-D stage. So, the scaling factor is applied in the pseudo-3-D stage. This assumption is true in an ideal case, but the discrete row placement of cells and complex routing algorithms of commercial tools create variations in the scaling factor. Even in a global sense, the overall _RC_ reduction is rarely as expected. Furthermore, the global scaling is applied only considering the length reduction portion in (1) and (2). A number of vias on a net is much harder to predict as the routing in pseudo-3-D (six metal layers total) and final-3-D (12 metal layers total) is very different. The contact resistance of vias keeps increasing in smaller technology nodes, and ignoring the via resistance on the overall resistance can cause inconsistencies in the resistance of nets from the pseudo-3-D to final-3-D stages. In the technology node considered here, the unit values for metal layer 4 are as follows: _cM_ 4 ≈ 0 _._ 20 fF µ m <sup>−1</sup> _,_ _cV_ 4 ≈ 0 _._ 02 fF µ m <sup>−1</sup> _,_ _rM_ 4 ≈ 10 _._ 0 _�/_ µ m _,_ _rV_ 4 ≈ 8 _._ 0 _�/_ µ m. It is clear that the contact resistance is significant even in the relatively older 28-nm node, considering the total wire length and via count in Table 1. To further analyze the _RC_ evolution in design implementation, we design AES-128 circuit in pseudo-3-D and final-3-D stages. Some of the useful metrics from this implementation is shown in Table 1. Note that the wire length, ground capacitance, wire resistance are considerably underestimated in the pseudo-3-D stage. Via count increases by ∼17.5%, but the global scaling [(1 _/_ (2) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )] performed is suitable for a ∼30% reduction in the via count. This increase in 3-D is due to the halved footprint (or a number of tracks per layer) and twice the number of vertical layers compared to a 2-D or pseudo-3-D implementation. The scatter plot of the wire parasitics as a function of the routed wire length is in Fig. 2 visualizes a couple of trends. Pentapati _et al._ : Machine Learning Integrated Pseudo-3-D Flow for M3-D ICs TABLE 1. Routing statistics of the pseudo-3-D and the final 3-D routed designs. FIGURE 2. (a) Capacitance and (b) resistance of nets in the AES-128 design with respect to routed wire length of the net. The data points are color coded according to the number of vias on each net. One, the wire resistance can be given by a set of linear functions of the wire length, whose slope is fixed and intercept increases with the number of vias on the net. Two, the via capacitance has a negligible impact on the total wire capacitance. Three, the resistance and capacitance are linear functions of the total wire length, i.e., they do not vary due to different distributions of the total routing on separate metal layers. This is due to the fact that the unit _RC_ values for the one to six metal layers in the considered commercial technology node are very close to each other. The difference between routing in pseudo-3-D and final-3-D means that FIGURE 3. Net and its connected cells (smaller squares). The local regions at each endpoint of the net are shaded in blue (larger squares). bin1 has a high cell density and the contained cell will be displaced during legalization after tier partitioning. the via count in pseudo-3-D cannot be directly used as a proxy for the final-3-D via count. But it provides a new point of information for the machine learning algorithm. In Section III-B, we show that via count indeed has useful information regarding final 3-D parasitics by verifying the null hypothesis probability. From the stages shown in Fig. 1, the tier partitioning and 3-D routing change layout after the pseudo-3-D stage. Within tier partitioning, cell legalization is performed to get a clean placement solution in two tiers. As mentioned in Section I, the location mapping from a larger 2-D footprint to a halved 3-D footprint in C2-D creates cell overlaps. Additionally in this work, instead of legalizing the cells independently in each tier, we perform an incremental placement similar to the proposed solution in [9]. This allows for a better placement quality as die-by-die legalization does not consider the PPA impact. Based on cell placement and net connectivity, nets undergo different amounts of cell movement during the tier partitioning. Fig. 3 shows an example of a net and neighboring cells. Features such as the local density in a small neighborhood to the end-points of nets can be used to learn the extent of cell movement each net undergoes. In the next stage of the pseudo-3-D flow—3-D routing— the routing of the nets is fully modified. Based on the routing, nets can be grouped into three different types: 1) single-tier nets; 2) multitier nets; and 3) nets with metal layer borrowing. Single-tier nets are the ones where the 3-D routing is done entirely within the top or bottom tier. These are expected to undergo the least amount of change from the pseudo-3-D stage as they are still routed within the six signal routing layers. Multitier nets are the nets connecting cells from different tiers after the partitioning. These have the highest difference in routing between the two design stages, as they need to be routed vertically for proper connectivity. These would have increased wire length and number of vias that will affect capacitance and the resistance of the nets. Finally, the last group is the nets that use metal-borrowing. Consider a net that is connecting to cells entirely within the top tier. When performing 3-D routing, some of these nets can use metal layers belonging to a different tier. This is called metal layer borrowing, and such nets would have a medium variation in the parasitics in 3-D. IEEE Journal on Exploratory Solid-State Computational Devices and Circuits To quantify the impact the tier partitioning and 3-D routing have on the nets and to understand the extent of this impact from different net features, the following metric is useful: <u>res(cap) of net(s) in pseudo-3-D</u> res(cap) of the net(s) in final-3-D <sup>= Scaling Error of</sup> <sup>_R, C_</sup> represented as _SER_ ( _C_ ). This shows how well the scaling in pseudo-3-D corresponds with the final 3-D RCs. Scaling error can also be defined for a group of nets by using the sum of _R_ and _C_ values in the numerator and denominator of the fraction. _SE_ _R_ ( _C_ ) ≈ 1 of a group of nets implies that the scaling done in the pseudo-3-D stage is close to accurate for the group. _SE_ _R_ ( _C_ ) ≪ 1 for a group of nets means that the estimation in pseudo-3-D is much lower than the final 3-D for this group. This results in worse timing after the design is 3-D routed. Identifying such a group of nets using a combination of net is useful in properly applying scaling factors. Most of the nets in a design would fall in this group as the pseudo-3-D is usually optimistic. _SE_ _R_ ( _C_ ) ≫ 1 occurs when the parasitic value in pseudo-3-D is overestimated. Cells on these nets would be oversized in pseudo-3-D. These cells not only consume additional but also manifests as an additional capacitance load to the connected cells. Grouping the nets using net metrics like routed wire length, fan-out/number of connected cells, number of MIVs, local cell density near the cells, we plot the scaling error variation of these groups in Fig. 4. In Fig. 4(a), the nets are grouped based on the routed wire length. All the nets with wire length [ _x, x_ + 1) µ m are put into group _x_ . Based on this, the average scaling error of _R_, _C_, and the MIV counts are plotted. The number of MIVs is dependent on many different features such as cell count, overall connectivity graph, and bin size chosen. In order to observe the impact of just wire length, the other features are kept constant for this plot by only considering nets with fan-out 2 in the implementation of aes-128 with fixed binsize. This shows how wire length can impact the 3-D routing (specifically the average number of MIVs). The average number of MIVs in each group increases as the pseudo-3-D wire length keeps getting higher. Net groups with at least 1000 nets are considered to reduce volatility in the plot. More importantly, we observe the scaling error of resistance and capacitance of these groups. This follows a slightly more complex trajectory. The scaling error plots are much smoother by the virtue of the central limit theorem as we consider significantly more number of nets. It is interesting to note that none of the groups have an average scaling error _>_ 1 in line with our claim that pseudo-3-D underrepresents the final _RC_ values. Misrepresenting the via calculation causes the resistance to be significantly undervalued. Overall, the scaling error versus wire length plots have two main trends: a steep increase at lower values 0 ≤ _x_ _<_ 10 followed by a saddle-like shape for 10 _< x_ _<_ 60. At 0 ≤ _x_ _<_ 10, the scaling error values are the most _<_ 1. Since these nets are smaller, small perturbation during legalization and routing changes can cause a relatively significant increase in the final parasitics and so the _SE_ _<_ 1. As the nets become relatively large, the net are more likely to be partitioned (as evident from the avg. MIV count plot) and 3-D routing is now going to have a higher impact adding more _RC_ s in the final 3-D that was unaccounted for. This shows us up as the decrease in SE. And as the net length keeps on increasing, the pseudo-3-D _RC_ s increase at a rate higher than the impact of 3-D routing, so the SE increases again. This interaction between the pseudo-3-D _RC_ s and the additional 3-D touring manifests as the saddle shape. With relatively low noise, this allows us to learn a scaling model as a function of routed wire lengths. Extending a similar analysis to the number of cells connected to a net versus _SE_ _R_ ( _C_ ) gives us the plot in Fig. 4(b). These plots are close to monotonically decreasing. This shows that a highly connected net is more likely to have a higher discrepancy between the pseudo-3-D and final-3-D stages. This is a direct result of the bin-based FiducciaMattheyses partitioning done in pseudo-3-D flow. a: BIN-BASED FIDUCCIA-MATTHEYSES PARTITIONING In this partitioning, placement layout is first divided into smaller rectangular bins and then each bin is partitioned into two tiers such that the area of cells in the two tiers is the same within a tolerance threshold. In any hypergraph partitioning, the nets with high fan-out are more likely to be partitioned. For example, a net with ‘‘ _c_ ’’ cells connected has 2 <sup>_c_</sup> ways being split into two partitions. Apart from the two solutions where all the cells in either of the partitions, the other 2 <sup>_c_</sup> - 2 solutions have a cut-size of 1 net. So, once such a net is forced to not be partitioned, the solution space decreases by a fraction of ∼2 <sup>_c_</sup> . But allowing the net to be partitioned leaves the solution space almost unchanged with different configurations achieving the same result. So, it is not a good move to keep a highly partitioned net constrained to a single partition as we might miss the chance of finding a better cut-size solution. So, a highly connected cell is more likely to be partitioned under hypergraph partitioning. With this knowledge of hypergraph partitioning, it is easy to see the reason for the monotonically decreasing plots in Fig. 4(b). As discussed in the wire length analysis, a partitioned net will have increased parasitics in 3-D and since the groups are not directly dependent on wire length, the numerator (pseudo-3-D parasitic value) cannot compensate for the increase in the 3-D parasitics unlike in Fig. 4(a). The scaling error due to tier partitioning can also be seen by grouping nets based on the number of MIVs. This is a final 3-D metric and cannot be used in training. But this helps one to understand the scaling error evolution in terms of grouping based on final 3-D parameters. No MIVs on a net imply that it is fully routed in a single tier, and as discussed earlier, such nets have the least deviation from the ideal. This is seen in Fig. 4(c) as the _SE_ _C_ ≈ 0 _._ 95, _SE_ _R_ ≈ 0 _._ 80 is highest at #MIVs = 0. Both _SE_ _R_ and _SE_ _C_ have a significant drop when #MIVs = 1. This is because nets with fewer MIVs also have a smaller avg. WL (Fig. 4). When the nets are partitioned its adds vertical routing in 3-D which is particularly significant for small nets. And as resistance is especially large for vias, this causes the significantly large drop for _SE_ _R_ . Finally, the number of dense bins per net is analyzed. As discussed in earlier sections, as the number of dense bins per net increases, the legalization distorts the net more. When this value is 0, _SE_ _C_ = 1 showing the group of nets that is closest to ideal in terms of pseudo-3-D scaling. In this case, Pentapati _et al._ : Machine Learning Integrated Pseudo-3-D Flow for M3-D ICs FIGURE 4. Average _RC_ scaling errors with respect to various net features. (a) Wire length. (b) Number of MIVs on the net. (c) Number of cells connected to the net. (d) Number of dense bins of the net. each bin at the endpoint is a square centered at the pin with a side of size 3 × Row Height. A bin is considered dense if the density is greater than a certain threshold (which is set to 75%). This again shows a monotonic drop with the range almost as large as the trend for cell count. III. DESIGN AND LEARNING MODEL IMPLEMENTATION _A._ _DESIGN IMPLEMENTATION_ Training machine learning models require input data to train and the output labels as the target output of the model. In our case, the input data comes from pseudo-3-D design, specifically, the postroute stage of the pseudo-3-D design. This is specially chosen as we can extract proper pseudo-3-D parasitic values as well as routing metrics like wire length via count of nets. We add a few improvements to the 3-D stages of the flow using improvements suggested in [9]. This allows for better legalization with full 3-D connectivity and 3-D congestion-driven placement, and the routing is done with a complete metal stack. This is useful in our model application as the target parasitic value extraction becomes more streamlined. With an independent die-by-die routing, net extraction should be performed for each die separately. By using the full 3-D routing (routing both dies together), net extraction becomes more streamlined leveraging in-built query commands of the commercial EDA tools. So, the target data are the parasitic values of the 3-D routed nets done with full 3-D routing. The inputs to the model are the net features and design features from the pseudo-3-D stage. Net features differentiate the nets, whereas the design features are different among the type of designs. All the different features used are specified in Table 2. The evolution of a net from pseudo-3-D to final-3-D is design-dependent and, wire dominant and cell dominant designs have very different routing and therefore very different net evolution between the two stages. Similarly global nets that span over a huge fraction of the chip width or height would have varying lengths as the design varies. Similarly, even when a circuit is fixed, different frequency implementations will add additional timing constraints to routing and additional buffers required for timing closure. And finally, tier partitioning has an important variable that changes the partitioning type-bin width. The bin width is used to define bins within which FM min-cut is performed. So, a high bin count (small bin width) can increase the number of nets partitioned. In order to generalize over all these variations, we chose eight different training netlists, four target frequencies per circuit, three bin sizes per frequency totaling 96 implementations for training. Different circuits have a different number of nets, and to make sure some large circuits do not overwhelm the training process, the number of nets per design is capped at a certain value. Four circuits are left out at the training stage that are used during testing. Fig. 5 shows the overall flow after integrating the _RC_ prediction. After the routing stage in pseudo-3-D, pretrained IEEE Journal on Exploratory Solid-State Computational Devices and Circuits TABLE 2. Input features used to train the XGBoost model, and their importance and/or explanation. FIGURE 5. Pseudo-3-D flow with integrated _RC_ prediction results. models are loaded and used for _RC_ value predictions. These values are annotated to the existing nets and the design is optimized. But postroute optimization has the ability to change the net connectivity and add/delete nets. Completely constraining the net updates at this stage will impact the optimization quality. So, during optimization, nets that do not have the _RC_ annotations from the trained model would be introduced to the design by the EDA tool for timing closure. To rectify this, an incremental optimization is performed by reannotating the parasitic values to all the nets in the design followed by an in-place optimization. In this stage, the nets are cells that are fixed in position to minimize the changes to placement and routing structure that could invalidate the _RC_ annotation. _B._ _MACHINE LEARNING MODEL_ To find the best learning model, we first consider a couple of different options during the training stage: 1) an XGBoost regressor; 2) XGBoost random forest regressor; and 3) random forest regressor. We chose XGBoost as it is well suited for regression-type problems. _RC_ estimation is formulated as a linear regression problem in our work with the least squared sum loss model. Random forest regressors are closely related to the XGBoost regressors, and having more weak tree learners in a forest could be helpful to avoid overfitting data to a single design or net type. Within each model, various hyperparameters are varied and twofold cross validation is used to choose the best combination. Specifically, they are the number of trees, number of features per tree, and max depth of each tree. In general, it is better to have many weak trees to avoid overfitting. Similarly, by randomly choosing a subset of all the features in each tree, the model can be generalized better and performs well with test sets. Moreover, before training any model, we perform feature selection on the 24 selected features. By removing the unnecessary features, overfitting in tree learning models can be avoided. This is done using backward feature selection and null hypothesis test using linear regression. In backward feature selection, a linear regression model is first fitted based on an initial set of features. _p_ -values are extracted for the features and at each stage, the worst features are discarded if its _p_ -value _>_ 0.05. _p_ -value shows the probability of the null hypothesis, i.e., the probability that a feature does not contribute to the target. In capacitance model Pentapati _et al._ : Machine Learning Integrated Pseudo-3-D Flow for M3-D ICs TABLE 3. _R_ 2 scores and mean squared error of C2-D scaling and the best model for capacitance training. TABLE 4. Permutation importance using RMSE loss of the eight most important features per model. The RMSE loss of resistance model is 7 _._ 31 × 10 <sup>−2</sup> _�_ , and capacitance model loss is 9 _._ 22 × 10 <sup>−4</sup> fF . training, the ‘‘design id’’ was the only feature that had a _p_ value greater than 0 _._ 05 and is removed during model learning. In the resistance model, the wire resistance was the only feature with _p_ -value _>_ 0.05. This is an extremely unintuitive outcome and happens because the influence of vias made the wire resistance less useful and redundant. Changing the design significantly changes the routing patterns (metal usage per layer, vias used, etc.), which has more impact on the resistance model. So ‘‘design id’’ has a smaller _p_ -value and is kept in resistance modeling. IV. RESULTS _A._ _TRAINING AND INFERENCE_ With the data collected from the previous stages, twofold cross-validation is used on the testing sets and the model with the best cross-validation error is selected. The _R_ 2 score (explained variance) of the designs is shown in Table 3. Of note are the designs with a low _R_ 2 score. When _R_ 2 score equals 1, the model predicts all the variations in the target label. _R_ 2 score is zero when output is a constant equal to the target mean. The _R_ 2 score is higher in both training and testing netlists, although the increase per netlist varies. Netlists like vga, ldpc, and netcard already have a relatively high _R_ 2 score in C2-D stage. Interesting to note is that these three are the wire dominant designs in the netlists considered. So, the slight variances due to 3-D routing are not very significant relative to the overall wire length. MSE is also high for these circuits due to their large parasitics. In Table 4, the permutation importance is given for the top ten most important features in the model on the test set. In permutation importance, a loss metric is first calculated using a trained model, and then a feature is permuted so that values FIGURE 6. _RC_ histograms of ML based implementation. of the feature are incorrect and the score is recalculated. The difference between the scores is the permutation importance. A large value implies a feature of high importance and a small value implies low importance. Fig. 6 shows the _RC_ histograms of three design stages: Model predicted _RCs_, pseudo-3-D _RC_ s, and true 3-D _RC_ s. We see that the pseudo-3-D _RC_ s deviate more from the ground truth in the lower _RC_ ranges leading to smaller _RC_ s than final 3-D. Such a design would not meet timing when _RC_ s becomes worse in the actual 3-D stage. _B._ _FULL-CHIP PPA_ Irrespective of _RC_ prediction, PPA is the most important consideration for a full chip study, and in Table 5 we report the PPA of the four testing netlists used: b19, ecg, tate, vga. b19, and vga are relatively small circuits, and ecg and tate are significantly larger. Three different implementations of PPA are reported: 3-D design using circuit agnostic machine learning model, circuit-specific model, and the C2-D’s global _RC_ scaling model. The capacitance error in each implementation is the difference between the total capacitance of its final 3-D and pseudo-3-D stages. −ve capacitance error means that the pseudo-3-D stage predicts a low capacitance value. C2-D flow always underestimates the value leading to worse slack overall. With machine learning models, the error is always positive and slightly in the positive direction. For circuits with large over or underestimates, the power consumption varies based on the method chosen (although this is a very small % of total power). For the small circuits, such as b19 and vga, the power consumption is actually smaller as the machine learning model is employed. This is because the accurate parasitic estimation allows for better optimization in the pseudo3-D stage. Total negative slack (TNS) has the highest impact overall as it becomes ≈ 3×−16× smaller with the circuit agnostic IEEE Journal on Exploratory Solid-State Computational Devices and Circuits TABLE 5. Overall PPA of the test netlists with circuit agnostic ML scaling, C2-D scaling, circuit specific ML scaling models. model compared to the C2-D scaling. This is mainly because each net is assigned a better parasitic which contributes a little to the overall slack improvement. Worst negative slack (WNS), on the other hand, depends on just the critical nets in 3-D. These nets are not identifiable from C2-D stages, as the 3-D routing changes the criticality of the paths. The nets with negative timing slack in pseudo-3-D can have a positive slack, and nets with positive slacks in pseudo-3-D can become the new critical paths in final 3-D. To identify the critical paths, a learning model that is tailored for the timing estimation of graph networks should be used and requires high accuracy. But the best solution would be to add a postroute optimization stage in 3-D that can fix the relatively minor TNS and few WNS violations in 3-D. Finally, we also trained circuit-specific models to check the benefit of having such models. While these models were able to perform better in terms of total capacitance error, they do not have significant improvement in power consumption. With regards to timing, the circuit-specific models have even more volatile WNS. The TNS is better than the C2-D scaling but is not as good as using a general model. This is slightly counter-intuitive as we would assume circuit-specific model would perform better. But they suffer from overfitting and lack of different types of nets during training. Another reason is that these models are trained to learn the parasitics and cannot be directly helpful with overall timing. So the general learning model is as good as circuit-specific models for parasitic estimation and power consumption, but is significantly better in terms of timing. V. CONCLUSION In summary, we have presented a machine learning model that can predict final net parasitics at an early stage of the design. We have analyzed several net features and how they impact the parasitic evolution in a pseudo-3-D flow. We formulate new metrics and use them to achieve better circuit, agnostic learning models. Using these models, we were able to achieve higher _R_ 2 score, lower MSE, better timing. We discussed the issue of critical path estimation in 3-D design and showed that our general model is better than a circuit-specific model. With 3×−16× TNS reduction on test circuits, integrating these models in the pseudo-3-D flows help us to minimize the number of timing violations and the severity of the violations after routing. VI. ACKNOWLEDGMENT Bon Woong Ku was with the Georgia Institute of Technology, Atlanta, GA 30332 USA. REFERENCES [1] L. Brunet _et al._, ‘‘Breakthroughs in 3D sequential technology,’’ in _IEDM_ _Tech. Dig._, Dec. 2018, pp. 7.2.1–7.2.4. [2] M. M. Shulaker _et_ _al._, ‘‘Three-dimensional integration of nanotechnolo gies for computing and data storage on a single chip,’’ _Nature_, vol. 547, no. 7661, pp. 74–78, Jul. 2017. [3] B. W. Ku, K. Chang, and S. K. Lim, ‘‘Compact-2D: A physical design methodology to build two-tier gate-level 3-D ICs,’’ _IEEE Trans. Comput.-_ _Aided_ _Design_ _Integr._ _Circuits_ _Syst._, vol. 39, no. 6, pp. 1151–1164, Jun. 2020. [4] S. Panth, K. Samadi, Y. Du, and S. K. Lim, ‘‘Shrunk-2-D: A physical design methodology to build commercial-quality monolithic 3-D ICs,’’ _IEEE Trans. Comput.-Aided Design Integr. Circuits Syst._, vol. 36, no. 10, pp. 1716–1724, Oct. 2017. [5] S. S. K. Pentapati, B. W. Ku, and S. K. Lim, ‘‘ML-based wire RC prediction in monolithic 3D ICs with an application to full-chip optimization,’’ in _Proc._ _Int._ _Symp._ _Phys._ _Design_ _(ISPD)_, Mar. 2021, pp. 75–82. [6] _Opencores_ _Bemchmarks_ . Accessed: Jul. 11, 2021. [Online]. Available: https://opencores.org/projects [7] M. M. Ozdal, C. Amin, A. Ayupov, S. Burns, G. Wilke, and C. Zhuo, ‘‘The ISPD-2012 discrete cell sizing contest and benchmark suite,’’ in _Proc._ _ACM_ _Int._ _Symp._ _Int._ _Symp._ _Phys._ _Design_, 2012, pp. 161–164. [8] M. M. Ozdal, C. Amin, A. Ayupov, S. M. Burns, G. R. Wilke, and C. Zhuo, ‘‘An improved benchmark suite for the ISPD-2013 discrete cell sizing contest,’’ in _Proc._ _ACM_ _Int._ _Symp._ _Int._ _Symp._ _Phys._ _Design_, 2013, pp. 168–170. [9] S. S. K. Pentapati, K. Chang, V. Gerousis, R. Sengupta, and S. K. Lim, ‘‘Pin-3D: A physical synthesis and post-layout optimization flow for heterogeneous monolithic 3D ICs,’’ in _Proc._ _IEEE/ACM_ _Int._ _Conf.Comput._ _Aided Design (ICCAD)_, Nov. 2020, pp. 1–9.

섹션 본문 45문단 · 31,196자

(제목 없음)

1Monolithic 3-D (M3-D) IC design is a manufacturing technique that opens several new possibilities of chip design and exploration for power, performance, area (PPA), and cost benefits. Designing a commercially viable M3-D IC first requires a sign-off timing closure capability. Since the commercial tools lack such capability, several 3-D flows have been proposed that treat 3-D as a 2-D die and use commercial 2-D electronic design automation (EDA) tools for the RTL-to-GDS stage. The conversion between the two stages is done late in the design flow and the conversion is also nontrivial. Here, we propose a machine learning-based prediction algorithm to decrease the discrepancy between the pre and post-partitioned 3-D design using regression models. Our proposed model is circuit-agnostic and its performance with respect to a circuit-dependent model is also studied. Furthermore, more details on the behavior and analysis of the model are considered. Overall, we achieve a significant reduction in the total negative slack (TNS) of the test design (3×-16×) using the machine learning model integrated pseudo-3-D flow at an expense of just −1%-4% increase in total power.

2INDEX TERMS Interconnect analysis, monolithic 3-D (M3-D) IC, pseudo-3-D Flows, tier partitioning.

I. INTRODUCTION

3M ONOLITHIC 3-D (M3-D) IC design is a process in which multiple dies/tiers are sequentially fabricated on top of each other [1], [2] to create a 3-D die stack. The sequential processing helps one to maintain a 3-D contact pitch ∼100 nm enabling a high connection density and bandwidth between the adjacent dies. The 3-D vias connecting the two tiers in an M3-D IC are referred to as monolithic intertier vias (MIVs).

4The high bandwidth allows for fine-grained gate-level partitioning of an RTL which can lead to various implementations that target wire length reduction, memory latency reduction, etc. In this work, we focus on the gate-level 3-D implementations that target wire length reduction. A twotiered gate-level 3-D integration has (1/2)× the footprint of a corresponding 2-D design, and (1/(2) 1/2 )× the linear dimensions. This leads to an average reduction in wire length of up to 30% in a 3-D design.

5Commercial electronic design automation (EDA) tools do not support the design and optimization of an M3-D IC. Due to this, several pseudo-3-D flows are developed that make use of the EDA capabilities to create timing-optimized M3-D ICs. Compact-2-D (C2-D) [3] and Shrunk-2-D [4] are two such flows. A general pseudo-3-D flow follows three main stages to create a 3-D IC: pseudo-3-D design, tier partitioning, and MIV planning, 3-D routing. In the pseudo-3-D stage, a 2-D type floorplan is first designed leveraging the commercial EDA tool capabilities for placement, clock design, timing optimization. In shrunk-2-D, all the linear dimensions of the technology are scaled-down by (1/(2) 1/2 )× so that the footprint and the resultant x, y placement are more closely related to a 3-D design in the original unscaled technology. As distances between cells are also approximately (1/(2) 1/2 )× shorter on average, the parasitics replicate the 3-D parasitics and the timing optimization done in pseudo-3-D is useful for 3-D.

6In C2-D, the technology dimensions are not scaled as it affects the metal cross section and RC parasitics. Instead, the design uses a larger footprint which is ∼2× expected 3-D footprint, and the resistance and capacitance values are all derated by (1/(2) 1/2 )× to make sure the net parasitics in the derated pseudo-3-D stage are similar to the final 3-D stage. By being limited to a single active layer in pseudo-3-D, the conversion to 3-D stage requires placement modification and complete routing overhaul, and therefore affects the final 3-D design quality in terms of power, performance, area (PPA). The placement and routing inconsistencies also affect the shrunk-2-D based flow (although, in shrunk-2-D the technology dimensions are shrunk matching the footprint size to final 3-D). To tackle these problems in the pseudo-3-D flows, we first presented a machine learning integration framework in [5]. A high-level working of the flow is shown in Fig. 1. Better estimations of RCs early in the design stage will improve the final PPA in general. In the pseudo-3-D flows for 3-D ICs in particular, this RC estimation becomes more important as the timing optimization is exclusively done in the pseudo-3-D stage. The 3-D parasitics depend on a lot of variables as will be discussed later in Section II-B, and so a machine learning framework is well suited to learn the different interactions of the net features to estimate the 3-D R and C values. In this article, we extend the machine learning framework to include the following new items: 1) extend the framework with better testing and training methods; 2) comparing the performance of the circuit agnostic model with a circuit-specific model to understand the performance of these models and their interaction with the EDA tools; and 3) more statistically significant importance analysis of the features.

7In this study, we use a total of 12 memoryless logic RTL downloaded from open cores, ISPD contests [6]- [8]. These are designed with a 28-nm commercial technology node. For all the 2-D designs, six metal layers are used for signal routing. 3-D designs have two tiers and a total of 12 signal routing layers (6 per each die). All the machine learning implementation are done with python3.6.

A. RC BREAKDOWN OF A NET

8In a GDS layout of an RTL, the nets are complex 3-D structures whose parasitics depend on the exact shape of the net as well as the overall bottom-end-of-line (BEOL) dielectrics, neighboring nets. But such detailed analysis requires a significant amount of time for 3-D extractions and SPICE simulations. So, the commercial EDA tools use several assumptions and simplifications to achieve a trade-off between accuracy and run-time.

9Consider a rectangular wire of width W , thickness T , length L, at a distance H from the ground plane. The resistance and ground capacitance are given by C wire = ( d WL/H ); R wire = (ρL/WT ), where d is the dielectric constant of the dielectric between the wire and the ground plane. While the resistance model is fairly simple, the total capacitance is much more complex with contributions from the fringing effect of the ground capacitance, and coupling capacitance. Modern-day IC designs also use multiple layers of metals and the W , T , H , d , ρ can be different for the different metal layers. In an EDA tool, it is not feasible to calculate these capacitances from just the physical dimensions, and material properties. So, an RC lookup table is provided by the technology foundry containing precalculated unit length ground capacitance, coupling capacitance, and resistance values of the wires (denoted by lower-case c, r in this article), and the vias at different scenarios (width, thickness, spacing, temperature, etc.) for each metal layer. The total resistance, and capacitance of a net with wires of length l M i on metal layer M i , and n V i number of vias of type V i is given by

10where Xcap is the cross coupling capacitance between the net and the neighboring nets in the design. c(r) M i is the capacitance (resistance) of a wire of length 1 µm, and c(r) V i is the capacitance (resistance) of a via of type V i . Note that there can be multiple types of vias from metal layer M i to M i+1 . Coupling capacitance of the net is dependent on the final routing. While most of the nets have a negligible coupling capacitance, the nets that are routed in congested areas can have majority of the total capacitance as the coupling capacitance.

B. RC EVOLUTION FROM PSEUDO-3-D TO FINAL-3-D DESIGNS

11As discussed in Section I C2-D's pseudo-3-D stage works under the assumption that the wire RCs scale down by a factor a (1/(2) 1/2 ) when the design is converted from pseudo-3-D to 3-D stage. So, the scaling factor is applied in the pseudo-3-D stage. This assumption is true in an ideal case, but the discrete row placement of cells and complex routing algorithms of commercial tools create variations in the scaling factor. Even in a global sense, the overall RC reduction is rarely as expected. Furthermore, the global scaling is applied only considering the length reduction portion in (1) and (2). A number of vias on a net is much harder to predict as the routing in pseudo-3-D (six metal layers total) and final-3-D (12 metal layers total) is very different. The contact resistance of vias keeps increasing in smaller technology nodes, and ignoring the via resistance on the overall resistance can cause inconsistencies in the resistance of nets from the pseudo-3-D to final-3-D stages.

12In the technology node considered here, the unit values for metal layer 4 are as follows:

13clear that the contact resistance is significant even in the relatively older 28-nm node, considering the total wire length and via count in Table 1.

14To further analyze the RC evolution in design implementation, we design AES-128 circuit in pseudo-3-D and final-3-D stages. Some of the useful metrics from this implementation is shown in Table 1. Note that the wire length, ground capacitance, wire resistance are considerably underestimated in the pseudo-3-D stage. Via count increases by ∼17.5%, but the global scaling [(1/(2) 1/2 )] performed is suitable for a ∼30% reduction in the via count. This increase in 3-D is due to the halved footprint (or a number of tracks per layer) and twice the number of vertical layers compared to a 2-D or pseudo-3-D implementation.

15The scatter plot of the wire parasitics as a function of the routed wire length is in Fig. 2 visualizes a couple of trends. One, the wire resistance can be given by a set of linear functions of the wire length, whose slope is fixed and intercept increases with the number of vias on the net. Two, the via capacitance has a negligible impact on the total wire capacitance. Three, the resistance and capacitance are linear functions of the total wire length, i.e., they do not vary due to different distributions of the total routing on separate metal layers. This is due to the fact that the unit RC values for the one to six metal layers in the considered commercial technology node are very close to each other. The difference between routing in pseudo-3-D and final-3-D means that the via count in pseudo-3-D cannot be directly used as a proxy for the final-3-D via count. But it provides a new point of information for the machine learning algorithm. In Section III-B, we show that via count indeed has useful information regarding final 3-D parasitics by verifying the null hypothesis probability.

16From the stages shown in Fig. 1, the tier partitioning and 3-D routing change layout after the pseudo-3-D stage. Within tier partitioning, cell legalization is performed to get a clean placement solution in two tiers. As mentioned in Section I, the location mapping from a larger 2-D footprint to a halved 3-D footprint in C2-D creates cell overlaps. Additionally in this work, instead of legalizing the cells independently in each tier, we perform an incremental placement similar to the proposed solution in [9]. This allows for a better placement quality as die-by-die legalization does not consider the PPA impact. Based on cell placement and net connectivity, nets undergo different amounts of cell movement during the tier partitioning. Fig. 3 shows an example of a net and neighboring cells. Features such as the local density in a small neighborhood to the end-points of nets can be used to learn the extent of cell movement each net undergoes.

17In the next stage of the pseudo-3-D flow-3-D routingthe routing of the nets is fully modified. Based on the routing, nets can be grouped into three different types: 1) single-tier nets; 2) multitier nets; and 3) nets with metal layer borrowing.

18Single-tier nets are the ones where the 3-D routing is done entirely within the top or bottom tier. These are expected to undergo the least amount of change from the pseudo-3-D stage as they are still routed within the six signal routing layers.

19Multitier nets are the nets connecting cells from different tiers after the partitioning. These have the highest difference in routing between the two design stages, as they need to be routed vertically for proper connectivity. These would have increased wire length and number of vias that will affect capacitance and the resistance of the nets.

20Finally, the last group is the nets that use metal-borrowing. Consider a net that is connecting to cells entirely within the top tier. When performing 3-D routing, some of these nets can use metal layers belonging to a different tier. This is called metal layer borrowing, and such nets would have a medium variation in the parasitics in 3-D.

IEEE Journal on Exploratory Solid-State Computational Devices and Circuits

21To quantify the impact the tier partitioning and 3-D routing have on the nets and to understand the extent of this impact from different net features, the following metric is useful: res(cap) of net(s) in pseudo-3-D res(cap) of the net(s) in final-3-D = Scaling Error of R, C represented as SE R(C) . This shows how well the scaling in pseudo-3-D corresponds with the final 3-D RCs. Scaling error can also be defined for a group of nets by using the sum of R and C values in the numerator and denominator of the fraction. SE R(C) ≈ 1 of a group of nets implies that the scaling done in the pseudo-3-D stage is close to accurate for the group.

22SE R(C) 1 for a group of nets means that the estimation in pseudo-3-D is much lower than the final 3-D for this group. This results in worse timing after the design is 3-D routed. Identifying such a group of nets using a combination of net is useful in properly applying scaling factors. Most of the nets in a design would fall in this group as the pseudo-3-D is usually optimistic.

23SE R(C) 1 occurs when the parasitic value in pseudo-3-D is overestimated. Cells on these nets would be oversized in pseudo-3-D. These cells not only consume additional but also manifests as an additional capacitance load to the connected cells.

24Grouping the nets using net metrics like routed wire length, fan-out/number of connected cells, number of MIVs, local cell density near the cells, we plot the scaling error variation of these groups in Fig. 4.

25In Fig. 4(a), the nets are grouped based on the routed wire length. All the nets with wire length [x, x + 1)µm are put into group x. Based on this, the average scaling error of R, C, and the MIV counts are plotted. The number of MIVs is dependent on many different features such as cell count, overall connectivity graph, and bin size chosen. In order to observe the impact of just wire length, the other features are kept constant for this plot by only considering nets with fan-out 2 in the implementation of aes-128 with fixed binsize. This shows how wire length can impact the 3-D routing (specifically the average number of MIVs). The average number of MIVs in each group increases as the pseudo-3-D wire length keeps getting higher. Net groups with at least 1000 nets are considered to reduce volatility in the plot.

26More importantly, we observe the scaling error of resistance and capacitance of these groups. This follows a slightly more complex trajectory. The scaling error plots are much smoother by the virtue of the central limit theorem as we consider significantly more number of nets. It is interesting to note that none of the groups have an average scaling error >1 in line with our claim that pseudo-3-D underrepresents the final RC values. Misrepresenting the via calculation causes the resistance to be significantly undervalued. Overall, the scaling error versus wire length plots have two main trends: a steep increase at lower values 0 ≤ x < 10 followed by a saddle-like shape for 10 < x < 60.

27At 0 ≤ x < 10, the scaling error values are the most <1. Since these nets are smaller, small perturbation during legalization and routing changes can cause a relatively significant increase in the final parasitics and so the SE < 1. As the nets become relatively large, the net are more likely to be partitioned (as evident from the avg. MIV count plot) and 3-D routing is now going to have a higher impact adding more RCs in the final 3-D that was unaccounted for. This shows us up as the decrease in SE. And as the net length keeps on increasing, the pseudo-3-D RCs increase at a rate higher than the impact of 3-D routing, so the SE increases again. This interaction between the pseudo-3-D RCs and the additional 3-D touring manifests as the saddle shape. With relatively low noise, this allows us to learn a scaling model as a function of routed wire lengths.

28Extending a similar analysis to the number of cells connected to a net versus SE R(C) gives us the plot in Fig. 4(b). These plots are close to monotonically decreasing. This shows that a highly connected net is more likely to have a higher discrepancy between the pseudo-3-D and final-3-D stages. This is a direct result of the bin-based Fiduccia-Mattheyses partitioning done in pseudo-3-D flow.

a: BIN-BASED FIDUCCIA-MATTHEYSES PARTITIONING

29In this partitioning, placement layout is first divided into smaller rectangular bins and then each bin is partitioned into two tiers such that the area of cells in the two tiers is the same within a tolerance threshold. In any hypergraph partitioning, the nets with high fan-out are more likely to be partitioned. For example, a net with ''c'' cells connected has 2 c ways being split into two partitions. Apart from the two solutions where all the cells in either of the partitions, the other 2 c − 2 solutions have a cut-size of 1 net. So, once such a net is forced to not be partitioned, the solution space decreases by a fraction of ∼2 c . But allowing the net to be partitioned leaves the solution space almost unchanged with different configurations achieving the same result. So, it is not a good move to keep a highly partitioned net constrained to a single partition as we might miss the chance of finding a better cut-size solution. So, a highly connected cell is more likely to be partitioned under hypergraph partitioning.

30With this knowledge of hypergraph partitioning, it is easy to see the reason for the monotonically decreasing plots in Fig. 4(b). As discussed in the wire length analysis, a partitioned net will have increased parasitics in 3-D and since the groups are not directly dependent on wire length, the numerator (pseudo-3-D parasitic value) cannot compensate for the increase in the 3-D parasitics unlike in Fig. 4(a).

31The scaling error due to tier partitioning can also be seen by grouping nets based on the number of MIVs. This is a final 3-D metric and cannot be used in training. But this helps one to understand the scaling error evolution in terms of grouping based on final 3-D parameters. No MIVs on a net imply that it is fully routed in a single tier, and as discussed earlier, such nets have the least deviation from the ideal. This is seen in Fig. 4(c) as the SE C ≈ 0.95, SE R ≈ 0.80 is highest at #MIVs = 0. Both SE R and SE C have a significant drop when #MIVs = 1. This is because nets with fewer MIVs also have a smaller avg. WL (Fig. 4). When the nets are partitioned its adds vertical routing in 3-D which is particularly significant for small nets. And as resistance is especially large for vias, this causes the significantly large drop for SE R .

32Finally, the number of dense bins per net is analyzed. As discussed in earlier sections, as the number of dense bins per net increases, the legalization distorts the net more. When this value is 0, SE C = 1 showing the group of nets that is closest to ideal in terms of pseudo-3-D scaling. In this case, each bin at the endpoint is a square centered at the pin with a side of size 3 × Row Height. A bin is considered dense if the density is greater than a certain threshold (which is set to 75%). This again shows a monotonic drop with the range almost as large as the trend for cell count.

III. DESIGN AND LEARNING MODEL IMPLEMENTATION A. DESIGN IMPLEMENTATION

33Training machine learning models require input data to train and the output labels as the target output of the model. In our case, the input data comes from pseudo-3-D design, specifically, the postroute stage of the pseudo-3-D design. This is specially chosen as we can extract proper pseudo-3-D parasitic values as well as routing metrics like wire length via count of nets. We add a few improvements to the 3-D stages of the flow using improvements suggested in [9]. This allows for better legalization with full 3-D connectivity and 3-D congestion-driven placement, and the routing is done with a complete metal stack. This is useful in our model application as the target parasitic value extraction becomes more streamlined. With an independent die-by-die routing, net extraction should be performed for each die separately. By using the full 3-D routing (routing both dies together), net extraction becomes more streamlined leveraging in-built query commands of the commercial EDA tools. So, the target data are the parasitic values of the 3-D routed nets done with full 3-D routing.

34The inputs to the model are the net features and design features from the pseudo-3-D stage. Net features differentiate the nets, whereas the design features are different among the type of designs. All the different features used are specified in Table 2. The evolution of a net from pseudo-3-D to final-3-D is design-dependent and, wire dominant and cell dominant designs have very different routing and therefore very different net evolution between the two stages. Similarly global nets that span over a huge fraction of the chip width or height would have varying lengths as the design varies. Similarly, even when a circuit is fixed, different frequency implementations will add additional timing constraints to routing and additional buffers required for timing closure. And finally, tier partitioning has an important variable that changes the partitioning type-bin width. The bin width is used to define bins within which FM min-cut is performed. So, a high bin count (small bin width) can increase the number of nets partitioned. In order to generalize over all these variations, we chose eight different training netlists, four target frequencies per circuit, three bin sizes per frequency totaling 96 implementations for training. Different circuits have a different number of nets, and to make sure some large circuits do not overwhelm the training process, the number of nets per design is capped at a certain value. Four circuits are left out at the training stage that are used during testing. Fig. 5 shows the overall flow after integrating the RC prediction. After the routing stage in pseudo-3-D, pretrained models are loaded and used for RC value predictions. These values are annotated to the existing nets and the design is optimized. But postroute optimization has the ability to change the net connectivity and add/delete nets. Completely constraining the net updates at this stage will impact the optimization quality. So, during optimization, nets that do not have the RC annotations from the trained model would be introduced to the design by the EDA tool for timing closure. To rectify this, an incremental optimization is performed by reannotating the parasitic values to all the nets in the design followed by an in-place optimization. In this stage, the nets are cells that are fixed in position to minimize the changes to placement and routing structure that could invalidate the RC annotation.

B. MACHINE LEARNING MODEL

35To find the best learning model, we first consider a couple of different options during the training stage: 1) an XGBoost regressor; 2) XGBoost random forest regressor; and 3) random forest regressor. We chose XGBoost as it is well suited for regression-type problems. RC estimation is formulated as a linear regression problem in our work with the least squared sum loss model. Random forest regressors are closely related to the XGBoost regressors, and having more weak tree learners in a forest could be helpful to avoid overfitting data to a single design or net type. Within each model, various hyperparameters are varied and twofold cross validation is used to choose the best combination. Specifically, they are the number of trees, number of features per tree, and max depth of each tree. In general, it is better to have many weak trees to avoid overfitting. Similarly, by randomly choosing a subset of all the features in each tree, the model can be generalized better and performs well with test sets. Moreover, before training any model, we perform feature selection on the 24 selected features. By removing the unnecessary features, overfitting in tree learning models can be avoided. This is done using backward feature selection and null hypothesis test using linear regression.

36In backward feature selection, a linear regression model is first fitted based on an initial set of features. p-values are extracted for the features and at each stage, the worst features are discarded if its p-value > 0.05. p-value shows the probability of the null hypothesis, i.e., the probability that a feature does not contribute to the target. In capacitance model training, the ''design id'' was the only feature that had a pvalue greater than 0.05 and is removed during model learning. In the resistance model, the wire resistance was the only feature with p-value > 0.05. This is an extremely unintuitive outcome and happens because the influence of vias made the wire resistance less useful and redundant. Changing the design significantly changes the routing patterns (metal usage per layer, vias used, etc.), which has more impact on the resistance model. So ''design id'' has a smaller p-value and is kept in resistance modeling.

A. TRAINING AND INFERENCE

37With the data collected from the previous stages, twofold cross-validation is used on the testing sets and the model with the best cross-validation error is selected. The R2 score (explained variance) of the designs is shown in Table 3. Of note are the designs with a low R2 score. When R2 score equals 1, the model predicts all the variations in the target label. R2 score is zero when output is a constant equal to the target mean. The R2 score is higher in both training and testing netlists, although the increase per netlist varies. Netlists like vga, ldpc, and netcard already have a relatively high R2 score in C2-D stage. Interesting to note is that these three are the wire dominant designs in the netlists considered. So, the slight variances due to 3-D routing are not very significant relative to the overall wire length. MSE is also high for these circuits due to their large parasitics.

38In Table 4, the permutation importance is given for the top ten most important features in the model on the test set. In permutation importance, a loss metric is first calculated using a trained model, and then a feature is permuted so that values of the feature are incorrect and the score is recalculated. The difference between the scores is the permutation importance. A large value implies a feature of high importance and a small value implies low importance. Fig. 6 shows the RC histograms of three design stages: Model predicted RCs, pseudo-3-D RCs, and true 3-D RCs. We see that the pseudo-3-D RCs deviate more from the ground truth in the lower RC ranges leading to smaller RCs than final 3-D. Such a design would not meet timing when RCs becomes worse in the actual 3-D stage.

B. FULL-CHIP PPA

39Irrespective of RC prediction, PPA is the most important consideration for a full chip study, and in Table 5 we report the PPA of the four testing netlists used: b19, ecg, tate, vga. b19, and vga are relatively small circuits, and ecg and tate are significantly larger. Three different implementations of PPA are reported: 3-D design using circuit agnostic machine learning model, circuit-specific model, and the C2-D's global RC scaling model.

40The capacitance error in each implementation is the difference between the total capacitance of its final 3-D and pseudo-3-D stages. −ve capacitance error means that the pseudo-3-D stage predicts a low capacitance value. C2-D flow always underestimates the value leading to worse slack overall. With machine learning models, the error is always positive and slightly in the positive direction. For circuits with large over or underestimates, the power consumption varies based on the method chosen (although this is a very small % of total power). For the small circuits, such as b19 and vga, the power consumption is actually smaller as the machine learning model is employed. This is because the accurate parasitic estimation allows for better optimization in the pseudo-3-D stage.

41Total negative slack (TNS) has the highest impact overall as it becomes ≈ 3×−16× smaller with the circuit agnostic VOLUME 7, NO. 1, JUNE 2021 model compared to the C2-D scaling. This is mainly because each net is assigned a better parasitic which contributes a little to the overall slack improvement. Worst negative slack (WNS), on the other hand, depends on just the critical nets in 3-D. These nets are not identifiable from C2-D stages, as the 3-D routing changes the criticality of the paths. The nets with negative timing slack in pseudo-3-D can have a positive slack, and nets with positive slacks in pseudo-3-D can become the new critical paths in final 3-D. To identify the critical paths, a learning model that is tailored for the timing estimation of graph networks should be used and requires high accuracy. But the best solution would be to add a postroute optimization stage in 3-D that can fix the relatively minor TNS and few WNS violations in 3-D.

42Finally, we also trained circuit-specific models to check the benefit of having such models. While these models were able to perform better in terms of total capacitance error, they do not have significant improvement in power consumption. With regards to timing, the circuit-specific models have even more volatile WNS. The TNS is better than the C2-D scaling but is not as good as using a general model. This is slightly counter-intuitive as we would assume circuit-specific model would perform better. But they suffer from overfitting and lack of different types of nets during training. Another reason is that these models are trained to learn the parasitics and cannot be directly helpful with overall timing. So the general learning model is as good as circuit-specific models for parasitic estimation and power consumption, but is significantly better in terms of timing.

V. CONCLUSION

43In summary, we have presented a machine learning model that can predict final net parasitics at an early stage of the design. We have analyzed several net features and how they impact the parasitic evolution in a pseudo-3-D flow. We formulate new metrics and use them to achieve better circuit, agnostic learning models. Using these models, we were able to achieve higher R2 score, lower MSE, better timing.

44We discussed the issue of critical path estimation in 3-D design and showed that our general model is better than a circuit-specific model. With 3×−16× TNS reduction on test circuits, integrating these models in the pseudo-3-D flows help us to minimize the number of timing violations and the severity of the violations after routing.

VI. ACKNOWLEDGMENT

45Bon Woong Ku was with the Georgia Institute of Technology, Atlanta, GA 30332 USA.

참고문헌 8건

  1. The ISPD-2012 discrete cell sizing contest and benchmark suite 2012 10.1145/2160916.2160950
  2. An improved benchmark suite for the ISPD-2013 discrete cell sizing contest 2013 10.1145/2451916.2451959
  3. Shrunk-2-D: A Physical Design Methodology to Build Commercial-Quality Monolithic 3-D ICs IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcad.2017.2648839
  4. Three-dimensional integration of nanotechnologies for computing and data storage on a single chip Nature · Nature Portfolio · 2017 10.1038/nature22994
  5. Breakthroughs in 3D Sequential technology 2021 IEEE International Electron Devices Meeting (IEDM) · 2018 10.1109/iedm.2018.8614653
  6. Compact-2D: A Physical Design Methodology to Build Two-Tier Gate-Level 3-D ICs IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tcad.2019.2952542
  7. Pin-3D 2020 10.1145/3400302.3415720
  8. ML-Based Wire RC Prediction in Monolithic 3D ICs with an Application to Full-Chip Optimization 2021 10.1145/3439706.3447266