Chip, power consumption control method and device, electronic equipment and storage medium

By introducing statistical units and control units into the chip of electronic devices, dynamically adjusting the power up and down situation of memory data channels, the problem of increased memory power consumption in electronic devices is solved, and power consumption control for different business scenarios is realized, and equipment power consumption is reduced.

CN119882982AActive Publication Date: 2025-04-25BEIJING X RING TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411945520.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25
Estimated Expiration
2044-12-26

Smart Images

  • Figure CN119882982A_ABST
    Figure CN119882982A_ABST
Patent Text Reader

Abstract

The invention provides a chip, a power consumption control method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining frequency data of a memory required by a main control unit and a first actual frequency of the memory through a statistical unit, determining a first target data channel which needs to be subjected to power supply control from a plurality of data channels of the memory, by determining the first target data channel to be subjected to power supply control, the power-on and power-off conditions of each data channel of the memory are dynamically controlled, and the power consumption control requirements in each business scene are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a chip, a power consumption control method, a device, an electronic device and a storage medium. Background Art

[0002] At present, the configuration of electronic devices is getting higher and higher, and the capacity of memory in electronic devices is also increasing. Data shows that the proportion of memory power consumption in the power consumption of the entire electronic device is gradually increasing. It can be seen that optimizing the power consumption of memory is of great significance to reducing the power consumption of the entire electronic device and improving system performance. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the present application proposes a chip, a power consumption control method, a device, an electronic device and a storage medium to dynamically adjust the power supply and power-down conditions of the memory data channel, meet the needs of business scenarios and power consumption control, and achieve the purpose of power saving.

[0005] In one aspect, an embodiment of the present application provides a chip, including: a statistical unit and a control unit;

[0006] The statistical unit is used to determine the target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit;

[0007] The control unit is connected to the statistical unit and is used to determine a first target data channel that needs to be powered on from multiple data channels of the memory according to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory.

[0008] In another aspect, an embodiment of the present application provides a power consumption control method, including:

[0009] Determining target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit;

[0010] According to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, a first target data channel requiring power supply control is determined from a plurality of data channels of the memory.

[0011] Another aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the above aspect is implemented.

[0012] Another aspect of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the aforementioned aspect is implemented.

[0013] Another aspect of the present application provides a computer program product on which a computer program is stored. When the program is executed by a processor, the method described in the above aspect is implemented.

[0014] The present application proposes a chip, a power consumption control method, an apparatus, an electronic device and a storage medium, which obtain the frequency data of the memory required by the main control unit and the first actual frequency of the memory through a statistical unit, and determine the first target data channel that needs to be powered on from multiple data channels of the memory. By determining the first target data channel to be powered on, dynamic control of the power on and off conditions of each data channel of the memory is achieved, thereby meeting the power consumption control requirements in various business scenarios.

[0015] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0017] Figure 1A A schematic diagram of the architecture of memory access in the related art;

[0018] Figure 1B A schematic diagram of the structure of a chip provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a flow chart of a power consumption control method provided in an embodiment of the present application;

[0020] Figure 3 A flowchart of another power consumption control method provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of another power consumption control scenario provided in an embodiment of the present application;

[0022] Figure 5 A flowchart of another power consumption control method provided in an embodiment of the present application;

[0023] Figure 6 A block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0025] In electronic devices, memories with multiple data channels are widely used because they can provide multiple parallel data transmission paths to improve the data transmission rate and data processing efficiency. Figure 1A Schematic diagram of the architecture of memory access in related technologies, such as Figure 1A As shown, there are multiple master control units, named master0, master1, master2 and master3. Master0, master1, master2 and master3 send memory access information to the chip synchronously through interrupts, and analyze the memory access information to determine the data channel to access the memory from the four data channels of the memory, namely channel0, channel1, channel2 and channel3. If multiple data channels are always turned on, the power consumption of the device cannot be reduced. For mobile devices with high requirements for low power consumption, such as smart phones, smart wearable devices, etc., effective power consumption control is required.

[0026] To this end, the present application proposes a chip, which includes a statistical unit and a control unit. The statistical unit obtains the frequency data of the memory required by the main control unit and the first actual frequency of the memory, and determines the first target data channel that needs to be powered on from multiple data channels of the memory. Therefore, by determining the first target data channel to be powered on, dynamic control of the power on and off conditions of each data channel of the memory is achieved, thereby meeting the power consumption control requirements in various business scenarios.

[0027] The following describes the chip, power consumption control method, device, electronic device and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0028] Figure 1B This is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Figure 1B As described above, the chip includes a statistical unit 101 and a control unit 102 .

[0029] Among them, the chip can be a memory management unit (Memory Management Unit, MMU), or a system memory management unit (System Memory Management Unit, SMMU), etc., which are not listed one by one this time.

[0030] The statistical unit 101 is used to determine the target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit.

[0031] The master control unit is a bus master control unit, i.e., a master. As an example, the master control unit includes at least: a neural processing unit (NPU), a vision processing unit (VPU), a graphics processing unit (GPU), and at least one of a high-priority central processing unit Advanced CPU.

[0032] In one scenario of the embodiment of the present application, the main control unit determines the required memory frequency data according to the executed business situation, wherein when the main control unit executes more business, the required memory frequency data is higher, and when the main control unit completes the business, the required memory frequency data is lower. Thus, according to actual needs, the memory frequency data required by each main control unit is sent.

[0033] In an implementation manner of the embodiment of the present application, there is one main control unit, and the frequency data of the memory required by the main control unit is used as the target frequency data of the memory required by the main control unit.

[0034] In another implementation of the embodiment of the present application, if there are multiple main control units, the target frequency data of the memory required by the main control unit is determined according to the frequency data of the memory required by each main control unit and the acquired current actual frequency data of the memory.

[0035] The control unit 120 is connected to the statistical unit 110, and is used to determine a first target data channel that needs to be powered on from multiple data channels of the memory based on the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, and send the power supply control information of the first target data channel to the first target data channel that needs to be powered on.

[0036] The memory is a memory that uses multiple data channels for data transmission, such as a dynamic random access memory (Low-Power Double Data Rate, LPDDR).

[0037] In an embodiment of the present application, the target frequency data of the memory required by the main control unit is determined, that is, the target frequency data that needs to be set for the memory determined based on actual needs, wherein the power supply control includes powering on the data channel, that is, switching from a power-off state to a power-on state; or, powering off the data channel, that is, switching from a power-on state to a power-off state.

[0038] The following describes the power supply control in different scenarios:

[0039] In the first scenario, if the target frequency is greater than the first actual frequency at which the memory is currently running, the actual operating frequency of the memory needs to be increased to match the business execution requirements of the main control unit. The first target data channel to be powered on can be determined based on the unpowered data channels among the multiple data channels of the memory.

[0040] In the second scenario, if the target frequency is lower than the first actual frequency at which the memory is currently running, the actual frequency at which the memory is running needs to be lowered to reduce power consumption. The first target data channel to be powered on can be determined based on the unpowered data channel in the memory.

[0041] The power supply control refers to powering on or off the data channel. The power supply control information is a power-on instruction or a power-off instruction.

[0042] In one scenario, when there is a business to be executed in an electronic device or chip, the entire system has a high frequency requirement for LPDDR. The first target data channel to be powered on is determined through frequency data, and the power-on instruction of the first target data channel is sent to the first target data channel through the bus to meet the needs of business execution.

[0043] In another scenario, when there is no business to be executed in the electronic device or chip, the entire system has a lower frequency requirement for the LPDDR. The first target data channel to be powered off is determined through frequency data, and the power-off instruction of the first target data channel is sent to the first target data channel through the bus to reduce power consumption.

[0044] In the chip of the embodiment of the present application, the frequency data of the memory required by the main control unit and the first actual frequency of the memory are obtained through the statistical unit, and the first target data channel that needs to be powered on is determined from the multiple data channels of the memory. By determining the first target data channel to be powered on, dynamic control of the power on and off conditions of each data channel of the memory is achieved, thereby meeting the power consumption control requirements in various business scenarios.

[0045] Based on the above embodiment, in one implementation of the embodiment of the present application, the statistical unit 110 is further configured to:

[0046] Determine the target main control unit according to the frequency data of the memory required by each main control unit;

[0047] According to the frequency data of the memory required by the target main control unit, the target frequency data of the memory required by the main control unit is determined, wherein the target frequency data is used to adjust the frequency of the memory to a frequency that meets the requirements of multiple main control units to meet the frequency requirements of multiple main control units.

[0048] Among them, the following implementation method is used to describe the determination of the target main control unit according to the frequency data of the memory required by each main control unit: In the first implementation method of the embodiment of the present application, the frequency data of the memory required by each main control unit is compared with the first actual frequency of the memory, and in response to the frequency data of the memory required by each main control unit being less than the first actual frequency, each main control unit is used as the target main control unit. The first actual frequency is a frequency value.

[0049] The frequency data may be a frequency value or a frequency interval.

[0050] Among them, when the frequency data is a frequency interval, the frequency interval of the memory required by each main control unit is compared with the first actual frequency of the memory. In response to the upper limit of the frequency interval of the memory required by each main control unit being less than the first actual frequency, that is, the requirements of each main control unit to adjust the frequency are consistent, each main control unit is used as a target main control unit.

[0051] Wherein, when the frequency data is a frequency value, the frequency value required by each main control unit is compared with the first actual frequency of the memory, and in response to the frequency value required by each main control unit being less than the first actual frequency, that is, the requirements for adjusting the frequency of each main control unit are consistent, each main control unit is used as a target main control unit. Wherein, the first actual frequency is the actual frequency value of the current operation of the memory.

[0052] In a second implementation method of the embodiment of the present application, the frequency data of the memory required by each main control unit is compared with the first actual frequency of the memory. In response to the fact that the frequency data of the memory required by each main control unit is greater than the first actual frequency, each main control unit is used as a target main control unit.

[0053] Among them, when the frequency data is a frequency interval, the frequency interval of the memory required by each main control unit is compared with the first actual frequency of the memory. In response to the lower limit of the frequency interval of the memory required by each main control unit being greater than the first actual frequency, that is, the requirements of each main control unit to adjust the frequency are consistent, each main control unit is used as a target main control unit.

[0054] Among them, when the frequency data is a frequency value, the frequency value required by each main control unit is compared with the first actual frequency in the memory respectively. In response to the frequency value required by each main control unit being greater than the first actual frequency, that is, the requirements of each main control unit to adjust the frequency are consistent, each main control unit is used as the target main control unit.

[0055] In the third implementation of the embodiment of the present application, the chip can obtain the weight information of the main control unit. The weight information of the main control unit can be sent together with the power data, can be adjusted based on different business requirements, or can be a set value pre-stored in the chip. The weight information is the identification information of each main control unit. The weight value of each main control unit is determined according to the identification information of each main control unit. The weight value indicates the importance of each main control unit when voting. As an implementation method, the weight value of each main control unit is determined according to the mapping relationship set by the identification query of the main control unit. Among them, the higher the weight value, the higher the importance of the frequency data of the memory voted by the main control unit in the voting link, and vice versa. In different business scenarios, the weight values ​​of each main control unit can be different, realizing flexible configuration. For example, in a scenario where standby is required, the weight value of the ACPU will be larger, so that after the ACPU sends the required frequency data in the standby scenario, the data channel of the memory can be powered off based on the required frequency data to achieve entering the standby scenario and reduce power consumption. As an implementation method, the frequency interval of the memory required by each main control unit is compared with the first actual frequency of the memory respectively, and in response to the frequency domain data of the memory required by the multiple main control units not all being greater than the first actual frequency, and not all being less than the first actual frequency, the target main control unit is determined from the multiple main control units according to the weight information of the multiple main control units. That is to say, the frequency data of the memory setting required by the multiple main control units are not all greater than the first actual frequency, nor are they all less than the first actual frequency, that is, the multiple main control units include the main control units that need the frequency data of the memory setting to be greater than the first actual frequency of the memory, the main control units that need the frequency data of the memory setting to be less than the first actual frequency of the memory, and the main control units that need the frequency data of the memory setting to match the first actual frequency of the memory, and the main control units that need the frequency data of the memory setting to match the current first actual frequency of the memory. It should be understood that, for the case where the first actual frequency is in the frequency interval of the memory required by each main control unit, the first actual frequency of the current memory and the frequency data that each main control unit hopes to set in the memory are matched, that is, no frequency adjustment is required, that is, no power-on or power-off processing of the data channel is required.

[0056] In which, when the frequency data is a frequency interval, in response to the fact that the frequency domain intervals of the memory required by multiple main control units are not all greater than the first actual frequency and are not all less than the first actual frequency, the target main control unit is determined from the multiple main control units according to the weight information of the multiple main control units.

[0057] As an example, for the case where the frequency domain intervals of the memories required by the multiple main control units are not all greater than the first actual frequency, and are not all less than the first actual frequency, they can be divided into three types of main control units according to the size of the frequency intervals required by each main control unit, and for the convenience of identification, they are called the first main control unit, the second main control unit and the third main control unit. Among them, the upper limit of the frequency interval required by the first main control unit is less than the first actual frequency, the lower limit of the frequency interval required by the second main control unit is greater than the first actual frequency, the lower limit of the frequency interval required by the third main control unit is less than or equal to the first actual frequency, and the upper limit of the frequency interval required by the third main control unit is greater than or equal to the first actual frequency. As an example, taking the first main control unit and the second main control unit as an example, for the case where the multiple main control units include the second main control unit and the third main control unit, or the multiple main control units include the first main control unit and the third main control unit, or the multiple main control units include the first main control unit, the second main control unit and the third main control unit, the principle can refer to the relevant explanation of the multiple main control units including the first main control unit and the second main control unit, and will not be repeated in this embodiment.

[0058] In response to the fact that the plurality of main control units include at least one first main control unit and at least one second main control unit, a first total weight of the at least one first main control unit is determined according to the weight of the at least one first main control unit, that is, the weight of the at least one first main control unit is summed to obtain the first total weight. And a second total weight of the at least one second main control unit is determined, that is, the weight of the at least one second main control unit is summed to obtain the second total weight.

[0059] Furthermore, according to the comparison result of the first total weight and the second total weight, the target main control unit is determined from at least one first main control unit and at least one second main control unit, thereby improving the accuracy of determining the target main control unit, thereby improving the accuracy of determining the target frequency data in the memory. The following three scenarios are used for illustration:

[0060] In the first scenario, in response to the first total weight being greater than the second total weight, at least one first main control unit is used as the target main control unit. In the case where the first total weight is greater than the second total weight, it means that the weight of the main control unit that needs to reduce the memory frequency is greater, and it is considered that the memory frequency should be reduced more at present, and at least one first main control unit is used as the target main control unit, so that the target frequency data of the memory required by multiple main control units is determined according to the frequency data of the memory required by at least one first main control unit, thereby improving accuracy.

[0061] In the second scenario, in response to the first total weight being less than the second total weight, at least one second main control unit is used as the target main control unit. In the case where the first total weight is less than the second total weight, it means that the weight of the main control unit that needs to increase the memory frequency is greater, and it is considered that the memory frequency should be increased more at present, and at least one second main control unit is used as the target main control unit, so that the target frequency data of the memory required by the multiple main control units is determined according to the frequency data of the memory required by the at least one second main control unit, thereby improving the accuracy.

[0062] In the third scenario, in response to the first total weight being equal to the second total weight, at least one second main control unit is used as the target main control unit. In the case where the first total weight is equal to the second total weight, it means that the weight of the main control unit that votes to request an increase in frequency is the same as the weight of the main control unit that votes to request a decrease in frequency, and at least one second main control unit is used as the target main control unit. Since the frequency data of the memory set by the voting requirements of each second main control unit is relatively large, using at least one second main control unit as the target main control unit can make the target frequency of the memory determined subsequently also meet the frequency data of the memory required by at least one first main control unit, thereby improving the accuracy of determining the target frequency of the required memory.

[0063] In which, when the frequency data is a frequency value, in response to the fact that the frequency domain values ​​of the memory required by multiple main control units are not all greater than the first actual frequency and are not all less than the first actual frequency, the target main control unit is determined from the multiple main control units according to the weight information of the multiple main control units.

[0064] As an example, for the case where the frequency domain values ​​of the memories required by multiple main control units are not all greater than the first actual frequency, and are not all less than the first actual frequency, they can be divided into three types of main control units according to the size of the frequency values ​​required by each main control unit, and for the sake of ease of identification, they are called the first main control unit, the second main control unit, and the third main control unit. Among them, the frequency value required by the first main control unit is less than the first actual frequency, the frequency value required by the second main control unit is greater than the first actual frequency, and the frequency value required by the third main control unit is equal to the first actual frequency. Thus, the multiple main control units include at least two types of main control units including the first main control unit that requires the frequency value set in the memory to be greater than the first actual frequency, the second main control unit that requires the frequency value set in the memory to be less than the first actual frequency, and the main control unit that requires the frequency value set in the memory to be equal to the first actual frequency, and the third main control unit that requires the frequency data set in the memory to be equal to the current first actual frequency of the memory.

[0065] The method for determining the target main control unit in this scenario is the same as the principle of determining the target main control unit described above, and will not be described in detail here.

[0066] Wherein, according to the frequency data of the memory required by the target main control unit, the target frequency data of the memory required by the main control unit is determined:

[0067] In one implementation of the embodiment of the present application, the frequency data includes a frequency interval, and the frequency intervals of the memory required by multiple target main control units are intersected, and the frequency intersection is used as the target frequency interval of the memory required by the multiple main control units. Specifically, the minimum frequency upper limit is determined from the upper limit of the frequency interval of the memory required by the multiple target main control units, and the maximum frequency lower limit is determined from the lower limit of the frequency interval of the memory required by the multiple target main control units. According to the determined maximum frequency lower limit and minimum frequency upper limit, the target frequency interval of the memory required by the multiple main control units is determined to meet the frequency requirements of the multiple main control units. For example, there are 2 target main control units, the frequency interval of the memory required by one target main control unit is [6400-7200], and the frequency interval of the memory required by the other target main control unit is [3200-7000], then the determined target frequency interval is [6400-7000]. It should be noted that the subsequent power-on and power-off decisions of the data channel can be made based on the target frequency interval, and multiple discrete frequency values ​​can be determined according to the target frequency interval, and the target frequency value is determined based on the multiple discrete frequency values, and the subsequent power-on and power-off decisions of the data channel are made based on the target frequency value.

[0068] In another implementation of the embodiment of the present application, the frequency data includes a frequency value, and a maximum frequency value is determined according to the frequency value required by the target main control unit, and the maximum frequency value is used as a target frequency value that meets the frequency requirements of multiple main control units.

[0069] Based on the above embodiment, for the power-off control scenario, as an implementation method, the control unit 120 is further configured to:

[0070] The first actual frequency is compared with the target frequency data, and in response to the first actual frequency being greater than the target frequency data, the bandwidth of the first data channel in the power-on state is obtained, and according to the difference between the first actual frequency and the target frequency data, the first target data channel to be powered off is determined from the first data channel in the power-on state. As an implementation method, according to the bandwidth of the first data channel and a set bandwidth threshold, a second data channel less than the bandwidth threshold is determined, and according to the difference between the first actual frequency and the target frequency data, the first target data channel to be powered off is determined from the second data channel.

[0071] The target frequency data may be a target frequency interval or a target frequency value. In this embodiment, the target frequency data is taken as a target frequency interval as an example for explanation. For the case where the target frequency data is a target frequency value, the principle is similar and will not be described in detail in this embodiment. As an implementation method, the control unit 120 is further used to:

[0072] In the first step, the first actual frequency is compared with the target frequency interval.

[0073] In a second step, in response to the first actual frequency being greater than an upper limit of the target frequency interval, a bandwidth of the first data channel in a powered-on state is acquired.

[0074] In the embodiment of the present application, if the first actual frequency is greater than the upper limit of the target frequency interval, it means that the first actual frequency of the memory currently running is greater than the upper limit of the frequency interval that each main control unit needs to set the memory, which means that the main control unit load is small and does not need the memory to work at such a high operating frequency. Therefore, it is necessary to reduce the frequency of the memory by powering off some data channels, thereby reducing system power consumption. For the power-off strategy of the data channel, as an implementation method, the bandwidth of the first data channel in the power-on state is obtained. The bandwidth indicates the amount of data transmitted by each first data channel per unit time. The amount of data transmitted by each first data channel can be determined based on the bandwidth of each first data channel.

[0075] In a third step, according to the difference between the first actual frequency and the upper limit of the target frequency interval, a first target data channel to be powered off is determined from the first data channels in the powered-on state.

[0076] In one implementation of the embodiment of the present application, a second data channel that is less than the bandwidth threshold is determined based on the bandwidth of the first data channel and a set bandwidth threshold, and a first target data channel to be powered off is determined from the second data channel based on the difference between the first actual frequency and the upper limit of the target frequency interval. For example, for every difference between the first actual frequency and the upper limit of the target frequency interval by a set value, such as a set value of 2400 MHz, a data channel needs to be powered off, and the data channel can be a data channel with a smaller bandwidth in the second data channel. If a data channel with a larger bandwidth is powered off, it is also necessary to transplant the bandwidth of the data channel that is powered off to a data channel with a smaller bandwidth. By powering off the data channel with a smaller bandwidth, the above situation can be avoided, thereby improving the accuracy of power-off and reducing power consumption while meeting actual needs.

[0077] A second implementation method of the embodiment of the present application is to sort the bandwidths of the first data channels, and determine the first data channel with a smaller bandwidth from the sorting results according to the difference between the first actual frequency and the upper limit of the target frequency range, wherein the number of data channels that are powered off can also be determined according to the difference, that is, for every set value (for example, 2400 MHz) that the difference between the first actual frequency and the upper limit of the target frequency range differs, one data channel needs to be powered off, and if a data channel with a larger bandwidth is powered off, it is also necessary to transplant the bandwidth of the data channel that is powered off to a data channel with a smaller bandwidth, and by powering off the data channel with a smaller bandwidth, the above situation can be avoided, thereby improving the accuracy of power-off and reducing power consumption while meeting actual needs.

[0078] In the fourth step, the power supply control information of the first target data channel to be powered off is sent to the first target data channel to be powered off.

[0079] As an implementation manner, power supply control information of the first target data channel to be powered off may be sent to the first target data channel to be powered off via a bus, wherein the bus complies with a bus protocol (Advanced eXtensible Interface, AXI).

[0080] Based on the above embodiment, as a power-on control scenario, as an implementation method, the control unit 120 is further used to:

[0081] In response to the first actual frequency being less than the target frequency data, the bandwidth of the third data channel in the power-off state is acquired, and the first target data channel to be powered on is determined from the third data channel in the power-off state according to the difference between the first actual frequency and the target frequency data.

[0082] The target frequency data may be a target frequency interval or a target frequency value. In this embodiment, the target frequency data is taken as a target frequency interval as an example for explanation. For the case where the target frequency data is a target frequency value, the principle is similar and will not be described in detail in this embodiment. As an implementation method, the control unit 120 is further used to:

[0083] In the first step, the first actual frequency is compared with the target frequency interval.

[0084] In a second step, in response to the first actual frequency being less than a lower limit of the target frequency interval, a bandwidth of a third data channel in a power-off state is acquired.

[0085] In the embodiment of the present application, if the first actual frequency is less than the lower limit of the target frequency interval, it means that the first actual frequency of the memory currently running is less than the lower limit of the frequency interval that each main control unit needs to set the memory, which means that the load of the main control unit has increased and the memory needs to work at a higher operating frequency. Therefore, it is necessary to increase the frequency of the memory by powering on some data channels to meet the needs of the actual scenario. For the power-on strategy of the data channel, as an implementation method, the bandwidth of the third data channel in the power-off state is obtained, and the bandwidth indicates the amount of data transmitted per unit time by each third data channel.

[0086] In a third step, according to the difference between the first actual frequency and the lower limit of the target frequency interval, a first target data channel to be powered on is determined from the third data channel in the power-off state.

[0087] In one implementation method of the embodiment of the present application, the difference between the first actual frequency and the lower limit of the target frequency interval is compared with a set value. For example, the set value is 2400 MHz. If the difference is n set values, n data channels to be powered on are randomly determined from the third data channel in the power-off state, and the n data channels to be powered on are used as the first target data channels to be powered on.

[0088] In the fourth step, the power supply control information of the first target data channel to be powered on is sent to the first target data channel to be powered on.

[0089] The power supply control information of the first target data channel to be powered on is sent to the first target data channel to be powered on. The transmission method of the first target data channel to be powered off in the above embodiment can be referred to. The principle is the same and will not be repeated here.

[0090] Wherein, in the case where the target frequency data is a target frequency value, the following electrical scenario is used as an example for explanation:

[0091] In the first step, the first actual frequency is compared with the target frequency value.

[0092] In a second step, in response to the first actual frequency being greater than the target frequency value, a bandwidth of the first data channel in a powered-on state is acquired.

[0093] In the third step, according to the difference between the first actual frequency and the target frequency value, a first target data channel to be powered off is determined from the first data channels in the powered-on state.

[0094] In the fourth step, the power supply control information of the first target data channel to be powered off is sent to the first target data channel to be powered off.

[0095] For details, please refer to the explanation of the target frequency data being the target frequency interval in the above embodiment, the principle is similar and will not be repeated here. For the power-on scenario, the principle is also similar and will not be repeated here.

[0096] Furthermore, the main control unit will power on the data channel through voting when business processing is required. After power-on is completed, the main control unit does not necessarily send voting data in time to power off the data channel to reduce power consumption after executing the business. In this case, there will be a situation where the actual demand for memory frequency is low, but the actual memory runs at a higher frequency. In order to reduce power consumption in time, as an implementation method, it can be implemented in the following ways:

[0097] In the first step, the second actual frequency of the memory and the bandwidth of the fourth data channel in the power-on state are periodically obtained.

[0098] The second step is to determine the total bandwidth of the fourth data channel, and determine the expected frequency of the memory according to the total bandwidth of the fourth data channel.

[0099] In an embodiment of the present application, there is at least one fourth data channel in a powered-on state, the bandwidths of the at least one fourth data channel are added together to obtain a sum result, and the sum result is used as the total bandwidth of the at least one fourth data channel, and then, a set frequency mapping relationship is obtained, and the frequency mapping relationship stores the mapping relationship between the total bandwidth and frequency of the data channel. According to the frequency mapping relationship, the expected frequency of the memory corresponding to the total bandwidth can be queried and determined, wherein the expected frequency of the memory refers to the total bandwidth corresponding to at least one fourth data channel in a powered-on state, and the frequency set by the memory meets the data transmission requirements of the total bandwidth.

[0100] In the third step, in response to the expected frequency of the memory being less than the second actual frequency, determining a second target data channel to be powered off from the fourth data channel.

[0101] In the implementation of the present application, the expected frequency of the memory is compared with the second actual frequency. If the expected frequency of the memory is less than the second actual frequency, that is, the memory is not currently required to operate at the larger second actual frequency, it is necessary to determine the second target data channel to be powered off from the fourth data channel. The determination method can refer to the relevant explanations of the first target data channel to be powered off in the aforementioned embodiment. The principle is the same and will not be repeated here.

[0102] The fourth step is to send a power-off instruction of the second target data channel to the second target data channel.

[0103] Among them, the fourth step can refer to the relevant explanations in the aforementioned embodiment, the principle is the same, and it will not be repeated here.

[0104] In the chip of the embodiment of the present application, the target frequency data of the memory required by the main control unit is determined according to the frequency data of the memory required by the main control unit and the weight information of the main control unit, and the first target data channel that needs to be powered on is determined from multiple data channels of the memory according to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, and the power supply control information of the first target data channel is sent to the first target data channel. Based on the frequency data sent by the main control unit, the power on and off conditions of the data channel of the memory are dynamically adjusted, thereby meeting the needs of business scenarios and power consumption control and achieving the purpose of power saving.

[0105] Based on the above embodiments, Figure 2 A flowchart of a power consumption control method provided in an embodiment of the present application.

[0106] The execution subject of the power consumption control method of the embodiment of the present application is a power consumption control device, which can be set in an electronic device or a chip, so that the electronic device or the chip can execute the power consumption control method of the embodiment of the present application. Among them, the electronic device can be a mobile terminal, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens, etc., which are not limited in this embodiment.

[0107] The chip can be a memory management unit (MMU) or a system memory management unit (SMMU), etc., which are not listed one by one this time.

[0108] like Figure 2 As shown, the method may include the following steps:

[0109] Step 201 : determining target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit.

[0110] The master control unit is a bus master control unit, i.e., a master. As an example, the master control unit includes at least: a neural processing unit (NPU), a vision processing unit (VPU), a graphics processing unit (GPU), and at least one of a high-priority central processing unit Advanced CPU.

[0111] In one scenario of the embodiment of the present application, the main control unit determines the required memory frequency data according to the executed business situation, wherein when the main control unit executes more business, the required memory frequency data is higher, and when the main control unit completes the business, the required memory frequency data is lower. Thus, according to actual needs, voting data is sent. As an implementation method, the voting data is initiated by interruption, and the voting data includes the memory frequency data required by each main control unit.

[0112] In an implementation manner of the embodiment of the present application, there is one main control unit, and the frequency data of the memory required by the main control unit is used as the target frequency data of the memory required by the main control unit.

[0113] In another implementation of the embodiment of the present application, if there are multiple main control units, the target frequency data of the memory required by the main control unit is determined based on the frequency data of the memory required by the main control unit included in the voting data of the main control unit and the current actual frequency data of the memory.

[0114] Step 202 : determining a first target data channel to be powered on from a plurality of data channels of the memory according to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory.

[0115] The memory is a memory that uses multiple data channels for data transmission, such as an LPDDR memory.

[0116] In the embodiment of the present application, the target frequency data of the memory required by the main control unit is determined, that is, the target frequency data of the memory that needs to be set based on actual needs, wherein the power supply control includes powering on the data channel, that is, switching from a power-off state to a power-on state; or powering off the data channel, that is, switching from a power-on state to a power-off state. The following describes the power supply control for different scenarios:

[0117] In the first scenario, if the target frequency data is greater than the first actual frequency at which the memory is currently running, the actual operating frequency of the memory needs to be increased to match the business execution requirements of the main control unit. The first target data channel to be powered on can be determined based on the unpowered data channels among the multiple data channels of the memory.

[0118] In the second scenario, if the target frequency data is less than the first actual frequency at which the memory is currently running, the actual frequency at which the memory is running needs to be lowered to reduce power consumption. The first target data channel to be powered on can be determined based on the unpowered data channel in the memory.

[0119] The power supply control information includes power-on instructions and power-off instructions.

[0120] In one scenario, when there is a business to be executed in an electronic device or chip, the entire system has a high frequency requirement for LPDDR. The first target data channel to be powered on is determined by the frequency and weight information in the voting data, and the power-on instruction of the first target data channel is sent to the first target data channel through the bus to power on the first target data channel to meet the needs of business execution.

[0121] In another scenario, when there is no business to be executed in the electronic device or chip, the entire system has a lower frequency requirement for LPDDR, and the first target data channel to be powered off is determined by the frequency and weight information in the voting data. The power-off instruction of the first target data channel is sent to the first target data channel through the bus, and the first target data channel is powered off to reduce power consumption.

[0122] It should be noted that the relevant explanations about the chip in the aforementioned embodiment are also applicable to this embodiment, and the principles are the same, which will not be repeated here.

[0123] In the power consumption control method of the embodiment of the present application, the frequency data of the memory required by the main control unit and the first actual frequency of the memory are obtained through the statistical unit, and the first target data channel that needs to be powered on is determined from the multiple data channels of the memory. By determining the first target data channel to be powered on, dynamic control of the power on and off conditions of each data channel of the memory is achieved, thereby meeting the power consumption control requirements in various business scenarios.

[0124] Based on the above embodiments, Figure 3 A flowchart of another power consumption control method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method comprises the following steps:

[0125] Step 301, determining a target main control unit according to the frequency data of the memory required by each main control unit.

[0126] Step 302, determining target frequency data of the memory required by the plurality of main control units according to the frequency data of the memory required by the target main control unit.

[0127] Step 303: Compare the first actual frequency with the target frequency data.

[0128] Among them, steps 301 to 303 can refer to the relevant explanations in the aforementioned embodiments, and the principles are the same, so they will not be repeated here.

[0129] Step 304 : In response to the first actual frequency being greater than the target frequency data, obtaining a bandwidth of a first data channel in a powered-on state.

[0130] In the embodiment of the present application, the target frequency data is explained by taking the target frequency range as an example. For the case where the target frequency data is the target frequency value, reference may be made to the relevant explanations in the aforementioned embodiment. The principles are the same and will not be repeated here.

[0131] In the embodiment of the present application, if the first actual frequency is greater than the upper limit of the target frequency interval, it means that the first actual frequency of the memory currently running is greater than the upper limit of the frequency interval that each main control unit needs to set the memory, which means that the main control unit load is small and does not need the memory to work at such a high operating frequency. Therefore, it is necessary to reduce the frequency of the memory by powering off some data channels, thereby reducing system power consumption. For the power-off strategy of the data channel, as an implementation method, the bandwidth of the first data channel in the power-on state is obtained. The bandwidth indicates the amount of data transmitted by each first data channel per unit time. The amount of data transmitted by each first data channel can be determined based on the bandwidth of each first data channel.

[0132] Step 305 : determining a first target data channel to be powered off from the first data channels in the powered-on state according to the difference between the first actual frequency and the target frequency data.

[0133] In one implementation of the embodiment of the present application, a second data channel that is less than the bandwidth threshold is determined based on the bandwidth of the first data channel and a set bandwidth threshold, and a first target data channel to be powered off is determined from the second data channel based on the difference between the first actual frequency and the upper limit of the target frequency interval. For example, for every difference between the first actual frequency and the upper limit of the target frequency interval by a set value, such as a set value of 2400 MHz, a data channel needs to be powered off, and the data channel can be a data channel with a smaller bandwidth in the second data channel. If a data channel with a larger bandwidth is powered off, it is also necessary to transplant the bandwidth of the data channel that is powered off to a data channel with a smaller bandwidth. By powering off the data channel with a smaller bandwidth, the above situation can be avoided, thereby improving the accuracy of power-off and reducing power consumption while meeting actual needs.

[0134] A second implementation method of the embodiment of the present application is to sort the bandwidths of the first data channels, and determine the first data channel with a smaller bandwidth from the sorting results according to the difference between the first actual frequency and the upper limit of the target frequency range, wherein the number of data channels that are powered off can also be determined according to the difference, that is, for every set value (for example, 2400 MHz) that the difference between the first actual frequency and the upper limit of the target frequency range differs, one data channel needs to be powered off, and if a data channel with a larger bandwidth is powered off, it is also necessary to transplant the bandwidth of the data channel that is powered off to a data channel with a smaller bandwidth, and by powering off the data channel with a smaller bandwidth, the above situation can be avoided, thereby improving the accuracy of power-off and reducing power consumption while meeting actual needs.

[0135] Step 306: Send the power supply control information of the first target data channel to be powered off to the first target data channel to be powered off.

[0136] As an example, there are multiple main control units, and the multiple main control units respectively and synchronously send voting data of memory frequency to the chip through interruption, so that the statistical unit in the chip performs statistics and arbitration according to the voting data sent by the multiple master control units to determine the target data channel that needs to be powered on or off from the four data channels of the memory, namely data channel channel0, data channel channel1, data channel channel2 and data channel channel3. Figure 4 A schematic diagram of a power consumption control scenario provided in an embodiment of the present application, such as Figure 4 As shown, the main control unit is mater, including ACPU, NPU, VPU and GPU. ACPU, NPU, VPU and GPU synchronously send their respective voting data to the statistical unit through interruption. The statistical unit determines that the target main control units are NPU and GPU according to the four voting data, and then determines the target frequency data of the memory required by the four main control units according to the frequency of the memory required by the NPU and GPU. Then, according to the determined target frequency data of the memory and the first actual frequency of the memory, the first target data channel that needs to be powered on is determined from multiple data channels of the memory. For example, in a scenario where the NPU and GPU are not executing business, it is determined that the first target data channel that needs to be powered off is channel0 and channel2, and the power-off instructions of channel0 and channel2 are sent through Figure 4 The bus in is sent to channel0 and channel2, so that channel0 and channel2 are switched from the power-on state to the power-off state under the control of the power-off instruction, thereby achieving the purpose of reducing power consumption. Among them, the bus complies with the bus protocol (Advanced eXtensible Interface, AXI).

[0137] It should be noted that the relevant explanations about the chip in the aforementioned embodiment are also applicable to this embodiment, and the principles are the same, which will not be repeated here.

[0138] In the power consumption control method of the embodiment of the present application, voting data of the memory frequency sent by the main control unit is received, wherein the voting data includes the frequency data of the memory required by the main control unit, and the target frequency data of the memory required by the main control unit is determined according to the frequency data of the memory required by the main control unit. According to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, a first target data channel to be powered on is determined from multiple data channels of the memory, and the power supply control information of the first target data channel is sent to the first target data channel. Based on the voting data of the main control unit, the power on and off conditions of the data channel of the memory are dynamically adjusted to meet the needs of business scenarios and power consumption control and achieve the purpose of power saving.

[0139] Based on the above embodiments, the present application provides another power consumption control method. Figure 5 A flowchart of another power consumption control method provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the method comprises the following steps:

[0140] Step 501, determining a target main control unit according to the frequency data of the memory required by each main control unit.

[0141] Step 502, determining target frequency data of the memory required by the plurality of main control units according to the frequency data of the memory required by the target main control unit.

[0142] Among them, step 501 to step 502 can refer to the relevant explanations in the above-mentioned embodiment, and the principles are the same, which will not be repeated here.

[0143] Step 503: Compare the first actual frequency with the target frequency data.

[0144] Step 504 : In response to the first actual frequency being less than the target frequency data, obtaining a bandwidth of a third data channel in a power-off state.

[0145] In the embodiment of the present application, the target frequency data is explained by taking the target frequency range as an example. For the case where the target frequency data is the target frequency value, reference may be made to the relevant explanations in the aforementioned embodiment. The principles are the same and will not be repeated here.

[0146] In the embodiment of the present application, if the first actual frequency is less than the lower limit of the target frequency interval, it means that the first actual frequency of the memory currently running is less than the lower limit of the frequency interval that each main control unit needs to set the memory, which means that the load of the main control unit has increased and the memory needs to work at a higher operating frequency. Therefore, it is necessary to increase the frequency data of the memory by powering on some data channels to meet the needs of the actual scenario. For the power-on strategy of the data channel, as an implementation method, the bandwidth of the third data channel in the power-off state is obtained, and the bandwidth indicates the amount of data transmitted per unit time by each third data channel.

[0147] Step 505: Determine a first target data channel to be powered on from the third data channels in the power-off state according to the difference between the first actual frequency and the lower limit of the target frequency range.

[0148] In one implementation method of the embodiment of the present application, the difference between the first actual frequency and the lower limit of the target frequency range is compared with a set value. For example, the set value is 2400 MHz. If the difference is n set values, n data channels to be powered on are randomly determined from the third data channel in the power-off state, and the n data channels are used as the first target data channels to be powered on.

[0149] Step 506: Send the power supply control information of the first target data channel to be powered on to the first target data channel to be powered on.

[0150] The power supply control information of the first target data channel to be powered on is sent to the first target data channel to be powered on. The transmission method of the first target data channel to be powered off in the above embodiment can be referred to. The principle is the same and will not be repeated here.

[0151] Step 507: periodically obtain the second actual frequency of the memory and the bandwidth of the fourth data channel in the powered-on state.

[0152] In the embodiment of the present application, the main control unit will power on the data channel through voting when business processing is required. After power-on is completed, the main control unit does not necessarily send voting data in time to power off the data channel to reduce power consumption after executing the business. There may be a situation where the actual demand for memory frequency is low, while the actual memory runs at a higher frequency. In order to reduce power consumption in time, as an implementation method, the second actual frequency when the memory is actually running and the bandwidth of the fourth data channel in the powered-on state can be periodically obtained.

[0153] Step 508, determining the total bandwidth of the fourth data channel, and determining the expected frequency of the memory according to the total bandwidth of the fourth data channel.

[0154] In an embodiment of the present application, there is at least one fourth data channel in a powered-on state, the bandwidths of the at least one fourth data channel are added together to obtain a sum result, and the sum result is used as the total bandwidth of the at least one fourth data channel, and then, a set frequency mapping relationship is obtained, and the frequency mapping relationship stores the mapping relationship between the total bandwidth and frequency of the data channel. According to the frequency mapping relationship, the expected frequency of the memory corresponding to the total bandwidth can be queried and determined, wherein the expected frequency of the memory refers to the total bandwidth corresponding to at least one fourth data channel in a powered-on state, and the frequency set by the memory meets the data transmission requirements of the total bandwidth.

[0155] Step 509 : In response to the expected frequency of the memory being less than the second actual frequency, determining a second target data channel to be powered off from the fourth data channel.

[0156] In the implementation of the present application, the expected frequency of the memory is compared with the second actual frequency. If the expected frequency of the memory is less than the second actual frequency, that is, the memory is not currently required to operate at the larger second actual frequency, it is necessary to determine the second target data channel to be powered off from the fourth data channel. The determination method can refer to the relevant explanations of the first target data channel to be powered off in the aforementioned embodiment. The principle is the same and will not be repeated here.

[0157] Step 510: Send a power-off instruction of the second target data channel to the second target data channel.

[0158] Among them, step 510 can refer to the relevant explanations in the aforementioned embodiments, and the principle is the same, which will not be repeated here.

[0159] It should be noted that the relevant explanations about the chip in the aforementioned embodiment are also applicable to this embodiment, and the principles are the same, which will not be repeated here.

[0160] In the power consumption control method of the embodiment of the present application, voting data of the memory frequency sent by the main control unit is received, wherein the voting data includes the frequency data of the memory required by the main control unit, and the target frequency data of the memory required by the main control unit is determined according to the frequency data of the memory required by the main control unit. According to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, a first target data channel to be powered on is determined from multiple data channels of the memory, and the power supply control information of the first target data channel is sent to the first target data channel. Based on the voting data of the main control unit, the power on and off conditions of the data channel of the memory are dynamically adjusted to meet the needs of business scenarios and power consumption control and achieve the purpose of power saving.

[0161] In order to implement the above embodiments, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the above method embodiments is implemented.

[0162] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the above method embodiments is implemented.

[0163] In order to implement the above embodiments, the present application also proposes a computer program product on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiments is implemented.

[0164] Figure 6 This is a block diagram of an electronic device provided in an embodiment of the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0165] Reference Figure 6 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0166] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0167] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0168] The power component 806 provides power to the various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0169] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0170] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0171] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0172] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0173] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0174] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0175] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0176] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0177] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0178] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0179] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0180] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0181] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0182] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0183] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A chip, characterized in that: include: Statistical and control units; The statistical unit is used to determine the target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit; The control unit is connected to the statistical unit and is used to determine a first target data channel that needs to be powered on from multiple data channels of the memory according to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory.

2. The chip according to claim 1, characterized in that: The statistical unit is further used for: Determine the target main control unit according to the frequency data of the memory required by each main control unit; According to the frequency data of the memory required by the target main control unit, target frequency data of the memory required by the main control unit is determined.

3. The chip according to claim 2, characterized in that: The statistical unit is further used for: Compare the frequency data of the memory required by each main control unit with the first actual frequency of the memory respectively; In response to the frequency data of the memory required by each main control unit being less than the first actual frequency, each main control unit is used as the target main control unit.

4. The chip according to claim 2, characterized in that: The statistical unit is further used for: Compare the frequency data of the memory required by each main control unit with the first actual frequency of the memory respectively; In response to the frequency data of the memory required by each main control unit being greater than the first actual frequency, each main control unit is used as the target main control unit.

5. The chip according to claim 2, characterized in that: The statistical unit is further used for: Compare the frequency data of the memory required by each main control unit with the first actual frequency respectively; In response to the frequency domain data of the memory required by the multiple main control units being not all greater than the first actual frequency and not all less than the first actual frequency, the target main control unit is determined from the multiple main control units according to weight information of the multiple main control units.

6. The chip according to any one of claims 1 to 5, characterized in that: The control unit is further used for: comparing the first actual frequency with the target frequency data; In response to the first actual frequency being greater than the target frequency data, acquiring a bandwidth of a first data channel in a powered-on state; According to the difference between the first actual frequency and the target frequency data, a first target data channel to be powered off is determined from the first data channels in the powered-on state.

7. The chip according to claim 6, characterized in that: The control unit is further used for: Determine, according to the bandwidth of the first data channel and a set bandwidth threshold, a second data channel whose bandwidth is smaller than the bandwidth threshold; According to the difference between the first actual frequency and the target frequency data, a first target data channel to be powered off is determined from the second data channel.

8. The chip according to any one of claims 1 to 5, characterized in that: The control unit is further used for: comparing the first actual frequency with the target frequency data; In response to the first actual frequency being less than the target frequency data, acquiring a bandwidth of a third data channel in a power-off state; According to the difference between the first actual frequency and the target frequency data, a first target data channel to be powered on is determined from the third data channel in the power-off state.

9. The chip according to claim 8, characterized in that The power supply control information includes a power-on instruction, and the control unit is further used to: Periodically acquiring a second actual frequency of the memory and a bandwidth of a fourth data channel in a powered-on state; Determining a total bandwidth of the fourth data channel; Determining an expected frequency of the memory according to a total bandwidth of the fourth data channel; In response to the expected frequency of the memory being less than the second actual frequency, determining a second target data channel to be powered off from the fourth data channel; A power-off instruction of the second target data channel is sent to the second target data channel.

10. A power consumption control method, characterized in that: include: Determining target frequency data of the memory required by the main control unit according to the received frequency data of the memory required by the main control unit; According to the target frequency data of the memory required by the main control unit and the first actual frequency of the memory, a first target data channel requiring power supply control is determined from a plurality of data channels of the memory.

11. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to claim 10 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 10 is implemented.

Citation Information

Patent Citations

  • High-precision clock chip compensation production system and method

    CN112947034A

  • Memory management device and method and electronic equipment

    CN115735172A

  • Processor circuit, power supply control method and terminal equipment

    CN116107415A

  • Memory management method and system, desktop computer and computer storage medium

    CN118312320A

  • Frequency adjustment method and device, electronic equipment, storage medium and program product

    CN118838487A