Chip power network voltage drop measurement method, device and chip
By obtaining the output frequency and voltage of the chip in the standby state, and combining the measured frequency and voltage frequency curve, the target power supply network voltage drop is calculated, which solves the problems of voltage drop estimation error and low efficiency in the existing technology, and realizes the chip power supply network voltage drop. Efficient and accurate measurement.
Patent Information
- Application Number
- CN202410643458.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In the existing technology, the estimated value of the voltage drop of the chip power supply network has a large deviation, and the determination efficiency is low, which affects the performance of the transistor.
By obtaining the output frequency and output voltage of the chip when it is in standby state, determine the voltage-frequency curve, and when the external power supply voltage remains unchanged, measure the measured frequency under heavy load or standby state, and calculate the target power supply network based on the voltage-frequency curve. Voltage drop, the ring oscillation circuit and processing module are used to achieve efficient and accurate measurement of voltage drop.
It achieves fast, real-time and accurate measurement of the voltage drop of the chip power network, avoids errors in model estimation, and improves the efficiency of voltage reaching the transistor.
Smart Images

Figure CN118226116B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a method, a device and a chip for measuring a voltage drop of a chip power supply network. Background Art
[0002] Modern ultra-large-scale digital integrated circuits contain a large number of transistors. When the chip is under heavy load, a large operating current will be generated. Due to the presence of resistance in the power network in the chip, a large operating current will generate a large voltage drop on the power network in the chip. The voltage drop is the voltage difference between the chip's external pins or the power feedback ball (Feedbackball) and the transistor in the area to be observed. The voltage drop causes the voltage value reaching the transistor in the area to be observed to be lower than the preset voltage value, thereby affecting the performance of the transistor in the area to be observed. In order to increase the voltage reaching the transistor, it is necessary to determine the voltage drop corresponding to the power network of the chip under heavy load.
[0003] In the prior art, a power network model is generally constructed by collecting data to estimate the voltage drop of the power network. However, the estimated value has a large deviation and the power network model construction cycle is long, resulting in low efficiency in determining the voltage drop. Summary of the invention
[0004] The present invention provides a method, device and chip for measuring the voltage drop of a chip power supply network, so as to solve the defects in the prior art that the estimated value of the voltage drop corresponding to the power supply network has a large deviation and a low determination efficiency, and realizes efficient and accurate measurement of the voltage drop in the power supply network on the chip.
[0005] The present invention provides a method for measuring a voltage drop of a chip power supply network, comprising:
[0006] Acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage;
[0007] When the external power supply voltage of the chip remains unchanged, the measured frequency corresponding to the area to be measured in the chip is obtained; the measured frequency includes the heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment;
[0008] Based on the measured frequency and the voltage-frequency curve, a target voltage drop of the power supply network corresponding to the area to be measured is determined.
[0009] According to the chip power network voltage drop measurement method provided by the present invention, when the measured frequency includes the heavy load measurement frequency, determining the target voltage drop of the power network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0010] Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a first output voltage corresponding to when the chip is in a heavy load state;
[0011] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0012] An absolute value of a difference between the second output voltage and the first output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
[0013] According to the chip power network voltage drop measurement method provided by the present invention, when the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining the target voltage drop of the power network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0014] Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a third output voltage corresponding to when the chip is in the second standby state;
[0015] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0016] An absolute value of a difference between the third output voltage and the second output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
[0017] According to the chip power network voltage drop measurement method provided by the present invention, when the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining the target voltage drop of the power network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0018] Based on the voltage-frequency curve, respectively determining a second output voltage corresponding to the heavy-load measurement frequency and a fourth output voltage corresponding to the second standby measurement frequency;
[0019] An absolute value of a difference between the fourth output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the area to be tested.
[0020] According to the chip power network voltage drop measurement method provided by the present invention, the voltage frequency curve corresponding to the area to be measured on the chip is determined based on the at least two groups of first standby output frequencies and first standby output voltages, including:
[0021] The at least two groups of first standby output frequencies and first standby output voltages are subjected to data fitting to determine a voltage-frequency curve corresponding to the area to be tested on the chip.
[0022] The present invention also provides a device for measuring the voltage drop of a chip power supply network, comprising:
[0023] A first acquisition module, used to acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip when the chip is in a first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage;
[0024] A second acquisition module is used to acquire a measured frequency corresponding to the area to be measured in the chip when the external power supply voltage of the chip remains unchanged; the measured frequency includes a heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment;
[0025] A determination module is used to determine a target voltage drop of the power supply network corresponding to the area to be measured based on the measured frequency and the voltage-frequency curve.
[0026] The present invention also provides a chip, comprising:
[0027] A ring oscillation circuit, wherein the ring oscillation circuit is arranged in the area to be measured, the power supply end of the ring oscillation circuit is connected to the power supply network corresponding to the area to be measured, and the output end of the ring oscillation circuit is connected to the frequency measurement component, and the ring oscillation circuit is used to output a first standby output frequency corresponding to the chip in the first standby state and a measured frequency corresponding to the area to be measured in the chip, wherein the measured frequency includes a heavy load measurement frequency corresponding to the chip in the heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to the chip in the second standby state;
[0028] A processing module, wherein the processing module is respectively connected to the ring oscillation circuit and the frequency measurement component, and the processing module is used to send an enable control signal to the ring oscillation circuit, and is also used to execute the chip power network voltage drop measurement method as described in any one of the above items.
[0029] According to the chip provided by the present invention, the ring oscillator circuit includes a ring oscillator, the input end of the ring oscillator is connected to the processing module, and the output end of the ring oscillator serves as the output end of the ring oscillator circuit.
[0030] According to the chip provided by the present invention, the ring oscillator includes an AND gate and an odd-numbered inverter, the first input end of the AND gate is connected to the processing module, and the first input end of the AND gate is used to receive an enable control signal sent by the processing module, the second input end of the AND gate is connected to the output end of the odd-numbered inverter, and the output end of the AND gate is connected to the input end of the odd-numbered inverter; the odd-numbered inverter includes an odd number of inverters connected in series in sequence.
[0031] According to the chip provided by the present invention, the ring oscillation circuit further comprises a clock divider, the input end of the clock divider is connected to the output end of the ring oscillator, and the output end of the clock divider serves as the output end of the ring oscillation circuit.
[0032] According to the chip provided by the present invention, the ring oscillation circuit further includes a buffer, the output end of the clock divider is connected to the input end of the buffer, and the output end of the buffer serves as the output end of the ring oscillation circuit.
[0033] The present invention provides a method, device and chip for measuring the voltage drop of a chip power supply network. When obtaining at least two groups of first standby output frequencies and first standby output voltages corresponding to a chip in a first standby state, the first standby output voltage is determined as the voltage of a transistor corresponding to a region to be measured by utilizing the characteristic that the voltage drop on the power supply network in the standby state is extremely small. The voltage-frequency curve corresponding to the region to be measured is accurately determined based on the at least two groups of first standby output frequencies and the first standby output voltage. Afterwards, when the external power supply voltage of the chip remains unchanged, the actual measured frequency corresponding to the region to be measured in the chip is utilized, that is, the heavy load measurement frequency when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to the chip in a second standby state, as well as the voltage-frequency curve, to determine the target voltage drop of the power supply network corresponding to the region to be measured. The voltage-frequency curve and the actual measurement value are combined to determine the voltage drop of the power supply network in real time and quickly, and errors in model estimation are avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 It is a flow chart of a method for measuring a voltage drop of a chip power supply network provided by an embodiment of the present invention;
[0036] Figure 2 is a schematic diagram of chip packaging provided by an embodiment of the present invention;
[0037] Figure 3 It is a schematic diagram of the structure of a device for measuring a voltage drop of a chip power supply network provided by an embodiment of the present invention;
[0038] Figure 4 is a schematic diagram of the structure of a chip provided by an embodiment of the present invention;
[0039] Figure 5 is a schematic structural diagram of a ring oscillation circuit provided by an embodiment of the present invention;
[0040] Figure 6 It is a schematic diagram of an equivalent structure of a ring oscillator provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] In view of the problem that the estimated value of the voltage drop corresponding to the power supply network in the prior art has a large deviation and a low determination efficiency, an embodiment of the present invention provides a method for measuring the voltage drop of a chip power supply network. Figure 1 FIG. 1 is a flow chart of a method for measuring a voltage drop of a chip power supply network provided by an embodiment of the present invention. Figure 1 As shown, the method includes:
[0043] Step 110, obtaining at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and determining a voltage-frequency curve corresponding to the test area on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize the mapping relationship between the first standby output frequency and the first standby output voltage.
[0044] It should be noted that Figure 2 is a schematic diagram of the chip packaging provided by an embodiment of the present invention, such as Figure 2 It is described that when the chip is in the first standby state, the standby output frequency is the frequency corresponding to the area to be tested measured from the output end of the ring oscillator circuit on the chip, and the ring oscillator circuit shares the same power supply network with the area to be tested. The standby output voltage is the voltage measured from the power feedback solder ball on the chip, and the power feedback solder ball is connected to the area to be tested through the BGA (Ball Grid Array, solder ball array package) substrate, C4 bump, and interconnection layer in sequence. When the chip is in the first standby state, most of the internal circuits and functional modules in the chip are in a closed state or low power consumption mode to reduce energy consumption. Therefore, the workload of the chip is greatly reduced in the first standby state, and the current flowing through the power supply network corresponding to the area to be tested is also reduced accordingly, so that there is basically no voltage drop on the power supply network. This means that when the chip is in the first standby state, the standby output voltage can be understood as the voltage of the transistor to be tested corresponding to the area to be tested.
[0045] In addition, the embodiment of the present invention can also be applied to large-scale chips, and the packaging structure corresponding to the large-scale chips is similar to Figure 2 The difference of the package structure shown is that a silicon interposer is also provided between the C4 protrusion and the BGA substrate. In this large-scale chip, the power feedback solder ball can be connected to the area to be tested through the BGA substrate, the silicon interposer, the C4 protrusion, and the interconnection layer in sequence.
[0046] It should be noted that in the embodiment of the present invention, two stages are included, and step 110 belongs to the first stage. In the first stage, when the chip is in the first standby state, multiple sets of first standby output frequencies and first standby output voltages are obtained as much as possible, and the voltage-frequency curve is obtained by fitting the multiple sets of first standby output frequencies and first standby output voltages. The more data of the first standby output frequency and the first standby output voltage are obtained, the closer the chip voltage-frequency characteristics reflected by the fitted voltage-frequency curve are to the actual situation, and thus the prediction of the target voltage drop is more accurate.
[0047] Specifically, after determining at least two groups of first standby output frequencies and first standby output voltages, a fitting function is obtained by fitting, and the fitting function reflects the mapping relationship between the first standby output frequency and the first standby output voltage, that is, the voltage-frequency curve corresponding to the measured area is determined.
[0048] Further, the determining of the voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages includes:
[0049] The at least two groups of first standby output frequencies and first standby output voltages are subjected to data fitting to determine a voltage-frequency curve corresponding to the area to be tested on the chip.
[0050] Specifically, after determining at least two groups of first standby output frequencies and first standby output voltages, a data fitting method is adopted to select a fitting model to fit the first standby output frequency and the first standby output voltage, and a fitting function that reflects the mapping relationship between the first standby output frequency and the first standby output voltage is obtained by fitting. The fitting function is the calculation formula of the voltage-frequency curve corresponding to the measured area.
[0051] Optionally, the fitting model may include a linear model, a polynomial model, an exponential model, a logarithmic model, etc., preferably a second-order polynomial model, that is, the highest order term is 2.
[0052] Step 120: Under the condition that the external power supply voltage of the chip remains unchanged, obtain the measured frequency corresponding to the area to be measured in the chip; the measured frequency includes the heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment.
[0053] Specifically, step 120 belongs to the measurement phase in the second phase. In the measurement phase, the measured frequency corresponding to the measured area is measured from the output end of the ring oscillator circuit while the external power supply voltage of the chip remains unchanged. The measured frequency may include the heavy load measurement frequency output by the ring oscillator circuit when the chip is in a heavy load state, or the second standby measurement frequency corresponding to the second standby state and the heavy load measurement frequency corresponding to the heavy load state obtained by switching the chip between the second standby state and the heavy load state respectively while the external power supply voltage remains unchanged.
[0054] It should be noted that when measuring in the second stage, the external power supply voltage of the chip needs to remain unchanged, and it is ensured that the chip can work normally in the second standby state and the heavy load state under this external power supply voltage. The specific value of the external power supply voltage can be obtained through experiments.
[0055] Step 130: Determine a target voltage drop of the power supply network corresponding to the area to be tested based on the measured frequency and the voltage-frequency curve.
[0056] Further, when the measured frequency includes the heavy load measurement frequency, determining the target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0057] Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a first output voltage corresponding to when the chip is in a heavy load state;
[0058] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0059] An absolute value of a difference between the second output voltage and the first output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
[0060] Specifically, the first method for calculating the target voltage drop of the power supply network corresponding to the area to be tested according to the measured frequency and the voltage-frequency curve is: when the external power supply voltage of the chip remains unchanged, while measuring the corresponding heavy-load measurement frequency when the chip is in a heavy-load state, the corresponding first output voltage is measured from the power feedback solder ball. Since the current flowing through the power supply network increases when the chip is in a heavy-load state, the voltage drop on the power supply network increases. At this time, the first output voltage is not equal to the voltage of the transistor to be tested corresponding to the area to be tested, that is, when the voltage drop on the power supply network increases, the first output voltage is almost unaffected, while the voltage of the transistor to be tested corresponding to the area to be tested is greatly affected. Afterwards, the heavy-load measurement frequency is substituted into the fitting function corresponding to the voltage-frequency curve, and the second output voltage corresponding to the heavy-load measurement frequency is calculated. The second output voltage can be understood as the voltage of the transistor to be tested corresponding to the area to be tested when the chip is in a heavy-load state. After determining the first output voltage and the second output voltage, the difference between the first output voltage and the second output voltage is calculated, and the absolute value of the difference is determined as the target voltage drop of the power supply network corresponding to the area to be tested.
[0061] It should be noted that when solving the second output voltage through the fitting function, it is necessary to combine the voltage frequency curve and the actual situation to determine whether the solution of the fitting function is a voltage value. For example, the voltage frequency curve is obtained by fitting a quadratic polynomial. Since a quadratic equation has two solutions, when calculating the second output voltage corresponding to the heavy load measurement frequency, it is necessary to combine the voltage frequency curve to select a solution that conforms to the actual situation as the second output voltage.
[0062] Further, in a case where the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining the target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0063] Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a third output voltage corresponding to when the chip is in the second standby state;
[0064] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0065] An absolute value of a difference between the third output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the tested area.
[0066] Specifically, the second method for calculating the target voltage drop of the power supply network corresponding to the area to be measured based on the measured frequency and the voltage-frequency curve is: while measuring the second standby measurement frequency corresponding to the second standby state when the chip is in the second standby state, measure the third output voltage corresponding to the second standby state from the power feedback solder ball. Since the external power supply voltage of the chip remains unchanged, the difference between the third output voltage measured in the second standby state and the first output voltage measured in the heavy load state is very small, so the third output voltage is equivalent to the first output voltage. Afterwards, the heavy load measurement frequency is substituted into the fitting function corresponding to the voltage-frequency curve, the second output voltage corresponding to the heavy load measurement frequency is calculated, the difference between the third output voltage and the second output voltage is calculated, and the absolute value of the difference is determined as the target voltage drop of the power supply network corresponding to the area to be measured.
[0067] Further, in a case where the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining the target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes:
[0068] Based on the voltage-frequency curve, respectively determining a second output voltage corresponding to the heavy-load measurement frequency and a fourth output voltage corresponding to the second standby measurement frequency;
[0069] An absolute value of a difference between the fourth output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the area to be tested.
[0070] Specifically, the third method for calculating the target voltage drop of the power supply network corresponding to the measured area according to the measured frequency and the voltage-frequency curve is as follows: after measuring the second standby measurement frequency and the heavy-load measurement frequency, the second standby measurement frequency and the heavy-load measurement frequency can be respectively substituted into the fitting function corresponding to the voltage-frequency curve to calculate the second output voltage corresponding to the heavy-load measurement frequency and the fourth output voltage corresponding to the second standby measurement frequency. The fourth output voltage can be understood as the voltage of the transistor to be measured corresponding to the measured area in the second standby state. Since there is almost no voltage drop on the power supply network in the second standby state, the fourth output voltage is equivalent to the third output voltage mentioned above, and the third output voltage is equivalent to the first output voltage, so the fourth output voltage is equivalent to the first output voltage. Afterwards, the difference between the fourth output voltage and the second output voltage is calculated, and the absolute value of the difference is determined as the target voltage drop of the power supply network corresponding to the measured area.
[0071] In addition, since there is almost no voltage drop on the power network in the second standby state, the fourth output voltage can be directly measured from the power feedback solder ball while measuring the second standby measurement frequency.
[0072] The chip power network voltage drop measurement method provided by the embodiment of the present invention obtains at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and uses the characteristic that the voltage drop on the power network in the standby state is extremely small to determine the first standby output voltage as the voltage of the transistor corresponding to the area to be measured, and accurately determines the voltage-frequency curve corresponding to the area to be measured based on the at least two groups of first standby output frequencies and the first standby output voltage. Afterwards, when the external power supply voltage of the chip remains unchanged, the actual measured frequency corresponding to the area to be measured in the chip is used, that is, the heavy load measurement frequency when the chip is in the heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to the chip in the second standby state, and the voltage-frequency curve are used to determine the target voltage drop of the power network corresponding to the area to be measured. In combination with the voltage-frequency curve and the actual measurement value, the voltage drop of the power network is determined in real time and quickly, and the error of model estimation is avoided.
[0073] The device for measuring the voltage drop of a chip power network provided by the present invention is described below. The device for measuring the voltage drop of a chip power network described below and the method for measuring the voltage drop of a chip power network described above can be referred to each other.
[0074] The embodiment of the present invention also provides a device for measuring the voltage drop of a chip power supply network. Figure 3is a schematic diagram of the structure of a device for measuring a voltage drop of a chip power supply network provided by an embodiment of the present invention, such as Figure 3 As shown, the chip power network voltage drop measurement device 300 includes: a first acquisition module 310, a second acquisition module 320 and a determination module 330, wherein:
[0075] The first acquisition module 310 is used to acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip when the chip is in the first standby state, and determine the voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize the mapping relationship between the first standby output frequency and the first standby output voltage;
[0076] A second acquisition module 320 is used to acquire a measured frequency corresponding to the area to be measured in the chip when the external power supply voltage of the chip remains unchanged; the measured frequency includes a heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment;
[0077] The determination module 330 is used to determine a target voltage drop of the power supply network corresponding to the area to be measured based on the measured frequency and the voltage-frequency curve.
[0078] The chip power supply network voltage drop measurement device provided by the embodiment of the present invention obtains at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and uses the characteristic that the voltage drop on the power supply network in the standby state is extremely small to determine the first standby output voltage as the voltage of the transistor corresponding to the area to be measured, and accurately determines the voltage-frequency curve corresponding to the area to be measured based on the at least two groups of first standby output frequencies and the first standby output voltage. Afterwards, when the external power supply voltage of the chip remains unchanged, the actual measured frequency corresponding to the area to be measured in the chip is used, that is, the heavy load measurement frequency when the chip is in the heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to the chip in the second standby state, and the voltage-frequency curve are used to determine the target voltage drop of the power supply network corresponding to the area to be measured. In combination with the voltage-frequency curve and the actual measurement value, the voltage drop of the power supply network is determined in real time and quickly, and the error of model estimation is avoided.
[0079] Optionally, the first acquisition module 310 is specifically configured to:
[0080] The at least two groups of first standby output frequencies and first standby output voltages are subjected to data fitting to determine a voltage-frequency curve corresponding to the area to be tested on the chip.
[0081] Optionally, the determination module 330 is specifically configured to:
[0082] When the measured frequency includes the heavy-load measurement frequency and the external power supply voltage of the chip remains unchanged, obtaining a first output voltage corresponding to when the chip is in a heavy-load state;
[0083] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0084] An absolute value of a difference between the second output voltage and the first output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
[0085] Optionally, the determination module 330 is specifically configured to:
[0086] When the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, and the external power supply voltage of the chip remains unchanged, obtaining a third output voltage corresponding to when the chip is in the second standby state;
[0087] Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency;
[0088] An absolute value of a difference between the third output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the tested area.
[0089] Optionally, the determination module 330 is specifically configured to:
[0090] In a case where the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, based on the voltage-frequency curve, respectively determining a second output voltage corresponding to the heavy load measurement frequency and a fourth output voltage corresponding to the second standby measurement frequency;
[0091] An absolute value of a difference between the fourth output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the area to be tested.
[0092] In addition, in the prior art, when measuring the target voltage drop corresponding to the power supply network corresponding to the area to be tested, a voltage monitoring module (Voltage Monitor, VM) is generally placed on the chip. The voltage monitoring module samples the voltage of the detection point through a probe, and measures the voltage value of the detection point through the analog-to-digital converter in the voltage monitoring module and sends it to the outside of the chip, thereby obtaining the actual voltage of the detection point, and determining the target voltage drop corresponding to the power supply network based on the actual voltage. However, since the voltage monitoring module contains analog circuits, the requirements for the power supply environment in which it is placed are relatively high, that is, the voltage monitoring module needs to be placed in a power supply environment without interference or with less interference. Secondly, when the chip area is large, the voltage monitoring module cannot detect the voltage in a distant area, and the analog-to-digital converter in the voltage detection module is large in area, occupying a larger area resource on the chip.
[0093] In view of the above problems in the prior art, an embodiment of the present invention further provides a chip. Figure 4 is a schematic diagram of the structure of a chip provided by an embodiment of the present invention, such as Figure 4 As shown, the chip 400 includes:
[0094] A ring oscillator circuit 410, wherein the ring oscillator circuit 410 is arranged in the area to be tested, the power supply end of the ring oscillator circuit 410 is connected to the power supply network corresponding to the area to be tested, and the output end of the ring oscillator circuit 410 is connected to the frequency measurement component 430, and the ring oscillator circuit 410 is used to output a first standby output frequency corresponding to the chip 400 when it is in the first standby state and a measured frequency corresponding to the area to be tested in the chip, wherein the measured frequency includes a heavy load measurement frequency corresponding to the chip in the heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to the chip in the second standby state;
[0095] The processing module 420 is connected to the ring oscillation circuit 410 and the frequency measurement component 430 respectively, and the processing module 420 is used to send an enable control signal EN to the ring oscillation circuit 410, and is also used to perform the method for measuring the voltage drop of the power supply network of the chip 400 as described in any one of the above items, the method comprising:
[0096] Acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip 400 when it is in the first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip 400 based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage;
[0097] When the external power supply voltage of the chip 400 remains unchanged, the measured frequency corresponding to the area to be measured in the chip 400 is obtained; the measured frequency includes the heavy load measurement frequency corresponding to when the chip 400 is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip 400 is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of the ring oscillation circuit 410 set on the area to be measured, and the ring oscillation circuit 410 and the area to be measured are in the same power supply network environment;
[0098] Based on the measured frequency and the voltage-frequency curve, a target voltage drop of the power supply network corresponding to the area to be measured is determined.
[0099] Specifically, in an embodiment of the present invention, the ring oscillator circuit 410 is set in the area to be measured, which can be a heavy load area or an area where the user wants to observe the target voltage drop. Afterwards, the power supply end of the ring oscillator circuit 410 is connected to the power supply network corresponding to the area to be measured, so that the ring oscillator circuit 410 and the area to be measured are in the same power supply network environment. In response to the user's measurement needs, an enable control signal EN can be sent to the ring oscillator circuit 410 through the processing module 420, and the ring oscillator circuit 410 is controlled to work through the enable control signal EN. The ring oscillator circuit 410 can generate a periodic square wave signal when working, and the frequency of the square wave signal changes with the voltage, that is, when the voltage increases, the delay of the ring oscillator circuit 410 decreases, so that the frequency of the square wave signal increases; when the voltage decreases, the delay of the ring oscillator circuit 410 increases, so that the frequency of the square wave signal decreases. When the chip 400 is in a standby state, the ring oscillator circuit 410 can generate a standby square wave signal and transmit the standby square wave signal to the frequency measurement component 430. The frequency measurement component 430 can measure the standby output frequency corresponding to the standby square wave signal and feed the standby output frequency back to the processing module 420. When the chip 400 is in a heavy load state, the ring oscillator circuit 410 can generate a heavy load square wave signal and transmit the heavy load square wave signal to the frequency measurement component 430. The frequency measurement component 430 can measure the heavy load output frequency corresponding to the heavy load square wave signal and feed the heavy load output frequency back to the processing module 420. After receiving the standby output frequency and the heavy load output frequency fed back by the frequency measurement component 430, the processing module 420 can combine the standby output frequency and the heavy load output frequency and use the voltage-frequency characteristics of the ring oscillator circuit 410 to determine the target voltage drop of the power network corresponding to the measured area.
[0100] Optionally, the frequency measurement component 430 may include an oscilloscope, a frequency counter, a microcontroller unit (MCU), an FPGA (Field Programmable Gate Array), a logic analyzer, etc., which is not limited in the embodiment of the present invention.
[0101] further, Figure 5 is a schematic diagram of the structure of a ring oscillator circuit provided by an embodiment of the present invention, such as Figure 5 As shown, the ring oscillator circuit 410 includes a ring oscillator 411 and a clock divider 412, the input end of the ring oscillator 411 is connected to the processing module 420, the output end of the ring oscillator 411 is connected to the input end of the clock divider 412, and the output end of the clock divider 412 serves as the output end of the ring oscillator circuit 410.
[0102] Specifically, the ring oscillator circuit 410 includes a ring oscillator 411 (Ring Oscillator, ROSC) and a clock divider 412 (Clock Divider). The processing module 420 can send an enable control signal EN to the ring oscillator 411 to control the ring oscillator 411 to work and output a periodic square wave signal. However, since the frequency of the square wave signal is relatively high, it is difficult for the frequency measurement component 430 to directly measure the frequency. Therefore, after the ring oscillator 411 generates a square wave signal, the square wave signal is down-converted by the clock divider 412, and the down-converted square wave signal is output to the frequency measurement component 430, so that the frequency measurement component 430 can directly measure the frequency of the down-converted square wave signal, that is, directly measure the standby output frequency and the heavy load output frequency.
[0103] It should be noted that the ring oscillator 411 can adapt to a wider voltage range.
[0104] Further, Figure 6 is a schematic diagram of an equivalent structure of a ring oscillator provided in an embodiment of the present invention, such as Figure 6 As shown, the ring oscillator 411 includes an AND gate AND2 and an odd-numbered inverter 4111, the first input end of the AND gate AND2 is connected to the processing module 420, and the first input end of the AND gate AND2 is used to receive the enable control signal EN sent by the processing module 420, the second input end of the AND gate AND2 is connected to the output end of the odd-numbered inverter 4111, and the output end of the AND gate AND2 is connected to the input end of the odd-numbered inverter 4111; the odd-numbered inverter 4111 includes an odd number of inverters connected in series.
[0105] Specifically, the AND gate AND2 in the ring oscillator 411 serves as a control switch of the odd-numbered inverter 4111. The level state of the output signal of the AND gate AND2 is controlled by the enable control signal EN received at the first input terminal of the AND gate AND2, thereby controlling the odd-numbered inverter 4111 to oscillate. The odd-numbered inverter 4111 includes 2N+1 inverters connected in series in sequence, the input terminal of the first inverter serves as the input terminal of the odd-numbered inverter 4111, and two adjacent inverters are connected end to end, for example, the output terminal of the first inverter is connected to the input terminal of the second inverter, the output terminal of the second inverter is connected to the input terminal of the third inverter, ..., the output terminal of the 2Nth inverter is connected to the input terminal of the 2N+1th inverter, and the output terminal of the 2N+1th inverter serves as the output terminal of the odd-numbered inverter 4111, wherein N is an integer greater than or equal to 0. In the odd-numbered inverters 4111, each inverter will perform phase inversion on the output signal of the previous stage and introduce a certain transmission delay. After the output signal of AND gate AND2 is phase-inverted by the odd-numbered inverters 4111, the phase difference between the inverted signal and the output signal of AND gate AND2 is 180 degrees, resulting in phase imbalance. The unbalanced part of the signal is fed back to the second input terminal of AND gate AND2 as a feedback signal. There is a phase difference between the feedback signal and the enable control signal EN, thereby forming an alternation of positive feedback and negative feedback. This alternation causes the output signal of AND gate AND2 to be continuously inverted in the ring oscillator 411, generating a stable oscillation.
[0106] It should be noted that the frequency of oscillation in the ring oscillator 411 depends on the transmission delay corresponding to the odd-numbered inverters 4111 and the number of inverters.
[0107] For example, taking the effective level state of the enable control signal EN as a high level signal, in the initial state, the enable control signal EN input to the first input terminal of the AND gate AND2 is a low level signal, so that the output signal of the AND gate AND2 is a low level signal, and after the output signal is inverted by the odd-numbered inverter 4111, the output signal of the AND gate AND2 is switched from a low level signal to a high level signal, that is, the feedback signal fed back to the second input terminal of the AND gate AND2 by the odd-numbered inverter 4111 is a high level signal. Afterwards, when the user needs to determine the target voltage drop of the power network of the area to be tested, the processing module 420 outputs the enable control signal EN to the AND gate AND2, and the enable control signal EN is a high level signal. Since the enable control signal EN and the feedback signal are both high-level signals, the output signal of the AND gate AND2 is switched from a low-level signal to a high-level signal, and the odd-numbered inverter 4111 is controlled to oscillate. The output signal of the AND gate AND2 is switched from a high-level signal to a low-level signal after being inverted by the odd-numbered inverter 4111, that is, the feedback signal is switched from a high-level signal to a low-level signal. At the same time, the inverted signal is output to the input end of the clock divider 412.
[0108] It should be noted that Figure 6 Only an equivalent structure diagram of one type of ring oscillator is shown, and the embodiment of the present invention does not limit the equivalent structure of the ring oscillator.
[0109] Furthermore, the ring oscillation circuit 410 further includes a buffer, the output end of the clock divider 412 is connected to the input end of the buffer, and the output end of the buffer serves as the output end of the ring oscillation circuit 410 .
[0110] Specifically, after the clock divider 412 down-converts the inverted signal, in order to reduce the loss of the inverted signal during long-distance transmission and ensure the stability and quality of the inverted signal, a buffer may be connected to the output end of the clock divider 412 to enhance the strength of the inverted signal. At the same time, the buffer may also isolate the mutual influence between the ring oscillator 411 and the subsequent circuits, avoid oscillation instability caused by load changes or other factors of the subsequent circuits, and ensure the stability and reliability of the inverted signal.
[0111] The chip provided by the embodiment of the present invention flexibly places the ring oscillation circuit in the area to be tested, and the power supply end of the ring oscillation circuit is connected to the power supply network of the area to be tested, so that the ring oscillation circuit and the area to be tested are in the same power supply network environment. After the processing module sends an enable control signal EN to control the oscillation of the ring oscillation circuit, the ring oscillation circuit can accurately sense the standby output frequency and the heavy load output frequency corresponding to the power supply network, which is convenient for the frequency measurement component to perform measurement. At the same time, based on the connection between the frequency measurement component and the processing module, the processing module can determine the target voltage drop on the power supply network based on the measurement data, thereby saving the area resources of the chip and satisfying the measurement of the voltage drop in different areas on the chip.
[0112] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processing module, the computer can execute the chip power network voltage drop measurement method provided by the above methods, the method includes:
[0113] Acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage;
[0114] When the external power supply voltage of the chip remains unchanged, the measured frequency corresponding to the area to be measured in the chip is obtained; the measured frequency includes the heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment;
[0115] Based on the measured frequency and the voltage-frequency curve, a target voltage drop of the power supply network corresponding to the area to be measured is determined.
[0116] In another aspect, the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. The storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes. When the computer program is executed by the processing module, the chip power network voltage drop measurement method provided by the above methods is implemented, and the method includes:
[0117] Acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage;
[0118] When the external power supply voltage of the chip remains unchanged, the measured frequency corresponding to the area to be measured in the chip is obtained; the measured frequency includes the heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment;
[0119] Based on the measured frequency and the voltage-frequency curve, a target voltage drop of the power supply network corresponding to the area to be measured is determined.
[0120] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for measuring the voltage drop of a chip power supply network, characterized in that: include: Acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip in the first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage; When the external power supply voltage of the chip remains unchanged, the measured frequency corresponding to the area to be measured in the chip is obtained; the measured frequency includes the heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and the second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment; Based on the measured frequency and the voltage-frequency curve, a target voltage drop of the power supply network corresponding to the area to be measured is determined.
2. The method for measuring the voltage drop of a chip power supply network according to claim 1, characterized in that: In a case where the measured frequency includes the heavy load measurement frequency, determining the target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes: Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a first output voltage corresponding to when the chip is in a heavy load state; Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency; An absolute value of a difference between the second output voltage and the first output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
3. The method for measuring the voltage drop of a chip power supply network according to claim 1, characterized in that: In a case where the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining a target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes: Under the condition that the external power supply voltage of the chip remains unchanged, obtaining a third output voltage corresponding to when the chip is in the second standby state; Based on the voltage-frequency curve, determining a second output voltage corresponding to the heavy load measurement frequency; An absolute value of a difference between the third output voltage and the second output voltage is determined as a target voltage drop of the power supply network corresponding to the tested area.
4. The method for measuring the voltage drop of a chip power supply network according to claim 1, characterized in that: In a case where the measured frequency includes the heavy load measurement frequency and the second standby measurement frequency, determining a target voltage drop of the power supply network corresponding to the measured area based on the measured frequency and the voltage-frequency curve includes: Based on the voltage-frequency curve, respectively determining a second output voltage corresponding to the heavy-load measurement frequency and a fourth output voltage corresponding to the second standby measurement frequency; An absolute value of a difference between the fourth output voltage and the second output voltage is determined as a target voltage drop of a power supply network corresponding to the area to be tested.
5. The method for measuring the voltage drop of a chip power supply network according to any one of claims 1 to 4, characterized in that: The step of determining a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages includes: The at least two groups of first standby output frequencies and first standby output voltages are subjected to data fitting to determine a voltage-frequency curve corresponding to the area to be tested on the chip.
6. A device for measuring voltage drop of a chip power supply network, characterized in that: include: A first acquisition module, used to acquire at least two groups of first standby output frequencies and first standby output voltages corresponding to the chip when the chip is in a first standby state, and determine a voltage-frequency curve corresponding to the area to be tested on the chip based on the at least two groups of first standby output frequencies and first standby output voltages; the voltage-frequency curve is used to characterize a mapping relationship between the first standby output frequency and the first standby output voltage; A second acquisition module is used to acquire a measured frequency corresponding to the area to be measured in the chip when the external power supply voltage of the chip remains unchanged; the measured frequency includes a heavy load measurement frequency corresponding to when the chip is in a heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to when the chip is in a second standby state; the measured frequency and the standby output frequency are both output frequencies of a ring oscillation circuit set on the area to be measured, and the ring oscillation circuit and the area to be measured are in the same power supply network environment; A determination module is used to determine a target voltage drop of the power supply network corresponding to the area to be measured based on the measured frequency and the voltage-frequency curve.
7. A chip, characterized in that: include: A ring oscillation circuit, wherein the ring oscillation circuit is arranged in the area to be measured, the power supply end of the ring oscillation circuit is connected to the power supply network corresponding to the area to be measured, and the output end of the ring oscillation circuit is connected to the frequency measurement component, and the ring oscillation circuit is used to output a first standby output frequency corresponding to the chip in the first standby state and a measured frequency corresponding to the area to be measured in the chip, wherein the measured frequency includes a heavy load measurement frequency corresponding to the chip in the heavy load state, or the heavy load measurement frequency and a second standby measurement frequency corresponding to the chip in the second standby state; A processing module, wherein the processing module is respectively connected to the ring oscillation circuit and the frequency measurement component, and the processing module is used to send an enable control signal to the ring oscillation circuit, and is also used to execute the chip power network voltage drop measurement method as described in any one of claims 1-5.
8. The chip according to claim 7, characterized in that: The ring oscillator circuit comprises a ring oscillator, an input end of the ring oscillator is connected to the processing module, and an output end of the ring oscillator serves as an output end of the ring oscillator circuit.
9. The chip according to claim 8, characterized in that: The ring oscillator includes an AND gate and an odd-numbered inverter, wherein a first input end of the AND gate is connected to the processing module, and the first input end of the AND gate is used to receive an enable control signal sent by the processing module, a second input end of the AND gate is connected to an output end of the odd-numbered inverter, and an output end of the AND gate is connected to an input end of the odd-numbered inverter; the odd-numbered inverter includes an odd number of inverters connected in series.
10. The chip according to claim 8 or 9, characterized in that: The ring oscillation circuit further comprises a clock divider, an input end of the clock divider is connected to an output end of the ring oscillator, and an output end of the clock divider serves as an output end of the ring oscillation circuit.
11. The chip according to claim 10, characterized in that:The ring oscillation circuit further includes a buffer, the output end of the clock divider is connected to the input end of the buffer, and the output end of the buffer serves as the output end of the ring oscillation circuit.
