一种调压方法、装置、设备及介质A pressure regulating method, device, equipment and medium
本申请要求于2020年12月07日提交中国专利局、申请号为202011418056.0、发明名称为“一种调压方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011418056.0 and the invention titled "A pressure regulating method, device, equipment and medium" filed with the China Patent Office on December 07, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本发明涉及计算机算法技术领域,特别涉及一种调压方法、装置、设备及介质。The present invention relates to the technical field of computer algorithms, and in particular, to a voltage regulation method, device, equipment and medium.
背景技术Background technique
随着集成芯片功能模块的增多,集成芯片的功耗量也随之增加。在现有技术中,为了降低集成芯片的功耗量,通常是根据集成芯片的工作频率与供电电压之间的映射关系来对集成芯片的供电电压进行调整,但是,由于此种调压方法没有考虑到集成芯片制造工艺差异、调压误差以及集成芯片内部运行内核数量变化对集成芯片供电电压所造成的影响,这样就导致对集成芯片的供电电压不准确、不可靠。目前,针对这一技术问题,还没有较为有效的解决办法。With the increase of the functional modules of the integrated chip, the power consumption of the integrated chip also increases. In the prior art, in order to reduce the power consumption of the integrated chip, the power supply voltage of the integrated chip is usually adjusted according to the mapping relationship between the operating frequency of the integrated chip and the power supply voltage. Considering the influence of the integrated chip manufacturing process differences, voltage regulation errors and changes in the number of operating cores inside the integrated chip on the power supply voltage of the integrated chip, the power supply voltage to the integrated chip is inaccurate and unreliable. At present, there is no more effective solution to this technical problem.
由此可见,如何提高在对集成芯片进行供电调压过程中的准确性与可靠性,是本领域技术人员亟待解决的技术问题。It can be seen that how to improve the accuracy and reliability in the process of power supply and voltage regulation for the integrated chip is a technical problem to be solved urgently by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的在于提供一种调压方法、装置、设备及介质,以提高在对集成芯片进行供电调压过程中的准确性与可靠性。其具体方案如下:In view of this, the purpose of the present invention is to provide a voltage regulation method, device, equipment and medium, so as to improve the accuracy and reliability in the process of power supply voltage regulation for integrated chips. Its specific plan is as follows:
一种调压方法,应用于集成芯片的控制器,包括:A voltage regulation method applied to a controller of an integrated chip, comprising:
利用预设调压关系对所述集成芯片的供电电压进行调整;其中,所述预设调压关系的创建过程包括:The power supply voltage of the integrated chip is adjusted by using a preset voltage regulation relationship; wherein, the creation process of the preset voltage regulation relationship includes:
获取所述集成芯片在目标工作频率下所对应的目标需求电压,并记录所述目标工作频率和所述目标需求电压之间的映射关系;Acquire the target demand voltage corresponding to the integrated chip at the target operating frequency, and record the mapping relationship between the target operating frequency and the target demand voltage;
获取所述集成芯片在内核数量为N时所需要的目标供电电压;N≥1;Obtain the target power supply voltage required by the integrated chip when the number of cores is N; N≥1;
根据所述集成芯片外部调压电路的属性特征设定所述外部调压电路在对所述集成芯片进行供电时的调压误差;Setting the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip according to the attribute characteristics of the external voltage regulation circuit of the integrated chip;
利用所述集成芯片的外部供电电压和实际供电电压确定所述集成芯片内外电压之间的目标压差;Using the external power supply voltage of the integrated chip and the actual power supply voltage to determine the target voltage difference between the internal and external voltages of the integrated chip;
根据所述目标供电电压、所述调压误差和所述目标压差对所述映射关系进行调整,得到所述预设调压关系。The mapping relationship is adjusted according to the target power supply voltage, the voltage regulation error and the target voltage difference to obtain the preset voltage regulation relationship.
优选的,所述集成芯片具体为SOC芯片。Preferably, the integrated chip is specifically an SOC chip.
优选的,所述利用预设调压关系对所述集成芯片的供电电压进行调整的过程,包括:Preferably, the process of adjusting the power supply voltage of the integrated chip by using a preset voltage regulation relationship includes:
利用所述预设调压关系对所述集成芯片的供电电压进行均匀调整。The power supply voltage of the integrated chip is uniformly adjusted by using the preset voltage regulation relationship.
优选的,所述利用所述预设调压关系对所述集成芯片的供电电压进行均匀调整的过程,包括:Preferably, the process of uniformly adjusting the power supply voltage of the integrated chip by using the preset voltage regulation relationship includes:
基于所述集成芯片的调压响应时长,利用所述预设调压关系对所述集成芯片的供电电压进行均匀调整。Based on the voltage regulation response duration of the integrated chip, the power supply voltage of the integrated chip is uniformly adjusted by using the preset voltage regulation relationship.
优选的,所述根据所述集成芯片外部调压电路的属性特征设定所述外部调压电路在对所述集成芯片进行供电时的调压误差的过程,包括:Preferably, the process of setting the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip according to the attribute characteristics of the integrated chip external voltage regulation circuit includes:
获取所述映射关系中为所述集成芯片进行供电的最大供电电压;obtaining the maximum power supply voltage for supplying power to the integrated chip in the mapping relationship;
利用所述外部调压电路的属性特征设定所述外部调压电路在对所述集成芯片进行供电时的调压误差系数;Set the voltage regulation error coefficient of the external voltage regulation circuit when supplying power to the integrated chip by using the attribute characteristics of the external voltage regulation circuit;
根据所述最大供电电压和所述调压误差系数确定所述调压误差。The voltage regulation error is determined according to the maximum supply voltage and the voltage regulation error coefficient.
优选的,还包括:Preferably, it also includes:
将所述预设调压关系存储至所述控制器。The preset voltage regulation relationship is stored to the controller.
相应的,本发明还公开了一种调压装置,应用于集成芯片的控制器,包括:Correspondingly, the present invention also discloses a voltage regulating device, which is applied to a controller of an integrated chip, comprising:
电压调整模块,用于利用预设调压关系对所述集成芯片的供电电压进行调整;所述预设调压关系的创建过程包括:A voltage adjustment module, configured to adjust the power supply voltage of the integrated chip by using a preset voltage adjustment relationship; the creation process of the preset voltage adjustment relationship includes:
关系获取子模块,用于获取所述集成芯片在目标工作频率下所对应的目标需求电压,并记录所述目标工作频率和所述目标需求电压之间的映射 关系;A relationship acquisition sub-module for acquiring the target demand voltage corresponding to the integrated chip under the target operating frequency, and recording the mapping relationship between the target operating frequency and the target demand voltage;
第一获取子模块,用于获取所述集成芯片在内核数量为N时所需要的目标供电电压;N≥1;The first acquisition sub-module is used to acquire the target power supply voltage required by the integrated chip when the number of cores is N; N≥1;
第二获取子模块,用于根据所述集成芯片外部调压电路的属性特征设定所述外部调压电路在对所述集成芯片进行供电时的调压误差;The second acquisition sub-module is used to set the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip according to the attribute characteristics of the external voltage regulation circuit of the integrated chip;
第三获取子模块,用于利用所述集成芯片的外部供电电压和实际供电电压确定所述集成芯片内外电压之间的目标压差;a third acquisition sub-module, configured to determine the target voltage difference between the internal and external voltages of the integrated chip by using the external power supply voltage of the integrated chip and the actual power supply voltage;
关系调整子模块,用于根据所述目标供电电压、所述调压误差和所述目标压差对所述映射关系进行调整,得到所述预设调压关系。The relationship adjustment sub-module is configured to adjust the mapping relationship according to the target power supply voltage, the voltage regulation error and the target voltage difference to obtain the preset voltage regulation relationship.
相应的,本发明还公开了一种调压设备,包括:Correspondingly, the present invention also discloses a pressure regulating device, comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如前述所公开的一种调压方法的步骤。The processor is configured to implement the steps of a voltage regulation method as disclosed above when executing the computer program.
相应的,本发明还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如前述公开的一种调压方法的步骤。Correspondingly, the present invention also discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of a voltage regulation method disclosed above are implemented. .
可见,在本发明所提供的调压方法中,首先是获取集成芯片在目标工作频率下所对应的目标需求电压,并记录目标工作频率和目标需求电压之间的映射关系;然后,获取集成芯片在内核数量为N时所需要的目标供电电压,并根据集成芯片外部调压电路的属性特征设定对外部调压电路在对集成芯片进行供电时的调压误差,以及同时利用集成芯片的外部供电电压和实际供电电压确定集成芯片内外电压之间的目标压差;之后,再根据目标供电电压、调压误差和目标压差来对映射关系进行调整,得到预设调压关系;最后,利用预设调压关系来对集成芯片的供电电压进行调整。显然,在本发明所提供的调压方法中,因为考虑了集成芯片制造工艺的差异、外部调压电路的调压误差以及集成芯片内部运行内核数量变化对集成芯片供电电压所造成的影响,所以,利用该方法就可以显著提高在对集成芯片进行供电调压过程中的准确性与可靠性。相应的,本发明所提供的一种调压装置、设备及介质,同样具有上述有益效果。It can be seen that in the voltage regulation method provided by the present invention, the target demand voltage corresponding to the integrated chip at the target operating frequency is obtained first, and the mapping relationship between the target operating frequency and the target demand voltage is recorded; then, the integrated chip is obtained. The target power supply voltage required when the number of cores is N, and the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip is set according to the property characteristics of the external voltage regulation circuit of the integrated chip, and the external voltage regulation circuit of the integrated chip is used at the same time. The power supply voltage and the actual power supply voltage determine the target voltage difference between the internal and external voltages of the integrated chip; then, the mapping relationship is adjusted according to the target power supply voltage, voltage regulation error and target voltage difference to obtain a preset voltage regulation relationship; finally, use A preset voltage regulation relationship is used to adjust the power supply voltage of the integrated chip. Obviously, in the voltage regulation method provided by the present invention, because the difference in the manufacturing process of the integrated chip, the voltage regulation error of the external voltage regulation circuit and the influence of the change in the number of operating cores inside the integrated chip on the power supply voltage of the integrated chip are considered, so , the accuracy and reliability of the power supply voltage regulation process for the integrated chip can be significantly improved by using this method. Correspondingly, the pressure regulating device, equipment and medium provided by the present invention also have the above beneficial effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.
图1为本发明实施例所提供的一种调压方法的流程图;1 is a flowchart of a voltage regulation method provided by an embodiment of the present invention;
图2为本发明实施例所提供的一种调压装置的结构图;FIG. 2 is a structural diagram of a pressure regulating device provided by an embodiment of the present invention;
图3为本发明实施例所提供的一种调压设备的结构图。FIG. 3 is a structural diagram of a pressure regulating device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参见图1,图1为本发明实施例所提供的一种调压方法的流程图,该调压方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a voltage regulation method provided by an embodiment of the present invention. The voltage regulation method includes:
利用预设调压关系对集成芯片的供电电压进行调整;Use the preset voltage regulation relationship to adjust the power supply voltage of the integrated chip;
其中,预设调压关系的创建过程包括:The process of creating the preset voltage regulation relationship includes:
步骤S11:获取集成芯片在目标工作频率下所对应的目标需求电压,并记录目标工作频率和目标需求电压之间的映射关系;Step S11: acquiring the target demand voltage corresponding to the integrated chip at the target operating frequency, and recording the mapping relationship between the target operating frequency and the target demand voltage;
步骤S12:获取集成芯片在内核数量为N时所需要的目标供电电压;N≥1;Step S12: Obtain the target power supply voltage required by the integrated chip when the number of cores is N; N≥1;
步骤S13:根据集成芯片外部调压电路的属性特征设定外部调压电路在对集成芯片进行供电时的调压误差;Step S13: setting the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip according to the attribute characteristics of the external voltage regulation circuit of the integrated chip;
步骤S14:利用集成芯片的外部供电电压和实际供电电压确定集成芯片内外电压之间的目标压差;Step S14: using the external power supply voltage of the integrated chip and the actual power supply voltage to determine the target voltage difference between the internal and external voltages of the integrated chip;
步骤S15:根据目标供电电压、调压误差和目标压差对映射关系进行调 整,得到预设调压关系。Step S15: Adjust the mapping relationship according to the target power supply voltage, the voltage regulation error and the target voltage difference to obtain a preset voltage regulation relationship.
在本实施例中,为了降低集成芯片在工作过程中的功耗量,是提供了一种对集成芯片进行调压的方法,通过该方法可以显著提高在对集成芯片进行供电调压过程中的准确性与可靠性。具体的,在该调压方法中是利用预设调压关系来对集成芯片的供电电压进行调整。In this embodiment, in order to reduce the power consumption of the integrated chip during the working process, a method for regulating the voltage of the integrated chip is provided, and the method can significantly improve the power supply and voltage regulation process of the integrated chip. Accuracy and reliability. Specifically, in the voltage regulation method, a preset voltage regulation relationship is used to adjust the power supply voltage of the integrated chip.
其中,在创建预设调压关系的过程中,首先是获取集成芯片在目标工作频率f下所对应的目标需求电压V,并记录目标工作频率f与目标需求电压V之间的映射关系f→V。需要说明的是,在本实施例中,创建映射关系f→V是本领域技术人员较为常见的技术手段,所以,在本实施例中,对映射关系f→V的具体创建过程不作详细赘述。Among them, in the process of creating the preset voltage regulation relationship, the first step is to obtain the target demand voltage V corresponding to the integrated chip at the target operating frequency f, and record the mapping relationship between the target operating frequency f and the target demand voltage V f→ V. It should be noted that, in this embodiment, creating the mapping relationship f→V is a relatively common technical means for those skilled in the art. Therefore, in this embodiment, the specific creation process of the mapping relationship f→V will not be described in detail.
在实际应用中,除了集成芯片的工作频率会影响集成芯片的供电电压之外,还有很多因素也会影响集成芯片的供电电压,比如:集成芯片中运行内核的数量、集成芯片中外部调压电路对集成芯片的调压误差以及由于集成芯片制作工艺所引起集成芯片内外电压之间的目标压差等等,所以,在本实施例中,为了对集成芯片提供更为准确的供电电压,还根据集成芯片中内核的运行数量、外部调压电路的调压误差以及集成芯片内外电压之间的目标压差对映射关系进行了调整与修正。In practical applications, in addition to the operating frequency of the integrated chip, which affects the power supply voltage of the integrated chip, there are many factors that also affect the power supply voltage of the integrated chip, such as: the number of running cores in the integrated chip, the external voltage regulation in the integrated chip The voltage regulation error of the circuit to the integrated chip and the target voltage difference between the internal and external voltages of the integrated chip caused by the integrated chip manufacturing process, etc. Therefore, in this embodiment, in order to provide a more accurate power supply voltage for the integrated chip, the The mapping relationship is adjusted and corrected according to the number of cores in the integrated chip, the voltage regulation error of the external voltage regulation circuit, and the target voltage difference between the internal and external voltages of the integrated chip.
可以理解的是,控制器中运行内核数量的增多,虽然可以提升集成芯片的整体性能,但是,也会增加集成芯片的功耗量,所以,集成芯片中运行内核的数量也会对创建得到的映射关系造成影响。因此,在本实施例中,为了使得映射关系更加可靠与准确,还需要根据集成芯片中内核数量的变化来对映射关系进行修正。在此过程中,首先需要获取集成芯片在内核数量为N时所需要的目标供电电压。假设集成芯片每增加一个运行内核,集成芯片所需要增加的供电电压为ΔV
α,那么,集成芯片在内核数量为N时所需要的目标供电电压即为V
N=V+ΔV
α·N。
It can be understood that the increase in the number of running cores in the controller can improve the overall performance of the integrated chip, but it will also increase the power consumption of the integrated chip. Therefore, the number of running cores in the integrated chip will also affect the created Mapping relationship affects. Therefore, in this embodiment, in order to make the mapping relationship more reliable and accurate, it is also necessary to modify the mapping relationship according to the change in the number of cores in the integrated chip. In this process, it is first necessary to obtain the target power supply voltage required by the integrated chip when the number of cores is N. Assuming that the integrated chip needs to increase the power supply voltage by ΔV α every time an operating core is added, the target power supply voltage required by the integrated chip when the number of cores is N is V N =V+ΔV α ·N.
其次,在利用集成芯片中的外部调压电路来对集成芯片供电电压进行调整的过程中,由于外部调压电路自身设置属性的差异也会对集成芯片的供电电压产生影响,所以,在本实施例中,为了可以对集成芯片提供更为准确的供电电压,还进一步获取了外部调压电路在对集成芯片进行供电时 的调压误差V
x,其中,调压误差V
x是根据集成芯片外部调压电路的属性特征而设定的调整数值。
Secondly, in the process of using the external voltage regulating circuit in the integrated chip to adjust the power supply voltage of the integrated chip, the difference in the properties of the external voltage regulating circuit itself will also affect the power supply voltage of the integrated chip. Therefore, in this implementation In the example, in order to provide a more accurate power supply voltage to the integrated chip, the voltage regulation error V x of the external voltage regulation circuit when supplying power to the integrated chip is further obtained. The adjustment value set by the property characteristics of the voltage regulator circuit.
此外,由于集成芯片受制作工艺的限制,集成芯片中处于不同位置的晶体管在性能上也会有很大的差异,这样就会导致集成芯片中相同逻辑块所需要的运算时间不一致;并且,同一个集成芯片在不同环境下其内部的晶体管性能也会出现差异,比如:温度越高,集成芯片中的漏电流就会越大,从而导致在对集成芯片进行供电过程中的压降值也会越大。也即,在不同环境温度下,同样的外部供电电压最终到达集成芯片内部控制器时也会有所不同。所以,在对集成芯片供电电压进行调整时,还需要考虑集成芯片的外部供电电压与实际供电电压之间的目标压差。In addition, since the integrated chip is limited by the manufacturing process, transistors in different positions in the integrated chip will also have great differences in performance, which will lead to inconsistent operation time required by the same logic block in the integrated chip; The internal transistor performance of an integrated chip will also vary in different environments. For example, the higher the temperature, the greater the leakage current in the integrated chip, resulting in the voltage drop value in the process of supplying power to the integrated chip. bigger. That is, under different ambient temperatures, the same external power supply voltage will be different when it finally reaches the internal controller of the integrated chip. Therefore, when adjusting the power supply voltage of the integrated chip, it is also necessary to consider the target voltage difference between the external power supply voltage of the integrated chip and the actual power supply voltage.
在本实施例中,为了避免集成芯片内部压降值对集成芯片供电电压的影响,还根据集成芯片的外部供电电压和实际供电电压确定了集成芯片内外电压之间的目标压差。也即,假设集成芯片的实际需求供电电压为V
1,其外部供电电压为V
2,而集成芯片的实际供电电压为V
3,那么,集成芯片的目标压差即为(V
2-V
3)、在考虑完集成芯片内外电压之间的目标压差之后,就可以利用目标压差来对映射关系进行调整与修正,此时,实际需要对集成芯片的供电电压即为:V
β=V
1+(V
2-V
3)。
In this embodiment, in order to avoid the influence of the voltage drop value inside the integrated chip on the power supply voltage of the integrated chip, the target voltage difference between the internal and external voltages of the integrated chip is also determined according to the external power supply voltage of the integrated chip and the actual power supply voltage. That is, assuming that the actual power supply voltage of the integrated chip is V 1 , its external power supply voltage is V 2 , and the actual power supply voltage of the integrated chip is V 3 , then the target voltage difference of the integrated chip is (V 2 -V 3 ), after considering the target voltage difference between the internal and external voltages of the integrated chip, the target voltage difference can be used to adjust and correct the mapping relationship. At this time, the actual power supply voltage for the integrated chip is: V β =V 1 +(V 2 -V 3 ).
综上所述,在获取得到目标供电电压、外部调压电路对集成芯片进行供电时的调压误差以及集成芯片内外电压之间的目标压差之后,就可以利用目标供电电压、调压误差和目标压差来对映射关系进行调整与修正,得到预设调压关系。其中,在利用目标供电电压、调压误差和目标压差来对映射关系进行调整的过程中,主要是利用目标供电电压、调压误差和目标压差来对映射关系中的目标需求电压进行调整与修正,这样就可以使得集成芯片在目标工作频率下的需求电压更加准确与可靠。In summary, after obtaining the target power supply voltage, the voltage regulation error when the external voltage regulation circuit supplies power to the integrated chip, and the target voltage difference between the internal and external voltages of the integrated chip, the target power supply voltage, the voltage regulation error and the target voltage can be used. The target pressure difference is used to adjust and correct the mapping relationship to obtain a preset pressure regulation relationship. Among them, in the process of adjusting the mapping relationship by using the target power supply voltage, the voltage regulation error and the target voltage difference, the target demand voltage in the mapping relationship is mainly adjusted by using the target power supply voltage, the voltage regulation error and the target voltage difference. and correction, so that the required voltage of the integrated chip at the target operating frequency can be more accurate and reliable.
需要说明的是,在利用目标供电电压、调压误差和目标压差对映射关系进行调整的过程中,对各个因素的调整前后顺序不作具体限定,只要是利用目标供电电压、调压误差和目标压差共同对映射关系进行调整与修正即可。It should be noted that, in the process of adjusting the mapping relationship by using the target power supply voltage, voltage regulation error and target voltage difference, the order before and after the adjustment of each factor is not specifically limited, as long as the target power supply voltage, voltage regulation error and target voltage are used. The pressure difference can adjust and correct the mapping relationship together.
比如:当先利用目标供电电压V
N=V+ΔV
α·N来对映射关系中的目标需 求电压V进行修正时,就会得到第一修正映射关系:f→V+ΔV
α·N;然后,利用调压误差V
x来对第一修正映射关系中的需求电压进行修正时,就会得到第二修正映射关系:f→V+ΔV
α·N+V
x;最后,利用目标压差(V
2-V
3)来对第二修正映射关系中的需求电压进行修正调整时,就会得到第三修正映射关系:f→V+ΔV
α·N+V
x+(V
2-V
3)。
For example: when the target supply voltage V N =V+ΔV α ·N is used to correct the target demand voltage V in the mapping relationship, the first corrected mapping relationship will be obtained: f→V+ΔV α ·N; then, When using the voltage regulation error V x to correct the demanded voltage in the first correction mapping relationship, the second correction mapping relationship will be obtained: f→V+ΔV α ·N+V x ; finally, using the target voltage difference (V 2 -V 3 ) to correct and adjust the demand voltage in the second correction mapping relationship, the third correction mapping relationship is obtained: f→V+ΔV α ·N+V x +(V 2 -V 3 ).
可见,在本实施例所提供的调压方法中,首先是获取集成芯片在目标工作频率下所对应的目标需求电压,并记录目标工作频率和目标需求电压之间的映射关系;然后,获取集成芯片在内核数量为N时所需要的目标供电电压,并根据集成芯片外部调压电路的属性特征设定对外部调压电路在对集成芯片进行供电时的调压误差,以及同时利用集成芯片的外部供电电压和实际供电电压确定集成芯片的目标压差;之后,再根据目标供电电压、调压误差和目标压差来对映射关系进行调整,得到预设调压关系;最后,利用预设调压关系来对集成芯片的供电电压进行调整。显然,在本实施例所提供的调压方法中,因为考虑了集成芯片制造工艺的差异、外部调压电路的调压误差以及集成芯片内部运行内核数量变化对集成芯片供电电压所造成的影响,所以,利用该方法就可以显著提高在对集成芯片进行供电调压过程中的准确性与可靠性。It can be seen that, in the voltage regulation method provided in this embodiment, the target demand voltage corresponding to the integrated chip at the target operating frequency is first obtained, and the mapping relationship between the target operating frequency and the target demand voltage is recorded; The target power supply voltage required by the chip when the number of cores is N, and the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip is set according to the attribute characteristics of the external voltage regulation circuit of the integrated chip, and the voltage regulation error of the integrated chip is used at the same time. The target voltage difference of the integrated chip is determined by the external power supply voltage and the actual power supply voltage; after that, the mapping relationship is adjusted according to the target power supply voltage, voltage regulation error and target voltage difference to obtain a preset voltage regulation relationship; The voltage relationship is used to adjust the power supply voltage of the integrated chip. Obviously, in the voltage regulation method provided in this embodiment, because the difference in the manufacturing process of the integrated chip, the voltage regulation error of the external voltage regulation circuit and the influence of the change in the number of operating cores inside the integrated chip on the power supply voltage of the integrated chip are considered, Therefore, by using this method, the accuracy and reliability in the process of power supply voltage regulation for the integrated chip can be significantly improved.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,集成芯片具体为SOC芯片。Based on the above embodiment, this embodiment further describes and optimizes the technical solution. As a preferred implementation manner, the integrated chip is specifically an SOC chip.
具体的,在本实施例中,是将集成芯片设置为SOC芯片,因为SOC芯片可以有效降低电子产品的开发成本与开发周期,所以,在实际生活中得到了较为广泛的应用。因此,在本实施例中,是将集成芯片设置为SOC芯片,由此就可以相对提高本申请所提供调压方法在实际使用过程中的普适性。Specifically, in this embodiment, the integrated chip is set as an SOC chip. Because the SOC chip can effectively reduce the development cost and development cycle of electronic products, it is widely used in real life. Therefore, in this embodiment, the integrated chip is set as an SOC chip, so that the universality of the voltage regulation method provided by the present application in the actual use process can be relatively improved.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,利用预设调压关系对集成芯片的供电电压进行调整的过程,包括:Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the process of adjusting the power supply voltage of the integrated chip by using the preset voltage regulation relationship includes:
利用预设调压关系对集成芯片的供电电压进行均匀调整。The power supply voltage of the integrated chip is evenly adjusted by using the preset voltage regulation relationship.
在实际应用中,如果对集成芯片的供电电压调整幅度过大,可能会引起集成芯片外部调压电路的纹波发生巨大的变化,在此情况下,可能会导致对控制器的供电电压不在控制范围内。因此,在本实施例中,为了避免上述情况的出现,是利用预设调压关系来对集成芯片的供电电压进行均匀调整,以保证在对集成芯片进行供电过程中的可靠性。In practical applications, if the adjustment range of the power supply voltage of the integrated chip is too large, it may cause a huge change in the ripple of the external voltage regulating circuit of the integrated chip. In this case, the power supply voltage to the controller may not be controlled. within the range. Therefore, in this embodiment, in order to avoid the above situation, a preset voltage regulation relationship is used to uniformly adjust the power supply voltage of the integrated chip, so as to ensure the reliability in the process of supplying power to the integrated chip.
也即,如果对需要对集成芯片进行供电的电压为V1,而当前对集成芯片的供电电压为V2,为了保证在对集成芯片进行供电过程中的稳定性,可以采取阶梯上升或阶梯下降的方式来对集成芯片的供电电压进行调整。That is, if the voltage that needs to supply power to the integrated chip is V1, and the current supply voltage to the integrated chip is V2, in order to ensure the stability in the process of supplying power to the integrated chip, a step-up or step-down method can be adopted. to adjust the power supply voltage of the integrated chip.
作为一种优选的实施方式,上述步骤:利用预设调压关系对集成芯片的供电电压进行均匀调整的过程,包括:As a preferred embodiment, the above steps: the process of uniformly adjusting the power supply voltage of the integrated chip by using a preset voltage regulation relationship, including:
基于集成芯片的调压响应时长,利用预设调压关系对集成芯片的供电电压进行均匀调整。Based on the voltage regulation response time of the integrated chip, a preset voltage regulation relationship is used to uniformly adjust the power supply voltage of the integrated chip.
具体的,在利用预设调压关系来对集成芯片的供电电压进行均匀调整的过程中,还可以基于集成芯片的调压响应时长来对集成芯片的供电电压进行调整,因为当基于集成芯片的调压响应时长来对集成芯片的供电电压进行调整时,就可以避免在对集成芯片进行调压过程中所出现的电压抖动现象,由此就可以保证在对集成芯片进行调压过程中的完整性。Specifically, in the process of uniformly adjusting the power supply voltage of the integrated chip by using the preset voltage regulation relationship, the power supply voltage of the integrated chip can also be adjusted based on the voltage regulation response time of the integrated chip, because when the power supply voltage of the integrated chip is based on the When the power supply voltage of the integrated chip is adjusted by the voltage regulation response time, the voltage jitter phenomenon that occurs in the process of voltage regulation of the integrated chip can be avoided, thereby ensuring the integrity of the voltage regulation process of the integrated chip. sex.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,上述步骤:根据集成芯片外部调压电路的属性特征设定外部调压电路在对集成芯片进行供电时的调压误差的过程,包括:Based on the above embodiment, this embodiment further describes and optimizes the technical solution. As a preferred implementation, the above steps: set the external voltage regulation circuit according to the attribute characteristics of the external voltage regulation circuit of the integrated chip. The process of voltage regulation error during power supply, including:
获取映射关系中为集成芯片进行供电的最大供电电压;Obtain the maximum power supply voltage that powers the integrated chip in the mapping relationship;
利用外部调压电路的属性特征设定外部调压电路在对集成芯片进行供电时的调压误差系数;Use the properties of the external voltage regulating circuit to set the voltage regulating error coefficient of the external voltage regulating circuit when supplying power to the integrated chip;
根据最大供电电压和调压误差系数确定调压误差。The voltage regulation error is determined according to the maximum supply voltage and the voltage regulation error coefficient.
在本实施例中,为了避免集成芯片在供电电压动态调整过程中出现供电电压低于集成芯片最低需求供电电压的情况,在设定调压误差时,首先是获取了映射关系中为集成芯片进行供电的最大供电电压V
max,然后,再 根据外部调压电路的属性特征设定外部调压电路在对集成芯片进行供电时的调压误差系数δ,最后,再根据最大供电电压V
max和调压误差系数δ确定调压误差V
max·δ。能够想到的是,当确定出调压误差V
max·δ之后,就可以利用调压误差V
max·δ来对映射关系进行修正,也即,f→(V+V
max·δ)。
In this embodiment, in order to avoid the situation that the power supply voltage of the integrated chip is lower than the minimum required power supply voltage of the integrated chip during the dynamic adjustment of the power supply voltage of the integrated chip, when setting the voltage adjustment error, firstly obtain the mapping relationship for the integrated chip. The maximum power supply voltage V max of the power supply, and then, according to the properties and characteristics of the external voltage regulator circuit, the voltage regulation error coefficient δ of the external voltage regulator circuit when supplying power to the integrated chip is set, and finally, according to the maximum power supply voltage V max and the regulation The voltage error coefficient δ determines the voltage regulation error V max ·δ. It is conceivable that after the voltage regulation error V max ·δ is determined, the mapping relationship can be corrected by using the voltage regulation error V max ·δ, that is, f→(V+V max ·δ).
显然,通过本实施例所提供的技术方案,就可以进一步保证在对集成芯片进行供电过程中的可靠性。Obviously, with the technical solution provided in this embodiment, the reliability in the process of supplying power to the integrated chip can be further ensured.
基于上述实施例,本实施例对技术方案作进一步的说明与优化,作为一种优选的实施方式,上述调压方法还包括:Based on the above-mentioned embodiment, this embodiment further illustrates and optimizes the technical solution. As a preferred implementation, the above-mentioned voltage regulation method further includes:
将预设调压关系存储至控制器。Store the preset voltage regulation relationship to the controller.
在实际应用中,还可以将预设调压关系直接存储在集成芯片的控制器中,这样当需要对集成芯片的供电电压进行调整时,控制器就可以直接通过调用其内所存储的预设调压关系来对集成芯片的供电电压进行调整,由此就节省了从远程终端调用预设调压关系时所需要的时间,这样就可以进一步提高在对集成芯片进行调压过程中的调压速度。In practical applications, the preset voltage regulation relationship can also be directly stored in the controller of the integrated chip, so that when the power supply voltage of the integrated chip needs to be adjusted, the controller can directly call the preset voltage stored in it. The voltage regulation relationship is used to adjust the power supply voltage of the integrated chip, which saves the time required to call the preset voltage regulation relationship from the remote terminal, so that the voltage regulation during the voltage regulation process of the integrated chip can be further improved. speed.
请参见图2,图2为本发明实施例所提供的一种调压装置的结构图,该调压装置包括:Please refer to FIG. 2. FIG. 2 is a structural diagram of a pressure regulating device provided by an embodiment of the present invention. The pressure regulating device includes:
电压调整模块,用于利用预设调压关系对集成芯片的供电电压进行调整;预设调压关系的创建过程包括:The voltage adjustment module is used to adjust the power supply voltage of the integrated chip by using the preset voltage adjustment relationship; the creation process of the preset voltage adjustment relationship includes:
关系获取子模块21,用于获取集成芯片在目标工作频率下所对应的目标需求电压,并记录目标工作频率和目标需求电压之间的映射关系;The relationship acquisition sub-module 21 is used to acquire the target demand voltage corresponding to the integrated chip under the target operating frequency, and record the mapping relationship between the target operating frequency and the target demand voltage;
第一获取子模块22,用于获取集成芯片在内核数量为N时所需要的目标供电电压;N≥1;The first acquisition sub-module 22 is used to acquire the target power supply voltage required by the integrated chip when the number of cores is N; N≥1;
第二获取子模块23,用于根据集成芯片外部调压电路的属性特征设定外部调压电路在对集成芯片进行供电时的调压误差;The second acquisition sub-module 23 is used to set the voltage regulation error of the external voltage regulation circuit when supplying power to the integrated chip according to the attribute characteristics of the external voltage regulation circuit of the integrated chip;
第三获取子模块24,用于利用集成芯片的外部供电电压和实际供电电压确定集成芯片内外电压之间的目标压差;The third acquisition sub-module 24 is used to determine the target voltage difference between the internal and external voltages of the integrated chip by using the external power supply voltage of the integrated chip and the actual power supply voltage;
关系调整子模块25,用于根据目标供电电压、调压误差和目标压差对 映射关系进行调整,得到预设调压关系。The relationship adjustment sub-module 25 is configured to adjust the mapping relationship according to the target power supply voltage, the voltage regulation error and the target voltage difference to obtain a preset voltage regulation relationship.
本发明实施例所提供的一种调压装置,具有前述所公开的一种调压方法所具有的有益效果。The pressure regulating device provided by the embodiment of the present invention has the beneficial effects of the pressure regulating method disclosed above.
请参见图3,图3为本发明实施例所提供的一种调压设备的结构图,该调压设备包括:Please refer to FIG. 3. FIG. 3 is a structural diagram of a pressure regulating device provided by an embodiment of the present invention. The pressure regulating device includes:
存储器31,用于存储计算机程序; memory 31 for storing computer programs;
处理器32,用于执行计算机程序时实现如前述所公开的一种调压方法的步骤。The processor 32 is configured to implement the steps of a voltage regulation method as disclosed above when executing the computer program.
本发明实施例所提供的一种调压设备,具有前述所公开的一种调压方法所具有的有益效果。The pressure regulating device provided by the embodiment of the present invention has the beneficial effects of the pressure regulating method disclosed above.
相应的,本发明实施例还公开了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如前述所公开的一种调压方法的步骤。Correspondingly, an embodiment of the present invention further discloses a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of a voltage regulation method disclosed above are implemented.
本发明实施例所提供的一种可读存储介质,具有前述所公开的一种调压方法所具有的有益效果。A readable storage medium provided by an embodiment of the present invention has the beneficial effects of the aforementioned method for regulating voltage.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品 或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, 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 non-exclusive inclusion such that a process, method, article or device comprising 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 pressure regulating method, device, equipment and medium provided by the present invention have been introduced in detail above. Specific examples are used in this paper to illustrate the principles and implementations of the present invention. The descriptions of the above examples are only used to help understanding The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be It is understood as a limitation of the present invention.