[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104978447B - The modeling of the accurate table lookup model of transistor and estimation method - Google Patents

The modeling of the accurate table lookup model of transistor and estimation method Download PDF

Info

Publication number
CN104978447B
CN104978447B CN201410146475.1A CN201410146475A CN104978447B CN 104978447 B CN104978447 B CN 104978447B CN 201410146475 A CN201410146475 A CN 201410146475A CN 104978447 B CN104978447 B CN 104978447B
Authority
CN
China
Prior art keywords
grid
dimension
dimensional
model
space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410146475.1A
Other languages
Chinese (zh)
Other versions
CN104978447A (en
Inventor
曾璇
王胜国
杨帆
李潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fudan University
Original Assignee
Fudan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fudan University filed Critical Fudan University
Priority to CN201410146475.1A priority Critical patent/CN104978447B/en
Publication of CN104978447A publication Critical patent/CN104978447A/en
Application granted granted Critical
Publication of CN104978447B publication Critical patent/CN104978447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

This method belongs to integrated circuit fields, is related to a kind of the transistor accurately modeling of approximate table lookup model and estimation method.By establishing the non-uniform grid Table Model of transistor in nonlinear circuit, by the quick valuation searched and its correspond to physical parameter for waiting estimating in the look-up tables'implementation simulation process of simple Hash mapping and auxiliary a little.This method inherits the advantage adaptively divided based on tree shaped model approximation method, and it is slow to solve the problems, such as to be currently based on unit search speed in the non-uniform grid model of tree.The continuity and flatness for ensureing that Table Model calculates by carrying out Hermite spline interpolations three times on non-uniform grid, overcome the problem of derivative discontinuously leads to convergence difficulties in the prior art, this method can substantially speed up transistor model calculating process in simulation process, effectively shortened in circuit simulation with acceptable memory requirements and the time of transient analysis and obtain higher precision.

Description

晶体管精确表格查找模型的建模和估值方法Modeling and Estimation Methods for Exact Table Lookup Models of Transistors

技术领域technical field

本方法属于集成电路领域,具体涉及一种用于集成电路仿真的晶体管(MOSFET)精确表格查找模型的建模和估值方法。The method belongs to the field of integrated circuits, and in particular relates to a method for modeling and estimating an accurate table lookup model of a transistor (MOSFET) used for integrated circuit simulation.

技术背景technical background

随着超大规模集成电路(ULSI)复杂性的提高,快速仿真和验证在设计流程中变得日益重要。研究显示,传统的快速晶体管级仿真(fast-spice)往往以牺牲精度为代价来获得仿真速度上显著的增益,并广泛应用于大规模数字电路的验证和数模混合电路的功能仿真。但随着工艺特征尺寸急剧减小,为了精确刻画晶体管的深亚微米特性,现代晶体管级仿真器往往采用复杂的晶体管解析模型,如BSIM和EKV,这使得传统的快速仿真方法难以适用于精度要求较高的模拟电路、标准单元库及IP核的仿真。As the complexity of Ultra Large Scale Integration (ULSI) increases, fast simulation and verification becomes increasingly important in the design flow. Studies have shown that traditional fast transistor-level simulation (fast-spice) often gains significant gains in simulation speed at the expense of accuracy, and is widely used in the verification of large-scale digital circuits and the functional simulation of digital-analog hybrid circuits. However, with the sharp reduction of process feature size, in order to accurately describe the deep submicron characteristics of transistors, modern transistor-level simulators often use complex transistor analysis models, such as BSIM and EKV, which makes it difficult for traditional fast simulation methods to meet the accuracy requirements Simulation of higher analog circuits, standard cell libraries and IP cores.

表格模型技术通常通过从晶体管解析模型中获得的有限器件工作点构建一系列多维表格来刻画器件的输入输出特(主要包括I-V和Q-V特性)。适当选择构建表格的精细度并结合合理的插值方法,表格模型便可以近似仿真中晶体管的行为特性,并成功应用于对精度要求高的内存成品率分析(8)和晶体管漏电分析中。Table model technology usually describes the input and output characteristics of the device (mainly including I-V and Q-V characteristics) by constructing a series of multi-dimensional tables from the finite device operating points obtained from the transistor analytical model. Properly selecting the fineness of the table construction and combining with a reasonable interpolation method, the table model can approximate the behavior characteristics of the transistor in the simulation, and has been successfully applied to the memory yield analysis (8) and transistor leakage analysis that require high precision.

现有技术公开了在晶体管级仿真中,瞬态分析的主要过程是估计一个给定时间点上电路所有结点的电压电流值,并外推下一个时间点上电路结点的值。现代晶体管级仿真器一般采用牛顿法(Newton-Raphson method)迭代求解当前时间点上电路的隐式或显式积分方程来获得下一个时间点上电路结点电压电流值,递推重复这一过程直到仿真结束。由于现代晶体管器件固有的高非线性特征,在每一个时间点上牛顿迭代一般需要多步才能收敛,而每一次牛顿迭代都将调用晶体管模型对器件工作点估值,因此在瞬态分析中对高度复杂的晶体管模型估值是一个较为耗时的过程。指出对于高度复杂电路,瞬态分析中近60%-80%的时间被用于晶体管解析模型的估值计算,因此采用合理的表格模型近似简化晶体管物理参数的估值计算可以有效缩短电路的仿真时间。The prior art discloses that in transistor-level simulation, the main process of transient analysis is to estimate the voltage and current values of all nodes of the circuit at a given time point, and extrapolate the values of the circuit nodes at the next time point. Modern transistor-level simulators generally use the Newton-Raphson method to iteratively solve the implicit or explicit integral equations of the circuit at the current time point to obtain the voltage and current values of the circuit nodes at the next time point, and repeat this process recursively until the simulation ends. Due to the inherent high nonlinear characteristics of modern transistor devices, Newton iteration generally needs multiple steps to converge at each time point, and each Newton iteration will call the transistor model to estimate the operating point of the device, so in the transient analysis Valuation of highly complex transistor models is a time-consuming process. It is pointed out that for highly complex circuits, nearly 60%-80% of the time in transient analysis is used for the estimation calculation of the transistor analytical model, so using a reasonable tabular model to approximate and simplify the estimation calculation of the physical parameters of the transistor can effectively shorten the simulation of the circuit time.

基于以上两点表格模型技术可以同时获得仿真过程的加速和可接受的仿真精度,实践中,实现表格模型技术的难点在于如何在模型精度,表格规模和高效的插值计算之间取得平衡并保证估值计算与牛顿迭代求解电路方程之间的兼容性(主要包括插值的单调性和连续性)。Based on the above two points, the tabular model technology can simultaneously obtain the acceleration of the simulation process and acceptable simulation accuracy. In practice, the difficulty in implementing the tabular model technology lies in how to strike a balance between model accuracy, tabular scale, and efficient interpolation calculations and ensure that the estimated Compatibility between value calculation and Newton iterative solution of circuit equations (mainly including monotonicity and continuity of interpolation).

现有技术的早期的表格模型由于采用了均匀网格,使得模型精度往往受限于庞大的表格规模(特别是三维网格)对存储的需求且需要使用复杂的插值方式来获得足够的估值精度。随着电路仿真中晶体管规模和物理模型复杂性的显著增加,由非均匀网格构建表格的方式被广泛采用,通过在晶体管非线性较强的区域放置更多的网格点,它可以以相对较小的存储需求更精确地刻画晶体管物理参数的非线性行为。相比于以现有技术中有关以半经验地根据晶体管的工作区域来确立划分规则并构建结构化网格(structured grid)的方法,有研究提出了一种可以根据预先设定的误差需求自适应地构建表格的方法,其中采用了基于树状结构的非结构化网格(unstructured grid)从而进一步减小了存储开销,如,采用该方法为SOI构建表格模型;进一步改进发展上述方法以保证插值的单调性;但是,相比于结构化网格,非结构化网格需要采用复杂的算法来保证表格模型插值的单调性和连续性导致仿真前建立表格时间开销的增加,该方法的另一个缺点是在树状结构中网格单元(Cell)的搜索速度(O(log N)的时间复杂度)较慢,特别是所需网格单元对应结点深度较深时,估值计算中搜索时间所占的比例将显著增加,有关现有技术中分别采用了贪心搜索和路径压缩的方法来缩短搜索时间,由于在非线性较强的区域,估值计算所需网格单元往往对应着树中深度较深的叶子结点,空间上相邻的两个网格单元对应的结点有很大几率位于二元空间分割(BSP)树两个不同的深度较深的子树中,从而使得其中的方法对搜索速度的改进有限,或因其中涉及迭代进行数据结构间转换带来额外开销。Due to the use of a uniform grid in the early form models of the prior art, the accuracy of the model is often limited by the storage requirements of the huge form size (especially the 3D grid) and requires the use of complex interpolation methods to obtain sufficient estimates precision. With the significant increase in the transistor scale and the complexity of the physical model in circuit simulation, the method of constructing tables by non-uniform grids is widely used. By placing more grid points in the region where the transistor nonlinearity is strong, it can be relatively Smaller memory requirements more accurately characterize the nonlinear behavior of transistor physical parameters. Compared with the method in the prior art that semi-empirically establishes division rules and constructs a structured grid based on the working area of the transistor, some studies have proposed a method that can automatically A method for adaptively constructing tables, wherein an unstructured grid based on a tree structure is used to further reduce storage overhead, such as, adopting this method to construct a table model for SOI; further improving and developing the above method to ensure The monotonicity of interpolation; however, compared with the structured grid, the unstructured grid needs to use complex algorithms to ensure the monotonicity and continuity of the interpolation of the tabular model, which leads to an increase in the time spent on building the table before simulation. One disadvantage is that the search speed (time complexity of O(log N)) of the grid unit (Cell) in the tree structure is relatively slow, especially when the depth of the corresponding node of the required grid unit is relatively deep, in the estimation calculation The proportion of search time will increase significantly. In the prior art, greedy search and path compression methods are used to shorten the search time. Because in areas with strong nonlinearity, the grid cells required for estimation calculation often correspond to For the deeper leaf nodes in the tree, the nodes corresponding to the two spatially adjacent grid units have a high probability of being located in two different deeper subtrees of the binary space partitioning (BSP) tree, thus The method therein has limited improvement in search speed, or brings additional overhead due to iterative conversion between data structures.

综上所述,现有技术的表格模型技术中构建非均匀网格的方法难以同时保证构建表格的通用性和简单高效性。To sum up, it is difficult for the method of constructing non-uniform grids in the prior art table model technology to ensure the versatility, simplicity and efficiency of constructing tables at the same time.

与本发明相关的现有技术有如下参考文献:The prior art relevant to the present invention has following references:

⑴Rewieński,"A perspective on fast-SPICE simulation technology."Simulation and Verification of Electronic and Biological Systems.SpringerNetherlands,2011.23-42.(1) Rewieński, "A perspective on fast-SPICE simulation technology."Simulation and Verification of Electronic and Biological Systems. SpringerNetherlands, 2011.23-42.

⑵Y.S.Chauhan,S.Venugopalan,M.A.Karim,S.Khandelwal,N.Paydavosi,P.Thakur,A.M.Niknejad and C.C.Hu,“BSIM–industry standard compact MOSFETmodels”,IEEE European Solid-State Device Research Conference,Bordeaux,France,Sept.2012.(2) Y.S.Chauhan, S.Venugopalan, M.A.Karim, S.Khandelwal, N.Paydavosi, P.Thakur, A.M.Niknejad and C.C.Hu, “BSIM–industry standard compact MOSFETmodels”, IEEE European Solid-State Device Research Conference, Bordeaux , France, Sept.2012.

⑶Bucher M,Enz C,Krummenacher F,et al.The EKV 3.0 compact MOStransistor model:accounting for deep-submicron aspects[C]//Proc.MSMInt.Conf.,Nanotech 2002.2002:670-673.⑶Bucher M, Enz C, Krummenacher F, et al. The EKV 3.0 compact MOStransistor model: accounting for deep-submicron aspects[C]//Proc.MSMInt.Conf., Nanotech 2002.2002:670-673.

⑷Nadezhin D,Gavrilov S,Glebov A,et al.SOI transistor model for fasttransient simulation[C]//Proceedings of the 2003 IEEE/ACM internationalconference on Computer-aided design.IEEE Computer Society,2003:120.⑷Nadezhin D, Gavrilov S, Glebov A, et al.SOI transistor model for fasttransient simulation[C]//Proceedings of the 2003 IEEE/ACM international conference on Computer-aided design.IEEE Computer Society,2003:120.

⑸Yang B,McGaughy B.An essentially non-oscillatory(ENO)high-orderaccurate adaptive table model for device modeling[C]//Proceedings of the 41stannual Design Automation Conference.ACM,2004:864-867.⑸Yang B, McGaughy B.An essentially non-oscillatory(ENO)high-orderaccurate adaptive table model for device modeling[C]//Proceedings of the 41stannual Design Automation Conference.ACM,2004:864-867.

⑹Bourenkov V,McCarthy K G,Mathewson A.MOS table models for circuitsimulation[J].Computer-Aided Design of Integrated Circuits and Systems,IEEETransactions on,2005,24(3):352-362.⑹Bourenkov V, McCarthy K G, Mathewson A. MOS table models for circuits simulation [J]. Computer-Aided Design of Integrated Circuits and Systems, IEEE Transactions on, 2005, 24(3): 352-362.

⑺Caddemi A,Crupi G,et al..Analytical Construction of NonlinearLookup Table Model for Advanced Microwave Transistors[C]//Telecommunicationsin Modern Satellite,Cable and Broadcasting Services,2007.TELSIKS 2007.8thInternational Conference on.IEEE,2007:261-270.⑺Caddemi A, Crupi G, et al..Analytical Construction of Nonlinear Lookup Table Model for Advanced Microwave Transistors[C]//Telecommunications in Modern Satellite,Cable and Broadcasting Services,2007.TELSIKS 2007.8thInternational Conference on.IEEE,2007:261-270.

⑻Kanj R,Li T,Joshi R,et al.Accelerated statistical simulation viaon-demand Hermite spline interpolations[C]//Computer-Aided Design(ICCAD),2011IEEE/ACM International Conference on.IEEE,2011:353-360.⑻Kanj R, Li T, Joshi R, et al.Accelerated statistical simulation viaon-demand Hermite spline interpolations[C]//Computer-Aided Design(ICCAD),2011IEEE/ACM International Conference on.IEEE,2011:353-360.

⑼Emrah Acar,Damir Jamsek,et al.Blended model interpolation:U.S.Patent 8,151,230[P].2012-4-3.⑼Emrah Acar, Damir Jamsek, et al. Blended model interpolation: U.S. Patent 8,151,230[P].2012-4-3.

⑽Gang Peter Fang,et al.Method for generating and evaluating a tablemodel for circuit simulation:U.S.Patent 8,341,566[P].2012-12-25.⑽Gang Peter Fang, et al.Method for generating and evaluating a tablemodel for circuit simulation: U.S.Patent 8,341,566[P].2012-12-25.

⑾Shima T,Sugawara T,Moriyama S,et al.Three-dimensional table look-upMOSFET model for precise circuit simulation[J].Solid-State Circuits,IEEEJournal of,1982,17(3):449-454.⑾Shima T, Sugawara T, Moriyama S, et al.Three-dimensional table look-upMOSFET model for precise circuit simulation[J].Solid-State Circuits,IEEEJournal of,1982,17(3):449-454.

⑿Jiying X,Tao L,Zhiping Y.Accurate and fast table look-up models forleakage current analysis in 65 nm CMOS technology[J].Journal ofSemiconductors,2009,30(2):024004.⑿Jiying X,Tao L,Zhiping Y.Accurate and fast table look-up models for leakage current analysis in 65 nm CMOS technology[J].Journal of Semiconductors,2009,30(2):024004.

⒀Fang G P,Yeh D C,et al.Fast,accurate MOS table model for circuitsimulation using an unstructured grid and preserving monotonicity[C]//Proceedings of the 2005 Asia and South Pacific Design AutomationConference.ACM,2005:1102-1106.⒀Fang G P, Yeh D C, et al. Fast, accurate MOS table model for circuits simulation using an unstructured grid and preserving monotonicity[C]//Proceedings of the 2005 Asia and South Pacific Design Automation Conference. ACM,2005:1102-1106.

⒁Kiran Kumar Gullapalli,et al.Circuit Simulation acceleration usingmodel caching:U.S.Patent 2013/0054217[P].2013-2-28.⒁Kiran Kumar Gullapalli, et al. Circuit Simulation acceleration using model caching: U.S. Patent 2013/0054217[P].2013-2-28.

⒂Subramaniam P.Modeling MOS VLSI circuits for transient analysis[J].Solid-State Circuits,IEEE Journal of,1986,21(2):276-285.⒂Subramaniam P.Modeling MOS VLSI circuits for transient analysis[J].Solid-State Circuits,IEEE Journal of,1986,21(2):276-285.

(16)Lewis D M.Device model approximation using 2N trees[J].Computer-Aided Design of Integrated Circuits and Systems,IEEE Transactions on,1990,9(1):30-38.(16) Lewis D M. Device model approximation using 2 N trees [J]. Computer-Aided Design of Integrated Circuits and Systems, IEEE Transactions on, 1990, 9(1): 30-38.

⒄Gondro E,Kowarik O,Knoblinger G,et al.When do we need non-quasistatic CMOS RF-models?[C]//Custom Integrated Circuits,2001,IEEEConference on.IEEE,2001:377-380.⒄Gondro E, Kowarik O, Knoblinger G, et al. When do we need non-quasistatic CMOS RF-models? [C]//Custom Integrated Circuits, 2001, IEEE Conference on. IEEE, 2001:377-380.

⒅Ng A F L,Ko P K,Chan M.Determining the onset frequency ofnonquasistatic effects of the MOSFET in AC simulation[J].Electron DeviceLetters,IEEE,2002,23(1):37-39.⒅Ng A F L, Ko P K, Chan M.Determining the onset frequency ofnonquasistatic effects of the MOSFET in AC simulation[J].Electron Device Letters,IEEE,2002,23(1):37-39.

⒆Schrom G,Stach A,Selberherr S.An interpolation based MOSFET modelfor low-voltage applications[J].Microelectronics journal,1998,29(8):529-534⒆Schrom G, Stach A, Selberherr S.An interpolation based MOSFET model for low-voltage applications[J].Microelectronics journal,1998,29(8):529-534

发明内容Contents of the invention

本发明的目的是解决当前基于“树状”结构模型近似方法(TBMA)构建的非均匀网格表格模型中网格单元查找速度慢的问题,提供一种用于集成电路仿真的晶体管(MOSFET)精确表格查找模型的建模和估值方法。本发明能实现在非均匀网格模型中不受划分规模限制的快速表格查找方法且继承了TBMA自适应划分的优势,同时保证所建立晶体管表格模型估值计算的连续性和插值的单调性,提出了相应的表格模型建立和估值方法。The purpose of the present invention is to solve the problem that the grid unit search speed is slow in the non-uniform grid table model built based on the "tree-like" structure model approximation method (TBMA), and to provide a transistor (MOSFET) for integrated circuit simulation Modeling and Valuation Methods for Exact Table Lookup Models. The invention can realize the fast table lookup method not limited by the division scale in the non-uniform grid model and inherits the advantages of TBMA self-adaptive division, and at the same time ensures the continuity of the evaluation calculation of the established transistor table model and the monotonicity of the interpolation, The corresponding tabular model building and valuation methods are proposed.

为了达到上述目的,本发明的技术内容是:In order to achieve the above object, technical content of the present invention is:

本方法通过建立非线性电路中晶体管的非均匀网格表格模型,借助简单的哈希映射和辅助的查找表实现仿真过程中待估点的快速查找及其对应物理参数的估值。This method establishes a non-uniform grid table model of transistors in a nonlinear circuit, and realizes the rapid search of the points to be estimated and the estimation of the corresponding physical parameters in the simulation process by means of a simple hash map and an auxiliary look-up table.

本发明中由二元空间分割树根据预先设定的精度要求自适应地构建晶体管物理参数(电流、电荷)的非均匀网格模型,加细划分将树状的网格单元存储结构转化为多维数组的网格单元存储结构,得到精细化的非均匀网格以保证表格模型估值计算的连续性和单调性;In the present invention, the non-uniform grid model of transistor physical parameters (current, charge) is adaptively constructed by the binary space segmentation tree according to the preset precision requirements, and the tree-like grid unit storage structure is converted into multi-dimensional by adding fine division Array grid unit storage structure, to obtain a refined non-uniform grid to ensure the continuity and monotonicity of the tabular model estimation calculation;

在非均匀网格中对物理参数估值所需网格单元进行查找的关键思想是在非均匀网格的每个维度上由均匀标尺构建辅助的查找表;将查找表项映射为相应维度上的网格单元下标,便可通个待估点在该维度上坐标分量的简单哈希映射确定其在该维度上的网格下标;相比于TBMA,本方法能显著提高非均匀网格表格模型中网格单元的查找速度,对待估点查找的时间复杂度由O(logN)下降为O(C),并且其查找速度与网格规模无关,从而可以在不牺牲查找速度的前提下,提高非均匀网格的划分粒度以获得精度更高的表格模型。The key idea of looking up the grid cells required for the estimation of physical parameters in the non-uniform grid is to construct an auxiliary look-up table with a uniform scale on each dimension of the non-uniform grid; map the look-up table items to the corresponding dimensions The grid unit subscript of a point to be estimated can be determined by a simple hash map of the coordinate components in this dimension; compared with TBMA, this method can significantly improve the efficiency of non-uniform grids. The search speed of the grid unit in the tabular model, the time complexity of the search point to be estimated is reduced from O(logN) to O(C), and its search speed has nothing to do with the grid size, so that it can be obtained without sacrificing the search speed , improve the division granularity of the non-uniform grid to obtain a tabular model with higher accuracy.

本发明提出的方法理论上可以用于任意N维(N≥2)解析模型的近似,除了本发明实现的BSIM3中的二维和三维表格模型,还可以为其它器件(如三维器件,双极型晶体管等)建立所需维度的表格模型。The method that the present invention proposes can be used for the approximation of any N-dimensional (N≥2) analytical model in theory, except the two-dimensional and three-dimensional form model in the BSIM3 that the present invention realizes, can also be other devices (as three-dimensional device, bipolar type transistors, etc.) to create a tabular model of the required dimensions.

具体的,本发明的晶体管精确表格查找模型的建模和估值方法其特征在于,其包括步骤:Specifically, the modeling and estimating method of the transistor accurate table lookup model of the present invention is characterized in that it includes the steps of:

步骤一:给定一个器件物理参量函数的N维封闭定义域空间,在该定义域空间上构建二元空间分割树(BSPtree),根据预先设定的误差阈值和解析的物理参量函数值对N维定义域空间进行划分并记录下每个维度上的划分点;Step 1: Given an N-dimensional closed domain space of the device physical parameter function, construct a binary space partition tree (BSPtree) on the domain space, and pair N Divide the dimension domain space and record the division points on each dimension;

步骤二:精细化步骤一得到的划分空间,设N个维度上划分点的数目分别为n1,n2,…,nN,由步骤一记录的划分点构建规模为(n1-1)×(n2-1)的的N维非均匀网格(non-uniform grid),网格的每一个单元(Cell)代表精细化后的划分空间;Step 2: refine the division space obtained in step 1, set the number of division points in N dimensions as n 1 , n 2 ,..., n N , and the scale of division points recorded in step 1 is (n 1 -1) ×(n 2 -1) N-dimensional non-uniform grid (non-uniform grid), each cell (Cell) of the grid represents the refined division space;

步骤三:为N维非均匀网格在N个维度上的下标分别构建N个查找表(一维数组),每一个查找表对应一个间隔均匀的标尺(间隔远小于所有网格单元在该维度上的最小边界长度),查找表项数由预先设定的粒度值决定;Step 3: Construct N lookup tables (one-dimensional arrays) for the subscripts of N-dimensional non-uniform grids in N dimensions, and each lookup table corresponds to a uniformly spaced scale (the interval is much smaller than that of all grid cells in this The minimum boundary length on the dimension), the number of lookup table items is determined by the preset granularity value;

步骤四:对N维定义域空间中的一个坐标点进行估值时,首先将该坐标在N个维度上的分量映射到步骤三构建的N个查找表中,得到包含该坐标点的划分空间在N个维度上的网格下标,再由网格下标访问到相应网格单元,最终在该网格单元中对待求坐标点进行三次插值得到其函数值以及其在N个维度上的近似偏微分值。Step 4: When evaluating a coordinate point in the N-dimensional domain space, first map the components of the coordinate in N dimensions to the N lookup tables constructed in Step 3, and obtain the divided space containing the coordinate point The grid subscripts in N dimensions, and then access the corresponding grid unit by the grid subscripts, and finally perform cubic interpolation on the coordinate point in the grid unit to obtain its function value and its approximate deviation in N dimensions differential value.

本发明中,步骤一,二元空间分割树中的每一个结点(BSP node)与N维定义域空间中的每一个划分区域(凸空间)一一对应,此数据结构用于存储相应划分区域的相关顶点的解析函数值、边界以及个凸边中点的近似偏微分值(有限差分近似)。In the present invention, in step 1, each node (BSP node) in the binary space partition tree is in one-to-one correspondence with each division area (convex space) in the N-dimensional domain space, and this data structure is used to store the corresponding division The values of the analytic functions for the associated vertices of the region, the boundaries, and the approximate partial differential values for the midpoints of the convex edges (finite difference approximation).

本发明步骤二中,N维网格的单元与二元空间分割树的结点具有相同的数据结构;对于精细化前后边界不变的划分区域所对应的网格单元可直接复制二元分割树中的相应结点,若边界发生变化,则网格单元中的数据成员需要重新计算。In the second step of the present invention, the unit of the N-dimensional grid has the same data structure as the node of the binary space segmentation tree; the binary segmentation tree can be directly copied for the grid unit corresponding to the division area whose boundary remains unchanged before and after refinement For the corresponding nodes in , if the boundaries change, the data members in the grid cells need to be recalculated.

本发明步骤三中,对于在各维度上网格单元边界没有和其对应标尺“刻度”对齐的地方,可移动网格边界来对齐标尺以保证在网格边界附近的正确查找访问。In Step 3 of the present invention, for places where the grid unit boundary is not aligned with its corresponding scale "scale" in each dimension, the grid boundary can be moved to align the scale to ensure correct search and access near the grid boundary.

本发明步骤四中,查找表的下标是坐标分量的哈希映射,该哈希函数由标尺间隔简单确定,将给定的坐标分量带入该哈希函数便可得到查找表下标,该下标对应的查找表项的值即是相应维度上的网格下标。In step 4 of the present invention, the subscript of the lookup table is the hash map of the coordinate components, the hash function is simply determined by the scale interval, and the given coordinate component is brought into the hash function to obtain the lookup table subscript, the The value of the lookup table item corresponding to the subscript is the grid subscript on the corresponding dimension.

本发明中,当给定的N维物理参量函数在某一个维度上变化较慢时,可以固定函数在该该维度上的坐标分量,首先由上述的步骤一、二构建N-1维的非均匀网格,然后在该维度上取稀疏且均匀的坐标间隔以维表格为模板构建N维表格,查找和估值方法与上述步骤的后续步骤相同。In the present invention, when the given N-dimensional physical parameter function changes slowly on a certain dimension, the coordinate component of the function on this dimension can be fixed, and the N-1-dimensional non- Uniform grid, and then take sparse and uniform coordinate intervals in this dimension to Dimensional tables are used as templates to construct N-dimensional tables, and the search and evaluation methods are the same as the subsequent steps of the above steps.

本方法可以降低表格的存储开销,并提高表格在该维度上的查找速度。This method can reduce the storage overhead of the table and increase the search speed of the table in this dimension.

为了阐述的简明性,下面将基于二维表格进一步描述本发明所提出的方法,更高维度的表格构建方法可以类似推演。For simplicity of explanation, the method proposed by the present invention will be further described below based on a two-dimensional table, and a higher-dimensional table construction method can be deduced similarly.

本发明提出的晶体管精确表格模型的建模和估值方法流程可以用图1来表示,以为二元函数f(x0,x1)表示的物理参量构建表格为例(二维划分空间中的网格单元如图2所示),其步骤如下:The flow chart of the modeling and estimation method for the precise tabular model of transistors proposed by the present invention can be represented by Fig. 1, and the physical parameters represented by the binary function f(x 0 , x 1 ) are used as an example to construct a table (in two-dimensionally divided space Grid unit shown in Figure 2), the steps are as follows:

步骤1:在该二元函数定义域空间上构建BSP树,根据预先设定的误差阈值和解析模型中获得的物理参量函数值对二维定义域空间进行划分并分别记录下x0、x1维度上的划分点;Step 1: Build a BSP tree on the binary function domain space, divide the two-dimensional domain space according to the preset error threshold and the physical parameter function values obtained in the analytical model, and record x 0 and x 1 respectively The dividing point on the dimension;

沿用TBMA中二元空间分割树的自适应划分规则,从树的根结点(表示整个定义域空间)开始,根据其对应网格单元的误差评判准则确定的划分维度,递归地将树结点对应的空间沿该维度上凸边中点等分为两个子空间分别对应新生成的两个子节点,当网格单元的粒度满足误差准则不需要进行划分时,该网格单元对应的结点成为叶子节点;Following the self-adaptive division rules of the binary space segmentation tree in TBMA, starting from the root node of the tree (representing the entire definition domain space), according to the division dimension determined by the error evaluation criterion of the corresponding grid unit, recursively divide the tree nodes The corresponding space is equally divided into two subspaces along the midpoint of the convex edge on this dimension, corresponding to the two newly generated child nodes. When the granularity of the grid unit meets the error criterion and no division is required, the node corresponding to the grid unit becomes leaf node;

二维网格单元的误差评判准则是:The error evaluation criteria for two-dimensional grid cells are:

①由公式(1)(2)分别计算网格单元x0、x1维度凸边中点线性插值得到的值与解析模型中获得的值差的绝对值在相应维度维度上的平均值diffx0、diffx1分别作为x0、x1维度上的误差量度值,①Use the formula (1)(2) to calculate the average value diffx 0 of the absolute value of the difference between the value obtained by the linear interpolation of the midpoint of the convex edge of the grid unit x 0 and x 1 and the value obtained in the analytical model in the corresponding dimension , diffx 1 are used as the error measurement values on the dimensions x 0 and x 1 respectively,

②当max(diffx0,diffx1)>error(xi)(i∈{0,1})成立时停止划分,否则沿xi所在维度划分该网格,xi是最大误差量度值所对应的维度,error_tol(xi)由如下公式表示。②When max(diffx 0 ,diffx 1 )>error( xi )(i∈{0,1}) is established, stop dividing, otherwise divide the grid along the dimension where xi is located, and xi is the value corresponding to the maximum error measurement The dimension of error_tol( xi ) is expressed by the following formula.

基于此划分准则,函数非线性越强的区域将由粒度越小的划分空间近似,而对于函数近似线性的区域,粒度较大的划分空间便足以满足精度要求;Based on this division criterion, the region with stronger nonlinear function will be approximated by the smaller granularity partition space, while for the function approximate linear region, the larger granularity partition space is sufficient to meet the accuracy requirements;

步骤2:精细化步骤1得到的划分空间,设x0、x1维度上划分点的数目分别为n1、n2,由步骤1记录的划分点构建规模为(n1-1)×(n2-1)的二维非均匀网格;Step 2: Refining the division space obtained in step 1, assuming that the number of division points on dimensions x 0 and x 1 are n 1 and n 2 respectively, the construction scale of division points recorded in step 1 is (n 1 -1)×( n 2 -1) two-dimensional non-uniform grid;

本发明中,精细化网格划分空间是为了保证插值的单调性和连续性,该两个性质对牛顿法的收敛性和稳健性具有至关重要的影响;In the present invention, the fine grid division space is to ensure the monotonicity and continuity of the interpolation, and these two properties have a crucial influence on the convergence and robustness of the Newton method;

本发明中,图3给出了一个典型的在二维函数定义域上精细化BSP树确立的划分空间的过程,精细化划分前,函数在点(0.5,0.5)插值时其结果将受到所使用网格单元(A或者B)的影响,若使用网格单元A,函数插值将是:In the present invention, Fig. 3 has provided a typical process of dividing the space established by refining the BSP tree on the two-dimensional function domain. Before the refining division, the result of the function will be affected by the interpolation at point (0.5,0.5). The effect of using grid unit (A or B), if grid unit A is used, the function interpolates will be:

而使用网格单元B,函数插值将是:Instead, using grid cell B, the function interpolates will be:

如果由式(4)(5)得出的函数插值是不同的,将导致函数在网格单元A、B边界两侧插值的不连续性,而精细化后的网格(如图3的下半部分所示)由于打通了边界交叉点(0.5,0.5),使得相邻的网格单元间具有相同的边界,在(0.5,0.5)处插值结果始终满足(6)式,因而可以保证在边界两侧表格插值的连续性;与文献所不同的是,新产生的网格单元(B、D、E、F)的顶点(0.75,0.5)使用f(0.75,0.5)而非线性插值作为其函数值,天然可以保证表格线性插值和二元函数f(x0,x1)具有相同的单调性;If the function interpolation obtained by formula (4) (5) are different, which will lead to the discontinuity of interpolation of the function on both sides of the boundary of grid cells A and B, and the refined grid (as shown in the lower part of Fig. 3) has opened up the boundary intersection (0.5, 0.5), so that adjacent grid cells have the same boundary, interpolation results at (0.5,0.5) Formula (6) is always satisfied, so the continuity of table interpolation on both sides of the boundary can be guaranteed; the difference from the literature is that the vertices (0.75, 0.5) of the newly generated grid cells (B, D, E, F) use f(0.75,0.5) instead of linear interpolation As its function value, it can naturally guarantee that the linear interpolation of the table and the binary function f(x 0 ,x 1 ) have the same monotonicity;

步骤3:为二维非均匀网格在x0、x1维度上的下标分别构建2个辅助查找表array_1d、array_2d,每一个查找表对应一个间隔(gapi i=0,1)均匀的标尺,查找表项数由预先设定的粒度值决定;Step 3: Construct two auxiliary lookup tables array_1d and array_2d respectively for the subscripts of the two-dimensional non-uniform grid on the x 0 and x 1 dimensions, and each lookup table corresponds to a uniform interval (gap i i=0,1) Scale, the number of lookup table items is determined by the preset granularity value;

本发明中,图4是为图3中网格建立辅助查找表的一个示例,对于规模较大的网格,标尺可能有不能与边界对齐的位置,可以移动网格单元边界来对齐标尺,只要标尺间隔足够小,边界的移动将会非常微小,对划分空间的影响可以忽略不计;In the present invention, Fig. 4 is an example of setting up an auxiliary look-up table for the grid in Fig. 3. For larger grids, the scale may have a position that cannot be aligned with the boundary, and the grid cell boundary can be moved to align the scale. If the scale interval is small enough, the movement of the boundary will be very small, and the impact on the division space will be negligible;

步骤4:设二维定义域空间在x0、x1维度上的下边界为b0、b1,在对定义域空间中的一个坐标点(x0,x1)进行估值时,首先将该坐标在x0、x1维度上的分量由公式(7)映射为上述步骤3构建的两个辅助查找表中的下标,得到包含该坐标点的划分空间在x0、x1维度上的网格下标(indexi i=0,1),再由(array_1d[index0],array_2d[index1])访问到相应网格单元,最终在该网格单元中对待求坐标点由式(8)进行双三次插值得到其函数值以及其在x0、x1维度上的近似偏微分值,Step 4: Let the lower boundaries of the two-dimensional domain space on the dimensions x 0 and x 1 be b 0 and b 1 , when evaluating a coordinate point (x 0 , x 1 ) in the domain space, first Map the components of the coordinates in the x 0 and x 1 dimensions from the formula (7) to the subscripts in the two auxiliary lookup tables constructed in the above step 3, and obtain the division space containing the coordinate point in the x 0 and x 1 dimensions The grid subscript on (index i i=0,1), and then access the corresponding grid unit by (array_1d[index 0 ], array_2d[index 1 ]), and finally the coordinate point in the grid unit is obtained by the formula (8) Perform bicubic interpolation to obtain its function value and its approximate partial differential value on the x 0 and x 1 dimensions,

indexi=(xi-bi)/gapi i=0,1 (7)index i =(x i -b i )/gap i i=0,1 (7)

t≡(x0-x00)/(x01-x00),u≡(x1-x10)/(x11-x10)t≡(x 0 -x 00 )/(x 01 -x 00 ), u≡(x 1 -x 10 )/(x 11 -x 10 )

双三次插值中系数cij通过拟合网格单元顶点上的函数值、一阶导数值及二阶混合导数值得到,这些导数值可由有限差分近似给出,随后将计算出的插值系数存储在网格单元中;The coefficient c ij in bicubic interpolation is obtained by fitting the function value on the vertices of the grid unit, the first order derivative value and the second order mixed derivative value. These derivative values can be approximated by finite differences, and then the calculated interpolation coefficients are stored in in the grid unit;

本发明中,非均匀网格上的有限差分近似不能采用简单的中心差分方式,而应采用式(9)给出的三点近似法,其中xi、xi-1、xi+1分别是非均匀网格在给定维度上三个相邻的点,对于二阶混合导数的计算,则需要2×2二维网格上的九个相邻点(如图5所示),先在x1维度上由式(8)分别求出点①、②、③在该维度上的一阶导数值,再将这三个一阶导数值作为x0维度上的三个函数值带入式(8)求出待插值点的二阶混合导数值,In the present invention, the finite difference approximation on the non-uniform grid cannot use the simple central difference method, but the three-point approximation method given by formula (9) should be used, where x i , x i-1 , and x i+1 are respectively is the three adjacent points on the given dimension of the non-uniform grid, and for the calculation of the second-order mixed derivative, nine adjacent points on the 2×2 two-dimensional grid are required (as shown in Figure 5), first in Calculate the first-order derivative values of points ①, ②, and ③ on the dimension x 1 by formula (8), and then bring these three first-order derivative values into the formula as the three function values on the x 0 dimension (8) Calculate the second-order mixed derivative value of the point to be interpolated,

h1≡xi-xi-1,h2≡xi+1-xi h 1 ≡x i -x i-1 , h 2 ≡x i+1 -x i

文献中精细化树状结构模型中的插值虽能保证函数值的连续性,但无法保证导数值的连续性;而本发明中将树状结构转化为非均匀网格使得三次插值变得可行,三次插值可以保证导数插值的连续性和函数值的平滑性,因而,本方法使得牛顿迭代求解非线性方程的稳健性得以改进。Although the interpolation in the refined tree structure model in the literature can guarantee the continuity of the function value, it cannot guarantee the continuity of the derivative value; and in the present invention, the transformation of the tree structure into a non-uniform grid makes the cubic interpolation feasible, The cubic interpolation can guarantee the continuity of the derivative interpolation and the smoothness of the function value. Therefore, this method improves the robustness of Newton's iterative solution to nonlinear equations.

与现有技术比较,本发明的贡献在于:Compared with prior art, the contribution of the present invention is:

本发明采用辅助查找表和简单哈希映射实现了对基于BSP树构建的精细化非均匀网格不受划分规模限制的常数时间复杂度查找方式。本发明采用了三次Hermite样条插值方法,不仅可以保证电流、电荷一阶导数的连续性,并且其插值的精度较高、平滑性好,达到相同精度所需的表格规模比在同样的表格结构中使用线性插值的方法小,因而可以抵消由树状结构转换为网格带来的额外存储开销,与三次自然样条插值相比,Hermite样条插值需要额外提供网格点上的导数值信息,插值精度受所提供的导数值的精度影响,而函数插值平滑性则与导数值精度无关,同时由于其仅需提供待插点所在网格单元附近的函数信息,Hermite样条插值是一个局部的插值方法;这一性质使得其推广到多维空间中插值时具有更高的计算效率。如果预先计算好插值系数,并结合上文中的快速网格单元查找方法,其在任意多维空间中插值仅为常数时间复杂度而与网格规模无关。而自然样条插值是全局插值方法,求解插值系数的复杂度较高。在M×N的二维网格中上进行自然样条插值则需M+1次一维自然样条插值,计算复杂度过高。The invention adopts an auxiliary lookup table and a simple hash map to realize a constant time complexity lookup mode that is not limited by the division scale for the refined non-uniform grid constructed based on the BSP tree. The present invention adopts the three-time Hermite spline interpolation method, which not only can ensure the continuity of the current and the first-order derivative of the charge, but also has high interpolation precision and good smoothness, and the scale of the table required to achieve the same precision is larger than that of the same table structure The method of using linear interpolation in the method is small, so it can offset the additional storage overhead brought by the conversion from tree structure to grid. Compared with cubic natural spline interpolation, Hermite spline interpolation needs to provide additional derivative value information on grid points , the interpolation accuracy is affected by the accuracy of the derivative value provided, while the smoothness of function interpolation has nothing to do with the accuracy of the derivative value. At the same time, because it only needs to provide the function information near the grid cell where the point to be interpolated is located, Hermite spline interpolation is a local The interpolation method; this property makes it more computationally efficient when it is extended to interpolation in multi-dimensional space. If the interpolation coefficients are pre-calculated and combined with the above fast grid cell search method, the interpolation in any multi-dimensional space has only constant time complexity and has nothing to do with the grid size. Natural spline interpolation is a global interpolation method, and the complexity of solving interpolation coefficients is relatively high. To perform natural spline interpolation on an M×N two-dimensional grid requires M+1 times of one-dimensional natural spline interpolation, and the computational complexity is too high.

本方法继承了基于树状模型近似方法自适应划分的优势,解决了当前基于树状结构的非均匀网格模型中单元(Cell)查找速度慢的问题。经实验结果表明该方法可显著加速仿真过程中晶体管模型计算过程,以可接受的内存需求有效缩短电路仿真中瞬态分析的时间并获得较高的精度。This method inherits the advantages of self-adaptive division based on the tree-like model approximation method, and solves the problem of slow cell (Cell) search speed in the current tree-like structure-based non-uniform grid model. The experimental results show that this method can significantly accelerate the calculation process of the transistor model in the simulation process, effectively shorten the time of transient analysis in circuit simulation with acceptable memory requirements, and obtain higher accuracy.

附图说明Description of drawings

图1是晶体管精确表格查找模型的建模和估值方法流程图。Figure 1 is a flow chart of the modeling and estimation method for the exact table lookup model of transistors.

图2是二元函数f(x0,x1)在二维划分空间中的网格单元示意图。Fig. 2 is a schematic diagram of a grid unit of a binary function f(x 0 , x 1 ) in a two-dimensional partition space.

图3是一个典型的在二维函数定义域上精细化BSP树所确立的划分空间的过程。Figure 3 is a typical process of refining the partition space established by the BSP tree on the two-dimensional function domain.

图4是为二维划分空间中的非均匀网格建立辅助查找表的示意图。Fig. 4 is a schematic diagram of establishing an auxiliary look-up table for a non-uniform grid in a two-dimensional partition space.

图5是在二维划分空间中的非均匀网格上二阶混合导数的近似方案。Figure 5 is an approximation scheme for second-order mixed derivatives on a non-uniform grid in a two-dimensional partitioned space.

图6和图7分别是漏源电导曲线和跨导曲线。Figure 6 and Figure 7 are the drain-source conductance curve and transconductance curve respectively.

具体实施方式Detailed ways

实施例1Example 1

基于本发明的方法,本实施例为BSIM3构建了近似表格模型,分别为直流电流Ids、Isub构建三维表格来刻画晶体管的I-V特性;为本征电荷QG、QB、QD构建三维表格来刻画晶体管Q-V特性(本发明中采用准静态近似(QSA)来构建电荷模型,参考文献(17)(18)表明QSA足以满足大多数实际应用中的需求),模型其余部分包括源漏结二极管电流、电容、电荷以及非本征电荷均由解析公式直接计算,采用解析的寄生二极管模型使得仅需为电路中几何尺寸不同的晶体管构建独立的表格模型,无需因源漏结面积和周长的不同而构建额外的表格,可以有效减少电路仿真(特别是电路后仿真)中构建的表格数;Based on the method of the present invention, this embodiment constructs an approximate table model for BSIM3, respectively constructing three-dimensional tables for DC current I ds and I sub to describe the IV characteristics of transistors; constructing three-dimensional tables for intrinsic charges Q G , Q B , and Q D The table describes the transistor QV characteristics (the quasi-static approximation (QSA) is used to construct the charge model in the present invention, and references (17) (18) show that QSA is sufficient to meet the needs of most practical applications), and the rest of the model includes the source-drain junction Diode current, capacitance, charge, and extrinsic charge are all directly calculated by analytical formulas. Using the analytical parasitic diode model makes it only necessary to build an independent tabular model for transistors with different geometric sizes in the circuit, without the need for source-drain junction area and circumference. The construction of additional tables can effectively reduce the number of tables constructed in circuit simulation (especially post-circuit simulation);

由于漏源电流Ids在亚阈区的指数行为,需要为它构建的三维表格的规模通常较大,因此有必要进一步压缩其存储开销,Ids的值依赖于晶体管四个端口的差值,即栅源电压Vgs、漏源电压Vds、衬底偏置电压Vbs,其中衬底偏压主要影响晶体管的阈值电压Vth,并注意到Ids主要受Vgs-Vth的影响而非这里两个变量各自独立的影响,参考文献(11)指出可由Ids(Vgst,Vds,Vbs)代替Ids(Vgs,Vds,Vbs)来构建三维表格,其中Vgst=Vgs-Vth(Vbs,Vds),并证明在这种转化下Ids在Vbs维度上的变化远小于其它两个维度,基于对搜索速度和插值效率的考虑,不同于对比文献(11)构建多个二维表格的方法,本发明首先基于Ids(Vgst,Vds,Vbs=0)由图1所示的步骤一、二构建二维的非均匀网格,然后在Vbs维度上取均匀的间隔以该二维网格确立的划分粒度为模板构建三维表格Ids(Vgs,Vds,Vbs),根据前述原理,其在Vbs维度上所需的网格点数可以较其它两个维度稀疏,另外还需构建一个对阈值电压进行估值的辅助二维表格Vth(Vbs,Vds),此表格的存储规模通常在几十个网格点左右即可对阈值电压进行精确估值,因而基于这种方式,可以有效减少该三维网格Ids的存储开销。这种表格规模压缩方式也同样适用于电荷表格的简化;Due to the exponential behavior of the drain-source current I ds in the subthreshold region, the size of the three-dimensional table that needs to be constructed for it is usually large, so it is necessary to further compress its storage overhead. The value of I ds depends on the difference between the four ports of the transistor, That is, the gate-source voltage V gs , the drain-source voltage V ds , and the substrate bias voltage V bs , where the substrate bias mainly affects the threshold voltage V th of the transistor, and it is noted that I ds is mainly affected by V gs -V th In addition to the independent influence of the two variables here, reference (11) pointed out that I ds (V gst , V ds , V bs ) can be used instead of I ds (V gs , V ds , V bs ) to construct a three-dimensional table, where V gst =V gs -V th (V bs , V ds ), and prove that under this conversion, the change of I ds in the V bs dimension is much smaller than the other two dimensions, based on the consideration of search speed and interpolation efficiency, it is different from the comparison Document (11) constructs the method for a plurality of two-dimensional tables, and the present invention is first based on I ds (V gst , V ds , V bs =0) by steps one and two shown in Figure 1 to construct a two-dimensional non-uniform grid, Then take a uniform interval on the V bs dimension and use the division granularity established by the two-dimensional grid as a template to construct a three-dimensional table I ds (V gs , V ds , V bs ). According to the aforementioned principles, it requires The number of grid points can be sparser than the other two dimensions. In addition, it is necessary to construct an auxiliary two-dimensional table V th (V bs , V ds ) for estimating the threshold voltage. The storage scale of this table is usually dozens of grids The threshold voltage can be accurately estimated by a point or so, so based on this method, the storage overhead of the three-dimensional grid I ds can be effectively reduced. This table size compression method is also applicable to the simplification of the charge table;

本实施例中,在稀疏三维表格中插值时,可在待插点所在网格单元中由两次双三次插值(分别对应于网格单元Vbs维度上下边界所对应的偏置)结合Vbs维度上的一次线性插值或者一维三次Hermite样条插值得到所需的电流或电荷值;In this embodiment, when interpolating in a sparse three-dimensional table, two bicubic interpolations (corresponding to the offsets corresponding to the upper and lower boundaries of the dimension of the grid unit V bs respectively) can be combined with V bs in the grid unit where the point to be interpolated is located. One-dimensional linear interpolation or one-dimensional cubic Hermite spline interpolation to obtain the required current or charge value;

为了对各种插值方法进行评估,参考文献[19]中给出了一种可以很好的表征漏源电流在各个工作区域中特征的解析函数,该函数如式(10)所示,为验证本发明方法的正确性并与树状结构模型方法进行比较,采用其作为测试函数来构建二维表格近似模型,取Vth=0.5V、λ=1/100V,并选取0≤VDS≤5V、0≤VGS≤5V作为二维函数定义域空间,In order to evaluate various interpolation methods, an analytical function that can well characterize the characteristics of the drain-source current in each working area is given in reference [19]. The correctness of the method of the present invention is compared with the tree structure model method, and it is used as a test function to construct a two-dimensional table approximation model, V th =0.5V, λ=1/100V, and 0≤V DS ≤5V , 0≤V GS ≤5V as the two-dimensional function domain space,

表1给出了在电压扫描步长5mV下,采用树状结构模型(采用线性插值)和本发明方法(采用双三次插值)为测试函数构建表格近似模型的规模和插值精度,其存储开销的统计规则是基于树状结构模型中每个单元需要4个浮点数存储顶点函数值,本方法每个单元则需16个浮点数存储插值系数,另外它们都还需4个浮点数存储边界信息,表1所示结果显示,在插值精度相当下,本方法表格的存储开销比现有技术的树状结构模型方法约小两倍。Table 1 has provided under voltage scanning step-length 5mV, adopts tree structure model (adopts linear interpolation) and the present invention method (adopts bicubic interpolation) to be the scale and the interpolation precision of test function to build table approximation model, its memory cost The statistical rule is based on the fact that each unit in the tree structure model requires 4 floating-point numbers to store the vertex function value. In this method, each unit needs 16 floating-point numbers to store the interpolation coefficients. In addition, they all need 4 floating-point numbers to store boundary information. The results shown in Table 1 show that, with comparable interpolation accuracy, the table storage cost of this method is about two times smaller than that of the tree structure model method in the prior art.

表1近似模型规模及精度对比Table 1 Approximate model scale and accuracy comparison

本实施例中,为了观察一阶导数的插值情况,在不同电压下分别记录了漏源电导和跨导的近似模型插值计算值和解析计算值,绘出如图6和图7所示的曲线,其中显示了线性插值得到的一阶导数呈阶梯状,是不连续的,而双三次插值得到的一阶导数不仅连续且插值平滑性较好,这是因为双三次插值可以同时保证一阶导数和二阶混合导数的连续性,而插值的连续性和平滑性会对牛顿迭代是否收敛、收敛速度产生重要影响。In this embodiment, in order to observe the interpolation of the first-order derivative, the approximate model interpolation calculation values and analytical calculation values of the drain-source conductance and transconductance were recorded at different voltages, and the curves shown in Figure 6 and Figure 7 were drawn , which shows that the first-order derivative obtained by linear interpolation is stepped and discontinuous, while the first-order derivative obtained by bicubic interpolation is not only continuous but also has better interpolation smoothness, because bicubic interpolation can guarantee the first-order derivative at the same time and the continuity of the second-order mixed derivative, and the continuity and smoothness of the interpolation will have an important impact on whether the Newton iteration converges and the convergence speed.

本实施例中,进一步基于BSIM3实现的表格近似模型已经实现在电路仿真器中,在每一次仿真开始前构建表格,预先计算出网格单元中的插值系数,仿真开始前的表格建立时间通常可以在数秒内完成,相比于电路整体仿真时间可以忽略,对于包含468个晶体管的锁相环电路,平均每个晶体的内存开销约为580KB,可以看出本方法对于复杂的模拟电路其内存消耗是可以接受的;本发明对多个工业级电路(Level49)进行了仿真以验证本方法的仿真效率和精度,对晶体管电流、电荷的计算过程约有3x~4x的加速,而对电路瞬态分析的加速效率则取决于晶体管模型计算的时间消耗在整个仿真中所占的比例;表2给出了三种典型电路的仿真精度和瞬态分析加速效率并同Synopsys公司的FineSim软件进行了比较,其中锁相环的相对误差分别是指稳定电压和锁定频率的误差,而其它两个电路则是基于波形的相对误差;其中FineSim的仿真结果是在spice1仿真精度下使用Model 3(解析模型)和Model 2(近似模型)两种晶体管模型得到的。In this embodiment, the table approximation model further implemented based on BSIM3 has been implemented in the circuit simulator, and the table is constructed before each simulation starts, and the interpolation coefficients in the grid cells are pre-calculated, and the table establishment time before the simulation starts can usually be It can be completed in a few seconds. Compared with the overall simulation time of the circuit, it can be ignored. For a phase-locked loop circuit containing 468 transistors, the average memory overhead of each crystal is about 580KB. It can be seen that this method has a memory consumption for complex analog circuits. It is acceptable; the present invention has simulated a plurality of industrial grade circuits (Level49) to verify the simulation efficiency and precision of this method, and the calculation process of transistor current and charge has about 3x~4x acceleration, and the circuit transient The acceleration efficiency of the analysis depends on the proportion of the time consumption of the transistor model calculation in the entire simulation; Table 2 shows the simulation accuracy and transient analysis acceleration efficiency of three typical circuits and compares them with Synopsys' FineSim software , where the relative error of the phase-locked loop refers to the error of the stable voltage and locked frequency respectively, while the other two circuits are based on the relative error of the waveform; the simulation results of FineSim are based on the simulation accuracy of spice1 using Model 3 (analytic model) and Model 2 (approximate model) two transistor models are obtained.

表2瞬态仿真结果比较Table 2 Comparison of transient simulation results

Claims (7)

1. modeling and the estimation method of a kind of accurate table lookup model of transistor, which is characterized in that it includes step:
Step 1:The N-dimensional closing of a given device physics parameter function defines domain space, and two are built on this definition domain space First space cut tree (BSPtree), according to preset error threshold and the physical parameter functional value of parsing to N-dimensional domain Space is divided and records the division points in each dimension;
Step 2:The division space that refinement step one obtains, if the number of division points is respectively n in N number of dimension1, n2..., nN, it is (n by the division points structure scale of step 1 record1-1)×(n2-1)×…×(nN- 1) N-dimensional non-uniform grid (non-uniform grid), each unit (Cell) of grid represent the division space after fining;
Step 3:N number of look-up table is built respectively for subscript of the N-dimensional non-uniform grid in N number of dimension, each look-up table corresponds to One evenly spaced scale is searched entry number and is determined by preset granularity;
Step 4:When defining the progress valuation of a coordinate points in domain space to N-dimensional, first by the coordinate in N number of dimension Component is mapped in N number of look-up table of step 3 structure, obtains grid of the division space comprising the coordinate points in N number of dimension Subscript, then corresponding grid unit is accessed by grid subscript, it is finally treated in the grid cell and coordinate points is asked to be inserted three times It is worth to its functional value and its approximate partial differential value in N number of dimension.
2. method as described in claim 1, which is characterized in that each in the cut tree of binary space in the step one A node (BSP node) defines each division region in domain space with N-dimensional and corresponds.
3. method as described in claim 1, which is characterized in that in the step two, unit and the binary space of N-dimensional grid The node data structure having the same of cut tree;For the grid list divided corresponding to region that boundary before and after fining is constant Member can directly replicate the corresponding node in binary segmentation tree, if boundary changes, the data member in grid cell needs It recalculates.
4. method as described in claim 1, which is characterized in that in the step three, for the grid cell in each dimension Boundary is aligned scale to ensure in Grid Edge without corresponding to the place that scale " scale " is aligned with it by mobile grid boundary Correct lookup near boundary accesses.
5. method as described in claim 1, which is characterized in that in the step three, the look-up table is one-dimension array; Each described look-up table corresponds to its interval of evenly spaced scale and is much smaller than all grid cells in the dimension Minimum boundary length.
6. method as described in claim 1, which is characterized in that in the step four, the grid subscript in look-up table is to sit The Hash mapping of component is marked, which is simply determined by rod interval, brings given coordinate components into the Hash mapping It can obtain the grid subscript in respective dimensions.
7. method as described in claim 1, which is characterized in that when given N-dimensional physical parameter function is in some dimension When variation is slower, coordinate components of the fixed function in the dimension, in remaining N|1 dimension structure non-uniform grid comprising:It is first First by the step one in claim 1, two structure N|The non-uniform grid of 1 dimension, then takes in the slower dimension of the variation sparse And uniform coordinate interval, with remaining N|1 dimension table lattice are that template builds N-dimensional table, are then searched and valuation side in the dimension Method is identical as the subsequent step in claim 1.
CN201410146475.1A 2014-04-14 2014-04-14 The modeling of the accurate table lookup model of transistor and estimation method Active CN104978447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410146475.1A CN104978447B (en) 2014-04-14 2014-04-14 The modeling of the accurate table lookup model of transistor and estimation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410146475.1A CN104978447B (en) 2014-04-14 2014-04-14 The modeling of the accurate table lookup model of transistor and estimation method

Publications (2)

Publication Number Publication Date
CN104978447A CN104978447A (en) 2015-10-14
CN104978447B true CN104978447B (en) 2018-10-26

Family

ID=54274949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410146475.1A Active CN104978447B (en) 2014-04-14 2014-04-14 The modeling of the accurate table lookup model of transistor and estimation method

Country Status (1)

Country Link
CN (1) CN104978447B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920748B (en) * 2018-05-22 2023-01-06 复旦大学 Nonlinear operation circuit structure with high flexibility and precision
CN109359357A (en) * 2018-09-29 2019-02-19 湖南品腾电子科技有限公司 Based on the gm/ID method of designing integrated circuit tabled look-up and system
CN110807289B (en) * 2020-01-07 2020-12-01 北京唯智佳辰科技发展有限责任公司 Integrated circuit self-adaptive finite element mesh subdivision method based on posterior error estimation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5099149A (en) * 1990-12-19 1992-03-24 At&T Bell Laboratories Programmable integrated circuit
CN101924550A (en) * 2009-06-11 2010-12-22 复旦大学 A look-up table using gain cell eDRAM
CN102147720A (en) * 2011-03-18 2011-08-10 深圳市国微电子股份有限公司 Device and method for realizing operation among multiple input logical terms by using LUT

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5099149A (en) * 1990-12-19 1992-03-24 At&T Bell Laboratories Programmable integrated circuit
CN101924550A (en) * 2009-06-11 2010-12-22 复旦大学 A look-up table using gain cell eDRAM
CN102147720A (en) * 2011-03-18 2011-08-10 深圳市国微电子股份有限公司 Device and method for realizing operation among multiple input logical terms by using LUT

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Efficient Transistor-Level Piecewise-Linear Macromodeling Approach for Model Order Reduction of Nonlinear Circuits;Xiaoda Pan, ET AL.;《Design, Automation & Test in Europe Conference & Exhibition, 2010》;20100429;第1-4页 *
基于模型修正技术的模拟集成电路几何规划优化方法;李亨等;《计算机辅助设计与图形学学报》;20120630;第24卷(第6期);第721-727页 *

Also Published As

Publication number Publication date
CN104978447A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
JP4790816B2 (en) Parallel multirate circuit simulation
US20160048625A1 (en) Using a Barycenter Compact Model for a Circuit Network
US9898566B2 (en) Method for automated assistance to design nonlinear analog circuit with transient solver
EP1810195A2 (en) Novel optimization for circuit design
Miettinen et al. PartMOR: Partitioning-based realizable model-order reduction method for RLC circuits
CN104978447B (en) The modeling of the accurate table lookup model of transistor and estimation method
US20030220779A1 (en) Extracting semiconductor device model parameters
US20120290281A1 (en) Table-lookup-based models for yield analysis acceleration
Dong et al. Improvement of affine iterative closest point algorithm for partial registration
CN104376026B (en) Table lookup method based on grid and multidimensional tree mixed structure
Singh et al. BSIM3v3 to EKV2. 6 Model Parameter Extraction and Optimisation using LM Algorithm on 0.18 μ Technology node
Chai et al. An LU decomposition based direct integral equation solver of linear complexity and higher-order accuracy for large-scale interconnect extraction
Gupta et al. STEAM: Spline-based tables for efficient and accurate device modelling
Li et al. MOS table models for fast and accurate simulation of analog and mixed-signal circuits using efficient oscillation-diminishing interpolations
Liu et al. Accuracy-preserving reduction of sparsified reduced power grids with a multilevel node aggregation scheme
Li et al. Electronic design automation using a unified optimization framework
De Jonghe et al. Efficient analytical macromodeling of large analog circuits by transfer function trajectories
Choi et al. Enhancement and expansion of the neural network-based compact model using a binning method
Song et al. Zonotope-based nonlinear model order reduction for fast performance bound analysis of analog circuits with multiple-interval-valued parameter variations
CN105608237A (en) Rapid waveform prediction method of circuit layout at post-simulation stage
Dai et al. Benchmarking artificial neural network models for design technology co-optimization
Tan A general hierarchical circuit modeling and simulation algorithm
Fang et al. Fast, accurate MOS table model for circuit simulation using an unstructured grid and preserving monotonicity
Statter et al. A novel high-throughput method for table look-up based analog design automation
Rjoub et al. Graph modeling for Static Timing Analysis at transistor level in nano-scale CMOS circuits

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant