Voltage drop simulation method and device, electronic equipment and medium
By calculating the power current of the transistor and merging the parasitic model for simulation, the problem of voltage drop effect in the chip is solved, fast and accurate voltage drop simulation is achieved, and the reliability of the chip design is improved.
Patent Information
- Application Number
- CN202310398475.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-10
- Publication Date
- 2024-10-22
AI Technical Summary
In the semiconductor process, as the width of metal traces shrinks, the voltage drop (IR drop) effect becomes more and more obvious. As a result, the chip may not be able to obtain the required voltage during actual use, causing errors or stopping working. It is difficult with existing technology. Perform IR drop analysis quickly and efficiently.
By calculating the first power current of each transistor of the chip, an equivalent model is generated, the parasitic model of the power supply wiring is merged, a second equivalent model is established, and simulation is performed to obtain the second power current of the transistor and the voltage drop simulation result of the chip. .
It realizes the rapid acquisition of the voltage drop simulation results of the chip, reduces the simulation time, improves the reliability of the chip design, and avoids errors and shutdowns caused by the voltage drop effect.
Smart Images

Figure CN118821680A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to simulation technology, and in particular to a voltage drop simulation method, device, electronic equipment and medium. Background Art
[0002] With the development of integrated circuit technology, it is widely used in various fields. For example, dynamic random access memory (DRAM) is widely used.
[0003] With the continuous evolution of semiconductor technology, such as the narrower width of metal traces, the IR drop effect is becoming more and more obvious. Therefore, in order to improve the reliability of memory and avoid errors or cessation of operation due to the IR drop effect when the memory is actually used, IR drop analysis is required. Summary of the invention
[0004] Embodiments of the present application provide a voltage drop simulation method, device, electronic device, and medium.
[0005] According to some embodiments, the first aspect of the present application provides a voltage drop simulation method, including: for each transistor of the chip, according to the device parameters of the transistor, calculating the first power current of the transistor; generating an equivalent model of the transistor based on the first power current; and, according to the netlist of the chip and the equivalent model of the transistor, establishing a first equivalent model of the chip; generating a parasitic model of the power supply line of the chip, merging the parasitic model of the power supply line into the first equivalent model of the chip, to obtain a second equivalent model of the chip; and, by simulating the second equivalent model of the chip, obtaining the second power current of each transistor; according to the first power current and the second power current of each transistor of the chip, obtaining the voltage drop simulation result of the chip.
[0006] In some embodiments, for each transistor of the chip, a first power current of the transistor is calculated based on the device parameters of the transistor, including: for each transistor of the chip, obtaining the device parameters of the transistor; wherein the device parameters include the channel width-to-length ratio; and, based on the netlist of the chip, obtaining the voltage conditions applied to the transistor, the voltage conditions including the gate voltage, the drain voltage and the source voltage; based on the device parameters of the transistor and the voltage conditions applied to the transistor, the first power current of the transistor is calculated based on the drain current calculation formula.
[0007] In some embodiments, the equivalent model of the transistor is a current source model.
[0008] In some embodiments, a first equivalent model of a chip includes a first sub-model and a second sub-model; a first equivalent model of a chip is established according to a netlist of the chip and an equivalent model of a transistor, including: for a P-type transistor in the chip, determining a first power supply connected to a source of the P-type transistor; and, generating an equivalent model of the first power supply, and establishing a first sub-model based on an equivalent model of the first power supply voltage and an equivalent model of the P-type transistor; for an N-type transistor in the chip, determining a second power supply connected to a source of the N-type transistor; and, generating an equivalent model of the second power supply, and establishing a second sub-model based on an equivalent model of the second power supply and an equivalent model of the N-type transistor.
[0009] In some embodiments, in the first sub-model, the positive pole of the equivalent model of the first power supply is connected to the input end of the equivalent model of the P-type transistor, and the negative pole of the equivalent model of the first power supply and the output end of the equivalent model of the P-type transistor are grounded; in the second sub-model, the positive pole of the equivalent model of the second power supply is connected to the input end of the equivalent model of the N-type transistor, and the negative pole of the equivalent model of the second power supply and the output end of the equivalent model of the N-type transistor are grounded.
[0010] In some embodiments, the equivalent model of the first power source and the equivalent model of the second power source are both voltage source models.
[0011] In some embodiments, the first power source is a working power source, and the second power source is a negative power source.
[0012] In some embodiments, a parasitic model of a power supply line of a chip is generated, and the parasitic model of the power supply line is merged into a first equivalent model of the chip to obtain a second equivalent model of the chip, including: extracting the parasitic resistance of the power supply line between adjacent nodes in the chip, generating an equivalent model of each parasitic resistance, and obtaining a parasitic model of the power supply line; on the power supply line between adjacent nodes in the first equivalent model of the chip, setting the parasitic model of the power supply line in series to obtain a second equivalent model of the chip.
[0013] In some embodiments, the equivalent model of the parasitic resistance is a resistance model.
[0014] In some embodiments, a voltage drop simulation result of the chip is obtained based on a first power current and a second power current of each transistor in the chip, including: determining a first node current flowing between adjacent nodes in the chip based on the first power current of each transistor in the chip; and, calculating a first voltage between adjacent nodes in the chip based on the first node current and resistance between adjacent nodes in the chip; determining a second node current flowing between adjacent nodes in the chip based on the second power current of each transistor in the chip; and, calculating a second voltage between adjacent nodes in the chip based on the second node current and resistance between adjacent nodes in the chip; calculating the difference between the first voltage and the second voltage to obtain a voltage drop simulation result between adjacent nodes in the chip; and, based on the voltage drop simulation result between adjacent nodes in the chip, integrating to obtain the voltage drop simulation result of the chip.
[0015] According to some embodiments, the second aspect of the present application provides a voltage drop simulation device, including: a calculation module, used to calculate the first power current of the transistor for each transistor of the chip according to the device parameters of the transistor; a modeling module, used to generate an equivalent model of the transistor based on the first power current; and, based on the netlist of the chip and the equivalent model of the transistor, establish a first equivalent model of the chip; the modeling module is also used to generate a parasitic model of the power supply line of the chip, merge the parasitic model of the power supply line into the first equivalent model of the chip, and obtain a second equivalent model of the chip; a simulation module, used to obtain the second power current of each transistor by simulating the second equivalent model of the chip; a processing module, used to obtain the voltage drop simulation result of the chip according to the first power current and the second power current of each transistor of the chip.
[0016] In some embodiments, the calculation module is specifically used to: obtain device parameters of the transistor for each transistor of the chip; wherein the device parameters include the channel width-to-length ratio; and, based on the netlist of the chip, obtain the voltage conditions applied to the transistor, wherein the voltage conditions include the gate voltage, the drain voltage, and the source voltage; and calculate the first power current of the transistor based on the drain current calculation formula according to the device parameters of the transistor and the voltage conditions applied to the transistor.
[0017] In some embodiments, the equivalent model of the transistor is a current source model.
[0018] In some embodiments, the first equivalent model of the chip includes a first sub-model and a second sub-model; the modeling module, when establishing the first equivalent model of the chip according to the netlist of the chip and the equivalent model of the transistor, is specifically used to: determine the first power supply connected to the source of the P-type transistor in the chip; and generate an equivalent model of the first power supply, and establish the first sub-model based on the equivalent model of the first power supply voltage and the equivalent model of the P-type transistor; determine the second power supply connected to the source of the N-type transistor in the chip; and generate an equivalent model of the second power supply, and establish the second sub-model based on the equivalent model of the second power supply and the equivalent model of the N-type transistor. Specifically, after generating the equivalent model of each transistor, determine the connection status of the input and output ends of the equivalent model of the P-type transistor and the N-type transistor, and then establish the equivalent model of the chip.
[0019] In some embodiments, in the first sub-model, the positive pole of the equivalent model of the first power supply is connected to the input end of the equivalent model of the P-type transistor, and the negative pole of the equivalent model of the first power supply and the output end of the equivalent model of the P-type transistor are grounded; in the second sub-model, the positive pole of the equivalent model of the second power supply is connected to the input end of the equivalent model of the N-type transistor, and the negative pole of the equivalent model of the second power supply and the output end of the equivalent model of the N-type transistor are grounded.
[0020] In some embodiments, the equivalent model of the first power source and the equivalent model of the second power source are both voltage source models.
[0021] In some embodiments, the first power source is a working power source, and the second power source is a negative power source.
[0022] In some embodiments, the modeling module, when generating a parasitic model of the power supply line of a chip, merges the parasitic model of the power supply line into the first equivalent model of the chip to obtain a second equivalent model of the chip, is specifically used to: extract the parasitic resistance of the power supply line between adjacent nodes in the chip, generate an equivalent model of each parasitic resistance, and obtain the parasitic model of the power supply line; on the power supply line between adjacent nodes in the first equivalent model of the chip, set the parasitic model of the power supply line in series to obtain the second equivalent model of the chip.
[0023] In some embodiments, the equivalent model of the parasitic resistance is a resistance model.
[0024] In some embodiments, the processing module is specifically used to: determine the first node current flowing between adjacent nodes in the chip based on the first power current of each transistor in the chip; and, based on the first node current and resistance between adjacent nodes in the chip, calculate the first voltage between adjacent nodes in the chip; determine the second node current flowing between adjacent nodes in the chip based on the second power current of each transistor in the chip; and, based on the second node current and resistance between adjacent nodes in the chip, calculate the second voltage between adjacent nodes in the chip; calculate the difference between the first voltage and the second voltage to obtain a voltage drop simulation result between adjacent nodes in the chip; and, based on the voltage drop simulation result between adjacent nodes in the chip, integrate to obtain the voltage drop simulation result of the chip.
[0025] According to some embodiments, a third aspect of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the foregoing method.
[0026] According to some embodiments, a fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above method.
[0027] In the voltage drop simulation method, device, electronic device and medium provided in the embodiment of the present application, the first power current of the transistor in the chip is obtained by calculation, and the first equivalent model of the chip is generated based on the power current of the transistor. The first equivalent model does not reflect the parasitic effect, and then the parasitic model of the power line is extracted and merged into the first equivalent model to obtain a second equivalent model reflecting the parasitic effect. The second equivalent model is simulated to obtain the second power current of the transistor, and finally the voltage drop simulation result of the chip is obtained based on the first power current and the second power current of the transistor. Through the above scheme, the voltage drop simulation result of the chip can be quickly obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the embodiments of the present application.
[0029] Figure 1 This is an example diagram of the chip manufacturing process;
[0030] Figure 2 This is an example of a pressure drop simulation process;
[0031] Figure 3 A flowchart of a pressure drop simulation method provided as an example;
[0032] Figure 4A flowchart of a pressure drop simulation method provided as an example;
[0033] Figure 5 is a flowchart of an exemplary pressure drop simulation method;
[0034] Figure 6 The first equivalent model is a process of establishing an example;
[0035] Figure 7 The following is an example diagram of a parasitic model of a power supply line;
[0036] Figure 8 is a flowchart of an exemplary pressure drop simulation method;
[0037] Fig. 9 is an example diagram of the process of establishing a second equivalent model of an example;
[0038] Fig.10 A structural example diagram of a pressure drop simulation device provided as an example;
[0039] Fig.11 This is a diagram showing an example structure of an electronic device provided in one embodiment.
[0040] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0041] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0042] The terms "including" and "having" in this application are used to express an open-ended inclusive meaning, and mean that there may be other elements / components / etc. in addition to the listed elements / components / etc.; the terms "first" and "second" are used only as marks or distinctions, and are not intended to limit the order or quantity of their objects. In addition, the different elements and regions in the drawings are only schematically shown, and are therefore not limited to the sizes or distances shown in the drawings.
[0043] The technical solution is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0044] Chip, also known as integrated circuit, microcircuit or microchip, can be understood as a miniaturized circuit. Specifically, a chip is often a part of a computer or electronic device, which performs calculations, processing tasks and storage functions, such as memory. Figure 1 This is an example diagram of the chip manufacturing process. Figure 1 As shown, the chip manufacturing process generally includes: chip design, wafer production, packaging production, cost testing and other links.
[0045] In order to improve the yield rate, during the chip design stage, simulations will be performed on the functions and performance of the chip, so as to optimize and adjust the chip design according to the simulation results. Among them, the IR Drop simulation can effectively reflect the voltage drop of the chip, so as to optimize and adjust the chip in the design stage to minimize the impact of the voltage drop effect on the chip performance. Specifically, the chip usually contains structures such as power routing and devices. Due to the presence of parasitic effects, such as parasitic parameters such as parasitic resistance, parasitic inductance, and parasitic capacitance, when the chip is working, when the current flows from the power output through the path to the module or device end, it will consume part of the energy to generate a voltage drop. If the voltage drop effect is too high, the actual voltage received by the module or device of the chip will be inconsistent with the designed voltage. Because the voltage required for normal operation cannot be obtained, the chip will have a logical error. In severe cases, it will cause the memory to stop working, so it is necessary to perform a voltage drop simulation during the chip design stage.
[0046] Figure 2 This is an example of a voltage drop simulation process. Based on the established full-chip model, a SPICE simulation is first performed to obtain the power waveform under the ideal state; then a full-chip model for physical simulation is established, the parasitic parameters of the full chip are extracted and superimposed on the chip model, and the full-chip model with superimposed parasitic parameters is simulated twice to obtain the power waveform under parasitic conditions; based on the power waveform under the ideal state and the power waveform under parasitic conditions, the voltage drop simulation results are analyzed. The above-mentioned example solution can realize voltage drop simulation, but considering that two simulations need to be performed in this solution, the simulation takes a long time. Some aspects of the embodiments of the present application involve the above considerations. The following is an example introduction to the solution in combination with some embodiments.
[0047] Embodiment 1
[0048] Figure 3 The flow chart of the pressure drop simulation method provided for an example is as follows: Figure 3 As shown, the voltage drop simulation method includes:
[0049] Step 101: For each transistor of the chip, a first power current of the transistor is calculated according to the device parameters of the transistor;
[0050] Step 102: Generate an equivalent model of the transistor based on the first power current; and establish a first equivalent model of the chip according to the netlist of the chip and the equivalent model of the transistor;
[0051] Step 103: Generate a parasitic model of the power supply wiring of the chip, merge the parasitic model of the power supply wiring into the first equivalent model of the chip, and obtain a second equivalent model of the chip; and obtain a second power current of each transistor by simulating the second equivalent model of the chip;
[0052] Step 104: Obtain a voltage drop simulation result of the chip according to the first power current and the second power current of each transistor of the chip.
[0053] In practical applications, the executor of this embodiment can be a voltage drop simulation device, and the implementation form of the device is not limited. For example, it can be implemented through a computer program, such as application software, etc.; or, it can also be implemented as a medium storing relevant computer programs, such as a U disk, cloud disk, etc.; or, it can also be implemented through a physical device integrated or installed with relevant computer programs, such as a chip, terminal, personal computer, etc.
[0054] Among them, transistors include but are not limited to Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). The device parameters of the transistor are used to calculate the power current of the transistor, where the power current refers to the current passing through the transistor under certain voltage conditions applied to the transistor. For example, the voltage condition may include the gate voltage, that is, the voltage applied to the gate of the transistor; the drain voltage, that is, the voltage applied to the drain of the transistor; and the source voltage, that is, the voltage applied to the source of the transistor. Specifically, the voltage condition applied to the transistor can be determined based on the design circuit of the chip. In actual applications, the relevant information of the voltage condition can be obtained based on the design file of the chip, such as the netlist of the chip and the layout design file of the chip (for example, GDS file).
[0055] Specifically, the method for obtaining the power current is not limited. In one example, the power current of the transistor can be obtained based on the current calculation formula. Specifically, Figure 4 The flow chart of the pressure drop simulation method provided for an example is as follows: Figure 4 As shown, based on any example, step 101 may specifically include:
[0056] Step 201: for each transistor of the chip, obtaining device parameters of the transistor; wherein the device parameters include a channel width-to-length ratio; and, according to a netlist of the chip, obtaining voltage conditions applied to the transistor, wherein the voltage conditions include a gate voltage, a drain voltage, and a source voltage;
[0057] Step 202: Calculate and obtain a first power current of the transistor based on a drain current calculation formula according to device parameters of the transistor and voltage conditions applied to the transistor.
[0058] In this example, the power current of the transistor is calculated based on the drain current calculation formula. Taking a MOS transistor as an example, the drain current calculation formula is used to calculate the current passing through the transistor under certain voltage conditions according to the structural size of the MOS transistor. As an example, the drain current calculation formula is as follows:
[0059]
[0060] Among them, μ n is the carrier mobility, C ox is the capacitance of the gate insulating layer per unit area, is the channel width-to-length ratio, V GS is the gate-source voltage, V TH is the threshold voltage, V DS is the drain-source voltage. Specifically, C ox The unit area capacitance of the gate insulating layer can be obtained based on the calculation formula of the unit capacitance. The calculation formula of the unit capacitance is: Among them, ε ox is the dielectric constant of the gate insulating layer, t ox is the thickness of the gate insulating layer. Specifically, the gate-source voltage can be obtained based on the gate voltage and the source voltage, and the drain-source voltage can be obtained based on the drain voltage and the source voltage.
[0061] In one example, for the convenience of simulation, the equivalent model of the transistor is a current source model. By generating an equivalent model of the transistor for each transistor of the chip, a first equivalent model of the entire chip is established based on the equivalent model of the transistor and further combined with the connection relationship between the transistors. The first equivalent model established at this time is an equivalent model of the chip under ideal conditions, that is, a model without considering parasitic effects.
[0062] Specifically, based on the equivalent model of the transistor, the first equivalent model of the entire chip can be constructed in combination with the connection conditions of each transistor in the chip. In one example, based on the channel conductivity type of the transistor, for P-type transistors, such as PMOS transistors, and N-type transistors, such as NMOS transistors, a sub-model of the first equivalent model is constructed according to the connection conditions of the P-type transistors and the N-type transistors, so as to construct the first equivalent model of the chip through the sub-model. Combined with the above, as an example, Figure 5 FIG. 1 is a flow chart of an exemplary pressure drop simulation method, such as Figure 5 As shown, in step 102, a first equivalent model of the chip is established according to the netlist of the chip and the equivalent model of the transistor, which may specifically include:
[0063] Step 301: for a P-type transistor in a chip, determining a first power supply connected to a source of the P-type transistor; and generating an equivalent model of the first power supply, and establishing a first sub-model based on the equivalent model of the first power supply voltage and the equivalent model of the P-type transistor;
[0064] Step 302: for the N-type transistor in the chip, determine a second power supply connected to the source of the N-type transistor; and generate an equivalent model of the second power supply, and establish a second sub-model based on the equivalent model of the second power supply and the equivalent model of the N-type transistor.
[0065] Specifically, the first equivalent model of the chip includes a first sub-model and a second sub-model. The first sub-model is established based on the equivalent model of the P-type transistor and the connection relationship of the P-type transistor in the chip, and the second sub-model is established based on the equivalent model of the N-type transistor and the connection relationship of the N-type transistor in the chip. For ease of understanding, Figure 6 The establishment process of the first equivalent model is as follows: Figure 6 As shown, a two-stage inverter circuit is taken as an example. Figure 6 The circuit on the left side is a chip circuit, specifically including a first inverter 61 and a second inverter 62, each inverter is composed of a PMOS transistor and an NMOS transistor, that is, the first inverter 61 includes a PMOS transistor M0 and an NMOS transistor M2, the second inverter 62 includes a PMOS transistor M1 and an NMOS transistor M3, and the output end of the first inverter 61 is connected to the input end of the second inverter 62. Specifically, the gate of the PMOS transistor and the gate of the NMOS transistor in each inverter are connected together as the input end of the inverter, and the drain of the PMOS transistor and the drain of the NMOS transistor in the inverter are connected together as the output end of the inverter.
[0066] Combination Figure 6For example, an equivalent model of each transistor is generated for each transistor, such as a current source model, and then the connection status of each transistor is determined based on the chip netlist. Figure 6 The first equivalent model of the chip shown on the right side of the figure is an ideal model. The connection condition reflects the connection relationship between the terminals of the transistor. For example, Figure 6 Taking the first inverter 61 in the first inverter 61 as an example, the source of the PMOS transistor M0 in the first inverter 61 is connected to the working power supply VDD, and the source of the NMOS transistor M2 in the first inverter 61 is connected to the negative power supply VSS. Specifically, after generating the equivalent model of each transistor, the connection conditions of the input and output ends of the equivalent model of the P-type transistor and the N-type transistor are determined, and then the equivalent model of the chip is established.
[0067] In one example, in the first sub-model, the positive pole of the equivalent model of the first power supply is connected to the input end of the equivalent model of the P-type transistor, and the negative pole of the equivalent model of the first power supply and the output end of the equivalent model of the P-type transistor are grounded; in the second sub-model, the positive pole of the equivalent model of the second power supply is connected to the input end of the equivalent model of the N-type transistor, and the negative pole of the equivalent model of the second power supply and the output end of the equivalent model of the N-type transistor are grounded.
[0068] Specifically, in combination with the above example, the first sub-model is a sub-model established based on the equivalent model of the P-type transistor. For the input and output ends of the P-type transistor, combined with the connection relationship of the P-type transistor in the chip, the connection between the equivalent model of the P-type transistor and other models is established. In this example, the equivalent model of the signal or structure connected to the source of the P-type transistor is connected to the input end of the equivalent model of the P-type transistor. Figure 6 As shown, the source of the PMOS transistor M0 in the first inverter 61 is connected to the working power supply VDD. Correspondingly, in the first equivalent model, the input end of the equivalent model of the PMOS transistor M0 is connected to the positive electrode of the equivalent model of the working power supply VDD, and the output end of the equivalent model of the PMOS transistor M0 is connected to the negative electrode of the equivalent model of the working power supply VDD. In addition, the equivalent model of the signal or structure connected to the source of the N-type transistor is connected to the input end of the equivalent model of the N-type transistor. Figure 6 As shown, the source of the NMOS transistor M2 in the first inverter 61 is connected to the negative power supply VSS. Correspondingly, in the first equivalent model, the input end of the equivalent model of the NMOS transistor M2 is connected to the positive electrode of the equivalent model of the negative power supply VSS, and the output end of the equivalent model of the NMOS transistor M2 is connected to the negative electrode of the equivalent model of the negative power supply VSS.
[0069] For the convenience of simulation, in one example, the equivalent model of the power supply can be a voltage source model. The power supply here includes but is not limited to VDD and VSS, etc. In combination with the above, as an example, the equivalent model of the first power supply and the equivalent model of the second power supply are both voltage source models. By establishing an equivalent model of the power supply, an equivalent model of the chip can be established for the equivalent model of the transistor based on the connection relationship between the transistor and the power supply in the chip. In addition, considering the working characteristics of the P-type transistor and the N-type transistor, the connection adaptation between different types of transistors and various types of power supplies, based on the above example, in one example, the first power supply is the working power supply, and the second power supply is the negative power supply. Specifically, due to the different voltage conditions of the P-type transistor and the N-type transistor, for example, the opening condition of the P-type transistor is that the gate voltage is lower than the source voltage to a certain extent, and the opening condition of the N-type transistor is that the gate voltage is higher than the source voltage to a certain extent, so through the above example, the working characteristics of the transistor can be better adapted, which is suitable for the connection of the equivalent model of most transistors, thereby quickly establishing the equivalent model of the chip.
[0070] Combined with the above, after establishing the first equivalent model of the chip, it is necessary to establish the second equivalent model of the chip. The second equivalent model reflects the parasitic effects. The parasitic effects here include but are not limited to the voltage drop on the power line. Especially for chips, the design of the power network must fully consider the influence of factors such as voltage loss. For example, in the integrated circuit of the chip, due to the high integration and rich connection relationships between structures, the power line usually has the characteristics of long path and narrow line width. At this time, the resistance of the line cannot be completely ignored, and it is necessary to fully consider the electrical loss of the signal from one end of the line to the other end. Combined with Figure 7 For example, Figure 7 The following is an example of a parasitic model of a power supply line. Figure 7 The left side of the figure shows the power routing in a certain area of a chip. For each section of the power routing, the parasitic effects of each section are as follows: Figure 7 As shown in the right figure, each segment of the line has parasitic parameters (parasitic resistance is used as an example in the figure), which will have a parasitic effect on the electrical signal transmitted in the segment of the line, such as voltage loss. For example, assuming that the original voltage received at one end of a segment of the line is 3.3 volts (V), when this original voltage is transmitted through the segment of the line to the other end of the line, due to the parasitic effect on the line, the actual voltage received by the device connected to the other end of the line is 2.5V, and the voltage drop effect is 25%. It can be seen that in the chip field, especially in digital circuits, the size of the voltage, especially the voltage of the power supply, affects the on and off state of the transistor, so the parasitic effect may affect whether the entire chip can work normally.
[0071] Therefore, during the chip design phase, it is necessary to perform voltage drop simulation on the chip at any time. In one example, Figure 8FIG. 1 is a flow chart of an exemplary pressure drop simulation method, such as Figure 8 As shown, based on any example, in step 103, a parasitic model of the power supply line of the chip is generated, and the parasitic model of the power supply line is merged into the first equivalent model of the chip to obtain a second equivalent model of the chip, which may specifically include:
[0072] Step 401: extracting the parasitic resistance of the power supply wiring between adjacent nodes in the chip, generating an equivalent model of each parasitic resistance, and obtaining a parasitic model of the power supply wiring;
[0073] Step 402: On a power line between adjacent nodes in a first equivalent model of the chip, a parasitic model of the power line is set in series to obtain a second equivalent model of the chip.
[0074] Specifically, in this example, the parasitic resistance of each section of the power routing in the chip is extracted for the voltage drop simulation requirement. As an example, the power routing layout of the chip can be obtained by reading the GDS file of the chip. Based on the power routing layout, the parasitic resistance of the power routing between adjacent nodes in the chip can be obtained. The node here refers to a certain position in the chip circuit, such as each end of the transistor or the via connecting different layers, etc., and the node selection method is not restricted here. As an example, when selecting a node, it can be determined in combination with each connecting line in the first equivalent model, such as corresponding the two ends of each connecting line in the first equivalent model to the position on the power routing, and defining it as a node, so as to facilitate the subsequent merging of the parasitic model of the power routing into the first equivalent model to establish a second equivalent model.
[0075] After obtaining the parasitic resistance of the power supply traces between adjacent nodes, an equivalent model of each parasitic resistance is generated, such as Figure 7 As shown, for the power routing in the left figure, a parasitic model of the power routing shown in the right figure is generated. Specifically, the parasitic resistance of each section of the power routing in the left figure corresponds to the equivalent model of the parasitic resistance in the parasitic model in the right figure. In one example, in order to accurately reflect the parasitic effect of voltage drop, the equivalent model of parasitic resistance is a resistance model. Further, the parasitic model of the power routing is merged into the first equivalent model. The merging method is to replace each section of the connection in the first equivalent model with a connection with a corresponding resistance model in series to obtain a second equivalent model. Still combined with the aforementioned Figure 6 The circuit of the example is used as an example. Fig. 9 FIG. 1 is an example diagram of the establishment process of the second equivalent model as an example, Fig. 9 As shown, based on the first equivalent model under ideal conditions and the parasitic model of the power supply line, a second equivalent model reflecting the parasitic effect is obtained by merging. It should be noted that the figure is only a schematic diagram and does not limit the correspondence between each segment of the line in the first equivalent model in the figure and each segment of the line in the parasitic model of the power supply line.
[0076] Subsequently, after obtaining the second equivalent model, a simulation can be performed based on the second equivalent model to obtain the power current of each transistor under the condition of considering parasitic effects, that is, the second power current. Combined with the ideal case obtained by the above calculation, that is, the first power current of each transistor without considering parasitic effects, the voltage drop simulation result is obtained. As an example, based on any example, step 104 may specifically include:
[0077] Determine a first node current flowing between adjacent nodes in the chip according to a first power current of each transistor in the chip; and calculate a first voltage between adjacent nodes in the chip according to the first node current and resistance between adjacent nodes in the chip;
[0078] Determine a second node current flowing between adjacent nodes in the chip according to a second power current of each transistor in the chip; and calculate a second voltage between adjacent nodes in the chip according to the second node current and resistance between adjacent nodes in the chip;
[0079] The difference between the first voltage and the second voltage is calculated to obtain a voltage drop simulation result between adjacent nodes in the chip; and the voltage drop simulation result of the chip is integrated according to the voltage drop simulation result between adjacent nodes in the chip.
[0080] Specifically, the first power current of the transistor is calculated based on the device parameters, which is the current flowing through the transistor in an ideal state. Based on the current flowing through the transistor in an ideal state, the current on each segment of the line between adjacent nodes can be inferred. Figure 6 Assume that the first power current of transistor M0 is 1A and the first power current of transistor M1 is 1.5A, and set the output end of the working power supply VDD and the sources of transistor M0 and transistor M1 to be nodes. Based on the above example conditions, the set nodes correspond to Figure 6In the first equivalent model shown on the right, it can be seen that the positive pole (position A) of the equivalent model of the working power supply VDD, the input end (position B) of the equivalent model of transistor M0, and the input end (position C) of the equivalent model of transistor M1 are all nodes, and the adjacent nodes are position A and position B, and position B and position C. For the adjacent nodes, position A and position B, it can be obtained that the first node current between position A and position B is the sum of the first power currents of transistor M0 and transistor M1, that is, 2.5A. For the adjacent nodes, position B and position C, it can be obtained that the first node current between position B and position C is the first power current of transistor M1, that is, 1.5A. It can be understood that since the first equivalent model is an ideal chip model without considering parasitic effects, the first node current in the routing between adjacent nodes obtained based on the first power current of each transistor also does not consider parasitic effects.
[0081] Afterwards, the voltage difference between the two ends of each routing section, i.e., the first voltage, is obtained according to the first node current of each routing section; the voltage difference between the two ends of each routing section, i.e., the second voltage, is obtained according to the second node current of each routing section. Among them, the second node current is obtained based on the second power current of each transistor, and the second power current is obtained based on the simulation of the second equivalent model considering the parasitic effect, so it can reflect the parasitic effect. Then, according to the ideal state and the voltage between the two ends of each routing section considering the parasitic effect, i.e., the first voltage and the second voltage, the voltage drop of each routing section is obtained. Finally, according to the voltage drop of each routing section, the voltage drop result of the entire chip is integrated. In practical applications, the resistance of each routing section can be determined based on the material, conductive parameters and size of the routing section.
[0082] In the present embodiment, based on the first power current and the second power current of the transistor, the voltage drop simulation result of the chip is obtained by calculation. Only one simulation is needed to obtain the voltage drop simulation result of the chip, thereby realizing fast voltage drop simulation. It is especially suitable for the early stage of chip design. At this time, the layout design of the power routing is more concentrated. According to the scheme of the present embodiment, there is no need to perform two simulations, but only one simulation is needed to realize the voltage drop simulation, thereby effectively reducing the time consumption of the voltage drop simulation and realizing fast simulation.
[0083] In the voltage drop simulation method provided in this embodiment, the first power current of the transistor in the chip is obtained by calculation, and the first equivalent model of the chip is generated based on the power current of the transistor. The first equivalent model does not reflect parasitic effects, and then the parasitic model of the power line is extracted and merged into the first equivalent model to obtain a second equivalent model reflecting parasitic effects. The second equivalent model is simulated to obtain the second power current of the transistor, and finally the voltage drop simulation result of the chip is obtained based on the first power current and the second power current of the transistor. Through the above scheme, the voltage drop simulation result of the chip can be quickly obtained.
[0084] Embodiment 2
[0085] Fig.10 The structural example diagram of the pressure drop simulation device provided for an example is as follows: Fig.10 As shown, the pressure drop simulation device includes:
[0086] A calculation module 11 is used for calculating a first power current of each transistor of the chip according to a device parameter of the transistor;
[0087] A modeling module 12, configured to generate an equivalent model of the transistor based on the first power current; and to establish a first equivalent model of the chip according to the netlist of the chip and the equivalent model of the transistor;
[0088] The modeling module 12 is further used to generate a parasitic model of the power supply wiring of the chip, and merge the parasitic model of the power supply wiring into the first equivalent model of the chip to obtain a second equivalent model of the chip;
[0089] A simulation module 13, configured to obtain a second power current of each transistor by simulating a second equivalent model of the chip;
[0090] The processing module 14 is used to obtain a voltage drop simulation result of the chip according to the first power current and the second power current of each transistor of the chip.
[0091] In practical applications, the implementation form of the voltage drop simulation device is not limited. For example, it can be implemented through a computer program, such as application software, etc.; or, it can be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can be implemented through a physical device that integrates or installs relevant computer programs, such as a chip, a terminal, a personal computer, etc.
[0092] Among them, transistors include but are not limited to Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). Power current refers to the current passing through the transistor under the condition of applying a certain voltage to the transistor. In practical applications, relevant information about voltage conditions can be obtained based on the chip design files, such as the chip netlist and the chip layout design files (for example, GDS files).
[0093] Specifically, the method for obtaining the power current is not limited. In one example, based on any example, the calculation module 11 is specifically used to: obtain the device parameters of the transistor for each transistor of the chip; wherein the device parameters include the channel width-to-length ratio; and, according to the netlist of the chip, obtain the voltage conditions applied to the transistor, the voltage conditions include the gate voltage, the drain voltage, and the source voltage; according to the device parameters of the transistor and the voltage conditions applied to the transistor, based on the drain current calculation formula, calculate and obtain the first power current of the transistor.
[0094] As an example, the drain current calculation formula is as follows:
[0095]
[0096] Among them, μ n is the carrier mobility, C ox is the capacitance of the gate insulating layer per unit area, is the channel width-to-length ratio, V GS is the gate-source voltage, V TH is the threshold voltage, V DS is the drain-source voltage. Specifically, C ox The unit area capacitance of the gate insulating layer can be obtained based on the calculation formula of the unit capacitance. The calculation formula of the unit capacitance is: Among them, ε ox is the dielectric constant of the gate insulating layer, t ox is the thickness of the gate insulating layer.
[0097] In one example, for the convenience of simulation, the equivalent model of the transistor is a current source model. By generating an equivalent model of the transistor for each transistor of the chip, a first equivalent model of the entire chip is established based on the equivalent model of the transistor and further combined with the connection relationship between the transistors.
[0098] In one example, based on the channel conductivity type of the transistor, for P-type transistors, such as PMOS transistors, and N-type transistors, such as NMOS transistors, respectively, according to the connection conditions of the P-type transistors and the N-type transistors, a sub-model of the first equivalent model is constructed, so as to construct a first equivalent model of the chip through the sub-model. As an example, the first equivalent model of the chip includes a first sub-model and a second sub-model. The modeling module 12, when establishing the first equivalent model of the chip according to the netlist of the chip and the equivalent model of the transistor, is specifically used to: for the P-type transistor in the chip, determine the first power supply connected to the source of the P-type transistor; and, generate an equivalent model of the first power supply, and establish the first sub-model based on the equivalent model of the first power supply voltage and the equivalent model of the P-type transistor; for the N-type transistor in the chip, determine the second power supply connected to the source of the N-type transistor; and, generate an equivalent model of the second power supply, and establish the second sub-model based on the equivalent model of the second power supply and the equivalent model of the N-type transistor. Specifically, after generating the equivalent model of each transistor, the connection conditions of the input and output ends of the equivalent model of the P-type transistor and the N-type transistor are determined, and then the equivalent model of the chip is established.
[0099] In one example, in the first sub-model, the positive pole of the equivalent model of the first power supply is connected to the input end of the equivalent model of the P-type transistor, and the negative pole of the equivalent model of the first power supply and the output end of the equivalent model of the P-type transistor are grounded; in the second sub-model, the positive pole of the equivalent model of the second power supply is connected to the input end of the equivalent model of the N-type transistor, and the negative pole of the equivalent model of the second power supply and the output end of the equivalent model of the N-type transistor are grounded.
[0100] For the convenience of simulation, in one example, the equivalent model of the power supply can be a voltage source model. The power supply here includes but is not limited to VDD and VSS, etc. In combination with the foregoing, as an example, the equivalent model of the first power supply and the equivalent model of the second power supply are both voltage source models. By establishing an equivalent model of the power supply, an equivalent model of the chip can be established for an equivalent model of the transistor based on the connection relationship between the transistor and the power supply in the chip. In addition, taking into account the working characteristics of P-type transistors and N-type transistors, the connection adaptation between different types of transistors and various types of power supplies, based on the foregoing example, in one example, the first power supply is the working power supply, and the second power supply is the negative power supply. Through the above example, the working characteristics of the transistor can be better adapted, which is suitable for the connection of the equivalent models of most transistors, thereby quickly establishing an equivalent model of the chip.
[0101] In one example, based on any example, the modeling module 12, when generating a parasitic model of the power supply line of the chip, merges the parasitic model of the power supply line into the first equivalent model of the chip to obtain the second equivalent model of the chip, is specifically used to: extract the parasitic resistance of the power supply line between adjacent nodes in the chip, generate an equivalent model of each parasitic resistance, and obtain the parasitic model of the power supply line; on the power supply line between adjacent nodes in the first equivalent model of the chip, set the parasitic model of the power supply line in series to obtain the second equivalent model of the chip.
[0102] As an example, the power routing layout of the chip can be obtained by reading the GDS file of the chip. Based on the power routing layout, the parasitic resistance of the power routing between adjacent nodes in the chip can be obtained. The node here refers to a certain position in the chip circuit, such as the ends of the transistor or the vias connecting different layers, etc., and the selection method of the node is not restricted here. In one example, in order to accurately reflect the parasitic effect of the voltage drop, the equivalent model of the parasitic resistance is a resistance model.
[0103] After obtaining the second equivalent model, the voltage drop simulation result can be obtained based on the second power current and the first power current of the transistor. As an example, based on any example, the processing module 14 is specifically used to: determine the first node current flowing between adjacent nodes in the chip according to the first power current of each transistor in the chip; and, according to the first node current and resistance between adjacent nodes in the chip, calculate the first voltage between adjacent nodes in the chip; determine the second node current flowing between adjacent nodes in the chip according to the second power current of each transistor in the chip; and, according to the second node current and resistance between adjacent nodes in the chip, calculate the second voltage between adjacent nodes in the chip; calculate the difference between the first voltage and the second voltage to obtain the voltage drop simulation result between adjacent nodes in the chip; and, according to the voltage drop simulation result between adjacent nodes in the chip, integrate to obtain the voltage drop simulation result of the chip.
[0104] In the voltage drop simulation device provided by this embodiment, the calculation module calculates and obtains the first power current of the transistor in the chip, the modeling module generates the first equivalent model of the chip based on the power current of the transistor, and the first equivalent model does not reflect the parasitic effect, then the modeling module extracts the parasitic model of the power line and merges it into the first equivalent model to obtain the second equivalent model reflecting the parasitic effect, the simulation module simulates the second equivalent model to obtain the second power current of the transistor, and finally the processing module obtains the voltage drop simulation result of the chip based on the first power current and the second power current of the transistor. Through the above scheme, the voltage drop simulation result of the chip can be quickly obtained.
[0105] Embodiment 3
[0106] Fig.11The structure of an electronic device provided by an embodiment is shown as an example. Fig.11 As shown, the electronic equipment includes:
[0107] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, the memory 292, and the communication interface 293 may communicate with each other through the bus 294. The communication interface 293 may be used for information transmission. The processor 291 may call the logic instructions in the memory 292 to execute the method of the above embodiment.
[0108] In addition, the logic instructions in the above-mentioned memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0109] The memory 292 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 291 executes the software programs, instructions, and modules stored in the memory 292 to perform functional applications and data processing, that is, to implement the methods in the above method embodiments.
[0110] The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 292 may include a high-speed random access memory and may also include a non-volatile memory.
[0111] An embodiment of the present disclosure provides a non-transitory computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.
[0112] Embodiment 4
[0113] This embodiment provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the method provided by any embodiment of the present application.
[0114] Embodiment 5
[0115] This embodiment provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0116] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0117] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A voltage drop simulation method, characterized in that: include: For each transistor of the chip, a first power current of the transistor is calculated according to a device parameter of the transistor; generating an equivalent model of the transistor based on the first power current; and establishing a first equivalent model of the chip according to a netlist of the chip and the equivalent model of the transistor; Generate a parasitic model of the power supply line of the chip, merge the parasitic model of the power supply line into the first equivalent model of the chip, and obtain a second equivalent model of the chip; and obtain a second power current of each transistor by simulating the second equivalent model of the chip; A voltage drop simulation result of the chip is obtained according to the first power current and the second power current of each transistor of the chip.
2. The method according to claim 1, characterized in that: The step of calculating, for each transistor of the chip, a first power current of the transistor according to a device parameter of the transistor comprises: For each transistor of the chip, obtain device parameters of the transistor; wherein the device parameters include a channel width-to-length ratio; and, according to a netlist of the chip, obtain voltage conditions applied to the transistor, wherein the voltage conditions include a gate voltage, a drain voltage, and a source voltage; According to the device parameters of the transistor and the voltage conditions applied to the transistor, based on the drain current calculation formula, the first power current of the transistor is calculated and obtained.
3. The method according to claim 1, characterized in that The equivalent model of the transistor is a current source model.
4. The method according to claim 1, characterized in that: The first equivalent model of the chip includes a first sub-model and a second sub-model; and establishing the first equivalent model of the chip according to the netlist of the chip and the equivalent model of the transistor includes: For a P-type transistor in the chip, determining a first power supply connected to a source of the P-type transistor; and generating an equivalent model of the first power supply, and establishing the first sub-model based on the equivalent model of the first power supply voltage and the equivalent model of the P-type transistor; For the N-type transistor in the chip, determine a second power supply connected to the source of the N-type transistor; and generate an equivalent model of the second power supply, and establish the second sub-model based on the equivalent model of the second power supply and the equivalent model of the N-type transistor.
5. The method according to claim 4, characterized in that In the first sub-model, the positive electrode of the equivalent model of the first power supply is connected to the input end of the equivalent model of the P-type transistor, and the negative electrode of the equivalent model of the first power supply and the output end of the equivalent model of the P-type transistor are grounded; In the second sub-model, the positive electrode of the equivalent model of the second power supply is connected to the input end of the equivalent model of the N-type transistor, and the negative electrode of the equivalent model of the second power supply and the output end of the equivalent model of the N-type transistor are grounded.
6. The method according to claim 5, characterized in that The equivalent model of the first power supply and the equivalent model of the second power supply are both voltage source models.
7. The method according to claim 5, characterized in that The first power supply is a working power supply, and the second power supply is a negative power supply.
8. The method according to claim 1, characterized in that Generating a parasitic model of the power supply line of the chip, merging the parasitic model of the power supply line into the first equivalent model of the chip to obtain a second equivalent model of the chip, includes: Extracting the parasitic resistance of the power supply wiring between adjacent nodes in the chip, generating an equivalent model of each parasitic resistance, and obtaining a parasitic model of the power supply wiring; On the power supply lines between adjacent nodes in the first equivalent model of the chip, a parasitic model of the power supply lines is set in series to obtain a second equivalent model of the chip.
9. The method according to claim 8, characterized in that The equivalent model of the parasitic resistance is a resistance model.
10. The method according to any one of claims 1 to 9, characterized in that: The step of obtaining a voltage drop simulation result of the chip according to a first power current and a second power current of each transistor of the chip comprises: Determine a first node current flowing between adjacent nodes in the chip according to a first power current of each transistor in the chip; and calculate a first voltage between adjacent nodes in the chip according to the first node current and resistance between adjacent nodes in the chip; Determine a second node current flowing between adjacent nodes in the chip according to a second power current of each transistor in the chip; and calculate a second voltage between adjacent nodes in the chip according to the second node current and resistance between adjacent nodes in the chip; The difference between the first voltage and the second voltage is calculated to obtain a voltage drop simulation result between adjacent nodes in the chip; and, based on the voltage drop simulation result between adjacent nodes in the chip, the voltage drop simulation result of the chip is integrated to obtain.
11. A pressure drop simulation device, characterized in that: include: A calculation module, configured to calculate, for each transistor of the chip, a first power current of the transistor according to a device parameter of the transistor; A modeling module, configured to generate an equivalent model of the transistor based on the first power current; and to establish a first equivalent model of the chip according to a netlist of the chip and the equivalent model of the transistor; The modeling module is further used to generate a parasitic model of the power supply wiring of the chip, and merge the parasitic model of the power supply wiring into the first equivalent model of the chip to obtain a second equivalent model of the chip; A simulation module, used for simulating a second equivalent model of the chip to obtain a second power current of each transistor; The processing module is used to obtain a voltage drop simulation result of the chip according to a first power current and a second power current of each transistor of the chip.
12. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 10 when executed by a processor.
