JPS62150416A - Transition system to low power consumption state - Google Patents

Transition system to low power consumption state

Info

Publication number
JPS62150416A
JPS62150416A JP60295114A JP29511485A JPS62150416A JP S62150416 A JPS62150416 A JP S62150416A JP 60295114 A JP60295114 A JP 60295114A JP 29511485 A JP29511485 A JP 29511485A JP S62150416 A JPS62150416 A JP S62150416A
Authority
JP
Japan
Prior art keywords
task
standby mode
power consumption
state
low power
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
JP60295114A
Other languages
Japanese (ja)
Inventor
Hiroshi Kadota
浩 門田
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP60295114A priority Critical patent/JPS62150416A/en
Publication of JPS62150416A publication Critical patent/JPS62150416A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To eliminate the disturbance of other task execution by bringing the computer system to the standby mode when the absence of a task to be executed is detected in the system applying multi-task processing. CONSTITUTION:A computer system is added with a program memory 1, a program counter (PC) 2, an instruction decoder 3, a peripheral equipment 4, a clock generator 5, a data memory 6, a decision circuit 7, an AND gate 8 and a latch 21 with inverter, the instruction decoder 3 activates each signal line for the system operation. In this case, a clock is fed to the peripheral equipment 4 and the PC 2 via the AND gate 8 and when the output 20 of the latch 21 is inactive, the mode is brought into the standby mode where the peripheral equipment 4 is stopped. Further, the standby mode continues until the latch state is released.

Description

【発明の詳細な説明】 〔分野〕 本発明は、動作状態では無い部分での電力消費を押える
スタンバイモードを備え、マルチタスク処理に↓り情報
処理全行うマイクロコンビ為−タ。
DETAILED DESCRIPTION OF THE INVENTION [Field] The present invention relates to a microcombination processor that is equipped with a standby mode to reduce power consumption in parts that are not in an operating state, and that performs all information processing in addition to multitasking processing.

システムに於けるスタンバイモードへの移行方式%式% 近年、マイクロコンピュータ製造技術の進歩と低消費電
力化の要求とが相俟って0MO8製造技術によるマイク
ロコンビエータが数多く出現している。更に、単にデバ
イスの0MO8化による直接的な低消費電力化のみなら
ず、プログラム実行再開に必要な部分を除きハードウェ
アシステム中で実際の仕事をしていない部分へのクロッ
ク供給ケ止め実質的にハードウェアの実行を停止するこ
とにエリ積極的に電力消費を押えるスタンバイモード技
術が導入さnてきた。この事情および基本技術について
は文献(13K詳しい。[(1)西口他[CMOSマイ
コンの威力を発揮させる低消費電力化技術」昭和58年
度電子通信学会全国大会予稿集VO12P2S5 J 〔従来技術〕 現状でのスタンバイモードの利用方法はマイクロコンピ
エータが持つ命令の実行によりスタンバイモードに入り
、割込み(外部割込み、リセット割込み、タイマ割込み
等)にエリスタンバイモードから通常のオペレージ讐ン
モードへ復帰する動作に従っている。すなわち、マイク
ロコンピュータ上で現在実行さnているプログラムが適
当な時点に於て状況を判断し、スタンバイモードへ移行
する命令を発行することにエリスタンバイモードへ入り
、何等かの割込みが起るまで低消費電力状態?保ち1割
込みの発生後割込み処理を経て再び元のプログラムを実
行し続ける。図1はこの様子を示している。しかし、こ
のスタンバイモードへの移行方法には以下の問題がある
Method for transitioning to standby mode in a system % Formula % In recent years, advances in microcomputer manufacturing technology and demands for lower power consumption have led to the emergence of many micro combinators based on 0MO8 manufacturing technology. Furthermore, not only does it directly reduce power consumption by simply converting the device to 0MO8, but it also effectively cuts off the clock supply to parts of the hardware system that are not doing actual work, except for the parts necessary to resume program execution. Standby mode technology has been introduced to actively reduce power consumption by stopping hardware execution. This situation and the basic technology are detailed in the literature (13K). The method of using standby mode is to enter standby mode by executing an instruction in the microcomputer, and return from standby mode to normal operating mode in response to an interrupt (external interrupt, reset interrupt, timer interrupt, etc.). In other words, the program currently running on the microcomputer judges the situation at an appropriate point, issues a command to enter standby mode, enters standby mode, and waits until some kind of interrupt occurs. It maintains a low power consumption state and continues executing the original program again after one interrupt occurs. Figure 1 shows this situation. However, this method of transitioning to standby mode has the following problems. .

l)スタンバイモード移行命令を発行する前の判断が実
行プログラム毎に必要となる。
l) Judgment is required for each execution program before issuing a standby mode transition command.

2)マイクロコンピュータシステム上に複数の実行すべ
きプログラムがある場合、個々のプログラムの判断にエ
リスタンバイモードへ入ると他のプログラムの実行に支
障を来たすことがある。
2) When there are multiple programs to be executed on a microcomputer system, if each program enters the standby mode for judgment, it may interfere with the execution of other programs.

特に2)の問題は、複数のプログラムをオペレーテイン
クシステム(以下O8)の制御下、タスクとして実行管
理をするマルチタスク環境下に於いて重大である。
In particular, problem 2) is serious in a multitasking environment where a plurality of programs are executed and managed as tasks under the control of an operator ink system (hereinafter referred to as O8).

〔目的〕〔the purpose〕

本発明は上述の問題に対し効果的な解決手段?与えるた
めに考案されたものであり、マルチタスク実行環境下に
於いて、他のタスクの実行に支障を与えず、効果的にス
タンバイモードへの移行全可能とする手段を提供するも
のである。
Is the present invention an effective solution to the above problems? The purpose of this invention is to provide a means for effectively transitioning to standby mode in a multitasking environment without interfering with the execution of other tasks.

〔構成〕〔composition〕

本発明に、複数のタスクを並行動作させるマルチタスク
処理を行うオペレーティングシステム制御下にあるコン
ピュータシステムに於いて実行すべきタスクの有無を検
出する第一の手段とシステムを低消費電力状態に設定す
る第二の手段を備え第一の手段により実行すべきタスク
が無いことが検出さ几た場合第二の手段、に工りコンピ
ュータシステムを低消費電力状態に設定することを特徴
とする低消費電力状態への移行方式である。
The present invention provides a first means for detecting the presence or absence of a task to be executed in a computer system under the control of an operating system that performs multitasking processing in which multiple tasks are executed in parallel, and a system for setting the system to a low power consumption state. A low power consumption method, comprising a second means, and when it is detected by the first means that there is no task to be executed, the second means sets the computer system to a low power consumption state. This is a method of transitioning to a state.

〔作用、効果〕[action, effect]

一般にO8制御下にあるタスクは実行条件に従って種々
の状態を遷移する。1%2図に状態遷移図の一例である
。図に於いて円内は状態を表わしRealy 状悪げ、
実行に要する条件(例えば、メモリ領域の確保、人出機
器の確保など)はすべて揃っているが、プログラムラ実
行すべきCPUの制御権が与えられるの金、待っている
状態、Rt)N状態はReady状態にあったタスクが
CPUの制御権を得てプログラムの実行をしている状態
、Wait状態1dcPUの制御権以外に何等かの条件
が満たされるのを待っている状態を表わしている。Re
ady状態に複数のタスクが存在する場合には、実行優
先度(プライオリティ)順あるいHRJeady  に
なツタ類すなわちFeF2 (first come 
firstserved)で処理される。矢印ニ遷移の
方向を示している。状態遷移図から判るようにO8制御
下ではReady状態にタスクがあるかぎりCPUに実
行kkけなければならない。すなわちスタンバイ・モー
ドへ移行することはできない。しかし1−LLINRe
adyの両状態にタスクが無い場合はすべてのタスクが
、waitすなわち何等かの条件待ちをしており、実行
不可能であることを示している。すなわちこの状態に於
いてO8がスタンバイモードへの移行を設定することに
より他のタスクの実行を妨げることなく低消費重力状態
へコンビーータ・システムを移行することができる。
Generally, tasks under O8 control transition between various states according to execution conditions. Figure 1%2 is an example of a state transition diagram. In the diagram, the inside of the circle represents the condition.
All the conditions necessary for execution (e.g., securing memory area, securing equipment, etc.) are met, but the program is in a waiting state (Rt)N state before being given control of the CPU to be executed. 1 represents a state in which a task that was in the Ready state is executing a program after gaining control of the CPU, and a state in which it is waiting for some condition other than the control right of the 1dcPU to be satisfied. Re
When multiple tasks exist in the ady state, they are sorted in order of execution priority (priority) or HRJeady, i.e. FeF2 (first come
first served). Arrows indicate the direction of the transition. As can be seen from the state transition diagram, under O8 control, as long as there is a task in the Ready state, the CPU must execute it. In other words, it is not possible to shift to standby mode. But 1-LLINRe
If there are no tasks in either state of ady, this indicates that all the tasks are in a wait state, that is, waiting for some condition, and cannot be executed. That is, in this state, by setting the O8 to transition to standby mode, it is possible to transition the Combita system to a low power consumption state without interfering with the execution of other tasks.

〔実施例〕〔Example〕

次に図を似って本発明の詳細な説明する。第3図はRu
nお工びReady  状態にあるタスクのメモリ上の
表現である。1にキューヘッドと呼ばれ。
Next, the present invention will be explained in detail with reference to the drawings. Figure 3 shows Ru
This is a memory representation of a task in the Ready state. 1 is called cue head.

Run  状態にあるタスクのコントロールブロック(
TCBと略す)3ヘポインタ、すなわちキューにリンク
されているTCHのアドレス値P1と以下リンクされて
いる最後のTCBへのポインタP2が格納されている。
Control block of a task in Run state (
(abbreviated as TCB) 3, that is, the address value P1 of the TCH linked to the queue and the pointer P2 to the last TCB linked below are stored.

4.5ハそれぞれReady状態にあるタスクのTCH
である。Ps、P4iそれぞれ次にリンクされるタスク
のTCBへのポインタである。4から5までのn−1個
のTCBに関係するタスクがReady状態タスクであ
り、リンクの順にCPUの実行権を得ることができる。
4.5 TCH of each task in Ready state
It is. Ps and P4i are pointers to the TCB of the next linked task. Tasks related to n-1 TCBs from 4 to 5 are Ready state tasks, and can obtain CPU execution rights in the order of links.

5に於けるポインタ値@0”は次にリンクされるTCB
が無いことを示している。以下先す、タスクの状態遷移
時のO8の制御方式を説明する。
The pointer value @0” at 5 is the next linked TCB
It shows that there is no The control method of O8 at the time of task state transition will be explained below.

3に関連するタスクの実行が終了すると08nP1の内
容ヲP3すなわち4へのポインタにつけかえ、4のタス
クに実行権を与える。またWaitからReady  
にあるタスクが変化した場合にUPzに工りReady
状態にあり最後にリンクされているタスクのTCBi探
しその後に新しいTCBIリンクすると同時にポインタ
値1&:0工り新タスクのTCBへのアドレスに、新タ
スクのポインタ領域を@0”にする。ここで新たにRe
adyになるタスクが無くリンクがどんどん辿られ5の
タスクがRunになり、この実行が終了したとする。0
8[次にリンクすべきタスクのTCBがないのでPlを
″0mにする。すなわちキューには何もつながっておら
ず実行すべきタスクがない。逆に言えばPlが10#に
なれば実行すべきタスクが無いことが検出されたことに
なる。この時点でO8はスタンバイモードへの移行を指
示すれは工い。第4図はこの手順を示したフローチャー
トである。
When the execution of the task related to 3 is completed, the contents of 08nP1 are replaced with a pointer to P3, that is, 4, and the execution right is given to task 4. Also, from Wait to Ready
Ready
Search for the TCBi of the last linked task in the current state, then link the new TCBI, and at the same time create a pointer value of 1&:0 and set the new task's pointer area to @0'' at the address of the new task's TCB.Here, New Re
Assume that there is no task that becomes ady, the links are followed one after another, task 5 becomes Run, and this execution ends. 0
8 [Since there is no TCB for the next task to be linked, set Pl to ``0m. In other words, nothing is connected to the queue and there is no task to be executed. Conversely, if Pl becomes 10#, it will be executed. This means that it has been detected that there is no task to be performed.At this point, O8 has no choice but to instruct transition to standby mode.FIG. 4 is a flowchart showing this procedure.

纂5図は本発明の実施例を表わすブロック図である。1
はプログラムメモリ、2μプログラムカウンタ(PC)
31d命令デコーダ、4は周辺回路、5げクロック発生
器、6にデータメモリ、7に判定回路である。8はAN
Dゲート、21にインバータ付ラッチ、9〜20お工び
20にり号線を表わし二重斜線のある信号線は一般に複
数要素からなる信号線を表現している。オペレーティン
グシステムその他のプログラム[1に格納されており2
に工り逐次その命令アドレスkl 7’!+−介しその
出力が16金介し3へ入力されている。3では各々の命
令に必要な信号線ヲ活性化しコンピュータシステムとし
ての動作を行っている。ここでは既に6KIE3図相当
のTCBやキューヘッドが他の一般的な命令に1って作
成されているものとする。
FIG. 5 is a block diagram showing an embodiment of the present invention. 1
is program memory, 2μ program counter (PC)
31d is an instruction decoder, 4 is a peripheral circuit, 5 is a clock generator, 6 is a data memory, and 7 is a determination circuit. 8 is AN
A D gate, a latch with an inverter at 21, a line from 9 to 20 and a line at 20, and a signal line with double diagonal lines generally represent a signal line consisting of a plurality of elements. Operating system and other programs [stored in 1 and 2
The instruction address kl 7'! The output is input to the 16-karat gold via 3. 3 activates the signal lines necessary for each command and operates as a computer system. Here, it is assumed that a TCB and a queue head equivalent to the 6KIE3 diagram have already been created in addition to other general instructions.

キューヘッドのポインタ値がOであるかどうかを判断す
る命令がlニジ出されるとアドレス線10が活性化され
6中のキューヘッドが格納されているメモリのアドレス
を指定するキューヘラトノ値にデータ線12を介し、7
へ入力される。この命令では同時に11が活性化され7
を動作させる。77H12より入力されたデータがOで
あると13を活性化し2の内容を修飾し、命令アドレス
をスタンバイモード設定命令へ移す。該命令が読み出さ
れると9が活性化される。−万、5はシステムの動作を
保つために常にフロックtr=々な部分へ18に介し供
給している。4お工び2にハ14゜8.15’(l−介
しクロックが供給されている。8にANDゲートである
ため20が不活性状態でハ15〜14の信号を伝えるこ
とはできない。しかし、スタンバイモード命令が出され
ない限り、9が不活性であるため21の出力である20
に常に活性化されており従って4へはクロックが入力畑
れている。ここで9が活性化きれるのであるから、21
の出力20に不活性となり、15の信号線は不活性とな
りクロックの供給ヶ受けない4に動作を停止する。すな
わちスタンバイモードとなる。21はラッチであるので
このラッチ状態が解除されるまでスタンバイモードが続
き、かつ2の内容は変化しない。
When a command to determine whether the cue head pointer value is O is issued, the address line 10 is activated and the data line 12 is set to the cue head pointer value specifying the address of the memory where the cue head in 6 is stored. via 7
is input to. This command activates 11 at the same time and 7
make it work. If the data input from 77H12 is O, 13 is activated, the contents of 2 are modified, and the instruction address is moved to the standby mode setting instruction. When the instruction is read, 9 is activated. -10,000,5 is constantly supplied to various parts of the flock tr via 18 in order to maintain the operation of the system. A clock is supplied to 4 and 2 through 14°8.15' (l-. Since 8 is an AND gate, 20 is inactive and cannot transmit the signals of 15 to 14.However, , 20 which is the output of 21 since 9 is inactive unless a standby mode command is issued.
It is always activated and therefore the clock is input to 4. Since 9 can be activated here, 21
The output 20 becomes inactive, the signal line 15 becomes inactive, and the operation stops at 4, when no clock is supplied. In other words, it becomes standby mode. Since 21 is a latch, the standby mode continues until the latch state is released, and the contents of 2 do not change.

ここで221−介し外部より割込みが入ると21のラッ
チ状態が解除され同時に2の値に割込み毎に設定される
特定の命令アドレスとなり、一般には割込処理が実行さ
れる。
Here, when an interrupt is input from the outside via 221-, the latch state of 21 is released, and at the same time, the value of 2 becomes a specific instruction address that is set for each interrupt, and generally the interrupt process is executed.

〔発明の効果〕〔Effect of the invention〕

上述のように本発明によれは従来そのメリットを十分活
かして切れていなかったスタンバイモードをオペレーテ
ィングシステムの介在の下で若干の手段を導入すること
にエリ効果的に使用することができる。
As described above, according to the present invention, it is possible to effectively utilize the standby mode, which has conventionally been unable to take full advantage of its advantages, by introducing some means under the intervention of the operating system.

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

第1[IHスタンバイモードとオペレーションモードの
概念図、第2図はタスクの状態遷移図、第3図[TCB
とキューヘッドのメモリ上の表現を示す図、第4図に本
発明の実施手順を表わすフローチャート、第5図は実施
例のブロック図である。
Figure 1 is a conceptual diagram of IH standby mode and operation mode, Figure 2 is a task state transition diagram, Figure 3 is [TCB
FIG. 4 is a flowchart showing the implementation procedure of the present invention, and FIG. 5 is a block diagram of the embodiment.

Claims (1)

【特許請求の範囲】[Claims] 複数のタスクを並行動作させるマルチタスク処理を行う
オペレーティング・システムの制御下にあるコンピュー
タシステムに於て、実行すべきタスクの有無を検出する
第一の手段とシステムを低消費電力状態に設定する第二
の手段を備え第一の手段により実行すべきタスクが無い
ことが検出された場合第二の手段によりコンピュータシ
ステムを低消費電力状態に設定することを特徴とする低
消費電力状態への移行方式。
In a computer system under the control of an operating system that performs multitasking processing in which multiple tasks are executed in parallel, there is a first means for detecting the presence or absence of a task to be executed, and a second means for setting the system to a low power consumption state. A method for transitioning to a low power consumption state, characterized in that the computer system is set to a low power consumption state by the second means when it is detected by the first means that there is no task to be executed. .
JP60295114A 1985-12-24 1985-12-24 Transition system to low power consumption state Pending JPS62150416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60295114A JPS62150416A (en) 1985-12-24 1985-12-24 Transition system to low power consumption state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60295114A JPS62150416A (en) 1985-12-24 1985-12-24 Transition system to low power consumption state

Publications (1)

Publication Number Publication Date
JPS62150416A true JPS62150416A (en) 1987-07-04

Family

ID=17816472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60295114A Pending JPS62150416A (en) 1985-12-24 1985-12-24 Transition system to low power consumption state

Country Status (1)

Country Link
JP (1) JPS62150416A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0530508U (en) * 1991-09-27 1993-04-23 株式会社日阪製作所 2-stage open / close cylinder
WO2001067243A1 (en) * 2000-03-08 2001-09-13 Mitsubishi Denki Kabushiki Kaisha Method for processor power-saving, recorded medium, and processor power-saving controller
WO2002025439A1 (en) * 2000-09-22 2002-03-28 Sony Corporation Arithmetic processing system and arithmetic processing control method, task managemnt system and task management method, and storage medium
JP2008102830A (en) * 2006-10-20 2008-05-01 Denso Corp Microcomputer, program and electronic control device for vehicle
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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS583009A (en) * 1981-06-30 1983-01-08 Nec Corp Electric power supply controller of data processor
JPS5960524A (en) * 1982-09-29 1984-04-06 Toshiba Corp Automatic power source cutoff device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS583009A (en) * 1981-06-30 1983-01-08 Nec Corp Electric power supply controller of data processor
JPS5960524A (en) * 1982-09-29 1984-04-06 Toshiba Corp Automatic power source cutoff device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0530508U (en) * 1991-09-27 1993-04-23 株式会社日阪製作所 2-stage open / close cylinder
WO2001067243A1 (en) * 2000-03-08 2001-09-13 Mitsubishi Denki Kabushiki Kaisha Method for processor power-saving, recorded medium, and processor power-saving controller
US7120911B1 (en) 2000-03-08 2006-10-10 Mitsubishi Denki Kabushiki Kaisha Processor power-saving control method, storage medium, and processor power-saving control device
WO2002025439A1 (en) * 2000-09-22 2002-03-28 Sony Corporation Arithmetic processing system and arithmetic processing control method, task managemnt system and task management method, and storage medium
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
JP2008102830A (en) * 2006-10-20 2008-05-01 Denso Corp Microcomputer, program and electronic control device for vehicle

Similar Documents

Publication Publication Date Title
US6240521B1 (en) Sleep mode transition between processors sharing an instruction set and an address space
US5226164A (en) Millicode register management and pipeline reset
US5280593A (en) Computer system permitting switching between architected and interpretation instructions in a pipeline by enabling pipeline drain
US4020471A (en) Interrupt scan and processing system for a data processing system
US20090210070A1 (en) Industrial controller using shared memory multicore architecture
JPS6252655A (en) Common interrupt system
JPS6258341A (en) Input and output interruption processing system
JPH0430053B2 (en)
US4851992A (en) Register/saving/restoring system for saving and restoring data in a register of a slave processor
US4953078A (en) Apparatus and method for multi-threaded program execution in a microcoded data processing system
US5003468A (en) Guest machine execution control system for virutal machine system
JPS62150416A (en) Transition system to low power consumption state
JPH0192843A (en) Data processing apparatus and method
EP0510429A2 (en) Millicode register management system
JP2010140319A (en) Semiconductor device
JPH09274567A (en) Execution control method for program and processor for the same
KR102643032B1 (en) Power control system, and system-on chip device including the same
KR102643031B1 (en) Programmable sequencer, and system-on chip device using the same
JPS62221736A (en) Virtual computer system
JPH0283749A (en) Internal interruption control system for microprocessor
JP2005346708A (en) Data processor and its polling loop management method
JPH06324861A (en) System and method for controlling cpu
KR950004227B1 (en) Information processing system
JPS60193046A (en) Detecting system for instruction exception
JP2761324B2 (en) High-speed processing method