Computing device and method of operating a computing device
By measuring the temperature and current of the processing components, and generating leakage power information based on the power mode information, the problem of inaccurate leakage power acquisition in the prior art is solved, and the scheduling efficiency of the computing device and the reliability of power management are improved.
Patent Information
- Application Number
- CN201910460933.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-06-01
- Filing Date
- 2019-05-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2039-05-30
AI Technical Summary
The prior art is difficult to obtain leakage power of the processing components quickly and accurately, resulting in scheduling errors and affecting the efficiency and power management of the computing device.
By obtaining power mode information of the processing component, temperature and current are measured, and leakage power information is generated based on this information, stored in memory for performing task scheduling.
The leakage power of the processing components is achieved quickly and accurately, and the scheduling efficiency of the computing device and the reliability of power management are improved.
Smart Images

Figure CN110554758B_ABST
Abstract
Description
[0001] This application claims the priority benefit of Korean Patent Application No. 10-2018-0063784 filed on June 1, 2018, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0002] Apparatuses and methods consistent with exemplary embodiments of the inventive concept relate to a computing device, and more particularly, to a computing device that operates based on power consumption and a method of operating the computing device. Background Art
[0003] When performing a schedule for assigning tasks to multiple processing components in a computing device, the leakage power processing component is taken into account. In order to perform the schedule, a method of implementing complex additional logic to obtain the leakage power of the processing component or storing data extracted from some samples in the processing and utilizing the data is used. Since an area not less than a certain size will be ensured for the complex additional logic used to obtain the leakage power, the complex additional logic may not be implemented. In addition, since the method of utilizing the samples extracted in the processing is not suitable for the actual environment in which the computing device operates, there is a very large error between the obtained leakage power and the actual leakage power, and therefore, the obtained leakage power is unreliable. Therefore, a method for easily, quickly and correctly obtaining the leakage power of the processing component is needed. Summary of the invention
[0004] Exemplary embodiments of the inventive concept provide a computing device for performing efficient scheduling by quickly and correctly obtaining leakage power of a processing component using simple logic and a method of operating the computing device.
[0005] According to an exemplary embodiment, a method of operating a computing device including a processing component is provided. The method may include: obtaining power mode information about the processing component; in response to obtaining the power mode information, measuring a temperature of the processing component and a current flowing through the processing component; generating leakage power information based on the power mode information and the measured temperature and the measured current; and storing the generated leakage power information in a memory.
[0006] The power mode information may be obtained from power management circuitry of the computing device for controlling the power mode of the processing components.
[0007] The power mode information may include information about a new power mode when the power mode of the processing component is changed to a new power mode.
[0008] The step of measuring the temperature and the current may include starting to measure the temperature and the current when the processing component enters a new power mode based on the power mode information.
[0009] The step of measuring the temperature and the current may further include measuring the temperature and the current when the power mode of the processing component indicated in the power mode information is a target power mode for leakage power measurement.
[0010] The step of measuring the temperature and the current may further include determining whether the measured temperature and the measured current are valid based on the power mode information.
[0011] The step of determining whether the measured temperature and the measured current are valid may include: checking whether a power mode of the processing component is changed before completing the operation of measuring the temperature and the current; and determining whether the measured temperature and the measured current are valid based on a result of the checking.
[0012] The determining whether the measured temperature and the measured current are valid may include determining that the measured temperature and the measured current are invalid in response to determining that a power mode of the processing component is changed before completing an operation of measuring the temperature and the current.
[0013] The generating of the leakage power information may include generating the leakage power information reflecting the type of the power mode of the processing component indicated by the power mode information.
[0014] The step of generating leakage power information may also include: when the power consumption in a power mode of the processing component includes a dynamic power component, modifying at least one of the measured temperature and the measured current taking into account the dynamic power component; generating leakage power information by using the modified result; wherein, in an operating mode of the processing component, the power consumption may also include a leakage power component, wherein, in the operating mode, a clock supply path to the processing component and a power supply path to the processing component are turned on.
[0015] The leakage power information may include information about a plurality of power modes of the processing component, information about a plurality of temperatures of the processing component, and information about a plurality of currents of the processing component.
[0016] The step of storing the leakage power information in the memory may include updating a leakage power table stored in the memory by using the leakage power information.
[0017] The method may further include: reading stored leakage power information from a memory; and performing task scheduling for the processing component based on the read leakage power information.
[0018] The method may also include: measuring the current temperature of the processing component; extracting information about the current corresponding to the current power mode of the processing component and the measured current temperature from the read leakage power information; and estimating the leakage power in the processing component based on the extracted information about the current for performing task scheduling.
[0019] The power mode information may include: information about a power mode among a plurality of power modes, wherein the plurality of power modes may include: an operating mode in which a clock supply path to a processing component and a power supply path to the processing component are turned on, a stop mode in which the clock supply path is disconnected and the power supply path is turned on, and a power-off mode in which the clock supply path and the power supply path are disconnected.
[0020] The steps of measuring the temperature and the current may be performed in response to determining that a ratio of leakage power to power consumed by the processing component is not less than a threshold value.
[0021] The computing device may further include a plurality of other processing components; wherein the memory may be configured to store leakage power information about a plurality of power modes of the plurality of other processing components.
[0022] According to an exemplary embodiment, a computing device is provided, which may include: a processing component; a memory configured to store a leakage power table including information about a plurality of power modes of the processing component; and at least one processor configured to control a leakage power management module for managing the leakage power table for the processing component, wherein the leakage power management module is configured to: obtain information about a temperature of the processing component and a current flowing through the processing component according to the power mode of the processing component, and manage the leakage power table by using the information about the temperature and the current.
[0023] The leakage power management module may be further configured to modify at least one of the temperature and the measured current based on a power mode among the plurality of power modes of the processing component.
[0024] When the power consumption in the one power mode of the processing component includes a dynamic power component, wherein the leakage power management module can be configured to: modify at least one of the temperature and the current taking into account the dynamic power component, wherein in the operating mode of the processing component, the power consumption may also include a leakage power component, wherein in the operating mode, a clock supply path to the processing component and a power supply path to the processing component are turned on.
[0025] The leakage power management module may be configured to detect a time point at which one of the plurality of power modes of the processing component is changed, and control the measurement of the temperature and the current to start at the detected time point.
[0026] When the information about the temperature and the current is obtained after the power mode of the first processing component is changed to a new power mode among the plurality of power modes, the leakage power management module may be configured to invalidate the measured temperature and the measured current.
[0027] The computing device may further include: another processing component, wherein the memory may be further configured to store another leakage power table for the another processing component, wherein the another leakage power table may include the plurality of power modes.
[0028] The processor may also be configured to implement a scheduler, wherein the scheduler may be configured to: extract information about a current corresponding to a current power mode of the processing component and a current temperature of the first processing component from a leakage power table, estimate the leakage power of the processing component based on the extracted information about the current, and perform task scheduling for the processing component based on a result of the estimation.
[0029] According to an exemplary embodiment, a processor for controlling a leakage power management module is provided, wherein the processor is configured to: obtain power mode information about a processing component; obtain information about a temperature of the processing component and a current flowing through the processing component in response to obtaining the power mode information; generate leakage power information based on the temperature and the current; and provide the leakage power information to an external component or device, wherein the external component or device schedules a task of the processing component based on the leakage power information.
[0030] The power mode information may include information about a power mode entered by the processing component and information about a time point at which the processing component enters the power mode, wherein the power mode may be one of a plurality of power modes set for the processing component.
[0031] The processor may also be configured to update the leakage power information by obtaining information about a new temperature of the processing component and a new current flowing through the processing component when the processing component enters a new power mode among multiple power modes, wherein the new power mode may be a predetermined target power mode.
[0032] According to an exemplary embodiment, there is provided a non-transitory computer-readable recording medium for storing instructions for controlling a processor to perform any one of the above methods of operating a computing device including a processing component. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Embodiments of the present inventive concept will be more clearly understood from the following detailed description in conjunction with the accompanying drawings, in which:
[0034] Figure 1 is a block diagram illustrating a computing device according to an embodiment;
[0035] Figure 2 is a graph illustrating power consumption when a processing component in a computing device operates according to an embodiment;
[0036] Figure 3 is a block diagram illustrating a computing device according to an embodiment;
[0037] Figure 4 is a block diagram specifically illustrating a leakage power information generator according to an embodiment;
[0038] Figure 5A is a diagram showing information on whether a processing component is a target of leakage power measurement according to an embodiment;
[0039] Figure 5B is a diagram showing the Figure 5A a diagram of a leakage power table of information stored in a buffer;
[0040] Fig. 6A is a diagram showing a power mode as a target of leakage power measurement according to an embodiment;
[0041] Figure 6B is a diagram showing information on whether a power mode of a processing component is a target of leakage power measurement according to an embodiment;
[0042] Figure 6C is a diagram showing the Figure 6B a diagram of a leakage power table of information stored in a buffer;
[0043] Fig. 7A is a diagram showing information referring to a case where a preset dynamic power is consumed when a processing component operates in a target power mode according to an embodiment;
[0044] Figure 7B is a diagram showing the Fig. 7A a diagram of a leakage power table of information stored in a buffer;
[0045] Figure 8 is a flow chart illustrating a method of operating a leakage power management module according to an embodiment;
[0046] Fig. 9 The embodiment specifically shows Figure 8 Flow chart of operation S110;
[0047] Fig.10 The embodiment specifically shows Figure 8 Flow chart of operation S120;
[0048] Fig.11 The embodiment specifically shows Figure 8 Flow chart of operation S130;
[0049] Fig.12 is a block diagram of a computing device for describing a method of utilizing a leakage power table according to an embodiment for task scheduling according to an embodiment;
[0050] Fig.13 is a block diagram illustrating a computing system according to an embodiment. DETAILED DESCRIPTION
[0051] Hereinafter, exemplary embodiments of the inventive concept will be described in detail with reference to the accompanying drawings. It will be noted that these embodiments are exemplary, but the inventive concept can be implemented in many different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided so that this description will be thorough and complete, and the scope of the inventive concept will be fully conveyed to those skilled in the art. In the accompanying drawings, the size and relative size of layers and regions may be exaggerated for clarity.
[0052] The embodiments provided in the following description do not exclude association with one or more features of another example or another embodiment that is also provided herein or not provided herein but is consistent with the inventive concept. For example, unless otherwise mentioned in the description of a specific example, even if a matter described in the specific example is not described in an example different from the specific example, the matter can also be understood to be associated with or combined with the different example.
[0053] Meanwhile, when the embodiment can be implemented differently, the function or operation described in a specific block can occur in a different manner from the flow described in the flow chart. For example, two consecutive blocks can be executed simultaneously, or these blocks can be executed in reverse order according to related functions or operations.
[0054] It will be understood that although the terms first, second, third, fourth, etc. may be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present invention, the first element, component, region, layer or part discussed below may be referred to as the second element, component, region, layer or part.
[0055] The terms used herein are only used for the purpose of describing specific example embodiments, and are not intended to limit the inventive concept. Unless the context clearly indicates otherwise, the singular form as used herein is also intended to include the plural form. It will also be understood that when used in this specification, the terms "include" and / or "comprise" specify the features, wholes, steps, operations, elements and / or components that are described, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their groups. As used herein, when a statement such as "at least one of ..." is after a column of elements, the statement modifies the entire column of elements, without modifying the individual elements of the column. For example, the statement "at least one of a, b and c" should be understood to include: only a, only b, only c, both a and b, both a and c, both b and c, or all a, b and c.
[0056] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which the inventive concept belongs. It will also be understood that, unless expressly defined as such herein, terms (such as those defined in common dictionaries) should be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and will not be interpreted as an idealized or overly formal meaning.
[0057] Figure 1 is a block diagram illustrating a computing device 100 according to an embodiment.
[0058] Reference Figure 1, the computing device 100 may include: a power supply 110, a power management integrated circuit (PMIC) 112, a voltage regulator 114, a power management circuit 116, a leakage power management module 120, a plurality of processing components (e.g., a first processing component 130_1 to an nth processing component 130_n), and at least one temperature sensor 140. The power supply 110 may be implemented by a battery or an alternating current (AC) power source as a power source. The power output from the power supply 110 may be supplied to the first processing component 130_1 to the nth processing component 130_n by the PMIC 112 through the voltage regulator 114, the power management circuit 116, and a plurality of power rails. The first processing component 130_1 to the nth processing component 130_n may perform the same operation or different operations. For example, the first processing component 130_1 may be a central processing unit (CPU) or a graphics processing unit (GPU) including multiple cores, the second processing component 130_2 may be a camera subsystem, and the nth processing component 130_n may be a modem. In addition, as an example only, the first through nth processing components 130_1 through 130_n may be implemented by a system on chip (SoC). Therefore, the first through nth processing components 130_1 through 130_n may be implemented differently to perform the same operation or different operations.
[0059] The power management circuit 116 may control the power modes of the first to n-th processing components 130_1 to 130_n, and may provide power suitable for the power mode to the first to n-th processing components 130_1 to 130_n through the power rail. The types of the power modes of the first to n-th processing components 130_1 to 130_n may be the same or different from each other. When the power modes of the first to n-th processing components 130_1 to 130_n are changed, the power management circuit 116 may provide the leakage power management module 120 with power mode information that the power mode is changed. For example, the power mode information may include information about a new power mode changed from a previous power mode (or information indicating a new power mode) and information about a time point when the first to n-th processing components 130_1 to 130_n enter the new power mode. In detail, when first processing component 130_1 changes from the first power mode to the second power mode, power management circuit 116 may provide power mode information including information about the second power mode and information about a time point at which first processing component 130_1 enters the second power mode to leakage power management module 120. Leakage power management module 120 is connected to power rails between power management circuit 116 and first to nth processing components 130_1 to 130_n, and may monitor current (or power) flowing through first to nth processing components 130_1 to 130_n.
[0060] The leakage power management module 120 according to an embodiment may generate leakage power information about the power modes of the first processing components 130_1 to the nth processing components 130_n based on the power mode information received from the power management circuit 116, the information about the temperatures of the first processing components 130_1 to the nth processing components 130_n measured by the temperature sensor 140, and the current flowing through the first processing components 130_1 to the nth processing components 130_n. According to an embodiment, the leakage power management module 120 may generate leakage power information about the power mode of only the target processing components in which the ratio of leakage power to power consumption is not less than a threshold value during operation. The information about the target processing components is pre-stored in the leakage power management module 120, or may be generated by the leakage power management module 120 that monitors the current flowing through the first processing components 130_1 to the nth processing components 130_n, which will be in Figure 5A and Figure 5B Hereinafter, the operation of the leakage power management module 120 to generate leakage power information about the power mode of the first processing component 130_1 will be described in detail.
[0061] According to an embodiment, leakage power management module 120 may obtain power mode information about first processing component 130_1 from power management circuit 116. Leakage power management module 120 may obtain information about the temperature of first processing component 130_1 measured by temperature sensor 140, and measure the current flowing through first processing component 130_1 based on the power mode information obtained from power management circuit 116. According to an embodiment, leakage power management module 120 may generate leakage power information about only at least one target power mode among a plurality of power modes of first processing component 130_1. Therefore, when first processing component 130_1 is not in a target power mode among a plurality of power modes, the temperature of first processing component 130_1 and the current flowing through first processing component 130_1 may not be measured, or information about them may not be obtained. In the target power mode as the target of leakage power measurement (for example, when the first processing component 130_1 is in the target power mode), the power consumption of the first processing component 130_1 includes only the leakage power, or the ratio of the leakage power to the power consumption of the first processing component 130_1 may be higher than the threshold. Information about the target power modes of the first processing component 130_1 to the nth processing component 130_n may be stored in the leakage power management module 120 in advance, which will be FIG. 6A to FIG. 6C Described in detail in.
[0062] The leakage power management module 120 may generate leakage power information based on the power mode information by using the measured temperature and the measured current. The leakage power management module 120 may generate leakage power information by reflecting the type of the power mode indicated by the power mode information. According to an embodiment, when the power consumption of the first processing component 130_1 in the target power mode includes a dynamic power component and a leakage power component, the leakage power management module 120 may generate leakage power information considering the dynamic power component. In addition, when the power consumption of the first processing component 130_1 in the target power mode includes only the leakage power component, the leakage power management module 120 may generate leakage power information by using the measured temperature and the measured current of the first processing component 130_1. That is, since the current flowing through the first processing component 130_1 depends on the leakage power of the first processing component 130_1, the leakage power can be easily and correctly obtained (or estimated) by measuring the current, which will be Fig. 7A and Figure 7B Described in detail in.
[0063] The leakage power management module 120 may store the generated leakage power information in a memory such as a buffer in the leakage power management module 120. Specifically, the leakage power management module 120 may update the leakage power table corresponding to the first processing component 130_1 stored in the buffer by using the generated leakage power information. In addition, in the initial stage of starting the computing device 100, the leakage power table corresponding to the first processing component 130_1 may be filled with an arbitrary value (e.g., a null value). The arbitrary value may be replaced by the generated leakage power information. The leakage power information about the power modes of the second processing component 130_2 to the nth processing component 130_n is generated by the above method and may be stored in the buffer.
[0064] When the first to nth processing components 130_1 to 130_n operate in the target power mode, the computing device 100 according to the embodiment can easily and quickly obtain the correct leakage power by measuring the current and temperature of the first to nth processing components 130_1 to 130_n. In addition, the computing device 100 can effectively perform task scheduling for the first to nth processing components 130_1 to 130_n in consideration of the correct leakage power.
[0065] Figure 2 is a graph showing power consumption when a processing component in a computing device operates.
[0066] Reference Figure 2 , the total power consumed by a processing component operating in a pre-set power mode may include leakage power and dynamic power. Figure 2 , leakage current represents leakage power, dynamic current represents dynamic power, and total current represents total power.
[0067] When performing task scheduling for a current processing component, computing device 100 may consider the power consumed by the processing component. In addition, computing device 100 may schedule tasks by determining whether the task can be smoothly executed based on the power currently consumed by the first processing component. That is, computing device 100 may operate based on energy-aware scheduling.
[0068] Dynamic power can be easily obtained by using the voltage applied to the processing component and the frequency of the signal. However, leakage power is difficult to obtain. Therefore, when it is determined that a specific processing component consumes a small amount of power and a large number of tasks are assigned to the processing component without considering the leakage power of the processing component, the processing component may consume a large amount of dynamic power to process a large number of tasks, and the consumed dynamic power is added to the previous leakage power, so that the processing component consumes more power than the expected amount. At this time, it is difficult for the processing component to perform effective operations. In addition, the computing device 100 may not be able to use power effectively. Specifically, when the computing device 100 is a device that is sensitive to battery usage efficiency or battery usage time (such as a mobile device), the above problem may be more serious. In order to solve this problem, when the first processing component 130_1 to the nth processing component 130_n are actually operated, the computing device 100 according to the present embodiment (refer to Figure 1 ) easily and correctly measures the leakage power of the power modes of the first processing component 130_1 to the nth processing component 130_n, stores the leakage power information, and performs task scheduling by using the stored leakage power information, so that the computing device 100 (refer to Figure 1 ) can use power efficiently.
[0069] Figure 3 is a block diagram illustrating a computing device 200 according to an embodiment.
[0070] Reference Figure 3 , the computing device 200 may include a leakage power management module 220 and first to third processing components 230_1 to 230_3. Leakage power management module 220. The leakage power management module 220 may include a leakage power information generator 221, a buffer TCB 222, and a switch circuit 223. The first processing component 230_1, which may be a CPU, may include a plurality of cores 231_1 to 231_4, a non-core logic 232, and a temperature sensor 233. The first processing component 230_1 may be in a plurality of power modes according to the states of the cores 231_1 to 231_4 and the non-core logic 232. In the following, it is assumed that the first processing component 230_1 is a target processing component for leakage power measurement.
[0071] According to an embodiment, the switch circuit 223 may be connected to a power rail providing power to the first processing component 230_1 and the temperature sensor 233. Through the above connection configuration, the switch circuit 223 may receive information about the current Current_C flowing through the first processing component 230_1 and the temperature Temp_C of the first processing component 230_1.
[0072] According to an embodiment, the leakage power information generator 221 may be generated from the power management circuit 116 (see Figure 1 ) receives power mode information PM_I. The power mode information PM_I notifying the power mode change of the first processing component 230_1 may include information about a new power mode that the first processing component 230_1 changes to and information about a time point when the first processing component 230_1 enters the new power mode.
[0073] The leakage power information generator 221 may determine whether the new power mode indicated by the power mode information PM_I is a target power mode as a target of leakage power measurement. The leakage power information generator 221 may pre-store information about the target power modes of a plurality of processing components including the first processing component 230_1. When the new power mode is the target power mode, the leakage power information generator 221 may refer to the information about the time point when the first processing component 230_1 enters the new power mode, and provide the switch control signal SW_CS to the switch circuit 223 at the time point when the first processing component 230_1 enters the new power mode. The switch circuit 223 may provide information about the current Current_C and the temperature Temp_C received in response to the switch control signal SW_CS to the leakage power information generator 221.
[0074] The leakage power information generator 221 may obtain information about the current Current_C and the temperature Temp_C, generate leakage power information PL_I by using the obtained information about the current Current_C and the temperature Temp_C, and store the leakage power information PL_I in the buffer TCB 222. The leakage power information generator 221 may determine whether the temperature and the current are valid based on the power mode information PM_I. For example, the leakage power information generator 221 may check that the previously set power mode is changed to a new power mode before the current Current_C and the temperature Temp_C are completely measured in the previously set power mode through the power mode information PM_I received later. When the previously set power mode is changed to a new power mode before the measurement is completed, the leakage power information generator 221 invalidates the previously measured value and may delete the value. As described above, the leakage power information generator 221 may ensure the minimum time for correctly measuring the current Current_C and the temperature Temp_C in the previously set power mode.
[0075] Figure 4 is a block diagram specifically illustrating the leakage power information generator 300 according to an embodiment.
[0076] Reference Figure 4 , the leakage power information generator 300 may include a leakage power information generating circuit 310, an ammeter 320, a thermometer 330, and a target power mode setting register 340. Figure 3 As shown in , the target power mode setting register 340 may store information about at least one target power mode as a target of leakage power measurement among a plurality of power modes of at least one processing component as a target of leakage power measurement. The information stored in the target power mode setting register 340 may be updated periodically or may be changed (or modified) by an external signal.
[0077] The leakage power information generation circuit 310 may determine whether the new power mode to which the previously set power mode of the processing component is changed is the target power mode by referring to the information stored in the target power mode setting register 340. When it is determined that the new power mode to which the previously set power mode of the processing component is changed is the target power mode, the leakage power information generation circuit 310 controls the ammeter 320 and the thermometer 330 to measure the current Current_C flowing through the processing component and the temperature Temp_C of the processing component.
[0078] The leakage power information generation circuit 310 may generate leakage power information PL_I based on the measured current and temperature. The leakage power information PL_I may include: a field indicating the power mode of the processing component, a field indicating the measured temperature of the processing component, and a field indicating the measured current flowing through the processing component. That is, through the leakage power information PL_I, information about the current flowing through the processing component at a specific temperature in a specific power mode can be obtained, thereby obtaining the leakage power of the processing component.
[0079] Figure 5A is a diagram showing information on whether a processing component is a target of leakage power measurement, Figure 5B It shows that according to Figure 5A The information stored in the buffer is shown in the leakage power table. Figure 3 To describe Figure 5A and Figure 5B .
[0080] Reference Figure 5A , the information SI_a may indicate that the first processing component (PC_1) 230_1 and the second processing component (PC_2) 230_2 are targets of leakage power measurement, and the third processing component (PC_3) 230_3 is not a target of leakage power measurement.
[0081] The leakage power management module 220 may perform leakage power measurement only on the first processing component (PC_1) 230_1 and the second processing component (PC_2) 230_2 with reference to the information SI_a.
[0082] Reference Figure 5B The leakage power management module 220 may update a first leakage power table TB_1 corresponding to the first processing component (PC_1) 230_1 and a second leakage power table TB_2 corresponding to the second processing component (PC_2) 230_2 by performing leakage power measurement on the first processing component (PC_1) 230_1 and the second processing component (PC_2) 230_2.
[0083] For example, the first processing component (PC_1) 230_1 may have a plurality of power modes PM_1a to PM_1a, the first leakage power table TB_1 is divided into the power modes PM_1a to PM_1a and may include information arranged according to the temperature (e.g., Temp_1a to Temp_na) and the current (or leakage current) corresponding to the temperature (e.g., Current_1a to Current_na) under the power modes PM_1a to PM_1a. The second processing component (PC_2) 230_2 may have a plurality of power modes PM_1b to PM_mb, the second leakage power table TB_2 is divided into the power modes PM_1b to PM_mb and may include information arranged according to the temperature (e.g., Temp_1b to Temp_pb) and the current (or leakage current) corresponding to the temperature (e.g., Current_1b to Current_pb) under the power modes PM_1b to PM_mb. The first processing component (PC_1) 230_1 and the second processing component (PC_2) 230_2 may have the same power mode or different power modes.
[0084] Fig. 6A is a diagram showing a power mode that is a target of leakage power measurement. Figure 6B is a diagram showing information on whether a power mode of a processing component is a target of leakage power measurement. Figure 6C It shows that according to Figure 6B The information stored in the buffer is shown in the leakage power table. Figure 3 To describe Figure 6B and Figure 6C .
[0085] Reference Fig. 6A, the processing component (PC) may be connected to a phase-locked loop (PLL) circuit and a voltage regulator (VR). The PC receives a clock signal from the PLL via a clock supply path CLK_P, and may receive power from the VR via a power supply path Power_P. For example, the PC may have a plurality of power modes including a run mode, a stop mode, and a power-off mode.
[0086] In the operation mode, both the clock supply path CLK_P and the power supply path Power_P are turned on. The total power (TP) consumed when the PC is in the operation mode may include dynamic power (DP) and leakage power (LP). In the stop mode, the clock supply path CLK_P is disconnected and the power supply path Power_P is turned on. The total power consumed when the PC is in the stop mode may include leakage power. In the power-off mode, both the clock supply path CLK_P and the power supply path Power_P are disconnected. The total power consumed when the PC is in the power-off mode may have a value of 0.
[0087] At this time, the stop mode can be set as the target power mode, and when the PC is in the stop mode, the leakage power management module 220 can perform leakage power management, which is only exemplary. The inventive concept is not limited to this. The target power mode can be set based on various references. It is estimated that the power mode in which the ratio of leakage power to power consumption is not less than a threshold value can be set as the target power mode. In addition, the target power mode can be set based on various references.
[0088] Reference Figure 6B , the information SI_b may indicate that the power modes PM_1a and PM_2a of the first processing component (PC_1) 230_1 are target power modes, the power mode PM_2b of the second processing component (PC_2) 230_2 is the target power mode, and the power mode PM_1c of the third processing component (PC_3) 230_3 is the target power mode. The information SI_b may be stored in Figure 4 The target power mode setting register 340 may be updated periodically and may be changed (or modified) by an external signal.
[0089] Reference Figure 6CThe leakage power management module 220 can update the first leakage power table TB_1 corresponding to the first processing component (PC_1) 230_1, the second leakage power table TB_2 corresponding to the second processing component (PC_2) 230_2, and the third leakage power table TB_3 corresponding to the third processing component (PC_3) 230_3 by performing leakage power management on the first processing component (PC_1) 230_1 to the third processing component (PC_3) 230_3 based on the information SI_b. As a result, the first leakage power table TB_1 includes information corresponding to the power mode PM_1a and the power mode PM_2a (e.g., temperatures Temp_1a to Temp_na and currents Current_1a to Current_na), the second leakage power table TB_2 includes information corresponding to the power mode PM_2b (e.g., temperatures Temp_1b to Temp_pb and currents Current_1b to Current_pb), and the third leakage power table TB_3 may include information corresponding to the power mode PM_1c (e.g., temperatures Temp_1c to Temp_jc and currents Current_1c to Current_jc).
[0090] Fig. 7A is a diagram showing information referring to a case where dynamic power set in advance is consumed when a processing component operates in a target power mode. Figure 7B It shows that according to Fig. 7A According to an embodiment, when the processing component consumes dynamic power less than a threshold value in a previously set power mode, since the power mode may be set to a target power mode, in order to correctly measure the leakage power, the leakage power management module 220 may refer to the information SI_c.
[0091] Reference Fig. 7A , the information SI_c may include modification factors (MF) corresponding to the target power modes PM_1a, PM_2a, PM_2b, and PM_1c of the first to third processing components (PC_1) 230_1 to (PC_3) 230_3. The MF may be determined based on specifications during a manufacturing process of the first to third processing components (PC_1) 230_1 to (PC_3) 230_3 and states of internal components of the first to third processing components (PC_1) 230_1 to (PC_3) 230_3 in the target power modes PM_1a, PM_2a, PM_2b, and PM_1c.
[0092] For example, the MF corresponding to the power mode PM_1a of the first processing component (PC_1) 230_1 may have a value of "a", and the MF corresponding to the power mode PM_2a may have a value of "b". The MF corresponding to the power mode PM_2b of the second processing component (PC_2) 230_2 may have a value of "c". The MF corresponding to the power mode PM_1c of the third processing component (PC_3) 230_3 may have a value of "d". The information SI_c may be stored in Figure 4 The target power mode setting register 340 may be updated periodically and may be changed (or modified) by an external signal.
[0093] Reference Figure 7B , the leakage power management module 220 performs leakage power measurement for the target power modes of the first processing component (PC_1) 230_1 to the third processing component (PC_3) 230_ based on the information SI_c, and may modify at least one of the measured temperature and current in consideration of the respective dynamic power components. For example, the leakage power management module 220 may reflect the MF (MF(a)) having a value of "a" to modify at least one of the temperature Temp_C and the current Current_C measured in the power mode PM_1a of the first processing component (PC_1) 230_1. The leakage power information PL_1a is generated by using the modification result and may be stored in the first leakage power table TB_1. The leakage power management module 220 may manage the leakage power tables corresponding to the other processing components (PC_2) 230_2 and (PC_3) 230 through the above method.
[0094] Figure 8 is a flow chart illustrating a method of operating a leakage power management module according to an embodiment.
[0095] Reference Figure 8 In operation S100, the leakage power management module may obtain power mode information about the processing component. In operation S110, in response to obtaining the power mode information, the leakage power management module may measure a temperature of the processing component and a current flowing through the processing component. In operation S120, the leakage power management module may generate leakage power information based on the power mode information by using the measured temperature and the measured current. In operation S130, the leakage power management module may store the generated leakage power information in a buffer.
[0096] Fig. 9 It specifically shows Figure 8 Flow chart of operation S110.
[0097] Reference Fig. 9 , in operation S100( Figure 8), in operation S111, the leakage power management module may determine whether the new power mode indicated by the power mode information is a target power mode for leakage power measurement. When it is determined in operation S111 that the new power mode is the target power mode (yes), in operation S112, the leakage power measurement module may measure the temperature and current when the processing component enters the new power mode.
[0098] In operation S113, the leakage power management module may check whether the power mode of the processing component has changed before completing the temperature and current measurement operation. When it is checked in operation S113 that the power mode has changed (yes), in operation S114, the leakage power management module may invalidate the previously measured temperature and current and delete the temperature and current. When it is checked in operation S113 that the power mode has not changed (no), the leakage power management module may perform operation S120 ( Figure 8 ).
[0099] When it is determined in operation S111 that the new power mode is not the target power mode (No), or after operation S114, in operation S115, the leakage power management module may standby to obtain the next power mode information. When the next power mode information is obtained, the leakage power management module may perform operation S100 ( Figure 8 ).
[0100] Fig.10 It specifically shows Figure 8 Flow chart of operation S120.
[0101] Reference Fig.10 , in operation S110( Figure 8 ), in operation S121, the leakage power management module may modify at least one of the measured temperature and the measured current in consideration of the dynamic power component of the power consumption of the processing component in the target mode. In operation S122, the leakage power management module may generate leakage power information by using the modification result. Then, the leakage power management module may perform operation S130 ( Figure 8 ).
[0102] Fig.11 It specifically shows Figure 8 Flow chart of operation S130.
[0103] Reference Fig.11 , in operation S120( Figure 8 ) Thereafter, in operation S131, the leakage power management module may update the leakage power table stored in the buffer by using the generated leakage power information.
[0104] Fig.12 is a block diagram of a computing device 400 for describing a method of utilizing a leakage power table for task scheduling according to an embodiment.
[0105] Reference Fig.12 , the computing device 400 may include a leakage power management module 420, a plurality of processing components 430_1 to 430_n, and a scheduler 450. The scheduler 450 may read a leakage power table from the buffer 422 of the leakage power management module 420, may extract information about a current corresponding to a current power mode of a processing component (e.g., 430_1) and a current temperature of the processing component 430_1 from the leakage power table (or leakage power information), and may correctly estimate the leakage power of the processing component from the extracted current. The scheduler 450 performs task scheduling on the processing component 430_1 based on the estimated result.
[0106] Fig.13 is a block diagram illustrating a computing system 1000 according to an embodiment.
[0107] Reference Fig.13 , the computing system 1000 may include an application specific integrated circuit (ASIC) 1010, an application specific instruction set processor (ASIP) 1030, a memory 1050, a main processor 1070, and a main memory 1090. At least two of the ASIC 1010, the ASIP 1030, and the main processor 1070 may communicate with one another. In addition, at least two of the ASIC 1010, the ASIP 1030, the memory 1050, the main processor 1070, and the main memory 1090 may be mounted on one chip.
[0108] ASIP 1030, which is an integrated circuit customized for a specific purpose, may support an instruction set only for a specific application and may execute a plurality of instructions included in the instruction set. Memory 1050 may communicate with ASIP 1030 and may store a plurality of instructions executed by ASIP 1030 as a non-temporary storage device. Memory 1050 may include any type of memory accessible by ASIP 1030, such as random access memory (RAM), read-only memory (ROM), tape, magnetic disk, optical disk, volatile memory, non-volatile memory, or a combination of tape, disk, and memory. ASIP 1030 or main processor 1070 may measure leakage power and may generate a plurality of instructions such as a power consumption, ... Figure 1 The leakage power information.
[0109] The main processor 1070 may control the computing system 1000 by executing the plurality of instructions. For example, the main processor 1070 may control the ASIC 1010 and the ASIP 1030, and may process data received through a wireless communication network or a user input to the computing system 1000. The main memory 1090 may communicate with the main processor 1070, and may store a plurality of instructions for measuring leakage power and for generating leakage power information executed by the main processor 1070 according to an embodiment as a non-transitory storage device.
[0110] The operations or steps of the above methods or algorithms may be implemented as computer-readable code on a computer-readable recording medium, or may be sent via a transmission medium. A computer-readable recording medium is any data storage device capable of storing data that is subsequently read by a computing system. Examples of computer-readable recording media include read-only memory (ROM), random access memory (RAM), compact disk (CD)-ROM, digital versatile disk (DVD), magnetic tape, floppy disk, and optical data storage device, but are not limited thereto. Transmission media may include carrier waves sent via the Internet or various types of communication channels. The computer-readable recording medium may also be distributed on networked computer systems so that the computer-readable code is stored and executed in a distributed manner.
[0111] According to an exemplary embodiment, at least one (e.g., Fig.12The leakage power management module 420 and the scheduler 450 in the embodiment of the present invention can be implemented as various numbers of hardware, software and / or firmware structures that perform the above-mentioned various functions. For example, at least one of these components can use a direct circuit structure that can perform various functions under the control of one or more microprocessors or other control devices, such as a memory, a processor, a logic circuit, a lookup table, etc. In addition, at least one of these components can be specifically implemented by a module, a program or a portion of code that contains one or more executable instructions for performing specific logical functions and is executed by one or more microprocessors or other control devices. In addition, at least one of these components may include a central processing unit (CPU), a processor of a microprocessor, etc. that performs various functions, or may be implemented by a central processing unit (CPU), a processor of a microprocessor, etc. that performs various functions. Two or more of these components can be combined into a single component that performs all operations or functions of the two or more components combined. In addition, at least a part of the functions of at least one of these components can be performed by another of these components. In addition, although the bus is not shown in the above block diagram, communication between components can be performed by the bus. The functional aspects of the above exemplary embodiments can be implemented in algorithms executed on one or more processors. Furthermore, the components or processing steps represented by blocks may employ techniques from any number of related fields for electronics configuration, signal processing and / or control, data processing and the like.
[0112] While the inventive concept has been particularly shown and described with reference to embodiments of the inventive concept, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.
Claims
1. A method of operating a computing device comprising a processing component, the method include: obtaining power mode information about a processing component; In response to the obtained power mode information indicating a predetermined target power mode, measuring a temperature of the processing component and a current flowing through the processing component; generating leakage power information based on the power mode information and the measured temperature and the measured current; The generated leakage power information is stored in a memory, The step of measuring the temperature and the current includes: determining whether the measured temperature and the measured current are valid based on the power mode information; The step of determining whether the measured temperature and the measured current are valid comprises: checking whether a power mode of a processing component is changed before completing the operation of measuring said temperature and said current; Based on the results of the inspection, it is determined whether the measured temperature and the measured current are valid, In response to determining that the power mode of the processing component is changed before the operation of measuring the temperature and the current is completed, determining that the measured temperature and the measured current are invalid, and standing by to obtain next power mode information.
2. The method according to claim 1, in, The power mode information includes information about a new power mode when the power mode of the processing component is changed to a new power mode.
3. The method according to claim 2, in, The step of measuring the temperature and the current includes: starting to measure the temperature and the current when the processing component enters a new power mode based on the power mode information.
4. The method according to claim 1, in, The steps of generating leakage power information include: when the power consumption of the processing component in one power mode includes a dynamic power component, modifying at least one of the measured temperature and the measured current to take into account the dynamic power component; generating leakage power information by using the modified result; Wherein, in an operating mode of the processing component, the power consumption further includes a leakage power component, wherein in the operating mode, a clock supply path to the processing component and a power supply path to the processing component are turned on.
5. The method according to claim 1, in, The step of storing the leakage power information in the memory includes updating a leakage power table stored in the memory by using the leakage power information.
6. The method according to claim 1, further comprising: include: reading stored leakage power information from a memory; Based on the read leakage power information, task scheduling for the processing component is performed.
7. The method according to claim 6, further comprising: include: measuring the current temperature of the processing components; extracting, from the read leakage power information, information about a current corresponding to a current power mode of the processing component and a measured current temperature; Based on the extracted information about the current, leakage power in the processing component is estimated for performing task scheduling.
8. The method according to claim 1, in, The power mode information includes: information about a power mode among a plurality of power modes, The multiple power modes include: an operating mode in which a clock supply path to a processing component and a power supply path to the processing component are turned on, a stop mode in which the clock supply path is turned off and the power supply path is turned on, and a power-off mode in which the clock supply path and the power supply path are turned off.
9. A computing device, include: Processing components; a memory configured to store a leakage power table including information about a plurality of power modes of the processing component; at least one processor configured to control a leakage power management module for managing a leakage power table for a processing component, The leakage power management module is configured to: in response to the power mode of the processing component being a predetermined target power mode, obtain information about the temperature of the processing component and the current flowing through the processing component, and manage the leakage power table by using the information about the temperature and the current, Wherein, the leakage power management module is configured as follows: checking whether a power mode of the processing component is changed before completing the operation of obtaining information about a temperature of the processing component and a current flowing through the processing component; determining whether the obtained information about the temperature of the processing component and the current flowing through the processing component is valid based on the result of the inspection, When the information on the temperature and the current is obtained after the power mode of the processing component is changed to a new power mode among the plurality of power modes, the temperature and the current are invalidated, and standby is performed to obtain information on a next power mode.
10. The computing device of claim 9, in, The leakage power management module is further configured to modify at least one of the temperature and the current based on a power mode among the plurality of power modes of the processing component.
11. The computing device of claim 10, in, When the power consumption of the processing component in the one power mode includes a dynamic power component, The leakage power management module is configured to modify the at least one of the temperature and the current taking into account a dynamic power component, Wherein, in an operating mode of the processing component, the power consumption further includes a leakage power component, wherein in the operating mode, a clock supply path to the processing component and a power supply path to the processing component are turned on.
12. The computing device of claim 9, in, The leakage power management module is configured to detect a time point at which one of the plurality of power modes of the processing component changes, and control the measurement of the temperature and the current to start at the detected time point.
13. The computing device of claim 9, further comprising: include: Scheduler, The scheduler is configured to extract information about a current corresponding to a current power mode of a processing component and a current temperature of the processing component from a leakage power table, estimate the leakage power of the processing component based on the extracted information about the current, and perform task scheduling for the processing component based on the estimated result.
14. A processor for controlling a leakage power management module, the processor being configured to: obtaining power mode information about a processing component; In response to the obtained power mode information indicating a first predetermined target power mode, obtaining information regarding a temperature of the processing component and a current flowing through the processing component; generating leakage power information based on the temperature and the current; Leakage power information is provided to an external component or device, wherein The external component or device schedules the tasks of the processing component based on the leakage power information. Wherein, the processor is configured to: checking whether a power mode of the processing component is changed before completing the operation of obtaining information about a temperature of the processing component and a current flowing through the processing component; determining whether the obtained information about the temperature of the processing component and the current flowing through the processing component is valid based on the result of the inspection, In response to determining that the power mode of the processing component is changed before the operation of measuring the temperature and the current is completed, determining that the measured temperature and the measured current are invalid, and standing by to obtain next power mode information.
15. The processor of claim 14, in, The power mode information includes: information about the power mode entered by the processing component and information about the time point when the processing component enters the power mode, The power mode is one of a plurality of power modes set for the processing component.
16. The processor of claim 14, in, The processor is further configured to update the leakage power information by obtaining information about a new temperature of the processing component and a new current flowing through the processing component when the processing component enters a new power mode among the plurality of power modes, The new power mode is a second predetermined target power mode.
