ON-CHIP VOLTAGE PREDICTION CIRCUIT BASED ON PARAMETERS OF POWER DELIVERY NETWORK

20260121406 ยท 2026-04-30

Assignee

Inventors

Cpc classification

International classification

Abstract

The provided is an on-chip voltage prediction circuit based on parameters of the chip's power delivery network. The circuit includes: an on-chip PDN impedance scanning module, an on-chip voltage monitoring module, an on-chip PDN parameter lookup table storage module, an on-chip predictive digital power meter, and an on-chip voltage prediction-calculation module. The circuit establishes a physical model that maps historical voltages and predicted current information to predicted voltage information. By quantizing the model and using the voltage monitoring circuit and the predictive digital power meter together, the provided implements on-chip deployment of the voltage prediction circuit, and effectively predicts future on-chip voltages.

Claims

1. An on-chip voltage prediction circuit based on parameters of a chip's power delivery network, comprising: an on-chip PDN impedance scanning module, configured to apply currents of different frequencies on a chip to obtain a PDN impedance-frequency curve; an on-chip voltage monitoring module, configured to monitor and record on-chip voltages at the currents of different frequencies in real time, obtain on-chip voltages corresponding to periodical variations of the currents, and output historical voltage code values; an on-chip PDN parameter lookup table storage module, configured to store on-chip PDN parameters obtained based on the on-chip voltages at the currents of different frequencies and a PDN impedance-frequency curve; an on-chip predictive digital power meter, configured to monitor an on-chip current in real time and output a predicted current code value; and an on-chip voltage prediction-calculation module, configured to receive the historical voltage code values output by the on-chip voltage monitoring module and the predicted current code value output by the on-chip predictive digital power meter, substitute the received historical voltage code values and the predicted current code value into an on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters, and calculate and output an on-chip voltage predicted code value.

2. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 1, wherein the on-chip PDN parameters are obtained by a host computer based on the on-chip voltages at the currents of different frequencies and the PDN impedance-frequency curve, and specifically, the host computer derives an effective value of the on-chip voltages at the currents of different frequencies and calculates an impedance value of PDN at different frequencies, fits a second-order impedance network transfer function formula that matches the PDN impedance-frequency curve, and extracts parameters in the second-order impedance network transfer function formula as the on-chip PDN parameters.

3. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 2, wherein a specific method for the host computer to derive the effective value of the on-chip voltages at the currents of different frequencies and calculates the impedance value of the PDN at different frequencies is: for an on-chip voltage U(f) at a frequency f, a half of a difference between a maximum value and a minimum value of the on-chip voltage U(f) at the frequency f is divided by a square root of 2 to obtain the effective value of the on-chip voltage at the frequency f, and the effective value of the on-chip voltage at the frequency f is divided by an effective value of a current at the frequency f to obtain the impedance value of the PDN at the frequency f.

4. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 3, wherein the fitting the second-order impedance network transfer function formula that matches the PDN impedance-frequency curve is specifically: transforming the second-order impedance network transfer function formula Z ( s ) = a 1 * s + a 2 s 2 + b 1 * s + b 2 that matches the PDN impedance-frequency curve based on a Laplace frequency transformation relationship to obtain a correspondence formula between impedance and frequency, and then fitting the second-order impedance network transfer function formula to each data point on the PDN impedance-frequency curve by use of a least square method to obtain parameters a1, a2, b1, and b2.

5. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 1, wherein the on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters is V.sub.dp[n]=c1*I.sub.d[n]+c2*I.sub.d[n1]+c3*I.sub.d[n2]d1*V.sub.dn[n1]d2*V.sub.dn[n2], wherein V.sub.dp[n] is a predicted voltage value at a time point n, I.sub.d[n] is a predicted current value at the time point n, I.sub.d[n1] is a predicted current value at a time point n1, I.sub.d[n2] is a predicted current value at a time point n2, V.sub.dn[n1] is a detected on-chip voltage value at the time point n1, and V.sub.dn[n2] is a detected on-chip voltage value at the time point n2; c1, c2, c3, d1, and d2 are parameters of a transfer function obtained by transforming a second-order impedance network transfer function formula into a discrete z-domain based on a bilinear transformation formula s = 2 T * z - 1 z + 1 ; c 1 = 2 a 1 T + a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 2 = 2 a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 3 = a 2 T 2 - 2 a 1 T b 2 T 2 + 2 b 1 T + 4 , d 1 = 2 b 2 T 2 - 8 b 2 T 2 + 2 b 1 T + 4 , and d 2 = b 2 T 2 - 2 b 1 T + 4 b 2 T 2 + 2 b 1 T + 4 , wherein T is one system clock period.

6. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 1, wherein the on-chip PDN impedance scanning module comprises: a configuration module, configured to control turn-on of each ring oscillator circuit in an artificial current load module; and the artificial current load module, comprising a user-definable number of ring oscillator circuits, and configured to simulate currents of different frequencies on a load as controlled by the configuration module.

7. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 1, wherein the on-chip voltage monitoring module comprises: a voltage-controlled oscillator, configured to map variations of the on-chip voltages at the currents of different frequencies to variations of a device delay; a code value sampling module, configured to sample signal flip positions on a voltage-controlled oscillator; and a quantization logic module, configured to count the signal flip positions on the voltage-controlled oscillator at a beginning of a sampling period, the signal flip positions on the voltage-controlled oscillator at an end of the sampling period, and a total number of oscillation cycles within one system clock period T, and output historical voltage code values.

8. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 1, wherein the on-chip predictive digital power meter comprises: a signal flip monitoring module deployed in each processor system and configured to monitor a flip state of a key signal in a pertinent processor system and output a flip monitoring result of the key signal in the pertinent processor system to a current calculation module in the pertinent processor system; the current calculation module deployed in each processor system and configured to multiply the flip monitoring result of the key signal in the pertinent processor system by a corresponding weight through a multiplier to obtain a current corresponding to a flip of each key signal, and sum currents corresponding to flips of all key signals by use of an adder tree to obtain a current value corresponding to the flip of the key signal on the pertinent processor system; and a current correction module, configured to add the current value corresponding to the flip of the key signal in each processor system and a current value on a clock tree to obtain a current of each processor, and sum currents of processors with active clocks to obtain a predicted current code value.

9. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 2, wherein the on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters is V.sub.dp[n]=c1*I.sub.d[n]+c2*I.sub.d[n1]+c3*I.sub.d[n2]d1*V.sub.dn[n1]d2*V.sub.dn[n2], wherein V.sub.dp[n] is a predicted voltage value at a time point n, I.sub.d[n] is a predicted current value at the time point n, I.sub.d[n1] is a predicted current value at a time point n1, I.sub.d[n2] is a predicted current value at a time point n2, V.sub.dn[n1] is a detected on-chip voltage value at the time point n1, and V.sub.dn[n2] is a detected on-chip voltage value at the time point n2; c1, c2, c3, d1, and d2 are parameters of a transfer function obtained by transforming a second-order impedance network transfer function formula into a discrete z-domain based on a bilinear transformation formula s = 2 T * z - 1 z + 1 ; c 1 = 2 a 1 T + a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 2 = 2 a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 3 = a 2 T 2 - 2 a 1 T b 2 T 2 + 2 b 1 T + 4 , d 1 = 2 b 2 T 2 - 8 b 2 T 2 + 2 b 1 T + 4 , and d 2 = b 2 T 2 - 2 b 1 T + 4 b 2 T 2 + 2 b 1 T + 4 , wherein T is one system clock period.

10. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 3, wherein the on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters is V.sub.dp[n]=c1*I.sub.d[n]+c2*I.sub.d[n1]+c3*I.sub.d[n2]d1*V.sub.dn[n1]d2*V.sub.dn[n2], wherein V.sub.dp[n] is a predicted voltage value at a time point n, I.sub.d[n] is a predicted current value at the time point n, I.sub.d[n1] is a predicted current value at a time point n1, I.sub.d[n2] is a predicted current value at a time point n2, V.sub.dn[n1] is a detected on-chip voltage value at the time point n1, and V.sub.dn[n2] is a detected on-chip voltage value at the time point n2; c1, c2, c3, d1, and d2 are parameters of a transfer function obtained by transforming a second-order impedance network transfer function formula into a discrete z-domain based on a bilinear transformation formula s = 2 T * z - 1 z + 1 ; c 1 = 2 a 1 T + a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 2 = 2 a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 3 = a 2 T 2 - 2 a 1 T b 2 T 2 + 2 b 1 T + 4 , d 1 = 2 b 2 T 2 - 8 b 2 T 2 + 2 b 1 T + 4 , and d 2 = b 2 T 2 - 2 b 1 T + 4 b 2 T 2 + 2 b 1 T + 4 , wherein T is one system clock period.

11. The on-chip voltage prediction circuit based on the parameters of the chip's power delivery network according to claim 4, wherein the on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters is V.sub.dp[n]=c1*I.sub.d[n]+c2*I.sub.d[n1]+c3*I.sub.d[n2]d1*V.sub.dn[n1]d2*V.sub.dn[n2], wherein V.sub.dp[n] is a predicted voltage value at a time point n, I.sub.d[n] is a predicted current value at the time point n, IA[n1] is a predicted current value at a time point n1, I.sub.d[n2] is a predicted current value at a time point n2, V.sub.dn[n1] is a detected on-chip voltage value at the time point n1, and V.sub.dn[n2] is a detected on-chip voltage value at the time point n2; c1, c2, c3, d1, and d2 are parameters of a transfer function obtained by transforming a second-order impedance network transfer function s = 2 T * z - 1 z + 1 ; c 1 = 2 a 1 T + a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 2 = 2 a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 3 = a 2 T 2 - 2 a 1 T b 2 T 2 + 2 b 1 T + 4 , d 1 = 2 b 2 T 2 - 8 b 2 T 2 + 2 b 1 T + 4 , and d 2 = b 2 T 2 - 2 b 1 T + 4 b 2 T 2 + 2 b 1 T + 4 , wherein T is one system clock period.

Description

DESCRIPTION OF THE DRAWINGS

[0019] FIG. 1 is a schematic diagram of an on-chip voltage prediction circuit based on parameters of the chip's power delivery network according to this application;

[0020] FIG. 2 is a schematic diagram of a physical model of an on-chip power delivery network according to this application;

[0021] FIG. 3 is a schematic diagram of an on-chip PDN impedance scanning module according to this application;

[0022] FIG. 4 is a schematic diagram of an on-chip voltage monitoring module according to this application;

[0023] FIG. 5 is a schematic diagram of an on-chip predictive digital power meter according to this application;

[0024] FIG. 6 is a circuit diagram of an on-chip voltage prediction-calculation module according to this application; and

[0025] FIG. 7 is a simulation effect diagram of on-chip voltage prediction according to this application.

SPECIFIC IMPLEMENTATIONS

[0026] In order to enable better understanding of the objective, structure, and functions of this application, the following describes an on-chip voltage prediction circuit based on parameters of the chip's power delivery network in this application in more detail with reference to the accompanying drawings.

[0027] FIG. 1 shows an on-chip voltage prediction circuit based on parameters of the chip's power delivery network. The on-chip voltage prediction circuit includes: an on-chip PDN impedance scanning module, an on-chip PDN parameter lookup table storage module, an on-chip voltage monitoring module, an on-chip predictive digital power meter, and an on-chip voltage prediction-calculation module. The on-chip PDN impedance scanning module is configured to apply currents of different frequencies on a chip to obtain a PDN impedance-frequency curve. The on-chip voltage monitoring module is configured to monitor and record on-chip voltages at the currents of different frequencies in real time, obtain on-chip voltages corresponding to periodical variations of the currents, and output historical voltage code values. The on-chip PDN parameter lookup table storage module is configured to store on-chip PDN parameters obtained based on the on-chip voltages at the currents of different frequencies and a PDN impedance-frequency curve. The on-chip predictive digital power meter is configured to monitor an on-chip current in real time and output a predicted current code value. The on-chip voltage prediction-calculation module is configured to receive the historical voltage code values output by the on-chip voltage monitoring module and the predicted current code value output by the on-chip predictive digital power meter, substitute the received historical voltage code values and the predicted current code value into an on-chip voltage prediction formula obtained by quantizing the on-chip PDN parameters, and calculate a predicted voltage code value of a digital system based on the on-chip voltage prediction formula. The on-chip PDN parameters are obtained by a host computer based on the on-chip voltages at the currents of different frequencies and a PDN impedance-frequency curve.

[0028] FIG. 2 is a schematic diagram of a physical model of an on-chip power delivery network. The upper part of FIG. 2 shows parasitic impedances encountered when an off-chip power supply is transmitted to different physical locations, where a regulated power supply typically adopts a switching power supply architecture, and an output end of the regulated power supply includes an inductor and a filter capacitor. From the regulated power supply to the power input of the chip, the power generally travels through a relatively long routing trace. To ensure that the power supplied to the chip is not adversely affected, a decoupling capacitor is typically disposed on a PCB board near the chip to prevent voltage fluctuations. During chip packaging, parasitic inductance and resistance are introduced by bonding wires and chip pins of the package. In addition, the parasitic capacitance introduced by on-chip devices and the on-chip decoupling capacitance are also non-negligible. The lower part of FIG. 2 shows a frequency characteristic curve of a PDN impedance of a typical processor. The impedance peak is exhibited at a frequency of approximately 100 MHz, and is primarily caused by the parasitic inductance of the package, the on-chip parasitic capacitance, and the decoupling capacitance. The voltage droop caused by this peak impedance is generally a maximum possible voltage droop on the chip, and a sufficient margin needs to be reserved at the chip design stage to accommodate this worst-case voltage droop. The s-domain second-order impedance network model transfer function of the power delivery network represented by this curve is

[00003] Z ( s ) = a 1 * s + a 2 s 2 + b 1 * s + b 2 .

A host computer transforms the second-order impedance network transfer function formula

[00004] Z ( s ) = a 1 * s + a 2 s 2 + b 1 * s + b 2

that matches the PDN impedance-frequency curve based on a Laplace frequency transformation relationship to obtain a correspondence formula between impedance and frequency, and then fits the PDN impedance-frequency curve to each data point by use of the least square method to obtain parameters a1, a2, b1, and b2 of the second-order impedance network transfer function formula. Subsequently, the on-chip voltage prediction-calculation module may transform the s-domain second-order impedance network transfer function formula into a discrete z-domain transfer function based on the bilinear transformation formula:

[00005] s = 2 T * z - 1 z + 1 ,

where T in the bilinear transformation formula is a clock period of a digital circuit system:

[00006] Z ( s ) = c 1 + c 2 * z - 1 + c 3 * z - 2 1 + d 1 * z - 1 + d 2 * z - 2 .

[0029] The on-chip PDN impedance scanning module simulates the currents of different frequencies on the load by use of a user-definable number of ring oscillator circuits on the chip by configuring the number of turned-on ring oscillators in different cycles. FIG. 3 is a schematic diagram of an on-chip PDN impedance scanning module. This module includes a configuration module and an M-stage artificial current load module. Each stage of the artificial current load module includes N inverters connected in a ring to 1 NAND gate, where N+1 is any odd number greater than 32. Another input end of the NAND gate serves as an enable signal. When the enable signal is 1, the artificial current load oscillates to generate a current load of a fixed magnitude. When the enable signal is 0, the ring oscillator is disabled to stop producing a current. By controlling the enable signal at each time point, different current magnitudes can be generated at different time points. The configuration module performs state configuration and includes a state machine, a counter, and a lookup table. First, a complete period of a sine signal with an amplitude of 0 to M is sampled at X evenly spaced points, and stored in the lookup table. The data in the lookup table is read at intervals of p points based on a configuration signal, to change the oscillation frequency of the configured current. Finally, the state machine and the counter determine the position of data in the lookup table, where the data corresponds to an enable signal output at the current time point. After being decoded, the enable signal corresponds to the number of turned-on artificial current loads of magnitudes of 0 to M.

[0030] The host computer derives an effective value of the voltage based on the on-chip voltage value at the currents of different frequencies recorded by the on-chip voltage monitoring module. The calculation formula of the effective value Ur(f) of the on-chip voltage at the frequency f is

[00007] Ur ( f ) = Um ( f ) 2 ,

where Um(f) is a half of the maximum value and the minimum value of the on-chip voltage at the detected frequency

[00008] f : Um ( f ) = max ( U ( f ) ) - min ( U ( f ) ) 2 .

The effective value of the on-chip voltage at the frequency f is divided by the effective value of the current at the frequency f to obtain a specific impedance of the power delivery network at the configured frequency f. The host computer transforms the s-domain second-order impedance network transfer function Z(s) of the power delivery network based on the Laplace frequency transformation relationship to obtain a correspondence formula between impedance and frequency, and fits the s-domain second-order impedance network model transfer function formula of the power delivery network by use of the least square method based on each data point (Zk, fk) on the impedance-frequency curve obtained through PDN scanning, so as to obtain the parameters a1, a2, b1, and b2, where s represents a Laplacian operator, Zk represents the impedance at the k.sup.th data point on the impedance-frequency curve, and fk represents the frequency at the k.sup.th data point on the impedance-frequency curve.

[0031] FIG. 4 is a schematic diagram of an on-chip voltage monitoring module. This module primarily includes a voltage-controlled ring oscillator, a cross-voltage-domain sampling module, and a quantization logic module. The finally output detected voltage code value, V.sub.dn, represents the quantized voltage value at the current time point. First, the voltage-controlled ring oscillator maps variations of the voltage to variations of a device delay. The cross-voltage-domain sampling module samples the flip positions of the ring oscillator, and then the quantization logic module counts the signal flip positions at the beginning of a sampling period, the signal flip positions at the end of the sampling period, the total number of oscillation cycles within one sampling period T, and ultimately outputs a voltage code value, V.sub.dn.

[0032] FIG. 5 is a schematic diagram of a predictive digital power meter module. The predictive digital power meter module circuit includes three parts: a signal flip monitoring module, a current calculation module, and a current correction module. For a multi-core digital system chip, each processor is configured with a signal flip monitoring module and a current calculation module. The signal flip monitoring module determines whether an input raw signal has flipped, and denotes the signal flip monitoring result as 1 or 0; and for a multi-bit signal, performs an OR operation on each signal flip monitoring result to determine whether the signal as a whole has flipped. The current calculation module multiplies the signal flip monitoring result by a corresponding weight by using a multiplier, and then sums the currents corresponding to all signal flips by use of an adder tree to obtain a current value corresponding to the signal flip on a single processor. The current correction module adds the current corresponding to the signal flip on each processor in a multi-core digital system and the current on a clock tree to obtain the current of each processor, determines whether the clock of the corresponding processor is valid, and finally sums the currents of all processors to obtain an entire-system dynamic current code value the multi-core digital system chip. The weight information in the current calculation module is obtained by training a feature network. The network is trained to obtain a weight that enables a network output result to reflect the power consumption value of the digital system, and the network is trained by the flip states of specified key signals in the digital chip system as a network input and using the corresponding system power consumption value as a network label.

[0033] FIG. 6 is a circuit diagram of an on-chip voltage prediction-calculation module. A scanning module obtains the chip's power delivery network curve, and fits the curve to obtain parameters

[00009] c 1 = 2 a 1 T + a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 2 = 2 a 2 T 2 b 2 T 2 + 2 b 1 T + 4 , c 3 = a 2 T 2 - 2 a 1 T b 2 T 2 + 2 b 1 T + 4 , d 1 = 2 b 2 T 2 - 8 b 2 T 2 + 2 b 1 T + 4 , and d 2 = b 2 T 2 - 2 b 1 T + 4 b 2 T 2 + 2 b 1 T + 4

in a z-domain transfer function, and then performs an inverse Z-transformation on the z-domain transfer function to obtain a discrete sequence equation suitable for circuit implementation, that is, obtain an on-chip voltage prediction formula by quantizing on-chip PDN parameters:

[00010] V dp [ n ] = c 1 * I d [ n ] + c 2 * I d [ n - 1 ] + c 3 * I d [ n - 2 ] - d 1 * V dn [ n - 1 ] - d 2 * V dn [ n - 2 ] .

[0034] In the formula above, I.sub.d[n] corresponds to a predicted current value at a time point n, which is an output of the predictive digital power meter; and V.sub.dn[n1] corresponds to the detected on-chip voltage value at the time point n1, which is an output of the voltage monitoring module. First, the corresponding parameters c1, c2, c3, d1, d2 of the power delivery network are multiplied by the predicted current value I.sub.d[n] at the time point n, the predicted current value I.sub.d[n1] at the time point n1, the predicted current value I.sub.d[n2] at the time point n2, the detected on-chip voltage value V.sub.dn[n1] at the time point n1, and the detected on-chip voltage value V.sub.dn[n2] at the time point n2, respectively, through multipliers. Subsequently, the resulting products are summed or subtracted through a three-stage adder to obtain a predicted on-chip voltage value V.sub.dp[n] at the time point n. The delays of the discrete sequences are implemented with D flip-flops clocked by the system clock.

[0035] Due to the quantization delay of the voltage monitoring module, the calculation lags behind the real-time voltage value. Therefore, this formula predicts the real-time voltage V.sub.dp[n] by use of the measured values Id[n], Id[n1], Id[n2], V.sub.dn[n1], and V.sub.dn[n2] with reference to parameters of the power delivery network.

[0036] FIG. 7 is a simulation effect diagram of voltage prediction. In the figure, the horizontal axis represents time in nanoseconds, and the vertical axis represents the voltage droop value, calculated by subtracting the actual on-chip voltage from the output voltage of the off-chip regulated power supply. The gray line in the figure represents the voltage drop value in a simulated waveform, and the black line represents the voltage drop value predicted by the voltage prediction circuit of this application. As can be seen, the trends of the two lines are quite consistent, with the maximum prediction error being less than 5 mV.

[0037] Understandably, this application is described with reference to some embodiments. A person skilled in the art may make various changes or equivalent substitutions to the features and embodiments without departing from the essence and scope of this application. In addition, based on the teachings of this application, the features and embodiments may be modified to adapt to specific circumstances without departing from the essence and scope of this application. Therefore, this application is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims hereof are covered by the scope of protection of this application.