TWI454901B - Microprocessor, method of operating microprocessor and computer program product - Google Patents
Microprocessor, method of operating microprocessor and computer program product Download PDFInfo
- Publication number
- TWI454901B TWI454901B TW100123031A TW100123031A TWI454901B TW I454901 B TWI454901 B TW I454901B TW 100123031 A TW100123031 A TW 100123031A TW 100123031 A TW100123031 A TW 100123031A TW I454901 B TWI454901 B TW I454901B
- Authority
- TW
- Taiwan
- Prior art keywords
- value
- microprocessor
- processing core
- core
- energy
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/324—Power saving characterised by the action undertaken by lowering clock frequency
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3296—Power saving characterised by the action undertaken by lowering the supply or operating voltage
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Microcomputers (AREA)
Description
本發明係關於微處理器之電源管理,特別係有關多核心微處理器之電源管理。The present invention relates to power management of microprocessors, and more particularly to power management of multi-core microprocessors.
於2009年3月12日公開之美國專利應用公開第12/403,195(CNTR.2475)號,揭露一適應性之功率調節特性用以當於一時間間距T低於一最大功耗P時,提供使用者最佳效能。P與T值一般由結合一包括適應性之功率調節特性之微處理器的系統之製造商指定。微處理器知道其可在耗損不超過P瓦特之一頻率Xp上操作(在一實施例中,操作點Xp之頻率對應至一P狀態,作為P0)。然而,在多數T之子區間上(此為時間分格),微處理器計算最近T時間之平均功耗A以及比較A與P。若A足夠地低於P(也就是微處理器具有功率“評價值”),微處理器可自行決定於高於Xp之一頻率上運作。U.S. Patent Application Publication No. 12/403,195 (CNTR. 2 475), which issued on March 12, 2009, discloses an adaptive power regulation feature for providing when a time interval T is below a maximum power consumption P. User best performance. The P and T values are typically specified by the manufacturer of the system incorporating a microprocessor that includes adaptive power regulation characteristics. The microprocessor knows that it can operate on a frequency Xp that does not exceed PW watts (in one embodiment, the frequency of the operating point Xp corresponds to a P state, as P0). However, on most sub-intervals of T (this is a time division), the microprocessor calculates the average power consumption A for the most recent T time and compares A and P. If A is sufficiently lower than P (i.e., the microprocessor has a power "evaluation value"), the microprocessor can operate at a frequency higher than Xp.
單一微處理器組件上之雙核心介紹功率調節特性或功率評價值。這是由於系統製造商強加P與T需求在微處理器組件基底上,而非在每一核心上。然而,獨立核心可能在一給定時間間距T中耗損不同功率。首先,作業系統獨立改變每一核心之操作點(如P狀態與C狀態)使得核心消耗不同功率。再者,軟體工作量在兩個核心上可能不相同。此外,獨立核心可能在真實時間之不同時間點到達其時間分格區間。對整體來說,P與T需求還是必須滿足微處理器組件。The dual core on a single microprocessor component introduces power regulation characteristics or power evaluation values. This is because the system manufacturer imposes P and T requirements on the microprocessor component base rather than on each core. However, the independent core may consume different powers at a given time interval T. First, the operating system independently changes the operating points of each core (such as the P state and the C state) such that the core consumes different power. Furthermore, the software workload may not be the same on both cores. In addition, independent cores may reach their time division intervals at different points in time. For the whole, the P and T requirements must still satisfy the microprocessor components.
本發明提供一種微處理器,用以在具有記憶體之一系統中運作。微處理器包括複數處理核心,其中處理核心之每一處理核心用以當偵測到一電源事件發生時,計算一第一值,其中第一值代表處理核心在電源事件之一時間間距中所消耗之能量值,其中時間間距之長度為一既定時間值;從記憶體中讀取一或複數第二值,其中或第二值代表在時間間距中由處理核心之其他者所消耗之能量值,其中或第二值已預先由處理核心之其他者計算出以及寫入至記憶體;以及根據第一值與或第二值調整處理核心之操作頻率。The present invention provides a microprocessor for operating in a system having one of the memories. The microprocessor includes a complex processing core, wherein each processing core of the processing core is configured to calculate a first value when a power event is detected, wherein the first value represents a processing core in a time interval of a power event The energy value consumed, wherein the length of the time interval is a predetermined time value; one or a plurality of second values are read from the memory, wherein the second value represents the energy value consumed by the other of the processing cores in the time interval And wherein the second value has been previously calculated by the other of the processing cores and written to the memory; and the operating frequency of the processing core is adjusted according to the first value and the second value.
本發明提供一種操作微處理器的方法,在具有一記憶體之一系統中包括複數處理核心,其中記憶體可被處理核心存取,方法包括:當偵測到一電源事件發生時,藉由處理核心之一處理核心計算一第一值,其中第一值代表處理核心在電源事件之一時間間距中所消耗之能量值,其中時間間距之長度為一既定時間值;藉由處理核心從記憶體中讀取一或複數第二值,其中或第二值代表在時間間距中由處理核心之其他者所消耗之能量值,其中或第二值已預先由處理核心之其他者計算出以及寫入至記憶體;以及藉由處理核心根據第一值與或第二值調整處理核心之操作頻率。The present invention provides a method of operating a microprocessor, comprising a complex processing core in a system having a memory, wherein the memory is accessible by the processing core, the method comprising: when detecting a power event occurs, by The processing core processing core calculates a first value, wherein the first value represents the energy value consumed by the processing core in one of the time intervals of the power event, wherein the length of the time interval is a predetermined time value; Reading one or a plurality of second values, wherein the second value represents an energy value consumed by the other of the processing cores in the time interval, wherein the second value has been previously calculated and written by the other of the processing cores Entering into the memory; and adjusting the operating frequency of the processing core according to the first value or the second value by the processing core.
本發明提供一種電腦程式產品,於電腦裝置中嵌入可用之一至少電腦可讀儲存媒體。電腦程式產品包括在電腦可讀儲存媒體中嵌入電腦可讀程式碼。在電腦可讀儲存媒體中嵌入電腦可讀程式碼,用以指定一微處理器用以在具有一記憶體之一系統中操作,電腦可讀程式碼包括指定複數處理核心之程式碼,其中複數處理核心之每一處理核心用以:當偵測到一電源事件發生時,計算一第一值,其中第一值代表處理核心在電源事件之一時間間距中所消耗之能量值,其中時間間距之長度為一既定時間值;從記憶體中讀取一或複數第二值,其中或第二值代表在時間間距中由處理核心之其他者所消耗之能量值,其中或第二值已預先由處理核心之其他者計算出以及寫入至記憶體;以及根據第一值與或第二值調整處理核心之操作頻率。The present invention provides a computer program product in which at least one computer readable storage medium is embedded. The computer program product includes a computer readable code embedded in a computer readable storage medium. Embedding a computer readable code in a computer readable storage medium for designating a microprocessor for operating in a system having a memory, the computer readable code including a code specifying a plurality of processing cores, wherein the plurality of processing Each processing core of the core is configured to: when a power event is detected, calculate a first value, wherein the first value represents an energy value consumed by the processing core in one of the time intervals of the power event, wherein the time interval is The length is a predetermined time value; one or a plurality of second values are read from the memory, wherein the second value represents an energy value consumed by the other of the processing cores in the time interval, wherein the second value has been previously The other of the processing cores calculates and writes to the memory; and adjusts the operating frequency of the processing core based on the first value and the second value.
本發明提供一種微處理器,包括一輸入端以及複數處理核心。輸入端用以接收一外部電源施加在微處理器之瞬間功率大小的一指標。複數處理核心中每一處理核心用以:接收來自輸入端的指標以及判定於一前段週期中由微處理器所消耗之能量值,其中前段週期為一既定時間長度;以及操作處理核心於高於一既定頻率之一頻率,以回應於前段週期中判定之由微處理器所消耗之能量值低於一既定能量值。The invention provides a microprocessor comprising an input and a complex processing core. The input is used to receive an indicator of the instantaneous power level exerted by the external power source on the microprocessor. Each processing core of the complex processing core is configured to: receive an indicator from the input end and determine an energy value consumed by the microprocessor in a previous period, wherein the previous period is a predetermined length of time; and the operation processing core is higher than one A frequency of a given frequency in response to the energy value consumed by the microprocessor determined in the previous period being less than a predetermined energy value.
本發明提供一種操作微處理器的方法,包括藉由一輸入端上之微處理器接收一外部電源施加在微處理器之瞬間功率大小的一指標;藉由微處理器之每一處理核心,根據指標判定於前段週期中由微處理器所消耗之能量值,其中週期為一既定時間長度;以及操作處理核心於高於一既定頻率之一頻率,以回應於前段週期中判定之由微處理器所消耗所之能量值低於一既定能量值。The present invention provides a method of operating a microprocessor comprising receiving, by a microprocessor on an input, an indicator of the instantaneous power level applied to the microprocessor by an external power source; Determining, according to the indicator, the energy value consumed by the microprocessor in the previous period, wherein the period is a predetermined length of time; and operating the processing core at a frequency higher than a predetermined frequency in response to the micro-processing determined in the previous period The energy consumed by the device is lower than a predetermined energy value.
本發明提供一種電腦程式產品,於電腦裝置中嵌入可用之一至少電腦可讀儲存媒體。電腦程式產品包括在電腦可讀儲存媒體中嵌入電腦可讀程式碼,用以指定一微處理器用以在具有一記憶體之一系統中操作。電腦可讀程式碼包括一第一程式碼以及一第二程式碼。第一程式碼,指定一輸入端,用以接收一外部電源施加在微處理器之瞬間功率大小的一指標。第二程式碼,指定複數處理核心,其中每一處理核心用以:接收來自輸入端的指標以及判定於前段週期中由微處理器所消耗之能量值,其中週期為一既定時間長度;以及操作處理核心於高於一既定頻率之一頻率,以回應於前段週期中判定之由微處理器消耗所之能量值低於一既定能量值。The present invention provides a computer program product in which at least one computer readable storage medium is embedded. The computer program product includes a computer readable code embedded in a computer readable storage medium for designating a microprocessor for operation in a system having a memory. The computer readable code includes a first code and a second code. The first code specifies an input for receiving an indicator of the instantaneous power level applied to the microprocessor by an external power source. a second code designating a complex processing core, wherein each processing core is configured to: receive an indicator from the input end and determine an energy value consumed by the microprocessor in the previous period, wherein the period is a predetermined length of time; and the operation processing The core is at a frequency above a predetermined frequency in response to the energy value consumed by the microprocessor determined in the previous period being lower than a predetermined energy value.
本發明提供一種微處理器,包括複數處理核心,其中每一處理核心用以:在每一接續之當時情況下,判定於當時情況之前的一週期中,由微處理器消耗之能量值,其中週期為一既定時間長度;以及操作處理核心在高於一既定頻率之一頻率下,以回應於當時情況之前的週期中,由微處理器消耗之能量值係低於一既定能量值之判定。其中,微處理器用以致使所有處理核心同時操作在高於既定頻率之頻率下,直到處理核心中之一者判定微處理器於當時情況之前的週期中已經消耗多於既定能量值之能量。The present invention provides a microprocessor including a complex processing core, wherein each processing core is configured to: in each case of the connection, determine the energy value consumed by the microprocessor in a cycle prior to the current situation, wherein The period is a predetermined length of time; and the operation processing core is at a frequency higher than a predetermined frequency in response to the determination that the energy value consumed by the microprocessor is lower than a predetermined energy value in a period before the current situation. Wherein, the microprocessor is configured to cause all of the processing cores to operate simultaneously at a frequency above a predetermined frequency until one of the processing cores determines that the microprocessor has consumed more energy than a predetermined energy value in a period prior to the current situation.
本發明提供一種操作微處理器的方法包括:藉由每一複數處理核心:在每一接續之當時情況下,判定於當時情況之前的一週期中,由微處理器消耗之能量值,其中週期為一既定時間長度;以及操作處理核心在高於一既定頻率之一頻率下,以回應於當時情況之前的週期中,由微處理器消耗之能量值係低於一既定能量值之判定。其中,微處理器用以致使所有處理核心同時操作在高於既定頻率之頻率下,直到處理核心中之一者判定微處理器於當時情況之前的週期中已經消耗多於既定能量值之能量。The present invention provides a method of operating a microprocessor comprising: processing a core by each complex: in the case of each connection, determining the energy value consumed by the microprocessor in a cycle prior to the current situation, wherein the cycle For a predetermined length of time; and the operation processing core is at a frequency higher than a predetermined frequency in response to the period before the current situation, the energy value consumed by the microprocessor is lower than a predetermined energy value. Wherein, the microprocessor is configured to cause all of the processing cores to operate simultaneously at a frequency above a predetermined frequency until one of the processing cores determines that the microprocessor has consumed more energy than a predetermined energy value in a period prior to the current situation.
本發明提供一種電腦程式產品,於電腦裝置中嵌入可用之一至少電腦可讀儲存媒體,電腦程式產品包括在電腦可讀儲存媒體中嵌入電腦可讀程式碼,用以指定一微處理器用以在具有一記憶體之一系統中操作。電腦可讀程式碼包括指定複數處理核心之程式碼,其中每一處理核心用以:在每一接續之當時情況下,判定於當時情況之前的一週期中,由微處理器消耗之能量值,其中週期為一既定時間長度;以及操作處理核心在高於一既定頻率之一頻率下,以回應於當時情況之前的週期中,由微處理器消耗之能量值係低於一既定能量值之判定;其中,微處理器可致使所有處理核心同時操作在高於既定頻率之頻率下,直到處理核心中之一者判定微處理器於當時情況之前的週期中已經消耗多於既定能量值之能量。The invention provides a computer program product, wherein at least one computer readable storage medium is embedded in a computer device, and the computer program product comprises a computer readable program code embedded in the computer readable storage medium for designating a microprocessor for Operates in a system with one memory. The computer readable code includes a code for specifying a complex processing core, wherein each processing core is configured to: in the case of each connection, determine the energy value consumed by the microprocessor in a cycle before the current situation, Wherein the period is a predetermined length of time; and the operation processing core is at a frequency higher than a predetermined frequency in response to the period before the current situation, the energy value consumed by the microprocessor is lower than a predetermined energy value Wherein, the microprocessor can cause all of the processing cores to operate simultaneously at a higher frequency than the predetermined frequency until one of the processing cores determines that the microprocessor has consumed more energy than the predetermined energy value in the period prior to the current situation.
下面描述在一多核心組件執行功率評價值(power credit)特性的實施例。根據一實施例,核心共享資訊使得其中一核心可對整個組件執行功率評價值(power credit)運算。當一核心判定該必需組件寬帶(package-wide)功率評價值(power credit)不可用時,該核心轉換至一較低功率P狀態以確保可滿足組件寬帶(package-wide) P與T。仔細而言,核心操作於Xp或低於Xp以確保可滿足組件寬帶(package-wide) P與T,其中Xp為微處理器之所有核心在該既定時間值T可在該微處理器消耗不超過一既定能量值的情況下之一頻率,該既定能量值為P瓦特與T秒的乘積,Xp為系統軟體要求該核心操作之最高頻率,在某些系統中通常為P狀態P0。An embodiment of performing a power credit feature on a multi-core component is described below. According to an embodiment, the core shares information such that one of the cores can perform a power credit operation on the entire component. When a core determines that the required component-wide power credit is not available, the core transitions to a lower power P state to ensure that the component-wide P and T can be satisfied. Carefully, the core operates at or below Xp to ensure that the package-wide P and T are met, where Xp is the core of the microprocessor at which the specified time value T can be consumed by the microprocessor. For a frequency above a given energy value, the predetermined energy value is the product of P watts and T seconds, and Xp is the highest frequency that the system software requires for the core operation, and in some systems is typically the P state P0.
在一實施例中,兩個核心透過記憶體共享功率評價值(power credit)資訊。在一實施例中,使用SMM記憶體中之區域。BIOS寫入該區域之基底位址(base address)至每一核心之MSR。核心每經歷一次既定列表中的一事件(如頻率/電壓轉換、進入/離開休眠狀態、計時器更新平均核心功率等),即更新功率評價值(power credit)資訊至共享記憶體區域。In one embodiment, the two cores share power credit information through the memory. In one embodiment, the area in the SMM memory is used. The BIOS writes the base address of the region to the MSR of each core. Each time the core experiences an event in a given list (such as frequency/voltage conversion, entry/exit sleep state, timer update average core power, etc.), the power credit information is updated to the shared memory region.
第1圖係本發明描述之一種電腦系統100之方塊圖,電腦系統100包括雙核心微處理器組件102,組件102包括功率評價值(power credit)特性。組件102包括兩核心:核心0 104A與核心1 104B。雖然第1圖之實施例包含兩個核心,本發明之實施例亦可應用多核心之功率評價值(power credit)特性。1 is a block diagram of a computer system 100 in accordance with the present invention. Computer system 100 includes a dual core microprocessor component 102 that includes power credit characteristics. Component 102 includes two cores: core 0 104A and core 1 104B. Although the embodiment of FIG. 1 includes two cores, embodiments of the present invention may also apply multi-core power credit characteristics.
除了雙核心微處理器組件102,電腦系統100更包括電壓調節模組108(VRM)耦接至組件102。電壓調節模組108藉由VCORE訊號156提供電源至組件102。組件102提供VID訊號158至電壓調節模組108用以控制電壓準位,該電壓準位為電壓調節模組108提供VCORE訊號156至組件102。In addition to the dual core microprocessor assembly 102, the computer system 100 further includes a voltage regulation module 108 (VRM) coupled to the component 102. The voltage regulation module 108 provides power to the component 102 via the VCORE signal 156. The component 102 provides a VID signal 158 to the voltage regulation module 108 for controlling the voltage level. The voltage level provides the VCORE signal 156 to the component 102 for the voltage regulation module 108.
電腦系統100也包括記憶體106藉由處理器匯流排154耦接至組件102。一般而言,記憶體控制器(未標明)如晶片組之北橋,放置在記憶體106與處理器匯流排154之間。藉由系統軟體配置記憶體之一區域如BIOS或作業系統,作為功率資訊共享區域(PISA)138。功率資訊共享區域138包括核心0 104A分享給核心1 104B的功率資訊132A,以及核心1 104B分享給核心0 104A的功率資訊132B。每一核心104功率資訊132包括一動態能量114值,其用以代表在最近時間間距T核心104各自消耗之動態能量值,以及一漏損能量116值,其用以代表在最近時間間距T核心104各自消耗之漏損能量值。在一實施例中,每一核心104功率資訊132也包括一動態功率常數,其用以計算核心104各自之動態能量,如下描述。有益的是,功率資訊共享區域138提供一方法用以使雙核心104互相溝通功率資訊以在多核心方式實現功率評價值特性,如下面詳細描述,在雙核心104間不需透過訊號電線溝通功率資訊。The computer system 100 also includes a memory 106 coupled to the component 102 by a processor bus 154. In general, a memory controller (not shown), such as the north bridge of the chipset, is placed between the memory 106 and the processor bus 154. A system area such as a BIOS or an operating system is configured as a power information sharing area (PISA) 138 by the system software. The power information sharing area 138 includes power information 132A shared by core 0 104A to core 1 104B, and power information 132B shared by core 1 104B to core 0 104A. Each core 104 power information 132 includes a dynamic energy 114 value that is representative of the dynamic energy value consumed by each of the nearest time interval T cores 104, and a value of the leakage energy 116 that is used to represent the T core at the most recent time interval. The value of the leakage energy consumed by each of 104. In one embodiment, each core 104 power information 132 also includes a dynamic power constant that is used to calculate the respective dynamic energy of the core 104, as described below. Advantageously, the power information sharing area 138 provides a method for the dual cores 104 to communicate power information to each other to implement power evaluation value characteristics in a multi-core manner. As described in detail below, no communication power is required between the dual cores 104 via the signal wires. News.
每一核心104包括鎖相迴路(PLL)126,該鎖相迴路126用以提供核心時脈訊號至核心104電路。每一核心104也包括溫度感測器128用以感測核心104之溫度。在一實施例中,可藉由核心104之微碼127從溫度感測器128中讀取核心104之溫度。Each core 104 includes a phase locked loop (PLL) 126 for providing core clock signals to the core 104 circuitry. Each core 104 also includes a temperature sensor 128 for sensing the temperature of the core 104. In one embodiment, the temperature of the core 104 can be read from the temperature sensor 128 by the microcode 127 of the core 104.
核心104也包括匯流排時脈計時器122,匯流排時脈計時器122耦接至接收匯流排時脈訊號146,匯流排時脈訊號146由耦接至組件102之處理器匯流排154提供。當匯流排時脈146與核心104主動將匯流排時脈計時器122致能,匯流排時脈計時器122則進行計時,使得匯流排時脈計時器122於核心104在此狀態中繼續追蹤時間。匯流排時脈計時器122以匯流排時脈訊號146之速率計時。在這種方式中,匯流排時脈146提供一通用源(common source),每一核心104可透過匯流排時脈計時器122追蹤時間。仔細而言,每一核心104為功率評價值(power credit)目的設計匯流排時脈計時器122以提供一週期性之中斷至核心104。更準確而言,時間間距T(如一秒)被分割成等長之分格(bin)(如分格數128),且核心104對匯流排時脈計時器122進行編程,以中斷每一分格之區間、或分格之時間或分格之長度。在一實施例中,處理器匯流排154包括Pentium處理器匯流排之STPCLK與SLP訊號。在一實施例中,於發出(assert)SLP之後,匯流排時脈計時器122開始運作。The core 104 also includes a bus timing timer 122 coupled to the receiving bus timing signal 146. The bus timing signal 146 is provided by the processor bus 154 coupled to the component 102. When bus bar 146 and core 104 actively enable bus timer timer 122, bus clock timer 122 times, causing bus clock timer 122 to continue tracking time in core 104 in this state. . The bus timing timer 122 is clocked at the rate of the bus timing signal 146. In this manner, bus clock 146 provides a common source, and each core 104 can track time through bus clock timer 122. In detail, each core 104 designs a bus timing timer 122 for power credit purposes to provide a periodic interrupt to the core 104. More precisely, the time interval T (e.g., one second) is divided into equal length bins (e.g., the number of bins 128), and the core 104 programs the bus clock timer 122 to interrupt each minute. The interval of the grid, or the length of the division or the length of the division. In one embodiment, processor bus 154 includes STPCLK and SLP signals for the Pentium processor bus. In one embodiment, the bus timing timer 122 begins to operate after the SLP is asserted.
每一核心104也包括常駐計時器124,即使當核心104時脈不被用以使常駐計時器124保持時間時,常駐計時器124進行計時。在一實施例中,常駐計時器124被自激震盪器驅動,即使當核心104時脈停止時,常駐計時器124亦會持續計時。在一實施例中,因為自激震盪器會在兩個核心104間改變,因此每一核心104在一初始時間會將其常駐計時器124校正至匯流排時脈146之值。Each core 104 also includes a resident timer 124 that is timed even when the core 104 clock is not used to hold the resident timer 124 for a time. In one embodiment, the resident timer 124 is driven by the self-excited oscillator, and the resident timer 124 continues to count even when the core 104 clock is stopped. In one embodiment, because the self-excited oscillator will change between the two cores 104, each core 104 will correct its resident timer 124 to the value of the bus timing 146 at an initial time.
每一核心104也包括功率評價值暫存器129用以維持每一核心104所使用的資訊,以執行功率評價值特性。以下將討論功率評價值包括之資訊,例如,最大功率消耗P值;時間間距T值;與功率計算有關之多個常數(例如,核心104之動態功率常數,其已於產生組件102之時被決定);功率資訊共享區域138之基底位址(base address);分格數;不利於核心104之功率評價值的溫度限制;以及用於計算動態能量消耗之動態功率因子。一些功率評價值可藉由系統軟體被寫入功率評價值暫存器129,一些功率評價值可在製造中如透過熔絲(fuses)及/或固線式值(hardwired value)被寫入功率評價值暫存器129。一些功率評價值暫存器129可為核心104之特定模式記憶體(MSRs)。Each core 104 also includes a power evaluation value register 129 for maintaining information used by each core 104 to perform power evaluation value characteristics. The power evaluation values are discussed below, for example, maximum power consumption P value; time interval T value; multiple constants associated with power calculations (e.g., dynamic power constants of core 104 that have been generated by component 102) Decision); the base address of the power information sharing area 138; the number of divisions; the temperature limit that is not conducive to the power evaluation value of the core 104; and the dynamic power factor used to calculate the dynamic energy consumption. Some power evaluation values may be written to the power evaluation value register 129 by system software, and some power evaluation values may be written into the power during manufacture, such as through fuses and/or hardwired values. The evaluation value register 129. Some power evaluation value registers 129 may be specific mode memories (MSRs) of the core 104.
第2圖係第1圖之電腦系統100之記憶體106中之功率資訊共享區域138的之方塊圖。根據一實施例,核心104為x86架構核心用以支援系統管理模式(SMM)。若處理器可正確地執行在x86處理器上的應用程式,則該處理器為x86架構處理器。若一應用程式可得到可預期之結果,則顯示該應用程式被正確地執行。仔細而言,核心104執行x86指令集與包含x86用戶暫存器集的指令。如第2圖所示,根據一實施例,系統軟體(如作業系統、BIOS)為功率資訊共享區域138分配SMM記憶體空間202之一部分,該部分係未被其他函數使用的SMM記憶體空間202。因此,系統軟體設計功率評價值暫存器129具有功率資訊共享區域138的基底位址。在其他實施例中,系統軟體配置記憶體106空間之一部分給功率資訊共享區域138(該部分尚未被其他軟體程式使用),並且使用功率資訊共享區域138的基底位址對功率評價值暫存器129進行編程。2 is a block diagram of a power information sharing area 138 in the memory 106 of the computer system 100 of FIG. According to an embodiment, the core 104 is an x86 architecture core to support System Management Mode (SMM). If the processor can properly execute an application on an x86 processor, the processor is an x86 architecture processor. If an application can get predictable results, it shows that the application is executed correctly. In detail, core 104 executes the x86 instruction set and instructions containing the x86 user scratchpad set. As shown in FIG. 2, according to an embodiment, the system software (e.g., operating system, BIOS) allocates a portion of the SMM memory space 202 to the power information sharing area 138, which is an SMM memory space 202 that is not used by other functions. . Therefore, the system software design power evaluation value register 129 has the base address of the power information sharing area 138. In other embodiments, a portion of the system software configuration memory 106 space is provided to the power information sharing region 138 (which portion is not already in use by other software programs), and the base address to power evaluation value register of the power information sharing region 138 is used. 129 for programming.
第3圖係根據本發明之第1圖的組件102所實施之操作流程圖,流程開起始於步驟302。3 is an operational flow diagram of the assembly 102 in accordance with the first embodiment of the present invention, and the flow begins in step 302.
在步驟302中,重置核心104。核心104可藉由電源開啟(power-on)、組件102之重置腳位之判斷或軟體重置對核心104進行重置。接著流程進行至步驟304。In step 302, core 104 is reset. The core 104 can reset the core 104 by power-on, a reset bit determination of the component 102, or a software reset. The flow then proceeds to step 304.
在步驟304中,每一核心104校正其常駐計時器124,也就是每一核心104判定常駐計時器124之循環週期(以判定每一常駐計時器124刻點之匯流排時脈刻點數)。如上所述,常駐計時器124可被自激震盪器驅動,導致常駐計時器124之循環週期在獨立積體電路間之變動非常小。因此,每一核心104基於匯流排時脈146之頻率,將其常駐計時器124進行校正。仔細而言,每一核心104判定由於常駐計時器124之每一循環發生之匯流排時脈146之循環數。在一實施例中,運作微碼127,以回應核心104之重置,其同時啟動常駐計時器124以及匯流排時脈計時器122,並且將其編程使其於匯流排時脈146週期之一既定數目後形成中斷。當匯流排時脈計時器122中斷時,微碼127讀取常駐計時器124之值,以判定在常駐計時器124上發生之循環數目,並且藉由常駐計時器124循環數目將匯流排時脈計時器122循環之既定數目與常駐計時器124之循環進行相除,以決定由於常駐計時器124之每一循環發生之匯流排時脈146循環的數目。流程結束於步驟304。In step 304, each core 104 corrects its resident timer 124, that is, each core 104 determines the cycle period of the resident timer 124 (to determine the number of bus clocking points for each resident timer 124). . As described above, the resident timer 124 can be driven by the self-excited oscillator, resulting in a very small variation in the cycle period of the resident timer 124 between the individual integrated circuits. Thus, each core 104 corrects its resident timer 124 based on the frequency of the bus timing 146. In detail, each core 104 determines the number of cycles of the bus 126 that occurs due to each cycle of the resident timer 124. In one embodiment, the microcode 127 is operated in response to a reset of the core 104, which simultaneously activates the resident timer 124 and the bus timing timer 122 and programs it to one of the bus cycle 146 cycles. An interrupt is formed after a predetermined number. When the bus timing timer 122 is interrupted, the microcode 127 reads the value of the resident timer 124 to determine the number of cycles that occur on the resident timer 124, and the number of cycles by the resident timer 124 will be the bus time. The predetermined number of cycles of the timer 122 is divided by the cycle of the resident timer 124 to determine the number of bus cycle 146 cycles that occur due to each cycle of the resident timer 124. The process ends at step 304.
第4圖係根據本發明之第1圖電腦系統100所實施之操作流程圖。流程開起始於步驟402。Fig. 4 is a flow chart showing the operation of the computer system 100 according to Fig. 1 of the present invention. Flow begins at step 402.
在步驟402中,系統軟體對一或多個功率評價值暫存器129進行寫入,以初始功率評價值特性。如上所述,該寫入可指定與功率評價值有關之資料值。在一實施例中,該寫入至功率評價值暫存器129可啟動第1圖之微碼127。接著流程進行至步驟404。In step 402, the system software writes one or more power evaluation value registers 129 to an initial power evaluation value characteristic. As described above, the write can specify a data value associated with the power evaluation value. In one embodiment, the write to power evaluation value register 129 can initiate the microcode 127 of FIG. The flow then proceeds to step 404.
在步驟404中,微碼127產生以及初始分格結構以回應在步驟402中之初始化。也就是說,微碼127產生一分格結構,其包括項目之循環佇列。項目之數目對應於時間間距T之分格之時間數目。每一項目用以儲存相應之分格中有關功率消耗的資訊。在一實施例中,於分格之時間中,每一分格儲存核心104所消耗之動態能量值與漏損能量值。在一實施例中,微碼127藉由動態能量與漏損能量之既定值對每一分格進行初始化。在一實施例中,微碼127於核心104之私有隨機存取記憶體中產生分格結構,使用者指令無法對該私有隨機存取記憶體進行存取而,只有微碼127能對其進行存取。微碼127動態地更新分格結構與使用該分格結構執行功率評價值特性。接著流程進行至步驟406。In step 404, the microcode 127 generates and initializes the initial structure in response to the initialization in step 402. That is, the microcode 127 produces a grid structure that includes the loops of the items. The number of items corresponds to the number of time intervals of the time interval T. Each item is used to store information about the power consumption in the corresponding compartment. In one embodiment, each of the bins stores the dynamic energy value and the leakage energy value consumed by the core 104 during the time of the bin. In one embodiment, the microcode 127 initializes each bin by a predetermined value of dynamic energy and leakage energy. In one embodiment, the microcode 127 generates a partition structure in the private random access memory of the core 104. The user instruction cannot access the private random access memory, and only the microcode 127 can perform the random access memory. access. The microcode 127 dynamically updates the cell structure and performs power evaluation value characteristics using the cell structure. The flow then proceeds to step 406.
在步驟406中,微碼127初始與功率評價值特性有關之變數,該變數存放於私有隨機存取記憶體中。從功率評價值(power credit)暫存器129讀取多數變數,其餘變數係經由計算得到的。舉例而言,分格之時間係經由時間間距T與分格數相除而得到的。其他得到之參數包括(但本發明不限於此):最近計算之核心104之時間間距漏損與動態能量;最近計算之核心104之時間間距總能量;最近更新之分格結構之時間;臨界值,若組件102時間間距能量低於該臨界值,核心104判定於高於Xp之操作點操作(在一實施例中,有兩頻率高於Xp與兩相異臨界值);臨界值,若系統軟體最近要求該臨界值,核心104判定於高於Xp之操作點操作;動態能量因子;分格項目之佇列指標;最後採樣之核心104之溫度;最後之核心104之電壓;最後之核心104之頻率。核心104也判定其動態能量常數,該動態能量常數為該頻率與該電壓平方之乘積所得之值,用以計算核心104之動態能量消耗。在一實施例中,微碼127計算動態功率常數作為功率評價值暫存器129中之資訊函數。在一實施例中,為了減少運算量的需求,核心104在分格項目、時間間距與功率資訊共享區域138中分開保持動態與漏損能量值。仔細而言,該值為換算值,動態能量值沒有加入因子至動態功率常數。然而當最後組件間距能量值在副程式W中(請見第9圖)運算時,係將動態功率常數只與間距動態能量進行相乘。在此實施例中,核心104也於初始時間寫入動態功率常數值至功率資訊共享區域138。接著進行至步驟412。In step 406, the microcode 127 initially has a variable relating to the power evaluation value characteristic, the variable being stored in the private random access memory. Most of the variables are read from the power credit register 129, and the remaining variables are calculated. For example, the time of the division is obtained by dividing the time interval T by the number of divisions. Other parameters obtained include (but the invention is not limited thereto): time-interval leakage and dynamic energy of the most recently calculated core 104; time-interval total energy of the most recently calculated core 104; time of the recently updated partition structure; threshold If the time interval energy of the component 102 is lower than the threshold, the core 104 determines to operate at an operating point higher than Xp (in one embodiment, there are two frequencies higher than the Xp and the two-phase different threshold); the threshold if the system The software recently requested the threshold, the core 104 determines the operating point above Xp; the dynamic energy factor; the index of the binning item; the temperature of the core 104 of the last sample; the voltage of the last core 104; the last core 104 The frequency. The core 104 also determines its dynamic energy constant, which is the value of the product of the frequency and the square of the voltage, used to calculate the dynamic energy consumption of the core 104. In one embodiment, the microcode 127 calculates the dynamic power constant as an information function in the power evaluation value register 129. In one embodiment, to reduce the amount of computational effort, core 104 maintains dynamic and leakage energy values separately in the binning item, time interval, and power information sharing area 138. In detail, this value is a converted value, and the dynamic energy value is not added to the dynamic power constant. However, when the final component spacing energy value is calculated in the sub-program W (see Figure 9), the dynamic power constant is only multiplied by the spacing dynamic energy. In this embodiment, core 104 also writes dynamic power constant values to power information sharing area 138 at an initial time. Then proceed to step 412.
在步驟412中,微碼127設定匯流排時脈計時器122,並且於一分格之時間發生後啟動匯流排時脈計時器122以產生中斷。每一次匯流排時脈計時器122中斷發生時,微碼127重新設計匯流排時脈計時器122以在分格之時間發生時產生中斷。此外,每一次核心104從核心104時脈沒有運作之休眠狀態啟動時,微碼127重新設計匯流排時脈計時器122以在分格之時間發生時產生中斷。流程結束於步驟412。In step 412, the microcode 127 sets the bus timing timer 122 and activates the bus timing timer 122 to generate an interrupt after a divided time has occurred. Each time the bus timing timer 122 interrupt occurs, the microcode 127 redesigns the bus timing timer 122 to generate an interrupt when the time of the division occurs. In addition, each time the core 104 is started from a sleep state in which the core 104 clock is not operational, the microcode 127 redesigns the bus timing timer 122 to generate an interrupt when the time of the division occurs. The process ends at step 412.
第5圖係根據本發明之第1圖電腦系統100所實施之操作流程圖。第5圖包括第5A與5B圖。第5A圖包括步驟502至539,第5B圖包括步驟542至588。流程開起始於步驟502。Figure 5 is a flow chart showing the operation of the computer system 100 according to the first embodiment of the present invention. Figure 5 includes Figures 5A and 5B. Figure 5A includes steps 502 through 539, and Figure 5B includes steps 542 through 588. Flow begins at step 502.
在步驟502中,於核心104有一功率事件發生。功率事件包括核心104時脈頻率更新、匯流排時脈計時器122之中斷、核心104進入休眠、核心104從匯流排時脈計時器122休眠狀態啟動、或核心104從常駐計時器124休眠狀態啟動。在一實施例中,功率事件引發微碼127。接著流程進行至步驟504。In step 502, a power event occurs at core 104. The power event includes a core 104 clock frequency update, an interrupt to the bus schedule timer 122, the core 104 goes to sleep, the core 104 starts from the bus schedule timer 122 sleep state, or the core 104 boots from the resident timer 124 sleep state. . In an embodiment, the power event causes the microcode 127. The flow then proceeds to step 504.
在決定步驟504中,微碼127判定是否更新核心104時脈頻率,微碼127更新核心104時脈頻率的原因包括(但本發明不限於此)系統軟體要求改變核心104之P狀態或溫度事件,如核心104之溫度高於或低於既定臨界值。若核心104更新時脈頻率,流程進行至步驟522,否則流程進行至步驟506。In decision step 504, the microcode 127 determines whether to update the core 104 clock frequency, and the reason that the microcode 127 updates the core 104 clock frequency includes (but the invention is not limited thereto) the system software requires changing the P state or temperature event of the core 104. For example, if the temperature of the core 104 is higher or lower than a predetermined threshold. If the core 104 updates the clock frequency, the flow proceeds to step 522, otherwise the flow proceeds to step 506.
在決定步驟506中,微碼127判定匯流排時脈計時器122是否產生中斷。若匯流排時脈計時器122產生中斷,流程進行至步驟528,否則流程進行至步驟508。In decision step 506, the microcode 127 determines if the bus timing timer 122 has generated an interrupt. If the bus timing timer 122 generates an interrupt, the flow proceeds to step 528, otherwise the flow proceeds to step 508.
在步驟508中,微碼127判定核心104是否進入休眠狀態。進入休眠狀態代表核心104不再執行使用者指令。在一實施例中,休眠狀態可對應至一眾所皆知之C狀態。舉例而言,核心104在暫停狀態如C1C狀態,以回應溫度調節事件或執行HALT指令或MWAIT指令。再者,電腦系統100晶片組發出(assert)處理器匯流排154上之STPCLK訊號,以要求允許發出(assert)SLP訊號以停止核心104時脈,作為C2。直到發出(assert)SLP為止,核心104時脈仍處於運作狀態且匯流排時脈計時器122也仍在運作。然後,一旦發出(assert)SLP,作為C3,匯流排時脈計時器122將不再運作且核心104一定需依賴常駐計時器124以判定核心104之休眠時間。此外,核心104能藉由關閉鎖相迴路126,以減少休眠功率消耗,作為C4。最後,核心104能藉由停止一部分或全部之快取記憶體以及中斷功率減少休眠功率消耗,作為C5。值得注意的是,核心104於休眠狀態相較於操作狀態時消耗較少功率,當於最近時間間距計算總組件102能量消耗時,考慮到功率評價值(power credit)特性。系統軟體可要求核心104及/或組件102改變休眠狀態,或者核心104可自行改變。若核心104即將休眠,流程進行至步驟534,否則;流程進行至步驟512。In step 508, the microcode 127 determines if the core 104 is in a sleep state. Entering the sleep state means that the core 104 no longer executes user instructions. In an embodiment, the sleep state may correspond to a well-known C state. For example, core 104 is in a suspended state, such as a C1C state, in response to a temperature adjustment event or executing a HALT instruction or a MWAIT instruction. Furthermore, the computer system 100 chipset asserts the STPCLK signal on the processor bus 154 to request that the SLP signal be asserted to stop the core 104 clock as C2. Until the SLP is asserted, the core 104 clock is still active and the bus clock timer 122 is still operating. Then, once the SLP is asserted, as C3, the bus schedule timer 122 will no longer function and the core 104 must rely on the resident timer 124 to determine the sleep time of the core 104. In addition, core 104 can reduce sleep power consumption by turning off phase-locked loop 126 as C4. Finally, core 104 can reduce sleep power consumption by stopping some or all of the cache memory and interrupting power as C5. It is worth noting that the core 104 consumes less power in the sleep state than in the operational state, and takes into account the power credit characteristics when calculating the energy consumption of the total component 102 at the most recent time interval. The system software may require the core 104 and/or component 102 to change to a dormant state, or the core 104 may change itself. If the core 104 is about to sleep, the flow proceeds to step 534, otherwise; the flow proceeds to step 512.
在步驟512中,於匯流排時脈計時器122仍在操作的期間中,微碼127判定核心104是否從休眠狀態(匯流排計時器之休眠狀態)中啟動,使得微碼127可更新分格結構與間距能量值。若核心104從匯流排時脈計時器122之休眠狀態啟動,流程進行至步驟538,否則;流程進行至步驟514。In step 512, during the period in which the bus timer 122 is still operating, the microcode 127 determines whether the core 104 is activated from the sleep state (the sleep state of the bus timer) so that the microcode 127 can update the bin. Structure and spacing energy values. If the core 104 is initiated from the sleep state of the bus schedule timer 122, the flow proceeds to step 538, otherwise, the flow proceeds to step 514.
在決定步驟514中,於匯流排時脈計時器122不再操作的期間中,微碼127判定核心104是否從休眠狀態(常駐計時器之休眠狀態)中啟動,使得微碼127不再能夠更新分格結構與間距能量值,且核心104一定需依靠常駐計時器124以判定核心104之休眠時間。若核心104從常駐計時器124之休眠狀態啟動,流程進行至步驟542,否則流程結束於步驟514。In decision step 514, during the period in which bus clock timer 122 is no longer operational, microcode 127 determines whether core 104 is booted from a sleep state (sleep state of the resident timer) such that microcode 127 is no longer updated. The bin structure and the pitch energy value, and the core 104 must rely on the resident timer 124 to determine the sleep time of the core 104. If the core 104 is initiated from the sleep state of the resident timer 124, the flow proceeds to step 542, otherwise the flow ends at step 514.
在步驟522中,呼叫一副程式,在此指副程式Z。副程式Z將於第6圖中詳細描述。從副程式Z獲得回報並且流程進行至步驟524。In step 522, a subroutine is called, here referred to as subprogram Z. The subprogram Z will be described in detail in Fig. 6. The return is obtained from the subprogram Z and the flow proceeds to step 524.
在步驟524中,呼叫一副程式,在此指副程式X。副程式X將於第8圖中詳細描述。從副程式X獲得回報並且流程結束步驟524。In step 524, a subroutine is called, here referred to as subprogram X. The subroutine X will be described in detail in Fig. 8. A return is obtained from the subroutine X and the process ends with step 524.
在步驟528中,呼叫副程式Z。從副程式Z獲得回報並且流程進行至步驟532。In step 528, the secondary program Z is called. The return is obtained from the subprogram Z and the flow proceeds to step 532.
在步驟532中,呼叫一副程式,在此指副程式Y。副程式Y將於第10圖中詳細描述。流程結束於步驟532。In step 532, a subroutine is called, here referred to as subprogram Y. The subroutine Y will be described in detail in Fig. 10. The process ends at step 532.
在步驟534中,呼叫一副程式。獲得回報並且流程進行至步驟536。In step 534, a program is called. The reward is obtained and the flow proceeds to step 536.
在步驟536中,微碼127使核心104進入休眠狀態。流程結束於步驟536。In step 536, the microcode 127 puts the core 104 into a sleep state. The process ends at step 536.
在步驟538中,呼叫副程式Z。從副程式Z獲得回報並且流程進行至步驟539。In step 538, the subprogram Z is called. The return is obtained from the subprogram Z and the flow proceeds to step 539.
在步驟538中,呼叫副程式Y。流程結束於步驟539。In step 538, the secondary program Y is called. The process ends at step 539.
在步驟542中,微碼127讀取常駐計時器124以及計算休眠時間(TSLP)。在一實施例中,微碼127以匯流排時脈146循環計算休眠時間。流程進行至步驟544。In step 542, the microcode 127 reads the resident timer 124 and calculates the sleep time (TSLP). In one embodiment, the microcode 127 cycles through the bus 146 to calculate the sleep time. The flow proceeds to step 544.
在步驟544中,微碼127計算分格剩下的時間,利用分格之時間減去當時分格最後更新之時間,其用以作為微碼127之變數。接著流程進行至步驟546。In step 544, the microcode 127 calculates the time remaining for the bin, using the time of the bin minus the time of the last update of the bin, which is used as the variable of the microcode 127. The flow then proceeds to step 546.
在步驟546中,微碼127判定在步驟544中,計算之休眠時間是否大於時間間距。若休眠時間大於時間間距,流程進行至步驟548,否則流程進行至步驟564。In step 546, the microcode 127 determines in step 544 whether the calculated sleep time is greater than the time interval. If the sleep time is greater than the time interval, the flow proceeds to step 548, otherwise the flow proceeds to step 564.
在步驟548中,微碼127計算於核心104處於休眠狀態時,核心104所消耗的漏損能量。計算漏損能量用以作為溫度感測器128與操作電壓提供之核心104溫度的函數。接著流程進行至步驟552。In step 548, the microcode 127 calculates the leakage energy consumed by the core 104 when the core 104 is in a sleep state. The leakage energy is calculated as a function of the temperature of the core 104 provided by the temperature sensor 128 and the operating voltage. The flow then proceeds to step 552.
在步驟552中,微碼127設定當核心104在休眠狀態時消耗之動態能量為0,因為核心104時脈沒有操作。接著流程進行至步驟554。In step 552, the microcode 127 sets the dynamic energy consumed when the core 104 is in the sleep state to zero because the core 104 clock is not operating. The flow then proceeds to step 554.
在步驟554中,微碼127將在步驟548與552中計算之核心間距漏損能量與動態能量,寫入功率資訊132之區域,該功率資訊132之區域與功率資訊共享區域138之核心104有關。接著流程進行至步驟556。In step 554, the microcode 127 writes the core spacing leakage energy and dynamic energy calculated in steps 548 and 552 to the area of the power information 132. The area of the power information 132 is related to the core 104 of the power information sharing area 138. . The flow then proceeds to step 556.
在步驟556中,微碼127計算於分格之時間中,當核心104休眠時所消耗的動態能量,將核心間距動態能量除以分格數,以獲得動態能量。接著流程進行至步驟558。In step 556, the microcode 127 is calculated in the time of the division. When the core 104 sleeps, the dynamic energy consumed is divided by the core spacing dynamic energy by the number of divisions to obtain dynamic energy. The flow then proceeds to step 558.
在步驟558中,微碼127計算於分格之時間中,當核心104休眠時所消耗的漏損能量,將核心間距漏損能量除以分格數,以獲得漏損能量。接著流程進行至步驟562。In step 558, the microcode 127 calculates the leakage energy consumed when the core 104 is dormant in the time of the division, and divides the core spacing leakage energy by the number of divisions to obtain the leakage energy. The flow then proceeds to step 562.
在步驟562中,微碼127將步驟556與558中計算之分格動態能量與分格漏損能量,填至佇列中之所有分格項目中。接著流程進行至步驟562。In step 562, the microcode 127 fills the grid dynamic energy and the grid leakage energy calculated in steps 556 and 558 into all of the bin items in the queue. The flow then proceeds to step 562.
在步驟564中,微碼127判定休眠時間是否小於目前分格剩餘的時間。若休眠時間小於前分格剩餘的時間,流程進行至步驟566,若否,流程進行至步驟572。In step 564, the microcode 127 determines if the sleep time is less than the time remaining in the current bin. If the sleep time is less than the remaining time of the previous division, the flow proceeds to step 566, and if not, the flow proceeds to step 572.
在步驟566中,微碼127設定動態功率因子為0使得在步驟712中計算之動態能量為0。接著流程進行至步驟568。In step 566, the microcode 127 sets the dynamic power factor to zero such that the dynamic energy calculated in step 712 is zero. The flow then proceeds to step 568.
在步驟568中,呼叫一副程式,在此指副程式V,其中係利用一時間參數呼叫副程式V,該時間參數為時間分格最後更新時間與休眠時間的加總。副程式V於第7圖中詳細描述。該流程結束於副程式V。In step 568, a subroutine is called, here referred to as subprogram V, wherein the subprogram V is called with a time parameter which is the sum of the last update time and the sleep time of the time division. The subroutine V is described in detail in Fig. 7. The process ends with the subprogram V.
在步驟572中,微碼127判定休眠時間是否大於分格之時間。若休眠時間大於時間分格之時間,流程進行至步驟574,否則,流程進行至步驟584。In step 572, the microcode 127 determines if the sleep time is greater than the time of the bin. If the sleep time is greater than the time division time, the flow proceeds to step 574, otherwise, the flow proceeds to step 584.
在步驟574中,微碼127設定動態功率因子為0,使得於步驟712中計算之動態能量為0。接著流程進行至步驟576。In step 574, the microcode 127 sets the dynamic power factor to zero such that the dynamic energy calculated in step 712 is zero. The flow then proceeds to step 576.
在步驟576中,利用一相等於時間分格之時間的時間參數呼叫副程式V。接著從副程式V獲得回報並且流程進行至步驟578。In step 576, the subroutine V is called with a time parameter equal to the time of the time division. The reward is then obtained from the subroutine V and the flow proceeds to step 578.
在步驟578中,呼叫副程式Y。獲得回報並且進行至步驟582。In step 578, the secondary program Y is called. Get the reward and proceed to step 582.
在步驟582中,藉由時間分格之時間減少休眠時間減去時間分格之時間。有益的是,從步驟572至582中之迴圈與步驟584至588中之流程掌握了核心104處於休眠狀態的可能性,其為核心時脈不為多重時間分格之時間運作並且其必計算為在更新時間分格結構之過程。接著流程進行至步驟572。In step 582, the sleep time is subtracted from the time division by the time division time. Advantageously, the loop from steps 572 to 582 and the steps 584 to 588 grasp the possibility that the core 104 is in a dormant state, which is a time when the core clock does not operate for multiple time divisions and it must be calculated The process of separating the structures in the update time. The flow then proceeds to step 572.
在步驟584中,微碼127設定動態功率因子為0,使得於步驟712計算之動態能量為0。接著流程進行至步驟586。In step 584, the microcode 127 sets the dynamic power factor to zero such that the dynamic energy calculated in step 712 is zero. The flow then proceeds to step 586.
在步驟586中,利用一相等於時間分格之時間的時間參數呼叫副程式V。接著從副程式V獲得回報,流程進行至步驟588。In step 586, the subroutine V is called with a time parameter equal to the time of the time division. The reward is then obtained from the subroutine V and the flow proceeds to step 588.
在步驟588中,呼叫副程式Y,流程結束於步驟588。In step 588, the sub-program Y is called and the flow ends at step 588.
第6圖係根據本發明之第1圖電腦系統100執行副程式Z之操作流程。流程開始於步驟602。Fig. 6 is a flowchart showing the operation of the subprogram Z by the computer system 100 according to Fig. 1 of the present invention. The flow begins in step 602.
在步驟602中,微碼127根據核心104是否處於運作狀態或者一特定之休眠狀態設定動態功率因子。運作狀態之動態功率因子為1,以及由於一般核心104於每一接續地低休眠狀態中消耗之功率較低,每一接續地低休眠狀態具有一較小之動態功率因子。舉例而言,C1狀態之動態功率因子係運作狀態之動態功率因子之分數(fraction),既使如此在步驟712中計算之乘積亦可與運作狀態相同,由於處於C1狀態中之動態功率常數、電壓以及頻率可與運作狀態相同,而核心104可消耗較低之功率由於其可由執行指令中暫停。另外,在一實施例中,步驟708可加入一漏損功率因子。舉例而言,在C4狀態中,C4狀態之漏損功率因子小於C3狀態之漏損功率因子,由於核心104因鎖相迴路126被去能而消耗較少之功率,以及在C5狀態中,C5狀態之漏損功率因子小於C4狀態之漏損功率因子,由於核心104因快取記憶體之電壓被去能而消耗較少之功率。流程進行至步驟604。In step 602, the microcode 127 sets the dynamic power factor based on whether the core 104 is in an operational state or a particular sleep state. The dynamic power factor of the operational state is 1, and since the power consumed by the general core 104 in each successive low sleep state is low, each successive low sleep state has a smaller dynamic power factor. For example, the dynamic power factor of the C1 state is the fraction of the dynamic power factor of the operating state, such that the product thus calculated in step 712 can also be the same as the operating state, due to the dynamic power constant in the C1 state, The voltage and frequency can be the same as the operational state, while the core 104 can consume lower power because it can be suspended by the execution of the instruction. Additionally, in an embodiment, step 708 can incorporate a leakage power factor. For example, in the C4 state, the leakage power factor of the C4 state is less than the leakage power factor of the C3 state, since the core 104 consumes less power due to the deactivation of the phase locked loop 126, and in the C5 state, C5 The leakage power factor of the state is less than the leakage power factor of the C4 state, since the core 104 consumes less power due to the de-energization of the voltage of the cache memory. The flow proceeds to step 604.
在步驟604中,微碼127讀取匯流排時脈計時器122之值以判定核心104自電流分格時間起開始操作了多久時間。流程進行至步驟606。In step 604, the microcode 127 reads the value of the bus timing timer 122 to determine how long the core 104 has been operating since the current division time. The flow proceeds to step 606.
在步驟606中,呼叫副程式V與在步驟604中讀取之匯流排時脈計時器122之值。流程結束於步驟606。In step 606, the value of the secondary program V and the bus timing timer 122 read in step 604 are called. The process ends at step 606.
第7圖係根據本發明之第1圖電腦系統100執行副程式V之操作流程圖。流程開始於步驟702。Fig. 7 is a flow chart showing the operation of the subroutine V by the computer system 100 according to Fig. 1 of the present invention. The process begins in step 702.
在步驟702中,微碼127自目前分格(current bin)最後被更新(最後更新TLUP)開始,根據計時器輸入至副程式V之值計算時間,其可為在第6圖之步驟604中讀取自匯流排時脈計時器122之值或者通過第5圖之步驟568、576或586中之值。流程進行至步驟706。In step 702, the microcode 127 begins with the current bin (the last update TLUP) and calculates the time based on the value of the timer input to the subroutine V, which may be in step 604 of FIG. The value from the bus timing timer 122 is read or passed through the values in steps 568, 576 or 586 of FIG. The flow proceeds to step 706.
在步驟706中,微碼127讀取溫度感測器128以獲得目前溫度。流程進行至步驟708。In step 706, the microcode 127 reads the temperature sensor 128 to obtain the current temperature. Flow proceeds to step 708.
在步驟708中,微碼127根據電壓以及目前溫度計算於最後更新(TLUP)中消耗之漏損能量。流程進行至步驟712。In step 708, the microcode 127 calculates the leakage energy consumed in the last update (TLUP) based on the voltage and the current temperature. The flow proceeds to step 712.
在步驟712中,微碼127於最後更新(TLUP)中計算由核心104消耗之動態能量做為最後更新(TLUP)、其頻率、動態功率常數、動態功率因子以及其電壓平方之乘積。在一實施例中,微碼127計算新與舊電壓之平均以及新與舊頻率之平均以進行上述計算。在多數情況下,例如當一匯流排時脈計時器122發生中斷,舊電壓以及頻率將與新電壓以及頻率相同,致使新與舊電壓之平均以及新與舊頻率之平均與目前之數值相同。另外,在頻率及/或電壓改變的情況下,新與舊電壓之平均以及新與舊之平均將會與目前之數值不同。流程進行至步驟716。In step 712, the microcode 127 calculates the product of the dynamic energy consumed by the core 104 as the last update (TLUP), its frequency, the dynamic power constant, the dynamic power factor, and its voltage squared in the last update (TLUP). In one embodiment, the microcode 127 calculates an average of the new and old voltages and an average of the new and old frequencies to perform the above calculations. In most cases, such as when a bus clock timer 122 is interrupted, the old voltage and frequency will be the same as the new voltage and frequency, such that the average of the new and old voltages and the average of the new and old frequencies are the same as the current values. In addition, in the case of frequency and / or voltage changes, the average of the new and old voltages and the new and old average will be different from the current values. The flow proceeds to step 716.
在步驟716中,微碼127藉由在步驟708計算之漏損能量增加目前分格之漏損能量。另外,微碼127藉由在步驟712計算之動態能量增加目前分格動態能量。自功率資訊共享區域138之值係在最舊(初)之分格中,以及分格數相對較大(在一實施例中分格數為128),數值中不準確之電壓可歸咎於時間間距(T)之量子化(quantization)一般相對較小(近乎1%)。流程進行至步驟718。In step 716, the microcode 127 increases the leakage energy of the current bin by the leakage energy calculated at step 708. Additionally, the microcode 127 increases the current divisional dynamic energy by the dynamic energy calculated at step 712. The value of the self-power information sharing area 138 is in the oldest (initial) division, and the number of divisions is relatively large (in one embodiment, the number of divisions is 128), and the inaccurate voltage in the value can be attributed to time. The quantization of the spacing (T) is generally relatively small (nearly 1%). Flow proceeds to step 718.
在步驟718中,微碼127藉由在步驟708中計算之漏損能量增加目前時間間距之漏損能量給此核心104。另外,並且微碼127藉由在步驟712中計算之動態能量增加目前時間間距之動態能量給此核心104。流程進行至步驟722。In step 718, the microcode 127 adds the leakage energy of the current time interval to the core 104 by the leakage energy calculated in step 708. Additionally, and the microcode 127 increases the dynamic energy of the current time interval to the core 104 by the dynamic energy calculated in step 712. The flow proceeds to step 722.
在步驟722中,微碼127寫入漏損能量以及動態能量至功率資訊共享區域138給在步驟718中計算之此核心104。流程結束於步驟722。In step 722, the microcode 127 writes the leakage energy and the dynamic energy to the power information sharing region 138 to the core 104 calculated in step 718. The process ends at step 722.
第8圖係根據本發明之第1圖電腦系統100執行副程式X之操作流程圖。流程開始於步驟802。Figure 8 is a flow chart showing the operation of the sub-program X in accordance with the computer system 100 of Figure 1 of the present invention. The flow begins in step 802.
在步驟802中,微碼127判定要求之頻率是否與功率評價值特性觸發頻率相同。若要求之頻率與功率評價值特性觸發頻率相同,流程進行至步驟804;否則,流程進行至步驟803。In step 802, the microcode 127 determines whether the requested frequency is the same as the power evaluation value characteristic trigger frequency. If the required frequency is the same as the power evaluation value characteristic trigger frequency, the flow proceeds to step 804; otherwise, the flow proceeds to step 803.
在步驟803中,微碼127控制電壓調節模組108以及核心104鎖相迴路126,致使核心104操作於要求之P-狀態。在一實施例中,一比較器比較兩核心104之VID訊號158輸出,並且當兩核心104之VID訊號158輸出不同時,選擇較大之一者。流程結束於步驟803。In step 803, the microcode 127 controls the voltage regulation module 108 and the core 104 phase locked loop 126, causing the core 104 to operate in the desired P-state. In one embodiment, a comparator compares the VID signal 158 output of the two cores 104, and when the VID signals 158 output of the two cores 104 are different, one of the larger ones is selected. The process ends at step 803.
在步驟804中,微碼127自溫度感測器128獲得核心104之溫度以及判定核心104之溫度是否大於一既定溫度臨限值。在一實施例中,溫度臨限值由功率評價值129。當核心104之溫度高於既定溫度臨限值時,流程進行至步驟803;否則,流程進行至步驟806。In step 804, the microcode 127 obtains the temperature of the core 104 from the temperature sensor 128 and determines if the temperature of the core 104 is greater than a predetermined temperature threshold. In an embodiment, the temperature threshold is determined by the power rating 129. When the temperature of the core 104 is higher than the predetermined temperature threshold, the flow proceeds to step 803; otherwise, the flow proceeds to step 806.
在步驟806,呼叫一副程式W。副程式W之詳細說明可參考關於第9圖之敘述。流程從副程式W獲得回報,其回報在最新時間間距中藉由組件102所計算之消耗能量,或者組件時間間距能量(PIE)之數值(即副程式W之回報係為組件時間間距能量)。流程進行至步驟808。At step 806, a program W is called. For a detailed description of the subprogram W, refer to the description of Fig. 9. The process receives a return from the subroutine W, which returns the energy consumed by the component 102 in the latest time interval, or the value of the component time interval energy (PIE) (ie, the return of the subprogram W is the component time interval energy). The flow proceeds to step 808.
在步驟808中,微碼127判定在步驟806中接收到之組件時間間距能量是否大於一既定能量臨限值。既定能量臨限值略小於最大消耗功率(P)以及時間間距(T)之乘積。在另一實施例中,另外藉由核心104外部消耗許多功率之微處理器100電路可減少既定能量臨限值,例如一共用之快取記憶體;或者,副程式W可包括組件時間間距能量計算核心104外部之微處理器100電路消耗之能量。在一實施例中,既定能量臨限值係由功率評價值暫存器129所提供的。若組件時間間距能量大於既定能量臨限值,流程進行至步驟803;否則,流程進行至步驟812。In step 808, the microcode 127 determines if the component time interval energy received in step 806 is greater than a predetermined energy threshold. The established energy threshold is slightly less than the product of the maximum power consumption (P) and the time interval (T). In another embodiment, the microprocessor 100 circuit that consumes a lot of power outside the core 104 can reduce the predetermined energy threshold, such as a shared cache memory; or the subprogram W can include component time interval energy. The energy consumed by the circuitry of the microprocessor 100 external to the core 104 is calculated. In an embodiment, the predetermined energy threshold is provided by the power evaluation value register 129. If the component time interval energy is greater than the predetermined energy threshold, the flow proceeds to step 803; otherwise, the flow proceeds to step 812.
在步驟812中,微碼127有利地控制電壓調節模組108以及核心104鎖相迴路126以致使核心104操作於高於Xp之操作點上。流程結束於812。In step 812, the microcode 127 advantageously controls the voltage regulation module 108 and the core 104 phase locked loop 126 to cause the core 104 to operate at an operating point above Xp. The process ends at 812.
第9圖係根據本發明之第1圖電腦系統100執行副程式W之操作流程圖。流程開始於步驟902。Fig. 9 is a flow chart showing the operation of the subroutine W in the computer system 100 according to Fig. 1 of the present invention. The flow begins in step 902.
在步驟902中,微碼127從功率資訊共享區域138中,讀取核心104之其他者的時間間距動態能量以及時間間距漏損能量。值得注意的是在多於兩個核心104之實施例中,微碼127可讀取時間間距動態能量以及時間間距漏損能量之數值給每一核心之其他者,並且於以下步驟904以及908之計算流程中使用時間間距動態能量以及時間間距漏損能量之數值,以計算組件102之時間間距能量。流程進行至步驟904。In step 902, the microcode 127 reads the time interval dynamic energy and the time interval leakage energy of the other of the cores 104 from the power information sharing area 138. It should be noted that in embodiments with more than two cores 104, the microcode 127 can read the value of the time interval dynamic energy and the time interval leakage energy to the other of each core, and in steps 904 and 908 below. The time interval dynamic energy and the time interval leakage energy are used in the calculation flow to calculate the time interval energy of the component 102. The flow proceeds to step 904.
在步驟904,微碼127使用在步驟902中獲得之數值,以將核心104之其他者之漏損能量以及核心104之其他者之動態能量進行相加,以作為時間間距能量。流程進行至步驟906。At step 904, the microcode 127 uses the value obtained in step 902 to add the leakage energy of the other of the core 104 and the dynamic energy of the other of the cores 104 as the time interval energy. The flow proceeds to step 906.
在步驟906中,微碼127將此核心104之漏損能量以及此核心104之動態能量進行相加,以作為此核心104之時間間距能量。流程進行至步驟908。In step 906, the microcode 127 adds the leakage energy of the core 104 and the dynamic energy of the core 104 as the time interval energy of the core 104. The flow proceeds to step 908.
在步驟908,微碼127將核心104之其他者在步驟904中計算之時間間距能量以及此核心104在在步驟906中計算之時間間距能量進行相加,以作為組件102之時間間距能量。流程進行至步驟912。At step 908, the microcode 127 adds the time interval energy calculated by the other of the core 104 in step 904 and the time interval energy calculated by the core 104 in step 906 as the time interval energy of the component 102. The flow proceeds to step 912.
在步驟912中,微碼127回報組件102在步驟908中計算之時間間距能量。流程結束於步驟912。In step 912, the microcode 127 reports the time interval energy calculated by the component 102 in step 908. The process ends at step 912.
第10圖係根據本發明之第1圖電腦系統100執行副程式Y之操作流程圖。流程開始於步驟1002。Fig. 10 is a flow chart showing the operation of the subprogram Y by the computer system 100 according to Fig. 1 of the present invention. The process begins in step 1002.
在步驟1002中,微碼127重新啟動匯流排時脈計時器122。也就是說,微碼127對匯流排時脈計時器122進行編程,以運作其他分格之時間以及產生一中斷至核心104。流程進行至步驟1004。In step 1002, the microcode 127 restarts the bus timing timer 122. That is, the microcode 127 programs the bus timing timer 122 to operate other binning times and generate an interrupt to the core 104. The flow proceeds to step 1004.
在步驟1004中,微碼127自溫度感測器128獲得核心104之溫度,並且判定核心104之溫度是否高於既定溫度臨限值。若核心104之溫度高於既定溫度臨限值,流程進行至步驟1024;否則,流程進行至步驟1006。In step 1004, the microcode 127 obtains the temperature of the core 104 from the temperature sensor 128 and determines if the temperature of the core 104 is above a predetermined temperature threshold. If the temperature of the core 104 is above a predetermined temperature threshold, the flow proceeds to step 1024; otherwise, the flow proceeds to step 1006.
在步驟1006中,呼叫副程式。流程自副程式W回報已計算之組件102於最近時間間距中消耗之能量(組件時間間距能量)。流程進行至步驟1008。In step 1006, the subroutine is called. The flow from the subroutine W reports the energy (component time interval energy) consumed by the calculated component 102 in the most recent time interval. The flow proceeds to step 1008.
在步驟1008中,微碼127判定在步驟1006中接收之組件時間間距能量是否大於既定能量臨限值。若組件時間間距能量大於既定能量臨限值,流程進行至步驟1024;否則,流程進行至步驟1014。In step 1008, the microcode 127 determines if the component time interval energy received in step 1006 is greater than a predetermined energy threshold. If the component time interval energy is greater than the predetermined energy threshold, the flow proceeds to step 1024; otherwise, the flow proceeds to step 1014.
在步驟1014中,微碼127有利地控制電壓調節模組108以及核心104之鎖相迴路126以致使核心104操作於操作點Xp之上。在一實施例中,一比較器比較兩個核心104之VID訊號158輸出,並且當兩個核心104之VID訊號158輸出不同時,選擇較大之一者。流程進行至步驟1016。In step 1014, the microcode 127 advantageously controls the voltage regulation module 108 and the phase locked loop 126 of the core 104 to cause the core 104 to operate above the operating point Xp. In one embodiment, a comparator compares the VID signal 158 outputs of the two cores 104, and when the VID signals 158 outputs of the two cores 104 are different, one of the larger ones is selected. The flow proceeds to step 1016.
在步驟1016中,微碼127藉由在佇列之最舊分格項目的特定漏損能量,減少時間間距漏損能量給此核心104。因此,給此核心104之目前時間間距漏損能量,相較於加總所有分格漏損能量,可藉由第7圖之步驟718以及第10圖之步驟1016之操作更有效率的運算。相似地,微碼127藉由在佇列之最舊分格項目的特定動態能量,減少目前時間間距動態能量給核心104。流程進行至步驟1018。In step 1016, the microcode 127 reduces the time interval leakage energy to the core 104 by the specific leakage energy of the oldest binning item in the queue. Thus, the current time interval leakage energy for the core 104 can be more efficiently computed by the operation of step 718 of FIG. 7 and step 1016 of FIG. 10 as compared to summing all of the divisional leakage energy. Similarly, the microcode 127 reduces the current time interval dynamic energy to the core 104 by the specific dynamic energy of the oldest binning item in the queue. The flow proceeds to step 1018.
在步驟1018,微碼127將在步驟1016中計算之漏損能量以及動態能量寫入功率資訊共享區域138給核心104。流程進行至步驟1022。At step 1018, the microcode 127 writes the leakage energy and dynamic energy calculated in step 1016 to the core 104 to the power information sharing region 138. The flow proceeds to step 1022.
在步驟1022中,微碼127清除在佇列中最舊之分格,使得最舊之分格變成最新的分格或者目前分格。流程結束於步驟1022。In step 1022, the microcode 127 clears the oldest cell in the queue so that the oldest cell becomes the most recent cell or the current cell. The process ends at step 1022.
在步驟1024中,微碼127控制電壓調節模組108以及核心104之鎖相迴路126以致使核心104操作在先前之操作點,例如Xp或者更低(below)。流程進行至步驟1016。In step 1024, the microcode 127 controls the voltage regulation module 108 and the phase locked loop 126 of the core 104 to cause the core 104 to operate at a previous operating point, such as Xp or below. The flow proceeds to step 1016.
由上述說明可知,有利地,只要累積足夠的功率評價值(例如,在一時間週期中之所有核心104判定組件時間間距能量皆沒有超過既定能量臨限值),所有核心皆可操作在Xp以上之頻率。本發明較優於僅依據一粗糙指標以操作一個或更多之核心於一升高頻率的多核心處理器,如這種做法不會致能所有核心操作在一升高之頻率,因此無論如何多個核心中之一者會處於休眠狀態。As can be seen from the above description, advantageously, all cores can operate above Xp as long as sufficient power evaluation values are accumulated (for example, all cores 104 in a time period determine that the component time interval energy does not exceed a predetermined energy threshold). The frequency. The present invention is superior to multi-core processors that operate on one or more cores at a raised frequency based solely on a coarse index, as this approach does not enable all core operations at an elevated frequency, so anyway One of the multiple cores will be dormant.
第11圖係本發明另一實施例之包括一雙核心微處理器組件102的一電腦系統100之方塊圖,其包括一功率評價值特性。第11圖所示之電腦系統100相似於第1圖所示之電腦系統100,其包括組件102經由匯流排154耦皆至記憶體106與電壓調節模組108,以及組件102包括兩個核心104A/104B。另外,第11圖之電腦系統之組件102裝置的能量消耗已判定(由於功率評價值特性)為不同於第1圖之電腦系統。第1圖所示之電腦系統11中的核心104根據各種輸入(例如電壓、頻率以及溫度)計算其功率消耗(能量消耗速率),以計算時間間距內之能量消耗,第11圖所示之電腦系統100包括組件102外部之電路,其提供瞬間功率消耗指標VINSTPWR訊號1154,核心104使用瞬間功率消耗指標VINSTPWR訊號1154計算時間間距內之能量消耗。另外,每一核心104包括一能量監視器1144,能量監視器1144取樣VINSTPWR訊號1154訊號以及在每一次能量監視器1144讀取訊號時累積當時由VCORE訊號156訊號消耗之能量值。已累積之能量可由微碼127讀取,以作為PKGENERGY訊號1162之數值。11 is a block diagram of a computer system 100 including a dual core microprocessor assembly 102 in accordance with another embodiment of the present invention, including a power evaluation value characteristic. The computer system 100 shown in FIG. 11 is similar to the computer system 100 shown in FIG. 1, and includes a component 102 coupled to the memory 106 and the voltage regulation module 108 via a bus bar 154, and the component 102 includes two cores 104A. /104B. In addition, the energy consumption of the component 102 device of the computer system of Fig. 11 has been determined (due to the power evaluation value characteristic) as a computer system different from that of Fig. 1. The core 104 in the computer system 11 shown in Fig. 1 calculates its power consumption (energy consumption rate) based on various inputs (such as voltage, frequency, and temperature) to calculate the energy consumption in the time interval, the computer shown in Fig. 11. The system 100 includes circuitry external to the component 102 that provides an instantaneous power consumption indicator VINSTPWR signal 1154, and the core 104 uses the instantaneous power consumption indicator VINSTPWR signal 1154 to calculate the energy consumption over the time interval. In addition, each core 104 includes an energy monitor 1144 that samples the VINSTPWR signal 1154 signal and accumulates the energy value consumed by the VCORE signal 156 signal each time the energy monitor 1144 reads the signal. The accumulated energy can be read by the microcode 127 as the value of the PKGENERGY signal 1162.
在組件102外部之電路包括一電阻(R)串聯於VRM 108至VCORE訊號156之輸出上以及一放大器1102(DIFF. AMP.)跨接於在電阻(R)之兩端點,以產生一VINSTCUR訊號1152。VINSTCUR訊號1152係一類比電壓訊號,其數值與經由VCORE訊號156提供至組件102之瞬間電流成比例。一類比乘法器1104(MUL)亦接收VCORE訊號156以及相其與VINSTCUR訊號1152相乘,以產生VINSTPWR訊號1154。VINSTPWR訊號1154係一類比電壓,其數值與經由VCORE訊號156提供至組件102之瞬間功率成比例。能量監視器1144於每一核心104中,轉換VINSTPWR訊號1154為一數位訊號PKGENERGY訊號1162。能量監視器1144包括一狀態暫存器,微碼127可由狀態暫存器中讀取PKGENERGY訊號1162之值。PKGENERGY訊號1162指出自能量監視器1144最後一次讀取以來提供給VCORE訊號156之能量值。因此,每次微碼127自能量監視器1144讀取PKGENERGY訊號1162之值,能量監視器1144重置能量值為0,並且開始累積一新的由組件102所消耗之能量值直到下次微碼127讀取PKGENERGY訊號1162之值為止。能量監視器1144藉由除以電阻R之值(以及當並聯之放大器對VINSTCUR訊號1152放大時,與一分數常數相乘),轉換VINSTPWR訊號1154之類比電壓值為提供至組件102之瞬間功率值。The circuitry external to component 102 includes a resistor (R) coupled in series with the output of VRM 108 to VCORE signal 156 and an amplifier 1102 (DIFF. AMP.) across the two ends of resistor (R) to produce a VINTTCUR Signal 1152. The VINSTCUR signal 1152 is an analog voltage signal whose value is proportional to the instantaneous current supplied to the component 102 via the VCORE signal 156. A class multiplier 1104 (MUL) also receives the VCORE signal 156 and multiplies it by the VINSTCUR signal 1152 to generate the VINSTPWR signal 1154. The VINSTPWR signal 1154 is an analog voltage whose value is proportional to the instantaneous power supplied to the component 102 via the VCORE signal 156. The energy monitor 1144 converts the VINSTPWR signal 1154 into a digital signal PKGENERGY signal 1162 in each core 104. The energy monitor 1144 includes a status register, and the microcode 127 can read the value of the PKGENERGY signal 1162 from the status register. PKGENERGY signal 1162 indicates the energy value provided to VCORE signal 156 since the last read of energy monitor 1144. Thus, each time the microcode 127 reads the value of the PKGENERGY signal 1162 from the energy monitor 1144, the energy monitor 1144 resets the energy value to 0 and begins to accumulate a new energy value consumed by the component 102 until the next microcode. 127 reads the value of PKGENERGY signal 1162. The energy monitor 1144 converts the analog voltage value of the VINSTPWR signal 1154 to the instantaneous power value supplied to the component 102 by dividing by the value of the resistor R (and multiplying by a fractional constant when the parallel amplifier is amplified by the VINTTCUR signal 1152). .
第12圖係根據本發明之第11圖電腦系統100所實施之操作流程圖。第12圖之流程相似於第4圖。另外,在第12圖中,流程從步驟412進行至新的步驟1216。Figure 12 is a flow chart showing the operation of the computer system 100 in accordance with the eleventh embodiment of the present invention. The flow of Figure 12 is similar to Figure 4. Additionally, in FIG. 12, the flow proceeds from step 412 to a new step 1216.
在步驟1216中,每一核心104之微碼127將各別之能量監視器1144之值寫入控制暫存器,以設定並且啟動能量監視器1144累積組件102之能量消耗。流程結束於步驟1216。In step 1216, the microcode 127 of each core 104 writes the value of the respective energy monitor 1144 to the control register to set and initiate the energy consumption of the energy monitor 1144 accumulation component 102. The process ends at step 1216.
第13圖係根據本發明之第11圖電腦系統100所實施之操作流程圖。第13圖之流程相似於第5B圖。另外,以下將詳述第13圖以及第5B圖之流程的差異。Figure 13 is a flow chart showing the operation of the computer system 100 in accordance with the eleventh embodiment of the present invention. The flow of Figure 13 is similar to Figure 5B. In addition, the difference of the flow of FIG. 13 and FIG. 5B will be described in detail below.
第13圖並無繪示步驟566、574以及584,因此流程直接由步驟564至步驟568之分支”是”開始進行;流程直接由步驟572至步驟576之分支”是”開始進行;以及流程直接由步驟576至步驟586之分支”是”開始進行。另外,第13圖將原本第5圖之步驟548、552、556以及562取代為步驟1348、1352、1356以及1362。最後,步驟554以及558並無繪示於第13圖但未被取代;因此,流程自步驟1352直接進行至步驟1356以及自步驟1356直接進行至步驟1362。Figure 13 does not show steps 566, 574 and 584, so the flow begins directly from the branch "YES" of steps 564 to 568; the flow begins directly from the branch "YES" of steps 572 to 576; The branch "Yes" from step 576 to step 586 is started. In addition, FIG. 13 replaces steps 548, 552, 556, and 562 of the original FIG. 5 with steps 1348, 1352, 1356, and 1362. Finally, steps 554 and 558 are not depicted in FIG. 13 but are not substituted; therefore, the flow proceeds directly from step 1352 to step 1356 and from step 1356 directly to step 1362.
若在步驟546中,微碼127判定在步驟544中計算之休眠時間大於時間間距之時間時,流程進行至新的步驟1348。If, in step 546, the microcode 127 determines that the sleep time calculated in step 544 is greater than the time interval, the flow proceeds to a new step 1348.
在步驟1348中,微碼127自能量監視器1144讀取PKGENERGY訊號1162之值。流程進行至新的步驟1352。In step 1348, the microcode 127 reads the value of the PKGENERGY signal 1162 from the energy monitor 1144. The flow proceeds to a new step 1352.
在步驟1352中,微碼127於時間間距中,當核心104處於休眠狀態時,根據在步驟1348中獲得之PKGENERGY訊號1162以及在步驟542獲得之休眠時間之值,計算由組件102所消耗之組件時間間距能量(組件時間間距能量)。在一實施例中,時間間距以及休眠時間之值係以匯流排時脈146之一刻點為單位,計算組件時間間距能量值係作為PKGENERGY值之乘績,一分數之分子係為時間間距以及分母為休眠時間。流程自步驟1352進行至步驟1356。In step 1352, the microcode 127 is in the time interval, and when the core 104 is in the sleep state, the component consumed by the component 102 is calculated based on the value of the PKGENERGY signal 1162 obtained in step 1348 and the sleep time obtained in step 542. Time interval energy (component time interval energy). In one embodiment, the values of the time interval and the sleep time are in units of one of the bus time clocks 146, and the component time interval energy value is calculated as the PKGENERGY value, and the fractional molecular system is the time interval and the denominator. For sleep time. Flow proceeds from step 1352 to step 1356.
在步驟1356中,當核心104一分格之時間處於休眠狀態,微碼127將在步驟1352中所判定之組件時間間距能量除以分格數之商數(quotient),作為由分格組件102所消耗的能量。流程由步驟1356進行至1356至步驟1362。In step 1356, when the time of the core 104 is in a dormant state, the microcode 127 divides the component time interval energy determined in step 1352 by the quotient of the number of divisions as the partition component 102. The energy consumed. The flow proceeds from step 1356 to 1356 to step 1362.
在步驟1362中,微碼127將在步驟1356中計算之分格組件102的能量填入在佇列中之所有分格項目。流程結束於步驟1362。In step 1362, the microcode 127 fills in the energy of the bin component 102 calculated in step 1356 into all of the binned items in the queue. The process ends at step 1362.
第14圖係根據本發明之第11圖電腦系統100執行副程式Z之操作流程圖。第14圖與第6圖相同,除了第14不包括步驟602,故流程開始於在步驟604。因此,第14圖所示之另一實施例不使用第1圖之實施例的動態功率因子。由於實際瞬間功率之值係經由VINSTPWR訊號1154提供至核心104,故本實施例不需要動態功率因子。Figure 14 is a flow chart showing the operation of the subprogram Z by the computer system 100 according to Fig. 11 of the present invention. Figure 14 is the same as Figure 6, except that the 14th does not include step 602, so the flow begins at step 604. Therefore, another embodiment shown in Fig. 14 does not use the dynamic power factor of the embodiment of Fig. 1. Since the actual instantaneous power value is provided to the core 104 via the VINSTPWR signal 1154, this embodiment does not require a dynamic power factor.
第15圖係根據本發明之第11圖電腦系統100執行副程式V之操作流程圖。流程開始於步驟702,其相似於第7圖所示之步驟702。流程進行至步驟1512。Fig. 15 is a flow chart showing the operation of the subroutine V by the computer system 100 according to Fig. 11 of the present invention. Flow begins in step 702, which is similar to step 702 shown in FIG. The flow proceeds to step 1512.
在步驟1512中,微碼127自能量監視器1144讀取PKGENERGY訊號1162之值,以判定在最後更新中由組件102所消耗之能量值。流程進行至步驟1516。In step 1512, the microcode 127 reads the value of the PKGENERGY signal 1162 from the energy monitor 1144 to determine the energy value consumed by the component 102 in the last update. The flow proceeds to step 1516.
在步驟1516,微碼127藉由在步驟1512中獲得之PKGENERGY訊號1162之值,減少目前分格能量。有利地,由於分格數相對較大(在一實施例中分格數為128),數值中不準確之電壓可歸咎於時間間距(T)之量子化(quantization)一般相對較小(近乎1%)。流程進行至步驟1518。At step 1516, the microcode 127 reduces the current binning energy by the value of the PKGENERGY signal 1162 obtained in step 1512. Advantageously, since the number of divisions is relatively large (in one embodiment, the number of divisions is 128), the inaccurate voltage in the value can be attributed to the fact that the quantization of the time interval (T) is generally relatively small (nearly 1). %). The flow proceeds to step 1518.
在步驟1518中,微碼127藉由在步驟1512中獲得之PKGENERGY訊號1162之值,減少組件時間間距能量。流程結束於步驟1518。In step 1518, the microcode 127 reduces the component time interval energy by the value of the PKGENERGY signal 1162 obtained in step 1512. The process ends at step 1518.
第16圖係根據本發明之第11圖電腦系統100執行副程式X之操作流程圖。第16圖與第8圖相同,除了第16圖不包括步驟806以外;故流程直接由步驟804至步驟808之分支”否”開始進行故流程。因此,第16圖所示之另一實施例不要求如第1圖之實施例之組件時間間距能量之計算結果。這是因為組件時間間距能量係由讀取自能量監視器1144之每一時間之PKGENERGY訊號1162所維持的。再者,值得注意的是,如第11圖所示之另一實施例不需要副程式W,因為組件時間間距能量係由讀取自能量監視器1144之每一時間之PKGENERGY訊號1162所維持的。Figure 16 is a flow chart showing the operation of the subroutine X by the computer system 100 in accordance with the eleventh embodiment of the present invention. Fig. 16 is the same as Fig. 8, except that Fig. 16 does not include step 806; therefore, the flow starts directly from the branch "No" of steps 804 to 808. Therefore, another embodiment shown in Fig. 16 does not require the calculation of the component time interval energy of the embodiment as in Fig. 1. This is because the component time interval energy is maintained by the PKGENERGY signal 1162 at each time read from the energy monitor 1144. Furthermore, it is worth noting that another embodiment as shown in FIG. 11 does not require a subroutine W because the component time interval energy is maintained by the PKGENERGY signal 1162 read from each time of the energy monitor 1144. .
第17圖係根據本發明之第1圖電腦系統100執行副程式Y之操作流程圖。第17圖除了以下不同之外,相似於第10圖。Figure 17 is a flow chart showing the operation of the subprogram Y in accordance with the computer system 100 of Fig. 1 of the present invention. Fig. 17 is similar to Fig. 10 except for the following differences.
第17圖不包括步驟1006;故流程直接由步驟1004至步驟1008之分支”否”開始進行。因此,第17圖所示之另一實施例不要求如第1圖之實施例之組件時間間距能量之計算結果。這是因為組件時間間距能量係由讀取自能量監視器1144之每一時間之PKGENERGY訊號1162所維持的。Figure 17 does not include step 1006; therefore, the flow begins directly from the branch "No" of steps 1004 through 1008. Therefore, another embodiment shown in Fig. 17 does not require the calculation of the component time interval energy of the embodiment as in Fig. 1. This is because the component time interval energy is maintained by the PKGENERGY signal 1162 at each time read from the energy monitor 1144.
另外,第10圖之步驟1016被第17圖所示之步驟1716取代,使得流程直接由步驟1014以及1024進行至步驟1716。In addition, step 1016 of FIG. 10 is replaced by step 1716 shown in FIG. 17, so that the flow proceeds directly from steps 1014 and 1024 to step 1716.
在步驟1716中,微碼127藉由在佇列之最舊分格項目的特定能量,減少組件時間間距能量。因此,相較於加總所有分格之能量,藉由第15圖之步驟1518中以及第17圖所示之步驟1716的操作,可對組件時間間距能量進行更有效率之運算。第7圖不包括步驟1018;故流程直接由步驟1716進行至步驟1022。In step 1716, the microcode 127 reduces the component time interval energy by the particular energy of the oldest binning item in the queue. Therefore, the component time interval energy can be more efficiently calculated by the operation of step 1716 in step 1518 of FIG. 15 and FIG. 17 as compared to the sum of all the energy of the division. Figure 7 does not include step 1018; therefore, the flow proceeds directly from step 1716 to step 1022.
第18圖係本發明另一實施例之包括一雙核心微處理器組件102的一電腦系統100之方塊圖,其包括一功率評價值特性。第18圖所示之電腦系統100相似於第11圖所示之電腦系統100,另外,第18圖所示之電腦系統100不包括第4圖之類比乘法器1104。取而代之的是由能量監視器1144執行類比乘法器之功。因此,能量監視器1144接收每一VINSTCUR訊號1152以及VCORE訊號156。Figure 18 is a block diagram of a computer system 100 including a dual core microprocessor assembly 102 in accordance with another embodiment of the present invention including a power evaluation value characteristic. The computer system 100 shown in Fig. 18 is similar to the computer system 100 shown in Fig. 11. In addition, the computer system 100 shown in Fig. 18 does not include the analog multiplier 1104 of Fig. 4. Instead, the energy monitor 1144 performs the work of the analog multiplier. Therefore, the energy monitor 1144 receives each VINVTCUR signal 1152 and the VCORE signal 156.
以下將詳述本實施例之諸多有利之功效。首先,其中一種致能核心以與另一核心傳送電源資訊之方法為製造兩匹配之核心,並且直接架設訊號線於在兩核心中間,使得該兩核心可彼此互相溝通。另外,本實施利之另一優點為,核心可經由記憶體彼此溝通,因此不需要製造匹配之複數核心,但必需分別製造再進行封裝。因此,本發明之實施利可具有更高於製造匹配核心方法之產量。The various advantageous effects of the present embodiment will be described in detail below. First, one of the enabling cores is the core of making two matches with another core to transmit power information, and directly locating the signal line between the two cores so that the two cores can communicate with each other. In addition, another advantage of the present embodiment is that the cores can communicate with each other via the memory, so there is no need to manufacture a matching complex core, but it is necessary to separately manufacture and then package. Thus, the implementation of the present invention may have a higher yield than the method of manufacturing a matching core.
第二,本實施例之核心使用記憶體以進行電源資訊之溝通,相較於透過訊號線直接進行溝通之核心,本實施例之規模可更佳於兩個以上之核心,由於訊號線之數量會基於核心的數量而指數增加。Secondly, the core of the embodiment uses memory for communication of power information. Compared with the core of direct communication through the signal line, the scale of this embodiment can be better than two cores, due to the number of signal lines. It will increase exponentially based on the number of cores.
第三,功率評價值特性之實施例的優點為,其可允許具有良好溫度環境/解決方案之使用者/系統可不需受至於其他不具有良好溫度環境/解決方案之使用者/系統,而享受額外之高效能。Third, an advantage of embodiments of the power evaluation value feature is that it allows a user/system with a good temperature environment/solution to enjoy the user/system without other good temperature environments/solutions. Extra high performance.
第四,有些指令(例如,非代數的函數指令(transcendental function instructions)或者具有巨大運算域之相乘模數指(modulo multiply instructions with extremely large operands))可能相對的執行時間較長,可能約為一分格或者時間間具T之時間。由於根據本發明所述之實施例,一個核心可判定必要的功率評價值是否為目前項目之組件並且根據其調整本身之效能,本發明所述之實施例可在當時一長指令之下操作適當的事件,既使其他核心無法回應其匯流排時脈計時器之中斷。Fourth, some instructions (for example, transcendental function instructions or modulo multiply instructions with extremely large operands) may have relatively long execution times, possibly A time or a time between time T. According to the embodiment of the present invention, a core can determine whether the necessary power evaluation value is a component of the current project and according to the performance of the adjustment itself, the embodiment of the present invention can be operated properly under a long command at the time. The event, even if other cores are unable to respond to the interruption of their bus timing timer.
第五,如前所述,在累積足夠之功率評價值的條件下,所有核心皆可操作於高於Xp之頻率。Fifth, as previously mentioned, all cores can operate at frequencies above Xp with sufficient power evaluation values.
雖然本發明之實施例已於上述說明其目標、特性以及優點,其他實施例亦為本發明之考量。舉例而言,雖然本發明之實施例的瞬間功率指標係由第11圖以及第18圖所示之多核心架構之組件的外部電路所提通的,但單核心組件亦在本發明之範疇。再者,雖然本發明已說明動態以及漏損能量代表之值係各別維持的,在其他實施例中亦可考慮維持一單一代表能量之值。另外,在其他實施例中,訊號VINSTPWR訊號1154或者訊號VINSTCUR訊號1152係由電壓調節模組108或者由電源供應直接提供至組件102。最後,雖然本發明之實施例已說明功率評價值特性大量用於微碼,其他實施例亦考量將功率評價值特性大量用於硬體邏輯或者微碼與硬體邏輯之組合。While the embodiments of the present invention have been described in terms of the objects, features and advantages thereof, other embodiments are also contemplated by the present invention. For example, although the instantaneous power indicator of the embodiment of the present invention is provided by the external circuitry of the components of the multi-core architecture shown in Figures 11 and 18, a single core component is also within the scope of the present invention. Furthermore, although the present invention has shown that the values represented by dynamics and leakage energy are maintained separately, it is contemplated in other embodiments to maintain a single representative energy value. In addition, in other embodiments, the signal VINSTPWR signal 1154 or the signal VINTTCUR signal 1152 is provided directly to the component 102 by the voltage regulation module 108 or by a power supply. Finally, while embodiments of the present invention have illustrated that power evaluation value characteristics are heavily used for microcode, other embodiments also consider the use of power evaluation value characteristics in large numbers for hardware logic or a combination of microcode and hardware logic.
本發明的不同實施例已於本文敘述,但本領域具有通常知識者應能瞭解這些實施例僅作為範例,而非限定於此。本領域具有通常知識者可在不脫離本發明之精神的情況下,對形式與細節上做不同的變化。例如,軟體可致能本發明實施例所述的裝置與方法之功能、組建(fabrication)、塑造(modeling)、模擬、描述(description)、以及/或測試,亦可透過一般程式語言(C、C++)、硬體描述語言(Hardware Description Languages,HDL)(包括Verilog HDL、VHDL等等)、或其他可利用的程式語言來完成。此軟體可配置在任何已知的電腦可使用媒介,例如磁帶、半導體、磁碟,或是光碟(例如CD-ROM、DVD-ROM等等)、網際網路、有線、無線、或其他通訊媒介的傳輸方式之中。本發明所述之裝置與方法實施例可被包括於半導體智慧財產核心,例如微處理器核心(以HDL來實現),並轉換成積體電路產品的硬體。此外,本發明所述之裝置與方法透過硬體與軟體的結合來實現。因此,本發明不應侷限於所揭露之實施例,而是依後附之申請專利範圍與等效實施所界定。特別是,本發明可實施在使用於一般用途電腦中的微處理器裝置內。最後,本發明雖以較佳實施例揭露如上,然其並非用以限定本發明的範圍,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可做些許的更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Various embodiments of the invention have been described herein, but those skilled in the art should understand that these embodiments are only by way of example and not limitation. Variations in form and detail may be made by those skilled in the art without departing from the spirit of the invention. For example, the software can enable the functions, fabrication, modeling, simulation, description, and/or testing of the apparatus and method described in the embodiments of the present invention, and can also be through a general programming language (C, C++), Hardware Description Languages (HDL) (including Verilog HDL, VHDL, etc.), or other available programming languages. The software can be configured on any known computer usable medium such as tape, semiconductor, disk, or optical disc (eg CD-ROM, DVD-ROM, etc.), internet, wired, wireless, or other communication medium. Among the transmission methods. The apparatus and method embodiments of the present invention can be included in a semiconductor intellectual property core, such as a microprocessor core (implemented in HDL), and converted into hardware of an integrated circuit product. Furthermore, the apparatus and method of the present invention are implemented by a combination of a hardware and a soft body. Therefore, the invention should not be limited to the disclosed embodiments, but is defined by the scope of the appended claims. In particular, the present invention can be implemented in a microprocessor device for use in a general purpose computer. In the following, the present invention is not limited to the scope of the present invention, and any one of ordinary skill in the art can make a slight difference without departing from the spirit and scope of the present invention. The scope of protection of the present invention is defined by the scope of the appended claims.
100...電腦系統100. . . computer system
108...電壓調節模組108. . . Voltage regulation module
158...VID訊號158. . . VID signal
156...VCORE訊號156. . . VCORE signal
104A...核心0104A. . . Core 0
104B...核心1104B. . . Core 1
102...組件102. . . Component
129...功率評價值暫存器129. . . Power evaluation value register
126...鎖相迴路126. . . Phase-locked loop
128...溫度感測器128. . . Temperature sensor
127...微碼127. . . Microcode
124...常駐計時器124. . . Resident timer
122...匯流排時脈計時器122. . . Bus timing timer
146...匯流排時脈146. . . Bus time
154...匯流排154. . . Busbar
106...記憶體106. . . Memory
138...功率資訊共享區域(PISA)138. . . Power Information Sharing Area (PISA)
132A、132B...功率資訊132A, 132B. . . Power information
114...動態能量114. . . Dynamic energy
116...漏損能量116. . . Leakage energy
202...SMM記憶體空間202. . . SMM memory space
1102...放大器1102. . . Amplifier
1152...VINSTCUR訊號1152. . . VINSTCUR signal
1104...類比乘法器1104. . . Analog multiplier
1154...VINSTPWR訊號1154. . . VINSTPWR signal
1144...能量監視器1144. . . Energy monitor
1162...PKGENERGY訊號1162. . . PKGENERGY signal
第1圖係本發明描述之一種電腦系統之方塊圖;1 is a block diagram of a computer system described in the present invention;
第2圖係第1圖之電腦系統之記憶體中之功率資訊共享區域的之方塊圖;Figure 2 is a block diagram of a power information sharing area in the memory of the computer system of Figure 1;
第3圖係根據本發明之第1圖的組件所實施之操作流程圖;Figure 3 is a flow chart showing the operation of the assembly according to Figure 1 of the present invention;
第4圖係根據本發明之第1圖電腦系統所實施之操作流程圖;Figure 4 is a flow chart showing the operation of the computer system according to the first embodiment of the present invention;
第5A以及5B圖係根據本發明之第1圖電腦系統所實施之操作流程圖;5A and 5B are flowcharts of operations performed by the computer system according to the first embodiment of the present invention;
第6圖係根據本發明之第1圖電腦系統執行副程式Z之操作流程圖;Figure 6 is a flow chart showing the operation of the sub-program Z in accordance with the computer system of Figure 1 of the present invention;
第7圖係根據本發明之第1圖電腦系統執行副程式V之操作流程圖;Figure 7 is a flow chart showing the operation of the sub-program V in accordance with the computer system of Figure 1 of the present invention;
第8圖係根據本發明之第1圖電腦系統執行副程式X之操作流程圖;Figure 8 is a flow chart showing the operation of the sub-program X in accordance with the computer system of Figure 1 of the present invention;
第9圖係根據本發明之第1圖電腦系統執行副程式W之操作流程圖;Figure 9 is a flow chart showing the operation of the sub-program W in accordance with the computer system of Figure 1 of the present invention;
第10圖係根據本發明之第1圖電腦系統執行副程式Y之操作流程圖;Figure 10 is a flow chart showing the operation of the sub-program Y in accordance with the computer system of Figure 1 of the present invention;
第11圖係本發明另一實施例之包括一雙核心微處理器組件的一電腦系統之方塊圖;Figure 11 is a block diagram of a computer system including a dual core microprocessor assembly in accordance with another embodiment of the present invention;
第12圖係根據本發明之第11圖電腦系統所實施之操作流程圖;Figure 12 is a flow chart showing the operation of the computer system according to the eleventh embodiment of the present invention;
第13圖係根據本發明之第11圖電腦系統所實施之操作流程圖;Figure 13 is a flow chart showing the operation of the computer system according to the eleventh embodiment of the present invention;
第14圖係根據本發明之第11圖電腦系統執行副程式Z之操作流程圖;Figure 14 is a flow chart showing the operation of the sub-program Z in accordance with the computer system of Figure 11 of the present invention;
第15圖係根據本發明之第11圖電腦系統執行副程式V之操作流程圖;Figure 15 is a flow chart showing the operation of the sub-program V in accordance with the computer system of Figure 11 of the present invention;
第16圖係根據本發明之第11圖電腦系統執行副程式X之操作流程圖;Figure 16 is a flow chart showing the operation of the sub-program X in accordance with the computer system of Figure 11 of the present invention;
第17圖係根據本發明之第1圖電腦系統執行副程式Y之操作流程圖;Figure 17 is a flow chart showing the operation of the sub-program Y in accordance with the computer system of Figure 1 of the present invention;
第18圖係本發明另一實施例之包括一雙核心微處理器組件的一電腦系統100之方塊圖。Figure 18 is a block diagram of a computer system 100 including a dual core microprocessor assembly in accordance with another embodiment of the present invention.
100...電腦系統100. . . computer system
108...電壓調節模組108. . . Voltage regulation module
158...VID訊號158. . . VID signal
156...VCORE訊號156. . . VCORE signal
104A...核心0104A. . . Core 0
104B...核心1104B. . . Core 1
102...組件102. . . Component
129...功率評價值暫存器129. . . Power evaluation value register
126...鎖相迴路126. . . Phase-locked loop
128...溫度感測器128. . . Temperature sensor
127...微碼127. . . Microcode
124...常駐計時器124. . . Resident timer
122...匯流排時脈計時器122. . . Bus timing timer
146...匯流排時脈146. . . Bus time
154...匯流排154. . . Busbar
106...記憶體106. . . Memory
138...功率資訊共享區域(PISA)138. . . Power Information Sharing Area (PISA)
132A...功率資訊132A. . . Power information
132B...功率資訊132B. . . Power information
114...動態能量114. . . Dynamic energy
116...漏損能量116. . . Leakage energy
Claims (36)
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US36000510P | 2010-06-30 | 2010-06-30 | |
US13/157,498 US8935549B2 (en) | 2010-06-30 | 2011-06-10 | Microprocessor with multicore processor power credit management feature |
US13/157,555 US8615672B2 (en) | 2010-06-30 | 2011-06-10 | Multicore processor power credit management to allow all processing cores to operate at elevated frequency |
US13/157,436 US8914661B2 (en) | 2010-06-30 | 2011-06-10 | Multicore processor power credit management in which multiple processing cores use shared memory to communicate individual energy consumption |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201205274A TW201205274A (en) | 2012-02-01 |
TWI454901B true TWI454901B (en) | 2014-10-01 |
Family
ID=45400663
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW103107842A TWI528168B (en) | 2010-06-30 | 2011-06-30 | Microprocessor, method of operating microprocessor and computer program product |
TW103107841A TWI528167B (en) | 2010-06-30 | 2011-06-30 | Microprocessor, method of operating microprocessor and computer program product |
TW100123031A TWI454901B (en) | 2010-06-30 | 2011-06-30 | Microprocessor, method of operating microprocessor and computer program product |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW103107842A TWI528168B (en) | 2010-06-30 | 2011-06-30 | Microprocessor, method of operating microprocessor and computer program product |
TW103107841A TWI528167B (en) | 2010-06-30 | 2011-06-30 | Microprocessor, method of operating microprocessor and computer program product |
Country Status (2)
Country | Link |
---|---|
US (3) | US8935549B2 (en) |
TW (3) | TWI528168B (en) |
Families Citing this family (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8135970B2 (en) | 2009-03-06 | 2012-03-13 | Via Technologies, Inc. | Microprocessor that performs adaptive power throttling |
US8972707B2 (en) | 2010-12-22 | 2015-03-03 | Via Technologies, Inc. | Multi-core processor with core selectively disabled by kill instruction of system software and resettable only via external pin |
US8635476B2 (en) | 2010-12-22 | 2014-01-21 | Via Technologies, Inc. | Decentralized power management distributed among multiple processor cores |
US8631256B2 (en) * | 2010-12-22 | 2014-01-14 | Via Technologies, Inc. | Distributed management of a shared power source to a multi-core microprocessor |
US8782451B2 (en) | 2010-12-22 | 2014-07-15 | Via Technologies, Inc. | Power state synchronization in a multi-core processor |
US9460038B2 (en) | 2010-12-22 | 2016-10-04 | Via Technologies, Inc. | Multi-core microprocessor internal bypass bus |
US8637212B2 (en) | 2010-12-22 | 2014-01-28 | Via Technologies, Inc. | Reticle set modification to produce multi-core dies |
US8930676B2 (en) | 2010-12-22 | 2015-01-06 | Via Technologies, Inc. | Master core discovering enabled cores in microprocessor comprising plural multi-core dies |
US8924752B1 (en) | 2011-04-20 | 2014-12-30 | Apple Inc. | Power management for a graphics processing unit or other circuit |
US8856566B1 (en) * | 2011-12-15 | 2014-10-07 | Apple Inc. | Power management scheme that accumulates additional off time for device when no work is available and permits additional power consumption by device when awakened |
US8943341B2 (en) * | 2012-04-10 | 2015-01-27 | International Business Machines Corporation | Minimizing power consumption for fixed-frequency processing unit operation |
US9390461B1 (en) | 2012-05-08 | 2016-07-12 | Apple Inc. | Graphics hardware mode controls |
US9694448B2 (en) * | 2012-05-11 | 2017-07-04 | Universal Laser Systems, Inc. | Methods and systems for operating laser processing systems |
DE102013108041B4 (en) * | 2012-07-31 | 2024-01-04 | Nvidia Corporation | Heterogeneous multiprocessor arrangement for power-efficient and area-efficient computing |
WO2014051626A1 (en) * | 2012-09-28 | 2014-04-03 | Hewlett-Packard Development Company, L.P. | Temperature regulation of a cpu |
US9430346B2 (en) | 2013-03-26 | 2016-08-30 | Texas Instruments Incorporated | Processor power measurement |
US9804650B2 (en) | 2014-09-04 | 2017-10-31 | Qualcomm Incorporated | Supply voltage node coupling using a switch |
US9952651B2 (en) * | 2015-07-31 | 2018-04-24 | International Business Machines Corporation | Deterministic current based frequency optimization of processor chip |
US9798375B1 (en) | 2016-01-05 | 2017-10-24 | Apple Inc. | Credit-based processor energy consumption rate limiting system |
US10452117B1 (en) | 2016-09-22 | 2019-10-22 | Apple Inc. | Processor energy management system |
TWI604326B (en) | 2016-10-27 | 2017-11-01 | 財團法人工業技術研究院 | Fpga-based system power estimation apparatus and method |
TWI645282B (en) * | 2017-05-24 | 2018-12-21 | 瑞昱半導體股份有限公司 | System on a chip (soc) and integrated circuit device having the same |
JP7271973B2 (en) * | 2019-02-01 | 2023-05-12 | 株式会社デンソー | VEHICLE CONTROL DEVICE AND OPERATING CLOCK SWITCHING METHOD |
US11054882B2 (en) | 2019-02-21 | 2021-07-06 | Apple Inc. | Externally-triggered throttling |
US11281279B2 (en) * | 2019-04-02 | 2022-03-22 | Apple Inc. | Tracking power consumption using multiple sampling frequencies |
US11048323B2 (en) * | 2019-04-29 | 2021-06-29 | Apple Inc. | Power throttling in a multicore system |
US11079822B2 (en) * | 2019-06-28 | 2021-08-03 | Western Digital Technologies, Inc. | Integrated power and thermal management in non-volatile memory |
US11157329B2 (en) * | 2019-07-26 | 2021-10-26 | Intel Corporation | Technology for managing per-core performance states |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6049852A (en) * | 1994-09-16 | 2000-04-11 | International Business Machines Corporation | Preserving cache consistency in a computer system having a plurality of memories with overlapping address ranges |
CN101241390A (en) * | 2007-02-07 | 2008-08-13 | 华硕电脑股份有限公司 | Multi- core processor efficiency regulation method |
CN101576768A (en) * | 2009-06-15 | 2009-11-11 | 北京中星微电子有限公司 | Method and device for switching device frequency |
US20100115293A1 (en) * | 2008-10-31 | 2010-05-06 | Efraim Rotem | Deterministic management of dynamic thermal response of processors |
Family Cites Families (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4569589A (en) | 1983-05-25 | 1986-02-11 | University Of Pennsylvania | Lung water computer system |
US4591841A (en) | 1983-11-01 | 1986-05-27 | Wisconsin Alumni Research Foundation | Long range optical pointing for video screens |
US4615014A (en) | 1984-04-16 | 1986-09-30 | Lincoln Manufacturing Company, Inc. | Bake time display for cooking oven |
US6367023B2 (en) | 1998-12-23 | 2002-04-02 | Intel Corporation | Method and apparatus of measuring current, voltage, or duty cycle of a power supply to manage power consumption in a computer system |
US6651176B1 (en) | 1999-12-08 | 2003-11-18 | Hewlett-Packard Development Company, L.P. | Systems and methods for variable control of power dissipation in a pipelined processor |
US6920572B2 (en) | 2000-11-15 | 2005-07-19 | Texas Instruments Incorporated | Unanimous voting for disabling of shared component clocking in a multicore DSP device |
US6802015B2 (en) | 2000-12-29 | 2004-10-05 | Hewlett-Packard Development Company, L.P. | Method for accelerating the speed of a CPU using a system command having an operation not associated with changing the speed of the CPU |
DE60216486T2 (en) | 2001-09-21 | 2007-10-04 | Microsound A/S | HEARING DEVICE WITH PERFORMANCE OPTIMIZED POWER CONSUMPTION FOR VARIABLE CLOCK, VARIABLE SUPPLY VOLTAGE AND VARIABLE DSP PROCESSING PARAMETERS |
US7171570B2 (en) | 2001-11-16 | 2007-01-30 | Apple Computer, Inc. | Method and apparatus for selectively increasing the operating speed of an electronic circuit |
US6813719B2 (en) | 2001-11-16 | 2004-11-02 | Apple Computer, Inc. | Method and apparatus for increasing the operating frequency of an electronic circuit |
JP3692089B2 (en) | 2002-04-02 | 2005-09-07 | 株式会社東芝 | Power consumption control method and information processing apparatus |
KR100663408B1 (en) | 2003-07-14 | 2007-01-02 | 엘지전자 주식회사 | Apparatus and method for controling CPU speed tramsition |
US7426657B2 (en) * | 2004-07-09 | 2008-09-16 | International Business Machines Corporation | System and method for predictive processor failure recovery |
US7451333B2 (en) | 2004-09-03 | 2008-11-11 | Intel Corporation | Coordinating idle state transitions in multi-core processors |
CN100412814C (en) * | 2005-04-12 | 2008-08-20 | 鸿富锦精密工业(深圳)有限公司 | Central processer super frequency system and method |
US7490254B2 (en) | 2005-08-02 | 2009-02-10 | Advanced Micro Devices, Inc. | Increasing workload performance of one or more cores on multiple core processors |
US7562234B2 (en) | 2005-08-25 | 2009-07-14 | Apple Inc. | Methods and apparatuses for dynamic power control |
US7669071B2 (en) | 2006-05-05 | 2010-02-23 | Dell Products L.P. | Power allocation management in an information handling system |
US7818596B2 (en) | 2006-12-14 | 2010-10-19 | Intel Corporation | Method and apparatus of power management of processor |
US8082454B2 (en) | 2007-11-07 | 2011-12-20 | International Business Machines Corporation | Managing power consumption based on historical average |
US8578193B2 (en) * | 2007-11-28 | 2013-11-05 | International Business Machines Corporation | Apparatus, method and program product for adaptive real-time power and perfomance optimization of multi-core processors |
US8010824B2 (en) | 2008-04-11 | 2011-08-30 | Advanced Micro Devices , Inc. | Sampling chip activity for real time power estimation |
US20110213998A1 (en) * | 2008-06-11 | 2011-09-01 | John George Mathieson | System and Method for Power Optimization |
TWI374355B (en) | 2008-08-22 | 2012-10-11 | Asustek Comp Inc | Computer system capable of dynamically changing core voltage/frequency of cpu |
US7861024B2 (en) * | 2008-09-30 | 2010-12-28 | Intel Corporation | Providing a set aside mechanism for posted interrupt transactions |
US20100180136A1 (en) * | 2009-01-15 | 2010-07-15 | Validity Sensors, Inc. | Ultra Low Power Wake-On-Event Mode For Biometric Systems |
US8135970B2 (en) | 2009-03-06 | 2012-03-13 | Via Technologies, Inc. | Microprocessor that performs adaptive power throttling |
JP5266385B2 (en) | 2009-06-10 | 2013-08-21 | パナソニック株式会社 | Trace processing apparatus and trace processing system |
US8601302B2 (en) | 2009-06-22 | 2013-12-03 | Amazon Technologies, Inc. | Processor system in low power state retention mode with linear regulator off and switch regulator low in power management IC |
US8589709B2 (en) | 2009-07-23 | 2013-11-19 | Carnegie Mellon University | Systems and methods for managing power consumption and performance of a processor |
US8667308B2 (en) * | 2010-06-18 | 2014-03-04 | Apple Inc. | Dynamic voltage dithering |
-
2011
- 2011-06-10 US US13/157,498 patent/US8935549B2/en active Active
- 2011-06-10 US US13/157,436 patent/US8914661B2/en active Active
- 2011-06-10 US US13/157,555 patent/US8615672B2/en active Active
- 2011-06-30 TW TW103107842A patent/TWI528168B/en active
- 2011-06-30 TW TW103107841A patent/TWI528167B/en active
- 2011-06-30 TW TW100123031A patent/TWI454901B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6049852A (en) * | 1994-09-16 | 2000-04-11 | International Business Machines Corporation | Preserving cache consistency in a computer system having a plurality of memories with overlapping address ranges |
CN101241390A (en) * | 2007-02-07 | 2008-08-13 | 华硕电脑股份有限公司 | Multi- core processor efficiency regulation method |
US20100115293A1 (en) * | 2008-10-31 | 2010-05-06 | Efraim Rotem | Deterministic management of dynamic thermal response of processors |
CN101576768A (en) * | 2009-06-15 | 2009-11-11 | 北京中星微电子有限公司 | Method and device for switching device frequency |
Also Published As
Publication number | Publication date |
---|---|
TWI528168B (en) | 2016-04-01 |
TW201205274A (en) | 2012-02-01 |
US20120047385A1 (en) | 2012-02-23 |
US20120005514A1 (en) | 2012-01-05 |
TW201426280A (en) | 2014-07-01 |
TW201426279A (en) | 2014-07-01 |
US20120047377A1 (en) | 2012-02-23 |
TWI528167B (en) | 2016-04-01 |
US8914661B2 (en) | 2014-12-16 |
US8615672B2 (en) | 2013-12-24 |
US8935549B2 (en) | 2015-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI454901B (en) | Microprocessor, method of operating microprocessor and computer program product | |
US11513585B1 (en) | Power management for a graphics processing unit or other circuit | |
US8856566B1 (en) | Power management scheme that accumulates additional off time for device when no work is available and permits additional power consumption by device when awakened | |
US9952655B1 (en) | Graphics hardware mode controls | |
US9261949B2 (en) | Method for adaptive performance optimization of the soc | |
US8942932B2 (en) | Determining transistor leakage for an integrated circuit | |
US8510582B2 (en) | Managing current and power in a computing system | |
US8261112B2 (en) | Optimizing power consumption by tracking how program runtime performance metrics respond to changes in operating frequency | |
US9652019B2 (en) | System and method for adjusting processor performance based on platform and ambient thermal conditions | |
US8793512B2 (en) | Method and apparatus for thermal control of processing nodes | |
US9250665B2 (en) | GPU with dynamic performance adjustment | |
US8171319B2 (en) | Managing processor power-performance states | |
US20130173946A1 (en) | Controlling power consumption through multiple power limits over multiple time intervals | |
Floyd et al. | Adaptive energy-management features of the IBM POWER7 chip | |
JP2013536532A (en) | Dynamic performance control of processing nodes | |
WO2011011668A1 (en) | Determining performance sensitivities of computational units | |
JP2017102790A (en) | Information processing apparatus, arithmetic processor, and control method of information processing apparatus | |
Khanna et al. | Unified extensible firmware interface: An innovative approach to DRAM power control | |
CN102221875B (en) | Microprocessor, method of operating the microprocessor and computer program product | |
US11169586B2 (en) | Computing device and method of operating the same |