JPS6350732B2 - - Google Patents

Info

Publication number
JPS6350732B2
JPS6350732B2 JP58090079A JP9007983A JPS6350732B2 JP S6350732 B2 JPS6350732 B2 JP S6350732B2 JP 58090079 A JP58090079 A JP 58090079A JP 9007983 A JP9007983 A JP 9007983A JP S6350732 B2 JPS6350732 B2 JP S6350732B2
Authority
JP
Japan
Prior art keywords
subroutine
microprocessor
interrupt
bus
main routine
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.)
Expired
Application number
JP58090079A
Other languages
Japanese (ja)
Other versions
JPS59216258A (en
Inventor
Shoichi Sushi
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.)
Iwasaki Tsushinki KK
Original Assignee
Iwasaki Tsushinki KK
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 Iwasaki Tsushinki KK filed Critical Iwasaki Tsushinki KK
Priority to JP58090079A priority Critical patent/JPS59216258A/en
Priority to US06/612,911 priority patent/US4636941A/en
Publication of JPS59216258A publication Critical patent/JPS59216258A/en
Publication of JPS6350732B2 publication Critical patent/JPS6350732B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は動作解折態様の選択が可能なマイクロ
プロセツサの動作解折装置に関する。本発明によ
る装置は、例えばロジツクアナライザ、マイクロ
プロセツサアナライザ、インサーキツト、エミユ
レータ等、マイクロプロセツサ応用機器のプログ
ラム解析や動作チエツク、故障診断等に用いられ
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a microprocessor motion analysis device that allows selection of motion analysis modes. The apparatus according to the present invention is used for program analysis, operation check, failure diagnosis, etc. of microprocessor applied equipment such as logic analyzers, microprocessor analyzers, incircuits, emulators, etc.

〔従来技術、および発明が解決しようとする問題点〕[Prior art and problems to be solved by the invention]

従来この種装置は、第6図にその一例を示すよ
うに、被測定システムのマイクロプロセツサ1の
データバス、アドレスバス、コントロールバスの
信号と、あらかじめ、設定された比較条件とをト
リガ比較回路5により、比較し、データバス、ア
ドレスバス、コントロールバスの信号状態が比較
条件と一致した時に一致パルス(以下トリガ信号
と言う)が発生する。
Conventionally, this type of device has a trigger comparison circuit that compares signals from the data bus, address bus, and control bus of the microprocessor 1 of the system under test with preset comparison conditions, as shown in FIG. 5, a match pulse (hereinafter referred to as a trigger signal) is generated when the signal states of the data bus, address bus, and control bus match the comparison conditions.

一方マイクロプロセツサ1のコントロールバス
の信号により、メモリコントロール回路4はアド
レスカウンタ3のクロツク及び、メモリ2の書き
込み信号を作る。スタート信号により、アドレス
カウンタ3のクロツク及び、メモリ2の書き込み
信号の禁止が解除され、メモリ2には被測定回路
のマイクロプロセツサ1のデータバス、アドレス
バス、コントロールバスの信号状態が、連続して
書き込まれてゆく。
On the other hand, the memory control circuit 4 generates a clock for the address counter 3 and a write signal for the memory 2 based on the signals on the control bus of the microprocessor 1. The start signal releases the inhibition of the clock of the address counter 3 and the write signal of the memory 2, and the signal states of the data bus, address bus, and control bus of the microprocessor 1 of the circuit under test are continuously stored in the memory 2. It is written as follows.

次にトリガ信号が発生すると、アドレスカウン
タ3のクロツク及び、メモリ2の書き込み信号は
再び禁止され、メモリ2にはトリガ信号発生以前
のマイクロプロセツサ1のバスの状態が記憶され
る。記憶されたバス状態は16進コードや被測定シ
ステムのマイクロプロセツサ1のニーモニツクコ
ードに変換され、CRT等の表示装置により表示
されることによりトリガ信号発生の時点までにマ
イクロプロセツサ1がどんな命令をどのような順
序で実行したかを見ることができ、これによりプ
ログラムのミスの発見や、プロセツサの動作解析
を行う。
When the trigger signal is generated next, the clock of the address counter 3 and the write signal of the memory 2 are inhibited again, and the memory 2 stores the state of the bus of the microprocessor 1 before the generation of the trigger signal. The memorized bus status is converted into a hexadecimal code or a mnemonic code for the microprocessor 1 of the system under test, and displayed on a display device such as a CRT. You can see the order in which instructions are executed, which allows you to discover program errors and analyze processor behavior.

この場合記憶用メモリにはバスの状態が連続的
に逐次記憶されるため、割り込みの処理ルーチン
やサブルーチン等の実行状態も全て記憶される
が、プログラムのミスの発見やプロセツサの動作
解析を行う場合には割り込みの処理ルーチンやサ
ブルーチン内のプログラムの実行状態を記憶する
必要のない場合(割り込み処理ルーチン、サブル
ーチンについてすでに解析ずみであればあらたに
解析する必要がない、など)も多く、このような
場合にはかえつて余分な記憶データにより動作解
析がしにくくなつてしまう。
In this case, the storage memory stores the bus status continuously and sequentially, so all execution statuses of interrupt processing routines and subroutines are also stored. However, when discovering program errors or analyzing processor operation, In many cases, there is no need to remember the execution state of the program in the interrupt handling routine or subroutine (for example, if the interrupt handling routine or subroutine has already been analyzed, there is no need to analyze it anew). In some cases, the extra stored data may actually make it difficult to analyze the motion.

すなわち、メインルーチンの解析をしたい場合
に、割り込み処理のルーチンや、サブルーチン内
のプログラム実行状態が記憶されてしまうため
に、メインルーチンの動作解析がしにくくなつて
しまい、極端な場合記憶用のメモリの大半に割り
込み処理ルーチンやサブルーチン内のプログラム
実行状態が記憶されてしまう場合など解析が非常
にやりづらいという問題点があつた。
In other words, when you want to analyze the main routine, the interrupt handling routine and the program execution state in the subroutines are stored, making it difficult to analyze the operation of the main routine. Most of these had the problem that it was very difficult to analyze, such as when the program execution state in interrupt processing routines and subroutines was memorized.

本発明の目的は前述の従来形における問題点に
かんがみ、全面的な連続的記憶動作とするか、割
り込み処理ルーチンおよびサブルーチン内の命令
実行状態は記憶しない態様の動作とするか、のい
ずれかを使用者が選択できるようにするという着
想にもとづき、命令の実行状態が容易に知られ得
るようにし、プログラムミスの発見および故障の
診断を容易ならしめ、メモリの使用効率を高め、
マイクロプロセツサの動作解析をより有効に行い
得るようにすることにある。
SUMMARY OF THE INVENTION In view of the above-mentioned problems with the conventional system, an object of the present invention is to either perform a continuous storage operation in all areas or to perform an operation in which the execution state of instructions in interrupt handling routines and subroutines is not stored. Based on the idea of allowing the user to make choices, the execution status of instructions can be easily known, making it easier to discover program errors and diagnose failures, and increasing memory usage efficiency.
The purpose of this invention is to enable more effective analysis of the operation of a microprocessor.

〔問題点を解決するための手段〕[Means for solving problems]

本発明においては、被測定システムのマイクロ
プロセツサにアドレスバス、データバス、および
コントロールバスを介して接続され、比較条件と
してのあらかじめ所望の値にセツトされたメイン
ルーチンの基準点をあらわすバス状態と該マイク
ロプロセツサの現在のバス状態を比較し、両者が
一致したときメインルーチンであるとして基準と
して指定するメインルーチン基準信号を送出する
メインルーチン基準比較回路、該マイクロプロセ
ツサにデータバスおよびコントロールバスを介し
て接続され、割り込み発生およびサブルーチンコ
ールを検出して割り込み、サブルーチン検出信号
を送出するとともに、割り込み、サブルーチンか
らのリターン命令の実行を検出してリターン検出
信号を送出する割り込み、サブルーチン、リター
ン検出回路、該メインルーチン基準比較回路およ
び該割り込み、サブルーチン、リターン検出回路
から送出される信号を受け、サブルーチンのネス
テイングのレベルの識別を行い、割り込み処理ル
ーチンおよびサブルーチン内の命令実行時に記憶
禁止信号を送出するネステイングカウンタ、およ
び、該ネステイングカウンタとメモリ制御用メモ
リコントロール回路の接続路に挿入されマイクロ
プロセツサ動作解析態様の選択にもとづきオンオ
フされる選択指定スイツチ、が設けられ、割り込
み、サブルーチン内命令実行状態を除外する選択
がなされたとき、割り込み処理のルーチンまたは
サブルーチン実行中のマイクロプロセツサのバス
の状態および命令実行の過程が記憶されることな
く該被測定システムの動作解析が行われるように
なつている、ことを特徴とする動作解析態様の選
択が可能なマイクロプロセツサの動作解析装置が
提供される。
In the present invention, the bus state is connected to the microprocessor of the system under test via an address bus, a data bus, and a control bus, and represents the reference point of the main routine, which is set to a desired value in advance as a comparison condition. A main routine reference comparison circuit that compares the current bus state of the microprocessor and sends out a main routine reference signal to designate the main routine as a reference when the two match, and a data bus and a control bus to the microprocessor. Interrupt, subroutine, and return detection that detects the occurrence of an interrupt and subroutine call and sends out an interrupt/subroutine detection signal, and also detects the execution of a return instruction from an interrupt or subroutine and sends out a return detection signal. Receives signals sent from the circuit, the main routine reference comparison circuit, and the interrupt, subroutine, and return detection circuits, identifies the nesting level of the subroutine, and sends a storage prohibition signal when an interrupt processing routine or an instruction within the subroutine is executed. A selection designation switch is provided, which is inserted into a connection path between the nesting counter and a memory control circuit for controlling the memory, and is turned on and off based on the selection of the microprocessor operation analysis mode. When a selection is made to exclude the execution state, the behavior of the system under test can be analyzed without storing the microprocessor bus state and instruction execution process during execution of an interrupt processing routine or subroutine. Provided is a microprocessor behavior analysis device that is capable of selecting a behavior analysis mode characterized by the following characteristics.

〔実施例〕〔Example〕

本発明の一実施例としての動作解析態様の選択
が可能なマイクロプロセツサの動作解析装置が第
1図に示される。第1図装置において、1は被測
定システムのマイクロプロセツサ、2は被測定シ
ステムのマイクロプロセツサ1のアドレスバス、
データバスコントロールバスの信号を記憶するメ
モリ、3はメモリ2のアドレスを指定するカウン
タである。
FIG. 1 shows a microprocessor operation analysis apparatus capable of selecting an operation analysis mode as an embodiment of the present invention. In the device shown in FIG. 1, 1 is a microprocessor of the system under test, 2 is an address bus of the microprocessor 1 of the system under test,
A memory 3 stores the signals of the data bus control bus, and 3 is a counter that specifies the address of the memory 2.

4はメモリ2の書き込みパルス及びアドレスカ
ウンタ3のクロツクを発生するメモリコントロー
ル回路、5はあらかじめ所望の値にセツトされた
トリガの比較条件とマイクロプロセツサ1のバス
状態とを比較し、それらが一致した時トリガ信号
を出力するトリガ比較回路、6はあらかじめ所望
の値にセツトされたメインルーチンの基準点をあ
らわすバス状態(比較条件)とマイクロプロセツ
サ1の現在のバス状態を比較しそれらが一致した
時、その点をメインルーチンであるとして、基準
として指定するメインルーチン基準信号を出力す
るメインルーチン基準比較回路である。
4 is a memory control circuit that generates a write pulse for memory 2 and a clock for address counter 3; 5 is a memory control circuit that compares a trigger comparison condition set in advance to a desired value with the bus state of microprocessor 1 and determines whether they match. Trigger comparison circuit 6 outputs a trigger signal when the current bus status of microprocessor 1 is compared with the bus status (comparison condition) representing the reference point of the main routine, which has been set to a desired value in advance, and determines that they match. When this happens, the main routine reference comparison circuit outputs a main routine reference signal that designates that point as the main routine and as a reference.

7は割り込みの発生及びサブルーチンコールを
検出し、割り込み、サブルーチン検出信号を出力
するとともに、割り込み又はサブルーチンからの
リターン命令の実行を検出し、リターン検出信号
を出力する割り込み、サブルーチン、リターン検
出回路、8は割り込み処理ルーチン及び、サブル
ーチン内の命令実行時に記憶禁止信号を出力する
ために割り込み、サブルーチンのネステイングの
レベルを識別するネステイングカウンタ、9は割
り込み処理ルーチン、及びサブルーチン内の命令
実行時のバス状態を記憶するかしないかを使用者
の選択操作により指定するスイツチである。
7 is an interrupt, subroutine, or return detection circuit that detects the occurrence of an interrupt and a subroutine call, outputs an interrupt or subroutine detection signal, detects execution of a return instruction from an interrupt or subroutine, and outputs a return detection signal; 9 is an interrupt processing routine and a nesting counter for outputting a storage inhibit signal when an instruction in a subroutine is executed, and a nesting counter that identifies the level of nesting of a subroutine; 9 is an interrupt processing routine and a bus state when an instruction in a subroutine is executed; This is a switch that allows the user to select whether or not to store the information.

第1図装置の動作が以下に説明される。スイツ
チ9がオフの時は、従来の装置と同様の動作によ
り、被測定システムのマイクロプロセツサ1のバ
ス状態を連続的に記憶する。
The operation of the FIG. 1 apparatus will now be described. When the switch 9 is off, the bus state of the microprocessor 1 of the system under test is continuously memorized by the same operation as the conventional device.

スイツチ9がオンのときは、トリガ比較回路5
には記憶動作を終了するトリガ比較条件を設定
し、メインルーチン基準比較回路6には記憶すべ
きメインルーチンをきめるメインルーチン基準比
較条件をあらかじめ設定しておく。
When switch 9 is on, trigger comparison circuit 5
A trigger comparison condition for terminating the storage operation is set in the main routine reference comparison circuit 6, and a main routine reference comparison condition for determining the main routine to be stored is preset in the main routine reference comparison circuit 6.

次にメモリコントロール回路4、及びメインル
ーチン基準比較回路6にスタート信号を印加する
とメモリコントロール回路4はメモリ2に書き込
みパルスを、アドレスカウンタ3にクロツクを供
給してマイクロプロセツサ1のバス状態はメモリ
2に記憶されて行き、一方メインルーチン比較回
路6はメインルーチン基準比較条件とプロセツサ
1のバス状態との比較を開始する。メインルーチ
ン基準比較条件とプロセツサ1のバス状態が一致
するとメインルーチン基準信号がオンとなり、ネ
ステイングカウンタ8はカウント可能状態とな
る。
Next, when a start signal is applied to the memory control circuit 4 and the main routine reference comparison circuit 6, the memory control circuit 4 supplies a write pulse to the memory 2 and a clock to the address counter 3, and the bus state of the microprocessor 1 is changed to the memory. Meanwhile, the main routine comparison circuit 6 starts comparing the main routine reference comparison conditions with the bus state of the processor 1. When the main routine reference comparison condition and the bus state of the processor 1 match, the main routine reference signal is turned on and the nesting counter 8 becomes ready for counting.

ネステイングカウンタ8はアツプダウンカウン
タであり、割り込みサブルーチン、リターン検出
回路7の発生する割り込みサブルーチン検出信号
によりアツプカウントし、リターン検出信号によ
りダウンカウントする。又、ネステイングカウン
タの値がφの時のみ出力である記憶禁止信号はオ
フとなり記憶動作が行われ、φ以外の時禁止信号
がオンとなつて記憶動作は禁止される。すなわち
メインルーチン基準比較条件とプロセツサ1のバ
ス状態が一致した後割り込み又はサブルーチンコ
ール命令が実行されるとネステイングカウンタ8
がカウントアツプして1となり記憶動作は禁止さ
れる。
The nesting counter 8 is an up/down counter, and counts up in response to the interrupt subroutine detection signal generated by the interrupt subroutine/return detection circuit 7, and counts down in response to the return detection signal. Further, the storage prohibition signal, which is output only when the value of the nesting counter is φ, is turned off and the storage operation is performed, and when the value is other than φ, the prohibition signal is turned on and the storage operation is prohibited. That is, when an interrupt or a subroutine call instruction is executed after the main routine reference comparison condition and the bus state of processor 1 match, the nesting counter 8
counts up to 1 and storage operation is prohibited.

次に割り込み又はサブルーチンからのリセーン
命令が実行されるとネステイングカウンタ8はカ
ウントダウンしてφとなり再び記憶動作が再開さ
れる。ここで割り込み処理ルーチンやサブルーチ
ン内にさらにサブルーチンがある場合、すなわち
サブルーチンが入れごになつている場合は、ネス
テイングカウンタの値は割り込み又はサブルーチ
ンコール命令が実行される毎に+1されて行き、
それぞれのサブルーチンのリターン命令が実行さ
れる毎に−1される。
Next, when an interrupt or a resane instruction from a subroutine is executed, the nesting counter 8 counts down to φ and the storage operation is restarted again. If there is another subroutine within the interrupt processing routine or subroutine, that is, if the subroutines are nested, the value of the nesting counter will be incremented by 1 each time an interrupt or subroutine call instruction is executed.
Each time the return instruction of each subroutine is executed, it is decremented by 1.

メインルーチン基準比較条件成立後最初に実行
された、割り込み処理ルーチン、又はサブルーチ
ンに対応するリターン命令が実行された時ネステ
イングカウンタ8の値は再びφとなり記憶動作が
再開される。
When the first return instruction corresponding to the interrupt processing routine or subroutine is executed after the main routine standard comparison condition is satisfied, the value of the nesting counter 8 becomes φ again and the storage operation is restarted.

第2図にサブルーチンの入れごになつている場
合のネステイングカウンタの値とメモリに記憶さ
れる部分が示される。
FIG. 2 shows the value of the nesting counter and the portion stored in the memory when subroutines are nested.

第2図において、左のルーチン(ハツチングが
付されている)は、メインルーチンであり、中央
のルーチンはサブルーチンA、右のルーチンはサ
ブルーチンBである。メインルーチンのみがメモ
リに記憶される。
In FIG. 2, the routine on the left (hatched) is the main routine, the routine in the center is subroutine A, and the routine on the right is subroutine B. Only the main routine is stored in memory.

上記のようにネステイングカウンタの値がφと
なり記憶動作が再開した後、再度割り込み又はサ
ブルーチンコールの命令が実行された時も上記と
同様の動作をくり返し、マイクロプロセツサ1の
バス状態がトリガ比較の条件と一致し、トリガ比
較回路5がトリガ信号を発生して記憶動作が最終
的に終了するまでメモリ2は断続的にバス状態を
記憶して行く。
As mentioned above, after the value of the nesting counter becomes φ and the storage operation is resumed, when an interrupt or subroutine call instruction is executed again, the same operation as above is repeated, and the bus state of microprocessor 1 is compared with the trigger. The memory 2 intermittently stores the bus state until the trigger comparison circuit 5 generates a trigger signal and the storage operation finally ends.

第3図にスイツチ9がオフの場合にメモリの記
憶されるバス状態2Aとスイツチ9がオンの場合
に記憶されるバス状態2Bの比較例を示す。以上
の第1図装置の動作を流れ図で示すと、第4図、
第5図のようになる。
FIG. 3 shows a comparative example of a bus state 2A stored in the memory when the switch 9 is off and a bus state 2B stored when the switch 9 is on. The operation of the above device shown in FIG. 1 is shown in a flowchart as shown in FIG.
It will look like Figure 5.

第7図は本発明の他の実施例としてのマイクロ
プロセツサの動作解析方法を行う装置を示す図で
あつて、第2図と同一符号のものは同一機能を有
している。ここで10は割り込み及びサブルーチ
ンの実行を検出しもどり番地比較回路へ出力し、
かつ、割り込み及びサブルーチンからのもどり番
地をもどり番地記憶レジスタに記憶するストロー
ブパルスを発生する割り込みサブルーチン検出回
路である。11は割り込み及びサブルーチンのも
どり番地を記憶し、もどり番地比較回路への比較
条件信号として出力するもどり番地記憶レジスタ
である。12はもどり番地記憶レジスタ11に記
憶されたもどり番地とマイクロプロセツサ1のア
ドレスバスの状態とを比較し、メモリ2の記憶信
号を出力するもどり番地比較回路である。
FIG. 7 is a diagram showing an apparatus for performing a microprocessor operation analysis method as another embodiment of the present invention, and the same reference numerals as in FIG. 2 have the same functions. Here, 10 detects the execution of an interrupt and subroutine and outputs it to the return address comparison circuit,
It is also an interrupt subroutine detection circuit that generates a strobe pulse to store a return address from an interrupt and subroutine in a return address storage register. A return address storage register 11 stores return addresses of interrupts and subroutines and outputs them as a comparison condition signal to a return address comparison circuit. Reference numeral 12 denotes a return address comparison circuit that compares the return address stored in the return address storage register 11 with the state of the address bus of the microprocessor 1 and outputs a storage signal of the memory 2.

第7図装置の動作が以下に説明される。スイツ
チ9がオンの時、第2図装置と同様にトリガ比較
回路5には記憶動作を終了するトリガ比較条件を
あらかじめ設定しておき、メモリコントロール回
路4及びもどり番地比較回路12にスタート信号
を印加する。メモリコントロール回路4はメモリ
2に書き込みパルスを、アドレスカウンタ3にク
ロツクを供給し始め、マイクロプロセツサ1のバ
ス状態はメモリ2に記憶されて行く。
The operation of the FIG. 7 apparatus will now be described. When the switch 9 is on, a trigger comparison condition for terminating the storage operation is set in advance in the trigger comparison circuit 5 as in the device shown in FIG. 2, and a start signal is applied to the memory control circuit 4 and the return address comparison circuit 12. do. The memory control circuit 4 starts supplying a write pulse to the memory 2 and a clock to the address counter 3, and the bus state of the microprocessor 1 is stored in the memory 2.

次に割り込み又はサブルーチンのコール命令が
実行されると、割り込み、サブルーチン検出回路
は、割り込み又はサブルーチンのもどり番地のス
トローブ信号をもどり番地記憶レジスタ11に出
力し、もどり番地記憶レジスタ11は割り込み又
はサブルーチンからのもどり番地を記憶し、もど
り番地比較回路12の比較条件として出力する。
Next, when an interrupt or subroutine call instruction is executed, the interrupt or subroutine detection circuit outputs a strobe signal of the return address of the interrupt or subroutine to the return address storage register 11, and the return address storage register 11 receives the interrupt or subroutine from the interrupt or subroutine. The return address is stored and output as a comparison condition for the return address comparison circuit 12.

一方割り込みサブルーチン検出信号はもどり番
地比較回路12に出力され、もどり番地比較回路
12は記憶禁止信号を出力するとともにマイクロ
プロセツサ1のアドレスバスの状態ともどり番地
記憶レジスタ11に記憶されたもどり番地との比
較動作をスタートする。記憶禁止信号によりメモ
リコントロール回路4はメモリ2への書き込みパ
ルス及び、アドレスカウンタ3へのクロツクを禁
止し記憶動作は中断される。
On the other hand, the interrupt subroutine detection signal is output to the return address comparison circuit 12, and the return address comparison circuit 12 outputs a storage prohibition signal and also compares the state of the address bus of the microprocessor 1 with the return address stored in the return address storage register 11. Starts the comparison operation. The memory control circuit 4 prohibits the write pulse to the memory 2 and the clock to the address counter 3 by the storage inhibit signal, and the storage operation is interrupted.

次に割り込み又はサブルーチンからのリターン
命令が実行され、マイクロプロセツサ1のアドレ
スバスにもどり番地が出力されると、もどり番地
比較回路12は記憶禁止信号をオフにして記憶動
作を再開する。
Next, when an interrupt or a return instruction from the subroutine is executed and the return address is output to the address bus of the microprocessor 1, the return address comparison circuit 12 turns off the storage inhibit signal and resumes the storage operation.

割り込み又はサブルーチンのコール命令が実行
される毎に上記動作をくり返し、マイクロプロセ
ツサ1のバス状態がトリガ比較の条件と一致する
と、記憶動作は最終了に終了する。第7図装置に
おいては、割り込み処理ルーチン及びサブルーチ
ン実行中のバス状態は記憶されないのでプログラ
ム解析やプロセツサの動作解析が適切に行われ、
ミスや故障発見がしやすい。第7図装置の動作を
流れ図で示すと、第8図のようになる。
The above operation is repeated every time an interrupt or subroutine call instruction is executed, and when the bus state of the microprocessor 1 matches the trigger comparison condition, the storage operation is finally completed. In the device shown in FIG. 7, the bus status during execution of the interrupt processing routine and subroutine is not stored, so program analysis and processor operation analysis can be performed appropriately.
It is easy to discover mistakes and malfunctions. FIG. 7 shows a flowchart of the operation of the apparatus as shown in FIG. 8.

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

本発明によれば、全面的な連続的記憶動作とす
るか、割り込み処理ルーチンおよびサブルーチン
内の命令実行状態は記憶しない形態の動作とする
か、のいずれかを使用者が選択することができ、
命令の実行状態が適切に知られ得るようになり、
プログラムミスの発見および故障の診断が適切に
行われ、メモリの使用効率が高められ、マイクロ
プロセツサの動作解析をより有利に行うことがで
きる。
According to the present invention, the user can select either full continuous storage operation or operation in which the instruction execution state in interrupt processing routines and subroutines is not stored.
The execution status of instructions can now be properly known,
Program errors can be discovered and failures diagnosed appropriately, memory usage efficiency can be improved, and microprocessor operation analysis can be performed more advantageously.

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

第1図は本発明の一実施例としてのマイクロプ
ロセツサの動作解析装置の構成を示す図、第2図
は第1図装置の動作におけるメインルーチンおよ
びサブルーチンの関係を説明する図、第3図は第
1図装置におけるメモリに記憶されるバス状態を
示す図、第4図および第5図は第1図装置の動作
の流れを示す流れ図、第6図は従来の診断装置の
構成を示す図である。 1……被測定システムのマイクロプロセツサ、
2……メモリ、3……アドレスカウンタ、4……
メモリコントロール回路、5……トリガ比較回
路、6……メインルーチン基準比較回路、7……
割り込み、サブルーチン、リターン検出回路、8
……ネステイングカウンタ、9……切り換えスイ
ツチ、10……割り込みサブルーチン検出回路、
11……もどり番地記憶レジスタ、12……もど
り番地比較回路。
FIG. 1 is a diagram showing the configuration of a microprocessor operation analysis device as an embodiment of the present invention, FIG. 2 is a diagram explaining the relationship between the main routine and subroutines in the operation of the device shown in FIG. 1, and FIG. 1 is a diagram showing the bus status stored in the memory in the device; FIGS. 4 and 5 are flowcharts showing the operation flow of the device in FIG. 1; and FIG. 6 is a diagram showing the configuration of a conventional diagnostic device. It is. 1...Microprocessor of the system under test,
2...Memory, 3...Address counter, 4...
Memory control circuit, 5...Trigger comparison circuit, 6...Main routine reference comparison circuit, 7...
Interrupt, subroutine, return detection circuit, 8
... Nesting counter, 9 ... Changeover switch, 10 ... Interrupt subroutine detection circuit,
11... Return address storage register, 12... Return address comparison circuit.

Claims (1)

【特許請求の範囲】 1 被測定システムのマイクロプロセツサにアド
レスバス、データバス、およびコントロールバス
を介して接続され、比較条件としてのあらかじめ
所望の値にセツトされたメインルーチンの基準点
をあらわすバス状態と該マイクロプロセツサの現
在のバス状態を比較し、両者が一致したときメイ
ンルーチンであるとして基準として指定するメイ
ンルーチン基準信号を送出するメインルーチン基
準比較回路、 該マイクロプロセツサにデータバスおよびコン
トロールバスを介して接続され、割り込み発生お
よびサブルーチンコールを検出して割り込み、サ
ブルーチン検出信号を送出するとともに、割り込
み、サブルーチンからのリターン命令の実行を検
出してリターン検出信号を送出する割り込み、サ
ブルーチン、リターン検出回路、該メインルーチ
ン基準比較回路および該割り込み、サブルーチ
ン、リターン検出回路から送出される信号を受
け、サブルーチンのネステイングのレベルの識別
を行い、割り込み処理ルーチンおよびサブルーチ
ン内の命令実行時に記憶禁止信号を送出するネス
テイングカウンタ、および、 該ネステイングカウンタとメモリ制御用メモリ
コントロール回路の接続路に挿入されマイクロプ
ロセツサ動作解析態様の選択にもとづきオンオフ
される選択指定スイツチ、が設けられ、割り込
み、サブルーチン内命令実行状態を除外する選択
がなされたとき、割り込み処理のルーチンまたは
サブルーチン実行中のマイクロプロセツサのバス
の状態および命令実行の過程が記憶されることな
く該被測定システムの動作解析が行われるように
なつている、 ことを特徴とする動作解析態様の選択が可能なマ
イクロプロセツサの動作解折装置。
[Scope of Claims] 1. A bus connected to the microprocessor of the system under test via an address bus, a data bus, and a control bus, and representing a reference point of a main routine that is set in advance to a desired value as a comparison condition. a main routine reference comparison circuit that compares the current bus state of the microprocessor with the current bus state of the microprocessor, and when the two match, determines that the main routine is the main routine and sends out a main routine reference signal as a reference; Interrupts, subroutines, which are connected via a control bus, detect the occurrence of an interrupt and a subroutine call, and send an interrupt/subroutine detection signal, and also detect the execution of a return instruction from an interrupt or subroutine and send a return detection signal. It receives signals sent from the return detection circuit, the main routine reference comparison circuit, and the interrupt, subroutine, and return detection circuits, identifies the nesting level of the subroutine, and generates a storage prohibition signal when executing an interrupt processing routine or an instruction within the subroutine. A nesting counter that sends out a signal, and a selection designation switch that is inserted into a connection path between the nesting counter and a memory control circuit for controlling the memory and is turned on and off based on the selection of the microprocessor operation analysis mode, When a selection is made to exclude the internal instruction execution state, the operation analysis of the system under test is performed without storing the microprocessor bus state and instruction execution process during execution of an interrupt processing routine or subroutine. A microprocessor behavior analysis device capable of selecting a behavior analysis mode, characterized in that:
JP58090079A 1983-05-24 1983-05-24 Operation analyzing method of microprocessor Granted JPS59216258A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58090079A JPS59216258A (en) 1983-05-24 1983-05-24 Operation analyzing method of microprocessor
US06/612,911 US4636941A (en) 1983-05-24 1984-05-22 Method and apparatus for analysis of microprocessor operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58090079A JPS59216258A (en) 1983-05-24 1983-05-24 Operation analyzing method of microprocessor

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP63030065A Division JPS63282537A (en) 1988-02-13 1988-02-13 Operation analyzing device for microprocessor

Publications (2)

Publication Number Publication Date
JPS59216258A JPS59216258A (en) 1984-12-06
JPS6350732B2 true JPS6350732B2 (en) 1988-10-11

Family

ID=13988511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58090079A Granted JPS59216258A (en) 1983-05-24 1983-05-24 Operation analyzing method of microprocessor

Country Status (1)

Country Link
JP (1) JPS59216258A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021006001A1 (en) * 2019-07-09 2021-01-14 株式会社キトー Hook latch latching mechanism, and hook

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5339035A (en) * 1976-09-22 1978-04-10 Fujitsu Ltd Hysteresis memory unit
JPS5696345A (en) * 1979-12-28 1981-08-04 Mitsubishi Electric Corp Program trace device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5339035A (en) * 1976-09-22 1978-04-10 Fujitsu Ltd Hysteresis memory unit
JPS5696345A (en) * 1979-12-28 1981-08-04 Mitsubishi Electric Corp Program trace device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021006001A1 (en) * 2019-07-09 2021-01-14 株式会社キトー Hook latch latching mechanism, and hook

Also Published As

Publication number Publication date
JPS59216258A (en) 1984-12-06

Similar Documents

Publication Publication Date Title
US5042002A (en) Programmable controller with a directed sequencer
US4652997A (en) Method and apparatus for minimizing overhead when executing nested do loops
EP0638864B1 (en) Development support system for microcomputer with internal cache
US4636941A (en) Method and apparatus for analysis of microprocessor operation
US4550369A (en) Apparatus and method for processing macroinstructions and microinstructions
US5280626A (en) Multi-process emulator suitable for testing software under multi-process environments
JPS63250702A (en) Sequence controller
JPS6350732B2 (en)
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
US20020152256A1 (en) Method and device for reconstructing the process sequence of a control program
JP2000076081A (en) Task manager and program recording medium
JP2734382B2 (en) In-circuit emulator and debugging method thereof
JPS5810853A (en) Integrated circuit
JPS59216259A (en) Operation analyzing method of microprocessor
JPS6270947A (en) Control system for debug interruption
JPH10283219A (en) Information processor start system
JPH02240799A (en) Fault preventive system for pos
JP2841405B2 (en) Microcomputer control circuit
JP2006506720A (en) Transmission of digital messages between microprocessor monitoring circuits and analysis tools
JPH05274173A (en) Pseudo fault setting system
JPS63639A (en) Program debugging system
JPH0227692B2 (en)
JPS61233841A (en) Personal computer with self-diagnostic function
JPH0659931A (en) Debugging device
JPS63109545A (en) Self-diagnostic system for hardware