JP2010039543A - Processing apparatus, method of determining clock frequency, and computer program - Google Patents
Processing apparatus, method of determining clock frequency, and computer program Download PDFInfo
- Publication number
- JP2010039543A JP2010039543A JP2008198525A JP2008198525A JP2010039543A JP 2010039543 A JP2010039543 A JP 2010039543A JP 2008198525 A JP2008198525 A JP 2008198525A JP 2008198525 A JP2008198525 A JP 2008198525A JP 2010039543 A JP2010039543 A JP 2010039543A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- clock frequency
- cpu
- processing capacity
- capacity
- 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.)
- Granted
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
本発明は、クロック信号に同期して動作する処理装置の外部状況、又はアプリケーションプログラムに応じてクロック周波数を決定し、状況に応じた処理能力で処理を実行し、消費電力を有効に低減させることができる処理装置、クロック周波数決定方法、及びコンピュータプログラムに関する。 The present invention determines the clock frequency according to an external situation of a processing apparatus that operates in synchronization with a clock signal or an application program, executes a process with a processing capability according to the situation, and effectively reduces power consumption. The present invention relates to a processing apparatus, a clock frequency determination method, and a computer program.
昨今では、機器の省電力化が進められている。そのために、クロック周波数を変更することが可能に設定されており、スリープ時にはクロック周波数を低下させて処理を行なうなどの制御が可能なコンピュータ装置が普及している。 In recent years, power saving of devices has been promoted. For this reason, it is set so that the clock frequency can be changed, and a computer device capable of performing control such as performing processing by lowering the clock frequency during sleep has become widespread.
例えば、特許文献1には、実行される割り込み又はアプリケーションプログラムの内容に基づいてCPU(Central Processing Unit)及び他のシステムバスに可変のクロック周波数のクロック信号を供給する周波数シンセサイザを有する装置が開示されている。特許文献1に開示されている技術では、実行されるべき所定のアプリケーションプログラム又はCPUの利用度に基づいてクロック周波数を変更することができる。また、特許文献1に開示されている技術では、実行するアプリケーションプログラム毎に最適なクロック周波数を対応付けて予め定めて記憶しておき、実行するアプリケーションプログラムに対応して記憶してあるクロック周波数に変更することが可能である。
上述のように、クロック周波数が変更可能であって更に、実行するアプリケーションプログラムに応じてクロック周波数を最適に決めることはできる。しかしながら、クロック周波数は、CPU又はMPU(Micro Processing Unit)の性能に応じて決定される処理装置毎の固有の値である。アプリケーションプログラム毎に周波数を予め記憶しておく構成では各処理装置について最適なクロック周波数を夫々予め算出しておく必要があり、汎用的ではない。また、複数のアプリケーションプログラムを同時的に実行する場合に、最適なクロック周波数を決定することができない。 As described above, the clock frequency can be changed, and the clock frequency can be optimally determined according to the application program to be executed. However, the clock frequency is a unique value for each processing device determined according to the performance of the CPU or MPU (Micro Processing Unit). In the configuration in which the frequency is stored in advance for each application program, it is necessary to previously calculate the optimum clock frequency for each processing apparatus, and it is not general-purpose. In addition, when a plurality of application programs are executed simultaneously, an optimal clock frequency cannot be determined.
また、複数の処理装置及び周辺機器で連携して処理を行なう場合など、外部状況及び各処理装置の機能に応じて各処理装置夫々に必要とされる処理能力の高低が変化するときがある。この場合、処理装置自身にて実行中のアプリケーションプログラムの数、種類等の装置自身の状況に応じたクロック周波数の変更制御では不足である。同一のアプリケーションプログラムを実行する場合でも、外部状況によっては必要となる処理能力が異なる場合がある。各処理装置は外部状況及びアプリケーションプログラムの種類等に応じて復号的に必要となる処理能力を求め、クロック周波数を適切に変更することにより、高い処理能力が望まれない処理装置で過剰に電力が消費されることを回避することが望まれる。 Also, when processing is performed in cooperation with a plurality of processing devices and peripheral devices, the level of processing capacity required for each processing device may change depending on the external situation and the function of each processing device. In this case, the control of changing the clock frequency according to the status of the device itself such as the number and type of application programs being executed by the processing device itself is insufficient. Even when the same application program is executed, the required processing capacity may differ depending on the external situation. Each processing device obtains the processing capacity required for decoding according to the external situation and the type of application program, etc., and by appropriately changing the clock frequency, excessive power is consumed by processing devices that do not want high processing capacity. It is desirable to avoid being consumed.
本発明は斯かる事情に鑑みてなされたものであり、クロック信号に同期して処理を行なう処理装置が外部状況に応じて必要とされる処理能力で処理を実行し、消費電力を状況に応じて有効に低減させることができる処理装置、クロック周波数決定方法、及びコンピュータプログラムを提供することを目的とする。 The present invention has been made in view of such circumstances, and a processing device that performs processing in synchronization with a clock signal executes processing with processing power required according to an external situation, and changes power consumption according to the situation. It is an object of the present invention to provide a processing device, a clock frequency determination method, and a computer program that can be effectively reduced.
第1発明に係る処理装置は、周波数を変更することが可能なクロック信号に同期して処理を実行する処理装置において、一又は複数の外部状況と、各外部状況下での処理の実行に要する必要処理能力との対応を記憶する処理能力記憶手段と、外部状況を検知する検知手段と、該検知手段が検知した外部状況に対応して、前記処理能力記憶手段により記憶してある必要処理能力に基づき、実行する処理に必要な能力を算出する算出手段と、該算出手段が算出した能力に応じてクロック周波数を決定する手段とを備えることを特徴とする。 The processing device according to the first aspect of the present invention is a processing device that executes processing in synchronization with a clock signal whose frequency can be changed, and is required to execute one or a plurality of external situations and the processing under each external situation. Processing capacity storage means for storing correspondence with required processing capacity, detection means for detecting an external situation, and required processing capacity stored by the processing capacity storage means in correspondence with the external situation detected by the detection means And calculating means for calculating the capacity required for the processing to be executed, and means for determining the clock frequency according to the capacity calculated by the calculating means.
第2発明に係る処理装置は、一又は複数のアプリケーションプログラムを実行する実行手段を備え、前記処理能力記憶手段により、各外部状況下での前記アプリケーションプログラムの実行に要する必要処理能力を、アプリケーションプログラム毎に記憶するようにしてあり、前記算出手段は、前記検知手段が検知した外部状況に対応し、実行するアプリケーションプログラムに対応して記憶してある必要処理能力を抽出する抽出手段を備え、該抽出手段が抽出した必要処理能力に基づき、必要な能力を算出するようにしてあることを特徴とする。 A processing apparatus according to a second aspect of the present invention comprises execution means for executing one or a plurality of application programs, and the processing capacity storage means determines the required processing capacity required for executing the application program under each external situation. Each of the calculation means includes an extraction means for extracting the necessary processing capacity corresponding to the application program to be executed corresponding to the external situation detected by the detection means, The required capacity is calculated based on the required processing capacity extracted by the extraction means.
第3発明に係る処理装置は、前記実行手段が複数のアプリケーションプログラムを同時的に実行する場合、前記算出手段は、前記抽出手段が前記複数のアプリケーションプログラム夫々に対応して抽出した必要処理能力に基づき、総合必要処理能力を算出する手段を備え、前記総合必要処理能力を必要な能力として算出するようにしてあることを特徴とする。 In the processing device according to the third invention, when the execution means executes a plurality of application programs at the same time, the calculation means uses the required processing capacity extracted by the extraction means corresponding to each of the plurality of application programs. On the basis of this, a means for calculating the total required processing capacity is provided, and the total required processing capacity is calculated as a required capacity.
第4発明に係る処理装置は、総合必要処理能力の合計と、クロック周波数との対応を記憶しておく手段を備え、算出した総合必要処理能力に基づくクロック周波数を取得することにより、クロック周波数を決定するようにしてあることを特徴とする。 The processing apparatus according to the fourth aspect of the invention comprises means for storing the correspondence between the total required processing capacity and the clock frequency, and obtains the clock frequency based on the calculated total required processing capacity, thereby obtaining the clock frequency. It is characterized by being determined.
第5発明に係るクロック周波数決定方法は、周波数を変更することが可能なクロック信号に同期して処理を実行する処理装置のクロック周波数を決定する方法において、一又は複数の外部状況と、各外部状況下での処理装置による処理の実行に要する必要処理能力との対応を予め記憶しておき、外部状況を検知し、検知した外部状況に対応して予め記憶してある必要処理能力に基づき、前記処理装置で実行する処理に必要な能力を算出し、算出した能力に応じてクロック周波数を決定することを特徴とする。 A clock frequency determination method according to a fifth aspect of the present invention is a method for determining a clock frequency of a processing device that executes processing in synchronization with a clock signal whose frequency can be changed. Pre-store the correspondence with the required processing capacity required for execution of processing by the processing device under the situation, detect the external situation, based on the necessary processing capacity stored in advance corresponding to the detected external situation, A capability required for processing executed by the processing device is calculated, and a clock frequency is determined according to the calculated capability.
第6発明に係るコンピュータプログラムは、周波数を変更することが可能なクロック信号に同期して処理を行なうコンピュータに、クロック周波数の変更の制御を行なわせるコンピュータプログラムにおいて、コンピュータに、外部状況を検知させ、予め記憶されてある外部状況と各外部状況下での処理の実行に要する必要処理能力との対応から、検知した外部状況に対応する必要処理能力を取得させ、取得した必要処理能力に基づき、実行する処理に必要な能力を算出させ、算出した能力に応じてクロック周波数を決定させることを特徴とする。 According to a sixth aspect of the present invention, there is provided a computer program for causing a computer that performs processing in synchronization with a clock signal capable of changing a frequency to control the change of the clock frequency, and causing the computer to detect an external situation. , From the correspondence between the external situation stored in advance and the necessary processing capacity required to execute the process under each external situation, the necessary processing capacity corresponding to the detected external situation is acquired, and based on the obtained necessary processing capacity, It is characterized in that the capacity required for the processing to be executed is calculated, and the clock frequency is determined according to the calculated capacity.
第1発明、第5発明及び第6発明では、処理装置(コンピュータ)に接続される外部装置の状況、周辺環境の状況、経過時間等の外部状況が予め定義され、各状況下における処理の実行に要する必要処理能力が予め記憶される。処理装置(コンピュータ)は内蔵する測定器若しくは外付けのセンサから得られるデータ、又は外部装置から通信媒体を介して受信するデータ等に基づき、現在の状況が定義されている外部状況の内のいずれかに当てはまるかを検知する。そして処理装置(コンピュータ)は、検知した外部状況に対応する必要処理能力に基づき、総合的に必要な処理能力を算出し、算出した能力に応じてクロック周波数を決定する。これにより、処理装置(コンピュータ)自身の内部状況のみならず、外部状況に応じてクロック周波数を変更することが可能となる。 In the first invention, the fifth invention, and the sixth invention, external conditions such as the status of the external device connected to the processing device (computer), the status of the surrounding environment, and the elapsed time are defined in advance, and the processing is executed under each status. Necessary processing capacity required for this is stored in advance. The processing device (computer) is one of the external situations where the current situation is defined based on the data obtained from the built-in measuring instrument or external sensor, or the data received from the external device via the communication medium. Detect whether it is true. Then, the processing device (computer) comprehensively calculates the required processing capacity based on the required processing capacity corresponding to the detected external situation, and determines the clock frequency according to the calculated capacity. This makes it possible to change the clock frequency in accordance with not only the internal state of the processing apparatus (computer) itself but also the external state.
第2発明では、処理装置は一又は複数のアプリケーションプログラムを実行することが可能であり、予め記憶してある外部状況によって異なるアプリケーションプログラム毎の実行に要する処理能力に基づき、検知される外部状況と実行するアプリケーションプログラムとに基づいて必要処理能力を抽出し、総合的に処理に必要な能力を算出する。これにより、より精度よく必要な処理能力を求め、同一の外部状況下でも実行するアプリケーションプログラムに応じてクロック周波数を変更することが可能であり、また、同一のアプリケーションプログラムを実行している場合であっても異なる外部状況に応じて柔軟にクロック周波数を変更することが可能である。 In the second invention, the processing device can execute one or a plurality of application programs, and the detected external situation is based on the processing capability required for execution of each application program depending on the external situation stored in advance. The necessary processing capacity is extracted based on the application program to be executed, and the capacity necessary for the processing is calculated comprehensively. As a result, it is possible to obtain the required processing capacity with higher accuracy, change the clock frequency according to the application program to be executed even under the same external situation, and when the same application program is being executed. Even in such a case, it is possible to flexibly change the clock frequency according to different external conditions.
第3発明では、複数のアプリケーションプログラムを同時的に実行する場合には各アプリケーションプログラムを実行する場合に検知された外部状況下で夫々必要とする処理能力を合計した合計必要処理能力に基づき、クロック周波数が決定される。これにより、外部状況の差異、更に実行中の複数のアプリケーションプログラムの組み合わせに応じて適切な処理能力となるようにクロック周波数を変更することが可能となる。 In the third invention, when a plurality of application programs are executed at the same time, the clock is based on the total required processing capacity obtained by adding up the processing capacities required under external conditions detected when each application program is executed. The frequency is determined. As a result, the clock frequency can be changed so as to obtain an appropriate processing capability in accordance with the difference in external situation and the combination of a plurality of application programs being executed.
第4発明では、必要処理能力の合計とクロック周波数との対応を予め処理装置毎に記憶しておくことにより、クロック周波数を決定する処理を軽くすることが可能となる。 In the fourth aspect of the invention, the correspondence between the total required processing capacity and the clock frequency is stored in advance for each processing device, so that the processing for determining the clock frequency can be reduced.
本発明による場合、処理装置は自身の内部状況のみならず、外部状況によって夫々異なる必要処理能力に適したクロック周波数に変更することが可能となる。一の機能を発揮するために同一の処理を実行している場合であっても、例えば処理開始時と処理終了時とでは処理開始時の方が要求される処理能力が高いなど、異なる状況に応じて適切な処理能力となるようにクロック周波数を調整することができる。したがって必要がないにも拘らず、クロック周波数が過剰に高くなることをより精度よく回避することができ、消費電力を有効に低減させることができる。 According to the present invention, the processing apparatus can be changed to a clock frequency suitable for different required processing capabilities depending on not only the internal situation of itself but also the external situation. Even when the same process is executed to perform one function, the processing capacity required at the start of the process is higher at the start of the process and at the end of the process, such as a higher processing capacity. Accordingly, the clock frequency can be adjusted so as to obtain an appropriate processing capability. Therefore, although it is not necessary, an excessive increase in the clock frequency can be avoided with higher accuracy, and power consumption can be effectively reduced.
例えば処理開始時には必要とする処理能力が高いが、それ以外では必要とする処理能力は低い処理を行なう場合に、処理開始時以外においてはクロック周波数を低くするようにすることが可能となる。このように、より詳細に必要とされる処理能力に応じてクロック周波数を調整することにより、効率的にハードウェア資源を利用して消費電力を低減させることができる。 For example, when processing is performed which requires a high processing capacity at the start of processing but has a low processing capacity other than that, the clock frequency can be lowered at times other than the start of processing. Thus, by adjusting the clock frequency according to the processing capability required in more detail, it is possible to efficiently use hardware resources and reduce power consumption.
以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。 Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof.
なお、以下に示す実施の形態では、本発明に係る処理装置を、特定の処理を実行するように設計されたマイクロコンピュータ(以下、マイコンという)に適用した場合を例に説明する。更に詳細には、以下の実施の形態では車両に搭載されて種々の制御を行なうECU(Electronic Control Unit)のマイコンにおける処理に適用した例を示す。 In the embodiment described below, a case where the processing apparatus according to the present invention is applied to a microcomputer (hereinafter referred to as a microcomputer) designed to execute a specific process will be described as an example. More specifically, in the following embodiment, an example applied to processing in a microcomputer of an ECU (Electronic Control Unit) that is mounted on a vehicle and performs various controls will be described.
(実施の形態1)
図1は、実施の形態1におけるマイコンの構成を示すブロック図である。マイコン1は、CPU10、クロック部11、RAM(Random Access Memory)12、ROM(Read Only Memory)13、及びI/O(Input/Output)部14を含んで構成される。
(Embodiment 1)
FIG. 1 is a block diagram showing the configuration of the microcomputer according to the first embodiment. The
CPU10は、ROM13に記憶されている各プログラムを読み出して実行することにより、マイコン1を特定の処理を行なうハードウェアとして動作させる。具体的には、CPU10は、ROM13に記憶されている制御プログラム1P及びアプリケーションプログラム131を読み出して実行することにより、RAM12と協働してI/O部14を介して接続される外部機器の制御を行なう。なお、CPU10による演算処理は、後述するクロック部11から出力されるクロック信号の周波数に同期して行なわれる。
The
クロック部11は、水晶振動子若しくはセラミック振動子等を利用した固定振動子発振回路、又はリングオシレータ等のように所定周波数の発振信号を出力する発振回路を含む。また、クロック部11は、発振回路から出力される発振信号を分周する分周回路及び逓倍する逓倍回路を含む。クロック信号としてCPU10のみならず、RAM12、ROM13等の各構成部へ出力する。クロック部11は、CPU10からの制御信号に応じ、出力するクロック信号の周波数を決定してCPU10へ供給するようにしてある。クロック周波数の設定は、発振回路から固定的に出力される発振信号の周波数のn倍又は1/n倍(nは自然数)にするかを設定することにより実現可能である。
The
RAM12は、SRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等のデータの書き換えが可能で且つ高速にアクセスすることが可能なメモリを利用する。RAM12には、CPU10にて実行される各種プログラムが読み出されて記憶されると共に、CPU10による演算処理の過程で発生するデータが一時的に記憶される。
The
ROM13は、フラッシュメモリ、マスクROM、EPROM(Erasable Programmable ROM)、又はEEPROM(Electrically Erasable Programmable ROM)等の読み出し時にデータが失われないメモリを利用する。ROM13には、CPU10が読み出して実行する制御プログラム1Pが記憶されている。また、ROM13にはECUの制御機能を実現するアプリケーションプログラム131が記憶されている。また、ROM13にはCPU10が参照する対応テーブル132及びクロック周波数テーブル133が記憶されている。対応テーブル132の詳細については後述にて説明する。
The
I/O部14は、外部からの信号入力を受け付けると共に、外部への信号出力を実現する複数の端子を含むインタフェースである。A/D変換、D/A変換機能を有している構成としてもよい。例えば、I/O部14には、マイコン1の制御に用いられるデータを取得する測定器、センサ等が接続される。CPU10は、I/O部14により取得されるデータを用いて制御が可能である。また、I/O部14にはネットワークコントローラが接続され、CPU10はネットワークを介して送受信されるデータを取得することが可能である。I/O部14にはマイコン1による制御対象である各種負荷、又はアクチュエータが接続されており、マイコン1はI/O部14により制御信号を制御対象へ出力する。
The I /
図2は、実施の形態1におけるROM13に記憶される対応テーブル132及びクロック周波数テーブル133の内容例を示す説明図である。図2(a)は対応テーブル132の内容例を示し、図2(b)はクロック周波数テーブル133の内容例を示す。
FIG. 2 is an explanatory diagram showing an example of the contents of the correspondence table 132 and the clock frequency table 133 stored in the
図2(a)に示すように、対応テーブル132には各状況下においてCPU10に必要とされる処理能力が相対的数値で示されて記憶される。なお図2(a)に示す内容例は、マイコン1が動作するECUが、複数のECUを接続するネットワークにおける多重通信を制御する機能を有するECUである場合の例である。図2(a)に示す内容例は、マイコン1が動作するECUが、ネットワークを介した通信を開始するためにネットワークを起動、即ちECUのネットワークコントローラを起動し各種設定の初期化を始める場合は、CPU10は「20」で表わされる処理能力が必要とされる。また、マイコン1が動作するECUが搭載された車両のエンジンが始動中は、CPU10は「10」で表わされる処理能力が必要となる。更に、バッテリ劣化警告中は、CPU10は「10」で表わされる処理能力が必要となる。また、前記ネットワークにおける多重通信が停止中には特に処理は必要とされないので「1」で表わされる処理能力が必要とされる。
As shown in FIG. 2 (a), the correspondence table 132 stores the processing capability required for the
そして図2(b)に示すように、クロック周波数テーブル133には必要処理能力に応じたクロック周波数の相対的な高低が記憶されている。クロック周波数の高低は、CPU10に応じた具体的な数値で記憶してもよい。図2(b)に示す内容例では、CPU10に必要とされる処理能力が「1〜10」の場合はクロック周波数は低周波数でよく、「11〜20」の場合はクロック周波数は中程度とすべきことが示されている。そしてCPU10に必要とされる処理能力が「21」以上である場合はクロック周波数は高周波数とすべきことが示されている。
As shown in FIG. 2B, the clock frequency table 133 stores the relative level of the clock frequency corresponding to the required processing capacity. The level of the clock frequency may be stored as a specific numerical value corresponding to the
上述の対応テーブル132及びクロック周波数テーブル133の例を参照した場合、CPU10はネットワーク起動直後には高周波数のクロック信号に基づき動作し、エンジン始動中は中周波数のクロック信号に基づき動作し、多重通信停止中は低周波数のクロック信号に基づき動作するように設定されている。
When referring to the examples of the correspondence table 132 and the clock frequency table 133 described above, the
このように構成されるマイコン1のCPU10が、外部状況に応じてクロック周波数を決定し、必要な場合に変更する処理についてフローチャートを参照して説明する。
A process in which the
図3は、実施の形態1におけるマイコン1のCPU10がクロック周波数を決定して変更する処理手順の一例を示すフローチャートである。CPU10は、ROM13に記憶されている制御プログラム1PをRAM12に読み出して実行することにより、以下に示す処理を実行する。
FIG. 3 is a flowchart illustrating an example of a processing procedure in which the
CPU10は、外部状況の変化を検知したか否かを判断する(ステップS11)。CPU10は、自身が内蔵する図示しないタイマ等により起動してからの経過時間、I/O部14に接続されるセンサ、測定器等から得られるデータ、又はI/O部14に接続されるネットワークコントローラを介して外部装置から得られるデータに基づき外部状況を検知する。CPU10は、検知した外部状況を示すデータをRAM12に一時的に記憶しておき、次に検知した外部状況を示すデータの内容と比較し、外部状況が変化したか否かを判断するようにしてもよい。
CPU10 judges whether the change of the external condition was detected (step S11). The
CPU10は、外部状況の変化を検知していないと判断した場合(S11:NO)、処理をステップS11へ戻して外部状況の変化を検知したと判断するまで待機する。CPU10は、外部状況の変化を検知したと判断した場合(S11:YES)、ROM13から対応テーブル132を参照し(ステップS12)、対応テーブル132から検知した外部状況に対応する必要処理能力を取得する(ステップS13)。
If the
CPU10は次に、ROM13からクロック周波数テーブル133を参照し(ステップS14)、クロック周波数テーブル133から、ステップS13で取得した必要処理能力に対応するクロック周波数を読み出して決定する(ステップS15)。そしてCPU10は、ステップS15で決定したクロック周波数を指示する制御信号をクロック部11へ入力することにより、クロック周波数を変更し(ステップS16)、処理を終了する。
Next, the
なお、外部状況の変化を検知したものの、ステップS15で決定したクロック周波数がそれまでのクロック回路11により出力されているクロック周波数と変わらない場合にはステップS16の処理は省略してよい。
If a change in the external situation is detected, but the clock frequency determined in step S15 is not different from the clock frequency output by the
次に、図3のフローチャートに示したようにCPU10がROM13のテーブルを参照して実行する処理により、クロック周波数が決定され、変更される結果を具体例を挙げて説明する。図4は、実施の形態1におけるマイコン1のCPU10によって決定されるクロック周波数を示す説明図である。横軸に時間の経過を示し、縦軸は周波数の高低を示す。なお説明図の上部には時間の経過に応じて変化している外部状況を示す。
Next, the result of determining and changing the clock frequency by processing executed by the
図4に示す例では、マイコン1は時点t0ではスリープ状態である。その後時点t1で、マイコン1は割り込みによりスリープ状態から起動すると共にネットワークの起動を開始する。CPU10は、割り込みの検知及びネットワークコントローラの起動を検知することによりネットワークの起動を検知した場合、ROM13の対応テーブル132及びクロック周波数テーブル133を参照してクロック周波数を高周波数に変更する。
In the example shown in FIG. 4, the
そしてマイコン1は時点t2で、ネットワーク起動の処理を終了する。CPU10は、ネットワークコントローラからの信号、又は内蔵タイマによる経過時間の測定等によってこれを検知する。CPU10は、対応テーブル132及びクロック周波数テーブル133を参照してクロック周波数を中周波数に変更する。
Then, the
次に、時点t3で多重通信が停止された場合、CPU10は、ネットワークコントローラの停止を検知することにより、又はCPU10自身の処理によって停止することを示す信号を出力するなどにより、多重通信が停止されたことを検知する。この場合CPU10は、対応テーブル132及びクロック周波数テーブル133を参照してクロック周波数を低周波数に変更する。
Next, when the multiplex communication is stopped at time t3, the
その後時点t4で多重通信が再度開始された場合、CPU10は、ネットワークコントローラからの信号を検知する等により多重通信の再開を検知する。この場合、CPU10は、対応テーブル132及びクロック周波数テーブル133を参照してクロック周波数を中周波数に変更する。
Thereafter, when the multiplex communication is started again at time t4, the
図4に示したように、CPU10が実行する処理の内容によらず、他の外部装置の状況、ネットワークの状況、経過時間等の外部状況に応じてクロック周波数を適宜決定し変更することができる。これにより、異なる状況に応じてマイコン1の能力を適切な処理能力とすることができる。したがって、高い処理能力が求められていないにも拘らず、過剰に高周波数のクロック信号で動作して無駄に電力を消費することを精度よく回避することができ、有効に消費電力を低減させることができる。
As shown in FIG. 4, the clock frequency can be appropriately determined and changed according to external conditions such as the status of other external devices, the status of the network, and the elapsed time, regardless of the contents of the processing executed by the
(実施の形態2)
実施の形態2では、実施の形態1に示した外部状況に応じた周波数の決定に加え、マイコン1が実行するアプリケーションプログラムの数及び種類に応じてクロック周波数を決定する例を示す。実施の形態2では、マイコン1が複数のアプリケーションプログラムを実行可能な構成とする。実施の形態2におけるマイコン1は、外部状況及び実行中のアプリケーションプログラムに応じて周波数を決定する。
(Embodiment 2)
The second embodiment shows an example in which the clock frequency is determined according to the number and type of application programs executed by the
図5は、実施の形態2におけるマイコンの構成を示すブロック図である。マイコン2は、CPU20、クロック部21、RAM22、ROM23、及びI/O部24を含んで構成される。なお、各構成部の詳細は、CPU20により実現される具体的な処理の内容、及びROM23に記憶されているテーブル、及び、ROM23に記憶されているプログラムにより実現される機能以外は実施の形態1と同様である。
FIG. 5 is a block diagram showing a configuration of the microcomputer according to the second embodiment. The
CPU20は、実施の形態1におけるマイコン1のCPU10と同様にROM23に記憶されている各プログラムを読み出して実行する。そして、CPU20はRAM22と協働してI/O部24を介して接続される外部機器の制御を行なう。CPU20による演算処理は、クロック部21から出力されるクロック信号の周波数に同期して行なわれる。
The
クロック部21は、実施の形態1におけるマイコン1のクロック部11と同様に発振回路、分周回路、及び逓倍回路を含む。クロック部21はCPU20からの制御信号に応じ、出力するクロック信号の周波数を決定してCPU20へ供給する。
Similarly to the
RAM22は、実施の形態1におけるマイコン1のRAM12と同様に、CPU20にて実行される各種プログラムが読み出されて記憶されると共に、CPU20による演算処理の過程で発生するデータが一時的に記憶される。
The
ROM23は、実施の形態1におけるマイコン1のROM13と同様である。ただし実施の形態2におけるマイコン2のCPU20は複数のアプリケーションプログラムを実行する。したがってROM23には、制御プログラム2P、各種制御機能を実現する複数のアプリケーションプログラム231,231,…が記憶されている。そして、ROM23には、CPU20が参照する対応テーブル232及びクロック周波数テーブル233が記憶されている。
The
I/O部24も、実施の形態1におけるマイコン1のI/O部14と同様である。CPU20はI/O部24を介して測定器、センサ等の外部機器、又はネットワークと接続されてデータを取得することが可能であり、I/O部24を介して各種負荷又はアクチュエータ等の制御対象へ制御信号を出力することが可能である。
The I /
図6は、実施の形態2におけるCPU20にて実行されるプログラムの階層構造を説明するための説明図である。CPU20は、ROM23に記憶されている制御プログラム2P、及びアプリケーションプログラム231を夫々RAM22に読み出して実行する。CPU20にて実行される各プログラムは、CPU20にて実行される制御プログラム2Pにて実現される抽象化層及びプラットフォーム層、アプリケーションプログラム231,231,…により実現されるアプリケーション層の3つの階層に分類することが可能である。
FIG. 6 is an explanatory diagram for explaining a hierarchical structure of a program executed by
ここで抽象化層とは、CPU20自身及びROM23、RAM22等のハードウェア資源の構成を抽象化(仮想化)し、共通の動作環境を与えるためのプログラムである。抽象化層は制御プログラム2Pの一部により実現される。抽象化層に対応するプログラムは、特にCPU20の性能等のハードウェア構成に依存する。したがって、他のCPUに対しては異なる抽象化層のプログラムを用いる。
Here, the abstraction layer is a program for abstracting (virtualizing) the configuration of hardware resources such as the
プラットフォーム層は、上位層のアプリケーション層にて実行される複数のアプリケーションプログラム231,231,…で共通する処理を実現するプログラムである。プラットフォーム層は制御プログラム2Pの一部により実現される。複数のアプリケーションプログラム231,231,…で共通する処理とは、RAM22又はROM23との間におけるデータの読み書き、外部に接続されるネットワークコントローラの制御等の機能をいう。プラットフォーム層に対応するプログラムはハードウェア構成に依存しない。したがって異なるCPUに対しても同じプラットフォーム層に対応するプログラムを用いることができる。プラットフォーム層のプログラムを独立してプラットフォームプログラムとしてROM23に記憶しておき、CPU20が読み出して実行する構成としてもよい。
更に、後述するクロック周波数の決定は、プラットフォーム層に対応する制御プログラム2Pの一部をCPU20が読み出して実行することによって実現される。
The platform layer is a program that realizes processing common to a plurality of
Further, the determination of the clock frequency described later is realized by the
アプリケーション層は、各ECUの特定の機能を実現するプログラムである。例えば、CPU20がアプリケーションプログラム231の内の一を読み出して実行することにより、車両のルームランプ等の点灯/消灯を制御するイルミ制御のアプリケーション1を実現する。また、CPU20が同時的に他のアプリケーションプログラム231を読み出して実行することにより、各ECUの電源管理を制御するアプリケーション2を実現する。そして、他のアプリケーションプログラム231は、各ECU間のネットワークを介した多重通信を制御するアプリケーション3を実現する。他に、車両のドアの施錠/解錠等の制御、又はカーナビゲーション装置若しくはオーディオ装置等の動作制御を実現するアプリケーションプログラムがあってもよい。
The application layer is a program that realizes a specific function of each ECU. For example, the
なお、抽象化層及びプラットフォーム層と、アプリケーション層とを分離する構成とすることにより、複数のアプリケーションプログラム231,231,…を実現することができる。ハードウェア構成に依存しない複数のアプリケーションプログラム231,231,…を記憶しておき、いずれのアプリケーションプログラム231を読み出して実行するかを決定させることによって、ハードウェア構成が異なるいずれのECUでも他のECUが実現していた機能を代替して実現することができる。そして、以下に説明するクロック周波数の決定、RAM22からのデータの読み出しなどを共通するプラットフォーム層によって実現することにより、全てのプログラムを変更せずとも各ECUの機能を変更することができる。したがって、各ECUの物理的配置を変更することなしに、ECU夫々の機能を変更する再配置が可能となる。
It is possible to realize a plurality of
以下に、CPU20がプラットフォーム層に対応するプログラムを実行することによりクロック周波数を決定し、必要な場合にクロック周波数を変更する処理について説明する。
Hereinafter, a process in which the
まず、CPU20がクロック周波数を決定する際に参照するテーブルについて説明する。図7は、実施の形態2におけるROM23に記憶される対応テーブル232、及びクロック周波数テーブル233の内容例を示す説明図である。図7(a)は対応テーブル232の内容例を示し、図7(b)はクロック周波数テーブル233の内容例を示す。
First, a table referred to when the
図7(a)に示すように、対応テーブル232には、アプリケーションプログラムの実行中における各状況下で必要とされる処理能力が相対的数値で示されて記憶される。具体的には、CPU20が、車両のルームランプ等の点灯/消灯を制御するイルミ制御のアプリケーション231、電源管理を制御する電源管理制御のアプリケーションプログラム231、及びネットワークを介した多重通信を制御する多重通信制御のアプリケーションプログラム231を実行している間において、各状況下で必要とされる処理能力を示している。
As shown in FIG. 7A, the correspondence table 232 stores the processing capability required under each situation during the execution of the application program, as a relative value. More specifically, the
対応テーブル232には例えば、ネットワーク通信が起動された場合、その後CPU20がイルミ制御のアプリケーションプログラム231を実行するため、及びCPU20が電源管理制御のアプリケーションプログラム231を実行するためには夫々、CPU20には「10」で表わされる処理能力が必要とされることが示される。またこの場合に、CPU20が多重通信制御のアプリケーションプログラム231を実行するためには、CPU20は「20」で表わされる処理能力が必要とされる。
In the correspondence table 232, for example, when network communication is activated, the
また、マイコン2が動作するECUが搭載された車両のエンジンの始動中に、CPU20がイルミ制御のアプリケーションプログラム231を実行するためには、CPU20には「10」で表わされる処理能力が必要となる。一方、CPU20が電源管理制御のアプリケーションプログラム231を実行するためには、CPU20には「20」で表わされる処理能力が必要となる。なお、CPU20が多重通信制御のアプリケーションプログラム231を実行するためには「10」で表わされる処理能力が必要となる。
Further, in order for the
車両のバッテリ劣化が警告されている間は特にルームランプなどの点灯は回避されるべきなので、CPU20がイルミ制御のアプリケーションプログラム231を実行しても処理が必要とされない。したがってこの場合、CPU20には「1」で表わされる処理能力が必要となる。また、バッテリ劣化警告中にCPU20が電源管理制御のアプリケーションプログラム231及び多重通信制御のアプリケーションプログラム231を実行するためには夫々、CPU20には「10」で表わされる処理能力が必要とされる。
Since the lighting of the room lamp or the like should be avoided particularly while the battery deterioration of the vehicle is warned, no processing is required even when the
そして、多重通信が停止されている間は、CPU20がイルミ制御のアプリケーションプログラム231、及び電源管理制御のアプリケーションプログラム231を実行するためには夫々、CPU20には「10」で表わされる処理能力が必要とされる。一方、多重通信が停止されている間は、CPU20が多重通信制御のアプリケーションプログラム231の実行することにより行なう処理は必要とされないので、CPU20には「1」で表わされる処理が必要とされるに過ぎない。
While the multiplex communication is stopped, in order for the
このように、同一のアプリケーションプログラム231を実行するにしても状況に応じてCPU20に求められる処理能力は異なる。図7(a)に示すように、実行するアプリケーションプログラム231,231,…及び各外部状況に対応する必要処理能力を予め記憶しておくことにより、適宜状況に応じた必要処理能力を取得することができる。
Thus, even if the
ROM23には図7(b)に示すように、クロック周波数テーブル233が記憶されている。クロック周波数テーブル233は実施の形態1におけるクロック周波数テーブル133と同様である。ただし、実行中の複数のアプリケーションプログラム231,231,…夫々の各状況下での必要処理能力を総合して求められる合計必要処理能力に応じたクロック周波数が対応付けられて記憶される。つまり、CPU20がイルミ制御のアプリケーションプログラム231及び電源管理制御のアプリケーションプログラム231を実行している場合、夫々のアプリケーションプログラム231に対応して各状況下で必要とされる処理能力の合計とクロック周波数の高低とが対応付けられている。したがって、合計必要処理能力が例えば「30(=10+20)」である場合には、クロック周波数は高周波数とすべきである。
The
このように構成されるマイコン2のCPU20が、実行中のアプリケーションプログラム231,231,…及び外部状況に応じてクロック周波数を決定し、必要な場合には変更する処理についてフローチャートを参照して説明する。
The
図8は、実施の形態2におけるマイコン2のCPU20がクロック周波数を決定して変更する処理手順の一例を示すフローチャートである。CPU20は、ROM23に記憶されている制御プログラム2PをRAM22に読み出してプラットフォーム層の機能を実現することにより、以下の処理を実行する。
FIG. 8 is a flowchart illustrating an example of a processing procedure in which the
CPU20は、外部状況の変化を検知したか、又は、実行中のアプリケーションプログラム231が変化したか否かを判断する(ステップS21)。CPU20は、自身が内蔵する図示しないタイマ等により起動してからの経過時間、I/O部24に接続されるセンサ、測定器等から得られるデータ、又はI/O部24に接続されるネットワークコントローラを介して外部装置から得られるデータに基づき外部状況を検知する。そしてCPU20は、制御プログラム2Pを読み出して実行することにより、プラットフォーム層のプログラムによって実行中のアプリケーションプログラム231,231,…を認識することが可能である。
The
CPU20は、外部状況の変化も検知せず、且つ実行中のアプリケーションプログラム231,231,…も変化していないと判断した場合(S21:NO)、処理をステップS21へ戻す。CPU20は、外部状況の変化を検知したか、又は、実行中のアプリケーションプログラム231,231,…が変化したと判断した場合(S21:YES)、ROM23から対応テーブル232を参照し(ステップS22)、対応テーブル232から、現在の外部状況に対応し、実行中のアプリケーションプログラム231,231,…夫々に対応する必要処理能力を抽出する(ステップS23)。
If the
CPU20は、ステップS23で抽出した必要処理能力を合算し(ステップS24)、ROM23からクロック周波数テーブル233を参照する(ステップS25)。CPU20は、合算した合計の必要処理能力に対応するクロック周波数をクロック周波数テーブル233から読み出して決定する(ステップS26)。そしてCPU20は、ステップS26で決定したクロック周波数を指示する制御信号をクロック部21へ入力することにより、クロック周波数を変更し(ステップS27)、処理を終了する。
The
なお、外部状況の変化を検知したか、又は、実行中のアプリケーションプログラム231,231,…が変化したと判断したものの、ステップS26で決定したクロック周波数がそれまでのクロック回路21により出力されているクロック周波数と変わらない場合にはステップS27の処理は省略してよい。
Although it is determined that a change in the external situation has been detected or the
次に、図8のフローチャートに示したようにCPU20がROM23のテーブルを参照して実行する処理により、クロック周波数が決定され、変更される結果を具体例を挙げて説明する。図9は、実施の形態2におけるマイコン2のCPU20によって決定されるクロック周波数を示す説明図である。横軸に時間の経過を示し、縦軸は周波数の高低を示す。なお説明図の上部には時間の経過に応じて変化している外部状況と、各時点における合計の必要処理能力とを示している。
Next, the result of determining and changing the clock frequency by the process executed by the
図9に示す例では、マイコン2は時点t0ではスリープ状態である。このとき、クロック回路21から出力されるクロック信号の周波数は低周波数である。又は、スリープ状態でクロック回路21は停止していてもよい。
In the example shown in FIG. 9, the
その後時点t1で、マイコン2を含むECUが搭載される車両のイグニッションスイッチ(IGスイッチ)がスタートとなり、マイコン2はスリープ状態から起動する。これにより時点t1後所定時間はエンジン始動中となる。このときCPU20はイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…夫々の実行を開始する。CPU20は、I/O部24に接続されるネットワークコントローラを介してIGスイッチがスタートとなったことを示す情報を受信することにより、エンジン始動中であることを検知する。この場合CPU20は、ROM23の対応テーブル232を参照し、エンジン始動中におけるイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…の実行に夫々必要な処理能力、「10」、「20」、及び「10」を抽出する。そしてCPU20は、抽出した必要処理能力「10」、「20」、及び「10」を合算した合計必要処理能力「40」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を高周波数へ変更する。
Thereafter, at time t1, an ignition switch (IG switch) of a vehicle on which the ECU including the
そして、時点t2ではネットワークの起動が開始される。CPU20は、ネットワークコントローラの起動を検知することによりネットワークの起動を検知する。この場合CPU20は、ROM23の対応テーブル232を参照し、エンジン始動中、且つネットワーク起動中におけるイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…の実行に夫々必要な処理能力、「10」、「20」、及び「20」を抽出する。そしてCPU20は、抽出した必要処理能力を合算した合計必要処理能力「50」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を高周波数のまま維持する。
At time t2, the network is started. The
その後、時点t3でネットワーク起動が終了した場合、エンジン始動中の状況へ戻る。CPU20はこれを検知し、対応テーブル232及びクロック周波数テーブル233を参照し、合計必要処理能力「40」(=「10」+「20」+「10」)に対応するクロック周波数を決定する。この場合、CPU20はクロック周波数を高周波数のまま維持する。
Thereafter, when the network activation is completed at time t3, the state returns to the state during engine start. The
次に時点t4でエンジン始動中の処理が終了し、状況が「その他」の状況となった場合、CPU20はこれを検知する。CPU20は、対応テーブル232及びクロック周波数テーブル233を参照し、その他の状況における各アプリケーションプログラム231,231,…の合計必要処理能力「30」(=「10」+「10」+「10」)に対応するクロック周波数を決定する。CPU20はクロック周波数を高周波数のまま維持する。
Next, when the process during the engine start is completed at time t4 and the status becomes “other”, the
その後、時点t5でバッテリの劣化警告がされた場合、CPU20は、バッテリからの警告信号をI/O部24を介して受信するなどによりこれを検知する。この場合、CPU20は、ROM23の対応テーブル232を参照し、バッテリ劣化警告中におけるイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…の実行に夫々必要な処理能力、「1」、「10」、及び「10」を抽出する。そしてCPU20は、抽出した必要処理能力を合算した合計必要処理能力「21」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を高周波数のまま維持する。
Thereafter, when a battery deterioration warning is given at time t5, the
時点t6で更に多重通信が停止された場合、CPU20は、ネットワークコントローラの停止を検知することにより、又はCPU20自身の電源管理制御により停止することを示す信号を出力するなどにより、多重通信が停止されたことを検知する。この場合CPU20は、CPU20は、ROM23の対応テーブル232を参照し、バッテリ劣化警告中且つ多重通信停止中におけるイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…の実行に夫々必要な処理能力、「1」、「10」、及び「1」を抽出する。CPU20は、抽出した必要処理能力を合算した合計必要処理能力「12」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を中周波数に変更する。
If the multiplex communication is further stopped at time t6, the
時点t7ではバッテリ劣化警告が終了した場合、CPU20は、バッテリからの警告信号をI/O部24を介して受信しなくなったことなどによりこれを検知し、現在の状況は多重通信停止中のみであることを検知する。CPU20は、ROM23の対応テーブル232を参照し、多重通信停止中におけるイルミ制御、電源管理制御、及び多重通信制御のアプリケーションプログラム231,231,…の実行に夫々必要な処理能力、「10」、「10」、及び「1」を抽出する。そしてCPU20は、抽出した必要処理能力を合算した合計必要処理能力「21」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を高周波数に変更する。
When the battery deterioration warning is completed at time t7, the
その後時点t8で、CPU20が多重通信制御のアプリケーションプログラム231の実行を停止したとする。この場合、CPU20は、自身のプラットフォーム層のプログラムにより実行中のアプリケーションプログラム231,231がイルミ制御及び電源管理制御であることを認識する。そして状況としては「その他」であることを検知する。CPU20はROM23の対応テーブル232を参照し、「その他」の状況下におけるイルミ制御、及び電源管理制御のアプリケーションプログラム231,231の実行に夫々必要な処理能力、「10」、及び「10」を抽出する。そしてCPU20は、抽出した必要処理能力を合算した合計必要処理能力「20」に対応するクロック周波数をROM23のクロック周波数テーブル233を参照し決定する。この場合、CPU20はクロック周波数を中周波数に変更する。
Thereafter, at time t8, the
図9に示したように、CPU20が実行する複数のアプリケーションプログラム231,231,…毎に、夫々を各外部状況下で実行するために必要とする処理能力に応じてクロック周波数を適宜決定し変更することができる。これにより、実行するアプリケーションプログラム231,231,…が同一でも、異なる状況に応じてマイコン2の能力を適切な処理能力とすることができる。したがって、同一のアプリケーションプログラム231を実行しているとしても、状況によっては高い処理能力が求められていないにも拘らず、過剰に高周波数のクロック信号で動作して無駄に電力を消費することを詳細な状況に応じて精度よく回避することができ、有効に消費電力を低減させることができる。
As shown in FIG. 9, for each of a plurality of
なお、上述のように開示された本実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 It should be understood that the embodiment disclosed above is illustrative in all respects and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the meanings described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.
1,2 マイコン
10,20 CPU
11,21 クロック回路
13,23 ROM(記憶手段)
1, 2,
11, 21
Claims (6)
一又は複数の外部状況と、各外部状況下での処理の実行に要する必要処理能力との対応を記憶する処理能力記憶手段と、
外部状況を検知する検知手段と、
該検知手段が検知した外部状況に対応して、前記処理能力記憶手段により記憶してある必要処理能力に基づき、実行する処理に必要な能力を算出する算出手段と、
該算出手段が算出した能力に応じてクロック周波数を決定する手段と
を備えることを特徴とする処理装置。 In a processing apparatus that executes processing in synchronization with a clock signal capable of changing the frequency,
Processing capacity storage means for storing a correspondence between one or a plurality of external situations and the necessary processing capacity required to execute processing under each external situation;
A detection means for detecting an external situation;
In accordance with the external situation detected by the detection means, a calculation means for calculating the capacity required for the processing to be executed based on the required processing capacity stored by the processing capacity storage means;
Means for determining a clock frequency according to the ability calculated by the calculating means.
前記処理能力記憶手段により、各外部状況下での前記アプリケーションプログラムの実行に要する必要処理能力を、アプリケーションプログラム毎に記憶するようにしてあり、
前記算出手段は、前記検知手段が検知した外部状況に対応し、実行するアプリケーションプログラムに対応して記憶してある必要処理能力を抽出する抽出手段を備え、
該抽出手段が抽出した必要処理能力に基づき、必要な能力を算出するようにしてあること
を特徴とする請求項1に記載の処理装置。 Comprising execution means for executing one or more application programs;
The processing capacity storage means stores the necessary processing capacity required to execute the application program under each external situation for each application program,
The calculation means includes an extraction means for extracting the necessary processing capacity corresponding to the external program detected by the detection means and stored corresponding to the application program to be executed.
The processing apparatus according to claim 1, wherein the required capacity is calculated based on the required processing capacity extracted by the extracting means.
前記算出手段は、前記抽出手段が前記複数のアプリケーションプログラム夫々に対応して抽出した必要処理能力に基づき、総合必要処理能力を算出する手段を備え、前記総合必要処理能力を必要な能力として算出するようにしてあること
を特徴とする請求項2に記載の処理装置。 When the execution means executes a plurality of application programs simultaneously,
The calculation means includes means for calculating a total required processing capacity based on the required processing capacity extracted by the extraction means corresponding to each of the plurality of application programs, and calculates the total required processing capacity as a required capacity. The processing apparatus according to claim 2, wherein the processing apparatus is configured as described above.
算出した総合必要処理能力に基づくクロック周波数を取得することにより、クロック周波数を決定するようにしてあること
を特徴とする請求項3に記載の処理装置。 A means for storing the correspondence between the total required processing capacity and the clock frequency is provided,
The processing apparatus according to claim 3, wherein the clock frequency is determined by acquiring a clock frequency based on the calculated total necessary processing capacity.
一又は複数の外部状況と、各外部状況下での処理装置による処理の実行に要する必要処理能力との対応を予め記憶しておき、
外部状況を検知し、
検知した外部状況に対応して予め記憶してある必要処理能力に基づき、前記処理装置で実行する処理に必要な能力を算出し、
算出した能力に応じてクロック周波数を決定する
ことを特徴とするクロック周波数決定方法。 In a method for determining a clock frequency of a processing device that executes processing in synchronization with a clock signal capable of changing the frequency,
The correspondence between one or a plurality of external situations and the necessary processing capacity required to execute processing by the processing device under each external situation is stored in advance,
Detect external conditions,
Based on the required processing capacity stored in advance corresponding to the detected external situation, calculate the capacity required for the processing executed by the processing device,
A clock frequency determination method, wherein the clock frequency is determined according to the calculated capability.
コンピュータに、
外部状況を検知させ、
予め記憶されてある外部状況と各外部状況下での処理の実行に要する必要処理能力との対応から、検知した外部状況に対応する必要処理能力を取得させ、
取得した必要処理能力に基づき、実行する処理に必要な能力を算出させ、
算出した能力に応じてクロック周波数を決定させる
ことを特徴とするコンピュータプログラム。 In a computer program for causing a computer that performs processing in synchronization with a clock signal capable of changing the frequency to control the change of the clock frequency,
On the computer,
Detect external conditions,
From the correspondence between the external situation stored in advance and the necessary processing capacity required for execution of processing under each external situation, the necessary processing capacity corresponding to the detected external situation is acquired,
Based on the acquired required processing capacity, calculate the capacity required for the process to be executed,
A computer program for determining a clock frequency according to a calculated ability.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008198525A JP5407211B2 (en) | 2008-07-31 | 2008-07-31 | Processing apparatus, clock frequency determination method, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008198525A JP5407211B2 (en) | 2008-07-31 | 2008-07-31 | Processing apparatus, clock frequency determination method, and computer program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2010039543A true JP2010039543A (en) | 2010-02-18 |
JP2010039543A5 JP2010039543A5 (en) | 2011-08-04 |
JP5407211B2 JP5407211B2 (en) | 2014-02-05 |
Family
ID=42012065
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008198525A Expired - Fee Related JP5407211B2 (en) | 2008-07-31 | 2008-07-31 | Processing apparatus, clock frequency determination method, and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5407211B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014061141A1 (en) * | 2012-10-18 | 2014-04-24 | トヨタ自動車株式会社 | Parallel computing device |
JP2014182512A (en) * | 2013-03-18 | 2014-09-29 | Fujitsu Ltd | Frequency control device, frequency control method, and frequency control program |
JP2020149317A (en) * | 2019-03-13 | 2020-09-17 | 株式会社デンソー | Vehicle device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002021245A1 (en) * | 2000-09-08 | 2002-03-14 | Fujitsu Limited | Clock control method, device therefor, and medium |
JP2003108260A (en) * | 2001-09-28 | 2003-04-11 | Hitachi Ltd | Information processer and controlling method therefor |
JP2005204351A (en) * | 2004-01-13 | 2005-07-28 | Hitachi Industries Co Ltd | Information transmitting/receiving system and information processing system |
JP2008077563A (en) * | 2006-09-25 | 2008-04-03 | Nec Corp | Electronic device and cpu operating environment control program |
-
2008
- 2008-07-31 JP JP2008198525A patent/JP5407211B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002021245A1 (en) * | 2000-09-08 | 2002-03-14 | Fujitsu Limited | Clock control method, device therefor, and medium |
JP2003108260A (en) * | 2001-09-28 | 2003-04-11 | Hitachi Ltd | Information processer and controlling method therefor |
JP2005204351A (en) * | 2004-01-13 | 2005-07-28 | Hitachi Industries Co Ltd | Information transmitting/receiving system and information processing system |
JP2008077563A (en) * | 2006-09-25 | 2008-04-03 | Nec Corp | Electronic device and cpu operating environment control program |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014061141A1 (en) * | 2012-10-18 | 2014-04-24 | トヨタ自動車株式会社 | Parallel computing device |
CN104718531A (en) * | 2012-10-18 | 2015-06-17 | 丰田自动车株式会社 | Parallel computing device |
JPWO2014061141A1 (en) * | 2012-10-18 | 2016-09-05 | トヨタ自動車株式会社 | Parallel computing device |
JP2014182512A (en) * | 2013-03-18 | 2014-09-29 | Fujitsu Ltd | Frequency control device, frequency control method, and frequency control program |
JP2020149317A (en) * | 2019-03-13 | 2020-09-17 | 株式会社デンソー | Vehicle device |
US11755059B2 (en) | 2019-03-13 | 2023-09-12 | Denso Corporation | System for setting an operating clock of a CPU of a vehicular device |
Also Published As
Publication number | Publication date |
---|---|
JP5407211B2 (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210333132A1 (en) | System on a Chip with Always-On Processor | |
US20170364139A1 (en) | System on a Chip with Fast Wake from Sleep | |
KR101562448B1 (en) | Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device | |
US8281169B2 (en) | Method and system for power management for a handheld mobile electronic device executing-in-place an application kernel from execute-in-place non-volatile memory (XIP NVM) | |
KR101805346B1 (en) | System on a chip with always-on processor which reconfigures soc and supports memory-only communication mode | |
US9423852B2 (en) | Selecting a startup condition of an electronic device corresponding to available power | |
JP5705999B2 (en) | Method and system for managing sleep state of an interrupt controller in a portable computing device | |
JP4392479B2 (en) | Power management apparatus and method | |
CN111051152A (en) | Method for providing smart key service and electronic device thereof | |
JP2008003797A (en) | Microcomputer and electronic control device | |
JP5407211B2 (en) | Processing apparatus, clock frequency determination method, and computer program | |
TW201520755A (en) | Power saving method and sensor management system implementing the same | |
JP2006281900A (en) | On-vehicle information system and application execution method | |
CN111381892A (en) | Data processing method, device, equipment and machine readable medium | |
US8095807B2 (en) | Method and system for power saving and state retention in an electronic device including a variation table having a plurality of flags | |
JP2013006482A (en) | On-vehicle processing apparatus and processing program | |
JP2011158967A (en) | Electronic control device | |
JP2005275771A (en) | Power saving management device | |
JP2007249808A (en) | Function extension system and function extension equipment | |
JP6691288B2 (en) | Information processing device and communication control program | |
JP2006315601A (en) | On-vehicle inclination sensor device | |
US20230030558A1 (en) | Electronic control unit, information processing method, and non-transitory storage medium | |
JP2020104831A (en) | Control device and control method | |
CN113656085B (en) | Meter starting method, apparatus, device, storage medium and program product | |
JP6537554B2 (en) | Semiconductor device and electronic terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110622 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110622 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121127 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121218 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130604 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130718 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20131008 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131021 |
|
LAPS | Cancellation because of no payment of annual fees |