JPS61156339A - Trace processing system - Google Patents

Trace processing system

Info

Publication number
JPS61156339A
JPS61156339A JP59280726A JP28072684A JPS61156339A JP S61156339 A JPS61156339 A JP S61156339A JP 59280726 A JP59280726 A JP 59280726A JP 28072684 A JP28072684 A JP 28072684A JP S61156339 A JPS61156339 A JP S61156339A
Authority
JP
Japan
Prior art keywords
trace
routine
processing
trace processing
microprogram
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
JP59280726A
Other languages
Japanese (ja)
Inventor
Hitoshi Kosokabe
仁志 香曽我部
Hideaki Ando
秀明 安藤
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 JP59280726A priority Critical patent/JPS61156339A/en
Publication of JPS61156339A publication Critical patent/JPS61156339A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce adverse effects to the trace processing speed by setting previously a necessary trace processing routine to a microprogram to omit the decision for necessity of the trace processing for each routine and improving the trace processing efficiency. CONSTITUTION:A trace table 8 stores the addresses stored in a control storage 5 of routines A, B... respectively. A control part 11 controls an address counter 3 through the table 8 and has a function to rewrite the contents of the storage 5. Then the part 11 refers to the addresses of the routines A, B... stored in the table 8 to rewrite a microprogram stored in the storage 5 after a trace code signal is supplied to a signal register 2. Thus it is possible to obtain a program containing the trace processing set into a routine requiring the trace processing.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプログラム制御方式を具備する情報処
理システムにおけるマイクロプログラム書き換えによる
トレース処理方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a trace processing method by rewriting a microprogram in an information processing system equipped with a microprogram control method.

情報処理システムのシステムデバッグ、或いはシステム
稼動中に、発生した障害の原因を追求する手法として、
プログラムの実行過程のデータ、或いは各種装置の実行
履歴データ等をトレースデータとして記録するトレース
処理機能を用いて、得られたトレースデータと障害現象
と対比しながら原因を探索する方法が用いられる。
As a method for debugging information processing systems or pursuing the cause of failures that occur during system operation,
A method is used in which a trace processing function that records program execution process data or execution history data of various devices as trace data is used to search for the cause while comparing the obtained trace data with the failure phenomenon.

しかし、プログラムを実行しながら所要のトレース処理
をすると、当然そのプログラムを処理する速度が遅くな
るので、処理速度に対する影響を出来るだけ少なくした
効率の良いトレース処理を行うことが要望される。
However, if necessary tracing processing is performed while a program is being executed, the processing speed of the program will naturally slow down, so it is desired to perform efficient tracing processing with as little influence on processing speed as possible.

〔従来の技術〕[Conventional technology]

第3図は従来の方式を説明するブロック図であって、第
4図はそのプログラムを実行する過程を説明す・る図で
ある。
FIG. 3 is a block diagram illustrating the conventional system, and FIG. 4 is a diagram illustrating the process of executing the program.

第4図において、マイクロプログラムの実行過程で処理
するマイクロプログラムルーチンA、B、C,。
In FIG. 4, microprogram routines A, B, and C are processed during the execution process of the microprogram.

があって、へのルーチンが終わった時点でトレース処理
をするものとし、B、Cルーチンではトレ−入処理は必
要ないものとする。
It is assumed that trace processing is performed at the time when routine B and C are completed, and trace entry processing is not necessary for routines B and C.

トレースの必要なルーチンのみトレース処理部するため
に、オペレータは予めコンソールからキーボード等を操
作してトレースコード信号を信号レジスタ2に送出する
。このトレースコード信号は、各ルーチンのトレース処
理の要否を指示するものである。
In order to perform the trace processing section only on routines that require tracing, the operator sends a trace code signal to the signal register 2 by operating a keyboard or the like from the console in advance. This trace code signal indicates whether tracing processing is necessary for each routine.

一方、コントロールストレージ5には上記マイクロプロ
グラムルーチンA、B、C,、、が格納されていて、制
御部1はアドレスカウンタ3の指示するアドレスに格納
されたマイクロ命令を命令レジスタ6に出力し、命令レ
ジスタ6に書き込まれたマイクロ命令は解読されて、実
行される。
On the other hand, the control storage 5 stores the microprogram routines A, B, C, etc., and the control unit 1 outputs the microinstruction stored at the address indicated by the address counter 3 to the instruction register 6 The microinstructions written to the instruction register 6 are decoded and executed.

第4図のように、プログラムルーチンは順次実行されル
ーチンへの処理(ステップ1)が終わると、制御部1は
信号レジスタ2のトレースコード信号を参照して当該ル
ーチン^のトレース処理の要否をチェックする(ステッ
プ2)。
As shown in FIG. 4, the program routines are executed sequentially, and when the routine processing (step 1) is finished, the control unit 1 refers to the trace code signal in the signal register 2 to determine whether or not tracing processing of the routine concerned is necessary. Check (Step 2).

トレースコード信号がルーチンAのトレースが必要と指
示していると、トレース処理部7に起動信号を送り、ト
レース処理部7は実行されたルーチンへの処理が終わっ
た状態のトレース処理を行い(ステップ3.なお、この
トレース処理自体もマイクロプログラムのトレースルー
チンより実行される)、トレース処理が終われば、次の
ルーチンBの実行に移る(ステップ4)。
When the trace code signal indicates that tracing of routine A is necessary, a start signal is sent to the trace processing unit 7, and the trace processing unit 7 performs the trace processing in the state where the processing for the executed routine has been completed (step 3. Note that this tracing process itself is also executed by the trace routine of the microprogram). When the tracing process is completed, the process moves to the next routine B (step 4).

ルーチンBが終わった時点で、再び信号レジスタ2のト
レースコード信号がチェックされる(ステップ5)、ル
ーチンBはトレース処理を必要とせず、信号レジスタ2
にはトレースが必要とは指示されていないので、次のル
ーチンCの実行に移る(ステップ6)。
At the end of routine B, the trace code signal in signal register 2 is checked again (step 5). Routine B does not require trace processing and the trace code signal in signal register 2
Since there is no instruction that tracing is required, the program moves to the next routine C (step 6).

このように、各ルーチンが終わる毎に信号レジスタ2を
チェックするステップが挿入される。
In this way, a step of checking the signal register 2 is inserted every time each routine ends.

〔発明が解決しようとする問題点3 以上説明のように従来の方式では、各ルーチンの処理が
終わった時点で、信号レジスタ2がチェックされ、トレ
ース処理を行うか、否かの判断をするためのステップが
挿入され、そのための時間が余分にかかると云う問題点
があった。
[Problem to be Solved by the Invention 3] As explained above, in the conventional system, the signal register 2 is checked at the end of each routine to determine whether or not to perform trace processing. There was a problem in that additional steps were inserted, which took extra time.

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

本発明は、以上のような問題点を解決するために、信号
レジスタにトレース実施信号が入力されると、制御部は
予め用意されたトレース処理テーブルの内容に基づいて
、コントロールストレージに格納されたマイクロプログ
ラムを書き換えて、そのプログラム実行以前に必要な部
分にのみトレース処理ルーチン、またはトレースルーチ
ンへの分岐命令を組み込んでおく本発明のトレース処理
方式によって解決される。
In order to solve the above-mentioned problems, the present invention provides that when a trace execution signal is input to the signal register, the control unit stores the trace processing table in the control storage based on the contents of a trace processing table prepared in advance. This problem is solved by the trace processing method of the present invention, in which a microprogram is rewritten to incorporate a trace processing routine or a branch instruction to a trace routine only in necessary parts before the program is executed.

〔作用〕[Effect]

上記のように、プログラムの実行以前にコントロールス
トレージのプログラムは書き換えられているので、各ル
ーチンの処理が終わった時点で、信号レジスタにトレー
ス実施信号が入力しているかどうかをチェックすると云
う余分の時間を必要としないで済むことになり、従って
、それだけプログラム処理時間が早くなる。
As mentioned above, since the program in the control storage is rewritten before the program is executed, it takes extra time to check whether the trace execution signal has been input to the signal register at the end of each routine process. Therefore, the program processing time becomes faster.

〔実施例〕〔Example〕

以下、図面を参照してこの発明の実施例を詳細に説明す
る。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、本発明の一実施例のブロック図を示し、第2
図は第1図で行うプログラムの実行過程を説明する図を
示す。 なお、企図を通じて同一符号は同一対象物を示
す。
FIG. 1 shows a block diagram of one embodiment of the present invention, and FIG.
The figure shows a diagram illustrating the process of executing the program shown in FIG. Note that the same reference numerals refer to the same objects throughout the plan.

第1図において、トレーステーブル8には上記ルーチン
^、B、C,,,のコントロールストレージ5中でのア
ドレスが格納されている。
In FIG. 1, the trace table 8 stores the addresses of the routines ^, B, C, . . . in the control storage 5.

制御部11はトレーステーブル8によって、アドレスカ
ウンタ3を制御して、コントロールストレージ5の内容
を書き換える機能が付加されていて、信号レジスタ2に
トレースコード信号が入力すると、トレーステーブル8
に格納されたルーチンA。
The control unit 11 has an additional function of controlling the address counter 3 and rewriting the contents of the control storage 5 using the trace table 8. When a trace code signal is input to the signal register 2, the trace table 8
Routine A stored in .

B、C,、、のアドレスを参照して、コントロールスト
レージ5に格納されたマイクロプログラムを書き換えて
、トレース処理を必要とするルーチンにトレース処理を
組み込んだプログラムにする。
Referring to the addresses B, C, . . . , the microprogram stored in the control storage 5 is rewritten into a program that incorporates trace processing into a routine that requires trace processing.

例えば第2図に示すように、ルーチン^、 B、 C,
、。
For example, as shown in Figure 2, the routine ^, B, C,
,.

の中、ルーチン^がトレース処理を必要とするルーチン
とすると、ルーチンへの最終の命令をブランチアンドリ
ンク命令に置き換え、ルーチンへの最終の命令をトレー
ス処理ルーチンの先頭に移し、トレース処理ルーチンに
つながるようにする。
If the routine ^ is a routine that requires trace processing, replace the final instruction to the routine with a branch-and-link instruction, move the final instruction to the routine to the beginning of the trace processing routine, and connect to the trace processing routine. Do it like this.

上記したように、書き換えられたマイクロプログラムは
アドレスの順に実行され、ルーチン^が実行されて、ブ
ランチアンドリンク命令に到達すると(ステップl)、
前記ルーチンAの最終の命令に分岐してこれを実行しく
ステップ2)、続いてトレース処理を行って後(ステ・
ノブ3)、再びコントロールストレージ5に戻ってルー
チンB、Cを実行する(ステップ4.5)。
As mentioned above, the rewritten microprogram is executed in the order of addresses, and when the routine ^ is executed and a branch and link instruction is reached (step l),
Branch to the last instruction of the routine A and execute it (Step 2), then perform trace processing (Step 2).
knob 3), return to the control storage 5 again and execute routines B and C (step 4.5).

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

以上説明したように本発明によれば、マイクロプログラ
ムは予め必要とするトレース処理ルーチンがマイクロプ
ログラムに組み込まれている。
As described above, according to the present invention, a necessary trace processing routine is incorporated in the microprogram in advance.

従っ、て、ルーチン毎にトレース処理の要否を判断しな
くて済むので、効率良くトレース処理を行うことができ
、処理速度に対する影響を少なくすることができる。
Therefore, it is not necessary to judge whether or not tracing processing is necessary for each routine, so that tracing processing can be performed efficiently and the influence on processing speed can be reduced.

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

第1図は本発明のトレース処理方式の一実施例を示すブ
ロック図、 第2図は本発明のトレース処理の実行過程を説明する図
、 第3図は従来のトレース処理方式を説明するブロック図
、 第4図は従来のトレース処理の実行過程を説明する図で
ある。 図におい°ζ、1.11は制御部、2は信号レジスタ、
5はコントロールストレージ、6は命令レジスタ、7は
トレース処理部、8はトレーステーブルをそれぞれ示す
。 IEI 図 第3m
Figure 1 is a block diagram showing an embodiment of the trace processing method of the present invention, Figure 2 is a diagram explaining the execution process of the trace processing of the present invention, and Figure 3 is a block diagram explaining the conventional trace processing method. , FIG. 4 is a diagram illustrating the execution process of conventional trace processing. In the figure, °ζ, 1.11 is the control section, 2 is the signal register,
5 is a control storage, 6 is an instruction register, 7 is a trace processing unit, and 8 is a trace table. IEI Figure 3m

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムを格納するコントロールストレージ
と、マイクロプログラムの中の各ルーチンのアドレスを
保持するトレーステーブルと、マイクロプログラムを書
き換える手段と、トレース処理を行う手段とを具え、ト
レースを要するルーチンを指示するトレースコード信号
の入力によって、前記トレーステーブルに基づいて前記
マイクロプログラムを実行する以前に、前記マイクロプ
ログラムに前記トレース処理のルーチンを組み込むこと
を特徴とするトレース処理方式。
A trace code that includes a control storage that stores a microprogram, a trace table that holds addresses of each routine in the microprogram, a means for rewriting the microprogram, and a means for performing tracing processing, and that instructs a routine that requires tracing. A trace processing method characterized in that the trace processing routine is incorporated into the microprogram before executing the microprogram based on the trace table by inputting a signal.
JP59280726A 1984-12-27 1984-12-27 Trace processing system Pending JPS61156339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59280726A JPS61156339A (en) 1984-12-27 1984-12-27 Trace processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59280726A JPS61156339A (en) 1984-12-27 1984-12-27 Trace processing system

Publications (1)

Publication Number Publication Date
JPS61156339A true JPS61156339A (en) 1986-07-16

Family

ID=17629083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59280726A Pending JPS61156339A (en) 1984-12-27 1984-12-27 Trace processing system

Country Status (1)

Country Link
JP (1) JPS61156339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206802A (en) * 1987-02-23 1988-08-26 Omron Tateisi Electronics Co Programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206802A (en) * 1987-02-23 1988-08-26 Omron Tateisi Electronics Co Programmable controller

Similar Documents

Publication Publication Date Title
JPS61156339A (en) Trace processing system
JP2002251291A (en) Control method, control program, memory cell and controller for technical process inside vehicle
JPH0410081B2 (en)
KR0175469B1 (en) How to control the visibility of fill program variables
JPS5835648A (en) Program execution controlling system
JPH0769847B2 (en) Job control method during rerun
JPH07160352A (en) Program execution system
JPS62168229A (en) Automatic recognizing system for system constitution
JPS5829051A (en) Operation processing device
JPS63163543A (en) Information processor
JPS6356728A (en) Execution system for program correction
JP3260788B2 (en) Robot control device and method
JP4479738B2 (en) Programmable controller
JPH04167146A (en) Address tracing system for information processor
JPH07253876A (en) Program generating device
JPH02214946A (en) Debugging system
JPS63282525A (en) Correction system for execution type program file
JPH0695868A (en) Software management system
JPS63217423A (en) System for setting intra-program constant value
JPH01274253A (en) Software break system
JPH02178734A (en) System for automatically generating patch
JPS62235641A (en) Control system for executing program
JPS6180443A (en) Production and storage method of check data
JPS63305434A (en) Debugging aid device
JPH04299417A (en) Toggle operating method