Hybrid circuit performance model construction method, device and circuit design method and device

Through hybrid simulation technology, combined with SPICE and AMS simulation, a circuit performance model is established, which solves the problem of slow transistor-level simulation speed, achieves fast and efficient circuit performance modeling and design, and improves the efficiency of analog circuit design.

CN118504500BActive Publication Date: 2024-09-27TESSERSOFT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410952039.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-27
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing analog circuit performance modeling methods rely on transistor-level simulation, which results in slow simulation speed and difficulty in quickly collecting large amounts of training data. Especially in scenarios that require a large amount of data, circuit performance modeling is inefficient.

Method used

Using a hybrid simulation method, combined with SPICE and AMS simulation methods, by determining the basic topology and design parameters of the circuit, collecting training data, establishing the mapping relationship between design parameters and circuit simulation performance, and using machine learning methods to train the circuit performance model. Improve simulation efficiency.

Benefits of technology

It effectively reduces the simulation data collection time, improves the efficiency and accuracy of circuit performance modeling, greatly shortens the design cycle, and improves the efficiency of analog circuit design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118504500B
    Figure CN118504500B
Patent Text Reader

Abstract

The present invention discloses a method and device for constructing a hybrid circuit performance model and a circuit design method and device. The model construction method includes: determining the basic topological structure of the circuit and the design parameters under the basic topological structure; collecting training data of the circuit performance model; wherein the training data includes a mapping relationship, the mapping relationship is a mapping relationship between the design parameters and the circuit simulation performance, the circuit simulation performance is the simulation performance of the circuit obtained by hybrid simulation using the design parameters, the hybrid simulation is based on at least two simulation methods, the at least two simulation methods include but are not limited to SPICE simulation method and AMS simulation method; the circuit performance model is trained using the training data. The circuit design method is based on the circuit performance model constructed by the model construction method. It can effectively and quickly complete the collection of a large amount of training data, thereby ensuring the accuracy and generalization ability of circuit performance modeling, and improving the efficiency of circuit design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of circuit simulation, and in particular relates to a method and device for constructing a circuit performance model based on hybrid simulation, and a circuit design method and device based on the circuit performance model. Background Art

[0002] Existing performance modeling methods for analog circuits typically use transistor-level circuit simulation to obtain circuit parameters (such as transistor, capacitor, and resistor dimensions) as well as PVT statistical parameters, including process conditions, voltage, and temperature, to construct circuit performance models. However, due to the limitations of transistor-level circuit simulation, simulation speed is slow, resulting in a relatively lengthy training data collection process. This makes data collection through transistor-level circuit simulation alone impractical, especially for scenarios requiring large amounts of training data. Summary of the Invention

[0003] In order to solve the above problems, the present invention provides a hybrid circuit performance model construction method and device and a circuit design method and device, which can effectively and quickly complete the collection of a large amount of training data, thereby ensuring the accuracy and generalization ability of circuit performance modeling.

[0004] The technical solution adopted by the present invention is as follows: In a first aspect, the present application discloses a method for constructing a hybrid-simulation circuit performance model, comprising the following steps:

[0005] Determining a basic topology of the circuit and design parameters under the basic topology; wherein the design parameters include, but are not limited to, first-category parameters and second-category parameters, wherein the first-category parameters include, but are not limited to, sizes of transistors, capacitors, and resistors, and the second-category parameters include, but are not limited to, PVT statistical parameters, wherein the PVT statistical parameters include process conditions, operating voltage, and operating temperature;

[0006] Collecting training data for a circuit performance model; wherein the training data includes a mapping relationship between the design parameters and circuit simulation performance, the circuit simulation performance being simulation performance of a circuit obtained by performing a hybrid simulation using the design parameters, the hybrid simulation being based on at least two simulation methods, the at least two simulation methods including but not limited to a SPICE simulation method and an AMS simulation method;

[0007] The circuit performance model is trained using the training data.

[0008] As an optional technical solution, the training data of the acquisition circuit performance model includes:

[0009] Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided and SPICE transistor-level description and AMS behavioral-level description are selected respectively;

[0010] A parameterized circuit netlist is obtained using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

[0011] As an optional technical solution, the hybrid simulation includes:

[0012] retaining the SPICE simulation netlist of the target circuit module and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist;

[0013] A hybrid simulation is performed using the first hybrid netlist to obtain the circuit simulation performance.

[0014] As an optional technical solution, for a low-dropout linear regulator (LDO) circuit, the non-target circuit module includes a bandgap reference (BandGap) circuit module; for a phase-locked loop (PLL) circuit, the non-target circuit module includes a voltage-controlled oscillator (VCO) and a frequency divider (DIV).

[0015] As an optional technical solution, the AMS behavior level description adopts a Verilog-A model or a SystemVerilog model.

[0016] As an optional technical solution, the training of the circuit performance model includes applying a machine learning method to train the circuit performance model, and the machine learning method uses a support vector machine, a Bayesian neural network or an artificial neural network to establish a regression or classification model for the circuit.

[0017] In a second aspect, the present application discloses a device for constructing a hybrid-simulation circuit performance model, the device comprising:

[0018] A parameter determination module, used to determine the basic topology of the circuit and the design parameters under the basic topology;

[0019] an acquisition module configured to acquire training data for a circuit performance model; wherein the training data includes a mapping relationship between the design parameters and circuit simulation performance, wherein the circuit simulation performance is a simulation performance of a circuit obtained by performing a hybrid simulation using the design parameters, wherein the hybrid simulation is based on at least two simulation methods, including but not limited to a SPICE simulation method and an AMS simulation method;

[0020] A training module is used to train the circuit performance model using the training data.

[0021] As an optional technical solution, the acquisition module is further used to:

[0022] Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided and SPICE transistor-level description and AMS behavioral-level description are selected respectively;

[0023] A parameterized circuit netlist is obtained using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

[0024] As an optional technical solution, the acquisition module further includes a hybrid simulation unit, which is used to:

[0025] retaining the SPICE simulation netlist of the target circuit module and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist;

[0026] A hybrid simulation is performed using the first hybrid netlist to obtain the circuit simulation performance.

[0027] As an optional technical solution, for a low-dropout linear regulator (LDO) circuit, the non-target circuit module includes a bandgap reference (BandGap) circuit module; for a phase-locked loop (PLL) circuit, the non-target circuit module includes a voltage-controlled oscillator (VCO) and a frequency divider (DIV).

[0028] As an optional technical solution, the AMS behavior level description adopts a Verilog-A model or a SystemVerilog model.

[0029] As an optional technical solution, the training module is also used to: apply a machine learning method to train the circuit performance model, and the machine learning method uses a support vector machine, a Bayesian neural network or an artificial neural network to establish a regression or classification model for the circuit.

[0030] In a third aspect, the present application discloses a circuit design method based on a circuit performance model, the design method comprising a front-end design process and a back-end design process;

[0031] The front-end design process includes: using the trained circuit performance model disclosed in any one of the first aspects above, continuously adjusting circuit design parameters until design requirements are met;

[0032] The back-end design process includes:

[0033] Based on the circuit schematics designed by the front-end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing;

[0034] Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model;

[0035] The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

[0036] As an optional technical solution, reconstructing the circuit performance model includes:

[0037] retaining the SPICE post-simulation netlist of the target circuit module and replacing the SPICE post-simulation netlist of the non-target circuit module with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist;

[0038] The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

[0039] In a fourth aspect, the present application further discloses a circuit design device based on a circuit performance model, the design device comprising a front-end design module and a back-end design module;

[0040] The front-end design module is used in a front-end design process, which includes: using a trained circuit performance model as disclosed in any one of the second aspects above, continuously adjusting circuit design parameters until design requirements are met;

[0041] The back-end design module is used for the back-end design process, which includes:

[0042] Based on the circuit schematics designed by the front-end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing;

[0043] Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model;

[0044] The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

[0045] As an optional technical solution, the back-end design module further includes a circuit performance model reconstruction unit, and the circuit performance model reconstruction unit is used to:

[0046] retaining the SPICE post-simulation netlist of the target circuit module and replacing the SPICE post-simulation netlist of the non-target circuit module with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist;

[0047] The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

[0048] In the fifth aspect, the present application discloses an electronic device comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the electronic device to perform a method as described in any one of the first or third aspects above.

[0049] In a sixth aspect, the present application discloses a computer-readable medium comprising a computer program, which, when executed on a computer, enables the computer to execute the method as described in any one of the first or third aspects above.

[0050] The beneficial effects of the present invention are as follows: the present application adopts SPICE+AMS hybrid simulation instead of pure SPICE simulation to collect relevant simulation data, which can effectively reduce the time of sampling circuit simulation data, thereby speeding up the construction of the performance model, greatly improving the efficiency of circuit performance modeling, and can simultaneously ensure the accuracy and generalization ability of circuit performance modeling; at the same time, the present application also proposes a circuit design method based on the constructed circuit performance model, which can greatly improve the efficiency of circuit design while meeting the circuit design requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is the traditional design process of analog circuits.

[0052] Figure 2 It is an analog circuit design process based on SPICE simulation modeling.

[0053] Figure 3 A flowchart of a method for constructing a hybrid-simulation circuit performance model in an exemplary embodiment.

[0054] Figure 4 It is the LDO circuit structure.

[0055] Figure 5 This is a comparison chart of the output voltage curves obtained by using the traditional pure SPICE simulation method and the hybrid simulation method of the present application for the LDO circuit.

[0056] Figure 6 This is the structure of the PLL circuit.

[0057] Figure 7 This is a comparison chart of output frequency curves obtained by using traditional pure SPICE simulation and the hybrid simulation method of the present application for the PLL circuit.

[0058] Figure 8 1 is an architectural diagram of a hybrid-simulation circuit performance model building apparatus in an exemplary embodiment.

[0059] Figure 9 is a flow chart of a circuit design method based on a circuit performance model in an exemplary embodiment.

[0060] Figure 10 It is a schematic diagram of the overall circuit design process.

[0061] Figure 11 FIG. 1 is a diagram illustrating the relationship between a model building device and a circuit design device in an exemplary embodiment. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0063] To facilitate understanding of the present invention, the background of the present invention will be further described before introducing the present embodiment.

[0064] So far, most analog circuit designs still need to be manually designed by experienced engineers. Figure 1 Based on the design requirements, engineers use their experience to select the appropriate circuit topology and determine the initial values ​​for each component parameter. However, these initial values ​​often fail to meet the desired performance requirements. Therefore, engineers use simulation tools such as SPICE to evaluate the circuit's performance under these parameters. Based on the evaluation results, they continuously adjust the circuit's component parameters until the performance specifications are met. However, for complex system-level circuits (such as phase-locked loops), a full-transistor-level simulation can take days or even weeks. Even for module-level circuits (such as operational amplifiers), a full-transistor-level time-domain simulation can take tens of seconds, making component parameter adjustment an extremely time-consuming process. Simulations performed after layout and routing take even longer due to the introduction of numerous parasitic parameters. Furthermore, adjustments to design performance specifications, process conditions, operating voltage, operating temperature, and other factors require re-adjustment of optimized component parameters, resulting in a typically lengthy analog circuit design cycle. With the continuous reduction of process size, the continuous shortening of design cycle and the continuous increase in demand for high-performance and low-power circuits, analog circuit design has become increasingly difficult. There is an urgent need to develop technology for rapid performance evaluation of circuits to improve design efficiency.

[0065] In order to shorten the design and verification cycle of analog circuits, a feasible method is to establish a performance model for a given circuit schematic, such as Figure 2 As shown, engineers' design experience and circuit characteristics are abstracted into a model. Once the circuit performance model is trained and constructed, it can quickly and accurately predict the performance corresponding to the circuit design parameters, improving evaluation efficiency.

[0066] Building a performance model for a circuit typically involves the following three steps:

[0067] 1. Based on design indicators and requirements, combined with the engineer's design experience, select the performance indicators of interest and various related circuit device parameters as the input and output of the performance model to be constructed.

[0068] 2. According to the requirements of the training model, complete the collection of relevant data through SPICE circuit simulation.

[0069] 3. Using machine learning methods, using the data collected in step 2, and using technologies such as support vector machines, Bayesian neural networks, or artificial neural networks, a regression or classification model is established for the circuit.

[0070] The trained model is the performance model, which can quickly predict circuit performance. In actual projects, step 2 usually takes up the majority of the modeling time.

[0071] Currently, when modeling the performance of analog circuits, engineers use Monte Carlo sampling to randomly adjust the parameter values ​​of various circuit components and then utilize SPICE simulation to obtain circuit performance data under different circuit parameters. Based on sufficient simulation data, they use machine learning and other methods to build a circuit performance model, thereby mapping the circuit parameters and circuit performance. Once the performance model is generated, the circuit's performance under specific parameters can be quickly evaluated until performance indicators are met. However, performing numerous SPICE simulations is very time-consuming, making the modeling process time-consuming.

[0072] Therefore, the present invention, taking into account the characteristics of circuit modeling, proposes a hybrid simulation approach to accelerate the simulation data sampling process. This hybrid simulation approach includes transistor-level SPICE circuit pre-simulation, SPICE circuit post-simulation including post-placement and routing parasitic parameters, and behavioral-level simulation using AMS (such as Verilog-A and System Verilog). By combining the characteristics of these different simulation methods, large amounts of data can be efficiently collected, accelerating the data collection process in step 2 and, in turn, rapidly completing model training and construction.

[0073] To facilitate understanding of the characteristics of various simulation methods in hybrid simulation, the following Table 1 compares the simulation methods.

[0074] Table 1

[0075]

[0076] Based on the above description, the present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0077] Example 1

[0078] like Figure 3 As shown, this embodiment discloses a method for constructing a hybrid circuit performance model, including the following steps:

[0079] Determining a basic topology of the circuit and design parameters under the basic topology; wherein the design parameters include, but are not limited to, first-category parameters and second-category parameters, wherein the first-category parameters include, but are not limited to, sizes of transistors, capacitors, and resistors, and the second-category parameters include, but are not limited to, PVT statistical parameters, wherein the PVT statistical parameters include process conditions, operating voltage, and operating temperature;

[0080] Collecting training data for a circuit performance model; wherein the training data includes a mapping relationship between the design parameters and circuit simulation performance, the circuit simulation performance being simulation performance of a circuit obtained by performing a hybrid simulation using the design parameters, the hybrid simulation being based on at least two simulation methods, the at least two simulation methods including but not limited to a SPICE simulation method and an AMS simulation method;

[0081] The circuit performance model is trained using the training data.

[0082] As an optional implementation manner, the training data of the acquisition circuit performance model includes:

[0083] Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided, and SPICE transistor-level description and AMS behavioral-level description are selected respectively; wherein the value space of the parameter refers to: a sampling space formed by the value range of each parameter of interest;

[0084] A parameterized circuit netlist is obtained using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

[0085] As an optional implementation, the hybrid simulation includes:

[0086] retaining the SPICE simulation netlist of the target circuit module and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist;

[0087] A hybrid simulation is performed using the first hybrid netlist to obtain the circuit simulation performance.

[0088] As an optional implementation, for a low dropout linear regulator LDO circuit, the non-target circuit module includes a bandgap reference BandGap circuit module; for a phase-locked loop PLL circuit, the non-target circuit module includes a voltage-controlled oscillator VCO and a frequency divider DIV.

[0089] As an optional implementation, the AMS behavioral level description adopts a Verilog-A model or a SystemVerilog model.

[0090] As an optional embodiment, training the circuit performance model includes applying a machine learning method to train the circuit performance model. The machine learning method uses a support vector machine, a Bayesian neural network, or an artificial neural network to establish a regression or classification model for the circuit. This training process uses existing technical means and is not further described here.

[0091] In the present invention, SPICE+AMS hybrid simulation is used to replace pure SPICE simulation to collect relevant simulation data, thereby accelerating the modeling of the relationship between circuit design parameters and circuit performance.

[0092] To illustrate the superiority of the method of this embodiment, an LDO circuit and a PLL circuit are taken as examples to compare the accuracy and speed of their hybrid simulation using traditional pure SPICE simulation and the method of this embodiment.

[0093] 1. LDO circuit.

[0094] a) Basic circuit and working principle: Figure 4 As shown in Figure 1, a basic low-dropout linear regulator (LDO) power supply IC includes a bandgap reference (BG), an error amplifier (AMP), a pass element, and a feedback resistor network. Together with auxiliary circuitry, this completes the LDO module. Its operating principle is to control the pass element's on-resistance through negative feedback, maintaining a stable output voltage.

[0095] b) Circuit model and behavioral model: Figure 4 A specific LDO circuit with the circuit structure in Figure 1 was simulated using SPICE software using Spectre. The reference voltage source typically uses a bandgap structure. To model the reference voltage source, several representative parameters, such as the reference voltage and temperature coefficient, were selected and modeled, representing the Verilog-A model of the BandGap module. Furthermore, the entire LDO circuit can be simulated by replacing the BandGap with a Verilog-A model. The BandGap module is the non-target circuit module mentioned above. For a circuit to be simulated, engineers can determine which circuit module or modules of the circuit to be simulated should be replaced with the Verilog-A model based on actual needs.

[0096] c) Output curve comparison: Output voltage curves at different temperatures are as follows Figure 5As shown, the solid line represents the SPICE simulation result: that is, the output voltage curve of the LDO circuit is obtained by using traditional pure SPICE simulation; the dotted line represents the AMS simulation result: that is, the output voltage curve of the LDO circuit is obtained by using the method of this embodiment to perform a hybrid simulation of SPICE simulation and AMS simulation.

[0097] The results show that the hybrid simulation results of the LDO circuit using the Verilog-A BandGap model are essentially consistent with the pure SPICE simulation results of the original LDO circuit. The hybrid simulation of this embodiment took 27.4 seconds, while the pure SPICE simulation took 69.7 seconds. This means that for the LDO circuit, the traditional pure SPICE simulation took about 2.5 times as long as the hybrid simulation of this application. This shows that the hybrid simulation of this embodiment significantly reduces simulation time and improves simulation efficiency.

[0098] 2. PLL circuit.

[0099] a) Basic Circuit and Working Principle: A Phase Locked Loop (PLL) is a closed-loop phase automatic control system that can synchronize the phase and frequency of two signals. That is, the output signal of the voltage-controlled oscillator after the frequency divider is equal to the frequency of the input reference signal, and the phase error is constant, zero or very small. The architecture design is as follows: Figure 6 As shown in the figure, a charge pump phase-locked loop generally consists of five modules: a phase frequency detector (PFD), a charge pump (CP), a low-pass filter (LPF), a voltage-controlled oscillator (VCO), and a frequency divider (DIV).

[0100] b) Circuit model and behavioral model: For phase-locked loops, the relevant modules, i.e., non-target circuit modules, can also be modeled using Verilog-A behavioral modeling to speed up the simulation while ensuring a certain level of accuracy. For example, after replacing the VCO and divider with Verilog-A models, a hybrid simulation of the PLL is performed. The comparison of the output frequency curve of the result with the pure SPICE simulation result of the original PLL is as follows: Figure 7 The curve with larger burrs is the SPICE simulation result: that is, it represents the output frequency curve of the PLL circuit obtained by using traditional pure SPICE simulation; the smooth curve is the AMS simulation result: that is, it represents the output frequency curve of the PLL circuit obtained by using the method of this embodiment to perform hybrid simulation by combining SPICE simulation with AMS simulation.

[0101] c) Simulation time: During the simulation process, the simulation time for pure SPICE simulation of the PLL circuit and the simulation of the PLL's Verilog-A model was recorded. The pure SPICE simulation of the PLL circuit took nearly two days, while the simulation time for the PLL using the Verilog-A model of the VCO and divider was about eight hours. This means that for the PLL circuit, the traditional pure SPICE simulation took about six times as long as the hybrid simulation of this application. This shows that this application significantly shortens the simulation time.

[0102] From the above two examples, it can be seen that the use of hybrid simulation can effectively reduce the time of sampling circuit simulation data, thereby speeding up the construction of performance models.

[0103] Example 2:

[0104] like Figure 8 As shown, this embodiment discloses a hybrid circuit performance model construction device, which includes:

[0105] A parameter determination module, used to determine the basic topology of the circuit and the design parameters under the basic topology;

[0106] an acquisition module configured to acquire training data for a circuit performance model; wherein the training data includes a mapping relationship between the design parameters and circuit simulation performance, wherein the circuit simulation performance is a simulation performance of a circuit obtained by performing a hybrid simulation using the design parameters, wherein the hybrid simulation is based on at least two simulation methods, including but not limited to a SPICE simulation method and an AMS simulation method;

[0107] A training module is used to train the circuit performance model using the training data.

[0108] As an optional implementation, the acquisition module is further configured to:

[0109] Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided and SPICE transistor-level description and AMS behavioral-level description are selected respectively;

[0110] A parameterized circuit netlist is obtained using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

[0111] As an optional implementation, the acquisition module further includes a hybrid simulation unit, and the hybrid simulation unit is configured to:

[0112] retaining the SPICE simulation netlist of the target circuit module and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist;

[0113] A hybrid simulation is performed using the first hybrid netlist to obtain the circuit simulation performance.

[0114] As an optional implementation, for a low dropout linear regulator LDO circuit, the non-target circuit module includes a bandgap reference BandGap circuit module; for a phase-locked loop PLL circuit, the non-target circuit module includes a voltage-controlled oscillator VCO and a frequency divider DIV.

[0115] As an optional implementation, the AMS behavioral level description adopts a Verilog-A model or a SystemVerilog model.

[0116] As an optional implementation, the training module is further used to: apply a machine learning method to train the circuit performance model, wherein the machine learning method uses a support vector machine, a Bayesian neural network or an artificial neural network to establish a regression or classification model for the circuit.

[0117] For the convenience and brevity of description, the specific working process and principle of the device of this embodiment can refer to the corresponding process of the method in Example 1, and will not be repeated here.

[0118] Example 3

[0119] like Figure 9 As shown, this embodiment discloses a circuit design method based on the circuit performance model constructed in Example 1, and the design method includes a front-end design process and a back-end design process;

[0120] The front-end design process includes: using the trained circuit performance model disclosed in the first embodiment above, continuously adjusting circuit design parameters until the design requirements are met;

[0121] The back-end design process includes:

[0122] Based on the circuit schematics designed by the front-end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing;

[0123] Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model;

[0124] The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

[0125] As an optional implementation manner, reconstructing the circuit performance model includes:

[0126] retaining the SPICE post-simulation netlist of the target circuit module and replacing the SPICE post-simulation netlist of the non-target circuit module with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist;

[0127] The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

[0128] To facilitate understanding of the circuit design method of this embodiment, the following Figure 10 The circuit design method is further explained.

[0129] like Figure 10 As shown, the overall circuit design process combines the model building method in Example 1 with the circuit design method in this embodiment. The overall design process can be divided into two parts: front-end design and back-end design. For ease of understanding, the model building method disclosed in Example 1 is incorporated into the front-end design, and a complete description of the overall circuit design process is given.

[0130] (1) Front-end design process:

[0131] a. According to the design requirements and performance indicators, select the basic topology of the circuit and the design parameters under this basic topology.

[0132] b. Based on the parameter value space and circuit characteristics, the circuit is functionally divided, and SPICE transistor-level description and AMS behavioral-level description are selected respectively;

[0133] c. Sample a large number of design parameter combinations, convert them into parameterized circuit netlists, obtain circuit simulation performance through SPICE and AMS hybrid simulation, and establish data mapping between circuit design parameters and circuit simulation performance;

[0134] d. Applying machine learning methods to train a performance model of the analog circuit, wherein the machine learning methods include artificial neural networks, support vector machines, or Bayesian neural networks;

[0135] e. Apply the trained circuit performance model and continuously adjust the circuit design parameters until the circuit design performance indicators are met.

[0136] The hybrid simulation in step c includes the following processes:

[0137] retaining the SPICE simulation netlist of the target circuit module and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist;

[0138] A hybrid simulation is performed using the first hybrid netlist to obtain the circuit simulation performance.

[0139] (2) Back-end design process:

[0140] f. Based on the circuit schematics designed by the front-end, complete the layout and routing of the analog integrated circuit layout, and extract the relevant parasitic parameters under the layout and routing;

[0141] g. Perform SPICE post-simulation including parasitic parameters to verify whether the simulation results meet the design requirements. If so, export the GDS file; if not, proceed to step c;

[0142] h. If the post-simulation result cannot meet the requirements, the SPICE post-simulation netlist of the key circuit module (i.e., the target circuit module) can be retained while replacing other circuit modules (i.e., the non-target circuit modules) with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist.

[0143] i. Then, a hybrid simulation is performed using the second hybrid netlist to generate new sample data, and the performance model of the circuit is further updated;

[0144] j. Use the updated circuit performance model to further optimize the circuit design until both the front-end and back-end designs meet the design requirements, completing the final analog integrated circuit design.

[0145] Among them, steps h and i are the process of reconstructing the circuit performance model in Example 3. Both the front-end and back-end design processes include the hybrid simulation process, and their design ideas are roughly the same, except that they use different hybrid netlists.

[0146] Example 4

[0147] like Figure 11 As shown in FIG. 1 , it is a diagram showing the relationship between the model building device in Example 2 and the circuit design device of this embodiment. Figure 11 A circuit design device based on a circuit performance model disclosed in this embodiment is described. The design device includes a front-end design module and a back-end design module.

[0148] The front-end design module is used in the front-end design process, which includes: using the trained circuit performance model disclosed in the apparatus of Example 2 to continuously adjust circuit design parameters until design requirements are met;

[0149] The back-end design module is used for the back-end design process, which includes:

[0150] Based on the circuit schematics designed by the front-end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing;

[0151] Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model;

[0152] The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

[0153] As an optional implementation manner, the back-end design module further includes a circuit performance model reconstruction unit, and the circuit performance model reconstruction unit is used to:

[0154] retaining the SPICE post-simulation netlist of the target circuit module and replacing the SPICE post-simulation netlist of the non-target circuit module with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist;

[0155] The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

[0156] For the convenience and brevity of description, the specific working process and principle of the device in this embodiment can refer to the corresponding process of the method in Example 3, and will not be repeated here.

[0157] Example 5

[0158] This embodiment discloses an electronic device, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the electronic device to execute a method as described in any one of the above-mentioned embodiments 1 or 3.

[0159] This embodiment further discloses a computer-readable medium, comprising a computer program. When the computer program is run on a computer, the computer is caused to execute the method as described in any one of the above-mentioned embodiments 1 or 3.

[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic device and computer-readable medium described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0161] Those skilled in the art will appreciate that the modules in the above-described device embodiments may be distributed throughout the device as described in the embodiments, or may be modified to include one or more devices unique to each embodiment. The modules in the above-described embodiments may be combined into one module or further divided into multiple submodules (units).

[0162] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a readable medium or on a network and includes several instructions to enable an electronic device (which can be a personal computer, server, mobile terminal, or network device, etc.) to execute the method according to the embodiments of the present application.

[0163] The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0164] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the scope of protection of the present application. Any technical solution that falls within the scope defined by the claims of the present invention falls within the scope of protection of the present invention.

Claims

1. A method for constructing a hybrid circuit performance model, characterized in that: The following steps are involved: Determine the basic topology of the circuit and the design parameters under the basic topology; Collecting training data of a circuit performance model; wherein the training data includes a mapping relationship, the mapping relationship is a mapping relationship between the design parameters and circuit simulation performance, the circuit simulation performance is a simulation performance of a circuit obtained by performing a hybrid simulation using the design parameters, and the hybrid simulation is based on a SPICE simulation method and an AMS simulation method; Training the circuit performance model using the training data; The hybrid simulation includes: retaining the SPICE simulation netlist of the target circuit module, and replacing the SPICE simulation netlist of the non-target circuit module with the AMS behavioral level description to form a first hybrid netlist; and performing hybrid simulation using the first hybrid netlist to obtain the circuit simulation performance.

2. The method for constructing a hybrid circuit performance model according to claim 1, characterized in that: The training data of the acquisition circuit performance model includes: Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided, and SPICE transistor-level description and AMS behavioral-level description are selected respectively; A parameterized circuit netlist is obtained by using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

3. The method for constructing a hybrid circuit performance model according to claim 1, characterized in that: For a low dropout linear regulator LDO circuit, the non-target circuit module includes a bandgap reference BandGap circuit module; for a phase-locked loop PLL circuit, the non-target circuit module includes a voltage-controlled oscillator VCO and a frequency divider DIV.

4. The method for constructing a hybrid circuit performance model according to claim 1, characterized in that: The AMS behavior level description adopts a Verilog-A model or a System Verilog model.

5. The method for constructing a hybrid circuit performance model according to any one of claims 1 to 4, characterized in that: The training of the circuit performance model includes applying a machine learning method to train the circuit performance model, wherein the machine learning method uses a support vector machine, a Bayesian neural network or an artificial neural network to establish a regression or classification model for the circuit.

6. A hybrid circuit performance model construction device, characterized in that: The device includes: A parameter determination module, used to determine the basic topology of the circuit and the design parameters under the basic topology; An acquisition module, used for acquiring training data of a circuit performance model; wherein the training data includes a mapping relationship, the mapping relationship is a mapping relationship between the design parameters and circuit simulation performance, the circuit simulation performance is a simulation performance of a circuit obtained by hybrid simulation using the design parameters, and the hybrid simulation is based on a SPICE simulation method and an AMS simulation method; A training module, used for training the circuit performance model using the training data; Among them, the acquisition module includes a hybrid simulation unit, which is used to: retain the SPICE simulation netlist of the target circuit module, and replace the SPICE simulation netlist of the non-target circuit module with an AMS behavioral level description to form a first hybrid netlist; use the first hybrid netlist to perform hybrid simulation to obtain the circuit simulation performance.

7. The hybrid circuit performance model construction device according to claim 6, characterized in that: The acquisition module is also used for: Based on the value space of the design parameters and the circuit characteristics, the circuit is functionally divided, and SPICE transistor-level description and AMS behavioral-level description are selected respectively; A parameterized circuit netlist is obtained by using multiple combinations of the design parameters, the circuit simulation performance is obtained through the hybrid simulation, and a mapping relationship between the design parameters and the circuit simulation performance is established; the hybrid simulation is a simulation method that combines the SPICE transistor-level description and the AMS behavioral-level description.

8. The hybrid circuit performance model construction device according to claim 6, characterized in that: For a low dropout linear regulator LDO circuit, the non-target circuit module includes a bandgap reference BandGap circuit module; for a phase-locked loop PLL circuit, the non-target circuit module includes a voltage-controlled oscillator VCO and a frequency divider DIV.

9. The hybrid circuit performance model construction device according to claim 6, characterized in that: The AMS behavior level description adopts a Verilog-A model or a System Verilog model.

10. The hybrid circuit performance model construction device according to any one of claims 6 to 9, characterized in that: The training module is also used to: apply a machine learning method to train the circuit performance model, and the machine learning method uses a support vector machine, a Bayesian neural network or an artificial neural network to establish a regression or classification model for the circuit.

11. A circuit design method based on a circuit performance model, characterized in that: The design method includes a front-end design process and a back-end design process; The front-end design process comprises: using the circuit performance model trained in the hybrid circuit performance model construction method according to any one of claims 1 to 5, continuously adjusting the circuit design parameters until the design requirements are met; The backend design process includes: Based on the circuit schematic designed by the front end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing; Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model; The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

12. The circuit design method based on the circuit performance model according to claim 11, characterized in that: The reconstructing the circuit performance model comprises: The SPICE post-simulation netlist of the target circuit module is retained, and the SPICE post-simulation netlist of the non-target circuit module is replaced with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist; The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

13. A circuit design device based on a circuit performance model, characterized in that: The design device includes a front-end design module and a back-end design module; The front-end design module is used in the front-end design process, and the front-end design process includes: using the circuit performance model trained in the hybrid circuit performance model construction device according to any one of claims 6 to 10, and continuously adjusting the circuit design parameters until the design requirements are met; The back-end design module is used for the back-end design process, and the back-end design process includes: Based on the circuit schematic designed by the front end, complete the layout and routing of the circuit layout, and extract the parasitic parameters under the layout and routing; Perform SPICE post-simulation including parasitic parameters to verify whether the post-simulation results meet the design requirements. If so, export the GDS file; if not, reconstruct the circuit performance model; The reconstructed circuit performance model is used to adjust the circuit design parameters again until the front-end design meets the design requirements, and the back-end design process is performed again until both the front-end and back-end designs meet the design requirements.

14. The circuit design device based on the circuit performance model according to claim 13, characterized in that: The back-end design module further includes a circuit performance model reconstruction unit, and the circuit performance model reconstruction unit is used to: The SPICE post-simulation netlist of the target circuit module is retained, and the SPICE post-simulation netlist of the non-target circuit module is replaced with the SPICE pre-simulation netlist or the AMS behavioral level description to form a second hybrid netlist; The second hybrid netlist is used to perform hybrid simulation to generate new sample data, and the circuit performance model is retrained using the new sample data.

15. An electronic device, characterized in that: include: one or more processors; One or more memories; the one or more memories store one or more computer programs, the one or more computer programs include instructions, when the instructions are executed by the one or more processors, the electronic device executes the method as described in any one of claims 1-5 or 11 or 12.

16. A computer readable medium, characterized in that The method comprises a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 5 or 11 or 12.