CN114325315A - Chip aging compensation method and device, SOC chip and electronic equipment - Google Patents
Chip aging compensation method and device, SOC chip and electronic equipment Download PDFInfo
- Publication number
- CN114325315A CN114325315A CN202111597029.9A CN202111597029A CN114325315A CN 114325315 A CN114325315 A CN 114325315A CN 202111597029 A CN202111597029 A CN 202111597029A CN 114325315 A CN114325315 A CN 114325315A
- Authority
- CN
- China
- Prior art keywords
- aging
- voltage
- power supply
- chip
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Testing Of Individual Semiconductor Devices (AREA)
Abstract
本申请涉及一种芯片老化补偿方法、装置、SOC芯片及电子设备,属于集成电路技术领域。该方法包括利用电压测量模块测量预设基准电压所对应的当前时刻的测量值;基于当前时刻的测量值和预设第一规则,得到电压测量模块的老化程度;基于电压测量模块的老化程度和预设的表征电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到关键路径的老化程度;基于关键路径的老化程度和预设第二规则,得到关键路径的老化程度对应的老化补偿值;根据老化补偿值调节芯片的电源电压或工作频率以进行老化补偿。本申请能够根据需要随时进行老化检测衡量、并对芯片的电源电压或工作频率进行补偿,以保证最优的能效比。
The present application relates to a chip aging compensation method, device, SOC chip and electronic equipment, belonging to the technical field of integrated circuits. The method includes using a voltage measurement module to measure a measurement value at the current moment corresponding to a preset reference voltage; obtaining an aging degree of the voltage measurement module based on the measurement value at the current moment and a preset first rule; based on the aging degree of the voltage measurement module and A preset mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip is used to obtain the aging degree of the critical path; based on the aging degree of the critical path and the preset second rule, the aging compensation corresponding to the aging degree of the critical path is obtained. value; adjust the power supply voltage or operating frequency of the chip according to the aging compensation value for aging compensation. The present application can perform aging detection and measurement at any time as needed, and compensate the power supply voltage or operating frequency of the chip to ensure an optimal energy efficiency ratio.
Description
技术领域technical field
本申请属于集成电路技术领域,具体涉及一种芯片老化补偿方法、装置、SOC芯片及电子设备。The present application belongs to the technical field of integrated circuits, and in particular relates to a chip aging compensation method, device, SOC chip and electronic equipment.
背景技术Background technique
随着半导体器件(如MOS(Metal Oxide Semiconductor,金属氧化物半导体)管)的尺寸缩小到超深亚微米及纳米尺寸后,半导体器件老化对大规模集成电路芯片的影响越来越突出,半导体器件老化会使阈值电压(Vth)增大、沟道电流(Ids)减小,从而导致电路单元驱动能力降低、延时增大,最终降低了整个芯片的工作速度(最高工作频率(Fmax))。为了能让芯片随着工作时间的增长仍然能够满足较优的能效比,就需要根据芯片老化情况采用合适的方法及时调整芯片的工作状态,使芯片随着工作时间的增长一直工作在较优的状态。As the size of semiconductor devices (such as MOS (Metal Oxide Semiconductor, metal oxide semiconductor) tubes) is reduced to ultra-deep submicron and nanometer sizes, the impact of semiconductor device aging on large-scale integrated circuit chips has become more and more prominent. Aging will increase the threshold voltage (Vth) and reduce the channel current (Ids), resulting in a decrease in the driving capability of the circuit unit, an increase in the delay, and ultimately a decrease in the operating speed (maximum operating frequency (Fmax)) of the entire chip. In order to make the chip still meet the better energy efficiency ratio with the increase of working time, it is necessary to adopt appropriate methods to adjust the working state of the chip in time according to the aging of the chip, so that the chip has been working in a better state with the increase of working time. state.
目前为了能使芯片随着工作时间的增长一直工作在较优的状态,会在芯片工作的初期,提前给芯片电源电压增加相应的裕量,保证在相应年限内芯片可以正常工作不宕机。但是该方案在芯片工作的初期和中期,芯片还没有老化衰退的时候,所增加的电源电压裕量是多余的,会造成额外的功耗,使得芯片达不到最优的能效比,同时也会影响整个系统的性能。At present, in order to keep the chip working in a better state with the increase of working time, a corresponding margin will be added to the power supply voltage of the chip in advance in the early stage of the chip operation to ensure that the chip can work normally without downtime within the corresponding years. However, in the early and mid-term of the chip operation, when the chip has not aged and declined, the increased power supply voltage margin is redundant, which will cause additional power consumption, making the chip unable to achieve the optimal energy efficiency ratio, and also will affect the performance of the entire system.
发明内容SUMMARY OF THE INVENTION
鉴于此,本申请的目的在于提供一种芯片老化补偿方法、装置、SOC芯片及电子设备,以改善现有补偿方案在初期给芯片电源电压增加多余的裕量,会造成额外的功耗,使得芯片达不到最优的能效比,同时也会影响整个系统的性能的问题。In view of this, the purpose of the present application is to provide a chip aging compensation method, device, SOC chip and electronic equipment, so as to improve the existing compensation scheme by adding excess margin to the chip power supply voltage in the early stage, which will cause extra power consumption, so that The chip cannot achieve the optimal energy efficiency ratio, and it will also affect the performance of the entire system.
本申请的实施例是这样实现的:The embodiments of the present application are implemented as follows:
第一方面,本申请实施例提供了一种芯片老化补偿方法,包括:利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,其中,所述电压测量模块为基于环形振荡器的电压测量模块;基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度;基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度;基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值;根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。本申请实施例中,能够根据需要随时进行老化检测衡量,得到关键路径的老化程度对应的老化补偿值,并以此对芯片的电源电压或工作频率进行补偿,能使芯片电源电压跟随老化情况进行调节,不需要为了避免老化引起宕机而在初期给芯片电源电压增加多余的裕量,从而实现在改善老化对芯片性能恶化的同时,保证最优的能效比。In a first aspect, an embodiment of the present application provides a chip aging compensation method, including: using a voltage measurement module to measure a measurement value at a current moment corresponding to a preset reference voltage, wherein the voltage measurement module is a ring oscillator-based voltage measurement module; based on the measurement value at the current moment and a preset first rule, obtain the aging degree of the voltage measurement module; based on the aging degree of the voltage measurement module and a preset characterizing the voltage measurement module and the chip Obtain the aging degree of the critical path by mapping the aging correlation of the internal critical path; based on the aging degree of the critical path and the preset second rule, obtain the aging compensation value corresponding to the aging degree of the critical path; The aging compensation value adjusts the power supply voltage or operating frequency of the chip to perform aging compensation. In the embodiment of the present application, aging detection and measurement can be performed at any time as needed, and the aging compensation value corresponding to the aging degree of the critical path can be obtained, and the power supply voltage or operating frequency of the chip can be compensated based on this, so that the power supply voltage of the chip can follow the aging condition. Adjustment does not need to add excess margin to the chip power supply voltage at the initial stage in order to avoid downtime caused by aging, so as to achieve the optimal energy efficiency ratio while improving the deterioration of chip performance caused by aging.
结合第一方面实施例的一种可能的实施方式,所述预设第一规则包括表征所述电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,所述方法还包括:获取当前时刻的环境温度;相应地,基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,包括:基于所述第一特性方程,确定所述环境温度下初始时刻的所述预设基准电压对应的初始测量值;获取所述当前时刻的测量值与所述初始时刻的初始测量值的测量值变化量;若所述测量值变化量超过预设阈值,基于所述第一特性方程获取所述环境温度下指定目标测量值对应的电压值,并获取所述指定目标测量值对应的电压值与初始时刻的初始电压值的电压变化量,所述电压变化量表征所述电压测量模块的老化程度。本申请实施例中,在考虑电压测量模块的老化程度时,还将温度影响考虑在内,进一步提高了准确性,同时,通过计算相同环境温度下初始时刻的预设基准电压对应的初始测量值,并根据初始测量值与当前时刻的测量值的测量值变化量来快速判断是否发生电压测量模块老化,并在发生老化时,计算目标测量值对应的电压值与初始时刻的初始电压值的电压变化量来表征电压测量模块的老化程度。With reference to a possible implementation manner of the embodiment of the first aspect, the preset first rule includes a first characteristic equation representing the relationship between the power supply voltage, the measured value and the temperature of the voltage measurement module under different aging times, the The method further includes: acquiring the ambient temperature at the current moment; correspondingly, based on the measurement value at the current moment and a preset first rule, obtaining the aging degree of the voltage measurement module, comprising: determining, based on the first characteristic equation, The initial measurement value corresponding to the preset reference voltage at the initial moment under the ambient temperature; obtain the measurement value change at the current moment and the measurement value change at the initial moment; if the measurement value variation Exceeding the preset threshold, obtain the voltage value corresponding to the specified target measurement value under the ambient temperature based on the first characteristic equation, and obtain the voltage change amount between the voltage value corresponding to the specified target measurement value and the initial voltage value at the initial moment , the voltage variation represents the aging degree of the voltage measurement module. In the embodiment of the present application, when considering the aging degree of the voltage measurement module, the temperature influence is also taken into account, which further improves the accuracy. At the same time, the initial measurement value corresponding to the preset reference voltage at the initial moment under the same ambient temperature is calculated. , and quickly determine whether the voltage measurement module is aging according to the change of the measurement value between the initial measurement value and the measurement value at the current moment, and when aging occurs, calculate the voltage value corresponding to the target measurement value and the voltage value of the initial voltage value at the initial moment. The amount of change to characterize the aging degree of the voltage measurement module.
结合第一方面实施例的一种可能的实施方式,所述预设第一规则包括表征所述电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,所述方法还包括:获取当前时刻的环境温度;相应地,基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,包括:基于所述第一特性方程,确定所述环境温度下初始时刻的所述预设基准电压对应的初始测量值;获取所述当前时刻的测量值与所述初始时刻的初始测量值的测量值变化量;所述测量值变化量表征所述电压测量模块的老化程度。本申请实施例中,在确定初始时刻的预设基准电压对应的初始测量值时,还将温度影响考虑在内,通过确定相同环境温度下当前时刻的测量值与初始时刻的初始测量值的测量值变化量来表征电压测量模块的老化程度,提高了其准确性。With reference to a possible implementation manner of the embodiment of the first aspect, the preset first rule includes a first characteristic equation representing the relationship between the power supply voltage, the measured value and the temperature of the voltage measurement module under different aging times, the The method further includes: acquiring the ambient temperature at the current moment; correspondingly, based on the measurement value at the current moment and a preset first rule, obtaining the aging degree of the voltage measurement module, comprising: determining, based on the first characteristic equation, The initial measurement value corresponding to the preset reference voltage at the initial moment under the ambient temperature; the measurement value change amount between the measurement value at the current moment and the initial measurement value at the initial moment is obtained; the measurement value variation amount represents The voltage measures the aging degree of the module. In the embodiment of the present application, when determining the initial measurement value corresponding to the preset reference voltage at the initial moment, the influence of temperature is also taken into account, and the measurement value at the current moment and the initial measurement value at the initial moment under the same ambient temperature are determined by measuring The value change is used to characterize the aging degree of the voltage measurement module, which improves its accuracy.
结合第一方面实施例的一种可能的实施方式,若所述关键路径的老化程度用所述芯片目标工作频率对应的电源电压变化量来表征,所述预设第二规则包括表征所述关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程;所述方法还包括:获取当前时刻的环境温度;相应地,基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值,包括:基于所述第二特性方程确定所述环境温度下初始时刻的目标工作频率对应的电源电压;基于所述电源电压变化量和所述目标工作频率对应的电源电压,得到所述当前时刻目标工作频率对应的电源电压,所述当前时刻目标工作频率对应的电源电压为所述老化补偿值。本申请实施例中,可以用芯片的电源电压变化量来表征关键路径的老化程度,在计算电源电压变化量时,还将温度对老化程度的影响考虑在内,提高了计算的准确性。With reference to a possible implementation manner of the embodiment of the first aspect, if the aging degree of the critical path is characterized by the variation of the power supply voltage corresponding to the target operating frequency of the chip, the preset second rule includes characterizing the critical path. a second characteristic equation of the relationship between the power supply voltage, operating frequency and temperature of the path under different aging times; the method further includes: acquiring the ambient temperature at the current moment; accordingly, based on the aging degree of the critical path and the preset second characteristic equation obtaining the aging compensation value corresponding to the aging degree of the critical path, including: determining the power supply voltage corresponding to the target operating frequency at the initial moment under the ambient temperature based on the second characteristic equation; based on the power supply voltage variation and The power supply voltage corresponding to the target operating frequency is obtained, and the power supply voltage corresponding to the target operating frequency at the current moment is obtained, and the power supply voltage corresponding to the target operating frequency at the current moment is the aging compensation value. In this embodiment of the present application, the power supply voltage variation of the chip can be used to characterize the aging degree of the critical path. When calculating the power supply voltage variation, the influence of temperature on the aging degree is also taken into account, which improves the accuracy of the calculation.
结合第一方面实施例的一种可能的实施方式,若所述关键路径的老化程度用所述芯片目标电源电压对应的工作频率变化量来表征,所述预设第二规则包括表征所述关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程;所述方法还包括:获取当前时刻的环境温度;相应地,基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值,包括:基于所述第二特性方程确定所述环境温度下初始时刻的目标电源电压对应的工作频率;基于所述工作频率变化量和所述目标电源电压对应的工作频率,得到所述当前时刻目标电源电压对应的工作频率,所述当前时刻目标电源电压对应的工作频率为所述老化补偿值。本申请实施例中,可以根据芯片的工作频率变化量来表征关键路径的老化程度,在计算芯片的工作频率变化量时,还将温度对老化程度的影响考虑在内,提高了计算的准确性,从而以此计算的老化补偿值更准确。With reference to a possible implementation manner of the embodiment of the first aspect, if the aging degree of the critical path is characterized by the variation of the operating frequency corresponding to the target power supply voltage of the chip, the preset second rule includes characterizing the critical path. a second characteristic equation of the relationship between the power supply voltage, operating frequency and temperature of the path under different aging times; the method further includes: acquiring the ambient temperature at the current moment; accordingly, based on the aging degree of the critical path and the preset second characteristic equation obtaining the aging compensation value corresponding to the aging degree of the critical path, including: determining the operating frequency corresponding to the target power supply voltage at the initial moment under the ambient temperature based on the second characteristic equation; based on the operating frequency variation and From the operating frequency corresponding to the target power supply voltage, the operating frequency corresponding to the target power supply voltage at the current moment is obtained, and the operating frequency corresponding to the target power supply voltage at the current moment is the aging compensation value. In the embodiment of the present application, the aging degree of the critical path can be characterized according to the variation of the operating frequency of the chip. When calculating the variation of the operating frequency of the chip, the influence of temperature on the aging degree is also taken into account, which improves the accuracy of the calculation , so that the calculated aging compensation value is more accurate.
结合第一方面实施例的一种可能的实施方式,根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿,包括:若所述关键路径的老化程度对应的老化补偿值为当前时刻目标电源电压对应的工作频率,调节所述芯片的工作频率与所述当前时刻目标电源电压对应的工作频率一致,以进行老化补偿;若所述关键路径的老化程度对应的老化补偿值为所述当前时刻目标工作频率对应的电源电压,调节所述芯片的电源电压使所述电源电压的值与所述当前时刻目标工作频率对应的电源电压一致,以进行老化补偿。本申请实施例中,当关键路径的老化程度对应的老化补偿值为当前时刻目标工作频率对应的电源电压,可以调节芯片的电源电压来进行老化补偿,当关键路径的老化程度对应的老化补偿值为当前时刻目标电源电压对应的工作频率,可以调节芯片的工作频率进行老化补偿,补偿方式灵活。With reference to a possible implementation manner of the embodiment of the first aspect, adjusting the power supply voltage or operating frequency of the chip according to the aging compensation value to perform aging compensation, including: if the aging compensation value corresponding to the aging degree of the critical path For the operating frequency corresponding to the target power supply voltage at the current moment, adjust the operating frequency of the chip to be consistent with the operating frequency corresponding to the target power supply voltage at the current moment to perform aging compensation; if the aging compensation value corresponding to the aging degree of the critical path For the power supply voltage corresponding to the target operating frequency at the current time, the power supply voltage of the chip is adjusted so that the value of the power supply voltage is consistent with the power supply voltage corresponding to the target operating frequency at the current time, so as to perform aging compensation. In the embodiment of the present application, when the aging compensation value corresponding to the aging degree of the critical path is the power supply voltage corresponding to the target operating frequency at the current moment, the power supply voltage of the chip can be adjusted to perform aging compensation. When the aging compensation value corresponding to the aging degree of the critical path is For the operating frequency corresponding to the target power supply voltage at the current moment, the operating frequency of the chip can be adjusted to perform aging compensation, and the compensation method is flexible.
结合第一方面实施例的一种可能的实施方式,所述方法还包括:获取所述电压测量模块在不同电源电压、不同温度条件下的测量值,并进行拟合得到初始时刻下电源电压、测量值和温度关系的表达式;获取经过不同老化时间处理后的所述电压测量模块在不同电源电压、不同温度条件下对应的测量值,并进行拟合得到不同老化时间下电源电压、测量值和温度关系的表达式,得到表征所述电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,其中,所述第一特性方程包括表征初始时刻下电源电压、测量值和温度关系的表达式以及不同老化时间下电源电压、测量值和温度关系的表达式。本申请实施例中,通过测量电压测量模块在不同时刻(未老化及不同老化时间)、不同电源电压、不同温度条件下对应的测量值,然后进行拟合,从而可以得到表征电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,以便于后续根据该方程快速确定电压测量模块的老化程度。With reference to a possible implementation manner of the embodiment of the first aspect, the method further includes: acquiring measurement values of the voltage measurement module under different power supply voltages and different temperature conditions, and performing fitting to obtain the power supply voltage at the initial moment, The expression of the relationship between the measured value and the temperature; obtain the corresponding measured values of the voltage measurement module under different power supply voltages and different temperature conditions after processing with different aging times, and perform fitting to obtain the power supply voltage and measured values under different aging times. and temperature relationship to obtain a first characteristic equation representing the relationship between the power supply voltage, measured value and temperature of the voltage measurement module at different aging times, wherein the first characteristic equation includes the power supply voltage at the initial moment, Expressions for the relationship between measured value and temperature and the relationship between supply voltage, measured value and temperature for different aging times. In the embodiment of the present application, by measuring the corresponding measurement values of the voltage measurement module at different times (non-aging and different aging times), different power supply voltages, and different temperature conditions, and then fitting, it is possible to obtain the characteristic voltage measurement module at different times. The first characteristic equation of the relationship between the power supply voltage, the measured value and the temperature under the aging time, so that the aging degree of the voltage measurement module can be quickly determined according to the equation later.
结合第一方面实施例的一种可能的实施方式,所述方法还包括:获取关键路径模块在不同电源电压、不同温度条件下的频率值,并进行拟合得到初始时刻下电源电压、频率值和温度关系的表达式,其中,所述关键路径模块由所述关键路径中的逻辑门器件组成的环形振荡器;获取经过不同老化时间处理后的所述关键路径模块在不同电源电压、不同温度条件下的频率值,并进行拟合得到不同老化时间下电源电压、频率值和温度关系的表达式,得到表征所述关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程,所述第二特性方程包括初始时刻下电源电压、频率值和温度关系的表达式和不同老化时间下电源电压、频率值和温度关系的表达式。本申请实施例中,通过测量关键路径模块在不同时刻(未老化及不同老化时间)、不同电源电压、不同温度条件下对应的频率值,然后进行拟合,从而可以得到表征关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程,以便于后续根据该方程快速确定关键路径的老化程度对应的老化补偿量。With reference to a possible implementation of the embodiment of the first aspect, the method further includes: acquiring frequency values of the critical path module under different power supply voltage and temperature conditions, and performing fitting to obtain the power supply voltage and frequency values at the initial moment and temperature relationship, wherein, the critical path module is a ring oscillator composed of logic gate devices in the critical path; obtain the critical path module after different aging time processing at different power supply voltages, different temperatures The frequency value under the condition, and fit to obtain the expression of the relationship between the power supply voltage, frequency value and temperature under different aging times, and obtain the second expression that characterizes the relationship between the power supply voltage, operating frequency and temperature of the critical path under different aging times. A characteristic equation, the second characteristic equation includes an expression of the relationship between power supply voltage, frequency value and temperature at an initial moment, and an expression of the relationship between power supply voltage, frequency value and temperature under different aging times. In the embodiment of the present application, by measuring the corresponding frequency values of the critical path module at different times (unaged and with different aging times), different power supply voltages, and different temperature conditions, and then fitting, it can be obtained to characterize the critical path under different aging conditions. The second characteristic equation of the relationship between the power supply voltage, the operating frequency and the temperature under time is used to quickly determine the aging compensation amount corresponding to the aging degree of the critical path according to the equation.
第二方面,本申请实施例还提供了一种芯片老化补偿装置,包括:获取模块、老化检测模块以及补偿模块;获取模块,用于获取利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,其中,所述电压测量模块为基于环形振荡器的电压测量模块;老化检测模块,用于基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,以及基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度,以及基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值;补偿模块,用于根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。In a second aspect, an embodiment of the present application further provides a chip aging compensation device, including: an acquisition module, an aging detection module, and a compensation module; and an acquisition module for acquiring the current moment corresponding to the preset reference voltage measured by the voltage measurement module , wherein the voltage measurement module is a voltage measurement module based on a ring oscillator; an aging detection module is used to obtain the aging of the voltage measurement module based on the measurement value at the current moment and a preset first rule degree, and based on the aging degree of the voltage measurement module and a preset mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip, the aging degree of the critical path is obtained, and based on the critical path According to the aging degree and the preset second rule, the aging compensation value corresponding to the aging degree of the critical path is obtained; the compensation module is used to adjust the power supply voltage or operating frequency of the chip according to the aging compensation value to perform aging compensation.
第三方面,本申请实施例还提供了一种SOC芯片,包括:电压测量模块、芯片老化补偿装置;电压测量模块,与预设基准电压连接,用于测量所述预设基准电压所对应的当前时刻的测量值,其中,所述电压测量模块测量为基于环形振荡器的电压测量模块;芯片老化补偿装置,与所述电压测量模块连接,所述芯片老化补偿装置,用于获取所述当前时刻的测量值,基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,以及基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度,基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值,以及根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。In a third aspect, an embodiment of the present application further provides an SOC chip, including: a voltage measurement module, a chip aging compensation device; and a voltage measurement module, connected to a preset reference voltage, for measuring a voltage corresponding to the preset reference voltage The measured value at the current moment, wherein the voltage measurement module measures a voltage measurement module based on a ring oscillator; a chip aging compensation device is connected to the voltage measurement module, and the chip aging compensation device is used to obtain the current The measured value at the moment, based on the measured value at the current moment and the preset first rule, the aging degree of the voltage measurement module is obtained, and the voltage measurement module is characterized based on the aging degree of the voltage measurement module and a preset The mapping relationship with the aging correlation of the critical path inside the chip, the aging degree of the critical path is obtained, and the aging compensation value corresponding to the aging degree of the critical path is obtained based on the aging degree of the critical path and the preset second rule , and adjust the power supply voltage or operating frequency of the chip according to the aging compensation value to perform aging compensation.
第四方面,本申请实施例还提供了一种电子设备,所述电子设备包括本体和如上述第一方面实施例和/或结合第一方面实施例的任一种可能的实施方式提供的芯片老化补偿装置,或者,如上述第二方面实施例提供的SOC芯片。In a fourth aspect, an embodiment of the present application further provides an electronic device, the electronic device includes a body and a chip provided in the foregoing first aspect embodiment and/or in combination with any possible implementation manner of the first aspect embodiment The aging compensation device, or the SOC chip provided by the embodiment of the second aspect above.
第五方面,本申请实施例还提供了一种电子设备,包括:存储器和处理器,所述处理器与所述存储器连接;所述存储器,用于存储程序;所述处理器,用于调用存储于所述存储器中的程序,以执行上述第一方面实施例和/或结合第一方面实施例的任一种可能的实施方式提供的方法。In a fifth aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, where the processor is connected to the memory; the memory is used to store a program; the processor is used to call The program stored in the memory is used to execute the above-mentioned embodiment of the first aspect and/or the method provided in combination with any possible implementation manner of the embodiment of the first aspect.
第六方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器运行时,执行上述第一方面实施例和/或结合第一方面实施例的任一种可能的实施方式提供的方法。In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, executes the foregoing first aspect embodiment and/or combines the first aspect A method provided by any possible implementation of an example.
本申请的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例而了解。本申请的目的和其他优点可通过在所写的说明书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows, and, in part, will be apparent from the description, or may be learned by practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。通过附图所示,本申请的上述及其它目的、特征和优势将更加清晰。在全部附图中相同的附图标记指示相同的部分。并未刻意按实际尺寸等比例缩放绘制附图,重点在于示出本申请的主旨。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the accompanying drawings required in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present application. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort. The above and other objects, features and advantages of the present application will be more apparent from the accompanying drawings. The same reference numerals refer to the same parts throughout the drawings. The drawings are not intentionally scaled to actual size, and the emphasis is on illustrating the subject matter of the present application.
图1示出了本申请实施例提供的一种芯片老化补偿方法的流程示意图。FIG. 1 shows a schematic flowchart of a chip aging compensation method provided by an embodiment of the present application.
图2示出了本申请实施例提供的一种计算表征电压测量模块与芯片内部关键路径的老化相关性的映射关系的原理示意图。FIG. 2 shows a schematic schematic diagram of calculating a mapping relationship representing the aging correlation between a voltage measurement module and a critical path inside a chip provided by an embodiment of the present application.
图3示出了本申请实施例提供的又一种芯片老化补偿方法的流程示意图。FIG. 3 shows a schematic flowchart of still another chip aging compensation method provided by an embodiment of the present application.
图4示出了本申请实施例提供的一种芯片老化补偿的模块框图。FIG. 4 shows a block diagram of a chip aging compensation module provided by an embodiment of the present application.
图5示出了本申请实施例提供的一种电子设备的结构示意图。FIG. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
应注意到:相似的标号和字母在下面的附图中表征类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中诸如“第一”、“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that similar numerals and letters identify similar items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of this application, relational terms such as "first", "second", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
再者,本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。Furthermore, the term "and/or" in this application is only an association relationship to describe related objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, and A and B exist at the same time. B, there are three cases of B alone.
鉴于当前的芯片老化补偿方案存在的缺陷,本申请实施例提供了一种芯片老化补偿方法,为了在改善老化对芯片性能恶化的同时,保证最优的能效比,提出了一种能够根据需要随时进行老化检测衡量、并对芯片的电源电压或工作频率进行补偿的方案,使芯片电源电压跟随老化情况进行调节,不需要为了避免老化引起宕机而在初期给芯片电源电压增加多余的裕量。In view of the defects of the current chip aging compensation scheme, the embodiments of the present application provide a chip aging compensation method. The scheme of performing aging detection and measurement and compensating the power supply voltage or operating frequency of the chip, so that the power supply voltage of the chip can be adjusted according to the aging situation, and there is no need to add excess margin to the power supply voltage of the chip in the early stage to avoid downtime caused by aging.
为了便于理解,下面结合图1,对本申请实施例提供的芯片老化补偿方法进行说明。For ease of understanding, the chip aging compensation method provided by the embodiment of the present application will be described below with reference to FIG. 1 .
S1:利用电压测量模块测量预设基准电压所对应的当前时刻的测量值。S1: Use the voltage measurement module to measure the measurement value at the current moment corresponding to the preset reference voltage.
当满足老化测量条件时,利用电压测量模块测量预设基准电压(可以是芯片电源电压,也可以是其他外部电源电压,为一已知值)的电压,得到当前时刻的测量值(用Count表示)。其中,电压测量模块为基于环形振荡器的电压测量模块。其中,环形振荡器是由多个逻辑门电路的输出端和输入端首尾相连构成的环形振荡器,会随着工作时间的增长存在老化情况。When the aging measurement conditions are met, use the voltage measurement module to measure the voltage of the preset reference voltage (which can be the chip power supply voltage, or other external power supply voltage, which is a known value), and obtain the current measurement value (represented by Count). ). The voltage measurement module is a voltage measurement module based on a ring oscillator. Among them, the ring oscillator is a ring oscillator formed by connecting the output terminals and the input terminals of a plurality of logic gate circuits end to end, which will age with the increase of working time.
其中,老化测量条件可以是芯片上电时刻,也可以是定时进行老化检测,也可以是在系统空闲或任何需要检测的时候,满足老化测量条件时进行老化程度检测,可以根据需要进行灵活配置。Among them, the aging measurement condition can be the time when the chip is powered on, or the aging detection can be performed periodically, or the aging degree detection can be performed when the aging measurement condition is satisfied when the system is idle or when the detection is required, and can be flexibly configured as needed.
S2:基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度。S2: Obtain the aging degree of the voltage measurement module based on the measured value at the current moment and the preset first rule.
在获取到当前时刻的测量值后,基于当前时刻的测量值和预设第一规则,便可得到电压测量模块的老化程度。其中,电压测量模块的老化程度可以用差值、比例、误差百分比等方式表示,可以根据需要选择表示老化程度的方式。After the measurement value at the current moment is acquired, the aging degree of the voltage measurement module can be obtained based on the measurement value at the current moment and the preset first rule. Among them, the aging degree of the voltage measurement module can be expressed by means of difference, ratio, error percentage, etc., and the way of expressing the aging degree can be selected according to needs.
其中,电压测量模块在未老化及老化时测量同一电源电压时的测量值不同,因此可以用相同电源电压对应的测量值的变化量来表征电压测量模块的老化程度。同理,电压测量模块在未老化及老化时对应同一测量值的电源电压不同,因此可以利用相同测量值对应的电源电压的变化量来表征电压测量模块的老化程度。Among them, the measurement values of the voltage measurement module when measuring the same power supply voltage are different when it is not aged and when it is aged, so the variation of the measurement value corresponding to the same power supply voltage can be used to characterize the aging degree of the voltage measurement module. Similarly, the voltage measurement module has different power supply voltages corresponding to the same measurement value when it is not aged and aged, so the variation of the power supply voltage corresponding to the same measurement value can be used to characterize the aging degree of the voltage measurement module.
第一种实施方式下,若电压测量模块的老化程度用指定目标测量值对应的电源电压的变化量(为绝对值)来表征,则预设第一规则可以包括表征电压测量模块在不同老化时间下的测量值和电源电压关系的第一特性方程。可选地,第一特性方程可以为:In the first embodiment, if the aging degree of the voltage measurement module is characterized by the variation (as an absolute value) of the power supply voltage corresponding to the specified target measurement value, the preset first rule may include characterizing the voltage measurement module at different aging times The first characteristic equation for the relationship between the measured value and the supply voltage under. Optionally, the first characteristic equation may be:
Voltage_T0=func(Count),Voltage_T0=func(Count),
Voltage_T1=func(Count),Voltage_T1=func(Count),
……...
Voltage_Tn=func(Count)。其中,Count为测量值,T0为初始时刻,此时电压测量模块未老化,T1~Tn为电压测量模块的不同老化时间,Voltage_T0为T0时刻也即初始时刻(不老化)的电源电压,Voltage_T1为T1时刻的电源电压,以此类推,Voltage_Tn为Tn时刻的电源电压。Voltage_Tn=func(Count). Among them, Count is the measured value, T0 is the initial time, the voltage measurement module is not aging at this time, T1~Tn are the different aging times of the voltage measurement module, Voltage_T0 is the power supply voltage at time T0, that is, the initial time (not aging), Voltage_T1 is The power supply voltage at time T1, and so on, Voltage_Tn is the power supply voltage at time Tn.
此时,S2的实现过程可以是:基于当前时刻的测量值判断电压测量模块是否发生老化,在确定电压测量模块发生老化时,基于第一特性方程获取指定目标测量值(可以根据需要进行指定或设置)对应的电压值,并获取指定目标测量值对应的电压值与初始时刻该指定目标测量值对应的初始电压值的电压变化量,电压变化量表征电压测量模块的老化程度。由于在T0时刻电压测量模块未老化,如果当前时刻的测量值与T0时刻的初始测量值不相等或差值大于预设阈值,则表征电压测量模块发生老化。之后,便可基于第一特性方程获取指定目标测量值对应的电压值,并获取指定目标测量值对应的电压值与初始时刻的初始电压值的电压变化量,来表征电压测量模块的老化程度。At this time, the implementation process of S2 may be: judging whether the voltage measurement module is aging based on the measurement value at the current moment, and when determining that the voltage measurement module is aging, obtaining the specified target measurement value based on the first characteristic equation (which can be specified or specified as required or Set) the corresponding voltage value, and obtain the voltage variation between the voltage value corresponding to the specified target measurement value and the initial voltage value corresponding to the specified target measurement value at the initial moment, and the voltage variation represents the aging degree of the voltage measurement module. Since the voltage measurement module is not aged at time T0, if the measurement value at the current moment is not equal to the initial measurement value at time T0 or the difference is greater than the preset threshold, it indicates that the voltage measurement module is aged. Then, the voltage value corresponding to the specified target measurement value can be obtained based on the first characteristic equation, and the voltage variation between the voltage value corresponding to the specified target measurement value and the initial voltage value at the initial moment can be obtained to characterize the aging degree of the voltage measurement module.
在基于第一特性方程获取指定目标测量值对应的电压值时,其可以是将预设基准电压分别代入第一特性方程Voltage_T1~Voltage_Tn的表达式中,计算得到对应测量值,然后分别与当前时刻的测量值相比,选择差异度最小的那个方程来计算指定目标测量值对应的电压值,假设利用Voltage_T2计算得到的测量值与当前时刻的测量值相比差异度最小,则利用Voltage_T2的表达式来计算指定目标测量值对应的电压值。When obtaining the voltage value corresponding to the specified target measurement value based on the first characteristic equation, the preset reference voltage may be substituted into the expressions of the first characteristic equation Voltage_T1~Voltage_Tn, respectively, to obtain the corresponding measurement value, and then respectively correspond to the current moment. Compared with the measured value of , select the equation with the smallest degree of difference to calculate the voltage value corresponding to the specified target measured value. Assuming that the measured value calculated by Voltage_T2 has the smallest degree of difference compared with the measured value at the current moment, the expression of Voltage_T2 is used. to calculate the voltage value corresponding to the specified target measurement value.
当然上述第一特性方程的表达式中的Count和Voltage也可以反过来,此时,第一特性方程可以为:Of course, Count and Voltage in the expression of the first characteristic equation can also be reversed. In this case, the first characteristic equation can be:
Count_T0=func(Voltage),Count_T0=func(Voltage),
Count_T1=func(Voltage),Count_T1=func(Voltage),
……...
Count_Tn=func(Voltage)。其中,Count为测量值,T0为初始时刻,此时电压测量模块未老化,T1~Tn为电压测量模块的不同老化时间,Count_T0为T0时刻也即初始时刻(不老化)的测量值,Count_T1为T1时刻的测量值,以此类推,Count_Tn为Tn时刻的测量值。Count_Tn=func(Voltage). Among them, Count is the measured value, T0 is the initial time, the voltage measurement module is not aging at this time, T1~Tn are the different aging times of the voltage measurement module, Count_T0 is the measured value at time T0, that is, the initial time (not aging), Count_T1 is The measured value at time T1, and so on, Count_Tn is the measured value at time Tn.
此时,在基于第一特性方程获取指定目标测量值对应的电压值时,其原理与上述类似,也是需要将预设基准电压分别代入第一特性方程Count_T1~Count_Tn的表达式,计算得到对应测量值,然后分别与当前时刻的测量值相比,选择差异度最小的那个方程来计算指定目标测量值对应的电压值。At this time, when the voltage value corresponding to the specified target measurement value is obtained based on the first characteristic equation, the principle is similar to the above, and it is also necessary to substitute the preset reference voltages into the expressions of the first characteristic equations Count_T1 to Count_Tn respectively, and calculate the corresponding measurement value, and then compared with the measured value at the current moment, select the equation with the smallest difference to calculate the voltage value corresponding to the specified target measured value.
在该种实施方式下,该芯片老化补偿方法还包括获取上述表征电压测量模块在不同老化时间下的测量值和电源电压关系的第一特性方程。其中,获取上述表征电压测量模块在不同老化时间下的测量值和电源电压关系的第一特性方程的过程可以是:获取电压测量模块(T0时刻)在不同电源电压下的测量值,并进行拟合得到初始时刻下电源电压、测量值关系的表达式,即上述的Voltage_T0=func(Count)或Count_T0=func(Voltage);获取经过不同老化时间(T1~Tn)处理后的电压测量模块在不同电源电压下的测量值,并进行拟合得到不同老化时间下电源电压、测量值关系的表达式,即上述的Voltage_T1=func(Count)~Voltage_Tn=func(Count),或者Count_T1=func(Voltage)~Count_Tn=func(Voltage),从而得到表征电压测量模块在不同老化时间下的测量值和电源电压关系的第一特性方程。In this embodiment, the chip aging compensation method further includes acquiring the above-mentioned first characteristic equation representing the relationship between the measurement value of the voltage measurement module under different aging times and the power supply voltage. Wherein, the process of obtaining the first characteristic equation representing the relationship between the measurement value of the voltage measurement module under different aging times and the power supply voltage may be: obtaining the measurement value of the voltage measurement module (time T0) under different power supply voltages, and performing simulation Combined to obtain the expression of the relationship between the power supply voltage and the measured value at the initial moment, that is, the above Voltage_T0=func(Count) or Count_T0=func(Voltage). The measured value under the power supply voltage, and fitting it to obtain the expression of the relationship between the power supply voltage and the measured value under different aging times, that is, the above Voltage_T1=func(Count)~Voltage_Tn=func(Count), or Count_T1=func(Voltage) ~Count_Tn=func(Voltage), thereby obtaining the first characteristic equation representing the relationship between the measured value of the voltage measurement module and the power supply voltage under different aging times.
其中,拟合方式可以采用线性插值拟合,也可以采用曲线拟合,如多项式拟合、指数拟合等,而这些拟合方式的具体原理,已经为本领域技术人员所熟知,在此不再介绍。Among them, the fitting method may adopt linear interpolation fitting, or curve fitting, such as polynomial fitting, exponential fitting, etc., and the specific principles of these fitting methods are well known to those skilled in the art, and will not be discussed here. Introduce again.
第二实施方式下,若电压测量模块的老化程度用指定电源电压(如预设基准电压)对应的测量值的变化量来表征,则预设第一规则可以包括初始时刻预设基准电压对应的测量值。此时,S2的实现过程可以是:获取当前时刻预设基准电压对应的测量值与T0时刻(初始时刻)预设基准电压对应的初始测量值的测量值变化量。由于在T0时刻电压测量模块未老化,如果当前时刻的测量值与T0时刻的初始测量值相等,则表征电压测量模块未发生老化,若当前时刻的测量值与T0时刻的初始测量值不相等,则表征电压测量模块发生老化,当前时刻的测量值与T0时刻的初始测量值的测量值变化量即为电压测量模块的老化程度。In the second embodiment, if the aging degree of the voltage measurement module is represented by the variation of the measurement value corresponding to the specified power supply voltage (such as the preset reference voltage), the preset first rule may include the corresponding value of the preset reference voltage at the initial moment. Measurements. At this time, the implementation process of S2 may be: acquiring the measured value variation of the measured value corresponding to the preset reference voltage at the current moment and the initial measured value corresponding to the preset reference voltage at the time T0 (initial moment). Since the voltage measurement module is not aged at time T0, if the measurement value at the current moment is equal to the initial measurement value at the moment T0, it means that the voltage measurement module is not aged. If the measurement value at the current moment is not equal to the initial measurement value at the moment T0, It indicates that the voltage measurement module is aging, and the change in the measurement value between the measurement value at the current moment and the initial measurement value at the moment T0 is the aging degree of the voltage measurement module.
此外,若电压测量模块的老化程度用指定电源电压(如预设基准电压)对应的测量值的变化量来表征,预设第一规则也可以包括上述的第一特性方程,此时,S2的实现过程可以是:基于T0时刻的表述式Voltage_T0=func(Count)或Count_T0=func(Voltage),将预设基准电压代入其表达式,得到初始时刻的测量值,再获取当前时刻预设基准电压对应的测量值与T0时刻的初始测量值的测量值变化量。In addition, if the aging degree of the voltage measurement module is represented by the variation of the measurement value corresponding to the specified power supply voltage (such as the preset reference voltage), the preset first rule may also include the above-mentioned first characteristic equation. The implementation process can be: based on the expression Voltage_T0=func(Count) or Count_T0=func(Voltage) at time T0, substitute the preset reference voltage into its expression to obtain the measurement value at the initial time, and then obtain the preset reference voltage at the current time The corresponding measured value is the measured value change from the initial measured value at time T0.
此外,考虑到环境温度也会芯片的老化造成一定影响,因此在计算关键路径的老化程度时还可以将环境温度考虑在内。第三种实施方式下,预设第一规则包括表征电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程。可选地,第一特性方程可以为:In addition, considering that the ambient temperature will also affect the aging of the chip, the ambient temperature can also be taken into account when calculating the aging degree of the critical path. In the third embodiment, the preset first rule includes a first characteristic equation representing the relationship between the power supply voltage, the measured value and the temperature of the voltage measurement module under different aging times. Optionally, the first characteristic equation may be:
Voltage_T0=func(Count,Temp),Voltage_T0=func(Count, Temp),
Voltage_T1=func(Count,Temp),Voltage_T1=func(Count, Temp),
……...
Voltage_Tn=func(Count,Temp),其中,Temp为温度。Voltage_Tn=func(Count, Temp), where Temp is temperature.
此时,芯片老化补偿方法还包括:获取当前时刻的环境温度。可以利用温度传感器来获取芯片所处环境的环境温度或芯片内部的结温。At this time, the chip aging compensation method further includes: acquiring the ambient temperature at the current moment. A temperature sensor can be used to obtain the ambient temperature of the environment where the chip is located or the junction temperature inside the chip.
若电压测量模块的老化程度用指定目标测量值对应的电源电压的变化量来表征,相应地,S2的实现过程可以是:基于第一特性方程,确定相同环境温度下初始时刻的预设基准电压(已知值)对应的初始测量值;获取当前时刻的预设基准电压对应的测量值与初始时刻的初始测量值的测量值变化量;若测量值变化量超过预设阈值,基于第一特性方程获取环境温度下指定目标测量值对应的电压值,并获取指定目标测量值对应的电压值与初始时刻该指定目标测量值对应的初始电压值的电压变化量,电压变化量表征电压测量模块的老化程度。将当前时刻的环境温度、预设基准电压代入Voltage_T0=func(Count,Temp)表达式,得到初始时刻的测量值,然后将当前时刻的测量值与初始时刻的测量值相比,若两者的差值超过预设阈值,则基于第一特性方程获取相同环境温度下指定目标测量值对应的电压值,并获取指定目标测量值对应的电压值与初始时刻的初始电压值的电压变化量,电压变化量表征电压测量模块的老化程度。If the aging degree of the voltage measurement module is represented by the variation of the power supply voltage corresponding to the specified target measurement value, correspondingly, the implementation process of S2 may be: based on the first characteristic equation, determine the preset reference voltage at the initial moment under the same ambient temperature (known value) corresponding initial measurement value; obtain the measurement value corresponding to the preset reference voltage at the current moment and the measurement value variation of the initial measurement value at the initial moment; if the measurement value variation exceeds the preset threshold, based on the first characteristic The equation obtains the voltage value corresponding to the specified target measurement value at the ambient temperature, and obtains the voltage change between the voltage value corresponding to the specified target measurement value and the initial voltage value corresponding to the specified target measurement value at the initial moment, and the voltage variation represents the voltage measurement module. degree of aging. Substitute the ambient temperature and preset reference voltage at the current moment into the expression Voltage_T0=func(Count, Temp) to obtain the measurement value at the initial moment, and then compare the measurement value at the current moment with the measurement value at the initial moment. If the difference exceeds the preset threshold, the voltage value corresponding to the specified target measurement value under the same ambient temperature is obtained based on the first characteristic equation, and the voltage change between the voltage value corresponding to the specified target measurement value and the initial voltage value at the initial moment is obtained, the voltage The variation characterizes the age of the voltage measurement module.
其中,基于第一特性方程获取相同环境温度下指定目标测量值对应的电压值的过程与上述基于第一特性方程获取指定目标测量值对应的电压值时的过程类似,只不过多考虑了当前时刻的环境温度,也是将预设基准电压和当前时刻的环境温度分别代入第一特性方程Voltage_T1~Voltage_Tn的表达式中,计算得到对应测量值,然后分别与当前时刻的测量值相比,选择差异度最小的那个方程来计算指定目标测量值对应的电压值,假设利用Voltage_T2计算得到的测量值与当前时刻的测量值相比差异度最小,则利用Voltage_T2的表达式来计算指定目标测量值对应的电压值。The process of obtaining the voltage value corresponding to the specified target measurement value based on the first characteristic equation under the same ambient temperature is similar to the above-mentioned process of obtaining the voltage value corresponding to the specified target measurement value based on the first characteristic equation, except that the current moment is more considered Also, the preset reference voltage and the ambient temperature at the current moment are respectively substituted into the expressions of the first characteristic equation Voltage_T1~Voltage_Tn, the corresponding measured values are calculated, and then compared with the measured values at the current moment, the difference degree is selected. The smallest equation is used to calculate the voltage value corresponding to the specified target measurement value. Assuming that the difference between the measurement value calculated by Voltage_T2 and the measurement value at the current moment is the smallest, the expression of Voltage_T2 is used to calculate the voltage corresponding to the specified target measurement value. value.
当然上述第一特性方程的表达式中的Count和Voltage也可以反过来,此时,第一特性方程可以为:Of course, Count and Voltage in the expression of the first characteristic equation can also be reversed. In this case, the first characteristic equation can be:
Count_T0=func(Voltage,Temp),Count_T0=func(Voltage,Temp),
Count_T1=func(Voltage,Temp),Count_T1=func(Voltage,Temp),
……...
Count_Tn=func(Voltage,Temp)。Count_Tn=func(Voltage, Temp).
若电压测量模块的老化程度用指定电源电压(如预设基准电压)对应的测量值的变化量来表征,此时,S2的实现过程可以是:基于第一特性方程,确定相同环境温度下初始时刻的预设基准电压(已知值)对应的初始测量值,获取当前时刻预设基准电压对应的测量值与初始时刻的初始测量值的测量值变化量。由于在T0时刻电压测量模块未老化,如果相同环境温度下当前时刻的测量值与T0时刻的初始测量值相等,则表征电压测量模块未发生老化,若相同环境温度下当前时刻的测量值与T0时刻的初始测量值不相等,则表征电压测量模块发生老化,相同环境温度下当前时刻的测量值与T0时刻的初始测量值的测量值变化量即为电压测量模块的老化程度。If the aging degree of the voltage measurement module is represented by the variation of the measurement value corresponding to the specified power supply voltage (such as the preset reference voltage), at this time, the implementation process of S2 may be: based on the first characteristic equation, determine the initial The initial measurement value corresponding to the preset reference voltage (known value) at the moment is obtained, and the measurement value change amount between the measurement value corresponding to the preset reference voltage at the current moment and the initial measurement value at the initial moment is obtained. Since the voltage measurement module is not aged at the time T0, if the measured value at the current moment under the same ambient temperature is equal to the initial measurement value at the moment T0, it means that the voltage measurement module is not aged. If the initial measurement values at the time are not equal, it indicates that the voltage measurement module is aging, and the change in the measurement value between the measurement value at the current moment and the initial measurement value at time T0 under the same ambient temperature is the aging degree of the voltage measurement module.
在考虑环境温度的情况下,该芯片老化补偿方法还包括:获取上述的表征电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,其中,获取上述的表征电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程的过程可以是:获取电压测量模块(在T0时刻)在不同电源电压、不同温度条件下的测量值,并进行拟合得到初始时刻下电源电压、测量值和温度关系的表达式,也即上述的Voltage_T0=func(Count,Temp)或Count_T0=func(Voltage,Temp);获取经过不同老化时间(T1~Tn)处理后的电压测量模块在不同电源电压、不同温度条件下对应的测量值,并进行拟合得到不同老化时间下电源电压、测量值和温度关系的表达式,也即上述的Voltage_T1=func(Count,Temp)~Voltage_Tn=func(Count,Temp),或者Count_T1=func(Voltage,Temp)~Count_Tn=func(Voltage,Temp),从而得到表征电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程。In the case of considering the ambient temperature, the chip aging compensation method further includes: obtaining the above-mentioned first characteristic equation representing the relationship between the power supply voltage, the measured value and the temperature of the voltage measurement module under different aging times, wherein, obtaining the above-mentioned characteristic voltage The process of measuring the first characteristic equation of the relationship between the power supply voltage, the measured value and the temperature of the module under different aging times may be: acquiring the measured values of the voltage measuring module (at the time T0) under different power supply voltage and different temperature conditions, and performing the process. Fit the expression of the relationship between power supply voltage, measured value and temperature at the initial moment, that is, the above Voltage_T0=func(Count, Temp) or Count_T0=func(Voltage, Temp); obtain different aging times (T1~Tn) The processed voltage measurement module corresponds to the measured values under different power supply voltage and different temperature conditions, and is fitted to obtain the expression of the relationship between the power supply voltage, measured value and temperature under different aging times, that is, the above Voltage_T1=func(Count , Temp)~Voltage_Tn=func(Count,Temp), or Count_T1=func(Voltage,Temp)~Count_Tn=func(Voltage,Temp), so as to obtain the power supply voltage, measured value and The first characteristic equation for the temperature relationship.
其中,拟合方式可以采用线性插值拟合,也可以采用曲线拟合,如多项式拟合、指数拟合等。The fitting method may use linear interpolation fitting or curve fitting, such as polynomial fitting, exponential fitting, and the like.
S3:基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度。S3: Obtain the aging degree of the critical path based on the aging degree of the voltage measurement module and a preset mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip.
在获取到电压测量模块的老化程度后,结合预设的表征电压测量模块与芯片内部关键路径的老化相关性的映射关系,可以得到电压测量模块的老化程度对应的关键路径的老化程度。After the aging degree of the voltage measurement module is obtained, the aging degree of the critical path corresponding to the aging degree of the voltage measurement module can be obtained in combination with the preset mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip.
其中,基于上述可知,电压测量模块的老化程度可以用指定电源电压对应的测量值变化量表征,也可以是用目标测量值对应的电压变化量表征。而关键路径的老化程度可以用芯片在目标频率条件下的电源电压变化量来表征,也可以用芯片在目标电源电压条件下的工作频率变化量来表征。则映射关系可以是上述电压变化量或测量值变化量与芯片的电源电压变化量或工作频率变化量的映射关系。Wherein, based on the above, it can be known that the aging degree of the voltage measurement module can be characterized by the variation of the measurement value corresponding to the specified power supply voltage, or it can be characterized by the variation of the voltage corresponding to the target measurement value. The aging degree of the critical path can be characterized by the variation of the power supply voltage of the chip under the target frequency condition, or by the variation of the operating frequency of the chip under the condition of the target power supply voltage. Then the mapping relationship may be the mapping relationship between the above-mentioned voltage variation or measured value variation and the power supply voltage variation or operating frequency variation of the chip.
由于关键路径的老化会使芯片相同电源电压条件下的工作频率降低以及会使相同目标频率条件下需要的电源电压增大。因此可以基于老化前后目标频率对应的电源电压变化量或目标电源电压对应的工作频率变化量来表征关键路径的老化程度。The aging of the critical path will reduce the operating frequency of the chip under the same power supply voltage condition and increase the required power supply voltage under the same target frequency condition. Therefore, the aging degree of the critical path can be characterized based on the power supply voltage variation corresponding to the target frequency before and after aging or the operating frequency variation corresponding to the target power voltage.
其中,本申请中的电源电压变化量、测量值变化量、电压变化量、工作频率变化量均用绝对值表示为正值。Wherein, the power supply voltage variation, the measured value variation, the voltage variation, and the operating frequency variation in this application are all expressed as positive values by absolute values.
需要说明的是,芯片内部关键路径可以是一个也可以是多个,若是多个,则对应的老化相关性的映射关系也为多个,在确定关键路径的老化程度时,需要针对每一个关键路径,结合该关键路径的映射关系计算对应的老化程度。It should be noted that the number of critical paths in the chip can be one or more. If there are more than one, the corresponding aging correlation mapping relationship is also multiple. The corresponding aging degree is calculated based on the mapping relationship of the critical path.
S4:基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值。S4: Based on the aging degree of the critical path and the preset second rule, obtain an aging compensation value corresponding to the aging degree of the critical path.
在得到关键路径的老化程度后,再结合预设第二规则,便可得到关键路径的老化程度对应的老化补偿值。其中,关键路径的老化程度与老化补偿值具有相关性。例如,若关键路径的老化程度用芯片目标频率对应的电源电压变化量来表征,则老化补偿值为当前时刻目标频率对应的电源电压,老化程度越大对应的老化补偿值越大;若关键路径的老化程度用芯片目标电源电压对应的工作频率变化量来表征,则老化补偿值为当前时刻芯片目标电源电压对应的工作频率,老化程度越大对应的老化补偿值越小。After obtaining the aging degree of the critical path, the aging compensation value corresponding to the aging degree of the critical path can be obtained by combining with the preset second rule. Among them, the aging degree of the critical path has a correlation with the aging compensation value. For example, if the aging degree of the critical path is represented by the change in the power supply voltage corresponding to the target frequency of the chip, the aging compensation value is the power supply voltage corresponding to the target frequency at the current moment, and the greater the aging degree, the greater the aging compensation value; The aging degree is characterized by the variation of the operating frequency corresponding to the target power supply voltage of the chip, and the aging compensation value is the operating frequency corresponding to the target power supply voltage of the chip at the current moment. The greater the aging degree, the smaller the corresponding aging compensation value.
若关键路径的老化程度用芯片目标电源电压对应的工作频率变化量来表征,则一种实施方式下,在不考虑温度对关键路径老化影响的情况下,S4的实现过程可以是:基于工作频率变化量和初始时刻目标电源电压对应的工作频率,得到当前时刻目标电源电压对应的工作频率,也即当前时刻目标电源电压对应的工作频率=初始工作频率-工作频率变化量。此时,预设第二规则可以包括初始时刻的初始工作频率。If the aging degree of the critical path is characterized by the variation of the operating frequency corresponding to the target power supply voltage of the chip, in one embodiment, without considering the influence of temperature on the aging of the critical path, the implementation process of S4 may be: based on the operating frequency The change amount and the operating frequency corresponding to the target power supply voltage at the initial time are obtained to obtain the operating frequency corresponding to the target power supply voltage at the current time, that is, the operating frequency corresponding to the target power supply voltage at the current time=initial operating frequency-operating frequency variation. At this time, the preset second rule may include the initial working frequency at the initial moment.
此外,在不考虑温度对关键路径老化影响的情况下,预设第二规则还可以包括表征关键路径在不同老化时间下的电源电压(用Vdd来表示)和工作频率(用Freq来表示)关系的第二特性方程,可选地,第二特性方程可以为:In addition, without considering the influence of temperature on the aging of the critical path, the preset second rule may further include characterizing the relationship between the power supply voltage (represented by Vdd) and the operating frequency (represented by Freq) of the critical path under different aging times The second characteristic equation of , optionally, the second characteristic equation can be:
Vdd_T0=func(Freq),Vdd_T0=func(Freq),
Vdd_T1=func(Freq),Vdd_T1=func(Freq),
……...
Vdd_Tn=func(Freq),其中,T0为初始时刻,此时关键路径未老化,T1~Tn为关键路径的不同老化时间,Vdd_T0为T0时刻也即初始时刻(不老化)的电源电压,Vdd_T1为T1时刻的电源电压,以此类推,Vdd_Tn为Tn时刻的电源电压。Vdd_Tn=func(Freq), where T0 is the initial time, when the critical path is not aging, T1~Tn are the different aging times of the critical path, Vdd_T0 is the power supply voltage at the time T0, that is, the initial time (not aging), and Vdd_T1 is The power supply voltage at time T1, and so on, Vdd_Tn is the power supply voltage at time Tn.
当然上述第二特性方程的表达式中的Vdd和Freq也可以反过来,此时,第二特性方程可以为:Of course, Vdd and Freq in the expression of the above second characteristic equation can also be reversed. At this time, the second characteristic equation can be:
Freq_T0=func(Vdd),Freq_T0=func(Vdd),
Freq_T1=func(Vdd),Freq_T1=func(Vdd),
……...
Freq_Tn=func(Vdd)。Freq_Tn=func(Vdd).
此时,S4的实现过程可以是:将T0时刻的芯片目标电源电压代入Vdd_T0=func(Freq)或Freq_T0=func(Vdd),得到T0时刻的芯片工作频率,再基于目标电源电压对应的工作频率变化量和初始时刻的初始工作频率,得到当前时刻目标电源电压对应的工作频率。At this time, the implementation process of S4 may be: substitute the chip target power supply voltage at time T0 into Vdd_T0=func(Freq) or Freq_T0=func(Vdd) to obtain the chip operating frequency at time T0, and then based on the operating frequency corresponding to the target power supply voltage The amount of change and the initial operating frequency at the initial moment are used to obtain the operating frequency corresponding to the target power supply voltage at the current moment.
若关键路径的老化程度用芯片目标工作频率对应的电源电源电压变化量来表征,则一种实施方式下,在不考虑温度对关键路径老化影响的情况下,S4的实现过程可以是:基于目标工作频率对应的、电源电压变化量和初始时刻的、电源电压,得到当前时刻目标工作频率对应的电源电压,也即当前时刻目标工作频率对应的电源电压=初始时刻的电源电压+电源电压变化量。此时,预设第二规则可以包括初始时刻目标工作频率对应的芯片电源电压。If the aging degree of the critical path is characterized by the variation of the power supply voltage corresponding to the target operating frequency of the chip, then in one embodiment, without considering the influence of temperature on the aging of the critical path, the implementation process of S4 may be: based on the target The power supply voltage change corresponding to the working frequency and the power supply voltage at the initial time, to obtain the power supply voltage corresponding to the target working frequency at the current time, that is, the power supply voltage corresponding to the target working frequency at the current time = power supply voltage at the initial time + power supply voltage change amount . At this time, the preset second rule may include the chip power supply voltage corresponding to the target operating frequency at the initial moment.
此外,预设第二规则还可以包括表征关键路径在不同老化时间下的电源电压(用Vdd来表示)和工作频率(用Freq来表示)关系的第二特性方程。此时,S4的实现过程可以是:将T0时刻的芯片目标工作频率代入Vdd_T0=func(Freq)或Freq_T0=func(Vdd),得到T0时刻的电源电压,再基于目标工作频率对应的电源电压变化量和初始时刻的电源电压,得到当前时刻目标工作频率对应的电源电压。In addition, the preset second rule may further include a second characteristic equation representing the relationship between the power supply voltage (represented by Vdd) and the operating frequency (represented by Freq) of the critical path under different aging times. At this time, the implementation process of S4 may be: Substitute the target operating frequency of the chip at time T0 into Vdd_T0=func(Freq) or Freq_T0=func(Vdd) to obtain the power supply voltage at time T0, and then based on the change of the power supply voltage corresponding to the target operating frequency and the power supply voltage at the initial moment to obtain the power supply voltage corresponding to the target operating frequency at the current moment.
在该种实施方式下,该芯片老化补偿方法还包括获取上述表征关键路径在不同老化时间下的电源电压和工作频率关系的第二特性方程,其中,获取上述表征关键路径在不同老化时间下的电源电压和工作频率关系的第二特性方程的过程可以是:获取关键路径模块在T0时刻不同电源电压下的频率值,并进行拟合得到初始时刻下电源电压和频率值关系的表达式,也即得到Vdd_T0=func(Freq)或Freq_T0=func(Vdd)。获取经过不同老化时间(T1~Tn)处理后的关键路径模块在不同电源电压、不同温度条件下的频率值,并进行拟合得到不同老化时间下电源电压和频率值关系的表达式,也即得到Vdd_T1=func(Freq)~Vdd_Tn=func(Freq)或Freq_T1=func(Vdd)~Freq_Tn=func(Vdd),从而得到表征关键路径在不同老化时间下的电源电压和工作频率关系的第二特性方程。In this embodiment, the chip aging compensation method further includes acquiring the above-mentioned second characteristic equation representing the relationship between the power supply voltage and the operating frequency of the critical path under different aging times, wherein, acquiring the above-mentioned characteristic equation representing the critical path under different aging times The process of the second characteristic equation of the relationship between the power supply voltage and the operating frequency can be: obtaining the frequency values of the critical path module at different power supply voltages at time T0, and fitting to obtain the expression of the relationship between the power supply voltage and the frequency value at the initial time, and also That is, Vdd_T0=func(Freq) or Freq_T0=func(Vdd) is obtained. Obtain the frequency values of the critical path module after different aging times (T1~Tn) under different power supply voltages and different temperature conditions, and perform fitting to obtain the expression of the relationship between the power supply voltage and the frequency value under different aging times, that is, Obtain Vdd_T1=func(Freq)~Vdd_Tn=func(Freq) or Freq_T1=func(Vdd)~Freq_Tn=func(Vdd), so as to obtain the second characteristic that characterizes the relationship between the power supply voltage and the operating frequency of the critical path under different aging times equation.
其中,拟合方式可以采用线性插值拟合,也可以采用曲线拟合,如多项式拟合、指数拟合等,而这些拟合方式的具体原理,已经为本领域技术人员所熟知,在此不再介绍。Among them, the fitting method may adopt linear interpolation fitting, or curve fitting, such as polynomial fitting, exponential fitting, etc., and the specific principles of these fitting methods are well known to those skilled in the art, and will not be discussed here. Introduce again.
其中,需要说明的是,为了测试关键路径的老化程度,可以利用由芯片的关键路径中的逻辑门器件组成的环形振荡器来实现。其中,关键路径模块由芯片的关键路径中的逻辑门器件组成的环形振荡器,具有与关键路径部分相同的逻辑器件及相同的连接方式。通过关键路径模块来模拟关键路径,通过监测关键路径模块的工作特性来反应核心电路中关键路径的特性,在设定工作条件(如电压、温度等)下,测量环形振荡器(关键路径模块)的输出频率来表征和衡量关键路径的延时特性和芯片在该工作条件下能够达到的最高工作频率。Among them, it should be noted that, in order to test the aging degree of the critical path, a ring oscillator composed of logic gate devices in the critical path of the chip can be used to implement the test. The critical path module is a ring oscillator composed of logic gate devices in the critical path of the chip, and has the same logic devices and the same connection mode as the critical path part. The critical path is simulated through the critical path module, the critical path characteristics in the core circuit are reflected by monitoring the operating characteristics of the critical path module, and the ring oscillator (critical path module) is measured under set operating conditions (such as voltage, temperature, etc.). The output frequency is used to characterize and measure the delay characteristics of the critical path and the highest operating frequency that the chip can achieve under this operating condition.
由于芯片的关键路径可以有多个,对应的关键路径模块也可以有多个,一个关键路径对应一个关键路径模块。在测试时,会测试芯片中所有的关键路径中的逻辑门器件组成的环形振荡器,相应地,上述的第二特性方程也可以有多个。最终得到芯片对应的工作频率和电源电压的对应关系,应用时根据目标工作频率设置相应的工作电压,或者根据目标电源电压设置相应的工作频率。Since there can be multiple critical paths of a chip, there can also be multiple corresponding critical path modules, and one critical path corresponds to one critical path module. During testing, a ring oscillator composed of logic gate devices in all critical paths in the chip will be tested, and correspondingly, there may be multiple second characteristic equations above. Finally, the corresponding relationship between the operating frequency of the chip and the power supply voltage is obtained. In application, the corresponding operating voltage is set according to the target operating frequency, or the corresponding operating frequency is set according to the target power supply voltage.
此外,考虑到环境温度也会对芯片老化造成一定的影响,因此在计算关键路径的老化程度时还可以将环境温度考虑在内。又一种实施方式下,预设第二规则包括表征关键路径在不同老化时间下的电源电压(用Vdd表示)、工作频率(用Freq表示)和温度(用Temp表示)关系的第二特性方程。可选地,第二特性方程可以为:In addition, considering that the ambient temperature will also have a certain impact on the aging of the chip, the ambient temperature can also be taken into account when calculating the aging degree of the critical path. In yet another embodiment, the preset second rule includes a second characteristic equation representing the relationship between the power supply voltage (represented by Vdd), the operating frequency (represented by Freq) and the temperature (represented by Temp) of the critical path under different aging times. . Optionally, the second characteristic equation may be:
Vdd_T0=func(Freq,Temp),Vdd_T0=func(Freq,Temp),
Vdd_T1=func(Freq,Temp),Vdd_T1=func(Freq,Temp),
……...
VddTn=func(Freq,Temp),其中,Temp为温度。VddTn=func(Freq, Temp), where Temp is the temperature.
同理,第二特性方程中的Freq和Vdd也可以反过来,此时,第二特性方程为:Similarly, Freq and Vdd in the second characteristic equation can also be reversed. At this time, the second characteristic equation is:
Freq_T0=func(Vdd,Temp),Freq_T0=func(Vdd,Temp),
Freq_T1=func(Vdd,Temp),Freq_T1=func(Vdd, Temp),
……...
Freq_Tn=func(Vdd,Temp)。Freq_Tn=func(Vdd, Temp).
在该种实施方式下,芯片老化补偿方法还包括获取当前时刻的环境温度。In this embodiment, the chip aging compensation method further includes acquiring the ambient temperature at the current moment.
若关键路径的老化程度用芯片目标工作频率对应的电源电压变化量来表征,相应地,S4的实现过程可以是:基于第二特性方程确定环境温度下初始时刻目标工作频率(如初始时刻的芯片工作频率)对应的电源电压,基于该目标工作频率对应的电源电压变化量和初始时刻的电源电压,得到当前时刻目标工作频率对应的电源电压,当前时刻目标工作频率对应的电源电压即为老化补偿值。即将目标工作频率代入上述Vdd_T0=func(Freq,Temp)或Freq_T0=func(Vdd,Temp),得到初始时刻的电源电压,再基于该目标工作频率对应的电源电压变化量,得到当前时刻目标工作频率对应的电源电压。其中,当前时刻目标工作频率对应的电源电压=初始时刻的电源电压+电源电压变化量。If the aging degree of the critical path is represented by the change in the power supply voltage corresponding to the target operating frequency of the chip, correspondingly, the implementation process of S4 may be: determining the target operating frequency at the initial moment at the ambient temperature based on the second characteristic equation (such as the chip at the initial moment). The power supply voltage corresponding to the operating frequency), based on the power supply voltage variation corresponding to the target operating frequency and the power supply voltage at the initial moment, the power supply voltage corresponding to the target operating frequency at the current moment is obtained, and the power supply voltage corresponding to the target operating frequency at the current moment is the aging compensation. value. Substitute the target operating frequency into the above Vdd_T0=func(Freq, Temp) or Freq_T0=func(Vdd, Temp) to obtain the power supply voltage at the initial moment, and then obtain the target operating frequency at the current moment based on the change in the power supply voltage corresponding to the target operating frequency the corresponding supply voltage. Wherein, the power supply voltage corresponding to the target operating frequency at the current moment = the power supply voltage at the initial moment + the variation of the power supply voltage.
若关键路径的老化程度用芯片目标电源电压对应的工作频率变化量来表征,相应地,S4的实现过程可以是:基于第二特性方程确定环境温度下初始时刻目标电源电压对应的工作频率,基于该目标电源电压对应的工作频率变化量和电源电压初始时刻的工作频率,得到当前时刻该目标电源电压对应的工作频率,当前时刻的工作频率即为老化补偿值。即,初始时刻的目标电源电压代入上述Vdd_T0=func(Freq,Temp)或Freq_T0=func(Vdd,Temp),得到初始时刻的工作频率,再基于该目标电源电压对应的工作频率变化量,得到当前时刻该目标电源电压对应的工作频率。其中,当前时刻该目标电源电压对应的工作频率=初始时刻的工作频率-工作频率变化量。If the aging degree of the critical path is represented by the variation of the operating frequency corresponding to the target power supply voltage of the chip, correspondingly, the implementation process of S4 may be: determining the operating frequency corresponding to the target power supply voltage at the initial moment under the ambient temperature based on the second characteristic equation, and based on the second characteristic equation The working frequency change corresponding to the target power supply voltage and the working frequency at the initial moment of the power supply voltage are obtained to obtain the working frequency corresponding to the target power supply voltage at the current moment, and the working frequency at the current moment is the aging compensation value. That is, the target power supply voltage at the initial time is substituted into the above Vdd_T0=func(Freq, Temp) or Freq_T0=func(Vdd, Temp) to obtain the operating frequency at the initial time, and then based on the change in the operating frequency corresponding to the target power supply voltage, the current The operating frequency corresponding to the target power supply voltage at the moment. Wherein, the working frequency corresponding to the target power supply voltage at the current moment = the working frequency at the initial moment - the variation of the working frequency.
需要说明的是,本申请中的电源电压变化量、测量值变化量、电压变化量、工作频率变化量均用绝对值表示为正值。It should be noted that, in this application, the power supply voltage variation, the measured value variation, the voltage variation, and the operating frequency variation are all expressed as positive values by absolute values.
在考虑环境温度的情况下,该芯片老化补偿方法还包括:获取上述表征关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程,其中,获取上述表征关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程的过程可以是:获取关键路径模块在不同电源电压、不同温度条件下的频率值,并进行拟合得到初始时刻下电源电压、频率值和温度关系的表达式,也即得到Vdd_T0=func(Freq,Temp)或Freq_T0=func(Vdd,Temp)。获取经过不同老化时间处理后的所述关键路径模块在不同电源电压、不同温度条件下的频率值,并进行拟合得到不同老化时间下电源电压、频率值和温度关系的表达式,也即得到Vdd_T1=func(Freq,Temp)~Vdd_Tn=func(Freq,Temp)或Freq_T1=func(Vdd,Temp)~Freq_Tn=func(Vdd,Temp),从而得到表征关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程。In the case of considering the ambient temperature, the chip aging compensation method further includes: obtaining the above-mentioned second characteristic equation representing the relationship between the power supply voltage, the operating frequency and the temperature of the critical path under different aging times, wherein, obtaining the above-mentioned characterizing the critical path in different aging times. The process of the second characteristic equation of the relationship between the power supply voltage, operating frequency and temperature under the aging time may be: obtaining the frequency values of the critical path module under different power supply voltage and temperature conditions, and fitting to obtain the power supply voltage at the initial moment, The expression of the relationship between the frequency value and the temperature, namely Vdd_T0=func(Freq, Temp) or Freq_T0=func(Vdd, Temp). Obtain the frequency values of the critical path module under different power supply voltages and different temperature conditions after processing with different aging times, and perform fitting to obtain the expression of the relationship between the power supply voltage, frequency value and temperature under different aging times, that is, obtain Vdd_T1=func(Freq, Temp)~Vdd_Tn=func(Freq,Temp) or Freq_T1=func(Vdd,Temp)~Freq_Tn=func(Vdd,Temp), so as to obtain the power supply voltage, The second characteristic equation for the relationship between operating frequency and temperature.
其中,拟合方式可以采用线性插值拟合,也可以采用曲线拟合,如多项式拟合、指数拟合,而这些拟合方式的具体原理,已经为本领域技术人员所熟知,在此不再介绍等。Among them, the fitting method can adopt linear interpolation fitting, and can also adopt curve fitting, such as polynomial fitting, exponential fitting, and the specific principles of these fitting methods are well known to those skilled in the art, and will not be repeated here. Introduction etc.
上述的表征电压测量模块与芯片内部关键路径的老化相关性的映射关系可以是基于上述的第一特性方程和第二特性方程获得,为了更好的理解上述的电压测量模块与芯片内部关键路径的老化相关性的映射关系,下面结合上述的第一特性方程和第二特性方程进行说明,其示意图可以如图2所示。The above-mentioned mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip can be obtained based on the above-mentioned first characteristic equation and the second characteristic equation. In order to better understand the relationship between the above-mentioned voltage measurement module and the critical path inside the chip The mapping relationship of the aging correlation is described below in conjunction with the above-mentioned first characteristic equation and second characteristic equation, and a schematic diagram thereof may be shown in FIG. 2 .
在考虑环境温度的情况下,假设第一特性方程为:In the case of considering the ambient temperature, it is assumed that the first characteristic equation is:
Voltage_T0=func(Count,Temp),Voltage_T0=func(Count, Temp),
Voltage_T1=func(Count,Temp),Voltage_T1=func(Count, Temp),
……...
Voltage_Tn=func(Count,Temp)。Voltage_Tn=func(Count, Temp).
第二特性方程可以为:The second characteristic equation can be:
Vdd_T0=func(Freq,Temp),Vdd_T0=func(Freq,Temp),
Vdd_T1=func(Freq,Temp),Vdd_T1=func(Freq,Temp),
……...
Vdd_Tn=func(Freq,Temp)。Vdd_Tn=func(Freq, Temp).
在得到上述的第一特性方程后,此时,根据应用需求,设定电压测量模块的目标测量值Count_Target,并推算电压测量模块不同老化时间(T1~Tn)相对于T0时刻的目标测量值所对应的电压变化量Voltage_variation(T1、T1……Tn||T0),也即推算T1时刻的目标测量值对应的电源电压与T0时刻的目标测量值对应的电源电压的电压变化量,推算T2时刻的目标测量值对应的电源电压与T0时刻的目标测量值对应的电源电压的电压变化量,推算T3时刻的目标测量值对应的电源电压与T0时刻的目标测量值对应的电源电压的电压变化量,依次类推,直至推算Tn时刻的目标测量值对应的电源电压与T0时刻的目标测量值对应的电源电压的电压变化量。After the above-mentioned first characteristic equation is obtained, at this time, according to the application requirements, the target measurement value Count_Target of the voltage measurement module is set, and the difference between the different aging times (T1~Tn) of the voltage measurement module relative to the target measurement value at T0 is calculated. The corresponding voltage variation Voltage_variation (T1, T1...Tn||T0), that is, the voltage variation of the power supply voltage corresponding to the target measurement value at time T1 and the power supply voltage corresponding to the target measurement value at time T0 is estimated, and time T2 is estimated The voltage variation of the power supply voltage corresponding to the target measurement value at time T0 and the power supply voltage corresponding to the target measurement value at time T0 is calculated, and the voltage variation of the power supply voltage corresponding to the power supply voltage corresponding to the target measurement value at time T3 and the target measurement value at time T0 is calculated. , and so on, until the voltage variation of the power supply voltage corresponding to the target measurement value at time Tn and the power supply voltage corresponding to the target measurement value at time T0 is estimated.
在得到上述的第二特性方程后,此时,根据应用需求,设定关键路径模块的目标频率值(Freq_Target),推算关键路径模块不同的老化时间(T1~Tn)相对于T0时刻目标频率值所对应的电源电压变化量Vdd_variation(T1、T1……Tn||T0),也即推算T1时刻的目标频率值对应的电源电压与T0时刻的目标频率值对应的电源电压的电源电压变化量,推算T2时刻的目标频率值对应的电源电压与T0时刻的目标频率值对应的电源电压的电源电压变化量,推算T3时刻的目标频率值对应的电源电压与T0时刻的目标频率值对应的电源电压的电源电压变化量,依次类推,直至推算Tn时刻的目标频率值对应的电源电压与T0时刻的目标频率值对应的电源电压的电源电压变化量。After the above-mentioned second characteristic equation is obtained, at this time, according to the application requirements, the target frequency value (Freq_Target) of the critical path module is set, and the different aging times (T1~Tn) of the critical path module are calculated relative to the target frequency value at time T0 The corresponding power supply voltage variation Vdd_variation (T1, T1...Tn||T0), that is, the power supply voltage variation of the power supply voltage corresponding to the target frequency value at time T1 and the power supply voltage corresponding to the target frequency value at time T0, Calculate the power supply voltage variation of the power supply voltage corresponding to the target frequency value at time T2 and the power supply voltage corresponding to the target frequency value at time T0, and estimate the power supply voltage corresponding to the target frequency value at time T3 and the target frequency value at time T0. The power supply voltage variation of , and so on, until the power supply voltage variation of the power supply voltage corresponding to the target frequency value at time Tn and the power supply voltage corresponding to the target frequency value at time T0 is estimated.
在推算得到电压测量模块不同老化时间(T1~Tn)相对于T0时刻的目标测量值所对应的电压变化量Voltage_variation(T1、T1……Tn||T0)以及关键路径模块不同的老化时间(T1~Tn)相对于T0时刻目标频率值所对应的电源电压变化量Vdd_variation(T1、T1……Tn||T0)后,将得到的电压变化量和电源电压变化量按相同老化时间进行一一对应,之后采用合适的模型(如一次多项式、多次多项式、指数模型、幂指数模型、多次方模型等)进行拟合表征,从而得到表征电压测量模块与芯片内部关键路径的老化相关性的映射关系。The voltage variation corresponding to the target measurement value at time T0 for different aging times (T1~Tn) of the voltage measurement module is calculated and obtained (T1, T1...Tn||T0) and the different aging time (T1) of the critical path module. ~Tn) relative to the power supply voltage variation Vdd_variation (T1, T1...Tn||T0) corresponding to the target frequency value at the time T0, the obtained voltage variation and power supply voltage variation are in a one-to-one correspondence with the same aging time. , and then use suitable models (such as first-order polynomial, multi-order polynomial, exponential model, power-exponential model, multi-power model, etc.) for fitting and characterization, so as to obtain a mapping that characterizes the aging correlation between the voltage measurement module and the critical path inside the chip relation.
上述的映射关系为电压测量模块的电压变化量与芯片的电源电压变化量之间的映射关系,此外,映射关系还可以是测量值变化量与芯片的电源电压变化量之间的映射关系、电压测量模块的电压变化量与工作频率变化量的映射关系、测量值变化量与工作频率变化量的映射关系。The above-mentioned mapping relationship is the mapping relationship between the voltage variation of the voltage measurement module and the power supply voltage variation of the chip. In addition, the mapping relationship can also be the mapping relationship between the measurement value variation and the power supply voltage variation of the chip. The mapping relationship between the voltage variation of the measurement module and the working frequency variation, and the mapping relationship between the measured value variation and the working frequency variation.
具体地,一种实施方式下,当第一特性方程为:Specifically, in one embodiment, when the first characteristic equation is:
Count_T0=func(Voltage,Temp),Count_T0=func(Voltage,Temp),
Count_T1=func(Voltage,Temp),Count_T1=func(Voltage,Temp),
……...
Count_Tn=func(Voltage,Temp)。Count_Tn=func(Voltage, Temp).
第二特性方程可以为:The second characteristic equation can be:
Vdd_T0=func(Freq,Temp),Vdd_T0=func(Freq,Temp),
Vdd_T1=func(Freq,Temp),Vdd_T1=func(Freq,Temp),
……...
Vdd_Tn=func(Freq,Temp)。此时,映射关系为测量值变化量与芯片的电源电压变化量之间的映射关系。Vdd_Tn=func(Freq, Temp). At this time, the mapping relationship is the mapping relationship between the amount of change in the measured value and the amount of change in the power supply voltage of the chip.
又一种实施方式下,当第一特性方程为:In another embodiment, when the first characteristic equation is:
Count_T0=func(Voltage,Temp),Count_T0=func(Voltage,Temp),
Count_T1=func(Voltage,Temp),Count_T1=func(Voltage,Temp),
……...
Count_Tn=func(Voltage,Temp)。Count_Tn=func(Voltage, Temp).
第二特性方程可以为:The second characteristic equation can be:
Freq_T0=func(Vdd,Temp),Freq_T0=func(Vdd,Temp),
Freq_T1=func(Vdd,Temp),Freq_T1=func(Vdd, Temp),
……...
Freq_Tn=func(Vdd,Temp)。此时,映射关系为测量值变化量与工作频率变化量的映射关系。Freq_Tn=func(Vdd, Temp). At this time, the mapping relationship is the mapping relationship between the variation of the measured value and the variation of the operating frequency.
又一种实施方式下,当第一特性方程为:In another embodiment, when the first characteristic equation is:
Voltage_T0=func(Count,Temp),Voltage_T0=func(Count, Temp),
Voltage_T1=func(Count,Temp),Voltage_T1=func(Count, Temp),
……...
Voltage_Tn=func(Count,Temp)。Voltage_Tn=func(Count, Temp).
第二特性方程可以为:The second characteristic equation can be:
Freq_T0=func(Vdd,Temp),Freq_T0=func(Vdd,Temp),
Freq_T1=func(Vdd,Temp),Freq_T1=func(Vdd, Temp),
……...
Freq_Tn=func(Vdd,Temp)。此时,映射关系为电压变化量与工作频率变化量的映射关系。Freq_Tn=func(Vdd, Temp). At this time, the mapping relationship is the mapping relationship between the voltage change amount and the operating frequency change amount.
在不考虑环境温度的情况下,基于上述的第一特性方程和第二特性方程获得表征电压测量模块与芯片内部关键路径的老化相关性的映射关系的原理与上述考虑环境温度的情况下,基于上述的第一特性方程和第二特性方程获得表征电压测量模块与芯片内部关键路径的老化相关性的映射关系的原理类似,在此不再说明。Without considering the ambient temperature, the principle of obtaining the mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip based on the above-mentioned first characteristic equation and the second characteristic equation and the above-mentioned case of considering the ambient temperature, based on The above-mentioned first characteristic equation and second characteristic equation obtain the mapping relationship representing the aging correlation between the voltage measurement module and the critical path inside the chip in a similar principle, and will not be described here.
S5:根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。S5: Adjust the power supply voltage or operating frequency of the chip according to the aging compensation value to perform aging compensation.
在计算得到老化补偿值后,根据老化补偿值调节芯片的电源电压或工作频率以进行老化补偿。After calculating the aging compensation value, adjust the power supply voltage or operating frequency of the chip according to the aging compensation value to perform aging compensation.
一种实施方式下,若关键路径的老化程度对应的老化补偿值为当前时刻的工作频率,则进行老化补偿时,可以是调节芯片的工作频率与当前时刻的工作频率一致,以进行老化补偿。在该种实施方式下,在进行老化补偿时是通过调节芯片的工作频率进行补偿。In one embodiment, if the aging compensation value corresponding to the aging degree of the critical path is the working frequency at the current moment, when performing the aging compensation, the working frequency of the chip may be adjusted to be consistent with the working frequency at the current moment to perform the aging compensation. In this embodiment, the aging compensation is performed by adjusting the operating frequency of the chip.
一种实施方式下,若关键路径的老化程度对应的老化补偿值为当前时刻的目标工作频率对应电源电压,则进行老化补偿时,可以是调节电源相关模块(比如芯片外部电源模块或芯片内部的LDO(low dropout regulator,低压差线性稳压器))的输出电压,使其输出值与当前时刻的电源电压一致,以进行老化补偿。在该种实施方式下,在进行老化补偿时是通过调节芯片的工作电压进行补偿。In one embodiment, if the aging compensation value corresponding to the aging degree of the critical path is the power supply voltage corresponding to the target operating frequency at the current moment, the aging compensation can be performed by adjusting the power supply related modules (such as the external power supply module of the chip or the internal power supply module of the chip). The output voltage of the LDO (low dropout regulator, low dropout linear regulator)) makes its output value consistent with the power supply voltage at the current moment to perform aging compensation. In this embodiment, the aging compensation is performed by adjusting the operating voltage of the chip.
为了更好的理解上述的芯片老化补偿方法,下面结合图3所示的一种具体的实施方式进行说明。需要说明的是,图3所示的实施方式仅是本申请众多实施方式中的一种,因此不能将其理解成是对本申请的限制。In order to better understand the above-mentioned chip aging compensation method, the following description is made with reference to a specific implementation manner shown in FIG. 3 . It should be noted that the embodiment shown in FIG. 3 is only one of many embodiments of the present application, and therefore should not be construed as a limitation on the present application.
在满足老化测量条件时,将电压测量模块与预设基准电压(可以是芯片电源电压,也可以是其他外部电源电压,为一已知值)连接,得到当前时刻的测量值。再基于第一特性方程推算相同环境温度下初始时刻的预设基准电压对应的初始测量值,计算当前时刻的测量值与述初始时刻的初始测量值的测量值变化量,若该测量值变化量大于预设阈值,则结合第一特性方程获取相同环境温度下指定目标测量值对应的电压值,并获取指定目标测量值对应的当前时刻电压值与初始时刻的初始电压值的电压变化量,从而得到电压测量模块的老化程度。之后,结合电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到关键路径的老化程度如电源电压变化量。之后,基于第二特性方程确定相同环境温度下初始时刻的目标频率对应的电源电压,并基于电源电压变化量和目标频率对应的电源电压,得到当前时刻的电源电压,之后控制电源相关模块调节其输出电压,使该输出电压与当前时刻的电源电压一致。When the aging measurement conditions are met, the voltage measurement module is connected to a preset reference voltage (which may be a chip power supply voltage, or other external power supply voltage, which is a known value) to obtain the measurement value at the current moment. Then calculate the initial measurement value corresponding to the preset reference voltage at the initial moment under the same ambient temperature based on the first characteristic equation, and calculate the measurement value change between the measurement value at the current moment and the initial measurement value at the initial moment. If the measurement value variation is greater than the preset threshold value, the voltage value corresponding to the specified target measurement value under the same ambient temperature is obtained in combination with the first characteristic equation, and the voltage change between the current moment voltage value corresponding to the specified target measurement value and the initial voltage value at the initial moment is obtained, thereby Get the aging degree of the voltage measurement module. Then, combining the mapping relationship between the voltage measurement module and the aging correlation of the critical path inside the chip, the aging degree of the critical path, such as the power supply voltage variation, is obtained. After that, the power supply voltage corresponding to the target frequency at the initial moment under the same ambient temperature is determined based on the second characteristic equation, and the power supply voltage at the current moment is obtained based on the power supply voltage variation and the power supply voltage corresponding to the target frequency, and then the power supply related modules are controlled to adjust the power supply voltage. Output voltage so that the output voltage is consistent with the power supply voltage at the current moment.
基于同样的发明构思,本申请实施例还提供了一种芯片老化补偿装置,该芯片补偿老化装置用于:获取利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,以及基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度,基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值,以及根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。Based on the same inventive concept, an embodiment of the present application also provides a chip aging compensation device, the chip aging compensation device is used to: obtain the measurement value of the current moment corresponding to the preset reference voltage measured by the voltage measurement module, based on the The measured value at the current moment and the preset first rule are used to obtain the aging degree of the voltage measurement module, and based on the aging degree of the voltage measurement module and the preset characteristics, the voltage measurement module is related to the aging of the critical path inside the chip. based on the aging degree of the critical path and the preset second rule, obtain the aging compensation value corresponding to the aging degree of the critical path, and obtain the aging compensation value according to the aging degree of the critical path. The power supply voltage or operating frequency of the chip is adjusted for aging compensation.
其中,该芯片老化补偿装置可以是实体设备也可以是虚拟设备(软件功能模块)。一种实施方式下,芯片老化补偿装置的结构示意图可以如图4所示。包括获取模块、老化检测模块和补偿模块。Wherein, the chip aging compensation device may be a physical device or a virtual device (software function module). In one embodiment, a schematic structural diagram of the chip aging compensation device may be as shown in FIG. 4 . Including acquisition module, aging detection module and compensation module.
其中,获取模块用于获取利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,其中,所述电压测量模块为基于环形振荡器的电压测量模块。Wherein, the obtaining module is used for obtaining the measurement value of the current moment corresponding to the preset reference voltage measured by the voltage measurement module, wherein the voltage measurement module is a voltage measurement module based on a ring oscillator.
老化检测模块,用于基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,以及基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度,以及基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值。An aging detection module, configured to obtain the aging degree of the voltage measurement module based on the measurement value at the current moment and a preset first rule, and based on the aging degree of the voltage measurement module and a preset characterizing the voltage measurement The mapping relationship between the aging correlation of the critical path inside the module and the chip, the aging degree of the critical path is obtained, and the aging degree corresponding to the aging degree of the critical path is obtained based on the aging degree of the critical path and the preset second rule compensation value.
补偿模块,用于根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。A compensation module, configured to adjust the power supply voltage or the operating frequency of the chip according to the aging compensation value to perform aging compensation.
可选地,所述预设第一规则包括表征所述电压测量模块在不同老化时间下的电源电压、测量值和温度关系的第一特性方程,获取模块还用于获取当前时刻的环境温度。相应地,老化检测模块,用于:基于所述第一特性方程,确定所述环境温度下初始时刻的预设基准电压对应的初始测量值;获取所述当前时刻的测量值与所述初始时刻的初始测量值的测量值变化量;若所述测量值变化量超过预设阈值,基于所述第一特性方程获取所述环境温度下指定目标测量值对应的电压值,并获取所述指定目标测量值对应的电压值与初始时刻的初始电压值的电压变化量,所述电压变化量表征所述电压测量模块的老化程度。或者,老化检测模块,用于:基于所述第一特性方程,确定所述环境温度下初始时刻的预设基准电压对应的初始测量值;获取所述当前时刻的测量值与所述初始时刻的初始测量值的测量值变化量,所述测量值变化量表征所述电压测量模块的老化程度。Optionally, the preset first rule includes a first characteristic equation representing the relationship between the power supply voltage, the measured value and the temperature of the voltage measurement module under different aging times, and the obtaining module is further configured to obtain the ambient temperature at the current moment. Correspondingly, the aging detection module is configured to: based on the first characteristic equation, determine the initial measurement value corresponding to the preset reference voltage at the initial moment under the ambient temperature; obtain the measurement value at the current moment and the initial moment The measured value change of the initial measured value of A voltage variation between the voltage value corresponding to the measurement value and the initial voltage value at the initial moment, where the voltage variation represents the aging degree of the voltage measurement module. Or, an aging detection module, configured to: based on the first characteristic equation, determine an initial measurement value corresponding to a preset reference voltage at the initial moment under the ambient temperature; obtain the measurement value at the current moment and the difference between the initial moment The measured value change amount of the initial measured value, the measured value change amount represents the aging degree of the voltage measurement module.
可选地,所述预设第二规则包括表征所述关键路径在不同老化时间下的电源电压、工作频率和温度关系的第二特性方程,若所述关键路径的老化程度用所述芯片目标工作频率对应的电源电压变化量来表征,则老化检测模块,用于:基于所述第二特性方程确定所述环境温度下初始时刻的目标工作频率对应的电源电压;基于所述电源电压变化量和所述目标工作频率对应的电源电压,得到所述当前时刻目标工作频率对应的电源电压,所述当前时刻目标工作频率对应的电源电压为所述老化补偿值。Optionally, the preset second rule includes a second characteristic equation representing the relationship between power supply voltage, operating frequency and temperature of the critical path under different aging times, if the aging degree of the critical path is determined by the chip target The power supply voltage variation corresponding to the operating frequency is represented by the aging detection module, which is used to: determine the power supply voltage corresponding to the target operating frequency at the initial moment under the ambient temperature based on the second characteristic equation; based on the power supply voltage variation The power supply voltage corresponding to the target operating frequency is obtained to obtain the power supply voltage corresponding to the target operating frequency at the current moment, and the power supply voltage corresponding to the target operating frequency at the current moment is the aging compensation value.
若所述关键路径的老化程度用所述芯片目标电源电压对应的工作频率变化量来表征,则老化检测模块,用于:基于所述第二特性方程确定所述环境温度下初始时刻的目标电源电压对应的工作频率;基于所述工作频率变化量和所述目标电源电压对应的工作频率,得到所述当前时刻目标电源电压对应的工作频率,所述当前时刻目标电源电压对应的工作频率为所述老化补偿值。If the aging degree of the critical path is represented by the variation of the operating frequency corresponding to the target power supply voltage of the chip, the aging detection module is configured to: determine the target power supply at the initial moment under the ambient temperature based on the second characteristic equation The working frequency corresponding to the voltage; based on the variation of the working frequency and the working frequency corresponding to the target power supply voltage, the working frequency corresponding to the target power supply voltage at the current moment is obtained, and the working frequency corresponding to the target power supply voltage at the current moment is the the aging compensation value.
本申请实施例所提供的芯片老化补偿装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the chip aging compensation device provided by the embodiments of the present application are the same as those of the foregoing method embodiments. For brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments. .
需要说明的是,若上述的芯片老化补偿装置为实体设备,则上述的获取模块可以是包括端口的收发器,上述的老化检测模块可以是处理器、控制器或者具有类似功能的硬件模块,上述的补偿模块可以是调节器或者具有类似功能的硬件模块,其中,调节器也可以是处理器、控制器等。It should be noted that, if the above-mentioned chip aging compensation device is a physical device, the above-mentioned acquisition module may be a transceiver including a port, and the above-mentioned aging detection module may be a processor, a controller or a hardware module with similar functions. The compensation module can be a regulator or a hardware module with similar functions, wherein the regulator can also be a processor, a controller, or the like.
基于同样的发明构思,本申请实施例还提供了一种SOC芯片,该SOC芯片包括电压测量模块和上述芯片老化补偿装置(此时为硬件)。电压测量模块预设基准电源电压连接,用于测量预设基准电源电压所对应的当前时刻的测量值,其中,所述电压测量模块为基于环形振荡器的电压测量模块。Based on the same inventive concept, an embodiment of the present application further provides an SOC chip, where the SOC chip includes a voltage measurement module and the above-mentioned chip aging compensation device (hardware in this case). The voltage measurement module is connected with a preset reference power supply voltage, and is used for measuring the measurement value at the current moment corresponding to the preset reference power supply voltage, wherein the voltage measurement module is a voltage measurement module based on a ring oscillator.
芯片老化补偿装置,与所述电压测量模块连接,所述芯片老化补偿装置,用于获取利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度,以及基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度,基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值,以及根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。The chip aging compensation device is connected to the voltage measurement module, and the chip aging compensation device is used to obtain the measurement value at the current moment corresponding to the preset reference voltage measured by the voltage measurement module, based on the measurement value at the current moment and the Presetting the first rule to obtain the aging degree of the voltage measurement module, and based on the aging degree of the voltage measurement module and a preset mapping relationship that characterizes the aging correlation between the voltage measurement module and the critical path inside the chip, obtain The aging degree of the critical path, based on the aging degree of the critical path and the preset second rule, obtain an aging compensation value corresponding to the aging degree of the critical path, and adjust the power supply of the chip according to the aging compensation value voltage or operating frequency for aging compensation.
该SOC(System on Chip)芯片可以是在现有大规模集成电路中涉及的SOC芯片的基础上,进一步集成上述电压测量模块和上述芯片老化补偿装置的SOC芯片。其中,大规模集成电路中涉及的SOC芯片可以是各种处理器、存储器等芯片。The SOC (System on Chip) chip may be an SOC chip that further integrates the above-mentioned voltage measurement module and the above-mentioned chip aging compensation device on the basis of the SOC chip involved in the existing large-scale integrated circuit. Among them, the SOC chip involved in the large-scale integrated circuit may be various processors, memory and other chips.
SOC芯片实施例所提供的芯片老化补偿装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,SOC芯片实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and the technical effect of the chip aging compensation device provided by the SOC chip embodiment are the same as those of the foregoing method embodiment. content.
基于同样的发明构思,本申请实施例提供的一种电子设备,该电子设备包括上述的SOC芯片或者上述的芯片老化补偿装置。SOC芯片可以是存储器或处理器等。该电子设备可以是手机、平板、电脑、服务器等设备。Based on the same inventive concept, an electronic device provided by an embodiment of the present application includes the above-mentioned SOC chip or the above-mentioned chip aging compensation device. The SOC chip can be a memory or a processor or the like. The electronic device may be a mobile phone, a tablet, a computer, a server, and other devices.
基于同样的发明构思,如图5所示,图5示出了本申请实施例提供的一种电子设备200的结构框图。所述电子设备200包括:收发器210、存储器220、通讯总线230以及处理器240。Based on the same inventive concept, as shown in FIG. 5 , FIG. 5 shows a structural block diagram of an
所述收发器210、所述存储器220、处理器240各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线230或信号线实现电性连接。其中,收发器210用于收发数据。存储器220用于存储计算机程序,如存储有图4中所示的软件功能模块,即芯片老化补偿装置。其中,芯片老化补偿装置包括至少一个可以软件或固件(Firmware)的形式存储于所述存储器220中或固化在所述电子设备200的操作系统(Operating System,OS)中的软件功能模块。所述处理器240,用于执行存储器220中存储的可执行模块,例如芯片老化补偿装置包括的软件功能模块或计算机程序。例如,处理器240,用于利用电压测量模块测量预设基准电压所对应的当前时刻的测量值,其中,所述电压测量模块为基于环形振荡器的电压测量模块;基于所述当前时刻的测量值和预设第一规则,得到所述电压测量模块的老化程度;基于所述电压测量模块的老化程度和预设的表征所述电压测量模块与芯片内部关键路径的老化相关性的映射关系,得到所述关键路径的老化程度;基于所述关键路径的老化程度和预设第二规则,得到所述关键路径的老化程度对应的老化补偿值;根据所述老化补偿值调节所述芯片的电源电压或工作频率以进行老化补偿。The
其中,存储器220可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-OnlyMemory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Wherein, the
处理器240可能是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP)等;还可以是数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器240也可以是任何常规的处理器等。The
本申请实施例还提供了一种非易失性的计算机可读取存储介质(以下简称存储介质),该存储介质上存储有计算机程序,该计算机程序被计算机如上述的电子设备200运行时,执行上述所示的芯片老化补偿方法。Embodiments of the present application also provide a non-volatile computer-readable storage medium (hereinafter referred to as storage medium), where a computer program is stored on the storage medium, and when the computer program is run by a computer such as the above-mentioned
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts among the various embodiments, refer to each other Can.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architectures, functions and possible implementations of apparatuses, methods and computer program products according to various embodiments of the present application. operate. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,笔记本电脑,服务器,或者电子设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的计算机可读存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a computer-readable storage medium , including several instructions to cause a computer device (which may be a personal computer, a notebook computer, a server, or an electronic device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned computer-readable storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks or optical disks, etc. medium of code.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111597029.9A CN114325315B (en) | 2021-12-24 | 2021-12-24 | Chip aging compensation method and device, SOC chip and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111597029.9A CN114325315B (en) | 2021-12-24 | 2021-12-24 | Chip aging compensation method and device, SOC chip and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114325315A true CN114325315A (en) | 2022-04-12 |
CN114325315B CN114325315B (en) | 2024-07-26 |
Family
ID=81013104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111597029.9A Active CN114325315B (en) | 2021-12-24 | 2021-12-24 | Chip aging compensation method and device, SOC chip and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114325315B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115308519A (en) * | 2022-10-10 | 2022-11-08 | 杭州三海电子有限公司 | Aging detection method, system, medium and equipment for electronic equipment |
CN116048179A (en) * | 2022-03-11 | 2023-05-02 | 成都海光微电子技术有限公司 | Performance parameter adjusting method, adjusting device and related equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063144A (en) * | 2010-11-17 | 2011-05-18 | 东南大学 | Dynamic voltage regulation system applied for low energy consumption and implementation method |
US20110181315A1 (en) * | 2010-01-25 | 2011-07-28 | Broadcom Corporation | Adaptive Device Aging Monitoring and Compensation |
US20130120009A1 (en) * | 2011-11-16 | 2013-05-16 | Arm Limited | Apparatus and method for determining variation in a predetermined physical property of a circuit |
CN103197717A (en) * | 2013-02-28 | 2013-07-10 | 华为技术有限公司 | Method, chip and system for adaptive voltage adjustment |
CN105021972A (en) * | 2014-04-18 | 2015-11-04 | 创意电子股份有限公司 | Aging detection circuit and method thereof |
US9672310B1 (en) * | 2015-07-09 | 2017-06-06 | Apple Inc. | Reliability guardband compensation |
CN108027403A (en) * | 2015-09-10 | 2018-05-11 | 高通股份有限公司 | With the integrated circuit adaptive voltage scaling for going aging |
US10114068B1 (en) * | 2013-08-22 | 2018-10-30 | Altera Corporation | Methods and apparatus for monitoring aging effects on an integrated circuit |
CN109581184A (en) * | 2018-11-13 | 2019-04-05 | 北京航空航天大学 | A kind of screening technique and on piece measuring system for aging of integrated circuit reliability |
CN109766233A (en) * | 2019-03-08 | 2019-05-17 | 江南大学 | A detection circuit and method for sensing the delay of processor NBTI effect |
CN110988652A (en) * | 2019-11-28 | 2020-04-10 | 西安电子科技大学 | A detection method for recycling chips and a detection circuit thereof |
US20200264229A1 (en) * | 2019-02-15 | 2020-08-20 | Qualcomm Incorporated | Soc imminent failure prediction using aging sensors |
US20200334118A1 (en) * | 2019-04-19 | 2020-10-22 | Nxp B.V. | Chip health monitor |
-
2021
- 2021-12-24 CN CN202111597029.9A patent/CN114325315B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110181315A1 (en) * | 2010-01-25 | 2011-07-28 | Broadcom Corporation | Adaptive Device Aging Monitoring and Compensation |
CN102063144A (en) * | 2010-11-17 | 2011-05-18 | 东南大学 | Dynamic voltage regulation system applied for low energy consumption and implementation method |
US20130120009A1 (en) * | 2011-11-16 | 2013-05-16 | Arm Limited | Apparatus and method for determining variation in a predetermined physical property of a circuit |
CN103197717A (en) * | 2013-02-28 | 2013-07-10 | 华为技术有限公司 | Method, chip and system for adaptive voltage adjustment |
US10114068B1 (en) * | 2013-08-22 | 2018-10-30 | Altera Corporation | Methods and apparatus for monitoring aging effects on an integrated circuit |
CN105021972A (en) * | 2014-04-18 | 2015-11-04 | 创意电子股份有限公司 | Aging detection circuit and method thereof |
US9672310B1 (en) * | 2015-07-09 | 2017-06-06 | Apple Inc. | Reliability guardband compensation |
CN108027403A (en) * | 2015-09-10 | 2018-05-11 | 高通股份有限公司 | With the integrated circuit adaptive voltage scaling for going aging |
CN109581184A (en) * | 2018-11-13 | 2019-04-05 | 北京航空航天大学 | A kind of screening technique and on piece measuring system for aging of integrated circuit reliability |
US20200264229A1 (en) * | 2019-02-15 | 2020-08-20 | Qualcomm Incorporated | Soc imminent failure prediction using aging sensors |
CN109766233A (en) * | 2019-03-08 | 2019-05-17 | 江南大学 | A detection circuit and method for sensing the delay of processor NBTI effect |
US20200334118A1 (en) * | 2019-04-19 | 2020-10-22 | Nxp B.V. | Chip health monitor |
CN110988652A (en) * | 2019-11-28 | 2020-04-10 | 西安电子科技大学 | A detection method for recycling chips and a detection circuit thereof |
Non-Patent Citations (1)
Title |
---|
邱吉冰: "采用关键路径漏电流变化分析的集成电路老化预测方法", 《计算机辅助设计与图形学学报》, 15 February 2015 (2015-02-15) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116048179A (en) * | 2022-03-11 | 2023-05-02 | 成都海光微电子技术有限公司 | Performance parameter adjusting method, adjusting device and related equipment |
CN115308519A (en) * | 2022-10-10 | 2022-11-08 | 杭州三海电子有限公司 | Aging detection method, system, medium and equipment for electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114325315B (en) | 2024-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11675016B2 (en) | Diagnostic device and diagnostic method for battery | |
CN108507699B (en) | Method for estimating surface temperature of portable device and portable device | |
TWI642959B (en) | Method and apparatus for measuring electric quantity of battery | |
TW201939048A (en) | Integrated circuit workload, temperature and/or sub-threshold leakage sensor | |
CN108475935A (en) | A kind of battery charging management method and terminal | |
US12123789B2 (en) | Method and device for temperature detection and thermal management based on power measurement | |
CN114325315A (en) | Chip aging compensation method and device, SOC chip and electronic equipment | |
WO2024169905A1 (en) | Ambient temperature measurement method and apparatus for electronic device | |
CN112287510B (en) | System and method for modeling thermal circuits | |
CN110245061B (en) | Computing device, method for predicting power consumption thereof, and computer-readable storage medium | |
CN112945418B (en) | Temperature measuring device and temperature measuring method of integrated chip | |
JP6421411B2 (en) | Estimation program for estimating battery charging rate, estimation method for estimating battery charging rate, and estimation device for estimating battery charging rate | |
JP2015184219A (en) | Estimation program, estimation method, and estimation apparatus | |
CN107918101A (en) | charge state indicating method and indicating system | |
CN114441848A (en) | Power consumption determination method and device, electronic equipment and storage medium | |
CN118914855A (en) | Display SOC calculation method, device, storage medium and equipment | |
WO2021030934A1 (en) | Battery pack, battery current measurement circuit system, and battery current measurement apparatus | |
CN107272862A (en) | Determine the method and terminal of terminal handler voltage | |
CN107643488A (en) | Corresponding to the metering method and its electronic installation of the battery electric quantity of temperature | |
CN114355219A (en) | Battery state of health estimation method and energy storage system health improvement method | |
CN116466122B (en) | Current detection circuit, method, chip, electronic component and electronic device | |
CN114386355B (en) | Adjustment method, chip and computer storage medium | |
WO2023272700A1 (en) | Temperature control apparatus and method | |
CN116840718A (en) | Method and device for predicting direct-current internal resistance of battery, electronic equipment and storage medium | |
TWI614512B (en) | Gauging method for battery discharge-capacity corresponding to temperature and electronic device using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |