JPH0468447A - Stop circuit for microprocessor - Google Patents

Stop circuit for microprocessor

Info

Publication number
JPH0468447A
JPH0468447A JP2180963A JP18096390A JPH0468447A JP H0468447 A JPH0468447 A JP H0468447A JP 2180963 A JP2180963 A JP 2180963A JP 18096390 A JP18096390 A JP 18096390A JP H0468447 A JPH0468447 A JP H0468447A
Authority
JP
Japan
Prior art keywords
microprocessor
stage
flip
address
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
JP2180963A
Other languages
Japanese (ja)
Inventor
Nobuyuki Takai
高井 伸幸
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2180963A priority Critical patent/JPH0468447A/en
Publication of JPH0468447A publication Critical patent/JPH0468447A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To investigate the cause of malfunction and to improve efficiency for program debugging by stopping a microprocessor when plural specified addresses are executed in a prescribed order. CONSTITUTION:When the execution address of the microprocessor is coincident with the comparison addresses of registers 111-11n from the first step to an (n)-th step, flip-flops 161-16n are set in the order from the first step to the (n)-th step and a stop control signal is outputted from the flip-flop 16n in the final (n)-th step. Therefore, when the plural specified steps of a program are executed in the prescribed order, the microprocessor can be stopped. Thus, the cause of malfunction can be investigated and efficiency for program debugging can be improved.

Description

【発明の詳細な説明】 〔概要〕 特定のアドレスを実行したときマイクロプロセッサを停
止させるマイクロプロセッサの停止回路に関し、 特定の複数アドレスを所定順序で実行したときマイクロ
プロセッサを停止させ、誤動作の原因究明及びプログラ
ムデバッグの効率を向上させることを目的とし、 比較アドレスを夫々に格納するn(nは2以上の整数)
段のレジスタと、該n段のレジスタ夫々に対応して設け
られ、マイクロプロセッサの出力する実行アドレスか該
n段のレジスタ夫々の比較アドレスと一致したとき一致
信号を出力するn段の比較器と、該n段の比較器に対応
して設けられ、一致信号の供給によりセットされるn段
のフリップフロップと、1段からn−1段のフリップフ
ロップ夫々がセットされたとき2段からn段の比較器夫
々の一致信号を2段からn段のフリップフロップ夫々に
供給するゲート回路とを有し、n段のフリップフロップ
のセットにより該マイクロプロセッサを停止させる制御
信号を得るよう構成する。
[Detailed Description of the Invention] [Summary] Regarding a microprocessor stop circuit that stops a microprocessor when a specific address is executed, this invention stops the microprocessor when a plurality of specific addresses are executed in a predetermined order, and investigates the cause of malfunction. and n (n is an integer of 2 or more) that stores comparison addresses for the purpose of improving the efficiency of program debugging.
an n-stage comparator that is provided corresponding to each of the n-stage registers and outputs a match signal when an execution address output by the microprocessor matches a comparison address of each of the n-stage registers; , n-stage flip-flops are provided corresponding to the n-stage comparators and are set by supplying a coincidence signal, and when each of the 1st stage to n-1 stage flip-flops is set, the 2nd stage to n stage flip-flops are set. The microprocessor is configured to provide a control signal for stopping the microprocessor by a set of the n-stage flip-flops.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロプロセッサの停止回路に関し、特定の
アドレスを実行したときマイクロプロセッサを停止させ
るマイクロプロセッサの停止回路に関する。
The present invention relates to a microprocessor stop circuit, and more particularly, to a microprocessor stop circuit that stops the microprocessor when a specific address is executed.

〔従来の技術〕[Conventional technology]

従来より、特願昭54−169046号に記載の如く、
マイクロプロセッサのアドレスバスを監視して、予めパ
ラメータとしてレジスタにセットされているアドレスと
上記アドレスバス上のアドレスか一致したときマイクロ
プロセッサを強制的に停止させ、このときのマイクロプ
ロセッサのレジスタ内容又はメモリ内容を解析してプロ
グラムデバッグ等に利用している。
Conventionally, as described in Japanese Patent Application No. 54-169046,
The address bus of the microprocessor is monitored, and when the address set in the register as a parameter in advance matches the address on the address bus, the microprocessor is forcibly stopped, and the register contents or memory of the microprocessor at this time are The contents are analyzed and used for program debugging, etc.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の停止回路はマイクロプロセッサか単一の特定アド
レスてマイクロプロセッサを停止させている。例えば第
3図に示す如き処理てパラメータとしてステップS7の
アドレスをレジスタにセットした場合は、ステップSl
、S2.S3.S7の第1のルート、ステップ31.S
2.S4゜S5.S7の第2のルート、ステップSl、
S2゜S4.S5.S6.S7の第3のルートのいずれ
の場合にもステップS7か実行されるとマイクロプロセ
ッサか停止してしまい、上記第1〜第3のルートのうち
いずれか特定のルートで処理か実行されたときにのみマ
イクロプロセッサを停止させることかできず、マイクロ
プロセッサの誤動作の原因究明を効率的に行なうことか
できず、プログラムデバッグの作業効率か悪いという問
題かあった。
Conventional halt circuits halt the microprocessor at a single specific address. For example, if the address of step S7 is set in the register as a parameter in the process shown in FIG.
, S2. S3. First route of S7, step 31. S
2. S4゜S5. The second route of S7, step Sl,
S2゜S4. S5. S6. In any case of the third route of S7, if step S7 is executed, the microprocessor will stop, and when the process is executed by any specific route among the first to third routes, However, it was not possible to stop the microprocessor, and it was not possible to efficiently investigate the cause of malfunctions in the microprocessor, resulting in poor program debugging efficiency.

本発明は上記の点に鑑みなされたもので、特定の複数ア
ドレスを所定順序で実行したときマイクロプロセッサを
停止させ、誤動作の原因究明及びプログラムデバッグの
効率を向上させるマイクロプロセッサの停止回路を提供
することを目的とする。
The present invention has been made in view of the above points, and provides a microprocessor stop circuit that stops the microprocessor when a plurality of specific addresses are executed in a predetermined order, thereby improving the efficiency of investigating the causes of malfunctions and debugging programs. The purpose is to

〔課題を解決するための手段〕[Means to solve the problem]

本発明のマイクロプロセラの停止回路は、比較アドレス
を夫々に格納するn(nは2以上の整数)段のレジスタ
と、 n段のレジスタ夫々に対応して設けられ、マイクロプロ
セッサの出力する実行アドレスかn段のレジスタ夫々の
比較アドレスと一致したとき一致信号を出力するn段の
比較器と、 n段の比較器に対応して設けられ、一致信号の供給によ
りセットされるn段のフリップフロップと、 1段からn−1段のフリップフロップ夫々かセットされ
たとき2段からn段の比較器夫々の一致信号を2段から
n段のフリップフロップ夫々に供給するゲート回路とを
有し、 n段のフリップフロップのセットによりマイクロプロセ
ッサを停止させる制御信号を得る。
The stop circuit of the microprocessor of the present invention is provided corresponding to n stages of registers (n is an integer of 2 or more) each storing a comparison address, and an execution address output from the microprocessor. An n-stage comparator that outputs a match signal when it matches the comparison address of each of the n-stage registers, and an n-stage flip-flop that is provided corresponding to the n-stage comparator and is set by supplying the match signal. and a gate circuit that supplies a match signal from each of the second to n stages of comparators to each of the second to n stages of flip-flops when each of the first to n-1 stages of flip-flops is set, A control signal for stopping the microprocessor is obtained by a set of n-stage flip-flops.

〔作用〕[Effect]

本発明においては、マイクロプロセッサの実行アドレス
が1段からn段のレジスタの比較アドレスと一致したと
き1段からn段の順にフリップフロップがセットされ最
後のn段のフリップフロップから停止制御信号が出力さ
れる。このためプログラムの特定の複数ステップを所定
順序で実行したときマイクロプロセッサを停止てき、こ
れによって誤動作の原因究明及びプログラムデバッグの
効率か向上する。
In the present invention, when the execution address of the microprocessor matches the comparison address of the registers from the 1st stage to the nth stage, the flip-flops are set in the order of the 1st stage to the nth stage, and a stop control signal is output from the last n stage flip-flop. be done. Therefore, the microprocessor is stopped when a plurality of specific steps of the program are executed in a predetermined order, thereby improving the efficiency of investigating the cause of malfunction and debugging the program.

〔実施例〕〔Example〕

第1図は本発明回路の一実施例のブロック図を示す。 FIG. 1 shows a block diagram of an embodiment of the circuit of the present invention.

同図中、10はマイクロプロセッサのデータバスであり
、このデータバス10を通してレジスタ1ト〜11.夫
々に比較アドレスか順次供給される。レジスタ11.〜
11.夫々は端子121〜12゜夫々にセット指示信号
が入来したときデータバス10よりの比較アドレスを格
納し、格納した各比較アドレスを比較14+〜14.夫
々に供給する。
In the figure, 10 is a data bus of the microprocessor, and registers 1 to 11 . Comparison addresses are sequentially supplied to each of them. Register 11. ~
11. Each of the terminals 121 to 12° stores a comparison address from the data bus 10 when a set instruction signal is received, and compares each of the stored comparison addresses 14+ to 14. supply to each.

比較器14.〜I4ゎ夫々にはマイクロプロセッサのア
ドレスバス15より実行アドレスが供給されており、比
較器14、〜14.夫々は実行アドレスかレジスタ11
1〜I1.、夫々よりの比較アドレスと一致したときH
レベルの一致信号を生成する。
Comparator 14. An execution address is supplied from the address bus 15 of the microprocessor to each of the comparators 14, -14. Each is an execution address or register 11
1-I1. , H when it matches the comparison address from each
Generate level matching signals.

上記比較器14□〜14ゎ夫々に対応してJKフ リッ
プフロップ16+〜16.、か設けられており、これら
のに入力端子には端子17よりのリセット信号か供給さ
れてリセットされている。比較器14.の出力する一致
信号はフリップフロップ16.のJ入力端子に供給され
てこのフリップフロップ16.をセットし、フリップフ
ロップ16+のQ端子出力はHレベルとなる。このQ端
子出力はアンド回路181に供給され、アンド回路18
.はフリップフロップ161の出力かHレベルとなった
後に比較器142よりHレベルの一致信号を供給される
と、この一致信号をフリップフロップ162のJ端子に
供給してセットする。
JK flip-flops 16+ to 16. correspond to the comparators 14□ to 14ゎ, respectively. , are provided, and the input terminals of these are supplied with a reset signal from the terminal 17 to be reset. Comparator 14. The coincidence signal output from flip-flop 16. J input terminal of this flip-flop 16. is set, and the Q terminal output of flip-flop 16+ becomes H level. This Q terminal output is supplied to the AND circuit 181, and the AND circuit 18
.. When supplied with an H-level match signal from the comparator 142 after the output of the flip-flop 161 becomes H level, this match signal is supplied to the J terminal of the flip-flop 162 and set.

以降同様にしてフリップフロップのQ端子出力かアンド
回路で次段の比較器の一致信号とアンド演算され、この
アンド回路出力か次段のフリップフロップのJ端子に供
給される。最終段のフリップフロップ161のQ端子出
力かHレベルとなると、これは停止制御信号として端子
20よりマイクロプロセッサ本体(図示せず)に供給さ
れる。
Thereafter, similarly, the Q terminal output of the flip-flop is ANDed with the coincidence signal of the next-stage comparator in the AND circuit, and the AND circuit output is supplied to the J terminal of the next-stage flip-flop. When the Q terminal output of the final stage flip-flop 161 reaches H level, this is supplied as a stop control signal from the terminal 20 to the microprocessor main body (not shown).

ここてレジスタ111〜11.夫々に第3図のステップ
Sl、 S2. S4. S5. S6. S7夫々の
アドレスをセットした場合について説明する。ステップ
S1の実行時に比較器141は第3図(A)に示す如き
一致信号を出力し、その立上がりによってフリップフロ
ップ16.は第2図(B)に示す如きQ端子出力を出力
する。この後ステップSlの実行時に比較器142は第
2図(C)に示す如き一致信号を出力し、これによって
フリップフロップ16.のQ端子出力は第2図(D)の
如く立上がる。この後ステップS4゜S5.S6か順に
実行されるとアンド回路18nに供給される前段のフリ
ップフロップのQ端子出力はHレベルとなり、ステップ
S7の実行時に比較器14.は第2図(E)に示す如き
一致信号を出力し、これによって端子2oより第2図(
F)に示す停止制御信号か出力されて、マイクロプロセ
ッサが停止する。
Here, registers 111-11. Steps Sl and S2 in FIG. 3, respectively. S4. S5. S6. The case where the addresses of each S7 are set will be explained. When step S1 is executed, the comparator 141 outputs a coincidence signal as shown in FIG. outputs the Q terminal output as shown in FIG. 2(B). Thereafter, when step Sl is executed, the comparator 142 outputs a coincidence signal as shown in FIG. 2(C), thereby causing the flip-flop 16. The output from the Q terminal rises as shown in FIG. 2(D). After this, steps S4°S5. When step S6 is executed in order, the Q terminal output of the flip-flop in the previous stage, which is supplied to the AND circuit 18n, becomes H level, and when step S7 is executed, the output from the comparator 14. outputs a coincidence signal as shown in FIG.
The stop control signal shown in F) is output, and the microprocessor stops.

このように、マイクロプロセッサの実行アドレスか1段
からn段のレジスタ11.〜11.の比較アドレスと一
致したとき1段からn段の順にフリップフロップ16.
〜16.がセットされ最後のn段のフリップフロップ1
6、から停止制御信号か出力される。このためプログラ
ムの特定の複数ステップを所定順序で実行したときマイ
クロプロセッサを停止でき、これによって誤動作の原因
究明及びプログラムデバッグの効率か向上する。
In this way, the execution address of the microprocessor is stored in registers 11 . ~11. When the address matches the comparison address of the flip-flops 16. to 16.
~16. is set and the last n-stage flip-flop 1
A stop control signal is output from 6. Therefore, the microprocessor can be stopped when a plurality of specific steps of the program are executed in a predetermined order, thereby improving the efficiency of investigating the cause of malfunction and debugging the program.

なお、レジスタ111〜11.夫々に格納する比較アド
レスは連続したステップのアドレスである必要はなく、
上記実施例に限定されない。
Note that registers 111 to 11. The comparison addresses stored in each do not need to be addresses of consecutive steps;
It is not limited to the above embodiments.

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

上述の如く、本発明のマイクロプロセッサの停止回路に
よれば、特定の複数アドレスを所定順序で実行したとき
マイクロプロセッサを停止させ、誤動作の原因究明及び
プログラムデバッグの効率を向上させることができ、実
用上きわめて有用である。
As described above, according to the microprocessor stop circuit of the present invention, it is possible to stop the microprocessor when a plurality of specific addresses are executed in a predetermined order, thereby improving the efficiency of investigating the causes of malfunctions and debugging programs. Above all, it is extremely useful.

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

第1図は本発明回路の一実施例の回路図、第2図は第1
図の回路各部の信号波形図、第3図は本発明の回路動作
を説明するための図である。 図において、 11〜11.、はレジスタ、 4□〜14.は比較器、 5はアドレスバス、 61〜16アはフリップフロップ、 8、〜18ゎ−、はアンド回路 を示す。 第1図の回路各部の信号波形図 第2図
Fig. 1 is a circuit diagram of one embodiment of the circuit of the present invention, and Fig. 2 is a circuit diagram of an embodiment of the circuit of the present invention.
The signal waveform diagram of each part of the circuit shown in the figure and FIG. 3 are diagrams for explaining the circuit operation of the present invention. In the figure, 11-11. , are registers, 4□~14. 5 is a comparator, 5 is an address bus, 61 to 16A are flip-flops, and 8 to 18A are AND circuits. Figure 2: Signal waveform diagram for each part of the circuit in Figure 1

Claims (1)

【特許請求の範囲】 比較アドレスを夫々に格納するn(nは2以上の整数)
段のレジスタ(11_1〜11_n)と、該n段のレジ
スタ(11_1〜11_n)夫々に対応して設けられ、
マイクロプロセッサの出力する実行アドレスが該n段の
レジスタ(11_1〜11_n)夫々の比較アドレスと
一致したとき一致信号を出力するn段の比較器(14_
1〜14_n)と、 該n段の比較器(14_1〜14_n)に対応して設け
られ、一致信号の供給によりセットされるn段のフリッ
プフロップ(16_1〜16_n)と、1段からn−1
段のフリップフロップ(16_1〜16_n_−_1)
夫々がセットされたとき2段からn段の比較器(14_
2〜14_n)夫々の一致信号を2段からn段のフリッ
プフロップ(16_2〜16_n)夫々に供給するゲー
ト回路(18_1〜18_n_−_1)とを有し、 n段のフリップフロップ(16_n)のセットにより該
マイクロプロセッサを停止させる制御信号を得ることを
特徴とするマイクロプロセッサの停止回路。
[Claims] Comparison addresses are stored respectively n (n is an integer of 2 or more)
Provided corresponding to the stage registers (11_1 to 11_n) and the n stage registers (11_1 to 11_n), respectively,
an n-stage comparator (14_n) that outputs a match signal when the execution address output by the microprocessor matches the comparison address of each of the n-stage registers (11_1 to 11_n);
1 to 14_n), n-stage flip-flops (16_1 to 16_n) provided corresponding to the n-stage comparators (14_1 to 14_n) and set by supplying a match signal, and
Stage flip-flop (16_1 to 16_n_-_1)
When each is set, 2 to n stage comparators (14_
a set of n-stage flip-flops (16_n); A stop circuit for a microprocessor, characterized in that the circuit obtains a control signal for stopping the microprocessor.
JP2180963A 1990-07-09 1990-07-09 Stop circuit for microprocessor Pending JPH0468447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2180963A JPH0468447A (en) 1990-07-09 1990-07-09 Stop circuit for microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2180963A JPH0468447A (en) 1990-07-09 1990-07-09 Stop circuit for microprocessor

Publications (1)

Publication Number Publication Date
JPH0468447A true JPH0468447A (en) 1992-03-04

Family

ID=16092346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2180963A Pending JPH0468447A (en) 1990-07-09 1990-07-09 Stop circuit for microprocessor

Country Status (1)

Country Link
JP (1) JPH0468447A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006174672A (en) * 2004-12-20 2006-06-29 Yaskawa Electric Corp Stator of motor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006174672A (en) * 2004-12-20 2006-06-29 Yaskawa Electric Corp Stator of motor

Similar Documents

Publication Publication Date Title
EP0102242A2 (en) Data processing apparatus
JP3323312B2 (en) Accelerated test pattern generator
JPH0468447A (en) Stop circuit for microprocessor
JPS62293441A (en) Data outputting system
JPH0831033B2 (en) Data processing device
JPS5947651A (en) Program controller
JPS60254255A (en) Memory scan system
KR940009823B1 (en) Logic extending address in computer system
JPH0713818B2 (en) Microprocessor
JPS59106057A (en) Address stop system
JPS6260035A (en) Artificial trouble generation system
JP2693598B2 (en) Program execution controller for digital signal processor
JPH0213882A (en) Subscription timer circuit
JPS5875250A (en) Digital information processor
JPS63155330A (en) Microprogram controller
JPS6086625A (en) Data processing device
JPH0353370A (en) Parallel processor for information processor
JPH02287659A (en) Microprocessor
JPH0478931A (en) Designated word interruption generating system
JPH0528086A (en) I/o port address multiplexing system
JPS60233734A (en) Discordance detecting mrthod of synchronizing multiplex computer
JPH04170653A (en) Cache memory system
JPH01111233A (en) Interruption control system
JPH01175046A (en) Operation history storage device
JPH04282704A (en) Sequence controller