JPH0876874A - Device and method for controlling clock of central processing unit - Google Patents

Device and method for controlling clock of central processing unit

Info

Publication number
JPH0876874A
JPH0876874A JP6212448A JP21244894A JPH0876874A JP H0876874 A JPH0876874 A JP H0876874A JP 6212448 A JP6212448 A JP 6212448A JP 21244894 A JP21244894 A JP 21244894A JP H0876874 A JPH0876874 A JP H0876874A
Authority
JP
Japan
Prior art keywords
performance information
task
processing unit
central processing
circuit
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
JP6212448A
Other languages
Japanese (ja)
Inventor
Kiyokazu Nishioka
清和 西岡
Kazuhiko Tanaka
和彦 田中
Yoshiki Noguchi
孝樹 野口
Shinya Oba
信弥 大場
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6212448A priority Critical patent/JPH0876874A/en
Publication of JPH0876874A publication Critical patent/JPH0876874A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To control a clock of CPU so as to execute an operation with a low power consumption by automatically changing-over the clock into the absolute min. operation clock of CPU within a range where the requesting performance of a program to run is satisfied in the operation environment of a multi- task. CONSTITUTION: The clock controlling device is provided with a performance information of a central processing unit(CPU) 1, which is required at every task, and also provided with more than one performance information setting circuits 9 and 10 setting performance information of CPU 1 at every task, a selecting information generating circuit 7 deciding the clock frequency of CPU 1 so as to permit the operation to be executed with absolute min. performance which is required by the task in starting, an oscillation circuit 6 generating plural clock signals and a clock selecting circuit 5 selecting one of the clock signals and giving it to the CPU 1.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、中央処理装置のクロッ
ク制御装置およびクロック制御方法に係り、パーソナル
コンピュータ(以下、単に「パソコン」という)や小
形情報端末に代表される情報処理装置に使用される中央
処理装置(Central Processing Unit、以下、「CPU」
と略記する)の省電力化を達成するのに好適な中央処理
装置のクロック制御装置およびクロック制御方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a clock control device and a clock control method for a central processing unit, and is used for an information processing device represented by a personal computer (hereinafter simply referred to as "personal computer") and a small information terminal. Central processing unit (hereinafter, "CPU")
(Hereinafter abbreviated)), the clock control device and the clock control method of the central processing unit suitable for achieving the power saving.

【0002】[0002]

【従来の技術】近年、電力需要の増加によって、社会全
般にわたって電力の消費量が問題とされてきている。一
方、このような状況下で、小形コンピュータ市場が急激
に拡大し、パソコンの世界市場における設置台数は30
0万台を越えている。また、電池で使用する携帯型情報
機器の要求もたかまりつつあり、そのような機器の低電
力化も重要な課題になりつつある。
2. Description of the Related Art In recent years, due to an increase in power demand, power consumption has become a problem throughout society. On the other hand, under such circumstances, the small computer market has expanded rapidly, and the number of PCs installed in the world market has reached 30.
The number exceeds 0,000. In addition, the demand for portable information devices that use batteries is also increasing, and lowering the power consumption of such devices is becoming an important issue.

【0003】したがって、特に、このようなパソコンや
携帯型情報機器などの情報処理装置の中枢であるCPU
の消費電力低減が注目されており、従来、多くの手法が
試みられている。このようなCPUの消費電力低減手法
の有力なもののひとつとして、CPUのクロックを制御
する手法がある。これは、特定の条件下において、低速
なクロックでCPUを動作させることにより、CPUの
消費電力の抑制を達成するものである。ここで、この特
定の条件は、電源電圧が任意のレベルまで低下したこと
や、CPUに対する割り込みが発生したことなどがあ
る。
Therefore, in particular, the CPU which is the center of the information processing apparatus such as the personal computer and the portable information equipment.
Attention has been paid to the reduction of the power consumption, and many methods have been tried so far. One of the powerful methods of reducing the power consumption of the CPU is a method of controlling the clock of the CPU. This achieves the suppression of the power consumption of the CPU by operating the CPU with a low speed clock under a specific condition. Here, the specific condition is that the power supply voltage has dropped to an arbitrary level, an interrupt to the CPU has occurred, and the like.

【0004】さて、このようなCPUの消費電力低減手
法に関して、特に、情報端末など通信機能を実現する上
で要求が強いマルチタスク機能を有する情報処理装置に
適用する発明としては、特開昭62−150416号公
報に記載の「低消費電力状態への移行方式」がある。こ
の発明は、複数のタスクを並行動作させるオペレーティ
ングシステム(Operating System、以下、「OS」と略
記する)を搭載したシステムにおいて、実行すべきタス
クの有無を検出する手段と、コンピュータシステムを低
消費電力状態にするの手段を設け、実行すべきタスクが
無い場合にコンピュータシステムを低消費電力状態にす
る移行方式である。
Now, regarding such a method for reducing the power consumption of a CPU, as an invention to be applied to an information processing apparatus having a multitasking function which is strongly demanded for realizing a communication function such as an information terminal, there is disclosed in Japanese Patent Laid-Open No. Sho 62-62. There is a "transition method to a low power consumption state" described in Japanese Patent Publication No. 150416. The present invention, in a system equipped with an operating system (hereinafter, abbreviated as “OS”) that allows a plurality of tasks to operate in parallel, has means for detecting the presence / absence of a task to be executed and low power consumption for a computer system. This is a transition method in which a means for bringing the computer into a state is provided and the computer system is brought into a low power consumption state when there is no task to be executed.

【0005】[0005]

【発明が解決しようとする課題】上記従来技術は、コン
ピュータシステムを低消費電力状態に移行する方式につ
いて述べている。しかしながら、上記従来技術は、実行
すべきタスクが存在するかどうかを判定し、実行すべき
タスクがない場合のみ、低消費電力状態で動作するもの
であり、タスク実行中に低消費電力状態で動作しないた
め、その適用範囲が狭いという問題点があった。
The above prior art describes a method for shifting a computer system to a low power consumption state. However, the above-mentioned conventional technique determines whether or not there is a task to be executed, and operates in the low power consumption state only when there is no task to be executed, and operates in the low power consumption state during task execution. Therefore, there is a problem that its application range is narrow.

【0006】また、近年は、多大な演算性能を要求する
マルチメディア(動画、音声など)がシステムに取り込
まれてくることが多くなっている。例えば、ワープロや
表計算のソフトウエアと、テレビ会議のソフトウエアを
一つのパソコンで動作させる場合が考えられる。ここ
で、前者のワープロや表計算のソフトウエアは、CPU
が数10MIPS(百万命令/毎秒、Million Instruct
ion Per Second)の性能ならば十分使いものになるが、
後者テレビ会議のソフトウエアは動画及び音声の圧縮伸
張処理に加えて通信機能も必要になり、数100MIP
Sの性能を必要とする。一方、CPUの性能は、年率約
1.6倍程度の急速な高性能化傾向にあり、数年で数1
00MIPSの性能に達するものと予測できる。しかし
ながら、数10MIPSと数100MIPSの動作状態
における消費電力の差は非常に大きいので、数100M
IPSの性能を持つCPUに数10MIPSのソフトウ
ェアを動作させることは電力の無駄な消費である。
Further, in recent years, multimedia (moving images, voices, etc.) which requires a great deal of computing performance has been often incorporated in the system. For example, a case where word processing or spreadsheet software and video conferencing software are operated by one personal computer can be considered. Here, the former word processor or spreadsheet software is a CPU
Tens of MIPS (Million instructions / second, Million Instruct
Ion Per Second) performance is enough to use, but
The latter video conferencing software requires communication functions in addition to video and audio compression / expansion processing.
S performance is required. On the other hand, the performance of CPUs is rapidly increasing at a rate of about 1.6 times per year, and it is only a few times in a few years.
It can be expected to reach the performance of 00 MIPS. However, the difference in power consumption between the operating states of several tens of MIPS and several hundreds of MIPS is very large, and therefore several hundred M
Operating tens of MIPS software on a CPU having IPS performance is a waste of power.

【0007】したがって、使用するソフトウエアに応じ
て性能を自動的に切り換える要請があったが、従来技術
では、プログラムの動作スピードに応じて、CPUの性
能を切り替えるという考え方はされていないという問題
点があった。
Therefore, there has been a demand for automatically switching the performance according to the software used, but in the prior art, there is no idea that the performance of the CPU is switched according to the operation speed of the program. was there.

【0008】本発明は、上記従来技術の問題点を解決す
るためになされたもので、その目的は、マルチタスクの
動作環境において、その情報処理装置で動作させるプロ
グラムの性能に応じて、低い性能で済む処理プログラム
の実行時には、その要求性能を満足する必要最低限のC
PUの動作クロックに自動的に切り替えて消費電力を節
約して、タスク実行中でも低消費電力での作動を実現し
うるCPUのクロック制御装置およびクロック制御方法
を提供することである。
The present invention has been made in order to solve the above-mentioned problems of the prior art, and its object is to reduce the performance depending on the performance of the program operated by the information processing apparatus in a multitasking operating environment. When executing a processing program, the minimum required C that satisfies the required performance
(EN) Provided are a clock control device and a clock control method for a CPU capable of automatically switching to an operation clock of a PU to save power consumption and realizing operation with low power consumption even during task execution.

【0009】また、本発明の他の目的は、その情報処理
装置がAC電源で作動するか電池で作動するかを判定
し、電池で作動するときにのみ、低消費電力で作動する
CPUのクロック制御装置およびクロック制御方法を提
供することである。
Another object of the present invention is to determine whether the information processing apparatus is operated by an AC power source or a battery, and only when the information processing apparatus is operated by a battery, a clock of a CPU which operates with low power consumption. A control device and a clock control method are provided.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、本発明の中央処理装置のクロック制御装置に係る発
明の構成は、複数のタスクを起動し切り換えて実行でき
るマルチタスクのオペレーティングシステムとプログラ
ムとを格納するメモリと、前記マルチタスクのオペレー
ティングシステム環境下で、前記プログラムを実行し、
かつ、与えられるクロック周波数に基づいて動作スピー
ドが決定される中央処理装置とを備える情報処理装置の
中央処理装置のクロック制御装置において、前記マルチ
タスクのオペレーティングシステム環境下で起動される
タスク毎に必要とする中央処理装置の性能情報を設け
て、前記タスク毎の中央処理装置の性能情報を設定する
一つ以上の性能情報設定回路と、前記性能情報設定回路
に設定した一つ以上の性能情報を用いて、起動中のタス
クが必要とする必要最低限の性能で動作するように前記
中央処理装置のクロック周波数を決定する様に選択情報
を生成する選択情報生成回路と、複数のクロック信号を
発生する発振回路と、前記選択情報に応じて、前記複数
のクロック信号の中から一つを選択して前記中央処理装
置へ与えるクロック選択回路を設けたようにしたもので
ある。
In order to achieve the above object, the configuration of the invention relating to the clock control device of the central processing unit of the present invention is a multitasking operating system capable of activating and switching a plurality of tasks and executing them. A memory that stores a program, and executes the program under the multitasking operating system environment,
Further, in a clock control device of a central processing unit of an information processing device including a central processing unit whose operation speed is determined based on a given clock frequency, it is necessary for each task activated under the multitasking operating system environment. By providing the performance information of the central processing unit to be set, one or more performance information setting circuit for setting the performance information of the central processing unit for each task, and one or more performance information set in the performance information setting circuit. A selection information generation circuit that generates selection information so as to determine the clock frequency of the central processing unit so as to operate with the minimum required performance required by the task being activated, and generates a plurality of clock signals. And a clock for selecting one of the plurality of clock signals according to the selection information and giving it to the central processing unit. It is obtained as provided 択回 path.

【0011】より詳しくは、上記中央処理装置のクロッ
ク制御装置において、前記中央処理装置と、前記一つ以
上の性能情報設定回路と、選択情報生成回路と、クロッ
ク選択回路を1チップ内に集積するようにしたものであ
る。
More specifically, in the clock controller of the central processing unit, the central processing unit, the one or more performance information setting circuits, the selection information generating circuit, and the clock selection circuit are integrated in one chip. It was done like this.

【0012】上記目的を達成するために、本発明の中央
処理装置のクロック制御方法に係る発明の構成は、複数
のタスクを起動し切り換えて実行できるマルチタスクの
オペレーティングシステムとプログラムとを格納するメ
モリと、前記マルチタスクのオペレーティングシステム
環境下で、前記プログラムを実行し、かつ、与えられる
クロック周波数に基づいて動作スピードが決定される中
央処理装置とを備える情報処理装置の中央処理装置のク
ロック制御方法において、前記マルチタスクのオペレー
ティングシステム環境下で起動されるタスク毎に必要と
する中央処理装置の性能情報を設けて、一つ以上の性能
情報設定回路と、選択情報生成回路と、複数のクロック
信号を発生する発振回路と、クロック選択回路とを有
し、前記一つ以上の性能情報設定回路が、前記タスク毎
の中央処理装置の性能情報を設定し、前記選択情報生成
回路が、前記性能情報設定回路に設定した一つ以上の性
能情報を用いて、起動中のタスクが必要とする必要最低
限の性能で動作するように前記中央処理装置のクロック
周波数を決定する様に選択情報を生成し、前記クロック
選択回路が、前記選択情報に応じて、前記発振機から発
生した複数のクロック信号の中から一つを選択して前記
中央処理装置へ与えるようにしたものである。
In order to achieve the above-mentioned object, the configuration of the invention relating to the clock control method of the central processing unit of the present invention has a memory for storing a multitasking operating system and a program capable of activating and switching a plurality of tasks. And a central processing unit which executes the program under the multitasking operating system environment and whose operation speed is determined based on a given clock frequency, the clock control method of the central processing unit of the information processing apparatus. In the above, the performance information of the central processing unit required for each task started under the multitasking operating system environment is provided, and one or more performance information setting circuits, a selection information generation circuit, and a plurality of clock signals are provided. An oscillator circuit for generating a clock signal and a clock selection circuit, The performance information setting circuit sets performance information of the central processing unit for each task, and the selection information generation circuit uses one or more performance information set in the performance information setting circuit to determine whether the task being started up. The selection information is generated so as to determine the clock frequency of the central processing unit so as to operate with the minimum necessary performance required, and the clock selection circuit generates the selection information from the oscillator according to the selection information. One of the plurality of clock signals is selected and given to the central processing unit.

【0013】より詳しくは、上記中央処理装置のクロッ
ク制御方法において、前記マルチタスクのオペレーティ
ングシステムが、前記各タスクが必要とする性能情報を
各タスク単位で管理し、タスクを起動する際に、前記性
能情報設定回路へ起動するタスクの性能情報を設定する
ステップを有することと、さらに、タスクを終了する際
に、前記性能情報設定回路に設定してある該当するタス
クの性能情報を無効にするステップを有するようにした
ものである。
More specifically, in the clock control method for the central processing unit, the multitasking operating system manages the performance information required by each task for each task, and when the task is started, Having the step of setting the performance information of the task to be activated to the performance information setting circuit, and further, invalidating the performance information of the corresponding task set in the performance information setting circuit when the task is terminated. To have.

【0014】さらに詳しくは、上記中央処理装置のクロ
ック制御方法において、前記タスクを起動する際に、そ
のタスクの性能情報をタスク管理テーブルへ登録するス
テップと、起動中の全タスクの性能情報を読み出すステ
ップと、前記全タスクの性能情報を用いて、必要最低限
の中央処理装置の性能情報を算出するステップと、前記
中央処理装置の性能情報を前記選択情報生成回路へ設定
するステップを有すること、さらに、タスクを終了する
際に、そのタスクの性能情報をタスク管理テーブルから
削除するステップと、起動中の全タスクの性能情報を読
み出すステップと、前記全タスクの性能情報を用いて必
要最低限の中央処理装置の性能情報を算出するステップ
と、前記中央処理装置の性能情報を前記選択情報生成回
路へ設定するステップを有するようにしたものである。
More specifically, in the clock control method for the central processing unit, when starting the task, a step of registering performance information of the task in a task management table and reading performance information of all the running tasks. A step of calculating the minimum required performance information of the central processing unit by using the performance information of all the tasks, and setting the performance information of the central processing unit in the selection information generation circuit, Further, when the task is terminated, the performance information of the task is deleted from the task management table, the performance information of all the running tasks is read, and the performance information of all the tasks is used to obtain the minimum required information. A step of calculating the performance information of the central processing unit and a step of setting the performance information of the central processing unit in the selection information generating circuit. It is that to have a flop.

【0015】また、上記目的を達成するために、本発明
の中央処理装置のクロック制御装置に係る発明の別の構
成は、上記中央処理装置のクロック制御装置において、
前記プログラムに従って、前記中央処理装置が、前記性
能情報設定回路から得る一つ以上の性能情報から、前記
中央処理装置のクロック選択情報を生成するようにした
ものである。
In order to achieve the above-mentioned object, another configuration of the invention relating to the clock control device of the central processing unit of the present invention is the clock control device of the central processing device,
According to the program, the central processing unit generates clock selection information of the central processing unit from one or more performance information obtained from the performance information setting circuit.

【0016】さらに別の構成は、上記上記中央処理装置
のクロック制御装置において、前記情報処理装置が、電
源供給手段として、電池とAC電源のどちらでも使用で
き、電源供給手段の識別手段を設けることで、電池を使
用しているときと、AC電源を使用しているときを識別
し、その識別した結果によって、前記中央処理装置が、
前記性能情報設定回路から得る一つ以上の性能情報か
ら、前記中央処理装置のクロック選択情報を生成するよ
うにしたものである。
In still another configuration, in the clock control device of the central processing unit, the information processing device can use either a battery or an AC power supply as a power supply means, and a discrimination means of the power supply means is provided. Then, when the battery is used and when the AC power source is used, the central processing unit is
The clock selection information of the central processing unit is generated from one or more pieces of performance information obtained from the performance information setting circuit.

【0017】[0017]

【作用】本発明によれば、個々のプログラムの固有の性
能情報を有し、マルチタスク化においてタスクの起動お
よび終了時に、動作しているプログラムの性能情報によ
って選択情報生成回路で必要なCPUの性能を決定し、
CPUのクロックを制御する。そのため、複数のプログ
ラムが並列に実行している場合でも、各プログラムの要
求性能を考慮してCPUの動作クロックを決定している
ので、必要かつ最低の電力で動作可能になる。
According to the present invention, the CPU has the performance information unique to each program, and the CPU required for the selection information generation circuit is selected by the performance information of the operating program at the time of starting and ending the task in multitasking. Determine performance,
Controls the CPU clock. Therefore, even when a plurality of programs are executed in parallel, the operation clock of the CPU is determined in consideration of the required performance of each program, so that the operation can be performed with the necessary and minimum power.

【0018】また、電源検出回路によって、その情報処
理装置の電源がAC電源か電池かを判定し、電源が電池
のときには選択情報生成回路で、CPUのクロックを低
い状態で作動させることにしておくことにより、電池で
作動するときにのみ、低消費電力で作動することにな
る。
Further, the power supply detection circuit determines whether the power supply of the information processing apparatus is an AC power supply or a battery, and when the power supply is a battery, the selection information generation circuit operates the CPU clock in a low state. As a result, it operates with low power consumption only when it is operated with a battery.

【0019】[0019]

【実施例】以下、本発明に係る各実施例を、図1ないし
図12を用いて説明する。 〔実施例1〕以下、本発明に係る第一の実施例を、図1
ないし図6を用いて説明する。先ず、図1を用いて本発
明に係るCPUのクロック制御装置の回路構成について
説明しよう。図1は、本発明の第一の実施例に係るCP
Uのクロック制御装置の回路構成を示すブロック図であ
る。
Embodiments of the present invention will be described below with reference to FIGS. 1 to 12. [Embodiment 1] Hereinafter, a first embodiment according to the present invention will be described with reference to FIG.
It will be described with reference to FIGS. First, the circuit configuration of the CPU clock control device according to the present invention will be described with reference to FIG. FIG. 1 shows a CP according to the first embodiment of the present invention.
FIG. 3 is a block diagram showing a circuit configuration of a U clock control device.

【0020】図1において、発振回路6は、8種類の周
波数のクロックを生成することができる。選択情報回路
7は、クロック選択回路5を制御するための回路であ
る。性能情報設定回路9,10は、タスクの負荷情報を
保持するための回路である。メモリ13には、CPU1
が使用するプログラムやデータが格納される。そして、
図に示される様に、タスク管理プログラム14およびタ
スク管理テーブル15は、このメモリ13に格納される
ものである。
In FIG. 1, the oscillator circuit 6 can generate clocks of eight kinds of frequencies. The selection information circuit 7 is a circuit for controlling the clock selection circuit 5. The performance information setting circuits 9 and 10 are circuits for holding task load information. The memory 1 has a CPU 1
Stores programs and data used by. And
As shown in the figure, the task management program 14 and the task management table 15 are stored in this memory 13.

【0021】CPU1へは、5〜40MIPSまでMI
PS間隔で8レベルの動作状態を指定できるものとす
る。発振回路6は、上記各レベルに対応する8種類の周
波数のクロックを出力する。
MI to CPU 1 to 5 to 40 MIPS
Eight levels of operating states can be specified at PS intervals. The oscillator circuit 6 outputs clocks of eight types of frequencies corresponding to the above levels.

【0022】また、本発明に係る情報処理装置は、マル
チタスクのOS(Operating System)が起動され、その
OS上で各種プログラムを実行することを前提としてい
る。OSは、タスクの起動と終了を制御するタスク管理
プログラム14を含んでいる。さらに、タスク管理プロ
グラム14の制御に必要な各種情報がタスク管理テーブ
ル15に含まれている。具体的には、各タスクごとに、
各タスクをユニークに識別するタスクID、必要なメモ
リ容量などに加えて、本発明に特徴的な性能情報とペン
ディングフラグが登録される項目として存在している。
Further, the information processing apparatus according to the present invention is premised on that a multitasking OS (Operating System) is started and various programs are executed on the OS. The OS includes a task management program 14 that controls activation and termination of tasks. Further, the task management table 15 includes various information necessary for controlling the task management program 14. Specifically, for each task,
In addition to the task ID that uniquely identifies each task, the required memory capacity, etc., the performance information and the pending flag characteristic of the present invention are registered as items.

【0023】性能情報は、各タスクが実行するプログラ
ムの内容に応じて指定されるCPUの負荷となる能力で
ある。ペンディングフラグは、あるタスクの性能情報が
性能情報設定回路に設定するための待ち状態になってい
ることを示すフラグである。
The performance information is the load capacity of the CPU designated according to the contents of the program executed by each task. The pending flag is a flag indicating that the performance information of a certain task is in a waiting state for setting in the performance information setting circuit.

【0024】ペンディングフラグの役割は、後にフロー
を用いて本発明の動作を説明するときに明らかになるの
で、先に、性能情報について説明する。性能情報は、上
で述べたように、タスクが実行するプログラムの内容に
応じて指定する。例えば、ワードプロセッサに関するプ
ログラムの場合で、編集プログラムは、10MIPS、
印刷プログラムは、5MIPSのCPU性能が必要であ
るとする。
The role of the pending flag will become clear later when the operation of the present invention is described using a flow, so the performance information will be described first. The performance information is specified according to the contents of the program executed by the task, as described above. For example, in the case of a program related to a word processor, the editing program is 10 MIPS,
It is assumed that the print program requires a CPU performance of 5 MIPS.

【0025】このような状況において、タスク管理プロ
グラム14が、編集プログラムのタスクを起動する際
に、性能情報設定回路9へ10MIPSの性能情報を設
定すると、選択情報回路7は、10MIPSに相当する
CPU1の動作周波数に対応する選択情報を生成する。
この選択情報にしたがって、クロック選択回路5は該当
するクロックを選択して、クロック線4を介して、CP
U1へ供給する。これにより、CPU1は10MIPS
で動作する。これが、本発明の基本的な仕組みである。
In such a situation, when the task management program 14 sets the performance information of 10 MIPS in the performance information setting circuit 9 when activating the task of the editing program, the selection information circuit 7 causes the CPU 1 corresponding to 10 MIPS. Generate selection information corresponding to the operating frequency of.
According to this selection information, the clock selection circuit 5 selects the corresponding clock and sends the CP via the clock line 4.
Supply to U1. As a result, the CPU1 has 10 MIPS
Works with. This is the basic mechanism of the present invention.

【0026】続いて、ワードプロセッサで編集した文書
を印刷する際には、タスク管理プログラム14が印刷プ
ログラムのタスクを起動する。このとき、性能情報設定
回路10へ5MIPSの性能情報を設定する。選択情報
回路7は、性能情報設定回路9に設定した10MIPS
の性能情報と性能情報設定回路10に設定した性能情報
から、15MIPSに相当するCPU1の動作周波数に
対応する選択情報を生成する。この選択情報にしたがっ
て、クロック選択回路5は該当するクロックを選択し
て、クロック線4を介して、CPU1へ供給する。これ
により、CPU1は10MIPSから15MIPSへ、
より高速な動作モードへ移行する。
Subsequently, when printing the document edited by the word processor, the task management program 14 activates the task of the print program. At this time, performance information of 5 MIPS is set in the performance information setting circuit 10. The selection information circuit 7 is the 10 MIPS set in the performance information setting circuit 9.
The selection information corresponding to the operating frequency of the CPU 1 corresponding to 15 MIPS is generated from the performance information of 1 and the performance information set in the performance information setting circuit 10. According to this selection information, the clock selection circuit 5 selects a corresponding clock and supplies it to the CPU 1 via the clock line 4. As a result, CPU1 changes from 10 MIPS to 15 MIPS.
Switch to a faster operating mode.

【0027】性能情報は、時間ごとの処理能力であらわ
されるので、両タスクが並列実行されるばあいには、両
タスクの加算になることに留意しよう。
It should be noted that the performance information is represented by the processing capability for each time, and therefore, when both tasks are executed in parallel, both tasks are added.

【0028】本発明によれば、このように、ワードプロ
セッサで編集中に印刷を実行した場合でも、負荷に見合
ったようにCPU1の性能を向上させて、印刷しながら
でも編集のための十分な操作環境を得ることができるの
である。
According to the present invention, even when printing is executed during editing by the word processor, the performance of the CPU 1 is improved so as to be commensurate with the load so that sufficient operation for editing can be performed while printing. You can get the environment.

【0029】次に、図2を用いて性能情報設定回路の詳
細な回路構成について説明しよう。図2は、本発明の第
一の実施例に係る性能情報設定回路の回路構成を示すブ
ロック図である。
Next, the detailed circuit configuration of the performance information setting circuit will be described with reference to FIG. FIG. 2 is a block diagram showing the circuit configuration of the performance information setting circuit according to the first embodiment of the present invention.

【0030】上述したように、性能情報設定回路9は、
タスク管理プログラム14によって起動される各タスク
ごとの性能情報を保持するための回路である。タスク起
動時に、性能情報が性能情報設定レジスタ22へ設定さ
れると共に、そのタスクのタスクIDがタスクID設定
レジスタ20へ、さらに、タスクID設定レジスタ20
と性能情報設定レジスタ22の設定が有効であることを
示すイネーブル情報がイネーブル設定レジスタ21へ設
定される。イネーブル設定レジスタ21は、論理値
「1」の時に有効状態、論理値「0」の時に無効状態を
示す。したがって、論理積回路23は、有効状態の場合
のみ、性能情報設定レジスタ22の情報を性能情報線1
1へ出力する。逆に、無効状態の場合、論理値「0」が
性能情報線11へ出力される。
As described above, the performance information setting circuit 9
This is a circuit for holding performance information for each task activated by the task management program 14. When the task is started, the performance information is set in the performance information setting register 22, the task ID of the task is set in the task ID setting register 20, and the task ID setting register 20 is set.
And enable information indicating that the setting of the performance information setting register 22 is valid is set in the enable setting register 21. The enable setting register 21 indicates a valid state when the logical value is "1" and an invalid state when the logical value is "0". Therefore, the AND circuit 23 sets the information in the performance information setting register 22 to the performance information line 1 only when the AND circuit 23 is in the valid state.
Output to 1. Conversely, in the invalid state, the logical value “0” is output to the performance information line 11.

【0031】ここで、イネーブル設定レジスタ21が、
有効状態のときが、この性能情報設定回路に設定された
値が有効であることを示し、逆の無効状態が、この性能
情報設定回路に設定された値が無効であり、いわば、値
が設定されていないことを示している。
Here, the enable setting register 21 is
The valid state indicates that the value set in this performance information setting circuit is valid, while the opposite invalid state indicates that the value set in this performance information setting circuit is invalid, so to speak, the value is set. It has not been done.

【0032】また、タスクID設定レジスタ20、イネ
ーブル設定レジスタ21および性能情報設定レジスタ2
2の設定情報は、アドレスバス2およびデータバス3を
介して、CPU1が読みだし可能であり、タスク管理プ
ログラム14が性能情報設定回路9の設定情報を知るこ
とができる。
Further, the task ID setting register 20, the enable setting register 21, and the performance information setting register 2
The setting information of No. 2 can be read by the CPU 1 via the address bus 2 and the data bus 3, and the task management program 14 can know the setting information of the performance information setting circuit 9.

【0033】次に、図3を用いて選択情報生成回路の詳
細な回路構成について説明しよう。図3は、本発明の第
一の実施例に係る選択情報生成回路の回路構成を示すブ
ロック図である。
Next, the detailed circuit configuration of the selection information generating circuit will be described with reference to FIG. FIG. 3 is a block diagram showing the circuit configuration of the selection information generation circuit according to the first embodiment of the present invention.

【0034】本実施例は、CPU1へ8レベルの動作状
態を指定できたことを想起しよう。したがって、この選
択情報生成回路7は、3ビット情報を扱うものになる。
Recall that the present embodiment was able to specify eight levels of operating states to the CPU1. Therefore, the selection information generation circuit 7 handles 3-bit information.

【0035】図3において、加算回路30は、3ビット
の情報を加算する。キャリー信号線31は、加算結果が
桁上がりした時に論理値「1」を示す。デコーダ回路3
5は、3ビットである。
In FIG. 3, the adder circuit 30 adds 3-bit information. Carry signal line 31 indicates a logical value "1" when the carry of the addition result is carried. Decoder circuit 3
5 is 3 bits.

【0036】加算回路30は、性能情報線11の性能情
報(0〜7)と性能情報線12の性能情報(0〜7)の
加算結果を、論理和回路32〜論理和回路34へ出力す
る。加算結果が7以下の場合、キャリー信号線31が論
理値「0」となり、論理和回路32〜論理和回路34
は、加算回路30の加算結果をそのままデコーダ回路3
5へ出力する。
The adder circuit 30 outputs the addition result of the performance information (0 to 7) of the performance information line 11 and the performance information (0 to 7) of the performance information line 12 to the logical sum circuit 32 to the logical sum circuit 34. . When the addition result is 7 or less, the carry signal line 31 becomes the logical value “0”, and the OR circuit 32 to the OR circuit 34.
Shows the addition result of the addition circuit 30 as it is to the decoder circuit 3
Output to 5.

【0037】一方、加算回路30の加算結果が8以上の
場合、加算結果7がデコーダ回路35へ出力される。要
するに、キャリー信号線31が論理値「1」となり、論
理和回路32〜論理和回路34は全て論理値「1」をデ
コーダ回路35へ出力する。このような場合分けは、ク
ロック選択回路5が選択できるクロックが8種類に限ら
れているために、性能情報の最高のレベルを7に押さえ
るため必要となるものである。例えば、クロック選択回
路5が16種類のクロックを選択可能ならば、この選択
情報回路の構成も異なったものになる。
On the other hand, when the addition result of the adding circuit 30 is 8 or more, the addition result 7 is output to the decoder circuit 35. In short, the carry signal line 31 has the logical value "1", and the OR circuits 32 to 34 all output the logical value "1" to the decoder circuit 35. Such case classification is necessary to keep the highest level of performance information at 7 because the number of clocks that the clock selection circuit 5 can select is limited to eight. For example, if the clock selection circuit 5 can select 16 kinds of clocks, the configuration of this selection information circuit also becomes different.

【0038】このように論理和回路32〜論理和回路3
4が出力する性能情報を受けて、デコーダ回路35は、
該当するクロック信号を選択するための情報を選択情報
信号線8へ出力する。
In this way, the OR circuit 32 to the OR circuit 3
The decoder circuit 35 receives the performance information output by
Information for selecting the corresponding clock signal is output to the selection information signal line 8.

【0039】以上説明したように、選択情報回路7は、
性能情報線11および12の情報から生成したクロック
選択情報を、選択情報信号線8へ出力し、クロック選択
回路5に適切なクロックを選択させるものである。
As described above, the selection information circuit 7 is
The clock selection information generated from the information on the performance information lines 11 and 12 is output to the selection information signal line 8 to cause the clock selection circuit 5 to select an appropriate clock.

【0040】次に、図4および図5を用いてタスク管理
プログラム14の詳細を説明しよう。図4は、タスク起
動時のタスク管理プログラムの動作をあらわすフローチ
ャートである。図5は、タスク終了時のタスク管理プロ
グラムの動作をあらわすフローチャートである。
Next, details of the task management program 14 will be described with reference to FIGS. 4 and 5. FIG. 4 is a flow chart showing the operation of the task management program when the task is activated. FIG. 5 is a flowchart showing the operation of the task management program at the end of the task.

【0041】先ず、図4を用いてタスク管理プログラム
14がタスクを起動する場合の動作を、図の順を追って
説明しよう。最初に、通常のマルチタスクOSがおこな
う所定のタスク起動処理がおこなわれる(S400)。
ここでは、タスク管理テーブル15の内容が更新され
る。すなわち、タスク管理テーブル15に、新しく起動
するタスクのタスクID、必要なメモリ容量、性能情報
などが登録される。
First, the operation when the task management program 14 activates a task will be described with reference to FIG. First, a predetermined task activation process performed by a normal multi-task OS is performed (S400).
Here, the contents of the task management table 15 are updated. That is, the task ID of the newly started task, the required memory capacity, the performance information, etc. are registered in the task management table 15.

【0042】次に、性能情報設定回路9,10に設定さ
れているイネーブル情報を読み込み(S401)、その
情報が有効か無効かをチェックする(S402)。これ
は、使われていない性能情報設定回路があるか調べるも
のである。
Next, the enable information set in the performance information setting circuits 9 and 10 is read (S401), and it is checked whether the information is valid or invalid (S402). This is to check if there is an unused performance information setting circuit.

【0043】どちらかのイネーブル情報が無効状態なら
ば、該当する方の性能情報設定回路(9,10のどちら
か)へ、起動するタスクのタスクID、イネーブル有効
情報及び性能情報を設定する(S403)。これによ
り、新しいタスクが起動された環境下において最適なク
ロック周波数でCPU1が動作することになり、タスク
起動処理を終了する。
If either of the enable information is invalid, the task ID of the task to be activated, the enable valid information and the performance information are set in the corresponding performance information setting circuit (either 9 or 10) (S403). ). As a result, the CPU 1 operates at the optimum clock frequency under the environment in which the new task is activated, and the task activation process ends.

【0044】一方、S402のステップにおいて、イネ
ーブルが全て有効状態ならば、性能情報設定回路は、す
べて他のタスクに使用されている状態である。この場合
には、新しく起動したタスクによって、これらの性能情
報設定回路9,10の性能情報を更新するべきかどうか
を調べる必要がある。
On the other hand, in step S402, if all the enables are valid, the performance information setting circuits are all used for other tasks. In this case, it is necessary to check whether or not the performance information of these performance information setting circuits 9 and 10 should be updated by the newly started task.

【0045】この場合は、これらの性能情報設定回路
9,10の性能情報を読み込む(S404)。
In this case, the performance information of these performance information setting circuits 9 and 10 is read (S404).

【0046】次に、読み込んだ各々の性能情報と、起動
するタスクの性能情報を、比較する(S405)。その
結果、起動するタスクの性能情報が最も低い値であるな
らば、既に起動されているタスクによって、十分にCP
Uの性能が上昇している状態である。よってこの場合
は、性能情報設定回路9,10の更新せずに、タスク管
理テーブル15中の起動するタスクのペンディングフラ
グを有効状態にして(S407)、終了する。ここで、
ペンディングフラグは、タスクとしては、起動したもの
の、そのことが性能情報設定回路9,10には、影響を
与えていないことを示している。このペンディングフラ
グは、後のタスク終了時に参照される。
Next, the read performance information is compared with the performance information of the task to be started (S405). As a result, if the performance information of the task to be activated has the lowest value, the CP that has already been activated is sufficient for the CP.
The performance of U is increasing. Therefore, in this case, without updating the performance information setting circuits 9 and 10, the pending flag of the task to be activated in the task management table 15 is set to the valid state (S407), and the processing is ended. here,
The pending flag indicates that the task is activated, but that does not affect the performance information setting circuits 9 and 10. This pending flag is referred to when the subsequent task ends.

【0047】一方、起動するタスクの性能情報が最も低
い値でないならば、この起動されたタスクに対応して、
CPUの性能を上昇させなければならない。したがっ
て、この場合には、最も低い値が設定されている方の性
能情報設定回路(9,10のどちらか)へ、起動するタ
スクのタスクID、イネーブル有効情報及び性能情報を
設定する(S406)。そして、その書換えた性能情報
設定回路のプロセスIDに対応するプロセスのペンディ
ングフラグを有効にして、終了する。これは、書換えに
より、既に起動されているタスクが、性能情報設定回路
の性能に反映されなくなったため、後で復帰させるため
である。
On the other hand, if the performance information of the task to be started is not the lowest value, the task corresponding to this started task is
CPU performance must be increased. Therefore, in this case, the task ID, enable valid information, and performance information of the task to be activated are set in the performance information setting circuit (either 9 or 10) having the lowest value (S406). . Then, the pending flag of the process corresponding to the process ID of the rewritten performance information setting circuit is validated, and the process ends. This is because the task that has already been activated is not reflected in the performance of the performance information setting circuit due to the rewriting, so that the task is restored later.

【0048】これにより、新しいタスクが起動された環
境下において最適なクロック周波数でCPU1が動作す
ることになり、タスク起動処理を終了する。
As a result, the CPU 1 operates at the optimum clock frequency under the environment in which the new task is activated, and the task activation process is terminated.

【0049】以上説明したように、本実施例は、2個の
性能情報設定回路9と10で構成しているが、この個数
を増やす場合にも対応可能であり、個数を増やすほどき
め細かなクロック制御が可能になり、省電力化の効果を
得ることができる。
As described above, this embodiment is composed of two performance information setting circuits 9 and 10. However, it is possible to cope with the case where the number is increased, and the more the number, the finer the clock becomes. The control becomes possible, and the effect of power saving can be obtained.

【0050】先ず、図5を用いてタスク管理プログラム
14がタスクを終了させる場合の動作を、図の順を追っ
て説明しよう。最初に、性能情報設定回路9および10
に設定されているタスクID情報を読み込み(S50
1)、その情報が終了しようとするタスクのタスクID
と一致しているかをチェックする(S502)。これ
は、終了しようとするタスクの性能が性能情報設定回路
に反映されているか調べるためのものである。
First, the operation when the task management program 14 terminates a task will be described with reference to FIG. First, the performance information setting circuits 9 and 10
The task ID information set in is read (S50
1), the task ID of the task whose information is about to end
It is checked whether they match with (S502). This is to check whether the performance of the task to be finished is reflected in the performance information setting circuit.

【0051】どちらかの性能情報設定回路に格納された
タスクIDと終了しようとするタスクのタスクID情報
が一致するならば、該当する方の性能情報設定回路
(9,10のどちらか)へ、イネーブル無効情報を設定
する(S503)。これは、性能情報設定回路の情報を
消去したことに該当する。
If the task ID stored in one of the performance information setting circuits and the task ID information of the task to be ended match, the corresponding performance information setting circuit (either 9 or 10), Enable / disable information is set (S503). This corresponds to erasing the information in the performance information setting circuit.

【0052】次に、タスク管理テーブル15中にペンデ
ィングフラグが有効状態となっているタスクが存在する
かをチェックする(S504)。ペンディングフラグが
有効状態となっているということは、そのタスクが起動
されており、性能情報設定回路9,10に性能を設定す
るために待ち状態になっていると考えることができる。
したがって、ペンディングフラグが有効状態となって
いるタスクが存在するならば、そのタスクのタスクI
D、イネーブル有効情報及び性能情報を、ステップ50
3において該当した性能情報設定回路(9,10のどち
らか)へ設定する(S505)。そして、設定したタス
クのペンディングフラグを無効状態にする(S50
6)。
Next, it is checked whether or not there is a task whose pending flag is valid in the task management table 15 (S504). When the pending flag is in the valid state, it can be considered that the task is activated and is in a waiting state for setting the performance in the performance information setting circuits 9 and 10.
Therefore, if there is a task with the pending flag in the valid state, the task I
D, enable validity information and performance information, step 50
The performance information setting circuit (either 9 or 10) corresponding to 3 is set (S505). Then, the pending flag of the set task is set to the invalid state (S50
6).

【0053】これにより、タスクが終了した環境下にお
いて最適なクロック周波数でCPU1が動作することに
なる。
As a result, the CPU 1 operates at the optimum clock frequency under the environment where the task is completed.

【0054】最後に、タスク管理テーブル15から終了
するタスクに関する情報を削除するなど、通常のマルチ
タスクOSが行う所定のタスク終了処理がおこなわれ
(S507)、タスク終了処理を終了する。
Finally, predetermined task end processing performed by a normal multitask OS is performed (S507), such as deleting information about the task to be ended from the task management table 15 and the task end processing is ended.

【0055】一方、ステップS502において、どちら
かのタスクID情報も一致しないならば、終了するタス
クはCPU1の動作周波数決定に影響していないことに
なる。したがって、ステップS503〜S506を飛び
越して、ステップS507を実行し、タスク終了処理を
終了する。
On the other hand, in step S502, if either task ID information does not match, it means that the task to be finished has no influence on the determination of the operating frequency of the CPU 1. Therefore, steps S503 to S506 are skipped, step S507 is executed, and the task end processing is ended.

【0056】同様に、ステップS504において、ペン
ディングフラグが有効状態のタスクが存在しないなら
ば、CPU1の動作周波数決定に影響するべきタスクが
ないことになる。したがって、ステップS505、S5
06を飛び越して、ステップ507を実行し、タスク終
了処理を終了する。
Similarly, in step S504, if there is no task with the pending flag in the valid state, it means that there is no task that should influence the determination of the operating frequency of the CPU 1. Therefore, steps S505 and S5
Step 06 is skipped over step 06, and the task end processing is ended.

【0057】最後に、図6を用いて以上説明した実施例
の具体的な動作の例を経時順に説明してみよう。図6
は、各タスクの状態と性能情報の関係を経時順に示した
タイミングチャートである。
Finally, an example of a specific operation of the embodiment described above with reference to FIG. 6 will be described in the order of time. Figure 6
FIG. 4 is a timing chart showing the relationship between the status of each task and performance information in chronological order.

【0058】より詳しくは、図6は、各タスクの起動と
終了を示すイベントと、起動されたタスクの状態(実行
状態と待機状態間の遷移)と、性能情報設定回路9およ
び性能情報設定回路10に設定される性能情報と、CP
U1の実動作に相当する性能情報を示したものである。
この図における時間軸の単位として、各イベントを起点
とした6つのタイムスロット(0〜5)を用いることに
した。
More specifically, FIG. 6 shows events indicating the activation and termination of each task, the state of the activated task (transition between the execution state and the standby state), the performance information setting circuit 9 and the performance information setting circuit. Performance information set to 10 and CP
It shows the performance information corresponding to the actual operation of U1.
As the unit of the time axis in this figure, six time slots (0 to 5) starting from each event are used.

【0059】図6の様に、タスクA、タスクB、タスク
Cが起動されるのであるが、これらの各々に対応する性
能情報は、「2」、「4」、「5」とすることにしよ
う。
As shown in FIG. 6, task A, task B, and task C are activated. The performance information corresponding to each of these is set to "2", "4", "5". Try.

【0060】先ず、タイムスロット0では、OSだけが
動作しており、実行中のタスクは存在しない。このと
き、性能情報設定回路9および性能情報設定回路10に
はイネーブルが無効状態に設定されており、CPU1
は、最低性能「0」で動作している。
First, in time slot 0, only the OS is operating, and there is no task being executed. At this time, the enable is set to the invalid state in the performance information setting circuit 9 and the performance information setting circuit 10, and the CPU 1
Is operating at the minimum performance “0”.

【0061】次に、タスクAが起動されたタイムスロッ
ト1では、タスク管理プログラム14が性能情報設定回
路9へイネーブル有効情報と性能情報「2」を設定す
る。これにより、CPU1は性能情報「2」に相当する
性能で動作することになる。
Next, in the time slot 1 in which the task A is activated, the task management program 14 sets the enable valid information and the performance information "2" in the performance information setting circuit 9. As a result, the CPU 1 operates with the performance corresponding to the performance information “2”.

【0062】次に、タスクBが起動されたタイムスロッ
ト2では、先ず、タスクBが実行状態となり、タスクA
は実行状態から待機状態へ遷移する。さらに、タスク管
理プログラム14が性能情報設定回路10へイネーブル
有効情報と性能情報「4」を設定する。これにより、性
能情報設定回路9に設定された性能情報「2」と性能情
報設定回路10に設定された性能情報「4」が、選択情
報生成回路7で加算されて、CPU1は性能情報「6」
に相当する性能で動作する。この動作環境下で、タスク
AとタスクBは、背反的に実行状態と待機状態の間を遷
移する。
Next, in the time slot 2 in which the task B is activated, first, the task B becomes the execution state, and the task A
Transitions from the running state to the waiting state. Further, the task management program 14 sets enable valid information and performance information “4” in the performance information setting circuit 10. As a result, the performance information “2” set in the performance information setting circuit 9 and the performance information “4” set in the performance information setting circuit 10 are added in the selection information generation circuit 7, and the CPU 1 sets the performance information “6”. "
Operates with performance equivalent to. Under this operating environment, task A and task B make a transition between the execution state and the standby state.

【0063】次に、タスクCが起動されたタイムスロッ
ト3では、先ず、タスクCが実行状態となり、タスクA
は実行状態から待機状態へ遷移する。起動されるタスク
Cの性能情報は、「5」なので、タスク管理プログラム
14は、性能情報設定回路9および性能情報設定回路1
0へ設定されている性能情報を比較し、低い性能情報が
設定されている方の性能情報設定回路9へ、性能情報
「5」を設定する。これにより、本来性能情報は「9」
となるが、本実施例では、性能情報の最大レベルが
「7」なので、CPU1は性能情報「7」に相当する性
能で動作する。
Next, in the time slot 3 in which the task C is activated, first, the task C becomes the execution state and the task A
Transitions from the running state to the waiting state. Since the performance information of the started task C is “5”, the task management program 14 uses the performance information setting circuit 9 and the performance information setting circuit 1.
The performance information set to 0 is compared, and the performance information “5” is set to the performance information setting circuit 9 having the lower performance information. As a result, the performance information is originally "9".
However, in this embodiment, since the maximum level of performance information is "7", the CPU 1 operates with the performance corresponding to the performance information "7".

【0064】また、タスク管理プログラム14は、タス
ク管理テーブル15中のタスクAのペンディングフラグ
を有効状態とする。このような動作環境下で、タスク
A、タスクB、タスクCは、背反的に実行状態と待機状
態の間を遷移する。
The task management program 14 also sets the pending flag of the task A in the task management table 15 to the valid state. Under such an operating environment, the task A, the task B, and the task C make a contradictory transition between the execution state and the standby state.

【0065】次に、タスクBが終了されたタイムスロッ
ト4では、先ず、タスクCが実行状態となり、タスクB
は終了する。さらに、タスク管理プログラム14は、タ
スクBの性能情報「4」の代わりにペンディングフラグ
が有効状態となっているタスクAの性能情報「2」を性
能情報設定回路10へ設定する。すなわち、追い出され
ていたタスクAの性能情報を復帰させるわけである。こ
れにより、CPU1は性能情報「7」に相当する性能で
動作する。この動作環境下で、タスクAとタスクCは、
背反的に実行状態と待機状態の間を遷移する。
Next, in the time slot 4 in which the task B is finished, first, the task C becomes the execution state, and the task B
Ends. Further, the task management program 14 sets, in the performance information setting circuit 10, the performance information “2” of the task A whose pending flag is in the valid state, instead of the performance information “4” of the task B. That is, the performance information of the task A that has been ejected is restored. As a result, the CPU 1 operates with the performance corresponding to the performance information “7”. Under this operating environment, task A and task C
It makes a contradictory transition between the execution state and the standby state.

【0066】最後に、タスクAが終了されたタイムスロ
ット5では、先ず、タスクCが実行状態となり、タスク
Aは終了する。さらに、タスク管理プログラム14は、
終了するタスクAの性能情報「2」を無効にするため性
能情報設定回路10へイネーブル無効情報を設定する。
これにより、性能情報設定回路9だけが有効となり、C
PU1は性能情報「5」に相当する性能で動作する。
Finally, in the time slot 5 in which the task A is finished, first, the task C becomes the execution state and the task A is finished. Furthermore, the task management program 14
The enable / disable information is set in the performance information setting circuit 10 to disable the performance information “2” of the task A to be ended.
As a result, only the performance information setting circuit 9 becomes effective, and C
PU1 operates with the performance corresponding to the performance information “5”.

【0067】以上説明した第一の実施例では、性能情報
設定回路が2個の構成であるが、これに限定したわけで
はなく、性能情報設定回路の数を増やせば、CPU1の
動作速度を、さらに、きめ細かく制御できる。同様に、
CPU1のクロック周波数も8種類に限定したわけでは
なく、周波数の選択しを増やせば、さらにきめ細かな省
電力制御が可能になる。
In the first embodiment described above, the performance information setting circuit has two structures. However, the number of performance information setting circuits is not limited to this. Furthermore, fine control is possible. Similarly,
The clock frequency of the CPU 1 is not limited to eight types, and more power saving control can be performed by increasing the selection of frequencies.

【0068】〔実施例2〕以下、本発明に係る第二の実
施例を、図7を用いて説明する。図7は、本発明の第二
の実施例に係るCPUのクロック制御装置の回路構成を
示すブロック図である。
[Second Embodiment] A second embodiment according to the present invention will be described below with reference to FIG. FIG. 7 is a block diagram showing the circuit configuration of the clock control device for the CPU according to the second embodiment of the present invention.

【0069】この第二の実施例は、基本的な構成と動作
およびその思想は、同様のものによるものであるが、そ
の特徴は、回路構成を集積して1チップ化するところに
ある。
The second embodiment has the same basic structure and operation and the same idea, but is characterized in that the circuit structure is integrated into one chip.

【0070】発振器62は、クロック信号を発生し、分
周回路61は、周波数が異なる8種類のクロック信号を
発生する。また、低電力対応CPU60は、CPU1
と、性能情報設定回路9,10と、選択情報生成回路7
と、クロック選択回路5と、分周回路61とを1チップ
に集積化したプロセッサである。
The oscillator 62 generates a clock signal, and the frequency dividing circuit 61 generates eight types of clock signals having different frequencies. Further, the low power CPU 60 is the CPU 1
, Performance information setting circuits 9 and 10, and selection information generation circuit 7
The clock selecting circuit 5 and the frequency dividing circuit 61 are integrated on one chip.

【0071】この実施例では、性能情報設定回路9など
の回路部が低電力対応CPU60に集積化されておるた
め、回路構成全体の部品点数を削減できるという利点が
ある。
In this embodiment, since the circuit section such as the performance information setting circuit 9 is integrated in the low power CPU 60, there is an advantage that the number of parts of the entire circuit configuration can be reduced.

【0072】また、低電力対応CPU60が分周回路6
1を内蔵するため、発振器62からのクロック信号線は
1本で済むことになる。低電力対応CPU60に内蔵す
る回路は、第一の実施例で説明したように、比較的簡単
なハードウエアで構成できるため、回路規模が比較的小
さく、ピン数もCPU1と比較して、それほど増加する
ことはないので、十分に集積回路として構成することは
可能である。
Further, the low-power CPU 60 uses the frequency dividing circuit 6
Since 1 is built in, only one clock signal line from the oscillator 62 is required. As described in the first embodiment, the circuit incorporated in the low-power CPU 60 can be configured with relatively simple hardware, so that the circuit scale is relatively small and the number of pins is much larger than that of the CPU 1. Since it does not occur, it can be sufficiently configured as an integrated circuit.

【0073】この第二の実施例の効果としては、回路を
集積化することによる小形化、低電力化だけでなく、ハ
ードウエアの実装設計が容易になることもある。すなわ
ち、クロック選択回路5をチップ内部に取り込んだこと
で、CPUクロックの高速化に伴い問題となるクロック
信号の反射や干渉など実装上の技術課題が緩和されるの
である。
As an effect of the second embodiment, not only downsizing and power saving by integrating the circuit but also hardware mounting design can be facilitated. That is, by incorporating the clock selection circuit 5 inside the chip, technical problems in mounting such as reflection and interference of the clock signal, which become a problem with the speeding up of the CPU clock, are alleviated.

【0074】〔実施例3〕以下、本発明に係る第三の実
施例を、図8ないし図10を用いて説明する。図8は、
本発明の第三の実施例に係るCPUのクロック制御装置
の回路構成を示すブロック図である。
[Third Embodiment] A third embodiment of the present invention will be described below with reference to FIGS. 8 to 10. Figure 8
It is a block diagram which shows the circuit structure of the clock control device of CPU which concerns on the 3rd Example of this invention.

【0075】この第三の実施例の特徴は、第一の実施例
において、性能情報設定回路9,10と選択情報設定回
路7が生成する選択情報を、図8に示されるタスク管理
プログラム71に従って、選択情報設定回路70が生成
することにある。
The feature of the third embodiment is that the selection information generated by the performance information setting circuits 9 and 10 and the selection information setting circuit 7 in the first embodiment is set in accordance with the task management program 71 shown in FIG. The selection information setting circuit 70 generates the information.

【0076】ここで、選択情報設定回路70は、クロッ
ク選択回路5へ与える選択情報を設定する回路であり、
タスク管理プログラム71は、選択情報を生成する機能
を持つプログラムである。
Here, the selection information setting circuit 70 is a circuit for setting selection information to be given to the clock selection circuit 5.
The task management program 71 is a program having a function of generating selection information.

【0077】以下、この選択情報設定回路70の機能
を、図9を用いて詳細に説明しよう。図9は、本発明の
第三の実施例に係る選択情報設定回路の回路構成を示す
ブロック図である。
Hereinafter, the function of the selection information setting circuit 70 will be described in detail with reference to FIG. FIG. 9 is a block diagram showing the circuit configuration of a selection information setting circuit according to the third embodiment of the present invention.

【0078】本実施例でも、取扱える性能レベルは、8
段階を想定しており、したがって、レジスタ80は、3
ビットである。選択情報設定回路70においては、アド
レスバス2とデータバス3を介して、CPU1が3ビッ
トの性能情報を設定するとともに、設定した性能情報を
読み出すことができる。設定する性能情報は、実施例1
とは異なり、性能情報設定回路が生成するのではなく、
タスク管理プログラム71によって生成する。この性能
情報は、選択情報設定回路70の中のデコーダ回路35
へ送られ、デコーダ回路35は、上記性能情報からクロ
ック選択情報を生成して、選択情報信号線8へ出力し、
これによって、最終的にCPU1の動作周波数が決めら
れることになる。
Also in this embodiment, the performance level that can be handled is 8
Phases are assumed, so register 80 is 3
Is a bit. In the selection information setting circuit 70, the CPU 1 can set the 3-bit performance information and read the set performance information via the address bus 2 and the data bus 3. The performance information to be set is the first embodiment.
Unlike, the performance information setting circuit does not generate
It is generated by the task management program 71. This performance information is stored in the decoder circuit 35 in the selection information setting circuit 70.
And the decoder circuit 35 generates clock selection information from the performance information and outputs it to the selection information signal line 8.
As a result, the operating frequency of the CPU 1 is finally determined.

【0079】次に、実施例1との相違も考慮に入れて、
タスク管理プログラム71の性能情報を設定する動作の
詳細を、図10の順を追って説明しよう。図10は、タ
スク管理プログラムの性能情報を設定する動作をあらわ
すフローチャートである。
Next, taking into consideration the difference from the first embodiment,
The details of the operation of setting the performance information of the task management program 71 will be described in order of FIG. FIG. 10 is a flowchart showing the operation of setting the performance information of the task management program.

【0080】先ず、タスク管理プログラム71は、これ
からおこなう処理がタスクの起動処理か終了処理かをチ
ェックする(S900)。
First, the task management program 71 checks whether the processing to be performed from now on is task start processing or task end processing (S900).

【0081】起動処理ならば、図4のステップS400
と同様に、所定のタスク生成処理を行う(S901)。
ここでは、起動するタスクに対応する各種情報をタスク
管理テーブル15へ登録する。
If it is the starting process, step S400 in FIG.
Similarly, a predetermined task generation process is performed (S901).
Here, various information corresponding to the task to be activated is registered in the task management table 15.

【0082】逆に、終了処理ならば、図5のステップS
507と同様に、所定のタスク終了処理を行う(S90
2)。ここでは、終了するタスクに対応する各種情報を
タスク管理テーブル15から削除する。
On the contrary, if it is the end processing, step S in FIG.
Similar to 507, a predetermined task end process is performed (S90
2). Here, various information corresponding to the task to be ended is deleted from the task management table 15.

【0083】ステップS901およびS902の次に
は、起動中のタスクが存在するかをチェックする(S9
03)。このチェックは、タスク管理テーブル15への
登録の有無を調べれば良い。
After steps S901 and S902, it is checked whether or not there is an active task (S9).
03). This check may be performed by checking whether the task management table 15 is registered.

【0084】登録があるならば、登録されている全タス
クの性能情報を読み出す(S904)。次に、読みだし
た性能情報の総和を求めて、CPU1の性能情報を生成
し(S905)、CPU1の性能情報の値が「8」を越
えているかをチェックする(S906)。越えてないな
らば、そのCPU1の性能情報をレジスタ80へ設定す
る(S907)。
If registered, the performance information of all registered tasks is read (S904). Next, the total sum of the read performance information is obtained, performance information of the CPU 1 is generated (S905), and it is checked whether the value of the performance information of the CPU 1 exceeds "8" (S906). If it does not exceed, the performance information of the CPU 1 is set in the register 80 (S907).

【0085】逆に、CPU1の性能情報の値が「8」を
越えているならば、CPU1の性能情報の値を「7」
(本実施例における性能情報の最大値)として(S90
8)、レジスタ80へ設定する(S907)。
On the contrary, if the value of the performance information of the CPU 1 exceeds "8", the value of the performance information of the CPU 1 is "7".
As (maximum value of performance information in this embodiment) (S90
8) and set in the register 80 (S907).

【0086】また、ステップS903において、起動中
のタスクが存在しないならば、CPU1の性能情報の値
を「0」(本実施例における性能情報の最小値)として
(S909)、レジスタ80へ設定する(S907)。
If there is no task being started in step S903, the value of the performance information of the CPU 1 is set to "0" (minimum value of the performance information in this embodiment) (S909) and set in the register 80. (S907).

【0087】このように、タスクの起動時および終了時
において、性能情報からCPU1へ与える選択情報を生
成する機能をタスク管理プログラム71に持たせれば、
この既脳をソフトウエアで実現できる。したがって、本
実施例においては、実施例1とは異なり性能情報設定回
路9,10が不要であり、ハードウエアの部品点数を削
減できるという利点がある。
In this way, if the task management program 71 has a function of generating selection information to be given to the CPU 1 from performance information at the time of starting and ending a task,
This brain can be realized by software. Therefore, in the present embodiment, unlike the first embodiment, the performance information setting circuits 9 and 10 are unnecessary, and there is an advantage that the number of hardware parts can be reduced.

【0088】〔実施例4〕以下、本発明に係る第四の実
施例を、図11および図12を用いて説明する。本実施
例の特徴は、使用している電源に従って、CPU1の性
能を制御することにある。
[Embodiment 4] A fourth embodiment of the present invention will be described below with reference to FIGS. 11 and 12. The feature of this embodiment is that the performance of the CPU 1 is controlled according to the power supply used.

【0089】それを考慮して、図11を用いて、本実施
例に係るCPUのクロック制御装置の回路構成と電源回
路の構成について説明しよう。図11は、本発明の第四
の実施例に係るCPUのクロック制御装置の回路構成と
電源回路の構成を示すブロック図である。
Considering this, the circuit configuration of the clock control device of the CPU and the configuration of the power supply circuit according to the present embodiment will be described with reference to FIG. FIG. 11 is a block diagram showing the circuit configuration of the clock control device for the CPU and the configuration of the power supply circuit according to the fourth embodiment of the present invention.

【0090】選択情報生成回路100は、性能情報から
クロック信号の選択情報を生成することができる。電源
検出回路110は、電源供給手段を識別するための回路
である。また、電源制御回路111は、電源供給手段を
AC電池113にするか電池114にするかを制御す
る。電源供給手段の選択回路112は、実際にどちらの
電源を採用するか切り替える回路である。ここで、AC
電源113は、このCPUを用いた情報処理装置の外部
から電力供給され、電池114は、情報処理装置に内蔵
されることを想定している。これらAC電源113と電
池114は、どちらか一方が電源供給手段として使用さ
れるものであり、どちらを使用するかは、電源制御回路
111によって決定される。電源制御回路111の指示
により、選択回路112はAC電源113と電池114
のいずれかを選択して情報処理装置で電力を供給するも
のである。
The selection information generating circuit 100 can generate clock signal selection information from the performance information. The power supply detection circuit 110 is a circuit for identifying the power supply means. Further, the power supply control circuit 111 controls whether the power supply means is the AC battery 113 or the battery 114. The selection circuit 112 of the power supply means is a circuit for switching which power supply is actually used. Where AC
It is assumed that the power supply 113 is supplied with power from the outside of the information processing apparatus using this CPU, and the battery 114 is built in the information processing apparatus. One of the AC power supply 113 and the battery 114 is used as a power supply means, and which one is used is determined by the power supply control circuit 111. In response to an instruction from the power supply control circuit 111, the selection circuit 112 causes the AC power supply 113 and the battery 114 to operate.
One of the above is selected and power is supplied by the information processing apparatus.

【0091】また、電源検出回路110は、電源制御回
路111が選択回路112へ指示した情報がCPU1に
よって読み出されることを可能にし、CPU1が現在ど
ちらの電源供給手段を使用中であるかを検出できる。
Further, the power supply detection circuit 110 enables the information that the power supply control circuit 111 has instructed the selection circuit 112 to be read by the CPU 1, and can detect which power supply means the CPU 1 is currently using. .

【0092】選択情報生成回路100がCPU1の性能
情報を選択するのは、CPU1が情報を設定するアドレ
スバス2とデータバス3を介して入力されるデータによ
り決定される。
The selection information generation circuit 100 selects the performance information of the CPU 1 depending on the data input via the address bus 2 and the data bus 3 for which the CPU 1 sets the information.

【0093】以下、図12を用いて、この選択情報回路
100の構成と動作について詳細に説明しよう。図12
は、本発明の第四の実施例に係る選択情報回路の回路構
成を示すブロック図である。
The configuration and operation of the selection information circuit 100 will be described in detail below with reference to FIG. 12
FIG. 8 is a block diagram showing a circuit configuration of a selection information circuit according to a fourth example of the present invention.

【0094】2ポートRAM101は、アドレス4ビッ
ト、データ3ビット、デコーダ回路102は3ビットと
して構成されている。なお、本実施例も性能レベルは、
「0」から「7」までの、8段階を想定している。2ポ
ートRAM101は、アドレスバス2およびデータバス
3から情報が設定される。この設定された情報にしたが
って、性能情報線11,12の4ビットの性能情報がア
ドレス情報となり、その結果として読み出された3ビッ
トのデータがデコーダ回路102へ送られる。送られた
データから、デコーダ回路102は、8ビットのクロッ
ク選択情報を出力し、8種類クロック信号のうち1つを
選択する。
The 2-port RAM 101 is composed of an address of 4 bits, data of 3 bits, and the decoder circuit 102 of 3 bits. The performance level of this example is also
Eight levels from “0” to “7” are assumed. Information is set in the 2-port RAM 101 from the address bus 2 and the data bus 3. According to the set information, the 4-bit performance information of the performance information lines 11 and 12 becomes address information, and the 3-bit data read as a result is sent to the decoder circuit 102. From the transmitted data, the decoder circuit 102 outputs 8-bit clock selection information and selects one of the eight types of clock signals.

【0095】ここで、次の表1と表2を用いて、この2
ポートRAM101へ設定される情報と出力の例を説明
しよう。表1は、AC電源113を使用している通常動
作モード時の性能情報の設定を対照した表である。
Here, using Table 1 and Table 2 below, this
An example of information set in the port RAM 101 and output will be described. Table 1 is a table contrasting the setting of the performance information in the normal operation mode using the AC power supply 113.

【0096】[0096]

【表1】 [Table 1]

【0097】表2は、電池114を使用している省電力
動作モード時の設定対照した表である。
Table 2 is a table showing the setting comparison in the power saving operation mode using the battery 114.

【0098】[0098]

【表2】 [Table 2]

【0099】表1に示される性能情報の設定は、基本的
に第一の実施例と同様のアルゴリズムによるものであ
り、性能情報線11と12の情報を加算するアルゴリズ
ムである。したがって、実行しているタスクの性能情報
の和が実際のCPU1のクロックレベルとして用いられ
る。
The setting of the performance information shown in Table 1 is basically based on the same algorithm as that of the first embodiment and is an algorithm for adding the information on the performance information lines 11 and 12. Therefore, the sum of the performance information of the tasks being executed is used as the actual clock level of the CPU 1.

【0100】一方、表2に示される性能情報の設定は、
電池駆動で使用している場合に用いられる場合のもの
で、CPU1がフルパワーで動作しないようなアルゴリ
ズムである。こりアルゴリズムでは、CPU1が高速で
動作するクロックレベル6と7の設定を使用しない、つ
まり、性能情報線11と12の総和が6以上の時はクロ
ックレベル5に設定するように工夫されている。
On the other hand, the setting of the performance information shown in Table 2 is
This is an algorithm used when it is used in a battery drive, and is an algorithm such that the CPU 1 does not operate at full power. This algorithm is devised to set the clock level 5 when the CPU 1 does not use the settings of the clock levels 6 and 7 which operate at high speed, that is, when the sum of the performance information lines 11 and 12 is 6 or more.

【0101】このように、第四の実施例では、電源供給
手段の使用状態に応じて、CPU1へ与えるクロック周
波数を制御することで、電池114を用いている場合
は、処理性能は低下するものの、使用している電池の動
作時間を長くできる効果がある。
As described above, in the fourth embodiment, by controlling the clock frequency given to the CPU 1 according to the usage state of the power supply means, the processing performance is deteriorated when the battery 114 is used. , It has the effect of extending the operating time of the battery being used.

【0102】[0102]

【発明の効果】本発明によれば、マルチタスクの動作環
境において、その情報処理装置で動作させるプログラム
の性能に応じて、低い性能で済む処理プログラムの実行
時には、その要求性能を満足する必要最低限のCPUの
動作クロックに自動的に切り替えて消費電力を節約し
て、タスク実行中でも低消費電力での作動を実現しうる
CPUのクロック制御装置およびクロック制御方法を提
供することができる。
According to the present invention, in a multitasking operating environment, when a processing program that requires low performance is executed in accordance with the performance of the program operated by the information processing apparatus, the required minimum required performance is satisfied. It is possible to provide a clock control device and a clock control method for a CPU that can automatically switch to a limited operating clock of a CPU to save power consumption and realize operation with low power consumption even during task execution.

【0103】また、本発明によれば、その情報処理装置
がAC電源で作動するか電池で作動するかを判定し、電
池で作動するときにのみ、低消費電力で作動するCPU
のクロック制御装置およびクロック制御方法を提供する
ことができる。
Further, according to the present invention, it is determined whether the information processing apparatus is operated by an AC power source or a battery, and a CPU which operates with low power consumption only when operated by the battery.
The clock control device and the clock control method can be provided.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第一の実施例に係るCPUのクロック
制御装置の回路構成を示すブロック図である。
FIG. 1 is a block diagram showing a circuit configuration of a clock control device for a CPU according to a first embodiment of the present invention.

【図2】本発明の第一の実施例に係る性能情報設定回路
の回路構成を示すブロック図である。
FIG. 2 is a block diagram showing a circuit configuration of a performance information setting circuit according to the first embodiment of the present invention.

【図3】本発明の第一の実施例に係る選択情報生成回路
の回路構成を示すブロック図である。
FIG. 3 is a block diagram showing a circuit configuration of a selection information generation circuit according to the first embodiment of the present invention.

【図4】タスク起動時のタスク管理プログラムの動作を
あらわすフローチャートである。
FIG. 4 is a flowchart showing the operation of a task management program when a task is activated.

【図5】タスク終了時のタスク管理プログラムの動作を
あらわすフローチャートである。
FIG. 5 is a flowchart showing the operation of a task management program at the end of a task.

【図6】各タスクの状態と性能情報の関係を経時順に示
したタイミングチャートである。
FIG. 6 is a timing chart showing the relationship between the status of each task and performance information in chronological order.

【図7】本発明の第二の実施例に係るCPUのクロック
制御装置の回路構成を示すブロック図である。
FIG. 7 is a block diagram showing a circuit configuration of a clock control device for a CPU according to a second embodiment of the present invention.

【図8】本発明の第三の実施例に係るCPUのクロック
制御装置の回路構成を示すブロック図である。
FIG. 8 is a block diagram showing a circuit configuration of a clock control device for a CPU according to a third embodiment of the present invention.

【図9】本発明の第三の実施例に係る選択情報設定回路
の回路構成を示すブロック図である。
FIG. 9 is a block diagram showing a circuit configuration of a selection information setting circuit according to a third embodiment of the present invention.

【図10】タスク管理プログラムの性能情報を設定する
動作をあらわすフローチャートである。
FIG. 10 is a flowchart showing an operation of setting performance information of a task management program.

【図11】本発明の第四の実施例に係るCPUのクロッ
ク制御装置の回路構成と電源回路の構成を示すブロック
図である。
FIG. 11 is a block diagram showing a circuit configuration of a clock control device for a CPU and a configuration of a power supply circuit according to a fourth example of the present invention.

【図12】本発明の第四の実施例に係る選択情報回路の
回路構成を示すブロック図である。
FIG. 12 is a block diagram showing a circuit configuration of a selection information circuit according to a fourth embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1…CPU、2…アドレスバス、3…データバス、4…
CPU1のクロック線、5…クロック選択回路、6…発
振回路、7…選択情報生成回路、8…選択情報信号線、
9,10…性能情報設定回路、11,12…性能情報
線、13…メモリ、14…タスク管理プログラム、15
…タスク管理テーブル。20…タスクID設定レジス
タ、21…イネーブル設定レジスタ、22…性能情報設
定レジスタ、23…論理積回路。30…加算回路、31
…キャリー信号線、32〜34…論理和回路、35…デ
コーダ回路。60…CPU、61…分周回路、62…発
振器。70…選択情報設定回路、71…タスク管理プロ
グラム。80…レジスタ。100…選択情報生成回路、
110…電源検出回路、111…電源制御回路、112
…選択回路、113…AC電源、114…電池。101
…2ポートRAM、102…デコーダ回路。
1 ... CPU, 2 ... Address bus, 3 ... Data bus, 4 ...
CPU 1 clock line, 5 ... Clock selection circuit, 6 ... Oscillation circuit, 7 ... Selection information generation circuit, 8 ... Selection information signal line,
9, 10 ... Performance information setting circuit, 11, 12 ... Performance information line, 13 ... Memory, 14 ... Task management program, 15
… Task management table. 20 ... Task ID setting register, 21 ... Enable setting register, 22 ... Performance information setting register, 23 ... AND circuit. 30 ... Adder circuit, 31
... carry signal line, 32 to 34 ... OR circuit, 35 ... decoder circuit. 60 ... CPU, 61 ... Dividing circuit, 62 ... Oscillator. 70 ... Selection information setting circuit, 71 ... Task management program. 80 ... Register. 100 ... Selection information generation circuit,
110 ... Power supply detection circuit, 111 ... Power supply control circuit, 112
... Selection circuit, 113 ... AC power supply, 114 ... Battery. 101
... 2-port RAM, 102 ... Decoder circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大場 信弥 東京都小平市上水本町五丁目20番1号 株 式会社日立製作所半導体事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shinya Oba 5-20-1 Kamimizuhoncho, Kodaira-shi, Tokyo Hitachi, Ltd. Semiconductor Division

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 複数のタスクを起動し切り換えて実行で
きるマルチタスクのオペレーティングシステムとプログ
ラムとを格納するメモリと、 前記マルチタスクのオペレーティングシステム環境下
で、前記プログラムを実行し、かつ、与えられるクロッ
ク周波数に基づいて動作スピードが決定される中央処理
装置とを備える情報処理装置の中央処理装置のクロック
制御装置において、 前記マルチタスクのオペレーティングシステム環境下で
起動されるタスク毎に必要とする中央処理装置の性能情
報を設けて、 前記タスク毎の中央処理装置の性能情報を設定する一つ
以上の性能情報設定回路と、 前記性能情報設定回路に設定した一つ以上の性能情報を
用いて、起動中のタスクが必要とする必要最低限の性能
で動作するように前記中央処理装置のクロック周波数を
決定する様に選択情報を生成する選択情報生成回路と、 複数のクロック信号を発生する発振回路と、 前記選択情報に応じて、前記複数のクロック信号の中か
ら一つを選択して前記中央処理装置へ与えるクロック選
択回路を設けたことを特徴とする中央処理装置のクロッ
ク制御装置。
1. A memory for storing a multitasking operating system and a program capable of activating and switching between a plurality of tasks and executing the program, and a clock for executing the program and providing the program under the multitasking operating system environment. A clock control device for a central processing unit of an information processing apparatus, comprising: a central processing unit whose operating speed is determined based on a frequency; a central processing unit required for each task activated under the multitasking operating system environment. The performance information of the central processing unit for each task is set, and one or more performance information setting circuits that set the performance information of the central processing unit, and one or more performance information set in the performance information setting circuit are used to start Of the central processing unit to operate with the minimum performance required for the task of A selection information generation circuit that generates selection information so as to determine the lock frequency, an oscillation circuit that generates a plurality of clock signals, and one of the plurality of clock signals is selected according to the selection information. A clock control device for a central processing unit, comprising a clock selection circuit for supplying the central processing unit.
【請求項2】 前記中央処理装置と、前記一つ以上の性
能情報設定回路と、選択情報生成回路と、クロック選択
回路を1チップ内に集積することを特徴とする請求項1
記載の中央処理装置のクロック制御装置。
2. The central processing unit, the one or more performance information setting circuits, the selection information generation circuit, and the clock selection circuit are integrated in one chip.
A clock controller for the central processing unit described.
【請求項3】 複数のタスクを起動し切り換えて実行で
きるマルチタスクのオペレーティングシステムとプログ
ラムとを格納するメモリと、 前記マルチタスクのオペレーティングシステム環境下
で、前記プログラムを実行し、かつ、与えられるクロッ
ク周波数に基づいて動作スピードが決定される中央処理
装置とを備える情報処理装置の中央処理装置のクロック
制御方法において、 前記マルチタスクのオペレーティングシステム環境下で
起動されるタスク毎に必要とする中央処理装置の性能情
報を設けて、 一つ以上の性能情報設定回路と、 選択情報生成回路と、 複数のクロック信号を発生する発振回路と、 クロック選択回路とを有し、 前記一つ以上の性能情報設定回路が、前記タスク毎の中
央処理装置の性能情報を設定し、 前記選択情報生成回路が、前記性能情報設定回路に設定
した一つ以上の性能情報を用いて、起動中のタスクが必
要とする必要最低限の性能で動作するように前記中央処
理装置のクロック周波数を決定する様に選択情報を生成
し、 前記クロック選択回路が、前記選択情報に応じて、前記
発振機から発生した複数のクロック信号の中から一つを
選択して前記中央処理装置へ与えることを特徴とする中
央処理装置のクロック制御方法。
3. A memory for storing a multitasking operating system and a program capable of activating and switching a plurality of tasks and executing the program, and a clock for executing the program and being provided with the program under the multitasking operating system environment. A clock control method for a central processing unit of an information processing apparatus, comprising: a central processing unit whose operating speed is determined based on a frequency; and a central processing unit required for each task activated under the multitasking operating system environment. Performance information setting circuit, one or more performance information setting circuits, a selection information generation circuit, an oscillation circuit that generates a plurality of clock signals, and a clock selection circuit. A circuit sets performance information of the central processing unit for each task, The synthesis circuit uses the one or more performance information set in the performance information setting circuit to determine the clock frequency of the central processing unit so as to operate at the minimum necessary performance required by the task being activated. And selecting one of a plurality of clock signals generated from the oscillator according to the selection information, and supplying the selected selection information to the central processing unit. Central processing unit clock control method.
【請求項4】 前記マルチタスクのオペレーティングシ
ステムが、前記各タスクが必要とする性能情報を各タス
ク単位で管理し、 タスクを起動する際に、前記性能情報設定回路へ起動す
るタスクの性能情報を設定するステップを有すること
と、 さらに、タスクを終了する際に、前記性能情報設定回路
に設定してある該当するタスクの性能情報を無効にする
ステップを有することとを特徴とする請求項3記載の中
央処理装置のクロック制御方法。
4. The multi-task operating system manages performance information required by each task on a task-by-task basis, and when the task is activated, the performance information of the task activated to the performance information setting circuit is displayed. 4. The method according to claim 3, further comprising the step of setting, and further comprising the step of invalidating the performance information of the corresponding task set in the performance information setting circuit when ending the task. Control method for CPU central processing unit.
【請求項5】 前記タスクを起動する際に、そのタスク
の性能情報をタスク管理テーブルへ登録するステップ
と、起動中の全タスクの性能情報を読み出すステップ
と、前記全タスクの性能情報を用いて、必要最低限の中
央処理装置の性能情報を算出するステップと、前記中央
処理装置の性能情報を前記選択情報生成回路へ設定する
ステップを有すること、 さらに、タスクを終了する際に、そのタスクの性能情報
をタスク管理テーブルから削除するステップと、起動中
の全タスクの性能情報を読み出すステップと、前記全タ
スクの性能情報を用いて必要最低限の中央処理装置の性
能情報を算出するステップと、前記中央処理装置の性能
情報を前記選択情報生成回路へ設定するステップを有す
ることを特徴とする請求項4記載の中央処理装置のクロ
ック制御方法。
5. When the task is started, the performance information of the task is registered in a task management table, the performance information of all the running tasks is read, and the performance information of the all tasks is used. A step of calculating the minimum necessary performance information of the central processing unit, and a step of setting the performance information of the central processing unit in the selection information generating circuit; A step of deleting the performance information from the task management table, a step of reading the performance information of all the running tasks, a step of calculating the minimum required performance information of the central processing unit using the performance information of the all tasks, 5. The central processing unit clock according to claim 4, further comprising the step of setting performance information of the central processing unit in the selection information generating circuit. Click control method.
【請求項6】 前記プログラムに従って、前記中央処理
装置が、前記性能情報設定回路から得る一つ以上の性能
情報から、前記中央処理装置のクロック選択情報を生成
することを特徴とする請求項1および請求項2記載のい
ずれかの中央処理装置のクロック制御装置。
6. The central processing unit, according to the program, generates clock selection information of the central processing unit from one or more pieces of performance information obtained from the performance information setting circuit. The clock control device of the central processing unit according to claim 2.
【請求項7】 前記情報処理装置が、電源供給手段とし
て、電池とAC電源のどちらでも使用でき、 電源供給手段の識別手段を設けることで、電池を使用し
ているときと、AC電源を使用しているときを識別し、 その識別した結果によって、前記中央処理装置が、前記
性能情報設定回路から得る一つ以上の性能情報から、前
記中央処理装置のクロック選択情報を生成することを特
徴とする請求項6記載の中央処理装置のクロック制御装
置。
7. The information processing apparatus can use either a battery or an AC power supply as a power supply means, and by providing an identification means of the power supply means, when the battery is used and when the AC power supply is used. The central processing unit generates clock selection information of the central processing unit from one or more pieces of performance information obtained from the performance information setting circuit according to the identification result. 7. The clock controller of the central processing unit according to claim 6.
JP6212448A 1994-09-06 1994-09-06 Device and method for controlling clock of central processing unit Pending JPH0876874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6212448A JPH0876874A (en) 1994-09-06 1994-09-06 Device and method for controlling clock of central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6212448A JPH0876874A (en) 1994-09-06 1994-09-06 Device and method for controlling clock of central processing unit

Publications (1)

Publication Number Publication Date
JPH0876874A true JPH0876874A (en) 1996-03-22

Family

ID=16622792

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6212448A Pending JPH0876874A (en) 1994-09-06 1994-09-06 Device and method for controlling clock of central processing unit

Country Status (1)

Country Link
JP (1) JPH0876874A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000112544A (en) * 1998-10-07 2000-04-21 Nokia Mobile Phones Ltd Method for adjusting power consumption
WO2002021245A1 (en) * 2000-09-08 2002-03-14 Fujitsu Limited Clock control method, device therefor, and medium
US6684341B1 (en) 2000-03-09 2004-01-27 International Business Machines Corporation Method of altering the appearance of an icon of a program to provide an indication to a user that a power management is associated with the particular program
JP2005285093A (en) * 2004-03-02 2005-10-13 Mitsubishi Electric Corp Processor power control apparatus and processor power control method
US7346791B2 (en) 2003-03-26 2008-03-18 Matsushita Electric Industrial Co., Ltd. Method for controlling a clock frequency of an information processor in accordance with the detection of a start and a end of a specific processing section
US7356726B2 (en) 2003-05-07 2008-04-08 Sony Corporation Frequency control apparatus for controlling the operation frequency of an object
US7386853B2 (en) 2001-07-12 2008-06-10 Denso Corporation Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same
JP2009104611A (en) * 2002-01-09 2009-05-14 Panasonic Corp Processor
JP2009282998A (en) * 2009-07-13 2009-12-03 Fujitsu Ltd Clock controller and its recording medium
WO2010057686A1 (en) * 2008-11-24 2010-05-27 Icera Inc Active power management
WO2010097885A1 (en) * 2009-02-24 2010-09-02 株式会社東芝 Portable terminal
JP2014533859A (en) * 2011-11-21 2014-12-15 クアルコム,インコーポレイテッド Thermally driven workload scheduling in heterogeneous multiprocessor system on chip
US9170629B2 (en) 2011-12-21 2015-10-27 Fujitsu Limited Medium, control method and information processing apparatus
US9557797B2 (en) 2014-05-20 2017-01-31 Qualcomm Incorporated Algorithm for preferred core sequencing to maximize performance and reduce chip temperature and power
CN108776540A (en) * 2012-10-16 2018-11-09 雷蛇(亚太)私人有限公司 Computing system and method for controlling computing system

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000112544A (en) * 1998-10-07 2000-04-21 Nokia Mobile Phones Ltd Method for adjusting power consumption
US6684341B1 (en) 2000-03-09 2004-01-27 International Business Machines Corporation Method of altering the appearance of an icon of a program to provide an indication to a user that a power management is associated with the particular program
KR100459321B1 (en) * 2000-03-09 2004-12-03 인터내셔널 비지네스 머신즈 코포레이션 Power management in a data processing system based on processor utilization
WO2002021245A1 (en) * 2000-09-08 2002-03-14 Fujitsu Limited Clock control method, device therefor, and medium
US7028211B2 (en) 2000-09-08 2006-04-11 Fujitsu Limited Method and apparatus for determining a system clock frequency by summing calculated CPU usage rates for each of a plurality applications
US7386853B2 (en) 2001-07-12 2008-06-10 Denso Corporation Multitasking operating system capable of reducing power consumption and vehicle electronic control unit using same
JP2009104611A (en) * 2002-01-09 2009-05-14 Panasonic Corp Processor
US7346791B2 (en) 2003-03-26 2008-03-18 Matsushita Electric Industrial Co., Ltd. Method for controlling a clock frequency of an information processor in accordance with the detection of a start and a end of a specific processing section
US7356726B2 (en) 2003-05-07 2008-04-08 Sony Corporation Frequency control apparatus for controlling the operation frequency of an object
JP4490298B2 (en) * 2004-03-02 2010-06-23 三菱電機株式会社 Processor power control apparatus and processor power control method
JP2005285093A (en) * 2004-03-02 2005-10-13 Mitsubishi Electric Corp Processor power control apparatus and processor power control method
US9141165B2 (en) 2008-11-24 2015-09-22 Icera Inc. Method and system for controlling clock frequency for active power management
WO2010057686A1 (en) * 2008-11-24 2010-05-27 Icera Inc Active power management
WO2010097885A1 (en) * 2009-02-24 2010-09-02 株式会社東芝 Portable terminal
JP2009282998A (en) * 2009-07-13 2009-12-03 Fujitsu Ltd Clock controller and its recording medium
JP2014533859A (en) * 2011-11-21 2014-12-15 クアルコム,インコーポレイテッド Thermally driven workload scheduling in heterogeneous multiprocessor system on chip
US9442773B2 (en) 2011-11-21 2016-09-13 Qualcomm Incorporated Thermally driven workload scheduling in a heterogeneous multi-processor system on a chip
US9442774B2 (en) 2011-11-21 2016-09-13 Qualcomm Incorporated Thermally driven workload scheduling in a heterogeneous multi-processor system on a chip
US9170629B2 (en) 2011-12-21 2015-10-27 Fujitsu Limited Medium, control method and information processing apparatus
CN108776540A (en) * 2012-10-16 2018-11-09 雷蛇(亚太)私人有限公司 Computing system and method for controlling computing system
US9557797B2 (en) 2014-05-20 2017-01-31 Qualcomm Incorporated Algorithm for preferred core sequencing to maximize performance and reduce chip temperature and power

Similar Documents

Publication Publication Date Title
US5630148A (en) Dynamic processor performance and power management in a computer system
US6240521B1 (en) Sleep mode transition between processors sharing an instruction set and an address space
KR930008259B1 (en) Computer system w/slip function
JPH0876874A (en) Device and method for controlling clock of central processing unit
US7617407B2 (en) Method and system for power consumption management, and corresponding computer program product
US20020040442A1 (en) Software processing apparatus and recording medium on which program is recorded
US6226740B1 (en) Information processing apparatus and method that uses first and second power supplies for reducing booting time
EP0474963A2 (en) Computer system having sleep mode function
JP2009064456A (en) Dynamic voltage control method and apparatus
JP2002109490A (en) Memory card and clock control circuit
JP2000047872A (en) Microprocessor equipped with low-power-consumption operating function
EP1510908B1 (en) Processor resource power management
US20040139362A1 (en) Data processing apparatus
JP3070527B2 (en) Wireless mobile terminal
JP2003076952A (en) Sd memory card host controller and method for controlling clock
JP2003202935A (en) Power management system and power management method
JP2002189539A (en) Software processor, program and recording medium
WO2005062156A1 (en) Frequency control method and information processing device
CN115729312A (en) Control system and chip for automatically switching processor clock
JPH10143274A (en) Clock controller for cpu
JPH0962397A (en) Operating clock control system
EP3646162B1 (en) System and method for dynamic buffer sizing in a computing device
KR101236393B1 (en) Electric device and control method thereof
JP2000285227A (en) Information processor and control method therefor
JPH11328011A (en) Storage controller and information processor