JPH0548034U - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPH0548034U
JPH0548034U JP9898991U JP9898991U JPH0548034U JP H0548034 U JPH0548034 U JP H0548034U JP 9898991 U JP9898991 U JP 9898991U JP 9898991 U JP9898991 U JP 9898991U JP H0548034 U JPH0548034 U JP H0548034U
Authority
JP
Japan
Prior art keywords
address
jump
address register
register
standby
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
JP9898991U
Other languages
Japanese (ja)
Inventor
亨二 尾形
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 JP9898991U priority Critical patent/JPH0548034U/en
Publication of JPH0548034U publication Critical patent/JPH0548034U/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【目的】 マイクロコンピュータのループ命令による長
時間動作を自ら監視し、他のICにスタンバイ要求を発
行することにより、システムの低消費電力化を図る。 【構成】 ジャンプ命令検出回路3、スタンバイ要求条
件設定回路6、ジャンプアドレス発生レジスタ7、ジャ
ンプ先アドレスレジスタ8、予測アドレスレジスタ1
3、アドレス比較器14を備え、スタンバイ要求信号9
及びスタンバイ解除信号15を出力する。
(57) [Abstract] [Purpose] To reduce the power consumption of a system by monitoring long-time operation by a loop instruction of a microcomputer and issuing a standby request to another IC. [Structure] Jump instruction detection circuit 3, standby request condition setting circuit 6, jump address generation register 7, jump destination address register 8, predicted address register 1
3, the address comparator 14 is provided, and the standby request signal 9
And the standby release signal 15 is output.

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial applications]

本考案はマイクロコンピュータに関し、特にスタンバイ制御機能を備えたマイ クロコンピュータに関する。 The present invention relates to a microcomputer, and more particularly to a microcomputer equipped with a standby control function.

【0002】[0002]

【従来の技術】[Prior Art]

従来のマイクロコンピュータでは、スタンバイ機能を有する他のIC(集積回 路)に対してスタンバイ要求出力をする際は、図3に示すように、マイクロコン ピュータ22からスタンバイ制御用のIC25に対して、特定のコマンドを発行 したり、また、出力ポートを備えたマイクロコンピュータにおいては、所定プロ グラムの実行により、ポート端子からスタンバイ要求信号を出力している。 In the conventional microcomputer, when a standby request output is made to another IC (integrated circuit) having a standby function, as shown in FIG. A specific command is issued, and in a microcomputer equipped with an output port, a standby request signal is output from the port terminal by executing a predetermined program.

【0003】 図3に示す従来技術においては、マイクロコンピュータ22からスタンバイ制 御用IC25に対し、アドレスバス23とデータバス24を通して設定を行い、 スタンバイ制御用IC25がスタンバイ要求信号18,19を使用して、IC2 0,21へのスタンバイ要求を行う。In the prior art shown in FIG. 3, the microcomputer 22 sets the standby control IC 25 through the address bus 23 and the data bus 24, and the standby control IC 25 uses the standby request signals 18 and 19. , IC20, 21 make a standby request.

【0004】[0004]

【考案が解決しようとする課題】[Problems to be solved by the device]

しかしながら、この従来のスタンバイ制御方式では、マイクロコンピュータ2 2のループ状態による長時間動作の管理は、ソフトウエアにより行う必要がある ため、外部IC20,21に対するスタンバイ要求の有無は、マイクロコンピュ ータ上で実行されるプログラムの内容に依存している。このため、システム全体 の消費電力が高いという難点がある。 However, in this conventional standby control method, since the management of the long-term operation of the microcomputer 22 in the loop state needs to be performed by software, the presence / absence of a standby request to the external ICs 20 and 21 is determined by the microcomputer. Depends on the contents of the program that is executed in. Therefore, there is a drawback that the power consumption of the entire system is high.

【0005】 本考案はかかる問題点に鑑みてなされたものであって、マイクロコンピュータ のループ命令による長時間動作を自ら監視することができ、システムの低消費電 力化を図ることができるマイクロコンピュータを提供することを目的とする。The present invention has been made in view of the above problems, and it is possible to monitor long-time operation by a loop instruction of a microcomputer by itself and reduce power consumption of the system. The purpose is to provide.

【0006】[0006]

【課題を解決するための手段】[Means for Solving the Problems]

本考案に係るマイクロコンピュータは、現在実行中のアドレスを格納するプリ フェッチ用アドレスレジスタと、ブランチ及びループを含むジャンプ命令を検出 する検出回路と、この検出回路からの信号により前記ジャンプ命令が発生したア ドレスを格納するジャンプ発生アドレスレジスタと、ジャンプ先のアドレスを格 納するジャンプ先アドレスレジスタと、第1出力端子と、この第1出力端子から 外部にスタンバイ要求信号を出力する条件を設定するレジスタを含み前記ジャン プ発生アドレスと前記ジャンプ先アドレスとの比較により条件に一致するか否か を判断する条件設定回路と、前記ジャンプ先アドレスを逐次加算する加算回路と 、この加算回路により予測した予測アドレスを格納する予測アドレスレジスタと 、第2出力端子と、前記予測アドレスと前記プリフェッチ用アドレスレジスタの 値とを比較しアドレスの不一致を検出してスタンバイ要求を解除する信号を前記 第2出力端子から外部に出力する比較器とを有することを特徴とする。 The microcomputer according to the present invention includes a prefetch address register for storing an address currently being executed, a detection circuit for detecting a jump instruction including a branch and a loop, and the jump instruction generated by a signal from the detection circuit. Address of jump occurrence to store address, address register of jump destination to store address of jump destination, first output terminal, and register to set condition to output standby request signal from this first output terminal to outside A condition setting circuit for determining whether or not a condition is met by comparing the jump generation address with the jump destination address, an adder circuit for sequentially adding the jump destination address, and a prediction predicted by the adder circuit Predictive address register for storing address, and second output terminal A comparator for comparing the predicted address with the value of the prefetch address register to detect an address mismatch and release a standby request from the second output terminal to the outside. ..

【0007】[0007]

【作用】[Action]

本発明においては、ジャンプ命令検出回路によりジャンプ命令が検出されると 、ジャンプ命令が発生したアドレスがジャンプ発生アドレスレジスタに格納され 、ジャンプ先のアドレスがジャンプ先アドレスレジスタに格納される。そして、 条件設定回路にて、ジャンプ発生アドレスとジャンプ先アドレスとを比較し、予 め設定されている条件に一致した場合に、第1出力端子を介してスタンバイ要求 信号を出力する。このように、ループ命令の監視回路が内蔵されているので、マ イクロコンピュータがループ状態の場合には外部ICをスタンバイ状態にするこ とができる。 In the present invention, when a jump instruction is detected by the jump instruction detection circuit, the address at which the jump instruction is generated is stored in the jump generation address register, and the jump destination address is stored in the jump destination address register. Then, the condition setting circuit compares the jump occurrence address with the jump destination address, and outputs a standby request signal via the first output terminal when the preset condition is met. Since the loop instruction monitoring circuit is built-in in this way, the external IC can be placed in the standby state when the microcomputer is in the loop state.

【0008】[0008]

【実施例】【Example】

次に、本考案の実施例について添付の図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the accompanying drawings.

【0009】 図1は本考案の実施例に係るマイクロコンピュータ16を示すブロック図であ る。内部バス1を介して命令デコーダ2に格納された命令コードは、ジャンプ命 令検出回路3に入力され、このジャンプ命令検出回路3により、ジャンプ系命令 が検出される。これにより、検出回路3から検出信号4が出力され、この検出信 号4によりアドレス・バッファ10を制御することにより、アドレス・レジスタ 5の値をジャンプ発生アドレス・レジスタ7に格納する。また、検出信号4は外 部にスタンバイ要求を出力するか否かを判断する条件設定回路6にも入力され、 この検出信号4により条件設定回路6を有効にする。FIG. 1 is a block diagram showing a microcomputer 16 according to an embodiment of the present invention. The instruction code stored in the instruction decoder 2 via the internal bus 1 is input to the jump instruction detection circuit 3, and the jump instruction detection circuit 3 detects a jump-related instruction. As a result, the detection signal 4 is output from the detection circuit 3, and the address buffer 10 is controlled by this detection signal 4 to store the value of the address register 5 in the jump occurrence address register 7. The detection signal 4 is also input to a condition setting circuit 6 which determines whether or not to output a standby request to the outside, and the detection signal 4 enables the condition setting circuit 6.

【0010】 条件設定回路6には、内部バス1を介して、予めスタンバイ要求信号9を出力 するための条件が設定されている。そして、ジャンプ発生アドレス・レジスタ7 の値と、このアドレス・レジスタ7と同様にアドレス・レジスタ5からアドレス ・バッファ10を介してジャンプ先アドレスが読み込まれたジャンプ先アドレス ・レジスタ8の値を、条件設定回路6に入力することにより、この条件設定回路 6において、予め設定されていた条件と比較してスタンバイ要求信号9が出力さ れる。In the condition setting circuit 6, conditions for outputting the standby request signal 9 are set in advance via the internal bus 1. Then, the condition of the value of the jump occurrence address register 7 and the value of the jump destination address register 8 from which the jump destination address is read from the address register 5 via the address buffer 10 like the address register 7 By inputting to the setting circuit 6, the condition setting circuit 6 outputs the standby request signal 9 in comparison with the preset condition.

【0011】 アドレス比較回路11は、アドレス加算回路12を内蔵し、ジャンプ先アドレ ス・レジスタ8の値をインクリメントすることにより、現在実行中と予測される アドレスを予測アドレス・レジスタ13に格納する。その際、予測アドレス・レ ジスタ13の値がジャンプ発生アドレス・レジスタ7の値に一致した場合は次に 予測アドレス・レジスタ13にはジャンプ先アドレス・レジスタ8の値が格納さ れ、再びインクリメントを繰り返す。予測アドレス・レジスタ13の値は、常に 比較器14によってアドレス・レジスタ5の値と比較され、ループ終了等により アドレス・レジスタ5の値が予測アドレス・レジスタ13の値と一致しなかった 場合、外部ICに対してスンタバイ状態を解除するためのスタンバイ解除信号1 5を出力する。The address comparison circuit 11 has a built-in address adder circuit 12 and increments the value of the jump destination address register 8 to store the address currently predicted to be executed in the predicted address register 13. At that time, if the value of the predicted address register 13 matches the value of the jump occurrence address register 7, the value of the jump destination address register 8 is stored in the predicted address register 13 next, and the increment is performed again. repeat. The value of the predicted address register 13 is always compared with the value of the address register 5 by the comparator 14, and if the value of the address register 5 does not match the value of the predicted address register 13 due to the end of a loop, etc. It outputs a standby release signal 15 for releasing the standby mode to the IC.

【0012】 図2は、本考案のマイクロコンピュータ16を使用したシステムの模式図であ る。スタンバイ要求信号9及びスタンバイ解除信号15はスタンバイ制御回路1 7に入力され、外部IC20,21に対するHALT等のスタンバイ要求信号1 8,19として出力される。FIG. 2 is a schematic diagram of a system using the microcomputer 16 of the present invention. The standby request signal 9 and the standby release signal 15 are input to the standby control circuit 17 and output as standby request signals 18 and 19 such as HALT to the external ICs 20 and 21.

【0013】[0013]

【考案の効果】[Effect of the device]

以上説明したように本考案は、マイクロコンピュータの内部にループ命令の監 視回路を内蔵することにより、このマイクロコンピュータがループ状態の時は外 部ICをスタンバイ状態にすることが可能であるので、システム全体の消費電力 を低減することができる。 As described above, according to the present invention, by incorporating the loop instruction monitoring circuit inside the microcomputer, it is possible to put the external IC in the standby state when the microcomputer is in the loop state. The power consumption of the entire system can be reduced.

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

【図1】本考案の実施例に係るマイクロコンピュータを
示すブロック図である。
FIG. 1 is a block diagram showing a microcomputer according to an embodiment of the present invention.

【図2】図1に示すマイクロコンピュータを使用したシ
ステムの構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a system using the microcomputer shown in FIG.

【図3】従来のスタンバイ方式によるシステムの構成を
示すブロック図である。
FIG. 3 is a block diagram showing a configuration of a conventional standby system.

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

1;内部バス 2;命令デコーダ 3;ジャンプ命令検出回路 4;アドレスバッファ制御信号 5;アドレス・レジスタ 6;スタンバイ要求条件設定回路 7;ジャンプ発生アドレス・レジスタ 8;ジャンプ先アドレス・レジスタ 9;スタンバイ要求出力信号 10;アドレス・バッファ 11;アドレス比較回路 12;アドレス加算回路 13;予測アドレス・レジスタ 14;アドレス比較器 15;スタンバイ解除要求出力信号 16;マイクロコンピュータ 17;スタンバイ制御回路 18,19;スタンバイ要求信号 20,21;外部IC 22;従来のマイクロコンピュータ 23;アドレス・バス 24;データ・バス 25;スタンバイ制御用IC 1; internal bus 2; instruction decoder 3; jump instruction detection circuit 4; address buffer control signal 5; address register 6; standby request condition setting circuit 7; jump generation address register 8; jump destination address register 9; standby request Output signal 10; Address buffer 11; Address comparison circuit 12; Address addition circuit 13; Predicted address register 14; Address comparator 15; Standby release request output signal 16; Microcomputer 17; Standby control circuit 18, 19; Standby request Signals 20 and 21; External IC 22; Conventional microcomputer 23; Address bus 24; Data bus 25; Standby control IC

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 現在実行中のアドレスを格納するプリフ
ェッチ用アドレスレジスタと、ブランチ及びループを含
むジャンプ命令を検出する検出回路と、この検出回路か
らの信号により前記ジャンプ命令が発生したアドレスを
格納するジャンプ発生アドレスレジスタと、ジャンプ先
のアドレスを格納するジャンプ先アドレスレジスタと、
第1出力端子と、この第1出力端子から外部にスタンバ
イ要求信号を出力する条件を設定するレジスタを含み前
記ジャンプ発生アドレスと前記ジャンプ先アドレスとの
比較により条件に一致するか否かを判断する条件設定回
路と、前記ジャンプ先アドレスを逐次加算する加算回路
と、この加算回路により予測した予測アドレスを格納す
る予測アドレスレジスタと、第2出力端子と、前記予測
アドレスと前記プリフェッチ用アドレスレジスタの値と
を比較しアドレスの不一致を検出してスタンバイ要求を
解除する信号を前記第2出力端子から外部に出力する比
較器とを有することを特徴とするマイクロコンピュー
タ。
1. A prefetch address register for storing an address currently being executed, a detection circuit for detecting a jump instruction including a branch and a loop, and an address at which the jump instruction is generated by a signal from the detection circuit. A jump occurrence address register, a jump destination address register that stores the jump destination address,
A first output terminal and a register for setting a condition for outputting a standby request signal to the outside from the first output terminal are included, and it is determined by comparing the jump generation address and the jump destination address whether or not the condition is met. A condition setting circuit, an adder circuit for sequentially adding the jump destination addresses, a predictive address register for storing a predictive address predicted by the adder circuit, a second output terminal, a value of the predictive address and the prefetch address register. And a comparator that outputs a signal for canceling the standby request to detect an address mismatch and output the signal from the second output terminal to the outside.
JP9898991U 1991-11-29 1991-11-29 Microcomputer Pending JPH0548034U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9898991U JPH0548034U (en) 1991-11-29 1991-11-29 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9898991U JPH0548034U (en) 1991-11-29 1991-11-29 Microcomputer

Publications (1)

Publication Number Publication Date
JPH0548034U true JPH0548034U (en) 1993-06-25

Family

ID=14234409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9898991U Pending JPH0548034U (en) 1991-11-29 1991-11-29 Microcomputer

Country Status (1)

Country Link
JP (1) JPH0548034U (en)

Similar Documents

Publication Publication Date Title
US6125440A (en) Storing executing instruction sequence for re-execution upon backward branch to reduce power consuming memory fetch
JPH0548034U (en) Microcomputer
JP2762829B2 (en) Electronic computer
KR101570031B1 (en) Arrangement for checking a program memory in a computation unit
JP2839545B2 (en) Data access method
JP2888654B2 (en) Data input control method
JPH04311225A (en) System for executing microprocessor instruction
JPH0773034A (en) Information processor
JPS63165931A (en) Storing system for information on discontinuous instruction fetch address
JPS6041779B2 (en) I/O program controller
JP2001005689A (en) Trace sampling circuit
JP2665173B2 (en) Processor trap circuit
JPH0795288B2 (en) Microcomputer
JPH08249177A (en) Digital controller
JPH06202907A (en) Debug support device
KR0171173B1 (en) One-chip microcomputer
JP3414579B2 (en) Programmable controller
JP3590289B2 (en) Event detection circuit
JPH0335323A (en) Control system for execution of instruction
JPH02156351A (en) Cache memory device
JPH02284223A (en) Non-normalized data processing device
JP2000347931A (en) Cache memory and method for controlling cache memory
JPH0715662B2 (en) Information processing device for prefetching instructions
JPH0358217A (en) Electronic disk subsystem
JPH10187531A (en) Prefetch system for cache memory