ON-CHIP VOLTAGE PREDICTION CIRCUIT BASED ON PARAMETERS OF POWER DELIVERY NETWORK
20260121406 ยท 2026-04-30
Assignee
Inventors
- Weiwei Shan (Nanjing, CN)
- Kaize ZHOU (Nanjing, CN)
- Xin SI (Nanjing, CN)
- Zhe JIANG (Nanjing, CN)
- Longxing SHI (Nanjing, CN)
- Jun Yang (Nanjing, CN)
Cpc classification
H02J3/0014
ELECTRICITY
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
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
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
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
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
Description
DESCRIPTION OF THE DRAWINGS
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
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]
[0028]
A host computer transforms the second-order impedance network transfer function formula
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:
where T in the bilinear transformation formula is a clock period of a digital circuit system:
[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.
[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
where Um(f) is a half of the maximum value and the minimum value of the on-chip voltage at the detected frequency
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]
[0032]
[0033]
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:
[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]
[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.