[go: up one dir, main page]

CN116467980B - Method for solving parameters of standard unit circuit, electronic equipment and storage medium - Google Patents

Method for solving parameters of standard unit circuit, electronic equipment and storage medium Download PDF

Info

Publication number
CN116467980B
CN116467980B CN202310727158.8A CN202310727158A CN116467980B CN 116467980 B CN116467980 B CN 116467980B CN 202310727158 A CN202310727158 A CN 202310727158A CN 116467980 B CN116467980 B CN 116467980B
Authority
CN
China
Prior art keywords
equivalent circuit
capacitance
standard cell
preset
output
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
CN202310727158.8A
Other languages
Chinese (zh)
Other versions
CN116467980A (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.)
Hangzhou Xingxin Technology Co ltd
Original Assignee
Hangzhou Xingxin Technology Co ltd
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 Hangzhou Xingxin Technology Co ltd filed Critical Hangzhou Xingxin Technology Co ltd
Priority to CN202310727158.8A priority Critical patent/CN116467980B/en
Publication of CN116467980A publication Critical patent/CN116467980A/en
Application granted granted Critical
Publication of CN116467980B publication Critical patent/CN116467980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • G06F30/3315Design verification, e.g. functional simulation or model checking using static timing analysis [STA]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/12Timing analysis or timing optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

本申请涉及一种标准单元电路的参数求解方法、电子设备及存储介质。方法包括确定与标准单元的输出端连接的电阻‑电容电路的等效电路;基于静态时序分析求解等效电路的有效电容,得到标准单元的待修正输出电容;确定与等效电路匹配的预设等效电路;在修正参数库查询预设等效电路对应的修正参数,修正参数根据处理基于静态时序分析确定的预设等效电路的有效电容与基于动态时序分析确定的预设等效电路的有效电容得到;根据修正参数修正待修正输出电容,得到标准单元的输出电容。本申请提供的方案基于静态、动态时序分析预先确定的修正参数,对基于静态时序分析确定的标准单元待修正输出电容进行修正,能够提高标准单元输出电容的求解速度及求解精度。

The application relates to a method for solving parameters of a standard unit circuit, electronic equipment and a storage medium. The method comprises determining the equivalent circuit of a resistor-capacitor circuit connected to the output terminal of the standard cell; solving the effective capacitance of the equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of the standard cell; determining a preset that matches the equivalent circuit Equivalent circuit: Query the correction parameters corresponding to the preset equivalent circuit in the correction parameter library, and the correction parameters are based on the effective capacitance of the preset equivalent circuit determined based on static timing analysis and the effective capacitance of the preset equivalent circuit determined based on dynamic timing analysis. The effective capacitance is obtained; the output capacitance to be corrected is corrected according to the correction parameter, and the output capacitance of the standard unit is obtained. The solution provided by this application is based on the pre-determined correction parameters of static and dynamic timing analysis, and corrects the output capacitance of the standard cell to be corrected determined based on the static timing analysis, which can improve the solution speed and accuracy of the output capacitance of the standard cell.

Description

标准单元电路的参数求解方法、电子设备及存储介质Method for solving parameters of standard unit circuit, electronic equipment and storage medium

技术领域technical field

本申请属于电路技术领域,尤其涉及一种标准单元电路的参数求解方法、电子设备及存储介质。The application belongs to the field of circuit technology, and in particular relates to a method for solving parameters of a standard unit circuit, electronic equipment and a storage medium.

背景技术Background technique

随着芯片集成度的提高,各种标准单元如反相器、与门等,在芯片中的应用越来越广泛。With the improvement of chip integration, various standard units such as inverters and AND gates are more and more widely used in chips.

对标准单元而言,输出电容是确定标准单元延迟的关键指标,求解标准单元输出电容的速度和精度直接影响着求解标准单元延迟的速度和精度。目前求解标准单元输出电容的方式有两种:1)静态时序分析;2)动态时序分析。其中,基于动态时序分析能够求解得到精确的标准单元输出电容,但求解标准单元输出电容的过程耗时较长;基于静态时序分析求解标准单元输出电容的过程耗时较短,但求解得到的标准单元输出电容的精度不高。For a standard cell, the output capacitance is a key indicator for determining the delay of the standard cell, and the speed and accuracy of solving the output capacitance of the standard cell directly affect the speed and accuracy of solving the delay of the standard cell. At present, there are two ways to solve the output capacitance of standard cells: 1) Static timing analysis; 2) Dynamic timing analysis. Among them, the accurate standard cell output capacitance can be obtained based on dynamic timing analysis, but the process of solving the standard cell output capacitance takes a long time; the process of solving the standard cell output capacitance based on static timing analysis is relatively short, but the obtained standard cell The accuracy of the cell output capacitance is not high.

因此,如何提高标准单元电路的参数求解速度和求解精度,成了亟待解决的问题。Therefore, how to improve the parameter solution speed and solution accuracy of the standard cell circuit has become an urgent problem to be solved.

发明内容Contents of the invention

针对上述技术问题,本申请提供一种标准单元电路的参数求解方法、电子设备及计算机存储介质,能够提高标准单元电路的参数求解速度及求解精度。In view of the above technical problems, the present application provides a parameter solving method of a standard unit circuit, an electronic device and a computer storage medium, which can improve the parameter solving speed and accuracy of the standard unit circuit.

本申请提供了一种标准单元电路的求解方法,包括:This application provides a solution method for a standard unit circuit, including:

基于预设电路模型,确定与标准单元的输出端连接的电阻-电容电路的等效电路;determining an equivalent circuit of a resistor-capacitor circuit connected to an output terminal of the standard cell based on a preset circuit model;

基于静态时序分析求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容;Solving the effective capacitance of the equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of the standard cell;

确定与所述等效电路匹配的预设等效电路;determining a preset equivalent circuit matching the equivalent circuit;

在修正参数库查询所述预设等效电路对应的修正参数,其中,所述修正参数库包括多个预设等效电路与多个修正参数之间的对应关系,所述修正参数是在将所述预设等效电路设定为标准单元的输出时,根据基于静态时序分析确定的所述预设等效电路的第一有效电容与基于动态时序分析确定的所述预设等效电路的第二有效电容进行处理得到的;Query the correction parameters corresponding to the preset equivalent circuit in the correction parameter library, wherein the correction parameter library includes the correspondence between multiple preset equivalent circuits and multiple correction parameters, and the correction parameters are in the When the preset equivalent circuit is set as the output of the standard cell, according to the first effective capacitance of the preset equivalent circuit determined based on static timing analysis and the first effective capacitance of the preset equivalent circuit determined based on dynamic timing analysis obtained by processing the second effective capacitance;

根据所述修正参数对所述待修正输出电容进行修正,以求解得到所述标准单元的输出电容。The output capacitance to be corrected is corrected according to the correction parameter, so as to obtain the output capacitance of the standard cell.

在一实施方式中,所述有效电容使所述标准单元产生的延迟与所述等效电路使所述标准单元产生的延迟相同。In one embodiment, the effective capacitor causes the standard cell to have the same delay as the equivalent circuit causes the standard cell to delay.

在一实施方式中,所述预设等效电路与所述等效电路采用相同的预设电路模型。In an embodiment, the preset equivalent circuit and the equivalent circuit adopt the same preset circuit model.

在一实施方式中,所述基于静态时序分析求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容,包括:In one embodiment, the calculating the effective capacitance of the equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of the standard cell includes:

根据所述等效电路的第一电容值及所述标准单元的输入转换时间,查询非线性延迟模型库,确定所述标准单元的输出转换时间,其中,所述第一电容值表征所述等效电路的整体电容;基于所述静态时序分析,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容,其中,所述第二电容值为所述等效电路中的各电容的电容值。According to the first capacitance value of the equivalent circuit and the input transition time of the standard cell, query the nonlinear delay model library to determine the output transition time of the standard cell, wherein the first capacitance value represents the equal The overall capacitance of the effective circuit; based on the static timing analysis, according to the output transition time of the standard cell, the resistance value of the equivalent circuit and the second capacitance value, the effective capacitance of the equivalent circuit is solved to obtain the obtained The to-be-corrected output capacitance of the standard unit, wherein the second capacitance value is the capacitance value of each capacitance in the equivalent circuit.

在一实施方式中,所述基于所述静态时序分析,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容的步骤,包括:In one embodiment, based on the static timing analysis, the effective capacitance of the equivalent circuit is calculated according to the output conversion time of the standard cell, the resistance value of the equivalent circuit, and the second capacitance value, so as to The step of obtaining the output capacitance to be corrected of the standard unit includes:

根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,确定所述等效电路的有效电容;判断所述有效电容是否收敛;若不收敛,则将所述有效电容作为所述等效电路的第一电容值,返回所述根据所述等效电路的第一电容值及所述标准单元的输入转换时间,查询非线性延迟模型库,确定所述标准单元的输出转换时间的步骤;若收敛,则将所述有效电容作为所述标准单元的待修正输出电容。According to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value, determine the effective capacitance of the equivalent circuit; judge whether the effective capacitance converges; if not converge, then the The effective capacitance is used as the first capacitance value of the equivalent circuit, and the input conversion time according to the first capacitance value of the equivalent circuit and the standard unit is returned, and the nonlinear delay model library is queried to determine the standard unit The step of the output conversion time; if it converges, the effective capacitance is used as the output capacitance to be corrected of the standard unit.

在一实施方式中,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,包括:In one embodiment, the effective capacitance of the equivalent circuit is calculated according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value, including:

将所述标准单元的驱动电压的时域表达式转换为频域表达式;根据所述驱动电压的频域表达式及所述等效电路的电阻值、第二电容值,确定所述标准单元的驱动电流的频域表达式,并将所述驱动电流的频域表达式转换为时域表达式,所述驱动电流的时域表达式用于表征所述标准单元的输出转换时间、工作电压、驱动时间、所述等效电路的电阻值及第二电容值与所述驱动电流之间的关系;获取求解所述标准单元的延迟选定的目标驱动电压,以及所述目标驱动电压对应的目标驱动时间;根据所述目标驱动时间及所述目标驱动电压对所述驱动电流的时域表达式进行处理,使所述标准单元的驱动电流在所述目标驱动时间下对电路的充电电量与所述等效电路的有效电容在所述目标驱动电压下对电路的充电电量相等;对处理得到的表达式进行变换,以根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解得到所述等效电路的有效电容。converting the time-domain expression of the driving voltage of the standard unit into a frequency-domain expression; determining the standard unit according to the frequency-domain expression of the driving voltage and the resistance value and the second capacitance value of the equivalent circuit The frequency domain expression of the driving current, and the frequency domain expression of the driving current is converted into a time domain expression, and the time domain expression of the driving current is used to characterize the output transition time and operating voltage of the standard unit , driving time, the resistance value of the equivalent circuit, the relationship between the second capacitance value and the driving current; obtaining the target driving voltage selected for solving the delay of the standard cell, and the corresponding target driving voltage Target driving time; according to the target driving time and the target driving voltage, the time domain expression of the driving current is processed, so that the driving current of the standard cell can charge the circuit with the charging power of the circuit under the target driving time The effective capacitance of the equivalent circuit is equal to the charging power of the circuit under the target driving voltage; the expression obtained from the processing is transformed so that the output conversion time of the standard unit and the resistance value of the equivalent circuit and the second capacitance value to obtain the effective capacitance of the equivalent circuit.

在一实施方式中,建立所述修正参数库的步骤,包括:In one embodiment, the step of establishing the correction parameter library includes:

构建预设数量的预设等效电路;对各预设等效电路进行所述静态时序分析,确定所述各预设等效电路的第一有效电容;对所述各预设等效电路进行所述动态时序分析,确定所述各预设等效电路的第二有效电容;确定所述各预设等效电路的第一有效电容与第二有效电容之间的偏差;根据所述偏差确定修正参数,并将所述修正参数与对应的预设等效电路关联,以建立所述修正参数库。Constructing a preset number of preset equivalent circuits; performing the static timing analysis on each preset equivalent circuit to determine the first effective capacitance of each preset equivalent circuit; performing a static sequence analysis on each preset equivalent circuit The dynamic timing analysis is to determine the second effective capacitance of each preset equivalent circuit; determine the deviation between the first effective capacitance and the second effective capacitance of each preset equivalent circuit; determine according to the deviation correcting parameters, and associating the correcting parameters with corresponding preset equivalent circuits, so as to establish the correcting parameter library.

在一实施方式中,所述对各预设等效电路进行所述静态时序分析,确定所述各预设等效电路的第一有效电容的步骤,包括:In one embodiment, the step of performing the static timing analysis on each preset equivalent circuit and determining the first effective capacitance of each preset equivalent circuit includes:

基于所述静态时序分析,根据所述各预设等效电路中的电阻值、电容值及所述各预设等效电路对应的所述标准单元的输出转换时间,确定所述各预设等效电路的第一有效电容。Based on the static timing analysis, according to the resistance value and capacitance value in each preset equivalent circuit and the output conversion time of the standard unit corresponding to each preset equivalent circuit, determine the preset values The first effective capacitance of the effective circuit.

在一实施方式中,确定与所述等效电路匹配的预设等效电路,包括:将所述等效电路的电阻值及电容值与所述预设等效电路的电阻值及电容值进行比对;根据比对结果,确定与所述等效电路匹配的预设等效电路。In one embodiment, determining a preset equivalent circuit matching the equivalent circuit includes: comparing the resistance value and capacitance value of the equivalent circuit with the resistance value and capacitance value of the preset equivalent circuit Comparing: determining a preset equivalent circuit matching the equivalent circuit according to the comparison result.

在一实施方式中,所述根据所述修正参数对所述待修正输出电容进行修正,以求解得到所述标准单元的输出电容之后,所述方法还包括:根据所述标准单元的输入转换时间及所述标准单元的输出电容,查询非线性延迟模型库,以求解得到所述标准单元的延迟。In one embodiment, after the output capacitance to be corrected is corrected according to the correction parameter to obtain the output capacitance of the standard cell, the method further includes: according to the input conversion time of the standard cell and the output capacitance of the standard cell, and query the nonlinear delay model library to obtain the delay of the standard cell.

本申请还提供了一种电子设备,所述电子设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述标准单元电路的参数求解方法的步骤。The present application also provides an electronic device, the electronic device includes a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program, the The steps of the parameter solving method of the above-mentioned standard cell circuit.

本申请还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述标准单元电路的参数求解方法的步骤。The present application also provides a computer storage medium, the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for solving parameters of the standard unit circuit are realized.

本申请提供的一种标准单元电路的参数求解方法、电子设备及计算机存储介质,基于静态时序分析求解等效电路的有效电容,能够快速得到标准单元的待修正输出电容,提高标准单元输出电容的求解速度,另外,根据基于静态时序分析和动态时序分析对预设等效电路的求解结果预先确定的修正参数对待修正输出电容进行修正,能够得到精确的标准单元输出电容,提高标准单元输出电容的求解精度,而且,在求解标准单元输出电容的过程中,无需对等效电路进行动态时序分析,能够进一步提高标准单元输出电容的求解速度。如此,能够同时保证标准单元输出电容的求解速度及求解精度。The application provides a method for solving parameters of a standard unit circuit, electronic equipment and computer storage media, based on static timing analysis to solve the effective capacitance of the equivalent circuit, can quickly obtain the output capacitance of the standard unit to be corrected, and improve the output capacitance of the standard unit. Solution speed, in addition, based on the static timing analysis and dynamic timing analysis to the pre-determined correction parameters of the preset equivalent circuit solution results, the output capacitor to be corrected can be corrected, the accurate output capacitance of the standard cell can be obtained, and the output capacitance of the standard cell can be improved. In addition, in the process of solving the standard cell output capacitance, it is not necessary to perform dynamic timing analysis on the equivalent circuit, which can further improve the solution speed of the standard cell output capacitance. In this way, the solution speed and solution accuracy of the standard cell output capacitance can be guaranteed at the same time.

附图说明Description of drawings

图1是本申请实施例一提供的标准单元电路的参数求解方法的流程示意图。FIG. 1 is a schematic flowchart of a method for solving parameters of a standard unit circuit provided in Embodiment 1 of the present application.

图2是本申请实施例一提供的等效电路的结构示意图。FIG. 2 is a schematic structural diagram of an equivalent circuit provided in Embodiment 1 of the present application.

图3是本申请实施例一提供的基于静态时序分析求解等效电路的有效电容的示意图。FIG. 3 is a schematic diagram of solving an effective capacitance of an equivalent circuit based on static timing analysis provided by Embodiment 1 of the present application.

图4是本申请实施例一提供的建立的修正参数库的示意图。FIG. 4 is a schematic diagram of the established correction parameter library provided by Embodiment 1 of the present application.

图5是本申请实施例一提供的基于动态时序分析求解等效电路的有效电容的示意图。FIG. 5 is a schematic diagram of solving an effective capacitance of an equivalent circuit based on dynamic timing analysis provided by Embodiment 1 of the present application.

图6是本申请实施例二提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 2 of the present application.

具体实施方式Detailed ways

以下结合说明书附图及具体实施例对本申请技术方案做进一步的详细阐述。除非另有定义,本申请所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。本文所使用的“和/或”包括一个或多个相关的所列项目的任意的和所有的组合。The technical solution of the present application will be further elaborated below in combination with the accompanying drawings and specific embodiments. Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the specification of the application are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used herein, "and/or" includes any and all combinations of one or more of the associated listed items.

图1是本申请实施例一提供的标准单元电路的参数求解方法的流程示意图。如图1所示,本申请的标准单元电路的参数求解方法,可以包括如下步骤:FIG. 1 is a schematic flowchart of a method for solving parameters of a standard unit circuit provided in Embodiment 1 of the present application. As shown in Figure 1, the parameter solution method of the standard unit circuit of the present application may include the following steps:

步骤S10:基于预设电路模型,确定与标准单元的输出端连接的电阻-电容电路的等效电路;Step S10: Based on the preset circuit model, determine the equivalent circuit of the resistance-capacitance circuit connected to the output terminal of the standard cell;

步骤S20:基于静态时序分析求解等效电路的有效电容,以得到标准单元的待修正输出电容;Step S20: Solve the effective capacitance of the equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of the standard cell;

步骤S30:确定与等效电路匹配的预设等效电路;Step S30: determining a preset equivalent circuit matching the equivalent circuit;

步骤S40:在修正参数库查询预设等效电路对应的修正参数,其中,修正参数库包括多个预设等效电路与多个修正参数之间的对应关系,修正参数是在将预设等效电路设定为标准单元的输出时,根据基于静态时序分析确定的预设等效电路的第一有效电容与基于动态时序分析确定的预设等效电路的第二有效电容进行处理得到的;Step S40: Query the correction parameters corresponding to the preset equivalent circuits in the correction parameter library, wherein the correction parameter library includes the correspondence between multiple preset equivalent circuits and multiple correction parameters, and the correction parameters are the preset etc. When the effective circuit is set as the output of the standard unit, it is obtained by processing the first effective capacitance of the preset equivalent circuit determined based on static timing analysis and the second effective capacitance of the preset equivalent circuit determined based on dynamic timing analysis;

步骤S50:根据修正参数对待修正输出电容进行修正,以求解得到标准单元的输出电容。Step S50 : Correct the output capacitance to be corrected according to the correction parameters, so as to obtain the output capacitance of the standard unit.

本申请实施例一提供的标准单元的求解方法,基于静态时序分析求解等效电路的有效电容,能够快速得到标准单元的待修正输出电容,提高标准单元输出电容的求解速度,另外,根据基于静态时序分析和动态时序分析的结果预先建立的修正参数对待修正输出电容进行修正,能够得到精确的标准单元输出电容,提高标准单元输出电容的求解精度,而且,在求解标准单元输出电容的过程中,无需对等效电路进行动态时序分析,能够进一步提高标准单元输出电容的求解速度。The standard cell solution method provided in Embodiment 1 of the present application is based on static timing analysis to solve the effective capacitance of the equivalent circuit, which can quickly obtain the output capacitance of the standard cell to be corrected, and improve the solution speed of the output capacitance of the standard cell. In addition, based on static The pre-established correction parameters of the results of timing analysis and dynamic timing analysis can be corrected to correct the output capacitance of the standard cell, which can obtain the accurate output capacitance of the standard cell and improve the solution accuracy of the output capacitance of the standard cell. Moreover, in the process of solving the output capacitance of the standard cell, There is no need to perform dynamic timing analysis on the equivalent circuit, which can further improve the solution speed of the output capacitance of the standard cell.

可选地,标准单元包括反相器、与门等,各标准单元对应着多个不同尺寸、不同驱动能力的单元电路,标准单元电路包括标准单元与连接在标准单元的输出端的电阻-电容电路(RC电路)。预设电路模型为π模型(Pi-model),包括两个并联的电容及与两个并联的电容串联的一个电阻。基于π模型对标准单元的输出端连接的电阻-电容电路进行转换,得到如图2所示的等效电路,也即,将标准单元的输出端连接的电阻-电容电路转换为π模型电路,其中第一电容C1与第二电容C2并联,电阻R串联在第一电容C1与第二电容C2之间。Optionally, the standard unit includes an inverter, an AND gate, etc., and each standard unit corresponds to a plurality of unit circuits with different sizes and different driving capabilities. The standard unit circuit includes a standard unit and a resistance-capacitance circuit connected to the output terminal of the standard unit (RC circuit). The preset circuit model is a π model (Pi-model), which includes two parallel capacitors and a resistor connected in series with the two parallel capacitors. Based on the π model, the resistance-capacitance circuit connected to the output end of the standard unit is converted to obtain the equivalent circuit shown in Figure 2, that is, the resistance-capacitance circuit connected to the output end of the standard unit is converted into a π model circuit, The first capacitor C1 is connected in parallel with the second capacitor C2 , and the resistor R is connected in series between the first capacitor C1 and the second capacitor C2 .

在一实施方式中,步骤S20中的基于静态时序分析求解等效电路的有效电容,以得到标准单元的待修正输出电容,包括:In one embodiment, the effective capacitance of the equivalent circuit is solved based on static timing analysis in step S20 to obtain the output capacitance to be corrected of the standard cell, including:

根据等效电路的第一电容值及标准单元的输入转换时间(Input TransitionTime),查询非线性延迟模型库,确定标准单元的输出转换时间(Output TransitionTime),其中,第一电容值表征等效电路的整体电容;According to the first capacitance value of the equivalent circuit and the input transition time (Input TransitionTime) of the standard cell, query the nonlinear delay model library to determine the output transition time (Output TransitionTime) of the standard cell, where the first capacitance value represents the equivalent circuit the overall capacitance;

基于静态时序分析,根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,求解等效电路的有效电容,以得到标准单元的待修正输出电容,其中,第二电容值为等效电路中的各电容的电容值。Based on the static timing analysis, according to the output conversion time of the standard cell, the resistance value of the equivalent circuit and the second capacitance value, the effective capacitance of the equivalent circuit is solved to obtain the output capacitance to be corrected of the standard cell, wherein the second capacitance value is The capacitance value of each capacitor in the equivalent circuit.

其中,等效电路的有效电容即为标准单元的待输出修正电容。Wherein, the effective capacitance of the equivalent circuit is the output correction capacitance of the standard unit.

在一实施方式中,基于静态时序分析,根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,求解等效电路的有效电容,得到标准单元的待修正输出电容的步骤,包括:In one embodiment, based on static timing analysis, according to the output conversion time of the standard cell, the resistance value of the equivalent circuit and the second capacitance value, the effective capacitance of the equivalent circuit is solved to obtain the output capacitance of the standard cell to be corrected, include:

根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,确定等效电路的有效电容;determining the effective capacitance of the equivalent circuit according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value;

判断有效电容是否收敛;Determine whether the effective capacitance is convergent;

若不收敛,则将有效电容作为等效电路的第一电容值,返回根据等效电路的第一电容值及标准单元的输入转换时间,查询非线性延迟模型库,确定标准单元的输出转换时间的步骤;If it does not converge, use the effective capacitance as the first capacitance value of the equivalent circuit, and return the output conversion time of the standard unit by querying the nonlinear delay model library based on the first capacitance value of the equivalent circuit and the input conversion time of the standard unit A step of;

若收敛,则将有效电容作为标准单元的待修正输出电容。If it converges, the effective capacitance is taken as the output capacitance to be corrected of the standard unit.

继续参考图2,选取等效电路的总电容Ctotal=C1+C2作为初始第一电容值,根据总电容Ctotal及标准单元的输入转换时间Tri,查询非线性延迟模型库,确定标准单元的第一输出转换时间Tr1,然后根据标准单元的第一输出转换时间Tr1、等效电路的电阻R、第一电容C1及第二电容C2,确定等效电路的有效电容一Ceff_s1。判断有效电容是否收敛,具体地,有效电容收敛的条件包括相邻两次计算得到的有效电容值之间的偏差处于预设范围内,第一次求解的有效电容即所述初始第一电容值,第二次求解的有效电容即有效电容一Ceff_s1,这样,判断初始第一电容值与有效电容一Ceff_s1之间的偏差是否处于预设范围内,即可判断有效电容是否收敛。Continuing to refer to Figure 2, select the total capacitance C total =C 1 +C 2 of the equivalent circuit as the initial first capacitance value, query the nonlinear delay model library according to the total capacitance C total and the input conversion time Tri of the standard unit, and determine The first output transition time Tr 1 of the standard cell, and then determine the effective capacitance of the equivalent circuit according to the first output transition time Tr 1 of the standard cell, the resistance R of the equivalent circuit, the first capacitance C 1 and the second capacitance C 2 A C eff_s1 . Judging whether the effective capacitance is converged, specifically, the condition for the convergence of the effective capacitance includes that the deviation between the effective capacitance values obtained by two adjacent calculations is within a preset range, and the effective capacitance solved for the first time is the initial first capacitance value , the effective capacitance to be solved for the second time is the effective capacitance C eff_s1 , thus, judging whether the deviation between the initial first capacitance value and the effective capacitance C eff_s1 is within a preset range can determine whether the effective capacitance is converged.

若有效电容收敛,则将有效电容一Ceff_s1作为标准单元的待修正输出电容,若有效电容未收敛,则根据有效电容一Ceff_s1作为更新后的第一电容值,与标准单元的输入转换时间Tri一起,再次查询非线性延迟模型库,确定标准单元的第二输出转换时间Tr2,然后根据标准单元的第二输出转换时间Tr2、等效电路的电阻R、第一电容C1及第二电容C2,确定等效电路的有效电容二Ceff_s2。判断有效电容是否收敛,此时即计算有效电容二Ceff_s2与有效电容一Ceff_s1之间的偏差是否处于预设范围内,若是,则有效电容收敛,将有效电容二Ceff_s2作为标准单元的待修正输出电容,若否,则有效电容未收敛,将有效电容二Ceff_s2再次作为等效电路的第一电容值,继续执行上述查找模型库和求解有效电容的过程,直到等效电路的有效电容收敛,并将最后一次求解的有效电容作为标准单元的待修正输出电容。If the effective capacitance converges, the effective capacitance C eff_s1 is used as the output capacitance to be corrected of the standard cell, and if the effective capacitance does not converge, then the effective capacitance C eff_s1 is used as the updated first capacitance value, and the input conversion time of the standard cell Tr i together, query the nonlinear delay model library again to determine the second output transition time Tr 2 of the standard unit, and then according to the second output transition time Tr 2 of the standard unit, the resistance R of the equivalent circuit, the first capacitance C 1 and The second capacitor C 2 determines the effective capacitor C eff_s2 of the equivalent circuit. Judging whether the effective capacitance is convergent, at this time, it is calculated whether the deviation between the effective capacitance 2 C eff_s2 and the effective capacitance 1 C eff_s1 is within the preset range, and if so, the effective capacitance is convergent, and the effective capacitance 2 C eff_s2 is used as the waiting time of the standard unit Correct the output capacitance, if not, the effective capacitance has not converged, and the effective capacitance C eff_s2 is used as the first capacitance value of the equivalent circuit again, and the above-mentioned process of searching the model library and solving the effective capacitance is continued until the effective capacitance of the equivalent circuit is Converge, and use the effective capacitance of the last solution as the output capacitance to be corrected of the standard unit.

在一实施方式中,根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,求解等效电路的有效电容,包括:In one embodiment, according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value, the effective capacitance of the equivalent circuit is solved, including:

将标准单元的驱动电压的时域表达式转换为频域表达式;Convert the time-domain expression of the driving voltage of the standard cell into a frequency-domain expression;

根据驱动电压的频域表达式及等效电路的电阻值、第二电容值,确定标准单元的驱动电流的频域表达式,并将驱动电流的频域表达式转换为时域表达式,驱动电流的时域表达式用于表征标准单元的输出转换时间、工作电压、驱动时间、等效电路的电阻值及第二电容值与驱动电流之间的关系;According to the frequency domain expression of the driving voltage and the resistance value and the second capacitance value of the equivalent circuit, the frequency domain expression of the driving current of the standard unit is determined, and the frequency domain expression of the driving current is converted into a time domain expression, and the driving The time-domain expression of the current is used to characterize the relationship between the output conversion time of the standard cell, the operating voltage, the driving time, the resistance value of the equivalent circuit, the second capacitance value, and the driving current;

获取求解标准单元的延迟选定的目标驱动电压,以及目标驱动电压对应的目标驱动时间;Obtain the target driving voltage selected by the delay of solving the standard unit, and the target driving time corresponding to the target driving voltage;

根据目标驱动时间及目标驱动电压对驱动电流的时域表达式进行处理,使标准单元的驱动电流在目标驱动时间下对电路的充电电量与等效电路的有效电容在目标驱动电压下对电路的充电电量相等;According to the target driving time and the target driving voltage, the time-domain expression of the driving current is processed, so that the driving current of the standard cell can charge the circuit at the target driving time and the effective capacitance of the equivalent circuit can charge the circuit at the target driving voltage. The charging power is equal;

对处理得到的表达式进行变换,以根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,求解得到等效电路的有效电容。Transform the obtained expression to obtain the effective capacitance of the equivalent circuit according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value.

其中,有效电容使标准单元产生的延迟与等效电路使标准单元产生的延迟相同,标准单元的驱动电流在目标驱动时间下对电路的充电电量与等效电路的有效电容在目标驱动电压下对电路的充电电量相等时,满足有效电容使标准单元产生的延迟与等效电路使标准单元产生的延迟相同的条件。应该理解,电量相同或延迟相同可以是完全相同,也可以在预设偏差内时认为相同。Among them, the delay produced by the standard cell caused by the effective capacitance is the same as the delay produced by the standard cell caused by the equivalent circuit. When the charging power of the circuit is equal, the condition that the delay produced by the standard cell caused by the effective capacitance is the same as the delay produced by the standard cell by the equivalent circuit is satisfied. It should be understood that the same power or the same delay may be completely the same, or may be considered the same when they are within a preset deviation.

如图3中的(a)所示,在驱动电压达到时,驱动时间对应为/>。根据驱动电压与驱动时间的关系,得到标准单元的驱动电压的时域表达式:As shown in (a) of Figure 3, when the driving voltage reaches , the driving time corresponds to /> . According to the relationship between the driving voltage and the driving time, the time-domain expression of the driving voltage of the standard cell is obtained:

其中,表示标准单元对等效电路的驱动时间,/>表示标准单元的随驱动时间变化的驱动电压,是将标准单元等效后的驱动电压源,/>表示标准单元的工作电压,/>表示与/>对应的标准单元的驱动时间,也即输出转换时间。in, Indicates the driving time of the standard cell to the equivalent circuit, /> Indicates the driving voltage of the standard cell that changes with the driving time, which is the driving voltage source after the standard cell is equivalent, /> Indicates the operating voltage of the standard unit, /> express with /> The drive time of the corresponding standard unit, that is, the output conversion time.

结合图2和图3中的(b),将图2中的标准单元等效为驱动电压源,得到图3中的(b)所示的电路,其电路参数包括:驱动电压源作用于等效电路上的随输出转换时间变化的驱动电压及驱动电流I(t),通过等效电路中的第一电容的随驱动时间变化的电流I1(t),通过等效电路中的电阻和第二电容的随驱动时间变化的电流I2(t),其中第一电容的值为C1,第一电容的值为C2,电阻的值为R。Combining Figure 2 and Figure 3 (b), the standard unit in Figure 2 is equivalent to a driving voltage source, and the circuit shown in Figure 3 (b) is obtained, and its circuit parameters include: the driving voltage source acts on the The driving voltage on the effect circuit varies with the output transition time And the driving current I(t), the current I 1 (t) passing through the first capacitor in the equivalent circuit that changes with the driving time, the current I 2 that passes through the resistance and the second capacitor in the equivalent circuit that changes with the driving time (t), wherein the value of the first capacitor is C 1 , the value of the first capacitor is C 2 , and the value of the resistor is R.

根据时域与频域的转换关系,将图3中的(b)所示的电路参数由时域转换到频域,得到图3中的(c)所示的电路参数,包括:驱动电压源作用于等效电路上的随驱动频率变化的驱动电压及驱动电流I(s),通过等效电路中的第一电容的随驱动频率变化的电流I1(s),通过等效电路中的电阻和第二电容的随驱动频率变化的电流I2(s),其中,第一电容的值为1/C1s,第二电容的值为1/C2s,电阻的值为R。According to the conversion relationship between the time domain and the frequency domain, the circuit parameters shown in (b) in Figure 3 are converted from the time domain to the frequency domain, and the circuit parameters shown in (c) in Figure 3 are obtained, including: driving voltage source The driving voltage acting on the equivalent circuit that varies with the driving frequency And the driving current I(s), the current I 1 (s) passing through the first capacitor in the equivalent circuit that changes with the driving frequency, the current I 2 that passes through the resistance and the second capacitor in the equivalent circuit that changes with the driving frequency (s), wherein the value of the first capacitor is 1/C 1 s, the value of the second capacitor is 1/C 2 s, and the value of the resistor is R.

相应地,对标准单元的驱动电压的时域表达式进行转换,得到标准单元的驱动电压的频域表达式:Correspondingly, the time-domain expression of the driving voltage of the standard cell is converted to obtain the frequency-domain expression of the driving voltage of the standard cell:

其中,表示标准单元对等效电路的驱动频率,/>表示标准单元的随驱动频率变换的驱动电压。in, Indicates the driving frequency of the standard cell to the equivalent circuit, /> Indicates the driving voltage of the standard cell that changes with the driving frequency.

根据图3中的(c)所示的电路及其电路参数,确定通过第一电容的电流、通过电阻和第二电容的电流的频域表达式,以及驱动电流的频域表达式一分别为:According to the circuit shown in (c) in Figure 3 and its circuit parameters, determine the frequency domain expressions of the current passing through the first capacitor, the current passing through the resistor and the second capacitor, and the frequency domain expressions of the driving current—respectively :

将标准单元的驱动电压的频域表达式代入驱动电流的频域表达式一中,得到如下驱动电流的频域表达式二:Substituting the frequency domain expression of the driving voltage of the standard unit into the frequency domain expression 1 of the driving current, the following frequency domain expression 2 of the driving current is obtained:

可选地,通过拉普拉斯逆变换,对驱动电流的频域表达式二进行转换,得到驱动电流的时域表达式:Optionally, the frequency-domain expression 2 of the driving current is transformed by inverse Laplace transform to obtain the time-domain expression of the driving current:

可选地,选定/2作为求解标准单元的延迟的目标驱动电压,根据图3中的(a)所示的关系,可确定目标驱动电压/>/2对应的目标驱动时间为Tr/2。Optionally, selected /2 is used as the target drive voltage to solve the delay of the standard cell, and the target drive voltage can be determined according to the relationship shown in (a) in Figure 3 The target driving time corresponding to /2 is Tr/2.

如图3中的(d)所示,以目标驱动电压/2作为阈值点,输入电压经过该阈值点到输出电压经过该阈值点之间的延迟即标准单元的延迟Td。通常,大多数的非线性延迟模型库使用/>/2作为计算标准单元延迟的阈值点,但可以理解,阈值点不限于/>/2。As shown in (d) of Figure 3, with the target driving voltage /2 is used as the threshold point, the delay between the input voltage passing through the threshold point and the output voltage passing through the threshold point is the delay T d of the standard cell. Typically, most nonlinear delay model libraries use the /> /2 is used as the threshold point for calculating the standard cell delay, but it is understood that the threshold point is not limited to /> /2.

因此,结合图3中的(c)、(d)、(e),在满足等效电路的有效电容使标准单元产生的延迟与等效电路使标准单元产生的延迟相同的条件时,标准单元的驱动电流在目标驱动时间Tr/2下对电路的充电电量与等效电路的有效电容/>在目标驱动电压/>/2下对电路的充电电量相等。Therefore, combined with (c), (d), and (e) in Figure 3, the effective capacitance satisfying the equivalent circuit Under the condition that the delay produced by the standard cell is the same as that produced by the equivalent circuit, the driving current of the standard cell charges the circuit with the effective capacitance of the equivalent circuit at the target drive time Tr/2. at target drive voltage /> /2 will equalize the charging power of the circuit.

基于上述充电电量相等的关系,根据目标驱动时间Tr/2及目标驱动电压/2对驱动电流的时域表达式进行处理,得到如下表达式:Based on the above-mentioned relationship that the charging power is equal, according to the target driving time Tr/2 and the target driving voltage /2 processes the time-domain expression of the drive current to obtain the following expression:

其中,Q表示电量。对处理得到的表达式进行变换,根据标准单元的输出转换时间、等效电路的电阻值及第二电容值,求解得到等效电路的有效电容:Among them, Q represents electric quantity. Transform the obtained expression, and solve the effective capacitance of the equivalent circuit according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value:

在一实施方式中,建立修正参数库的步骤,包括:In one embodiment, the step of establishing a correction parameter library includes:

构建预设数量的预设等效电路;Construct a preset equivalent circuit of a preset quantity;

对各预设等效电路进行静态时序分析,确定各预设等效电路的第一有效电容;Static timing analysis is performed on each preset equivalent circuit to determine the first effective capacitance of each preset equivalent circuit;

对各预设等效电路进行动态时序分析,确定各预设等效电路的第二有效电容;Performing dynamic timing analysis on each preset equivalent circuit to determine the second effective capacitance of each preset equivalent circuit;

确定各预设等效电路的第一有效电容与第二有效电容之间的偏差;determining the deviation between the first effective capacitance and the second effective capacitance of each preset equivalent circuit;

根据偏差确定修正参数,并将修正参数与对应的预设等效电路关联,以建立修正参数库。The correction parameter is determined according to the deviation, and the correction parameter is associated with the corresponding preset equivalent circuit to establish a correction parameter library.

其中,预设等效电路与等效电路采用相同的预设电路模型。可选地,构建的预设等效电路尽可能覆盖可能出现的RC网络的等效电路,例如为9万个预设等效电路,其中,任意两个预设等效电路的电阻值和/或电容值不同。可选地,采用第一有效电容Ceff_s与第二有效电容Ceff_d的比值表征第一有效电容Ceff_s与第二有效电容Ceff_d的偏差。对9万个预设等效电路进行编号,以预设等效电路的编号作为横坐标,以第一有效电容Ceff_s与第二有效电容Ceff_d的比值作为纵坐标,得到如图4所示的修正参数库,在修正参数库中,第一有效电容Ceff_s与第二有效电容Ceff_d的比值作为修正参数,每个预设等效电路的编号唯一对应一个第一有效电容Ceff_s与第二有效电容Ceff_d的比值,即唯一对应一个修正参数。Wherein, the preset equivalent circuit and the equivalent circuit adopt the same preset circuit model. Optionally, the constructed preset equivalent circuit covers possible equivalent circuits of the RC network as much as possible, for example, there are 90,000 preset equivalent circuits, wherein the resistance values of any two preset equivalent circuits and/or or different capacitance values. Optionally, the ratio of the first effective capacitance C eff_s to the second effective capacitance C eff_d is used to characterize the deviation between the first effective capacitance C eff_s and the second effective capacitance C eff_d . Number the 90,000 preset equivalent circuits, take the number of the preset equivalent circuit as the abscissa, and take the ratio of the first effective capacitance C eff_s to the second effective capacitance C eff_d as the ordinate, as shown in Figure 4 In the correction parameter library shown, in the correction parameter library, the ratio of the first effective capacitance C eff_s to the second effective capacitance C eff_d is used as the correction parameter, and the number of each preset equivalent circuit uniquely corresponds to a first effective capacitance C eff_s The ratio to the second effective capacitance C eff_d uniquely corresponds to one correction parameter.

在一实施方式中,对各预设等效电路进行静态时序分析,确定各预设等效电路的第一有效电容的步骤,包括:In one embodiment, the step of performing static timing analysis on each preset equivalent circuit to determine the first effective capacitance of each preset equivalent circuit includes:

基于静态时序分析,根据各预设等效电路中的电阻值、电容值及各预设等效电路对应的标准单元的输出转换时间,确定各预设等效电路的第一有效电容。Based on static timing analysis, the first effective capacitance of each preset equivalent circuit is determined according to the resistance value and capacitance value in each preset equivalent circuit and the output conversion time of the standard unit corresponding to each preset equivalent circuit.

具体地,基于静态时序分析确定预设等效电路的第一有效电容的过程参考上述基于静态时序分析确定与标准单元的输出端连接的电阻-电容电路的等效电路的有效电容的过程,此处不再赘述。Specifically, the process of determining the first effective capacitance of the preset equivalent circuit based on the static timing analysis refers to the above-mentioned process of determining the effective capacitance of the equivalent circuit of the resistance-capacitance circuit connected to the output terminal of the standard cell based on the static timing analysis, here I won't repeat them here.

另外,通过动态时序分析对图5中的(a)所示的预设等效电路进行标准单元延迟分析可得到精确的延迟计算结果,在相同输入信号驱动下(输入转换时间都为Tri),与图5中的(a)所示的预设等效电路达到相同的标准单元延迟时的电容值Ceff(如图5中的(b)所示),即为图5中的(a)所示的预设等效电路的第二有效电容。In addition, the standard unit delay analysis of the preset equivalent circuit shown in (a) in Figure 5 through dynamic timing analysis can obtain accurate delay calculation results, driven by the same input signal (the input transition time is Tri ) , the capacitance value C eff (as shown in (b) in Figure 5 ) when the preset equivalent circuit shown in Figure 5 (a) achieves the same standard cell delay, that is, (a ) The second effective capacitance of the preset equivalent circuit shown.

在一实施方式中,步骤S30中的确定与等效电路匹配的预设等效电路,包括:In one embodiment, the determination of a preset equivalent circuit matching the equivalent circuit in step S30 includes:

将等效电路的电阻值及电容值与预设等效电路的电阻值及电容值进行比对;Comparing the resistance value and capacitance value of the equivalent circuit with the resistance value and capacitance value of the preset equivalent circuit;

根据比对结果,确定与等效电路匹配的预设等效电路。According to the comparison result, a preset equivalent circuit matching the equivalent circuit is determined.

具体地,基于静态时序分析求解得到标准单元的待修正输出电容之后,将标准单元的等效电路的电阻值及电容值与预设等效电路的电阻值及电容值进行比对,确定与等效电路匹配的预设等效电路。基于图4所示的修正参数库,根据匹配的预设等效电路的编号查询对应的修正参数,根据修正参数对待修正输出电容进行修正,得到标准单元的输出电容。通过这种方式,在求解标准单元的输出电容时,无需进行动态时序分析,求解速度快,修正参数预先结合动态时序分析得到,能够保证求解的精度。Specifically, after the output capacitance to be corrected of the standard cell is obtained based on static timing analysis, the resistance value and capacitance value of the equivalent circuit of the standard cell are compared with the resistance value and capacitance value of the preset equivalent circuit, and the equivalent circuit is determined. preset equivalent circuit for effective circuit matching. Based on the correction parameter library shown in Figure 4, the corresponding correction parameters are queried according to the number of the matched preset equivalent circuit, and the output capacitance to be corrected is corrected according to the correction parameters to obtain the output capacitance of the standard unit. In this way, when solving the output capacitance of the standard cell, no dynamic timing analysis is required, the solution speed is fast, and the correction parameters are obtained in advance combined with the dynamic timing analysis, which can ensure the accuracy of the solution.

在一实施方式中,根据修正参数对待修正输出电容进行修正,以求解得到标准单元的输出电容之后,方法还包括:In an embodiment, after correcting the output capacitance to be corrected according to the correction parameter to obtain the output capacitance of the standard unit, the method further includes:

根据标准单元的输入转换时间及标准单元的输出电容,查询非线性延迟模型库,以求解得到标准单元的延迟。According to the input conversion time of the standard cell and the output capacitance of the standard cell, query the nonlinear delay model library to obtain the delay of the standard cell.

本申请实施例一提供的标准单元电路的参数求解方法,基于静态时序分析能够快速求解标准单元的待修正输出电容,另外,根据基于静态时序分析和动态时序分析的结果预先建立的修正参数对待修正输出电容进行修正,能够得到精确的标准单元输出电容。基于快速求解得到的精确标准单元输出电容,查询非线性延迟模型库,能够提高标准单元延迟的求解速度和求解精度,而且在求解标准单元延迟的过程中,无需对等效电路进行动态时序分析,能够进一步提高标准单元延迟的求解速度。The parameter solution method of the standard cell circuit provided in Embodiment 1 of the present application can quickly solve the output capacitance of the standard cell to be corrected based on the static timing analysis. In addition, the correction parameters to be corrected are pre-established based on the results of the static timing analysis and dynamic timing analysis. The output capacitance is corrected to obtain an accurate standard cell output capacitance. Based on the accurate standard cell output capacitance obtained by the fast solution, querying the nonlinear delay model library can improve the solution speed and accuracy of the standard cell delay, and in the process of solving the standard cell delay, there is no need for dynamic timing analysis of the equivalent circuit. The solution speed of standard cell delay can be further improved.

图6是本申请实施例二提供的电子设备的结构示意图。本申请的电子设备包括:处理器110、存储器111以及存储在存储器111中并可在处理器110上运行的计算机程序112。处理器110执行计算机程序112时实现上述标准单元电路的参数求解方法实施例中的步骤。FIG. 6 is a schematic structural diagram of an electronic device provided in Embodiment 2 of the present application. The electronic device of the present application includes: a processor 110 , a memory 111 , and a computer program 112 stored in the memory 111 and operable on the processor 110 . When the processor 110 executes the computer program 112 , the steps in the above embodiment of the method for solving parameters of the standard unit circuit are realized.

电子设备可包括,但不仅限于,处理器110、存储器111。本领域技术人员可以理解,图6仅仅是电子设备的示例,并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device may include, but not limited to, a processor 110 and a memory 111 . Those skilled in the art can understand that FIG. 6 is only an example of an electronic device, and does not constitute a limitation to the electronic device. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as Electronic devices may also include input and output devices, network access devices, buses, and so on.

处理器110可以是中央处理单元(CentralProcessingUnit,CPU),还可以是其他通用处理器、数词信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-ProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 110 can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

存储器111可以是电子设备的内部存储单元,例如电子设备的硬盘或内存。存储器111也可以是电子设备的外部存储设备,例如电子设备上配备的插接式硬盘,智能存储卡(SmartMediaCard, SMC),安全数词(SecureDigital, SD)卡,闪存卡(FlashCard)等。进一步地,存储器111还可以既包括电子设备的内部存储单元也包括外部存储设备。存储器111用于存储计算机程序以及电子设备所需的其他程序和数据。存储器111还可以用于暂时地存储已经输出或者将要输出的数据。The storage 111 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device. The memory 111 can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash memory card (FlashCard), etc. Further, the memory 111 may also include both an internal storage unit of the electronic device and an external storage device. The memory 111 is used to store computer programs and other programs and data required by the electronic device. The memory 111 can also be used to temporarily store data that has been output or will be output.

本申请还提供一种计算机存储介质,计算机存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述标准单元电路的参数求解方法实施例中的步骤。The present application also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above embodiment of the method for solving parameters of the standard unit circuit are realized.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,除了包含所列的那些要素,而且还可包含没有明确列出的其他要素。As used herein, the terms "comprises", "comprises" or any other variation thereof are intended to cover a non-exclusive inclusion of elements other than those listed and also other elements not expressly listed.

以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the application, and should cover Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

1.一种标准单元电路的参数求解方法,其特征在于,包括:1. A parameter solution method of a standard cell circuit, characterized in that, comprising: 基于预设电路模型,确定与标准单元的输出端连接的电阻-电容电路的等效电路;determining an equivalent circuit of a resistor-capacitor circuit connected to an output terminal of the standard cell based on a preset circuit model; 基于静态时序分析求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容;Solving the effective capacitance of the equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of the standard cell; 确定与所述等效电路匹配的预设等效电路;determining a preset equivalent circuit matching the equivalent circuit; 在修正参数库查询所述预设等效电路对应的修正参数,其中,所述修正参数库包括多个预设等效电路与多个修正参数之间的对应关系,所述修正参数是在将所述预设等效电路设定为标准单元的输出时,根据基于静态时序分析确定的所述预设等效电路的第一有效电容与基于动态时序分析确定的所述预设等效电路的第二有效电容之间的偏差确定的;Query the correction parameters corresponding to the preset equivalent circuit in the correction parameter library, wherein the correction parameter library includes the correspondence between multiple preset equivalent circuits and multiple correction parameters, and the correction parameters are in the When the preset equivalent circuit is set as the output of the standard cell, according to the first effective capacitance of the preset equivalent circuit determined based on static timing analysis and the first effective capacitance of the preset equivalent circuit determined based on dynamic timing analysis The deviation between the second effective capacitance is determined; 根据所述修正参数对所述待修正输出电容进行修正,以求解得到所述标准单元的输出电容。The output capacitance to be corrected is corrected according to the correction parameter, so as to obtain the output capacitance of the standard cell. 2.如权利要求1所述的方法,其特征在于,所述基于静态时序分析求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容,包括:2. The method according to claim 1, wherein said solving the effective capacitance of said equivalent circuit based on static timing analysis to obtain the output capacitance to be corrected of said standard cell comprises: 根据所述等效电路的第一电容值及所述标准单元的输入转换时间,查询非线性延迟模型库,确定所述标准单元的输出转换时间,其中,所述第一电容值表征所述等效电路的整体电容;According to the first capacitance value of the equivalent circuit and the input transition time of the standard cell, query the nonlinear delay model library to determine the output transition time of the standard cell, wherein the first capacitance value represents the equal The overall capacitance of the effective circuit; 基于所述静态时序分析,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容,其中,所述第二电容值为所述等效电路中的各电容的电容值。Based on the static timing analysis, according to the output conversion time of the standard cell, the resistance value of the equivalent circuit and the second capacitance value, the effective capacitance of the equivalent circuit is solved to obtain the to-be-corrected value of the standard cell An output capacitor, wherein the second capacitance value is the capacitance value of each capacitor in the equivalent circuit. 3.如权利要求2所述的方法,其特征在于,所述基于所述静态时序分析,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,以得到所述标准单元的待修正输出电容的步骤,包括:3. The method according to claim 2, wherein, based on the static timing analysis, according to the output transition time of the standard cell, the resistance value and the second capacitance value of the equivalent circuit, the The effective capacitance of above-mentioned equivalent circuit, to obtain the step of the output capacitance to be corrected of described standard unit, comprising: 根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,确定所述等效电路的有效电容;determining an effective capacitance of the equivalent circuit according to the output conversion time of the standard cell, the resistance value of the equivalent circuit, and the second capacitance value; 判断所述有效电容是否收敛;judging whether the effective capacitance converges; 若不收敛,则将所述有效电容作为所述等效电路的第一电容值,返回所述根据所述等效电路的第一电容值及所述标准单元的输入转换时间,查询非线性延迟模型库,确定所述标准单元的输出转换时间的步骤;If it does not converge, then use the effective capacitance as the first capacitance value of the equivalent circuit, return the first capacitance value according to the equivalent circuit and the input conversion time of the standard unit, and query the nonlinear delay a model library, the step of determining the output conversion time of the standard cell; 若收敛,则将所述有效电容作为所述标准单元的待修正输出电容。If converged, the effective capacitance is used as the output capacitance to be corrected of the standard unit. 4.如权利要求2或3所述的方法,其特征在于,根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解所述等效电路的有效电容,包括:4. the method as claimed in claim 2 or 3 is characterized in that, according to the output conversion time of described standard cell, the resistance value and the second capacitance value of described equivalent circuit, solve the effective capacitance of described equivalent circuit ,include: 将所述标准单元的驱动电压的时域表达式转换为频域表达式;converting the time-domain expression of the driving voltage of the standard cell into a frequency-domain expression; 根据所述驱动电压的频域表达式及所述等效电路的电阻值、第二电容值,确定所述标准单元的驱动电流的频域表达式,并将所述驱动电流的频域表达式转换为时域表达式,所述驱动电流的时域表达式用于表征所述标准单元的输出转换时间、工作电压、驱动时间、所述等效电路的电阻值及第二电容值与所述驱动电流之间的关系;According to the frequency domain expression of the driving voltage, the resistance value of the equivalent circuit, and the second capacitance value, determine the frequency domain expression of the driving current of the standard cell, and convert the frequency domain expression of the driving current to Converted to a time-domain expression, the time-domain expression of the driving current is used to characterize the output conversion time of the standard unit, the operating voltage, the driving time, the resistance value of the equivalent circuit and the second capacitance value and the The relationship between the driving current; 获取求解所述标准单元的延迟选定的目标驱动电压,以及所述目标驱动电压对应的目标驱动时间;Obtaining a target driving voltage selected for solving the delay of the standard cell, and a target driving time corresponding to the target driving voltage; 根据所述目标驱动时间对所述驱动电流的时域表达式进行处理,使所述标准单元的驱动电流在所述目标驱动时间下对电路的充电电量与所述等效电路的有效电容在所述目标驱动电压下对电路的充电电量相等;According to the target driving time, the time-domain expression of the driving current is processed, so that the charging power of the circuit by the driving current of the standard cell at the target driving time is equal to the effective capacitance of the equivalent circuit at the specified time. The charging power of the circuit under the target driving voltage is equal; 对处理得到的表达式进行变换,以根据所述标准单元的输出转换时间、所述等效电路的电阻值及第二电容值,求解得到所述等效电路的有效电容。Transforming the obtained expression to obtain the effective capacitance of the equivalent circuit according to the output conversion time of the standard unit, the resistance value of the equivalent circuit and the second capacitance value. 5.如权利要求1所述的方法,其特征在于,建立所述修正参数库的步骤,包括:5. The method according to claim 1, characterized in that the step of setting up the correction parameter library comprises: 构建预设数量的预设等效电路;Construct a preset equivalent circuit of a preset quantity; 对各预设等效电路进行所述静态时序分析,确定所述各预设等效电路的第一有效电容;performing the static timing analysis on each preset equivalent circuit, and determining the first effective capacitance of each preset equivalent circuit; 对所述各预设等效电路进行所述动态时序分析,确定所述各预设等效电路的第二有效电容;performing the dynamic timing analysis on each of the preset equivalent circuits to determine the second effective capacitance of each of the preset equivalent circuits; 确定所述各预设等效电路的第一有效电容与第二有效电容之间的偏差;determining the deviation between the first effective capacitance and the second effective capacitance of each preset equivalent circuit; 根据所述偏差确定修正参数,并将所述修正参数与对应的预设等效电路关联,以建立所述修正参数库。A correction parameter is determined according to the deviation, and the correction parameter is associated with a corresponding preset equivalent circuit to establish the correction parameter library. 6.如权利要求5所述的方法,其特征在于,所述对各预设等效电路进行所述静态时序分析,确定所述各预设等效电路的第一有效电容的步骤,包括:6. The method according to claim 5, wherein the step of performing the static timing analysis on each preset equivalent circuit to determine the first effective capacitance of each preset equivalent circuit comprises: 基于所述静态时序分析,根据所述各预设等效电路中的电阻值、电容值及所述各预设等效电路对应的所述标准单元的输出转换时间,确定所述各预设等效电路的第一有效电容。Based on the static timing analysis, according to the resistance value and capacitance value in each preset equivalent circuit and the output conversion time of the standard unit corresponding to each preset equivalent circuit, determine the preset values The first effective capacitance of the effective circuit. 7.如权利要求1所述的方法,其特征在于,确定与所述等效电路匹配的预设等效电路,包括:7. The method according to claim 1, wherein determining a preset equivalent circuit matching the equivalent circuit comprises: 将所述等效电路的电阻值及电容值与所述预设等效电路的电阻值及电容值进行比对;comparing the resistance value and capacitance value of the equivalent circuit with the resistance value and capacitance value of the preset equivalent circuit; 根据比对结果,确定与所述等效电路匹配的预设等效电路。According to the comparison result, a preset equivalent circuit matching the equivalent circuit is determined. 8.如权利要求1所述的方法,其特征在于,所述根据所述修正参数对所述待修正输出电容进行修正,以求解得到所述标准单元的输出电容之后,所述方法还包括:8. The method according to claim 1, wherein, after the output capacitance to be corrected is corrected according to the correction parameter to obtain the output capacitance of the standard unit, the method further comprises: 根据所述标准单元的输入转换时间及所述标准单元的输出电容,查询非线性延迟模型库,以求解得到所述标准单元的延迟。According to the input conversion time of the standard cell and the output capacitance of the standard cell, query the nonlinear delay model library to obtain the delay of the standard cell. 9.一种电子设备,其特征在于,所述电子设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至8任一项所述方法的步骤。9. An electronic device, characterized in that the electronic device comprises a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program Implementing the steps of the method as claimed in any one of claims 1 to 8. 10.一种计算机存储介质,所述计算机存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8任一项所述方法的步骤。10. A computer storage medium storing a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 8 when the computer program is executed by a processor.
CN202310727158.8A 2023-06-19 2023-06-19 Method for solving parameters of standard unit circuit, electronic equipment and storage medium Active CN116467980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310727158.8A CN116467980B (en) 2023-06-19 2023-06-19 Method for solving parameters of standard unit circuit, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310727158.8A CN116467980B (en) 2023-06-19 2023-06-19 Method for solving parameters of standard unit circuit, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116467980A CN116467980A (en) 2023-07-21
CN116467980B true CN116467980B (en) 2023-09-05

Family

ID=87177441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310727158.8A Active CN116467980B (en) 2023-06-19 2023-06-19 Method for solving parameters of standard unit circuit, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116467980B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117272889B (en) * 2023-08-28 2024-04-30 海光云芯集成电路设计(上海)有限公司 Circuit delay estimation method and device, electronic equipment and storage medium
CN117272888B (en) * 2023-11-21 2024-04-09 杭州行芯科技有限公司 Circuit parameter solving method and device, electronic equipment and storage medium
CN118966109B (en) * 2024-10-16 2025-02-11 杭州行芯科技有限公司 Method and device for solving unit delay, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100158A (en) * 2020-09-21 2020-12-18 海光信息技术有限公司 A method, device, electronic device and storage medium for establishing a standard cell library
CN113392608A (en) * 2021-06-25 2021-09-14 成都海光集成电路设计有限公司 Circuit generation method, circuit generation device, electronic equipment and storage medium
CN113466725A (en) * 2020-03-31 2021-10-01 比亚迪股份有限公司 Method and device for determining state of charge of battery, storage medium and electronic equipment
US11443089B1 (en) * 2021-03-15 2022-09-13 Amazon Technologies, Inc. Timing verification of non-standard library blocks
CN115688641A (en) * 2022-10-28 2023-02-03 南京美辰微电子有限公司 Method and system for representing variation parameters on standard cell sheet
CN115964973A (en) * 2022-12-30 2023-04-14 南京邮电大学 Unit delay calculation method of composite current source model
CN116257992A (en) * 2023-02-14 2023-06-13 三峡大学 A Fractional Order Switched Capacitor Network and Its Efficiency Evaluation Method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225248B2 (en) * 2005-10-24 2012-07-17 Cadence Design Systems, Inc. Timing, noise, and power analysis of integrated circuits
US8901965B2 (en) * 2011-08-03 2014-12-02 Ben-Gurion University Of The Negev Research And Development Authority Device and method for dual-mode logic

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113466725A (en) * 2020-03-31 2021-10-01 比亚迪股份有限公司 Method and device for determining state of charge of battery, storage medium and electronic equipment
CN112100158A (en) * 2020-09-21 2020-12-18 海光信息技术有限公司 A method, device, electronic device and storage medium for establishing a standard cell library
US11443089B1 (en) * 2021-03-15 2022-09-13 Amazon Technologies, Inc. Timing verification of non-standard library blocks
CN113392608A (en) * 2021-06-25 2021-09-14 成都海光集成电路设计有限公司 Circuit generation method, circuit generation device, electronic equipment and storage medium
CN115688641A (en) * 2022-10-28 2023-02-03 南京美辰微电子有限公司 Method and system for representing variation parameters on standard cell sheet
CN115964973A (en) * 2022-12-30 2023-04-14 南京邮电大学 Unit delay calculation method of composite current source model
CN116257992A (en) * 2023-02-14 2023-06-13 三峡大学 A Fractional Order Switched Capacitor Network and Its Efficiency Evaluation Method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于28NM工艺ASIC芯片的静态时序分析与优化;翦彦龙;中国优秀硕士学位论文全文数据库 (信息科技辑)(第12期);I135-227 *

Also Published As

Publication number Publication date
CN116467980A (en) 2023-07-21

Similar Documents

Publication Publication Date Title
CN116467980B (en) Method for solving parameters of standard unit circuit, electronic equipment and storage medium
CN110597855A (en) A data storage method, terminal equipment, and computer-readable storage medium
US8196077B2 (en) Cell-library-for-statistical-timing-analysis creating apparatus and statistical-timing analyzing apparatus
CN108304409A (en) A kind of data Frequency estimation method of the Sketch data structures based on carry
CN114895205A (en) Method, device, computer equipment, and storage medium for acquiring battery model parameters
WO2024244252A1 (en) Method and apparatus for estimating capacity of battery cell, and server and storage medium
CN115511071A (en) Model training method and device and readable storage medium
CN110298570A (en) Distribution network system topology status discrimination method, device, storage medium and equipment
WO2024244229A1 (en) Estimation method and apparatus for soc of battery cell, and server and storage medium
WO2025130336A1 (en) Data query method and apparatus for distributed database
CN115776648A (en) Bluetooth broadcasting method and device and computer equipment
CN107517055B (en) A Design Method of CMOS Digital Logic Circuit
US10169527B2 (en) Accurate statistical timing for boundary gates of hierarchical timing models
CN117272888B (en) Circuit parameter solving method and device, electronic equipment and storage medium
WO2025000887A1 (en) Harmonic-voltage measurement method and apparatus, and capacitance-type voltage transformer and controller
CN117832206A (en) Resistance adjustment circuit, current adjustment circuit and adjustment method of current adjustment circuit
CN113535722B (en) Mapping-based DAG tracing sampling method, system, device and storage medium
CN113711459B (en) Charging method, electronic device and storage medium
CN114069660A (en) Method and equipment for calculating harmonic waves of energy storage system
CN116542218A (en) Feature parameter model determining method, performance evaluation method and related equipment
CN110889643A (en) Paper quality evaluation method and system
CN116500452A (en) Battery capacity estimation method, device, server and storage medium
US20180307782A1 (en) Circuit encoding method and circuit structure recognition method
CN114726959B (en) Signal ringing eliminating circuit and method
CN111198789B (en) Verification method of FFT hardware implementation module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: The parameter solving method of standard cell circuits, electronic devices and storage media

Granted publication date: 20230905

Pledgee: Hangzhou branch of Bank of Nanjing Co.,Ltd.

Pledgor: Hangzhou Xingxin Technology Co.,Ltd.

Registration number: Y2025980034950

PE01 Entry into force of the registration of the contract for pledge of patent right