JP2011013914A - Power-saving controller and power-saving control method - Google Patents

Power-saving controller and power-saving control method Download PDF

Info

Publication number
JP2011013914A
JP2011013914A JP2009157237A JP2009157237A JP2011013914A JP 2011013914 A JP2011013914 A JP 2011013914A JP 2009157237 A JP2009157237 A JP 2009157237A JP 2009157237 A JP2009157237 A JP 2009157237A JP 2011013914 A JP2011013914 A JP 2011013914A
Authority
JP
Japan
Prior art keywords
power saving
saving mode
power
cpu
expected value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009157237A
Other languages
Japanese (ja)
Inventor
Toshimitsu Kume
俊光 久米
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Storage Device Corp
Original Assignee
Toshiba Storage Device Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Storage Device Corp filed Critical Toshiba Storage Device Corp
Priority to JP2009157237A priority Critical patent/JP2011013914A/en
Publication of JP2011013914A publication Critical patent/JP2011013914A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a power-saving controller and a power-saving control method, allowing easy mounting of transition processing to a power-saving mode of a CPU (Central Processing Unit) during poling processing, allowing a high-speed bus use load from the CPU during the poling processing to be reduced, and allowing contribution even to performance improvement of the whole system.SOLUTION: When execution of the poling processing is needed in the CPU 101, a power-saving mode management part 102 substitutionally executes the poling processing. By meantime transiting the CPU 101 to the power-saving mode, the CPU 101 does not need complicated processing for transition to the power-saving mode or consideration of an interrupt condition for restoration from the power-saving mode to easily mount the transition processing to the power-saving mode of the CPU 101 during the poling processing, and the high-speed bus use load from the CPU 101 during the poling processing is reduced to contribute even to the performance improvement of the whole system.

Description

本発明は、省電力制御装置、および省電力制御方法に関する。   The present invention relates to a power saving control device and a power saving control method.

近年のコンピュータシステムにおいては、処理能力の向上が要求される一方で省電力化が要求されている。このため、コンピュータシステムが備えるCPU(Central Processing Unit)においても省電力モードが装備されており、これらの効率的に制御してCPUの省電力化を図る必要がある。   In recent computer systems, improvement in processing capability is required, while power saving is required. For this reason, a CPU (Central Processing Unit) provided in the computer system is also equipped with a power saving mode, and it is necessary to control these efficiently to save the CPU power.

従来のCPUの省電力制御においては、CPU自身が省電力モードへの遷移が可能かどうかを判断し、可能であれば省電力モードへの遷移処理を実行していた(特許文献1参照)。また、省電力モードから通常モードへの復帰は、特定の割り込み信号によってのみ行われていたため、省電力モードから通常モードへの復帰条件を任意に変更することができず、省電力モードへ遷移可能な状態が限られていた。   In conventional CPU power saving control, the CPU itself determines whether or not the transition to the power saving mode is possible, and if possible, the transition processing to the power saving mode is executed (see Patent Document 1). In addition, since the return from the power saving mode to the normal mode was performed only by a specific interrupt signal, the return condition from the power saving mode to the normal mode cannot be arbitrarily changed, and the mode can be changed to the power saving mode. The state was limited.

特開2005−346708号公報JP-A-2005-346708

ところで、コンピュータプログラミングにおいては、特定のアドレスのデータが期待値になるまでそのアドレスを繰り返し参照して待つポーリング処理がしばしば用いられる。ポーリング処理中は、特定のアドレスのデータが期待値になるまで、後続の処理やその他の処理を実行することができないことが多いので、CPUを省電力モードへ遷移させることが望ましいが、省電力モードへの遷移処理が複雑であることや割り込み発生条件が満たせない等の理由で省電力モードへ遷移できないことがある。さらに、上述したように、ポーリング処理中は特定のアドレスのデータが期待値になるまで後続の処理やその他の処理を実行することができないことが多いが、CPUは、プログラムに従って何ら処理を行っていないにも関わらず、定常周波数のクロックを基準にして特定のアドレスのデータの参照を繰り返すため、消費電力が通常と変わらず、また無用なアドレスバスやデータバスの使用により周辺回路の処理を妨げるという問題ある。   By the way, in computer programming, a polling process is often used in which data of a specific address is repeatedly referred to and waited until an expected value is reached. During polling processing, it is often not possible to execute subsequent processing or other processing until the data at a specific address reaches the expected value, so it is desirable to transition the CPU to the power saving mode. It may not be possible to transition to the power saving mode because the transition process to the mode is complicated or the interrupt generation condition cannot be satisfied. Further, as described above, during the polling process, it is often impossible to execute subsequent processes or other processes until the data at a specific address reaches an expected value, but the CPU does not perform any process according to the program. In spite of the fact that the data of a specific address is repeatedly referenced based on a clock with a constant frequency, the power consumption does not change as usual, and the use of an unnecessary address bus or data bus prevents the processing of peripheral circuits. There is a problem.

開示の技術は、上記に鑑みてなされたものであって、ポーリング処理中におけるCPUの省電力モードへの遷移処理を容易に実装することができ、かつポーリング処理中におけるCPUからの高速なバス使用負荷が軽減されてシステム全体の性能向上にも寄与することができる省電力制御装置、および省電力制御方法を提供することを目的とする。   The disclosed technology has been made in view of the above, and can easily implement the transition process of the CPU to the power saving mode during the polling process, and can use the high-speed bus from the CPU during the polling process. It is an object of the present invention to provide a power saving control apparatus and a power saving control method that can contribute to improving the performance of the entire system by reducing the load.

本願の開示する省電力制御装置は、一つの態様において、特定アドレスのデータが期待値になるまで前記データを繰り返し参照して待つポーリング処理の実行が演算装置で必要となった場合に、前記ポーリング処理の実行により前記データが前記期待値と一致するか否かを判断する判断手段と、前記データが前記期待値と一致すると判断されるまで、前記演算装置を省電力モードに遷移するように制御する制御手段と、を備える。   In one aspect, the power-saving control device disclosed in the present application provides the polling when the arithmetic device needs to execute a polling process that repeatedly refers to the data and waits until the data at the specific address reaches an expected value. A determination means for determining whether or not the data matches the expected value by executing processing, and control so that the arithmetic unit transitions to a power saving mode until it is determined that the data matches the expected value; And a control means.

また、本願の開示する省電力制御方法は、他の態様において、主制御部の省電力モードへの遷移および前記省電力モードからの復帰を制御する省電力制御装置で実行される省電力制御方法であって、前記省電力制御装置は、前記主制御部より低い周波数で処理を行う副制御部と記憶部を備え、前記副制御部で実行される、判断手段が、特定アドレスのデータが期待値になるまで前記データを繰り返し参照して待つポーリング処理の実行が演算装置で必要となった場合に、前記ポーリング処理の実行により前記データが前記期待値と一致するか否かを判断する判断工程と、制御手段が、前記データが前記期待値と一致すると判断されるまで、前記演算装置を前記省電力モードに遷移するように制御する制御工程と、を含むものである。   Further, in another aspect, the power saving control method disclosed in the present application is a power saving control method executed by a power saving control device that controls a transition of the main control unit to the power saving mode and a return from the power saving mode. The power saving control device includes a sub-control unit that performs processing at a lower frequency than the main control unit and a storage unit, and the determination unit that is executed by the sub-control unit expects data at a specific address. A determination step of determining whether or not the data matches the expected value by executing the polling process when the arithmetic unit needs to execute a polling process that repeatedly refers to the data and waits until a value is reached And a control step in which the control means controls the arithmetic device to transition to the power saving mode until it is determined that the data matches the expected value.

本願の開示する省電力制御装置、および省電力制御方法の一つの態様によれば、ポーリング処理中におけるCPUの省電力モードへの遷移処理を容易に実装することができ、かつポーリング処理中におけるCPUからの高速なバス使用負荷が軽減されてシステム全体の性能向上にも寄与することができる、という効果を奏する。   According to one aspect of the power saving control device and the power saving control method disclosed in the present application, the CPU can easily implement the transition process to the power saving mode during the polling process, and the CPU during the polling process. It is possible to reduce the high-speed bus usage load and contribute to improving the performance of the entire system.

図1は、実施例1にかかる外部デバイス制御装置の構成を示すブロック図である。FIG. 1 is a block diagram of the configuration of the external device control apparatus according to the first embodiment. 図2は、実施例1にかかる外部デバイス制御装置が備える各レジスタに設定された設定値を示す図である。FIG. 2 is a diagram illustrating setting values set in each register included in the external device control apparatus according to the first embodiment. 図3は、実施例1にかかる外部デバイス制御装置における省電力制御処理の流れを示すフローチャートである。FIG. 3 is a flowchart of the power saving control process performed by the external device control apparatus according to the first embodiment. 図4は、実施例2にかかる外部デバイス制御装置の構成を示すブロック図である。FIG. 4 is a block diagram of the configuration of the external device control apparatus according to the second embodiment. 図5は、実施例3にかかる外部デバイス制御装置の構成を示すブロック図である。FIG. 5 is a block diagram of the configuration of the external device control apparatus according to the third embodiment.

以下に、本願の開示する省電力制御装置、および省電力制御方法の実施例を図面に基づいて詳細に説明する。なお、本実施例では、本発明にかかる省電力制御装置、および省電力制御方法を、周辺機器などの外部デバイスを制御する外部デバイス制御装置に適用した例について説明する。また、この実施例によりこの発明が限定されるものではない。   Embodiments of a power saving control device and a power saving control method disclosed in the present application will be described below in detail with reference to the drawings. In the present embodiment, an example in which the power saving control apparatus and the power saving control method according to the present invention are applied to an external device control apparatus that controls an external device such as a peripheral device will be described. Further, the present invention is not limited to the embodiments.

図1は、実施例1にかかる外部デバイス制御装置の構成を示すブロック図である。図2は、実施例1にかかる外部デバイス制御装置が備える各レジスタに設定された設定値を示す図である。本実施例にかかる外部デバイス制御装置100は、大別すると、CPU101、省電力モード管理部102、クロック制御部103、および外部デバイス制御部110を備えている。なお、CPU101、省電力モード管理部102、および外部デバイス制御部110は、外部バスにより互いに接続されている。   FIG. 1 is a block diagram of the configuration of the external device control apparatus according to the first embodiment. FIG. 2 is a diagram illustrating setting values set in each register included in the external device control apparatus according to the first embodiment. The external device control apparatus 100 according to the present embodiment roughly includes a CPU 101, a power saving mode management unit 102, a clock control unit 103, and an external device control unit 110. The CPU 101, the power saving mode management unit 102, and the external device control unit 110 are connected to each other via an external bus.

外部デバイス制御部110は、外部デバイス制御装置100に接続された周辺機器113を制御するものである。本実施例では、外部デバイス制御部110は、外部デバイス制御回路112、およびステータスレジスタ111を備えている。外部デバイス制御回路112は、実際に周辺機器113との通信あるいは制御を行うためのものである。   The external device control unit 110 controls the peripheral device 113 connected to the external device control apparatus 100. In this embodiment, the external device control unit 110 includes an external device control circuit 112 and a status register 111. The external device control circuit 112 is for actually performing communication or control with the peripheral device 113.

ステータスレジスタ111は、特定アドレス(例えば、2000h)に割り当てられたハードウェアレジスタであって、外部デバイス制御回路112の状態を示すデータを記憶するものである。本実施例では、ステータスレジスタ111は、ポーリング処理が必要となった場合に、CPU101が繰り返し参照する特定アドレスのデータを記憶するものである。ここで、ポーリング処理とは、プログラムにおいて特定アドレスのデータが期待値になるまで特定アドレスのデータを繰り返し参照して待つ処理である。   The status register 111 is a hardware register assigned to a specific address (for example, 2000h), and stores data indicating the state of the external device control circuit 112. In this embodiment, the status register 111 stores data at a specific address that the CPU 101 repeatedly refers to when polling processing is necessary. Here, the polling process is a process of repeatedly referring to the data at the specific address until the data at the specific address reaches the expected value in the program.

CPU101は、クロック制御部103から出力されるクロックを基準にして処理を実行する演算装置である。本実施例では、CPU101は、クロック制御部103から出力されるクロックを基準として、外部デバイス制御回路112に対する処理を実行するものである。   The CPU 101 is an arithmetic device that executes processing based on the clock output from the clock control unit 103. In this embodiment, the CPU 101 executes processing for the external device control circuit 112 based on the clock output from the clock control unit 103.

省電力モード管理部102は、CPU101の省電力モードへの遷移およびCPU101の省電力モードからの復帰を制御するものである。本実施例では、省電力モード管理部102は、アドレス記憶部104、期待値記憶部105、条件記憶部106、比較器107、条件検出時間記憶部108、および時間監視部109を備えている。   The power saving mode management unit 102 controls the transition of the CPU 101 to the power saving mode and the return of the CPU 101 from the power saving mode. In this embodiment, the power saving mode management unit 102 includes an address storage unit 104, an expected value storage unit 105, a condition storage unit 106, a comparator 107, a condition detection time storage unit 108, and a time monitoring unit 109.

アドレス記憶部104は、図2に示すように、ポーリング処理が必要となった場合にCPU101が繰り返し参照するデータが記憶された特定アドレス(例えば、2000h)を記憶するアドレスレジスタである。   As shown in FIG. 2, the address storage unit 104 is an address register that stores a specific address (for example, 2000h) in which data that the CPU 101 repeatedly refers to when polling processing is necessary.

期待値記憶部105は、図2に示すように、ポーリング処理中に特定アドレス(例えば、2000h)に記憶されたデータの期待値(例えば、0012h)を記憶するデータレジスタである。なお、本実施例では、期待値記憶部105は、特定アドレスに記憶されたデータの下位8ビットの期待値を記憶している。   As shown in FIG. 2, the expected value storage unit 105 is a data register that stores an expected value (for example, 0012h) of data stored in a specific address (for example, 2000h) during the polling process. In this embodiment, the expected value storage unit 105 stores the expected value of the lower 8 bits of the data stored at the specific address.

条件記憶部106は、図2に示すように、期待値記憶部105に記憶された期待値に対する比較条件を記憶する条件レジスタである。本実施例では、条件記憶部106は、特定アドレス(例えば、2000h)に記憶されたデータの下位8ビットと期待値(例えば、0012h)とを比較することを示す比較条件(例えば、00FFh)を記憶する。   As shown in FIG. 2, the condition storage unit 106 is a condition register that stores a comparison condition for the expected value stored in the expected value storage unit 105. In the present embodiment, the condition storage unit 106 sets a comparison condition (for example, 00FFh) indicating that the lower 8 bits of data stored at a specific address (for example, 2000h) is compared with an expected value (for example, 0012h). Remember.

比較器107は、CPU101においてポーリング処理の実行が必要となった場合に、CPU101に代わってポーリング処理を実行するものである。まず、比較器107は、アドレス記憶部104に記憶された特定アドレスに従って、ステータスレジスタ111からデータを繰り返し参照する。続いて、比較部107(判断手段)は、条件記憶部106に記憶された比較条件において、参照したデータと、期待値記憶部105に記憶された期待値と、が一致するか否かを判断する。具体的には、比較器107は、CPU101に代わって適当な周期でステータスレジスタ111からデータを取り込み、取り込んだデータと条件記憶部106に記憶された比較条件との論理積と、期待値記憶部105に記憶された期待値と、が一致するか否かを判断するものとする。本実施例では、比較器107は、特定アドレスに記憶されたデータの下位8ビットと、期待値と、が一致するか否かを判断するものとする。   The comparator 107 executes the polling process instead of the CPU 101 when the CPU 101 needs to execute the polling process. First, the comparator 107 repeatedly refers to data from the status register 111 according to the specific address stored in the address storage unit 104. Subsequently, the comparison unit 107 (determination unit) determines whether or not the referred data matches the expected value stored in the expected value storage unit 105 in the comparison condition stored in the condition storage unit 106. To do. Specifically, the comparator 107 fetches data from the status register 111 at an appropriate period in place of the CPU 101, the logical product of the fetched data and the comparison condition stored in the condition storage unit 106, and the expected value storage unit It is determined whether the expected value stored in 105 matches. In the present embodiment, it is assumed that the comparator 107 determines whether or not the lower 8 bits of the data stored in the specific address match the expected value.

そして、比較器107(制御手段)は、条件記憶部106に記憶された比較条件において、参照したデータと、期待値記憶部105に記憶された期待値と、が一致したと判断するまで、a. power_ save信号(真)(a. power_ save signal)をクロック制御部103に出力してCPU101が省電力モードに遷移するように制御する。一方、比較器107(制御手段)は、条件記憶部106に記憶された比較条件において、参照したデータと、期待値記憶部105に記憶された期待値とが一致した場合、a. power_ save信号(偽)をクロック制御部103に出力してCPU101が省電力モードから復帰するように制御する。なお、比較器107は、CPU101が基準とする定常周波数より十分に低い周波数で、データの参照やa. power_ save信号の出力を行うものとする。   Then, until the comparator 107 (control unit) determines that the referred data matches the expected value stored in the expected value storage unit 105 in the comparison condition stored in the condition storage unit 106, a The power_save signal (true) (a. power_save signal) is output to the clock control unit 103 to control the CPU 101 to transition to the power saving mode. On the other hand, in the comparison condition stored in the condition storage unit 106, the comparator 107 (control means), when the referred data matches the expected value stored in the expected value storage unit 105, a. (False) is output to the clock control unit 103 to control the CPU 101 to return from the power saving mode. Note that the comparator 107 performs data reference and output of the a.power_save signal at a frequency sufficiently lower than the steady frequency that the CPU 101 uses as a reference.

条件検出時間記憶部108は、図2に示すように、比較器107によるステータスレジスタ111から参照したデータと期待値記憶部105に記憶された期待値とが一致するか否かの判断を行う所定時間(例えば、60秒)を記憶するタイマーレジスタである。   As shown in FIG. 2, the condition detection time storage unit 108 is a predetermined unit that determines whether the data referenced from the status register 111 by the comparator 107 matches the expected value stored in the expected value storage unit 105. It is a timer register that stores time (for example, 60 seconds).

時間監視部109(測定手段)は、比較器107によりステータスレジスタ111から参照したデータと期待値記憶部105に記憶された期待値とが一致するか否かを判断している時間を測定するH/W Timerである。   The time monitoring unit 109 (measurement unit) measures the time during which it is determined whether or not the data referenced from the status register 111 by the comparator 107 matches the expected value stored in the expected value storage unit 105. / W Timer.

本実施例では、比較器107は、時間監視部109により測定された時間が条件検出時間記憶部108に記憶された所定時間を超えた場合に(つまり、所定時間内にステータスレジスタ111から参照したデータと期待値記憶部105に記憶された期待値とが一致しなかった場合に)、a. power_ save信号(偽)をクロック制御部103に出力してCPU101が省電力モードから復帰するように制御する。   In this embodiment, the comparator 107 refers to the status register 111 when the time measured by the time monitoring unit 109 exceeds the predetermined time stored in the condition detection time storage unit 108 (that is, within the predetermined time). When the data does not match the expected value stored in the expected value storage unit 105), a. Power_save signal (false) is output to the clock control unit 103 so that the CPU 101 returns from the power saving mode. Control.

クロック制御部103は、CPU101が処理を実行する際に基準とするクロックをCPU101に供給するものである。より具体的には、クロック制御部103は、比較器107からa. power_ save信号(偽)が出力された場合、定常周波数でクロック(b. CPU CLK)をCPU101に出力する。一方、クロック制御部103は、比較器107からa power_ save信号(真)が出力された場合、クロック(b. CPU CLK)の出力を停止、または定常周波数より低い周波数でクロック(b. CPU CLK)をCPU101に出力する。   The clock control unit 103 supplies the CPU 101 with a reference clock when the CPU 101 executes processing. More specifically, when the a. Power_save signal (false) is output from the comparator 107, the clock control unit 103 outputs a clock (b. CPU CLK) to the CPU 101 at a steady frequency. On the other hand, when the a power_save signal (true) is output from the comparator 107, the clock control unit 103 stops the output of the clock (b. CPU CLK) or the clock (b. CPU CLK) at a frequency lower than the steady frequency. ) Is output to the CPU 101.

次に、図3を用いて、本実施例にかかる外部デバイス制御装置100における省電力制御処理の流れについて説明する。図3は、実施例1にかかる外部デバイス制御装置における省電力制御処理の流れを示すフローチャートである。   Next, the flow of the power saving control process in the external device control apparatus 100 according to the present embodiment will be described with reference to FIG. FIG. 3 is a flowchart of the power saving control process performed by the external device control apparatus according to the first embodiment.

比較器107は、CPU101においてポーリング処理の実行が必要となっていない場合(つまり、ステータスレジスタ111から参照したデータと期待値記憶部105に記憶された期待値とが一致するか否かを判断している場合)、クロック制御部103に対してa. power_ save信号(偽)を出力して、定常周波数でのクロックの供給を指示する(ステップS301)。   The comparator 107 determines whether or not the polling process is not necessary in the CPU 101 (that is, whether or not the data referenced from the status register 111 matches the expected value stored in the expected value storage unit 105). A. The power_save signal (false) is output to the clock control unit 103 to instruct the clock supply at the steady frequency (step S301).

CPU101は、ポーリング処理の実行が必要となった場合、比較器107に対してポーリング処理の代行を依頼するとともに、アドレス記憶部104、期待値記憶部105、条件記憶部106、および条件検出時間記憶部107に対して特定アドレス、期待値、比較条件、所定時間を設定する(ステップS302)。   When the CPU 101 needs to execute the polling process, the CPU 101 requests the comparator 107 to perform the polling process, and also stores the address storage unit 104, the expected value storage unit 105, the condition storage unit 106, and the condition detection time storage. A specific address, an expected value, a comparison condition, and a predetermined time are set for the unit 107 (step S302).

比較器107は、CPU101からポーリング処理の代行が依頼されると、アドレス記憶部104に記憶された特定アドレスに従って、ステータスレジスタ111からデータを繰り返し参照するとともに、条件記憶部106に記憶された比較条件において、参照したデータと期待値記憶部105に記憶された期待値とが一致するか否かを判断し、参照したデータと期待値とが一致しなかった場合、a. power_ save信号(真)をクロック制御部103に出力して、CPU101が省電力モードに遷移するように制御する(ステップS303)。   When the CPU 101 is requested to perform polling processing, the comparator 107 repeatedly refers to the data from the status register 111 in accordance with the specific address stored in the address storage unit 104 and also compares the comparison condition stored in the condition storage unit 106. , It is determined whether the referenced data matches the expected value stored in the expected value storage unit 105. If the referenced data does not match the expected value, a. Power_save signal (true) Is output to the clock control unit 103 to control the CPU 101 to transition to the power saving mode (step S303).

クロック制御部103は、比較器107からa. power_ save信号(真)が出力されると、CPU101へのクロックの供給を停止、若しくは定常周波数よりも低い周波数でクロックをCPU101に出力する(ステップS304)。   When the a.power_save signal (true) is output from the comparator 107, the clock control unit 103 stops supplying the clock to the CPU 101, or outputs the clock to the CPU 101 at a frequency lower than the steady frequency (step S304). ).

そして、比較器107は、参照したデータと期待値とが一致した場合、もしくは時間監視部109により測定した時間が条件検出時間記憶部108に記憶された所定時間を超えた場合、a. power_ save(偽)を出力して、CPU101が省電力モードから復帰するように制御する(ステップS305)。   Then, the comparator 107 determines that a. Power_save when the referenced data matches the expected value, or when the time measured by the time monitoring unit 109 exceeds the predetermined time stored in the condition detection time storage unit 108. (False) is output and the CPU 101 is controlled to return from the power saving mode (step S305).

クロック制御部103は、比較器107からa. power_ save信号(偽)が出力されると、CPU101に対して定常周波数でクロックを供給する(ステップS306)。クロック制御部103からのクロックの供給が再開されると、CPU101は、後続の処理または他の処理を実行する。   When the a.power_save signal (false) is output from the comparator 107, the clock control unit 103 supplies a clock at a steady frequency to the CPU 101 (step S306). When the supply of the clock from the clock control unit 103 is resumed, the CPU 101 executes subsequent processing or other processing.

このように本実施例にかかる外部デバイス制御装置100によれば、CPU101においてポーリング処理の実行が必要となった場合に、省電力モード管理部102(比較器107)がポーリング処理を代行して実行して、その間、CPU101を省電力モードに遷移させることにより、CPU101は省電力モードへの遷移のための複雑な処理や省電力モードからの復帰のための割り込み条件の考慮が不要なので、ポーリング処理中におけるCPU101の省電力モードへの遷移処理を容易に実装することができ、かつポーリング処理中におけるCPU101からの高速なバス使用負荷が軽減されてシステム全体の性能向上にも寄与することができる。   As described above, according to the external device control apparatus 100 according to the present embodiment, when the CPU 101 needs to execute the polling process, the power saving mode management unit 102 (comparator 107) executes the polling process instead. In the meantime, by causing the CPU 101 to transition to the power saving mode, the CPU 101 does not need to consider complicated processing for transition to the power saving mode and interrupt conditions for returning from the power saving mode. It is possible to easily implement the transition processing of the CPU 101 to the power saving mode in the middle, and to reduce the high-speed bus usage load from the CPU 101 during the polling processing, thereby contributing to the improvement of the performance of the entire system.

本実施例では、CPUの省電力モードへの遷移を複数の省電力モード管理部に委ねるものである。なお、上述の実施例と同様の箇所については説明を省略し、異なる箇所についてのみ説明する。   In this embodiment, the transition of the CPU to the power saving mode is entrusted to a plurality of power saving mode management units. In addition, description is abbreviate | omitted about the location similar to the above-mentioned Example, and only a different location is demonstrated.

図4は、実施例2にかかる外部デバイス制御装置の構成を示すブロック図である。本実施例にかかる外部デバイス制御装置400は、複数の省電力モード管理部102および検出部401を備える点において、実施例1にかかる外部デバイス制御装置100とは異なる。   FIG. 4 is a block diagram of the configuration of the external device control apparatus according to the second embodiment. The external device control apparatus 400 according to the present embodiment is different from the external device control apparatus 100 according to the first embodiment in that the external device control apparatus 400 includes a plurality of power saving mode management units 102 and detection units 401.

検出部401(検出手段)は、全ての省電力モード管理部102の比較器107からa. power_ save信号(真)が出力されたことを検出した場合に、c. power_ save信号(真)をクロック制御部103に出力して、CPU101を省電力モードに遷移させる。一方、検出部401は、少なくとも1つの省電力モード管理部102の比較器107からa. power_ save信号(偽)が出力されたことが検出した場合に、c. power_ save信号(偽)をクロック制御部103に出力して、CPU101を省電力モードから復帰させる。   When the detection unit 401 (detection unit) detects that the a. Power_save signal (true) is output from the comparators 107 of all the power saving mode management units 102, the detection unit 401 (detection unit) outputs the c. Power_save signal (true). It outputs to the clock control part 103, and makes CPU101 change to a power saving mode. On the other hand, when detecting that the a. Power_save signal (false) is output from the comparator 107 of the at least one power saving mode management unit 102, the detecting unit 401 clocks the c. Power_save signal (false). It outputs to the control part 103 and makes CPU101 return from a power saving mode.

このように本実施例にかかる外部デバイス制御装置400によれば、CPU101の省電力モードへの遷移を複数の省電力モード管理部102に委ねることにより、より細やかにCPU101の省電力モードへの遷移を制御することができる。   As described above, according to the external device control apparatus 400 according to the present embodiment, the transition of the CPU 101 to the power saving mode is more finely performed by entrusting the transition to the power saving mode of the CPU 101 to the plurality of power saving mode management units 102. Can be controlled.

本実施例では、CPUを省電力モードに遷移させるように制御されかつ予め設定された付加条件を満たした場合に、CPUを省電力モードに遷移させるものである。なお、上述の実施例と同様の箇所については説明を省略し、異なる箇所についてのみ説明する。   In this embodiment, when the CPU is controlled to shift to the power saving mode and a preset additional condition is satisfied, the CPU is shifted to the power saving mode. In addition, description is abbreviate | omitted about the location similar to the above-mentioned Example, and only a different location is demonstrated.

図5は、実施例3にかかる外部デバイス制御装置の構成を示すブロック図である。本実施例にかかる外部デバイス制御装置500は、省電力モード管理部501が付加条件監視部502を備える点において、上述の実施例と異なる。   FIG. 5 is a block diagram of the configuration of the external device control apparatus according to the third embodiment. The external device control apparatus 500 according to the present embodiment is different from the above-described embodiment in that the power saving mode management unit 501 includes an additional condition monitoring unit 502.

付加条件監視部502(監視手段)は、比較器107からa. power_ save信号(真)が出力され、かつ比較器107から出力されたa. power_ save信号が規定時間以上(真)の場合にのみクロック制御部103に対してa. power_ save信号(真)を出力するハードウェアタイマーである。これにより、ポーリング処理が必要となった時間が短い場合には、CPU101を省電力モードに遷移させないように制御することができる。   The additional condition monitoring unit 502 (monitoring means) outputs the a.power_save signal (true) from the comparator 107 and the a.power_save signal output from the comparator 107 is longer than a specified time (true). Only a hardware timer that outputs an a.power_save signal (true) to the clock controller 103. As a result, when the time required for the polling process is short, the CPU 101 can be controlled not to shift to the power saving mode.

なお、本実施例では、付加条件監視部502としてハードウェアタイマーを用いたが、比較器107からa. power_ save信号(真)が出力され、かつ予め設定された付加条件を満たした場合に、クロック制御部103に対してa. power_ save信号(真)を出力するものであれば、これに限定するものではない。例えば、付加条件監視部502として温度センサを用い、比較器107からa. power_ save信号(真)が出力され、かつ検出した温度が規定温度以下ならCPU101が省電力モードに遷移しないように制御する。さらに、付加条件監視部502は、ポーリング処理を実行する条件やポーリング処理を実行している監視時間の履歴などが、予め設定された付加条件を満たしたか否かを判断して、a. power_ save信号を出力しても良い。   In this embodiment, a hardware timer is used as the additional condition monitoring unit 502. However, when an a.power_save signal (true) is output from the comparator 107 and a predetermined additional condition is satisfied, As long as the a.power_save signal (true) is output to the clock control unit 103, the present invention is not limited to this. For example, if a temperature sensor is used as the additional condition monitoring unit 502 and the a.power_save signal (true) is output from the comparator 107 and the detected temperature is equal to or lower than a specified temperature, control is performed so that the CPU 101 does not transition to the power saving mode. . Further, the additional condition monitoring unit 502 determines whether or not the conditions for executing the polling process and the history of the monitoring time during which the polling process is executed satisfy the predetermined additional conditions, and a. Power_save A signal may be output.

このように本実施例にかかる外部デバイス制御装置500によれば、CPU101を省電力モードに遷移させるように制御されかつ予め設定された付加条件を満たした場合に、CPU101を省電力モードに遷移させることにより、例えば、ポーリング処理が必要となった時間が短い場合には、CPU101を省電力モードに遷移させないように制御することができるので、より細やかにCPU101の省電力モードへの遷移を制御することができる。   As described above, according to the external device control apparatus 500 according to the present embodiment, when the CPU 101 is controlled to shift to the power saving mode and the preset additional condition is satisfied, the CPU 101 is shifted to the power saving mode. Thus, for example, when the time required for the polling process is short, the CPU 101 can be controlled so as not to shift to the power saving mode, so the transition of the CPU 101 to the power saving mode is controlled more finely. be able to.

なお、本実施例の外部デバイス制御装置で実行されるプログラムは、ROM(Read Only Memory)等に予め組み込まれて提供される。本実施例の外部デバイス制御装置で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD(Compact Disk)−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   The program executed by the external device control apparatus of this embodiment is provided by being incorporated in advance in a ROM (Read Only Memory) or the like. The program executed by the external device control apparatus of this embodiment is a file in an installable format or an executable format, and is a CD (Compact Disk) -ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disk). ) Or the like may be recorded and provided on a computer-readable recording medium.

さらに、本実施例の外部デバイス制御装置で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施例の外部デバイス制御装置で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the program executed by the external device control apparatus of the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. Further, the program executed by the external device control apparatus of the present embodiment may be configured to be provided or distributed via a network such as the Internet.

本実施例の外部デバイス制御装置で実行されるプログラムは、上述した各部(省電力モード管理部、検出部、付加条件監視部など)を含むモジュール構成となっており、実際のハードウェアとしては、CPU101(主制御部)の定常周波数よりも十分に低い周波数で動作する副制御部としてのCPU(プロセッサ)が上記ROMからプログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、省電力モード管理部、検出部、付加条件監視部などが主記憶装置上に生成されるようになっている。   The program executed by the external device control apparatus according to the present embodiment has a module configuration including the above-described units (power saving mode management unit, detection unit, additional condition monitoring unit, etc.). As actual hardware, The CPU (processor) as a sub-control unit that operates at a frequency sufficiently lower than the steady frequency of the CPU 101 (main control unit) reads the program from the ROM and executes it, so that the respective units are loaded on the main storage device, A power saving mode management unit, a detection unit, an additional condition monitoring unit, and the like are generated on the main storage device.

100,400,500 外部デバイス制御装置
101 CPU
102 省電力モード管理部
107 比較器
109 時間監視部
401 検出部
502 付加条件監視部
100, 400, 500 External device control apparatus 101 CPU
102 power saving mode management unit 107 comparator 109 time monitoring unit 401 detection unit 502 additional condition monitoring unit

Claims (8)

特定アドレスのデータが期待値になるまで前記データを繰り返し参照して待つポーリング処理の実行が演算装置で必要となった場合に、前記ポーリング処理の実行により前記データが前記期待値と一致するか否かを判断する判断手段と、
前記データが前記期待値と一致すると判断されるまで、前記演算装置を省電力モードに遷移するように制御する制御手段と、
を備えたことを特徴とする省電力制御装置。
Whether or not the data matches the expected value due to the execution of the polling process when the processing unit needs to execute a polling process that repeatedly refers to the data and waits until the data at the specific address reaches the expected value A judging means for judging whether or not
Control means for controlling the arithmetic device to transition to a power saving mode until it is determined that the data matches the expected value;
A power-saving control device comprising:
前記データが前記期待値と一致するか否かを判断している時間を測定する測定手段をさらに備え、
前記制御手段は、さらに、測定した時間が所定時間を超えた場合に、前記省電力モードに遷移するように制御することを特徴とする請求項1に記載の省電力制御装置。
Measuring means for measuring a time for determining whether or not the data matches the expected value;
2. The power saving control device according to claim 1, wherein the control unit further controls to shift to the power saving mode when the measured time exceeds a predetermined time. 3.
前記判断手段および前記制御手段を備えた複数の省電力モード管理部と、
全ての前記省電力モード管理部の前記制御手段において前記省電力モードに遷移するように制御されたことが検出された場合に、前記省電力モードに遷移させる検出手段と、
をさらに備えたことを特徴とする請求項1または2に記載の省電力制御装置。
A plurality of power saving mode management units including the determination unit and the control unit;
Detecting means for transitioning to the power saving mode when it is detected that the control means of all the power saving mode management units is controlled to transition to the power saving mode;
The power saving control device according to claim 1, further comprising:
前記省電力モードに遷移するように制御され、かつ予め設定された付加条件を満たした場合に、前記省電力モードに遷移させる監視手段をさらに備えたことを特徴とする請求項1から3のいずれか一に記載の省電力制御装置。   4. The apparatus according to claim 1, further comprising a monitoring unit that is controlled to transition to the power saving mode and that transitions to the power saving mode when a preset additional condition is satisfied. The power saving control device according to any one of the above. 主制御部の省電力モードへの遷移および前記省電力モードからの復帰を制御する省電力制御装置で実行される省電力制御方法であって、
前記省電力制御装置は、前記主制御部より低い周波数で処理を行う副制御部と記憶部を備え、
前記副制御部で実行される、
判断手段が、特定アドレスのデータが期待値になるまで前記データを繰り返し参照して待つポーリング処理の実行が演算装置で必要となった場合に、前記ポーリング処理の実行により前記データが前記期待値と一致するか否かを判断する判断工程と、
制御手段が、前記データが前記期待値と一致すると判断されるまで、前記演算装置を前記省電力モードに遷移するように制御する制御工程と、
を含むことを特徴とする省電力制御方法。
A power saving control method executed by a power saving control device that controls a transition to a power saving mode of the main control unit and a return from the power saving mode,
The power saving control device includes a sub-control unit that performs processing at a lower frequency than the main control unit and a storage unit,
Executed in the sub-control unit,
When the calculation unit needs to execute a polling process in which the determination unit repeatedly refers to the data and waits until the data at the specific address reaches the expected value, the data is set to the expected value by executing the polling process. A determination step of determining whether or not they match,
A control step for controlling the arithmetic device to transition to the power saving mode until the control means determines that the data matches the expected value;
A power saving control method comprising:
前記副制御部で実行される、
測定手段が、前記データが前記期待値と一致するか否かを判断している時間を測定する測定工程をさらに含み、
前記制御工程は、さらに、測定した時間が所定時間を超えた場合に、前記省電力モードに遷移するように制御することを特徴とする請求項5に記載の省電力制御方法。
Executed in the sub-control unit,
The measuring means further includes a measuring step of measuring a time during which it is determined whether or not the data matches the expected value;
6. The power saving control method according to claim 5, wherein the control step further performs control so as to transition to the power saving mode when the measured time exceeds a predetermined time.
前記副制御部で実行される、
検出手段が、前記判断手段および前記制御手段を備えた複数の省電力モード管理部のうち、全ての前記省電力モード管理部の前記制御手段において前記省電力モードに遷移するように制御されたことが検出された場合に、前記省電力モードに遷移させる検出工程と、
をさらに含むことを特徴とする請求項5または6に記載の省電力制御方法。
Executed in the sub-control unit,
The detection means is controlled to shift to the power saving mode in the control means of all the power saving mode management sections among the plurality of power saving mode management sections provided with the determination means and the control means. A detection step of transitioning to the power saving mode when
The power saving control method according to claim 5, further comprising:
前記副制御部で実行される。
監視手段が、前記省電力モードに遷移するように制御され、かつ予め設定された付加条件を満たした場合に、前記省電力モードに遷移させる監視工程をさらに含むことを特徴とする請求項5から7のいずれか一に記載の省電力制御方法。
It is executed by the sub-control unit.
The monitoring means is further controlled to transition to the power saving mode, and further includes a monitoring step of transitioning to the power saving mode when a preset additional condition is satisfied. 8. The power saving control method according to any one of 7.
JP2009157237A 2009-07-01 2009-07-01 Power-saving controller and power-saving control method Pending JP2011013914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009157237A JP2011013914A (en) 2009-07-01 2009-07-01 Power-saving controller and power-saving control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009157237A JP2011013914A (en) 2009-07-01 2009-07-01 Power-saving controller and power-saving control method

Publications (1)

Publication Number Publication Date
JP2011013914A true JP2011013914A (en) 2011-01-20

Family

ID=43592731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009157237A Pending JP2011013914A (en) 2009-07-01 2009-07-01 Power-saving controller and power-saving control method

Country Status (1)

Country Link
JP (1) JP2011013914A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015191279A (en) * 2014-03-27 2015-11-02 富士通株式会社 processing system
JP2016035671A (en) * 2014-08-04 2016-03-17 京セラドキュメントソリューションズ株式会社 Electronic apparatus and mode control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015191279A (en) * 2014-03-27 2015-11-02 富士通株式会社 processing system
JP2016035671A (en) * 2014-08-04 2016-03-17 京セラドキュメントソリューションズ株式会社 Electronic apparatus and mode control method

Similar Documents

Publication Publication Date Title
US7487371B2 (en) Data path controller with integrated power management to manage power consumption of a computing device and its components
US8695008B2 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
KR101242893B1 (en) Hardware automatic performance state transitions in system on processor sleep and wake events
JP5074389B2 (en) Microprocessor with automatic selection of SIMD parallel processing
KR20190109408A (en) Adaptive Power Control Loop
EP2766788B1 (en) System and method for determining thermal management policy from leakage current measurement
JP4392479B2 (en) Power management apparatus and method
US8230237B2 (en) Pre-boot environment power management
KR101450381B1 (en) Power management in a system having a processor and a voltage converter that provides a power voltage to the processor
EP3332306B1 (en) System and method for cache aware low power mode control in a portable computing device
JP2010170536A (en) Programmable controller
JP4078644B2 (en) Information processing apparatus and method, and program
JP2011013914A (en) Power-saving controller and power-saving control method
US20100070793A1 (en) Clock supply device
JP5783348B2 (en) Control device, control program, and image forming apparatus
JP2010097427A (en) Processing apparatus, processing method and computer program
CN109478087B (en) Method and apparatus for maintaining node power budget for a system sharing power supply
JP4798445B2 (en) Power saving control method, image forming apparatus, and program
JP2018112910A (en) Power control monitoring device, and computer, power control monitoring method and program using the same
KR100728867B1 (en) Method for controlling state of a processor board
JP2004326482A (en) Power-saving control device
JP2011258053A (en) Micro computer
TW201541237A (en) Electronic device and system power management method thereof