JP2009026199A - Clock frequency control method and computer program - Google Patents

Clock frequency control method and computer program Download PDF

Info

Publication number
JP2009026199A
JP2009026199A JP2007190899A JP2007190899A JP2009026199A JP 2009026199 A JP2009026199 A JP 2009026199A JP 2007190899 A JP2007190899 A JP 2007190899A JP 2007190899 A JP2007190899 A JP 2007190899A JP 2009026199 A JP2009026199 A JP 2009026199A
Authority
JP
Japan
Prior art keywords
clock frequency
application
program
control program
processing 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.)
Pending
Application number
JP2007190899A
Other languages
Japanese (ja)
Inventor
Takenori Abe
武徳 阿部
Kenichi Horikawa
健一 堀川
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2007190899A priority Critical patent/JP2009026199A/en
Publication of JP2009026199A publication Critical patent/JP2009026199A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Executing Machine-Instructions (AREA)
  • Power Sources (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a clock frequency control method and a computer program that can appropriately change the clock frequency of a processing unit in accordance with the number, scale or computational complexity of application programs executed. <P>SOLUTION: Correspondences between a plurality of application programs APs executable by a CPU 1 and required throughputs are stored in advance in an application table AT, and correspondences between total required throughputs and clock frequencies are stored in advance in a clock frequency table CT. When executing a plurality of application programs APs, a control program CP acquires and adds the required throughput of each application program AP from the application table AT to calculate the total required throughput, then determines the clock frequency on the clock frequency table CT, and changes the clock frequency accordingly. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、実行するアプリケーションプログラムの数、規模又は演算量等に応じて、処理装置のクロック周波数を変更するクロック周波数制御方法及びコンピュータプログラムに関する。   The present invention relates to a clock frequency control method and a computer program for changing a clock frequency of a processing device in accordance with the number, scale, or amount of calculation of application programs to be executed.

近年の電気機器にはCPU(Central Processing Unit)又はMPU(Micro Processing Unit)等の処理装置が搭載されて種々のアプリケーションプログラムが実行されている。また、電気機器の高性能化に伴って、1つの処理装置にて同時的に実行されるアプリケーションプログラムの数は増加している。実行するアプリケーションプログラムが高度なものであるほど、また、同時的に実行するプログラムが多いほどに、処理装置には高い処理能力が必要である。処理装置の処理能力を高める方法として、処理装置に供給されるクロックの周波数を高めることによって、単位時間あたりの演算量を増す方法がある。   In recent electric devices, a processing device such as a CPU (Central Processing Unit) or MPU (Micro Processing Unit) is mounted, and various application programs are executed. In addition, with the increase in performance of electrical equipment, the number of application programs that are simultaneously executed by one processing apparatus is increasing. The higher the application program to be executed and the more programs to be executed simultaneously, the higher the processing capacity of the processing device is required. As a method of increasing the processing capability of the processing device, there is a method of increasing the amount of calculation per unit time by increasing the frequency of the clock supplied to the processing device.

しかし、処理装置のクロック周波数を高めることにより、処理装置の消費電力が増大するという問題がある。例えば、高度なアプリケーションプログラムを複数同時的に実行可能なように処理装置のクロック周波数を高く設定した場合であっても、処理装置では常に高度なアプリケーションプログラムが複数同時的に実行されるわけではなく、状況によっては単純な1つのアプリケーションプログラムのみが実行されることもある。このような場合には、処理装置の処理能力が必要以上に高められ、電力を必要以上に消費する虞がある。このため、アプリケーションプログラムの規模及び実行数等に応じてクロック周波数を変更し、処理装置が最適な処理能力で処理を行うことが求められている。   However, there is a problem that the power consumption of the processing device increases by increasing the clock frequency of the processing device. For example, even if the processing device clock frequency is set high so that a plurality of advanced application programs can be executed simultaneously, the processing device does not always execute a plurality of advanced application programs simultaneously. Depending on the situation, only one simple application program may be executed. In such a case, the processing capability of the processing apparatus may be increased more than necessary, and power may be consumed more than necessary. For this reason, it is required that the processing frequency be changed with the optimum processing capacity by changing the clock frequency according to the scale and the number of executions of the application program.

特許文献1においては、実行される割り込み又はアプリケーションに基づいてCPU及び他のシステムバスに可変のクロック周波数のクロック信号を供給する周波数シンセサイザを有し、実行されるべき所定のアプリケーションなど又はCPUの利用度等に基づいてクロック周波数を変更することができる自動CPU速度制御のための装置が提案されている。この装置の一実施例では、CPUがアイドルタスクを実行しているか否かに応じて低速モード又は高速モードにクロック周波数を変更することができ、割り込みの有無に応じてクロック周波数を変更することができる。また他の実施例では、CPUの使用レベルを動的にモニタし、CPUの使用レベルに応じてクロック周波数を変更することができる。更に他の実施例では、ワードプロセッサ又はボイスディクテーション等のアプリケーション毎に最適なクロック周波数を予め定めてテーブルに記憶しておき、アプリケーションを実行する際にテーブルに記憶された最適なクロック周波数に変更することができる。
特表2002−533801号公報
In Patent Document 1, a CPU and a frequency synthesizer that supplies a clock signal having a variable clock frequency to another system bus based on an interrupt or application to be executed, a predetermined application to be executed, or use of the CPU Devices have been proposed for automatic CPU speed control that can change the clock frequency based on the degree or the like. In one embodiment of this apparatus, the clock frequency can be changed to the low speed mode or the high speed mode depending on whether or not the CPU is executing an idle task, and the clock frequency can be changed depending on the presence or absence of an interrupt. it can. In another embodiment, the CPU usage level can be dynamically monitored, and the clock frequency can be changed according to the CPU usage level. In yet another embodiment, an optimal clock frequency is predetermined and stored in a table for each application such as a word processor or voice dictation, and is changed to the optimal clock frequency stored in the table when the application is executed. Can do.
JP 2002-533801 A

しかし、特許文献1に記載の自動CPU速度制御のための装置は、アイドルタスクの実行の有無に応じてクロック周波数を低速モード又は高速モードに変更する構成の場合、アプリケーションが実行されているか否かによりクロック周波数が変更されるのみであり、単純なアプリケーションであっても高度なアプリケーションであっても高速モードで実行されるため、上述の問題を解決することはできない。   However, the apparatus for automatic CPU speed control described in Patent Document 1 determines whether or not an application is executed when the clock frequency is changed to the low speed mode or the high speed mode according to whether or not the idle task is executed. Only the clock frequency is changed, and even if it is a simple application or an advanced application, it is executed in the high-speed mode. Therefore, the above problem cannot be solved.

また、モニタしたCPUの使用レベルに応じてクロック周波数を変更する構成の場合、CPUの使用レベルに応じて細かくクロック周波数を変更することができるため上述の問題を解決し得るが、CPUの使用レベルをモニタするためには過大なCPUリソースを消費するという問題がある。このため、PC(パーソナルコンピュータ)又はWS(ワークステーション)等の高級なシステムにてこの構成を実現することはできるが、電気機器に搭載された小規模なマイコンなどでこの構成を実現することは容易ではない。   Further, in the case of a configuration in which the clock frequency is changed according to the monitored CPU usage level, the clock frequency can be finely changed according to the CPU usage level, so that the above problem can be solved. However, there is a problem that excessive CPU resources are consumed. For this reason, this configuration can be realized by a high-grade system such as a PC (personal computer) or WS (workstation), but this configuration can be realized by a small microcomputer mounted on an electrical device. It's not easy.

また、アプリケーション毎に最適なクロック周波数をテーブルに記憶しておき、アプリケーションを実行する際にテーブルに記憶された最適なクロック周波数に変更する構成の場合、アプリケーションの規模に応じて最適なクロック周波数に変更することができる。しかしながら、複数のアプリケーションを同時的に動作させる場合には、最適なクロック周波数に変更することができないという問題がある。例えば、各アプリケーションに最適なクロック周波数をそれぞれ比較して最大のクロック周波数に変更することができるが、単純なアプリケーションを多数動作させる場合には十分な処理能力が得られない虞がある。   In addition, when the optimal clock frequency is stored in a table for each application and the application is changed to the optimal clock frequency stored in the table when the application is executed, the optimal clock frequency is set according to the scale of the application. Can be changed. However, when a plurality of applications are operated simultaneously, there is a problem that the clock frequency cannot be changed to the optimum. For example, the optimum clock frequency for each application can be compared and changed to the maximum clock frequency. However, when many simple applications are operated, there is a possibility that sufficient processing capability may not be obtained.

この構成において、テーブルに予め記憶されるアプリケーション毎のクロック周波数は、CPUの構成及び性能等に応じて決定されるハードウェアに固有の値であるため、同じアプリケーションを別の構成のCPUにて実行する場合には、別のCPUに最適なクロック周波数をアプリケーション毎に新たに算出して新たなテーブルを作成しなければならず、汎用性が低いという問題もある。   In this configuration, the clock frequency for each application stored in the table in advance is a value specific to the hardware determined according to the configuration and performance of the CPU, so the same application is executed by a CPU with a different configuration. In this case, a new table must be created by newly calculating a clock frequency optimum for another CPU for each application, and there is a problem that versatility is low.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、複数のアプリケーションプログラムと実行に要する必要処理能力との対応を予め記憶しておき、同時的に実行するアプリケーションプログラムの各必要処理能力を基に合計必要処理能力を算出し、この合計必要処理能力に応じてクロック周波数を決定して変更することにより、複数のアプリケーションプログラムを実行する場合であっても最適なクロック周波数で処理装置(コンピュータ)を動作させることができるクロック周波数制御方法及びコンピュータプログラムを提供することにある。   The present invention has been made in view of such circumstances, and an object of the present invention is to store in advance correspondence between a plurality of application programs and necessary processing capacity required for execution, and execute the programs simultaneously. Optimal even when multiple application programs are executed by calculating the total required processing capacity based on each required processing capacity of the application program and determining and changing the clock frequency according to this total required processing capacity Another object of the present invention is to provide a clock frequency control method and a computer program that can operate a processing device (computer) at a different clock frequency.

また本発明の他の目的とするところは、合計必要処理能力とクロック周波数との対応を予め記憶しておき、同時的に実行するアプリケーションプログラムの各必要処理能力を基に算出した合計必要処理能力に対応するクロック周波数を取得することにより、アプリケーション毎にクロック周波数を記憶しておく必要がなく、汎用性の高いクロック周波数制御方法を提供することにある。   Another object of the present invention is to previously store the correspondence between the total required processing capacity and the clock frequency, and calculate the total required processing capacity calculated based on each required processing capacity of the application program to be executed simultaneously. By acquiring the clock frequency corresponding to the above, it is not necessary to store the clock frequency for each application, and a highly versatile clock frequency control method is provided.

また本発明の他の目的とするところは、処理装置にて第1の制御プログラムを実行し、第1の制御プログラム上で第2の制御プログラムを実行し、第2の制御プログラム上でアプリケーションプログラムを実行し、第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を基に合計必要処理能力を算出することにより、実行するアプリケーションの追加などに容易に対応できる汎用性の高いクロック周波数制御方法を提供することにある。   Another object of the present invention is to execute a first control program on a processing device, execute a second control program on the first control program, and execute an application program on the second control program. , And the second control program calculates the total required processing capacity based on the correspondence between the application program and the required processing capacity. It is to provide a method.

また本発明の他の目的とするところは、実行するアプリケーションプログラムに応じて第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を生成することにより、実行するアプリケーションプログラムを追加した場合などに、第2の制御プログラムによって対応を自動的に生成することができるクロック周波数制御方法を提供することにある。   Another object of the present invention is when the application program to be executed is added by the second control program generating a correspondence between the application program and the necessary processing capacity in accordance with the application program to be executed. Another object of the present invention is to provide a clock frequency control method capable of automatically generating a correspondence by a second control program.

また本発明の他の目的とするところは、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を基に処理装置のクロック周波数を決定して変更することにより、処理装置の構成の変更に容易に対応できる汎用性の高いクロック周波数制御方法を提供することにある。   Further, another object of the present invention is that the second control program determines and changes the clock frequency of the processing device based on the correspondence between the total required processing capacity and the clock frequency. An object of the present invention is to provide a highly versatile clock frequency control method that can easily cope with a change.

また本発明の他の目的とするところは、処理装置の規模、処理能力及び構成等に応じて、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を生成する構成とすることにより、処理装置の構成が変更された場合などに、第2の制御プログラムによって対応を自動的に生成することができるクロック周波数制御方法を提供することにある。   Another object of the present invention is that the second control program generates a correspondence between the total required processing capacity and the clock frequency in accordance with the scale, processing capacity and configuration of the processing apparatus. Another object of the present invention is to provide a clock frequency control method capable of automatically generating a response by the second control program when the configuration of the processing device is changed.

第1発明に係るクロック周波数制御方法は、複数のアプリケーションプログラムを実行する処理装置のクロック周波数の変更を制御するクロック周波数制御方法において、複数のアプリケーションプログラムと、各アプリケーションプログラムの実行に要する必要処理能力との対応を記憶しておき、前記処理装置にて実行する一又は複数のアプリケーションプログラムの各必要処理能力を基に、前記一又は複数のアプリケーションプログラムの実行に要する合計必要処理能力を算出し、算出した合計必要処理能力に応じてクロック周波数を決定し、決定したクロック周波数に前記処理装置のクロック周波数を変更することを特徴とする。   A clock frequency control method according to a first aspect of the present invention is a clock frequency control method for controlling a change in clock frequency of a processing device that executes a plurality of application programs. And calculating the total required processing capacity required for executing the one or more application programs based on each required processing capacity of the one or more application programs executed by the processing device, The clock frequency is determined according to the calculated total required processing capacity, and the clock frequency of the processing device is changed to the determined clock frequency.

また、第2発明に係るクロック周波数制御方法は、合計必要処理能力とクロック周波数との対応を記憶しておき、算出した合計必要処理能力を基に対応するクロック周波数を取得して、変更するクロック周波数を決定することを特徴とする。   The clock frequency control method according to the second aspect of the present invention stores the correspondence between the total required processing capacity and the clock frequency, acquires the corresponding clock frequency based on the calculated total required processing capacity, and changes the clock. The frequency is determined.

また、第3発明に係るクロック周波数制御方法は、前記処理装置の構成に応じた第1の制御プログラム、及び前記アプリケーションプログラムを実行する第2の制御プログラムを用いて、前記処理装置にて前記第1の制御プログラムを実行し、該第1の制御プログラム上で前記第2の制御プログラムを実行し、該第2の制御プログラム上で前記アプリケーションプログラムを実行し、前記第2の制御プログラムにて、アプリケーションプログラムと必要処理能力との対応を基に、合計必要処理能力の算出を行うことを特徴とする。   The clock frequency control method according to a third aspect of the present invention is the first frequency control program according to the configuration of the processing device and the second control program for executing the application program, wherein the processing device uses the first control program. 1 control program, execute the second control program on the first control program, execute the application program on the second control program, and in the second control program, The total required processing capacity is calculated based on the correspondence between the application program and the required processing capacity.

また、第4発明に係るクロック周波数制御方法は、前記処理装置にて実行するアプリケーションプログラムに応じて、前記第2の制御プログラムにて、アプリケーションプログラムと必要処理能力との対応を生成することを特徴とする。   According to a fourth aspect of the present invention, there is provided a clock frequency control method for generating a correspondence between an application program and a required processing capacity in the second control program in accordance with an application program executed in the processing device. And

また、第5発明に係るクロック周波数制御方法は、前記第2の制御プログラムにて、合計必要処理能力とクロック周波数との対応を基に、変更するクロック周波数の決定を行うことを特徴とする。   The clock frequency control method according to the fifth invention is characterized in that the second control program determines the clock frequency to be changed based on the correspondence between the total required processing capacity and the clock frequency.

また、第6発明に係るクロック周波数制御方法は、アプリケーションプログラムを実行する処理装置に応じて、前記第2の制御プログラムにて、合計必要処理能力とクロック周波数との対応を生成することを特徴とする。   According to a sixth aspect of the present invention, there is provided a clock frequency control method for generating a correspondence between a total required processing capacity and a clock frequency in the second control program in accordance with a processing device that executes an application program. To do.

また、第7発明に係るコンピュータプログラムは、コンピュータにクロック周波数の変更を制御させるコンピュータプログラムにおいて、コンピュータに、予め記憶された複数のアプリケーションプログラムと各アプリケーションプログラムの実行に要する必要処理能力との対応から、前記コンピュータにて実行する一又は複数のアプリケーションプログラムの各必要処理能力を取得させ、取得した各必要処理能力を基に、前記一又は複数のアプリケーションプログラムの実行に要する合計必要処理能力を算出させ、算出した合計必要処理能力に応じてクロック周波数を決定させ、前記コンピュータのクロック周波数を決定したクロック周波数に変更させることを特徴とする。   According to a seventh aspect of the present invention, there is provided a computer program for causing a computer to control the change of the clock frequency because of correspondence between a plurality of application programs stored in advance in the computer and the necessary processing capability required to execute each application program. , Obtaining each necessary processing capability of one or a plurality of application programs to be executed by the computer, and calculating a total necessary processing capability required for executing the one or a plurality of application programs based on the obtained each necessary processing capability The clock frequency is determined in accordance with the calculated total required processing capacity, and the clock frequency of the computer is changed to the determined clock frequency.

本発明においては、処理装置にて実行する複数のアプリケーションプログラムと実行に要する必要処理能力との対応を、例えばテーブルなどとして予め記憶しておく。処理装置の構成により決定されるクロック周波数ではなく、処理装置の構成に関係のない必要処理能力を各アプリケーションプログラムについて記憶しておくことによって、処理装置の構成を変更した場合であってもアプリケーションプログラムと必要処理能力との対応を変更する必要はない。実行するアプリケーションプログラムを追加した場合であっても、このアプリケーションプログラムに対する必要処理能力を対応に追加するのみでよい。
処理装置のクロック周波数を変更する場合には、同時的に実行するアプリケーションプログラムの各必要処理能力を基に合計必要処理能力を算出し、この合計必要処理能力に応じてクロック周波数を決定する。例えば、各アプリケーションプログラムの必要能力を数値として設定した場合には、加算などの簡単な四則演算で合計必要処理能力を算出すればよい。アプリケーションプログラム毎ではなく、合計必要処理能力に対してクロック周波数を決定するため、決定方法は実行するアプリケーションプログラムの追加などにより変更する必要はない。クロック周波数を変更する際に、予め記憶した対応を調べて簡単な演算により変更するクロック周波数を決定できるため、処理装置のリソースを過大に消費することはなく、小規模な処理装置であってもこの方法でクロック周波数の変更を行うことができる。
In the present invention, the correspondence between a plurality of application programs executed by the processing device and the necessary processing capacity required for execution is stored in advance as a table, for example. The application program is stored even when the configuration of the processing device is changed by storing, for each application program, the necessary processing capacity not related to the configuration of the processing device, instead of the clock frequency determined by the configuration of the processing device. There is no need to change the correspondence between and the required processing capacity. Even when an application program to be executed is added, it is only necessary to add the necessary processing capability for this application program.
When changing the clock frequency of the processing device, the total required processing capacity is calculated based on the respective required processing capacity of the application program to be executed simultaneously, and the clock frequency is determined according to the total required processing capacity. For example, when the required capacity of each application program is set as a numerical value, the total required processing capacity may be calculated by simple four arithmetic operations such as addition. Since the clock frequency is determined not for each application program but for the total required processing capacity, the determination method does not need to be changed by adding an application program to be executed. When changing the clock frequency, it is possible to determine the clock frequency to be changed by a simple calculation by examining the correspondence stored in advance, so that it does not consume excessive resources of the processing device, and even a small processing device The clock frequency can be changed by this method.

また、本発明においては、合計必要処理能力とクロック周波数との対応を、例えばテーブルなどとして予め記憶しておく。アプリケーションプログラム毎ではなく、合計必要処理能力に対するクロック周波数を記憶しておくのみであるため、実行するアプリケーションプログラムを追加した場合であっても、対応を変更する必要はない。   In the present invention, the correspondence between the total required processing capacity and the clock frequency is stored in advance as a table, for example. Since only the clock frequency for the total required processing capacity is stored, not for each application program, it is not necessary to change the correspondence even when an application program to be executed is added.

また、本発明においては、処理装置にて第1の制御プログラムを実行し、第1の制御プログラム上で第2の制御プログラムを実行し、第2の制御プログラム上でアプリケーションプログラムを実行する。プログラムの実行を階層構造とすることにより、例えば処理装置の構成を変更した場合には第1の制御プログラムのみを変更すればよいため、汎用性が高い。また、第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を基に合計必要処理能力を算出する構成とすることにより、実行するアプリケーションプログラムを追加した場合などには、処理装置の構成に関係のない第2の制御プログラムにてアプリケーションプログラムと必要処理能力との対応を追加すればよく、第1の制御プログラムには影響しないため、汎用性が高い。   In the present invention, the processing device executes the first control program, executes the second control program on the first control program, and executes the application program on the second control program. Since the execution of the program has a hierarchical structure, for example, when the configuration of the processing device is changed, only the first control program needs to be changed. Further, when the second control program calculates the total required processing capacity based on the correspondence between the application program and the required processing capacity, when the application program to be executed is added, the configuration of the processing apparatus is increased. The correspondence between the application program and the necessary processing capacity may be added in the second control program that has no relation, and it does not affect the first control program, so the versatility is high.

また、本発明においては、実行するアプリケーションプログラムを追加した場合などに、第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を生成する。例えば、アプリケーションプログラムに予め必要処理能力又は演算量等の情報をデータとして保持させておき、このアプリケーションプログラムが処理装置にインストールされるなどして追加された場合に、第2の制御プログラムが追加されたアプリケーションプログラムからデータを読み出して、テーブルなどとして記憶されたアプリケーションプログラムと必要処理能力との対応を追加又は修正することができる。   In the present invention, when an application program to be executed is added, the second control program generates a correspondence between the application program and the necessary processing capacity. For example, when information such as necessary processing capacity or calculation amount is stored as data in an application program in advance and the application program is added to the processing device, the second control program is added. Data can be read out from the application program, and the correspondence between the application program stored as a table and the necessary processing capacity can be added or corrected.

また、本発明においては、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を基に処理装置のクロック周波数を決定する。第1の制御プログラムにクロック周波数を決定する機能を備える必要がないため、処理装置の構成が変更された場合に、第1の制御プログラムの変更が行い易い。第2の制御プログラムは、合計必要処理能力とクロック周波数との対応を変更するのみでよい。   In the present invention, the second control program determines the clock frequency of the processing device based on the correspondence between the total required processing capacity and the clock frequency. Since the first control program does not need to have a function of determining the clock frequency, the first control program can be easily changed when the configuration of the processing device is changed. The second control program only needs to change the correspondence between the total required processing capacity and the clock frequency.

また、本発明においては、処理装置の構成を変更した場合などに、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を生成する。例えば、第2の制御プログラムは、処理装置から直接的に又は第1の制御プログラムから間接的に、処理装置の規模及び処理能力等の情報を取得することによって、テーブルなどとして記憶された計必要処理能力とクロック周波数との対応を修正又は変更することができる。   In the present invention, when the configuration of the processing apparatus is changed, the second control program generates a correspondence between the total required processing capacity and the clock frequency. For example, the second control program needs to be stored as a table or the like by acquiring information such as the scale and processing capacity of the processing device directly from the processing device or indirectly from the first control program. The correspondence between processing capability and clock frequency can be modified or changed.

第1発明及び第7発明による場合は、アプリケーションプログラムと必要処理能力との対応を予め記憶しておき、同時的に実行するアプリケーションプログラムの各必要処理能力を基に合計必要処理能力を算出し、この合計必要処理能力に応じてクロック周波数を決定して変更することにより、複数のアプリケーションプログラムを実行する場合であっても最適なクロック周波数で処理装置を動作させることができ、小規模な処理装置であってもこの方法でクロック周波数の変更を行うことができる。また、処理装置の構成に関係のない必要処理能力を各アプリケーションプログラムについて記憶しておくことによって、処理装置の構成を変更した場合であってもアプリケーションプログラムと必要処理能力との対応を変更する必要はないため、汎用性が高い。よって、本発明のクロック周波数制御方法及び制御プログラムを利用することによって、処理装置の構成又はアプリケーションプログラムの構成等に関わらず、十分な処理能力でアプリケーションプログラムを実行できると共に、クロック周波数の変更による処理装置の消費電力の低減を十分に実現できる。   In the case of the first invention and the seventh invention, the correspondence between the application program and the required processing capacity is stored in advance, and the total required processing capacity is calculated based on each required processing capacity of the application program to be executed simultaneously, By determining and changing the clock frequency according to the total required processing capacity, it is possible to operate the processing device at the optimum clock frequency even when a plurality of application programs are executed. Even so, the clock frequency can be changed by this method. In addition, by storing the required processing capacity unrelated to the configuration of the processing apparatus for each application program, it is necessary to change the correspondence between the application program and the required processing capacity even when the configuration of the processing apparatus is changed. Because there is no, versatility is high. Therefore, by using the clock frequency control method and the control program of the present invention, the application program can be executed with sufficient processing capacity regardless of the configuration of the processing device or the configuration of the application program, and the processing by changing the clock frequency. It is possible to sufficiently reduce the power consumption of the apparatus.

また、第2発明による場合は、合計必要処理能力とクロック周波数との対応を予め記憶しておき、同時的に実行するアプリケーションプログラムの各必要処理能力を基に算出した合計必要処理能力に対応するクロック周波数を取得することにより、アプリケーション毎にクロック周波数を記憶しておく必要がなく、実行するアプリケーションプログラムを追加した場合であっても記憶した対応を変更する必要はないため、汎用性の高いクロック周波数制御方法を実現することができる。   Further, in the case of the second invention, the correspondence between the total required processing capacity and the clock frequency is stored in advance, and the total required processing capacity corresponding to the total required processing capacity calculated based on each required processing capacity of the application program to be executed simultaneously is supported. By acquiring the clock frequency, it is not necessary to store the clock frequency for each application, and even if an application program to be executed is added, there is no need to change the stored correspondence, so a highly versatile clock A frequency control method can be realized.

また、第3発明による場合は、処理装置にて第1の制御プログラムを実行し、第1の制御プログラム上で第2の制御プログラムを実行し、第2の制御プログラム上でアプリケーションプログラムを実行し、第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を基に合計必要処理能力を算出することにより、例えば処理装置の構成を変更した場合には第1の制御プログラムのみを変更すればよく、実行するアプリケーションの追加などに容易に対応できるため、より汎用性の高いクロック周波数制御方法を実現することができる。   In the case of the third invention, the processing device executes the first control program, executes the second control program on the first control program, and executes the application program on the second control program. When the second control program calculates the total required processing capacity based on the correspondence between the application program and the required processing capacity, for example, when the configuration of the processing apparatus is changed, only the first control program is changed. In many cases, since it is possible to easily cope with addition of an application to be executed, a more versatile clock frequency control method can be realized.

また、第4発明による場合は、実行するアプリケーションプログラムに応じて第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を生成することにより、アプリケーションプログラムが処理装置にインストールされるなどして追加された場合に、第2の制御プログラムがアプリケーションプログラムと必要処理能力との対応を自動的に生成するため、アプリケーションプログラムと必要処理能力との対応を別途変更する必要がなく、利便性の高いクロック周波数制御方法を実現することができる。   Further, in the case of the fourth invention, the second control program generates a correspondence between the application program and the required processing capacity in accordance with the application program to be executed, so that the application program is added to the processing device and added. In this case, since the second control program automatically generates the correspondence between the application program and the necessary processing capacity, it is not necessary to separately change the correspondence between the application program and the necessary processing capacity, and the clock is highly convenient. A frequency control method can be realized.

また、第5発明による場合は、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を基に処理装置のクロック周波数を決定して変更することにより、処理装置の構成が変更された場合に、第1の制御プログラムの変更が行い易く、第2の制御プログラムは合計必要処理能力とクロック周波数との対応を変更するのみでよいため、処理装置の構成の変更に容易に対応できる。よって、より汎用性の高いクロック周波数制御方法を実現することができる。   Further, in the case of the fifth invention, the configuration of the processing device is changed by the second control program determining and changing the clock frequency of the processing device based on the correspondence between the total required processing capacity and the clock frequency. In this case, the first control program can be easily changed, and the second control program only needs to change the correspondence between the total required processing capacity and the clock frequency, and therefore can easily cope with the change in the configuration of the processing apparatus. Therefore, a more versatile clock frequency control method can be realized.

また、第6発明による場合は、処理装置の規模、処理能力及び構成等に応じて、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を生成する構成とすることにより、処理装置の構成を変更した場合に、第2の制御プログラムが合計必要処理能力とクロック周波数との対応を自動的に生成するため、合計必要処理能力とクロック周波数との対応を別途変更する必要がなく、より利便性の高いクロック周波数制御方法を実現することができる。   According to the sixth aspect of the invention, the second control program generates a correspondence between the total required processing capacity and the clock frequency in accordance with the scale, processing capacity, configuration, etc. of the processing apparatus. When the configuration is changed, the second control program automatically generates the correspondence between the total required processing capacity and the clock frequency, so there is no need to separately change the correspondence between the total required processing capacity and the clock frequency. A more convenient clock frequency control method can be realized.

(実施の形態1)
以下、本発明をその実施の形態を示す図面に基づき具体的に説明する。図1は、本発明に係るクロック周波数制御方法を適用したコンピュータシステムの一構成例を示すブロック図である。図において1はコンピュータシステムの中核をなすCPUであり、制御プログラム及びアプリケーションプログラム等の種々のプログラムを実行することにより種々の処理を行う処理装置である。また、図示のコンピュータシステムは、CPU1にバスを介して接続される主記憶部2、入力部3、出力部4及び補助記憶部5等を備えると共に、CPU1及びその他の各部へ供給されるクロック信号を発生するクロック発生部6を備えている(ただし、図1においてはクロック発生部6からCPU1へのクロック信号の供給経路のみを図示し、その他の各部へのクロック信号の供給経路は図示を省略してある)。
(Embodiment 1)
Hereinafter, the present invention will be specifically described with reference to the drawings showing embodiments thereof. FIG. 1 is a block diagram showing a configuration example of a computer system to which a clock frequency control method according to the present invention is applied. In the figure, reference numeral 1 denotes a CPU that forms the core of a computer system, and is a processing device that performs various processes by executing various programs such as a control program and an application program. The illustrated computer system includes a main storage unit 2, an input unit 3, an output unit 4, an auxiliary storage unit 5 and the like connected to the CPU 1 via a bus, and a clock signal supplied to the CPU 1 and other units. (However, in FIG. 1, only the clock signal supply path from the clock generation section 6 to the CPU 1 is shown, and the clock signal supply path to the other sections is omitted.) )

主記憶部2は、SRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等のデータ書き換え可能且つ高速アクセス可能なメモリ素子で構成されており、CPU1にて実行されるコンピュータプログラム及び各種のデータ等をロードしてCPU1がアクセスする、又はCPU1の演算処理の過程で発生したデータを一時的に記憶する等の目的で利用される。   The main storage unit 2 is composed of a memory element that can be rewritten and accessed at high speed, such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). It is used for the purpose of loading data or the like and accessing the CPU 1 or temporarily storing data generated in the course of the arithmetic processing of the CPU 1.

入力部3は、外部からのデータ入力を受け付けるものである。例えば入力部3は、キーボード及びマウス等により構成され、ユーザからのデータ入力を受け付けてCPU1へ通知する。また例えば、小規模な電気機器などの場合には、複数のボタン及びスイッチ、又はタッチパネル等により入力部3は構成されてユーザからのデータ入力を受け付ける。更に、制御機器などの場合には、入力部3はユーザからのデータ入力を受け付けるのではなく、各種のセンサなどの検知結果をデータ入力として受け付ける構成であってもよい。   The input unit 3 receives data input from the outside. For example, the input unit 3 includes a keyboard and a mouse, and receives data input from the user and notifies the CPU 1 of the data input. Further, for example, in the case of a small-scale electric device or the like, the input unit 3 is configured by a plurality of buttons and switches, a touch panel, or the like, and accepts data input from the user. Further, in the case of a control device or the like, the input unit 3 may be configured to receive detection results from various sensors as data input instead of receiving data input from the user.

出力部4は、外部へのデータ出力を行うものであり、例えば液晶ディスプレイなどの表示装置により構成され、CPU1からの表示命令に従って文字、写真又は絵等の表示出力するようにしてある。また、例えば出力部4は、文字、写真又は絵等を印刷出力するレーザプリンタ又はインクジェットプリンタ等の印刷装置で構成されるものであってもよい。更に、制御機器などの場合には、制御対象の機器へ制御信号を出力する構成であってもよい。   The output unit 4 outputs data to the outside. The output unit 4 includes a display device such as a liquid crystal display, and displays and outputs characters, photographs, pictures, and the like in accordance with a display command from the CPU 1. Further, for example, the output unit 4 may be configured by a printing apparatus such as a laser printer or an ink jet printer that prints out characters, photos, pictures, or the like. Further, in the case of a control device or the like, it may be configured to output a control signal to a device to be controlled.

補助記憶部5は、ハードディスクなどの磁気ディスク装置又はフラッシュメモリなどの不揮発性のメモリ素子で構成されている。また、補助記憶部5は、メモリカード、光ディスク又は磁気ディスク等の記憶媒体と、これらの記憶媒体を装着してデータの読み書きを行うドライブ装置とで構成されていてもよい。補助記憶部5には、CPU1にて実行される制御プログラムCP及びアプリケーションプログラムAP等の各種のプログラム、並びにこれらのプログラムを実行する際に利用される各種のデータ等が多数インストールされて予め記憶してある。また、本発明に係るクロック周波数制御方法を適用したコンピュータシステムにおいては、補助記憶部5にアプリケーションテーブルAT及びクロック周波数テーブルCTがデータとして記憶してある。これらのテーブルの詳細は後述するが、アプリケーションテーブルATはCPU1にて実行される各アプリケーションプログラムAPについて必要な処理能力をそれぞれ記憶するテーブルであり、クロック周波数テーブルCTはクロック発生部6が発生するクロック信号のクロック周波数を決定するためのテーブルである。   The auxiliary storage unit 5 includes a magnetic disk device such as a hard disk or a non-volatile memory element such as a flash memory. In addition, the auxiliary storage unit 5 may be configured by a storage medium such as a memory card, an optical disk, or a magnetic disk, and a drive device that loads these storage media and reads / writes data. In the auxiliary storage unit 5, various programs such as a control program CP and an application program AP executed by the CPU 1, and various data used when executing these programs are installed and stored in advance. It is. In the computer system to which the clock frequency control method according to the present invention is applied, the application table AT and the clock frequency table CT are stored as data in the auxiliary storage unit 5. Although details of these tables will be described later, the application table AT is a table for storing necessary processing capabilities for each application program AP executed by the CPU 1, and the clock frequency table CT is a clock generated by the clock generator 6. It is a table for determining the clock frequency of a signal.

クロック発生部6は、水晶振動子若しくはセラミック振動子等を利用した固体振動子発振回路、又はリングオシレータ等のように所定周波数の発振信号を出力する発振回路と、この発振回路からの発振信号を分周して出力する分周回路とを備えている。本システムのクロック発生部6は、CPU1から与えられる命令に応じて出力するクロック信号のクロック周波数を変更することができるようにしてある。クロック周波数の変更は、例えば上述の分周回路による発振信号の分周数を変更することにより行うことができる。   The clock generator 6 is a solid-state oscillator using a crystal oscillator or a ceramic oscillator, or an oscillation circuit that outputs an oscillation signal of a predetermined frequency, such as a ring oscillator, and an oscillation signal from the oscillation circuit. And a frequency dividing circuit for dividing and outputting. The clock generator 6 of this system can change the clock frequency of the clock signal to be output in accordance with an instruction given from the CPU 1. The clock frequency can be changed, for example, by changing the frequency division number of the oscillation signal by the frequency divider circuit described above.

図2は、CPU1にて実行されるプログラムの階層構造を説明するための模式図である。プログラムの実行は、補助記憶部5に記憶された制御プログラムCP及びアプリケーションプログラムAP等を主記憶部2に読み出し、CPU1が主記憶部2からプログラムのコードを読み出すことにより行われる。CPU1で実行されるプログラムは、CPU1上で実行される制御プログラムCPと、この制御プログラムCP上で実行される複数のアプリケーションプログラムAP1〜AP3によるアプリケーション層との大きく2つの階層に分類することができる。また、制御プログラムCPは、例えばOS(オペレーティングシステム)又はインタープリタ等のプログラムであり、本発明の制御プログラムCPは、CPU1上で実行される抽象化層の制御プログラム(第1の制御プログラム)と、この抽象化層の制御プログラム上で実行されるプラットホーム層の制御プログラム(第2の制御プログラム)との2つの階層に分類することができる。   FIG. 2 is a schematic diagram for explaining a hierarchical structure of a program executed by the CPU 1. The program is executed by reading the control program CP, application program AP, and the like stored in the auxiliary storage unit 5 into the main storage unit 2, and the CPU 1 reading out the program code from the main storage unit 2. The programs executed by the CPU 1 can be roughly classified into two layers: a control program CP executed on the CPU 1 and an application layer by a plurality of application programs AP1 to AP3 executed on the control program CP. . The control program CP is a program such as an OS (Operating System) or an interpreter, for example, and the control program CP of the present invention includes an abstraction layer control program (first control program) executed on the CPU 1; It can be classified into two layers: a platform layer control program (second control program) executed on the abstraction layer control program.

抽象化層の制御プログラムは、下層のCPU1及びその他のハードウェアの構成(アーキテクチャ)が異なる場合であっても、上層のプログラムに対して、ハードウェアの構成を抽象化し、共通の動作環境を与えるためのプログラムである。このため、抽象化層の制御プログラムは、特にCPU1のハードウェア構成に依存するものであり、異なるCPU1に対しては異なる抽象化層の制御プログラムを用いる。   The abstraction layer control program abstracts the hardware configuration to the upper layer program and provides a common operating environment even when the lower-layer CPU 1 and other hardware configurations (architectures) are different. It is a program for. For this reason, the abstraction layer control program depends particularly on the hardware configuration of the CPU 1, and different abstraction layer control programs are used for different CPUs 1.

プラットホーム層の制御プログラムは、上層のアプリケーション層にて実行される複数のアプリケーションプログラムAP1〜AP3のスケジューリング及びリソース管理等の処理を行うプログラムである。また、プラットホーム層の制御プログラムは、抽象化層の制御プログラム上で実行されるため、CPU1のハードウェア構成に依存せず、異なるCPU1に対しても同じプラットホーム層の制御プログラムを用いることができる。更に、本発明のプラットホーム層の制御プログラムは、上述のアプリケーションテーブルAT及びクロック周波数テーブルCTを用いて、クロック発生部6が発生するクロック信号のクロック周波数を変更する処理を行うようにしてある。   The control program of the platform layer is a program that performs processing such as scheduling and resource management of the plurality of application programs AP1 to AP3 executed in the upper application layer. Further, since the platform layer control program is executed on the abstraction layer control program, the same platform layer control program can be used for different CPUs 1 without depending on the hardware configuration of the CPU 1. Furthermore, the platform layer control program of the present invention performs a process of changing the clock frequency of the clock signal generated by the clock generator 6 using the application table AT and the clock frequency table CT described above.

アプリケーションプログラムAP1〜AP3は、システムがPC又はWS等の場合には、例えばワープロ、表計算又は画像編集等のプログラムである。また、システムが車輌などに搭載された機器の制御を行う制御システムの場合には、例えばドアの施錠/開錠、ヘッドランプ若しくはルームランプ等の点灯/消灯の制御、又はカーナビゲーション装置若しくはオーディオ装置等の動作制御等を行うプログラムである。これらのアプリケーションプログラムAP1〜AP3は、プラットホーム層の制御プログラム上で複数を同時的に実行することができるようにしてある。   The application programs AP1 to AP3 are, for example, word processors, spreadsheets, image editing programs, etc. when the system is a PC or WS. When the system is a control system that controls equipment mounted on a vehicle or the like, for example, door locking / unlocking, headlight or room lamp lighting / extinguishing control, or car navigation device or audio device It is a program that performs operation control and the like. A plurality of these application programs AP1 to AP3 can be executed simultaneously on the control program of the platform layer.

図3は、アプリケーションテーブルAT及びクロック周波数テーブルCTの一例を示す模式図である。アプリケーションテーブルAT及びクロック周波数テーブルCTは、補助記憶部5に予め記憶してあり、主記憶部2に読み出された後、プラットホーム層の制御プログラムがクロック周波数の変更を行う際に利用される。アプリケーションテーブルATは、CPU1にて実行され得るアプリケーションプログラムAP1〜AP3、即ち補助記憶部5にインストールされたアプリケーションプログラムAP1〜AP3のそれぞれについて、要求する処理能力を数値化した必要処理能力が対応付けて記憶してある(図3(a)参照)。図示の例では、アプリケーションプログラムAP1の必要処理能力は1であり、アプリケーションプログラムAP2の必要処理能力は10であり、アプリケーションプログラムAP3の必要処理能力は20であるため、アプリケーションプログラムAP3が最も高度な処理を行うものと判断できる。   FIG. 3 is a schematic diagram illustrating an example of the application table AT and the clock frequency table CT. The application table AT and the clock frequency table CT are stored in the auxiliary storage unit 5 in advance, and after being read out to the main storage unit 2, the platform layer control program changes the clock frequency. The application table AT is associated with the required processing capacity obtained by quantifying the required processing capacity for each of the application programs AP1 to AP3 that can be executed by the CPU 1, that is, the application programs AP1 to AP3 installed in the auxiliary storage unit 5. It is stored (see FIG. 3 (a)). In the illustrated example, the required processing capacity of the application program AP1 is 1, the required processing capacity of the application program AP2 is 10, and the required processing capacity of the application program AP3 is 20, so that the application program AP3 has the most advanced processing capability. Can be determined.

なお、アプリケーションテーブルATは、図1に示すコンピュータシステムの設計者が予め作成して補助記憶部5に記憶しておく構成としてもよく、アプリケーションプログラムAP1〜AP3の設計者がそれぞれ必要処理能力を設定して各アプリケーションプログラムにデータとして付与しておき、プラットホーム層の制御プログラムがこのデータを読み出してアプリケーションテーブルATを自動的に作成する構成としてもよい。   The application table AT may be prepared in advance by the computer system designer shown in FIG. 1 and stored in the auxiliary storage unit 5, and the designers of the application programs AP1 to AP3 set the necessary processing capacity respectively. Then, it may be configured such that each application program is given as data, and the control program of the platform layer reads this data and automatically creates the application table AT.

クロック周波数テーブルCTは、同時的に実行される複数のアプリケーションプログラムAP1〜AP3の必要処理能力の合計値である合計必要処理能力と、この値に対して最適なクロック周波数とが対応付けて記憶してある(図3(b)参照)。本実施例において合計必要処理能力は、アプリケーションテーブルATの各アプリケーションプログラムAP1〜AP3の必要処理能力を単純に加算した値(例えば、アプリケーションプログラムAP1〜AP3の3つを同時的に実行する場合は合計必要処理能力は1+10+20=31であり、アプリケーションプログラムAP1及びAP2の2つを同時的に実行する場合は合計必要処理能力は1+10=11である)とするが、これに限るものではなく、例えばアプリケーションプログラムAP1〜AP3を重み付けする計数と各必要処理能力とを乗算した後に加算して合計必要処理能力を算出するなどの構成としてもよく、その他の方法で算出する構成としてもよい。   The clock frequency table CT stores a total required processing capacity that is a total value of required processing capacities of a plurality of application programs AP1 to AP3 that are executed at the same time, and an optimum clock frequency corresponding to this value. (See FIG. 3B). In this embodiment, the total required processing capacity is a value obtained by simply adding the required processing capacities of the application programs AP1 to AP3 of the application table AT (for example, the total is required when three application programs AP1 to AP3 are executed simultaneously). The required processing capacity is 1 + 10 + 20 = 31, and when the two application programs AP1 and AP2 are executed simultaneously, the total required processing capacity is 1 + 10 = 11). The program AP1 to AP3 may be configured to calculate the total required processing capacity by multiplying the necessary weights and the counts for weighting the programs AP1 to AP3, or may be calculated by other methods.

また、クロック周波数テーブルCTに記憶されるクロック周波数は、CPU1及びクロック発生部6等の構成に依存する。図示の例は、クロック発生部6が”低速”、”中速”及び”高速”の3段階でクロック信号の周波数を変化させることができる場合であり、合計必要処理能力が1〜10の場合にクロック周波数が”低速”に設定され、合計必要処理能力が11〜20の場合にクロック周波数が”中速”に設定され、合計必要処理能力が21以上の場合にクロック周波数が”高速”に設定されるようにしてある。なお、クロック周波数テーブルCTは、コンピュータシステムの設計者又はCPU1の設計者等が予め作成して補助記憶部5に記憶しておく構成としてもよく、プラットホーム層の制御プログラムがCPU1又は抽象化層の制御プログラム等からCPU1の処理能力に係る情報を取得してクロック周波数テーブルCTを自動的に作成する構成としてもよい。   Further, the clock frequency stored in the clock frequency table CT depends on the configuration of the CPU 1, the clock generator 6, and the like. The illustrated example is a case where the clock generator 6 can change the frequency of the clock signal in three stages of “low speed”, “medium speed”, and “high speed”, and the total required processing capacity is 1 to 10 When the total required processing capacity is 11 to 20, the clock frequency is set to “medium speed”, and when the total required processing capacity is 21 or more, the clock frequency is set to “high speed”. It is supposed to be set. The clock frequency table CT may be created in advance by the computer system designer or the CPU 1 designer and stored in the auxiliary storage unit 5, and the platform layer control program is stored in the CPU 1 or the abstraction layer. The clock frequency table CT may be automatically created by acquiring information related to the processing capability of the CPU 1 from a control program or the like.

図4は、アプリケーションプログラムAP1〜AP3の実行とクロック周波数の変更との一例を示すタイミングチャートである。例えば、時刻t0においてアプリケーションプログラムAP1及びAP2をCPU1にて同時的に実行する場合、プラットホーム層の制御プログラムは、まずアプリケーションテーブルATからアプリケーションプログラムAP1の必要処理能力”1”とアプリケーションプログラムAP2の必要処理能力”10”とを取得し、これらを加算して合計必要処理能力”11”を算出する。次いで、プラットホーム層の制御プログラムは、クロック周波数テーブルCTから合計必要処理能力”11”に対応するクロック周波数”中速”を取得するため、クロック発生部6が出力するクロック信号の周波数を”中速”に変更する。   FIG. 4 is a timing chart showing an example of the execution of the application programs AP1 to AP3 and the change of the clock frequency. For example, when the application programs AP1 and AP2 are simultaneously executed by the CPU 1 at the time t0, the platform layer control program first requires the required processing capability “1” of the application program AP1 and the required processing of the application program AP2 from the application table AT. Capability “10” is acquired and added to calculate the total required processing capability “11”. Next, the platform layer control program obtains the clock frequency “medium speed” corresponding to the total required processing capacity “11” from the clock frequency table CT, so that the frequency of the clock signal output from the clock generator 6 is set to “medium speed”. Change to "".

また、時刻t1において更にアプリケーションプログラムAP3を同時的に実行する場合、プラットホーム層の制御プログラムは、アプリケーションテーブルATを基に合計必要処理能力”31”を算出し、クロック周波数テーブルCTからクロック周波数”高速”を取得するため、クロック発生部6が出力するクロック信号の周波数を”高速”に変更する。以下、プラットホーム層の制御プログラムは同様の処理を繰り返し行い、例えばアプリケーションプログラムAP1のみが実行される期間(t3〜t4、t5〜t6、t7〜t8)はクロック周波数が”低速”に設定され、アプリケーションプログラムAP1及びAP2が同時的に実行される期間(t0〜t1、t2〜t3、t4〜t5、t8〜t9)はクロック周波数が”中速”に設定され、アプリケーションプログラムAP1及びAP3が同時的に実行される期間(t6〜t7)及びアプリケーションプログラムAP1〜AP3が同時的に実行される期間(t1〜t2)はクロック周波数が”高速”に設定される。   Further, when the application program AP3 is further executed simultaneously at time t1, the platform layer control program calculates the total required processing capacity “31” based on the application table AT, and the clock frequency “high speed” from the clock frequency table CT. In order to acquire “,” the frequency of the clock signal output from the clock generator 6 is changed to “high speed”. Hereinafter, the platform layer control program repeats the same processing, for example, during the period when only the application program AP1 is executed (t3 to t4, t5 to t6, t7 to t8), the clock frequency is set to "low speed" During the period in which the programs AP1 and AP2 are executed simultaneously (t0 to t1, t2 to t3, t4 to t5, t8 to t9), the clock frequency is set to “medium speed”, and the application programs AP1 and AP3 are simultaneously executed. The clock frequency is set to “high speed” during the period (t6 to t7) in which the application programs AP1 to AP3 are executed simultaneously (t1 to t2).

図5は、プラットホーム層の制御プログラムが行うクロック周波数変更処理の手順を示すフローチャートである。クロック周波数変更処理において、プラットホーム層の制御プログラムは、CPU1にて実行するアプリケーションプログラムAPの実行数に変化があるか否かを調べ(ステップS1)、実行数に変化がない場合には(S1:NO)、実行数が変化するまで待機する。アプリケーションプログラムAPの実行数に変化がある場合(S1:YES)、プラットホーム層の制御プログラムは、補助記憶部5又は主記憶部2からアプリケーションテーブルATを読み出して(ステップS2)、実行するアプリケーションAPの必要処理能力をアプリケーションテーブルATから取得する(ステップS3)。   FIG. 5 is a flowchart showing the procedure of the clock frequency changing process performed by the platform layer control program. In the clock frequency changing process, the platform layer control program checks whether or not the execution number of the application program AP executed by the CPU 1 has changed (step S1). If the execution number has not changed (S1: NO), wait until the number of executions changes. When there is a change in the number of executions of the application program AP (S1: YES), the platform layer control program reads the application table AT from the auxiliary storage unit 5 or the main storage unit 2 (step S2) and executes the application AP to be executed. The necessary processing capacity is acquired from the application table AT (step S3).

次いで、プラットホーム層の制御プログラムは、取得した各必要処理能力を加算することによって合計必要処理能力を算出し(ステップS4)、補助記憶部5又は主記憶部2からクロック周波数テーブルCTを読み出して(ステップS5)、算出した合計必要処理能力に対応するクロック周波数をクロック周波数テーブルCTから取得することによって、変更するクロック周波数を決定する(ステップS6)。その後、プラットホーム層の制御プログラムは、クロック発生部6が出力するクロック信号の周波数を決定したクロック周波数に変更して(ステップS7)、処理を終了する。   Next, the platform layer control program calculates the total required processing capacity by adding the acquired required processing capacities (step S4), and reads the clock frequency table CT from the auxiliary storage unit 5 or the main storage unit 2 ( In step S5), the clock frequency to be changed is determined by acquiring the clock frequency corresponding to the calculated total required processing capacity from the clock frequency table CT (step S6). Thereafter, the platform layer control program changes the frequency of the clock signal output from the clock generator 6 to the determined clock frequency (step S7), and ends the process.

以上の構成のクロック周波数制御方法を適用したコンピュータシステムにおいては、アプリケーションプログラムAPと必要処理能力との対応を予めアプリケーションテーブルATに記憶しておくと共に、合計必要処理能力とクロック周波数との対応を予めクロック周波数テーブルCTに記憶しておくことによって、プラットホーム層の制御プログラムが簡単な演算により合計必要処理能力を算出してCPU1のクロック周波数を決定することができるため、小規模又は安価なCPU1であってもクロック周波数の変更処理が大きな負荷となることはない。よって、多数のアプリケーションプログラムAPを同時的に実行するシステムであっても、適切なクロック周波数にてCPU1が処理を行うことができ、十分な処理能力と十分な低消費電力化とを実現することができる。   In the computer system to which the clock frequency control method having the above configuration is applied, the correspondence between the application program AP and the required processing capacity is stored in the application table AT in advance, and the correspondence between the total required processing capacity and the clock frequency is previously stored. By storing in the clock frequency table CT, the control program of the platform layer can calculate the total required processing capacity by a simple calculation and determine the clock frequency of the CPU 1, so that the CPU 1 is a small or inexpensive CPU 1. However, the clock frequency changing process does not become a heavy load. Therefore, even in a system that executes a large number of application programs AP at the same time, the CPU 1 can perform processing at an appropriate clock frequency, and realize sufficient processing capability and sufficient low power consumption. Can do.

また、制御プログラムCPをプラットホーム層の制御プログラム及び抽象化層の制御プログラムの2階層に分けると共に、アプリケーションテーブルATを用いた合計必要処理能力の算出及びクロック周波数テーブルCTを用いたクロック周波数の決定等の処理をプラットホーム層の制御プログラムが行う構成とすることによって、CPU1及びその他のハードウェア構成を変更した場合には抽象化層の制御プログラムのみを変更すればよく、プラットホーム層の制御プログラムを変更する必要はないため、制御プログラムCPの汎用性を高めることができる。   In addition, the control program CP is divided into two layers: a platform layer control program and an abstraction layer control program, calculation of the total required processing capacity using the application table AT, determination of the clock frequency using the clock frequency table CT, etc. In the configuration in which the control program of the platform layer performs the above process, when the CPU 1 and other hardware configurations are changed, only the control program of the abstraction layer needs to be changed, and the control program of the platform layer is changed. Since it is not necessary, the versatility of the control program CP can be improved.

また、アプリケーションテーブルATは、CPU1及びその他のハードウェア構成に関係のない必要処理能力が各アプリケーションに対応付けて記憶してあるため、CPU1及びその他のハードウェアの構成が変更された場合であっても、アプリケーションテーブルATを変更する必要はなく、汎用性が高い。また、クロック周波数テーブルCTは、合計必要処理能力とクロック周波数との対応が記憶してあり、アプリケーションプログラムAP毎のクロック周波数を記憶しておく必要がないため、新たなアプリケーションプログラムAPがインストールされた場合であっても、クロック周波数テーブルCTを変更する必要がなく、汎用性が高い。よって、本発明のクロック周波数制御方法は汎用性が高く、様々なシステムに適用することができ、CPU1及びその他のハードウェア構成又はアプリケーションプログラムAPの構成に関わらず、十分な処理能力でアプリケーションプログラムAPを実行できると共に、クロック周波数の変更による処理装置の消費電力の低減を十分に実現できる。   The application table AT stores the necessary processing capacity unrelated to the CPU 1 and other hardware configurations in association with each application, so that the configuration of the CPU 1 and other hardware is changed. However, it is not necessary to change the application table AT, and the versatility is high. The clock frequency table CT stores the correspondence between the total required processing capacity and the clock frequency, and it is not necessary to store the clock frequency for each application program AP, so a new application program AP is installed. Even in this case, it is not necessary to change the clock frequency table CT, and the versatility is high. Therefore, the clock frequency control method of the present invention is highly versatile and can be applied to various systems, and the application program AP with sufficient processing capability regardless of the configuration of the CPU 1 and other hardware or application program AP. The power consumption of the processing apparatus can be sufficiently reduced by changing the clock frequency.

なお、本実施の形態においては、3つのアプリケーションプログラムAP1〜AP3をCPU1にて実行する構成としたが、これに限るものではなく、2つ以下又は4つ以上のアプリケーションプログラムAPを同時的に実行する構成としてもよい。また、図3のアプリケーションテーブルAT及びクロック周波数テーブルCTに示した値は一例であってこれに限るものではなく、同様に図4に示したタイミングチャートは一例であってこれに限るものではない。更には、図1に示したコンピュータシステムは一例であってこれに限るものではなく、本発明は種々のシステムに適用することができる。   In the present embodiment, the three application programs AP1 to AP3 are executed by the CPU 1. However, the present invention is not limited to this, and two or less or four or more application programs AP are executed simultaneously. It is good also as composition to do. Further, the values shown in the application table AT and the clock frequency table CT in FIG. 3 are examples and are not limited thereto. Similarly, the timing chart shown in FIG. 4 is an example and is not limited thereto. Furthermore, the computer system shown in FIG. 1 is an example, and the present invention is not limited to this. The present invention can be applied to various systems.

(実施の形態2)
実施の形態2に係るクロック周波数制御方法は、実施の形態1に係るクロック周波数制御方法にアプリケーションテーブルATを自動生成する方法を追加したものである。図6は、図2に示した階層構造において新たなアプリケーションプログラムAP4を追加した構成を示す模式図である。アプリケーションプログラムAP4の追加は、図1に示すコンピュータシステムの補助記憶部5にアプリケーションプログラムAP4をインストールすることによって行われる。よって、アプリケーション層にはアプリケーションプログラムAP4が追加されるため、プラットホーム層の制御プログラムはアプリケーションテーブルATを変更する必要がある。クロック周波数テーブルCTを変更する必要はない。
(Embodiment 2)
The clock frequency control method according to the second embodiment is obtained by adding a method for automatically generating the application table AT to the clock frequency control method according to the first embodiment. FIG. 6 is a schematic diagram showing a configuration in which a new application program AP4 is added to the hierarchical structure shown in FIG. The application program AP4 is added by installing the application program AP4 in the auxiliary storage unit 5 of the computer system shown in FIG. Accordingly, since the application program AP4 is added to the application layer, the platform layer control program needs to change the application table AT. There is no need to change the clock frequency table CT.

図7は、変更されたアプリケーションテーブルATの一例を示す模式図であり、図3(a)に示したアプリケーションテーブルATに、追加されたアプリケーションプログラムAP4に係る項目が追加されている。図示の例では、アプリケーションプログラムAP4の必要処理能力は”10”である。アプリケーションテーブルATの変更はプラットホーム層の制御プログラムが行うが、プラットホーム層の制御プログラムが必要処理能力を取得することができるように、各アプリケーションプログラムAP1〜AP4には必要処理能力に係るデータが予め付与してある。このデータは、例えば各アプリケーションプログラムAP1〜AP4の設計者が予め付与しておけばよい。よって、プラットホーム層の制御プログラムは、新たなアプリケーションプログラムAP4がインストールされた場合には、このアプリケーションプログラムAP4から必要処理能力に係るデータを取得してアプリケーションテーブルATを変更することができる。   FIG. 7 is a schematic diagram showing an example of the changed application table AT. Items related to the added application program AP4 are added to the application table AT shown in FIG. In the illustrated example, the necessary processing capability of the application program AP4 is “10”. The application table AT is changed by the platform layer control program, but the application program AP1 to AP4 is pre-assigned data related to the required processing capability so that the platform layer control program can acquire the required processing capability. It is. This data may be given in advance by the designer of each of the application programs AP1 to AP4, for example. Therefore, when a new application program AP4 is installed, the platform layer control program can acquire data related to the required processing capacity from the application program AP4 and change the application table AT.

図8は、アプリケーションプログラムAP1〜AP4の実行とクロック周波数の変更との一例を示すタイミングチャートである。図示の例において、アプリケーションプログラムAP1のみが実行される期間(t3〜t4、t6〜t7、t8〜t9)はクロック周波数が”低速”に設定される。アプリケーションプログラムAP1及びAP2が同時的に実行される期間(t0〜t1、t2〜t3、t5〜t6、t10〜t11)及びアプリケーションプログラムAP1及びAP4が同時的に実行される期間(t4〜t5)はクロック周波数が”中速”に設定される。アプリケーションプログラムAP1及びAP3が同時的に実行される期間(t7〜t8)、アプリケーションプログラムAP1〜AP3が同時的に実行される期間(t1〜t2)、及びアプリケーションプログラムAP1、AP2、AP4が同時的に実行される期間(t9〜t10)はクロック周波数が”高速”に設定される。このように、アプリケーションプログラムAP4が追加されたことによって、アプリケーションプログラムAP3が実行されない場合であっても、アプリケーションプログラムAP1、AP2、AP4の3つが実行される場合であれば、クロック周波数は”高速”に設定される。   FIG. 8 is a timing chart showing an example of execution of the application programs AP1 to AP4 and change of the clock frequency. In the illustrated example, the clock frequency is set to “low speed” during the period (t3 to t4, t6 to t7, t8 to t9) in which only the application program AP1 is executed. Periods (t0 to t1, t2 to t3, t5 to t6, t10 to t11) in which the application programs AP1 and AP2 are executed simultaneously and periods (t4 to t5) in which the application programs AP1 and AP4 are executed simultaneously are The clock frequency is set to “medium speed”. A period (t7 to t8) in which the application programs AP1 and AP3 are executed simultaneously, a period (t1 to t2) in which the application programs AP1 to AP3 are executed simultaneously, and the application programs AP1, AP2, and AP4 are simultaneously executed. During the execution period (t9 to t10), the clock frequency is set to “high speed”. As described above, even when the application program AP3 is not executed due to the addition of the application program AP4, the clock frequency is "high speed" if the three application programs AP1, AP2, and AP4 are executed. Set to

図9は、プラットホーム層の制御プログラムが行うアプリケーションテーブルATの作成処理の手順を示すフローチャートである。アプリケーションテーブルATの作成処理において、プラットホーム層の制御プログラムは、アプリケーションプログラムAPが補助記憶部5に新たにインストールされたか否かを調べ(ステップS21)、インストールされていない場合には(S21:NO)、新たなアプリケーションプログラムAPがインストールされるまで待機する。   FIG. 9 is a flowchart showing a procedure for creating the application table AT performed by the platform layer control program. In the process of creating the application table AT, the platform layer control program checks whether or not the application program AP is newly installed in the auxiliary storage unit 5 (step S21), and if it is not installed (S21: NO). Wait until a new application program AP is installed.

新たなアプリケーションプログラムAPがインストールされた場合(S21:YES)、プラットホーム層の制御プログラムは、インストールされたアプリケーションプログラムAPから必要処理能力を取得し(ステップS22)、補助記憶部5からアプリケーションテーブルATを読み出して(ステップS23)、インストールされたアプリケーションプログラムAPについての必要処理能力を追加してアプリケーションテーブルATを更新する(ステップS24)。その後、プラットホーム層の制御プログラムは更新したアプリケーションテーブルATを補助記憶部5に上書きして保存し(ステップS25)、アプリケーションテーブルATの作成処理を終了する。   When a new application program AP is installed (S21: YES), the platform layer control program acquires the necessary processing capacity from the installed application program AP (step S22), and obtains the application table AT from the auxiliary storage unit 5. Reading (step S23), the necessary processing capability for the installed application program AP is added, and the application table AT is updated (step S24). Thereafter, the control program for the platform layer overwrites and saves the updated application table AT in the auxiliary storage unit 5 (step S25), and ends the creation process of the application table AT.

以上の実施の形態2のクロック周波数制御方法を適用したコンピュータシステムにおいては、アプリケーションプログラムが補助記憶部5にインストールされて追加された場合に、プラットホーム層の制御プログラムが自動的にアプリケーションテーブルATを変更するため、コンピュータシステムを利用するユーザなどがアプリケーションテーブルATの変更を行う必要がない。よって、コンピュータシステムの利便性を高めることができる。   In the computer system to which the clock frequency control method of the second embodiment is applied, when the application program is installed in the auxiliary storage unit 5 and added, the platform layer control program automatically changes the application table AT. Therefore, it is not necessary for a user who uses the computer system to change the application table AT. Therefore, the convenience of the computer system can be improved.

(実施の形態3)
実施の形態3に係るクロック周波数制御方法は、実施の形態1に係るクロック周波数制御方法にクロック周波数テーブルCTを自動生成する方法を追加したものである。図10は、図2に示した階層構造においてCPU1を新たなCPU1aに変更した構成を示す模式図であり、(a)に変更前の構成を示し、(b)に変更後の構成を示してある。例えばCPU1のグレードアップなどを目的としてコンピュータシステムのCPU1を変更する場合、CPU1の構成に依存する抽象化層の制御プログラム及びクロック周波数テーブルCTを新たなCPU1aに適するよう変更する必要がある。CPU1の構成に依存しないプラットホーム層の制御プログラム及びアプリケーションテーブルATを変更する必要はない。
(Embodiment 3)
The clock frequency control method according to the third embodiment is obtained by adding a method for automatically generating the clock frequency table CT to the clock frequency control method according to the first embodiment. FIG. 10 is a schematic diagram showing a configuration in which the CPU 1 is changed to a new CPU 1a in the hierarchical structure shown in FIG. 2, wherein (a) shows the configuration before the change, and (b) shows the configuration after the change. is there. For example, when the CPU 1 of the computer system is changed for the purpose of upgrading the CPU 1 or the like, it is necessary to change the control program of the abstraction layer and the clock frequency table CT depending on the configuration of the CPU 1 to be suitable for the new CPU 1a. There is no need to change the platform layer control program and application table AT independent of the configuration of the CPU 1.

図11は、変更されたクロック周波数テーブルCTの一例を示す模式図であり、(a)に変更前のクロック周波数テーブルCTを示し、(b)に変更後のクロック周波数テーブルCTを示してある。図示の例では、CPU1からCPU1aにグレードアップすることによって処理能力が増し、合計必要処理能力が1〜20の場合にクロック周波数が”低速”に設定され、合計必要処理能力が21〜40の場合にクロック周波数が”中速”に設定され、合計必要処理能力が41以上の場合にクロック周波数が”高速”に設定されるようにしてある。   FIG. 11 is a schematic diagram showing an example of the changed clock frequency table CT. (A) shows the clock frequency table CT before the change, and (b) shows the clock frequency table CT after the change. In the illustrated example, when the CPU 1 is upgraded to the CPU 1a, the processing capacity is increased. When the total required processing capacity is 1 to 20, the clock frequency is set to "low speed" and the total required processing capacity is 21 to 40. When the clock frequency is set to “medium speed” and the total required processing capacity is 41 or more, the clock frequency is set to “high speed”.

クロック周波数テーブルCTの変更はプラットホーム層の制御プログラムが行うが、プラットホーム層の制御プログラムはCPU1a又は変更された抽象化層の制御プログラムから、CPU1aの処理能力に関する情報を取得するようにしてある。処理能力に関する情報は、例えばCPU1aが1クロック当たりに処理できるデータ量、平行して処理することができる命令数、又はCPU1aがパイプライン処理を行う場合にはパイプライン数等の情報であり、プラットホーム層の制御プログラムはこれらの情報を基にCPU1aの処理能力を判断し、合計必要処理能力とクロック周波数との対応を決定することができる。これらの処理能力に関する情報は、CPU1aの設計者が予めCPU1aから直接的に取得可能なようにCPU1aに保持させる構成であってもよく、CPU1a用の抽象化層の制御プログラムが保持する構成であってもよい。   The change of the clock frequency table CT is performed by the platform layer control program. The platform layer control program acquires information on the processing capability of the CPU 1a from the CPU 1a or the changed abstraction layer control program. The information on the processing capacity is, for example, information such as the amount of data that the CPU 1a can process per clock, the number of instructions that can be processed in parallel, or the number of pipelines when the CPU 1a performs pipeline processing. The layer control program can determine the processing capability of the CPU 1a based on these pieces of information, and can determine the correspondence between the total required processing capability and the clock frequency. Information regarding these processing capabilities may be stored in the CPU 1a in advance so that the designer of the CPU 1a can directly acquire the information from the CPU 1a, or may be stored in an abstraction layer control program for the CPU 1a. May be.

図12は、変更されたクロック周波数テーブルCTを用いた場合のアプリケーションプログラムAP1〜AP3の実行とクロック周波数の変更との一例を示すタイミングチャートである。図示の例において、アプリケーションプログラムAP1のみが実行される期間(t3〜t4、t5〜t6、t7〜t8)、並びにアプリケーションプログラムAP1及びAP2が同時的に実行される期間(t0〜t1、t2〜t3、t4〜t5、t8〜t9)は、クロック周波数が”低速”に設定される。アプリケーションプログラムAP1〜AP3が同時的に実行される期間(t1〜t2)、並びにアプリケーションプログラムAP1及びAP3が同時的に実行される期間(t6〜t7)は、クロック周波数が”中速”に設定される。また、クロック周波数が”高速”に設定されることはない。これは、CPU1aが十分に高い処理能力を有しているため、クロック周波数は”中速”で十分で有り、更に多くのアプリケーションプログラムAPを同時的に実行することができることを示している。   FIG. 12 is a timing chart showing an example of execution of the application programs AP1 to AP3 and change of the clock frequency when the changed clock frequency table CT is used. In the illustrated example, a period in which only the application program AP1 is executed (t3 to t4, t5 to t6, t7 to t8), and a period in which the application programs AP1 and AP2 are executed simultaneously (t0 to t1, t2 to t3). , T4 to t5, t8 to t9), the clock frequency is set to "low speed". The clock frequency is set to “medium speed” during the period (t1 to t2) when the application programs AP1 to AP3 are executed simultaneously and the period (t6 to t7) when the application programs AP1 and AP3 are executed simultaneously. The Also, the clock frequency is never set to “high speed”. This indicates that since the CPU 1a has a sufficiently high processing capability, the clock frequency is sufficient at “medium speed” and more application programs AP can be executed simultaneously.

図13は、プラットホーム層の制御プログラムが行うクロック周波数テーブルCTの作成処理の手順を示すフローチャートである。クロック周波数テーブルCTの作成処理において、プラットホーム層の制御プログラムは、まず、コンピュータシステムのCPU1が変更されたか否かを調べる(ステップS41)。プラットホーム層の制御プログラムは、例えばコンピュータシステムの電源投入後に始めて実行された場合に、CPU1又は抽象化層の制御プログラムのバージョン情報などを調べるようにしてあり、これによりCPU1が変更されたか否かを知ることができるようにしてある。CPU1が変更されていない場合(S41:NO)、クロック周波数テーブルCTを作成する必要はないため、プラットホーム層の制御プログラムはクロック周波数テーブルCTの作成処理を終了する。   FIG. 13 is a flowchart showing the procedure of the process of creating the clock frequency table CT performed by the platform layer control program. In the process of creating the clock frequency table CT, the platform layer control program first checks whether the CPU 1 of the computer system has been changed (step S41). For example, when the control program for the platform layer is executed for the first time after the computer system is turned on, the version information of the control program for the CPU 1 or the abstraction layer is checked. So that you can know. When the CPU 1 has not been changed (S41: NO), it is not necessary to create the clock frequency table CT, so the platform layer control program ends the process of creating the clock frequency table CT.

CPU1が変更された場合(S41:YES)、プラットホーム層の制御プログラムは、CPU1又は抽象化層の制御プログラムからCPU1の処理能力に関する情報を取得し(ステップS42)、取得した情報を基にクロック周波数テーブルCTを作成する(ステップS43)。次いで、プラットホーム層の制御プログラムは、作成したクロック周波数テーブルCTを補助記憶部5に上書きして保存し(ステップS44)、クロック周波数テーブルCTの作成処理を終了する。   When the CPU 1 is changed (S41: YES), the platform layer control program acquires information on the processing capability of the CPU 1 from the CPU 1 or the abstraction layer control program (step S42), and the clock frequency is based on the acquired information. A table CT is created (step S43). Next, the platform layer control program overwrites and saves the created clock frequency table CT in the auxiliary storage unit 5 (step S44), and ends the process of creating the clock frequency table CT.

以上の実施の形態3のクロック周波数制御方法を適用したコンピュータシステムにおいては、CPU1が変更された場合に、プラットホーム層の制御プログラムが自動的にクロック周波数テーブルCTを変更するため、コンピュータシステムを利用するユーザなどがクロック周波数テーブルCTの変更を行う必要がない。よって、コンピュータシステムの利便性を高めることができる。なお、本実施の形態においては、CPU1が変更された場合にクロック周波数テーブルCTを変更するものとしたが、これに限るものではなく、例えばクロック発生部6が4段階にクロック周波数を変更できるようにグレードアップした場合など、その他のハードウェアの構成が変更された場合にもクロック周波数テーブルCTを変更してもよい。   In the computer system to which the clock frequency control method of the third embodiment is applied, the computer system is used because the control program of the platform layer automatically changes the clock frequency table CT when the CPU 1 is changed. There is no need for the user or the like to change the clock frequency table CT. Therefore, the convenience of the computer system can be improved. In the present embodiment, the clock frequency table CT is changed when the CPU 1 is changed. However, the present invention is not limited to this. For example, the clock generator 6 can change the clock frequency in four stages. The clock frequency table CT may also be changed when the configuration of other hardware is changed, such as when the hardware is upgraded.

本発明に係るクロック周波数制御方法を適用したコンピュータシステムの一構成例を示すブロック図である。It is a block diagram which shows one structural example of the computer system to which the clock frequency control method which concerns on this invention is applied. CPUにて実行されるプログラムの階層構造を説明するための模式図である。It is a schematic diagram for demonstrating the hierarchical structure of the program run by CPU. アプリケーションテーブル及びクロック周波数テーブルの一例を示す模式図である。It is a schematic diagram which shows an example of an application table and a clock frequency table. アプリケーションプログラムの実行とクロック周波数の変更との一例を示すタイミングチャートである。It is a timing chart which shows an example of execution of an application program, and change of a clock frequency. プラットホーム層の制御プログラムが行うクロック周波数変更処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the clock frequency change process which the control program of a platform layer performs. 図2に示した階層構造において新たなアプリケーションプログラムを追加した構成を示す模式図である。It is a schematic diagram which shows the structure which added the new application program in the hierarchical structure shown in FIG. 変更されたアプリケーションテーブルの一例を示す模式図である。It is a schematic diagram which shows an example of the changed application table. アプリケーションプログラムの実行とクロック周波数の変更との一例を示すタイミングチャートである。It is a timing chart which shows an example of execution of an application program, and change of a clock frequency. プラットホーム層の制御プログラムが行うアプリケーションテーブルの作成処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the production | generation process of the application table which the control program of a platform layer performs. 図2に示した階層構造においてCPUを新たなCPUに変更した構成を示す模式図である。It is a schematic diagram which shows the structure which changed CPU into new CPU in the hierarchical structure shown in FIG. 変更されたクロック周波数テーブルの一例を示す模式図である。It is a schematic diagram which shows an example of the changed clock frequency table. 変更されたクロック周波数テーブルを用いた場合のアプリケーションプログラムの実行とクロック周波数の変更との一例を示すタイミングチャートである。It is a timing chart which shows an example of execution of an application program at the time of using a changed clock frequency table, and change of a clock frequency. プラットホーム層の制御プログラムが行うクロック周波数テーブルの作成処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the creation process of the clock frequency table which the control program of a platform layer performs.

符号の説明Explanation of symbols

1 CPU(処理装置、コンピュータ)
1a CPU(処理装置、コンピュータ)
2 主記憶部
3 入力部
4 出力部
5 補助記憶部
6 クロック発生部
CP 制御プログラム(コンピュータプログラム)
AP、AP1〜4 アプリケーションプログラム
AT アプリケーションテーブル(アプリケーションプログラムと必要処理能力との対応)
CT クロック周波数テーブル(合計必要処理能力とクロック周波数との対応)
1 CPU (processing device, computer)
1a CPU (processing device, computer)
2 Main storage unit 3 Input unit 4 Output unit 5 Auxiliary storage unit 6 Clock generation unit CP Control program (computer program)
AP, AP1-4 Application program AT application table (correspondence between application program and required processing capacity)
CT clock frequency table (correspondence between total required processing capacity and clock frequency)

Claims (7)

複数のアプリケーションプログラムを実行する処理装置のクロック周波数の変更を制御するクロック周波数制御方法において、
複数のアプリケーションプログラムと、各アプリケーションプログラムの実行に要する必要処理能力との対応を記憶しておき、
前記処理装置にて実行する一又は複数のアプリケーションプログラムの各必要処理能力を基に、前記一又は複数のアプリケーションプログラムの実行に要する合計必要処理能力を算出し、
算出した合計必要処理能力に応じてクロック周波数を決定し、
決定したクロック周波数に前記処理装置のクロック周波数を変更すること
を特徴とするクロック周波数制御方法。
In the clock frequency control method for controlling the change of the clock frequency of the processing device that executes a plurality of application programs,
Store the correspondence between multiple application programs and the required processing capacity required to execute each application program.
Based on each required processing capability of one or more application programs executed in the processing device, to calculate the total required processing capability required to execute the one or more application programs,
Determine the clock frequency according to the calculated total required processing capacity,
A clock frequency control method, wherein the clock frequency of the processing device is changed to the determined clock frequency.
合計必要処理能力とクロック周波数との対応を記憶しておき、
算出した合計必要処理能力を基に対応するクロック周波数を取得して、変更するクロック周波数を決定すること
を特徴とする請求項1に記載のクロック周波数制御方法。
Remember the correspondence between the total required processing power and the clock frequency,
The clock frequency control method according to claim 1, wherein the clock frequency to be changed is determined based on the calculated total required processing capacity, and the clock frequency to be changed is determined.
前記処理装置の構成に応じた第1の制御プログラム、及び前記アプリケーションプログラムを実行する第2の制御プログラムを用いて、
前記処理装置にて前記第1の制御プログラムを実行し、
該第1の制御プログラム上で前記第2の制御プログラムを実行し、
該第2の制御プログラム上で前記アプリケーションプログラムを実行し、
前記第2の制御プログラムにて、アプリケーションプログラムと必要処理能力との対応を基に、合計必要処理能力の算出を行うこと
を特徴とする請求項2に記載のクロック周波数制御方法。
Using a first control program according to the configuration of the processing device and a second control program for executing the application program,
Executing the first control program in the processing device;
Executing the second control program on the first control program;
Executing the application program on the second control program;
3. The clock frequency control method according to claim 2, wherein the total required processing capacity is calculated based on a correspondence between the application program and the required processing capacity in the second control program.
前記処理装置にて実行するアプリケーションプログラムに応じて、前記第2の制御プログラムにて、アプリケーションプログラムと必要処理能力との対応を生成すること
を特徴とする請求項3に記載のクロック周波数制御方法。
4. The clock frequency control method according to claim 3, wherein a correspondence between the application program and the required processing capacity is generated by the second control program in accordance with an application program executed by the processing device.
前記第2の制御プログラムにて、合計必要処理能力とクロック周波数との対応を基に、変更するクロック周波数の決定を行うこと
を特徴とする請求項3又は請求項4に記載のクロック周波数制御方法。
5. The clock frequency control method according to claim 3, wherein the second control program determines a clock frequency to be changed based on a correspondence between a total required processing capacity and a clock frequency. .
アプリケーションプログラムを実行する処理装置に応じて、前記第2の制御プログラムにて、合計必要処理能力とクロック周波数との対応を生成すること
を特徴とする請求項5に記載のクロック周波数制御方法。
6. The clock frequency control method according to claim 5, wherein a correspondence between the total required processing capacity and the clock frequency is generated by the second control program in accordance with a processing device that executes an application program.
コンピュータにクロック周波数の変更を制御させるコンピュータプログラムにおいて、
コンピュータに、
予め記憶された複数のアプリケーションプログラムと各アプリケーションプログラムの実行に要する必要処理能力との対応から、前記コンピュータにて実行する一又は複数のアプリケーションプログラムの各必要処理能力を取得させ、
取得した各必要処理能力を基に、前記一又は複数のアプリケーションプログラムの実行に要する合計必要処理能力を算出させ、
算出した合計必要処理能力に応じてクロック周波数を決定させ、
前記コンピュータのクロック周波数を決定したクロック周波数に変更させること
を特徴とするコンピュータプログラム。
In a computer program for causing a computer to control a change in clock frequency,
On the computer,
From the correspondence between the plurality of pre-stored application programs and the necessary processing capacity required to execute each application program, each necessary processing capacity of one or more application programs executed by the computer is acquired,
Based on each acquired required processing capacity, the total required processing capacity required to execute the one or more application programs is calculated,
The clock frequency is determined according to the calculated total required processing capacity,
A computer program for changing a clock frequency of the computer to a determined clock frequency.
JP2007190899A 2007-07-23 2007-07-23 Clock frequency control method and computer program Pending JP2009026199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007190899A JP2009026199A (en) 2007-07-23 2007-07-23 Clock frequency control method and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007190899A JP2009026199A (en) 2007-07-23 2007-07-23 Clock frequency control method and computer program

Publications (1)

Publication Number Publication Date
JP2009026199A true JP2009026199A (en) 2009-02-05

Family

ID=40397931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007190899A Pending JP2009026199A (en) 2007-07-23 2007-07-23 Clock frequency control method and computer program

Country Status (1)

Country Link
JP (1) JP2009026199A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230439A (en) * 2008-03-21 2009-10-08 Toshiba Tec Corp Information processing device, and clock control method and program thereof
JP2011097360A (en) * 2009-10-29 2011-05-12 Brother Industries Ltd Image processing apparatus
JP2013131081A (en) * 2011-12-21 2013-07-04 Fujitsu Ltd Control program and control method for information processing device, and information processing device
JP2014182512A (en) * 2013-03-18 2014-09-29 Fujitsu Ltd Frequency control device, frequency control method, and frequency control program
WO2015060174A1 (en) * 2013-10-25 2015-04-30 シャープ株式会社 Information processing device, information processing device control method, and information processing device control program
JP2016024524A (en) * 2014-07-17 2016-02-08 セイコーエプソン株式会社 Information processing apparatus, method of controlling the same, computer program, and information processing system
US9391615B2 (en) 2014-08-26 2016-07-12 Samsung Electronics Co., Ltd. Clock monitor and system on chip including the same
JP2020184107A (en) * 2019-04-26 2020-11-12 シャープ株式会社 Electronic apparatus, controller, information processing device, information processing system, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009230439A (en) * 2008-03-21 2009-10-08 Toshiba Tec Corp Information processing device, and clock control method and program thereof
JP2011097360A (en) * 2009-10-29 2011-05-12 Brother Industries Ltd Image processing apparatus
JP2013131081A (en) * 2011-12-21 2013-07-04 Fujitsu Ltd Control program and control method for information processing device, and information processing device
JP2014182512A (en) * 2013-03-18 2014-09-29 Fujitsu Ltd Frequency control device, frequency control method, and frequency control program
WO2015060174A1 (en) * 2013-10-25 2015-04-30 シャープ株式会社 Information processing device, information processing device control method, and information processing device control program
JP2016024524A (en) * 2014-07-17 2016-02-08 セイコーエプソン株式会社 Information processing apparatus, method of controlling the same, computer program, and information processing system
US9391615B2 (en) 2014-08-26 2016-07-12 Samsung Electronics Co., Ltd. Clock monitor and system on chip including the same
JP2020184107A (en) * 2019-04-26 2020-11-12 シャープ株式会社 Electronic apparatus, controller, information processing device, information processing system, and program

Similar Documents

Publication Publication Date Title
JP2009026199A (en) Clock frequency control method and computer program
JP6249953B2 (en) Thermally driven workload scheduling in heterogeneous multiprocessor system on chip
JP5922778B2 (en) System and method for managing the generation of thermal energy in a heterogeneous multi-core processor
US8305380B2 (en) Managing resources to facilitate altering the number of active processors
KR101324885B1 (en) Coordinating performance parameters in multiple circuits
JP2006004338A (en) Semiconductor integrated circuit
JP2013149093A (en) Control device, control method, program, and electronic apparatus
US8490118B2 (en) Wait on address synchronization interface
US20170212835A1 (en) Computing system with memory management mechanism and method of operation thereof
US20180081712A1 (en) Information processing apparatus, information processing method, and computer program product
JP4381459B1 (en) Information processing apparatus, granularity adjustment method, and program
JP2014219788A (en) Information processing apparatus, power saving control method, and power saving control program
US10409350B2 (en) Instruction optimization using voltage-based functional performance variation
CN105426231A (en) Multi-processing apparatus and multi-processing method
US9507645B2 (en) Thread processing method for using a multi-core processor and systems therefor
JP2011013775A (en) Information-processing device, method for controlling information-processing device, and program
US10366188B2 (en) Designing apparatus for designing a programmable logic device, method of designing a programmable logic device and recording medium for storing a program for designing a programmable logic device
JP3863544B1 (en) Arithmetic processing device and arithmetic processing method
JP4846226B2 (en) Information processing apparatus, information processing method, and program
JP2007080049A (en) Built-in program generation method, built-in program development system and information table section
JP2012116138A (en) Control device, control program, and image forming device
JP5486368B2 (en) Microcomputer and control method of microcomputer
JP2004206480A (en) Semiconductor integrated circuit
JP2012155515A (en) Source device driver and method for creating execution module
JP5190899B2 (en) Information processing apparatus, setting file generation method, and setting file generation program