Frequency modulation method and device, computer program product and medium
By adopting a hierarchical frequency regulation method, the problem of untimely response of module frequency and voltage regulation under the same power domain was solved. The module was able to respond to frequency conversion requests in a timely manner during voltage adjustment, thereby improving system performance and reducing costs.
Patent Information
- Application Number
- CN202511284845.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-10
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-09-10
AI Technical Summary
When multiple modules have different voltage or frequency requirements within the same power domain, traditional solutions suffer from untimely response to module frequency and voltage regulation, affecting performance and increasing power output costs, or the software synchronization mechanism may not respond in a timely manner.
By using a hierarchical frequency regulation method, voltage regulation requests from units within the same power domain are obtained, the relationship between the requested voltage and the current voltage is determined, and the reference voltage of the power domain is adjusted hierarchically to ensure that the module responds to frequency conversion requests in a timely manner.
This enables the module to respond to frequency conversion requests in a timely manner before voltage adjustment is completed, thereby improving system performance and reducing power supply output costs.
Smart Images

Figure CN120803240A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of frequency modulation, and in particular to a frequency modulation method, device, computer program product and medium. BACKGROUND
[0002] SOC (System on Chip, System on Chip) is an integrated circuit that integrates a complete electronic system into a single chip. It is not a simple function stack, but through highly integrated design, it integrates processor cores, memories, peripheral interfaces, power management, analog modules and other components together to form a mini-computer system that can run independently, with characteristics of high integration, modular design, low power consumption and high efficiency. It is applied in mobile devices, Internet of Things, automotive electronics such as autonomous driving and multi-screen interaction, consumer electronics such as smart watches and TV chips. SOC chip is the "brain" of modern electronic devices, and through integration and innovation, it promotes the development of intelligence and portability.
[0003] Limited by battery capacity, low power consumption has always been a key requirement for portable electronic devices. Moreover, with the continuous improvement of chip integration level and performance, chip heat dissipation has become a major challenge in the industry, so low power design is becoming increasingly important. In modern SOC design, multi-power domain technology is usually used for low power design. Multi-power domain technology is to divide the internal logic of the chip into multiple power domains, and each power domain can independently set the appropriate voltage value according to the needs of different modules, thereby reducing power consumption while meeting performance requirements. However, as the system size continues to expand and low power design evolves, more and more modules have DVFS (Dynamic Voltage and Frequency Scaling) application requirements, which results in that even in the same power domain, there may be different requirements for voltage or frequency at the same time. In order to adjust the frequency of the module, for the frequency raising operation, it is necessary to raise the voltage first and then raise the frequency, that is, the high frequency low voltage mode is not allowed, but the low frequency high voltage does not cause stability problems and is acceptable. It can be seen that frequency adjustment and voltage are closely related.
[0004] Considering that the voltage in the same power domain is the same, to meet the modules or subsystems with DVFS application requirements, the traditional solution is to avoid as much as possible in design that multiple modules with DVFS requirements are divided into the same power domain, but this needs to increase more power output, which will bring higher cost. Or through software to solve the competition conflict of multiple modules with DVFS requirements for voltage resources, such as using software synchronization mechanism to ensure that each module adjusts the output voltage of the current power domain in a certain rule and order, but this way has the problem of not timely response of each module frequency and voltage adjustment, which further affects the performance. How to realize the fast response of the module to the frequency request is a problem to be solved in the prior art. SUMMARY
[0005] The purpose of the present application is to realize fast frequency adjustment. Based on this, in a first aspect, the present application provides a frequency adjustment method, which comprises: obtaining a first voltage adjustment request of a first unit in the same power domain; the first unit is a unit with dynamic voltage and frequency adjustment requirement; adjusting the frequency of the first unit based on the first voltage adjustment request, comprising: judging the size relationship between the first request voltage corresponding to the first voltage adjustment request and the first current voltage corresponding to the first unit; if the first request voltage is greater than the first current voltage, the frequency of the first unit is not adjusted; if the first request voltage is not greater than the first current voltage, the frequency of the first unit is adjusted, and the frequency adjustment operation is performed in the case that the first current voltage of the first unit is greater than or equal to the first request voltage; obtaining a second voltage adjustment request of a second unit in the same power domain; the second unit comprises at least one first unit, and the voltage value corresponding to the second voltage adjustment request of the second unit is the maximum voltage value corresponding to the first voltage adjustment request; adjusting the current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain, and adjusting the frequency of the first unit.
[0006] In a possible implementation, after the step of obtaining the first voltage adjustment request of the first unit in the same power domain, the method further comprises: in the second unit, determining the first request voltage with the maximum voltage value as the second request voltage of the second unit in the same power domain; obtaining the second voltage adjustment request of the second unit in the same power domain based on the second request voltage.
[0007] In a possible implementation, the adjusting the current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain comprises: determining a size relationship between the second request voltage and a second current voltage corresponding to the second unit; if the second request voltage is greater than the second current voltage, determining a size relationship between the second request voltage and a current reference voltage of the power domain; determining a second request voltage with a maximum voltage value, if the second request voltage with the maximum voltage value is greater than the current reference voltage, adjusting the current reference voltage of the power domain to the second request voltage with the maximum voltage value, updating the second current voltage of the second unit to the second request voltage, and updating the first current voltage of the first unit to the first request voltage; if the second request voltage with the maximum voltage value is not greater than the current reference voltage, updating the second current voltage of the second unit to the second request voltage, updating the first current voltage of the first unit to the first request voltage, and adjusting the current reference voltage of the power domain to the second request voltage with the maximum voltage value.
[0008] In a possible implementation, the method further includes: if the second request voltage is not greater than the second current voltage, updating the second current voltage of the second unit to the second request voltage, updating the first current voltage of the first unit to the first request voltage, and performing frequency adjustment on the first unit.
[0009] In a second aspect, the application provides a frequency adjustment device, which includes: a first voltage adjustment request acquisition module, configured to acquire a first voltage adjustment request of a first unit in a same power domain; the first unit is a unit with a dynamic voltage frequency adjustment requirement; a first unit frequency adjustment module, configured to perform frequency adjustment on the first unit based on the first voltage adjustment request, including: determining a size relationship between a first request voltage corresponding to the first voltage adjustment request and a first current voltage corresponding to the first unit; if the first request voltage is greater than the first current voltage, not performing frequency adjustment on the first unit; if the first request voltage is not greater than the first current voltage, performing frequency adjustment on the first unit, and the frequency adjustment operation is performed in a case where the first current voltage of the first unit is greater than or equal to the first request voltage; a second voltage adjustment request acquisition module, configured to acquire a second voltage adjustment request of a second unit in the same power domain; the second unit includes at least one first unit, and a voltage value corresponding to the second voltage adjustment request of the second unit is a maximum voltage value corresponding to the first voltage adjustment request; a current reference voltage adjustment module, configured to adjust a current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain, and perform frequency adjustment on the first unit.
[0010] In a possible implementation, the apparatus further includes a first arbitration module configured to: In the second unit, determine the first request voltage with the maximum voltage value as the second request voltage of the second unit in the same power domain; Based on the second request voltage, obtain the second voltage regulation request of the second unit in the same power domain.
[0011] In a possible implementation, the current reference voltage adjustment module is specifically configured to: determine the size relationship between the second request voltage corresponding to the second voltage regulation request and the second current voltage corresponding to the second unit; If the second request voltage is greater than the second current voltage, determine the size relationship between the second request voltage and the current reference voltage of the power domain; determine the second request voltage with the maximum voltage value, and if the second request voltage with the maximum voltage value is greater than the current reference voltage, adjust the current reference voltage of the power domain to the second request voltage with the maximum voltage value, update the second current voltage of the second unit to the second request voltage, and update the first current voltage of the first unit to the first request voltage; If the second request voltage with the maximum voltage value is not greater than the current reference voltage, update the second current voltage of the second unit to the second request voltage, update the first current voltage of the first unit to the first request voltage, and adjust the current reference voltage of the power domain to the second request voltage with the maximum voltage value.
[0012] In a possible implementation, the apparatus further includes another processing module configured to, if the second request voltage is not greater than the second current voltage, update the second current voltage of the second unit to the second request voltage, update the first current voltage of the first unit to the first request voltage, and perform frequency regulation on the first unit.
[0013] In a third aspect, the present application provides a computer program product containing instructions, which, when executed on a computer, cause the computer to perform any of the above frequency regulation methods.
[0014] The present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement any of the above frequency regulation methods.
[0015] The frequency modulation method provided in the application comprises the following steps: obtaining a first voltage adjustment request of a first unit in a same power supply domain; the first unit is a unit having a dynamic voltage frequency adjustment demand; performing frequency modulation on the first unit based on the first voltage adjustment request, which comprises the following steps: judging a size relationship between a first request voltage corresponding to the first voltage adjustment request and a first current voltage corresponding to the first unit; if the first request voltage is greater than the first current voltage, not performing frequency modulation on the first unit; if the first request voltage is not greater than the first current voltage, performing frequency modulation on the first unit, and the frequency modulation operation is performed in the case that the first current voltage of the first unit is greater than or equal to the first request voltage; obtaining a second voltage adjustment request of a second unit in the same power supply domain; the second unit comprises at least one first unit, and a voltage value corresponding to the second voltage adjustment request of the second unit is a maximum voltage value corresponding to the first voltage adjustment request; adjusting a current reference voltage of the power supply domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power supply domain, and performing frequency modulation on the first unit. It can be seen that the application realizes voltage adjustment in a hierarchical control manner, and the frequency modulation can be performed before the voltage adjustment is completed based on the design of the hierarchical architecture, so that the first unit can respond to the frequency conversion request in time. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A flowchart of a first frequency modulation method provided for an embodiment of the application; Figure 2 A system architecture schematic diagram provided for an embodiment of the application; Figure 3 A flowchart of a second frequency modulation method provided for an embodiment of the application; Figure 4 A flowchart of a third frequency modulation method provided for an embodiment of the application. DETAILED DESCRIPTION
[0017] The application will be described in detail through embodiments below.
[0018] SOC (System on Chip, system on chip) is an integrated circuit that integrates a complete electronic system into a single chip. It is not a simple function stack, but through highly integrated design, it integrates processor cores, memories, peripheral interfaces, power management, analog modules and other components together to form a microcomputer system that can run independently, has the characteristics of high integration, modular design, low power consumption and high efficiency, and is applied to mobile devices, Internet of Things, automotive electronics such as automatic driving and multi-screen interaction, consumer electronics such as smart watches and television chips. SOC chip is the "brain" of modern electronic equipment, and promotes the development of intelligence and portability through integration and innovation.
[0019] Low power consumption has been a key requirement for portable electronic devices due to the limitation of battery capacity. Moreover, with the increasing integration level and performance of chips, chip heat dissipation has become a major challenge in the industry, so low power design is becoming increasingly important. In modern SOC design, multi-power domain technology is usually used for low power design. Multi-power domain technology is to divide the internal logic of the chip into multiple power domains, and each power domain can independently set the appropriate voltage value according to the needs of different modules, thereby reducing power consumption while meeting performance requirements. However, with the continuous expansion of system size and the evolution of low power design, more and more modules have the application requirement of DVFS (Dynamic Voltage and Frequency Scaling). This leads to the fact that even in the same power domain, there may be different requirements for voltage or frequency at the same time for multiple subsystems or modules. In order to adjust the frequency of the module, for the operation of frequency increase, it is necessary to first increase the voltage and then increase the frequency, that is, the mode of high frequency and low voltage is not allowed, but low frequency and high voltage will not cause stability problems and can be accepted. It can be seen that frequency adjustment and voltage are closely related.
[0020] Considering that the voltage in the same power domain is the same, in order to meet the requirements of modules or subsystems with DVFS application requirements, the traditional solution is to avoid as much as possible the design of multiple modules with DVFS requirements being divided into the same power domain, but this requires more power outputs, which will bring higher cost. Or through software to solve the competition conflict of multiple modules with DVFS requirements for voltage resources, such as using software synchronization mechanism to ensure that each module adjusts the output voltage of the current power domain in a certain rule and order, but this way has the problem of slow response of each module to frequency adjustment, which affects performance. How to realize the fast response of the module to the frequency change request is a problem to be solved in the prior art.
[0021] In order to realize fast frequency adjustment, in a first aspect, an embodiment of the present application provides a frequency adjustment method, as shown in Figure 1 , the method comprises: S101, obtaining a first voltage adjustment request of a first unit in the same power domain.
[0022] The first unit is a unit with dynamic voltage frequency adjustment requirement.
[0023] For the case that there are different requirements for voltage or frequency at the same time in the same power domain, a first voltage adjustment request of a first unit in the same power domain is obtained, wherein the first unit can be multiple, and each first unit corresponds to a first voltage adjustment request.
[0024] S102, adjusting the frequency of the first unit based on the first voltage adjustment request.
[0025] Since the frequency adjustment and the voltage are closely related, for the frequency raising operation, the voltage needs to be raised first and then the frequency, that is, high frequency and low voltage are not allowed, but low frequency and high voltage are allowed. The frequency adjustment operation is performed in the case that the first current voltage of the first unit is greater than or equal to the first request voltage, Specifically, the following steps can be taken to implement the frequency adjustment of the first unit.
[0026] Step one, judging the size relationship between the first request voltage corresponding to the first voltage adjustment request and the first current voltage corresponding to the first unit; Step two, if the first request voltage is greater than the first current voltage, no frequency adjustment is performed on the first unit; Step three, if the first request voltage is not greater than the first current voltage, frequency adjustment is performed on the first unit.
[0027] It can be understood that if the first unit sends a message of wanting to raise the voltage through the first voltage adjustment request, that is, the first request voltage is greater than the first current voltage, it indicates that the first current voltage of the first unit is low, and since high frequency and low voltage are not supported, the frequency adjustment operation is not performed on the first unit before the voltage of the first unit is raised. If the first unit sends a message of wanting to lower the voltage through the first voltage adjustment request, that is, the first request voltage is not greater than the first current voltage, it indicates that the first current voltage of the first unit is high, and since low frequency and high voltage are supported, the frequency adjustment operation can be directly performed on the first unit.
[0028] In the embodiment of the application, by comparing the first voltage adjustment request (the first request voltage) of the first unit with the first current voltage of the first unit, in the case that the first request voltage is less than or equal to the first current voltage, the frequency of the first unit is directly changed, without waiting for the voltage change operation to be completed, so that the response of the first unit to the frequency change can be accelerated.
[0029] S103, obtaining a second voltage adjustment request of a second unit under the same power supply domain; the second unit includes at least one first unit, and the second voltage adjustment request of the second unit corresponds to the maximum voltage value of the first voltage adjustment request.
[0030] The second unit is a higher level than the first unit, and the second unit can include multiple first units. The second voltage adjustment request of the second unit can be determined by the following method: Step one, in the second unit, determining the first request voltage with the maximum voltage value as the second request voltage of the second unit under the same power supply domain; Step two, obtaining the second voltage adjustment request of the second unit under the same power supply domain based on the second request voltage.
[0031] The second request voltage of the second unit is the first request voltage with the maximum voltage value in the plurality of first units included in the second unit, that is, the second request voltage of the second unit at this level is found, and the maximum voltage value in the next level is taken as the second request voltage of the second unit, and subsequent voltage adjustment according to the second voltage adjustment request can guarantee the frequency adjustment of all the first units due to the support of the low-frequency high-voltage mode.
[0032] In S104, the current reference voltage of the power domain is adjusted based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain, and the first unit is frequency-adjusted.
[0033] The current reference voltage of the power domain is the actual voltage of the power domain, and whether to adjust the current reference voltage of the power domain and frequency-adjust the first unit is determined by comparing the maximum voltage value corresponding to the second voltage adjustment request with the current reference voltage of the power domain.
[0034] The frequency adjustment method provided in the application includes the following steps: obtaining a first voltage adjustment request of a first unit under the same power domain; the first unit is a unit with a dynamic voltage frequency adjustment requirement; frequency-adjusting the first unit based on the first voltage adjustment request, including: judging the size relationship between the first request voltage corresponding to the first voltage adjustment request and the first current voltage corresponding to the first unit; if the first request voltage is greater than the first current voltage, the first unit is not frequency-adjusted; if the first request voltage is not greater than the first current voltage, the first unit is frequency-adjusted, and the frequency adjustment operation is performed when the voltage of the first unit is greater than a preset threshold; obtaining a second voltage adjustment request of a second unit under the same power domain; the second unit includes at least one first unit, and the voltage value corresponding to the second voltage adjustment request of the second unit is the maximum voltage value corresponding to the first voltage adjustment request; adjusting the current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain, and frequency-adjusting the first unit. It can be seen that the application realizes voltage adjustment in a hierarchical control manner, and can perform frequency adjustment before the voltage adjustment is completed based on the design of the hierarchical architecture in the voltage adjustment process, thereby maximizing the timely response of the first unit to the frequency adjustment request.
[0035] In a possible implementation, the above step S104 can be implemented in the following manner, including: S201, judging the size relationship between the second request voltage corresponding to the second voltage adjustment request and the second current voltage corresponding to the second unit.
[0036] The second current voltage is a voltage value of the second unit at the level of the second unit, and is determined according to the first request voltage with the largest previous voltage value. For example, the first unit requests three voltage values of 3V, 6V and 9V respectively in the previous time, and the first request voltage with the largest voltage value is 9V. Then, the second current voltage corresponding to the second unit is 9V. In this time, the first unit requests three voltage values of 2V, 5V and 7V respectively, and the second request voltage is 7V. The second request voltage and the first request voltage need to be compared.
[0037] In S202, if the second request voltage is greater than the second current voltage, the size relationship between the second request voltage and the current reference voltage of the power domain is determined. The second request voltage with the largest voltage value is determined. If the second request voltage with the largest voltage value is greater than the current reference voltage, the current reference voltage of the power domain is adjusted to the second request voltage with the largest voltage value, the second current voltage of the second unit is updated to the second request voltage, and the first current voltage of the first unit is updated to the first request voltage.
[0038] If the second request voltage is greater than the second current voltage, the frequency of the first unit needs to be adjusted based on the relationship between the second request voltage and the current reference voltage of the power domain.
[0039] The size relationship between the second request voltage and the current reference voltage of the power domain is determined.
[0040] In the case that the second request voltage is greater than the second current voltage, the size relationship between the second request voltage and the current reference voltage of the power domain is determined.
[0041] In the current power domain, the second request voltage with the largest voltage value is determined. If the second request voltage is greater than the current reference voltage, the current power domain is adjusted in voltage according to the second request voltage with the largest voltage value, and the current reference voltage of the power domain is updated.
[0042] Since the second request voltage is selected from the first request voltage of the first unit, it represents the first request voltage with the largest voltage value in the included first unit. If the second request voltage is greater than the current reference voltage, it indicates that the voltage of the current power domain is low and cannot meet the requirement of the second request voltage. Only when the requirement of the second request voltage is met, the requirement of the first request voltage with a lower voltage value can be met. Therefore, a maximum value needs to be selected from all the current second request voltages, and the voltage of the power domain is adjusted to the maximum value.
[0043] For the second unit with the maximum second request voltage, after the update of the current reference voltage is completed, the second current voltage of the second unit is the maximum second request voltage, and the second current voltage of other second units is the maximum first request voltage in the included first unit. For the first unit, the first current voltage is the first request voltage.
[0044] In the embodiments of the present application, the second current voltage of the second unit is updated according to the second request voltage, and the first current voltage of the first unit is updated according to the first request voltage, so that the comparison object in the subsequent frequency adjustment of the first unit is determined, and the subsequent frequency adjustment of the first unit is facilitated.
[0045] S203, if the second request voltage with the maximum voltage value is not greater than the current reference voltage, updating the second current voltage of the second unit to the second request voltage; updating the first current voltage of the first unit to the first request voltage; and adjusting the current reference voltage of the power domain to the second request voltage with the maximum voltage value.
[0046] If the second request voltage with the maximum voltage value is less than or equal to the current reference voltage, it means that the low-frequency high-voltage mode can be realized in the voltage environment provided by the current power domain, so the frequency of the first unit can be directly adjusted. The first current voltage of the first unit is updated according to the first request voltage, and the second current voltage of the second unit is updated according to the second request voltage. Since the second request voltage with the maximum voltage value is not greater than the current reference voltage, it is necessary to reduce the voltage of the current power domain, so it is also necessary to adjust the voltage of the current power domain according to the second request voltage with the maximum voltage value, and update the current reference voltage of the power domain.
[0047] In the embodiments of the present application, in the case where the second request voltage is greater than the second current voltage, the size relationship between the second request voltage with the maximum voltage value and the current reference voltage of the power domain is judged to further determine whether to adjust the reference voltage of the current power domain or directly adjust the frequency of the first unit, so that the frequency conversion operation of the first unit is accurately realized.
[0048] S204, if the second request voltage is not greater than the second current voltage, updating the second current voltage of the second unit to the second request voltage; updating the first current voltage of the first unit to the first request voltage; and adjusting the frequency of the first unit.
[0049] If the second request voltage is not greater than the second current voltage, it means that the low-frequency high-voltage mode is met, so the frequency of the first unit can be directly adjusted. The first current voltage of the first unit is updated according to the first request voltage, and the second current voltage of the second unit is updated according to the second request voltage.
[0050] It can be understood that if the second unit sends the message of wanting to boost voltage through the second voltage regulation request, i.e., the second request voltage is greater than the second current voltage, which indicates that the second current voltage of the second unit is low, and since high-frequency low-voltage is not supported, the frequency conversion operation is not performed on the first unit, but at this time, the second current voltage is not necessarily the real voltage of the power domain, and therefore, the frequency conversion of the first unit needs to be further performed based on the relationship between the second request voltage and the current reference voltage of the power domain. If the second unit sends the message of wanting to reduce voltage through the second voltage regulation request, i.e., the second request voltage is not greater than the second current voltage, which indicates that the second current voltage of the second unit is high, and since low-frequency high-voltage is supported, the frequency conversion operation is directly performed on the first unit.
[0051] In the embodiment of the application, by comparing the second request voltage of the second voltage regulation request with the second current voltage of the second unit, in the case that the second request voltage is less than or equal to the second current voltage, the frequency conversion of the first unit is directly performed, without waiting for the completion of the voltage conversion operation, so that the response of the first unit to the frequency conversion can be accelerated.
[0052] Referring to Figure 2 A system architecture diagram is provided in the application, the first unit is module 1, module 2, …, and the second unit is subsystem 1, subsystem 2, subsystem 3, …, subsystem 1 and subsystem 2 belong to one power domain, and subsystem 3 belongs to another power domain. The scheme adopts the form of hierarchical design in the SOC, divides the SOC into a bottom subsystem level and a top management level, adopts the way of taking the maximum value through step-by-step arbitration, and finally sends the best reliable voltage under the power domain to the PMIC (Power Management Integrated Circuit) to complete the voltage regulation.
[0053] The bottom subsystem level includes at least one subsystem, each subsystem includes at least one module, and the four steps of parameter calculation, voltage comparison, voltage arbitration and voltage regulation processing are performed in each subsystem. The top management level performs the three steps of voltage comparison, voltage arbitration and voltage regulation processing, and the PMIC includes DCDC (Direct Current to Direct Current Converter) operation or LDO (Low Dropout Regulator) operation.
[0054] The Bottom bottom subsystem level takes each subsystem as a control object, and is mainly responsible for collecting the frequency conversion and voltage conversion requirements of each module in the subsystem, arbitrating an appropriate voltage to send to the Top top management level for further processing, and adjusting the frequency of the internal module in a timely manner according to the voltage state; the Top top management level takes each power domain as a control object, and is mainly responsible for collecting the voltage conversion requirements of all subsystems under the power domain, then arbitrating the best voltage as the final target voltage of the power domain at the moment to send to the PMIC to complete the specific voltage regulation, and feeding back to each subsystem in a timely manner according to the voltage state.
[0055] For the four steps of parameter calculation, voltage comparison, voltage arbitration and voltage regulation processing that will be performed in the subsystem, Figure 3 The specific processing flow of the Bottom bottom subsystem level is shown: First, the parameter calculation part is completed by the parameter calculation unit, which converts the frequency requirement of the module into corresponding target frequency and target voltage information; the parameter calculation unit sends a new frequency modulation requirement. The frequency conversion response part is used to accept the target frequency and respond to the frequency conversion according to the target frequency.
[0056] Then, the voltage comparison part is completed by the voltage comparison unit, which compares the target voltage with the current voltage of the module (i.e. the first current voltage). If the target voltage and the current voltage are inconsistent, the target voltage needs to be sent to the voltage arbitration unit for voltage arbitration. If the target voltage is less than or equal to the current voltage and the voltage regulation processing module for voltage regulation processing is in an idle state, the module is allowed to directly convert frequency; if the target voltage is greater than the current voltage, the module needs to wait for the voltage regulation processing unit to update the current voltage (i.e. the first current voltage) and return to the idle state before allowing the module to convert frequency. The frequency conversion response responds to the frequency conversion according to the signal allowing the frequency conversion.
[0057] Then, the voltage arbitration part is completed by the voltage arbitration unit, which collects all target voltages in the same period subsystem, and arbitrates the maximum voltage to send to the voltage regulation processing unit for voltage regulation processing.
[0058] Finally, the voltage regulation processing part is completed by the voltage regulation processing unit, which only receives the voltage regulation request (including the final target voltage) of the voltage arbitration unit when it is idle, sends it to the Top top management module for secondary arbitration, and updates the current voltage (i.e. the first current voltage) after receiving the feedback of the voltage regulation completion feedback from the Top top management module, and returns to the idle state. The waiting period is in a busy state.
[0059] In the Top top management module, there are also voltage comparison units, voltage arbitration units and voltage regulation processing units, which have similar functions to the subsystem. For the three steps of voltage comparison, voltage arbitration and voltage regulation processing that will be performed in the Top top management module,Figure 4 The process flow of the Top top-end management level is shown as follows: First is the voltage comparison part, which is completed by a voltage comparison unit, and the voltage comparison unit is used to receive the target voltage of the subsystem after arbitration (the subsystem sends the new voltage regulation demand to the voltage comparison unit), and compare it with the current voltage of the Top top-end (i.e. the second current voltage). If the target voltage and the current voltage are inconsistent, they are both sent to the voltage arbitration unit. Among them, if the target voltage of the subsystem is less than or equal to the current voltage of the Top top-end and the voltage regulation processing module is in an idle state, a voltage regulation completion signal is directly fed back to the subsystem to allow the subsystem to respond to frequency conversion in advance; if the target voltage of the subsystem is greater than the current voltage of the Top top-end, the voltage regulation completion signal is fed back to the subsystem after the Top top-end voltage regulation processing unit updates the current voltage (i.e. the second current voltage) and returns to the idle state.
[0060] Then is the voltage arbitration part, which is completed by a voltage arbitration unit, and the voltage arbitration unit is used to collect the target voltages of all subsystems under the same period and common power domain, and arbitrate the maximum voltage to send to the voltage regulation processing unit.
[0061] Finally is the voltage regulation processing part, which is completed by a voltage regulation processing unit, and the voltage regulation processing unit only receives the voltage regulation request (including the final target voltage) of the voltage arbitration unit when it is idle, sends it to the PMIC to complete the specific voltage regulation, and updates the current voltage of the Top top-end after waiting for the PMIC to complete the voltage regulation and returns to the idle state. The waiting period is a busy state.
[0062] The following is a better understanding of the above process by an example: under the same power domain, there are two subsystems, subsystem 1 and subsystem 2, subsystem 1 includes module 1 and module 2, and subsystem 2 includes module 1. The voltage of the current power domain is 10V, module 1 in subsystem 1 requests 5V, and module 2 requests 15V; module 1 in subsystem 2 requests 12V. For the request of 5V, module 1 in subsystem 1 can directly respond to frequency conversion without waiting until the voltage regulation is completed. After the first arbitration, subsystem 1 requests 15V and subsystem 2 requests 12V, because 15V and 12V are both greater than the current voltage of the power domain 10V, the voltage value after the second arbitration is 15V, and the PMIC adjusts the voltage of the power domain according to 15V. After the adjustment is completed, the voltage requested by subsystem 1 is 15V, the voltage requested by subsystem 2 is 12V, the voltage requested by module 1 in subsystem 1 is 5V, the voltage requested by module 2 is 15V, and the voltage requested by module 1 in subsystem 2 is 12V. At this time, if module 1 in subsystem 1 requests 8V voltage, module 2 requests 14V voltage, and module 1 in subsystem 2 requests 14V voltage. Since the voltage of module 1 in subsystem 1 is 8V and the voltage of module 2 is 14V, both of which are less than the voltage of 15V of subsystem 1, the modules in the subsystem can respond to frequency conversion in advance, and the voltage requested by subsystem 1 is updated to 14V, the voltage requested by module 1 in subsystem 1 is updated to 8V, and the voltage requested by module 2 is updated to 14V. The voltage requested by module 1 in subsystem 2 is 14V, which is greater than the voltage of 12V of subsystem 2, and needs to be further compared with the relationship between the voltage of 14V and the real voltage of the power domain. Based on the voltage of 14V requested by subsystem 1 and the voltage of 14V requested by subsystem 2, the second requested voltage with the largest voltage value is determined to be 14V, which is found to be less than the real voltage of the power domain 15V, so module 1 in subsystem 2 directly responds to frequency conversion, at the same time, the voltage requested by module 1 in subsystem 2 is updated to 14V, and the current power domain is regulated according to the voltage of 14V, and the current reference voltage of the power domain is updated to 14V, realizing the voltage reduction of the power domain from 15V to 14V.
[0063] The scheme of the present application can be used in all terminal products that use multi-power domain low power consumption technology, have multiple subsystems or devices that need to dynamically adjust voltage, such as mobile phones, tablets, POS (Point of Sale) machines, adult watches, etc. These terminal products have relatively high requirements on power consumption, performance and cost. By applying the scheme provided by the present application, efficient management of multiple power domains can be realized, the competition and conflict problems of different modules under the same power domain can be solved, and each module can respond to frequency conversion in time.
[0064] In a second aspect, the present application provides a frequency conversion device, comprising: The first voltage regulation request acquisition module is configured to acquire a first voltage regulation request of a first unit in a same power domain, the first unit being a unit having a dynamic voltage and frequency adjustment requirement. The first unit frequency adjustment module is configured to adjust the frequency of the first unit based on the first voltage regulation request, including: judging a size relationship between a first request voltage corresponding to the first voltage regulation request and a first current voltage corresponding to the first unit; if the first request voltage is greater than the first current voltage, not adjusting the frequency of the first unit; and if the first request voltage is not greater than the first current voltage, adjusting the frequency of the first unit, the frequency adjustment being performed in a case where the first current voltage of the first unit is greater than or equal to the first request voltage. The second voltage regulation request acquisition module is configured to acquire a second voltage regulation request of a second unit in the same power domain, the second unit including at least one first unit, and a voltage value corresponding to the second voltage regulation request of the second unit being a maximum voltage value corresponding to the first voltage regulation request. The current reference voltage adjustment module is configured to adjust a current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage regulation request and the current reference voltage of the power domain, and adjust the frequency of the first unit.
[0065] In a possible implementation, the apparatus further includes a primary arbitration module configured to: In the second unit, a first request voltage with a maximum voltage value is determined as a second request voltage of the second unit in the same power domain. Based on the second request voltage, a second voltage regulation request of the second unit in the same power domain is obtained.
[0066] In a possible implementation, the current reference voltage adjustment module is specifically configured to: Judge a size relationship between a second request voltage corresponding to the second voltage regulation request and a second current voltage corresponding to the second unit. If the second request voltage is greater than the second current voltage, judge a size relationship between the second request voltage and the current reference voltage of the power domain; determine a second request voltage with a maximum voltage value, and if the second request voltage with the maximum voltage value is greater than the current reference voltage, adjust the current reference voltage of the power domain to the second request voltage with the maximum voltage value, update the second current voltage of the second unit to the second request voltage, and update the first current voltage of the first unit to the first request voltage. If the second request voltage with the maximum voltage value is not greater than the current reference voltage, update the second current voltage of the second unit to the second request voltage, update the first current voltage of the first unit to the first request voltage, and adjust the current reference voltage of the power domain to the second request voltage with the maximum voltage value.
[0067] In a possible implementation, the apparatus further comprises a processing module configured to, if the second request voltage is not greater than the second current voltage, update the second current voltage of the second cell to the second request voltage; update the first current voltage of the first cell to the first request voltage; and frequency modulate the first cell.
[0068] In a third aspect, the present application provides a computer program product comprising instructions which, when executed on a computer, cause the computer to carry out any of the above frequency modulation methods.
[0069] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements any of the above frequency modulation methods.
[0070] Although the embodiments of the present application have been shown and described above, it should be understood by those skilled in the art that the above embodiments are exemplary and should not be construed as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above embodiments without departing from the principles and spirit of the present application within the scope of the present application.
Claims
1. A frequency modulation method, characterized in that: The method comprises: Obtaining a first voltage adjustment request of a first unit in the same power domain; the first unit is a unit that requires dynamic voltage and frequency adjustment; Based on the first voltage regulation request, frequency modulation is performed on the first unit, including: determining a magnitude relationship between a first requested voltage corresponding to the first voltage regulation request and a first current voltage corresponding to the first unit; if the first requested voltage is greater than the first current voltage, not performing frequency modulation on the first unit; if the first requested voltage is not greater than the first current voltage, performing frequency modulation on the first unit, the frequency modulation operation being performed when the first current voltage of the first unit is greater than or equal to the first requested voltage; Obtaining a second voltage regulation request of a second unit in the same power domain; the second unit includes at least one first unit, and a voltage value corresponding to the second voltage regulation request of the second unit is a maximum voltage value corresponding to the first voltage regulation request; Based on the maximum voltage value corresponding to the second voltage regulation request and the current reference voltage of the power domain, the current reference voltage of the power domain is adjusted, and the frequency of the first unit is modulated.
2. The method according to claim 1, characterized in that After the step of obtaining the first voltage regulation request of the first unit in the same power domain, the method further includes: In the second unit, determining a first requested voltage with a maximum voltage value as a second requested voltage of the second unit in the same power domain; A second voltage regulation request of a second unit in the same power domain is obtained based on the second requested voltage.
3. The method according to claim 2, characterized in that The adjusting the current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain includes: Determining a magnitude relationship between a second requested voltage corresponding to the second voltage regulation request and a second current voltage corresponding to the second unit; If the second requested voltage is greater than the second current voltage, determining a magnitude relationship between the second requested voltage and a current reference voltage of the power domain; determining a second requested voltage with a maximum voltage value; if the second requested voltage with the maximum voltage value is greater than the current reference voltage, adjusting the current reference voltage of the power domain to the second requested voltage with the maximum voltage value, updating the second current voltage of the second unit to the second requested voltage; and updating the first current voltage of the first unit to the first requested voltage; If the second requested voltage with the largest voltage value is not greater than the current reference voltage, the second current voltage of the second unit is updated to the second requested voltage; the first current voltage of the first unit is updated to the first requested voltage; and the current reference voltage of the power domain is adjusted to the second requested voltage with the largest voltage value.
4. The method according to claim 3, characterized in that The method further comprises: If the second requested voltage is not greater than the second current voltage, the second current voltage of the second unit is updated to the second requested voltage; the first current voltage of the first unit is updated to the first requested voltage; and the frequency of the first unit is modulated.
5. A frequency modulation device, characterized in that: The device comprises: A first voltage regulation request acquisition module is configured to acquire a first voltage regulation request from a first unit in the same power domain; the first unit is a unit that requires dynamic voltage and frequency adjustment; a first unit frequency modulation module, configured to perform frequency modulation on the first unit based on the first voltage modulation request, comprising: determining a magnitude relationship between a first requested voltage corresponding to the first voltage modulation request and a first current voltage corresponding to the first unit; if the first requested voltage is greater than the first current voltage, not performing frequency modulation on the first unit; and if the first requested voltage is not greater than the first current voltage, performing frequency modulation on the first unit, wherein the frequency modulation operation is performed when the first current voltage of the first unit is greater than or equal to the first requested voltage; A second voltage regulation request acquisition module is configured to acquire a second voltage regulation request of a second unit in the same power domain; the second unit includes at least one first unit, and the voltage value corresponding to the second voltage regulation request of the second unit is a maximum voltage value corresponding to the first voltage regulation request; The current reference voltage adjustment module is configured to adjust the current reference voltage of the power domain based on the maximum voltage value corresponding to the second voltage adjustment request and the current reference voltage of the power domain, and to cause the first unit to perform frequency modulation.
6. The device according to claim 5, characterized in that The device further includes a first-level arbitration module, configured to: In the second unit, determining a first requested voltage with a maximum voltage value as a second requested voltage of the second unit in the same power domain; A second voltage regulation request of a second unit in the same power domain is obtained based on the second requested voltage.
7. The device according to claim 6, characterized in that The current reference voltage adjustment module is specifically configured to: Determining a magnitude relationship between a second requested voltage corresponding to the second voltage regulation request and a second current voltage corresponding to the second unit; If the second requested voltage is greater than the second current voltage, determining a magnitude relationship between the second requested voltage and a current reference voltage of the power domain; determining a second requested voltage with a maximum voltage value, and if the second requested voltage with the maximum voltage value is greater than the current reference voltage, adjusting the current reference voltage of the power domain to the second requested voltage with the maximum voltage value, and updating the second current voltage of the second unit to the second requested voltage; updating a first current voltage of the first unit to the first requested voltage; If the second requested voltage with the largest voltage value is not greater than the current reference voltage, updating the second current voltage of the second unit to the second requested voltage; updating a first current voltage of the first unit to the first requested voltage; The current reference voltage of the power domain is adjusted to the second requested voltage with the largest voltage value.
8. The device according to claim 7, characterized in that The device further includes another processing module, configured to update the second current voltage of the second unit to the second requested voltage if the second requested voltage is not greater than the second current voltage; updating a first current voltage of the first unit to the first requested voltage; The first unit is frequency modulated.
9. A computer program product comprising instructions, characterized in that When the method is run on a computer, the method enables the computer to implement any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Circuit and method for detecting relation between voltage and frequency of on-chip operating circuit
CN102759702A
Digital control method for realizing multi-step frequency modulation of LLC resonant converter
CN110212767A
Inverter ISO detection method and device and medium
CN115718219A
Power grid primary frequency modulation intelligent control system
CN115954900A
Novel hybrid control circuit based on phase-shifting full bridge
CN212086068U