JPH064342A - Area specified trace method - Google Patents
Area specified trace methodInfo
- Publication number
- JPH064342A JPH064342A JP4157110A JP15711092A JPH064342A JP H064342 A JPH064342 A JP H064342A JP 4157110 A JP4157110 A JP 4157110A JP 15711092 A JP15711092 A JP 15711092A JP H064342 A JPH064342 A JP H064342A
- Authority
- JP
- Japan
- Prior art keywords
- trace
- address
- area
- input
- instruction
- 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.)
- Withdrawn
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【目的】 処理装置のプログラム走行番地をマップトレ
ース方式により記録するプログラム動作収集装置におけ
る領域指定トレース方式に関し、プログラムデバッグ
を、極力効率良く実行可能とすることを目的とする。
【構成】 予め指定された記憶領域内のデータにアクセ
スした、予め指定された記憶領域内の命令のアドレスを
記録する情報収集領域指定手段300を設け、また予め
指定された記憶領域内の命令からアクセスされた、予め
指定された記憶領域内のデータのアドレスを記録する情
報収集領域指定手段400を設ける様に構成する。
(57) [Abstract] [Purpose] It is an object of the present invention to make it possible to execute program debugging as efficiently as possible with regard to the area designation trace method in the program operation collecting apparatus which records the program running address of the processing apparatus by the map trace method. [Arrangement] An information collecting area designating unit 300 for recording an address of an instruction in a predesignated storage area that has accessed data in the predesignated storage area is provided, and an instruction in the predesignated storage area is read. The information collecting area designating means 400 for recording the address of the accessed data in the predesignated storage area is provided.
Description
【0001】[0001]
【産業上の利用分野】本発明は、処理装置のプログラム
走行番地をマップトレース方式により記録(一名トレー
ス)するプログラム動作収集装置における領域指定トレ
ース方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an area designation trace method in a program operation collecting apparatus for recording (single name tracing) a program running address of a processing apparatus by a map trace method.
【0002】[0002]
【従来の技術】図8は従来あるプログラムデバッグ装置
の一例を示す図であり、図9はマップトレースによる情
報収集の一例を示す図で、同図(a) はトレース対象プロ
グラム走行経過の一例を示し、同図(b) は収集結果の一
例を示す。2. Description of the Related Art FIG. 8 is a diagram showing an example of a conventional program debug device, FIG. 9 is a diagram showing an example of information collection by map trace, and FIG. Figure (b) shows an example of the collection results.
【0003】図7に例示されるプログラムデバッグ装置
1には、それぞれプロセッサ2のプログラム走行番地
を、図9に例示される如きマップトレース方式で記録す
るトレース装置3が複数設けられており、切替装置4を
介して記録対象とする各プロセッサ2に接続される。The program debug device 1 illustrated in FIG. 7 is provided with a plurality of trace devices 3 for recording the program running addresses of the processors 2 by the map trace method illustrated in FIG. 9, respectively. It is connected to each processor 2 to be recorded via 4.
【0004】トレース実行者が、プログラムデバッグ装
置1によりプロセッサ2のトレースを実行する場合に
は、最初にワークステーション5から通信制御装置6を
介して切替装置4を制御し、トレース対象プロセッサ2
と対応するトレース装置3とを接続する。When the trace executor executes the trace of the processor 2 by the program debug device 1, first the workstation 5 controls the switching device 4 via the communication control device 6 to trace the processor 2 to be traced.
And the corresponding trace device 3 are connected.
【0005】次にトレース実行者が、トレース装置番
号、トレース種別(今回はマップトレース)、トレース
対記憶象領域等を指定したトレース開始用のコマンド
を、ワークステーション5から通信制御装置6を介して
トレース装置3に入力すると、該コマンドを受信したト
レース装置3は、トレース対象プロセッサ2のプログラ
ム走行番地を監視し、受信コマンドにより指定された記
憶領域内の走行番地を、図9(b) に示される如きマップ
形式で記録する。Next, the trace executor issues a trace start command specifying the trace device number, the trace type (map trace this time), the trace-to-memory area, etc. from the workstation 5 via the communication control device 6. When input to the trace device 3, the trace device 3 that has received the command monitors the program running address of the trace target processor 2 and shows the running address in the storage area specified by the received command in FIG. 9 (b). It is recorded in the map format as described above.
【0006】例えばプロセッサ2が、図9(a) に示され
る如く、番地(10000)H 〔但しHは16進表示を
示す〕から(1000F)H 迄のプログラムを実行した
場合には、トレース装置3は図示されぬトレースメモリ
の、番地(10000)H 乃至(1000F)H 対応領
域を論理“1”に設定する。〔なお図9(b)において
は、トレースメモリ(TRM)31内で論理“1”に設
定された記憶領域は(*)により表示され、論理“0”
に設定された儘の記憶領域は(・)により表示されてい
る。〕続いてプロセッサ2が、番地(1000F)H か
ら番地(10030)H へジャンプした後、番地(10
035)H 迄のプログラムを実行した場合には、トレー
ス装置3は、トレースメモリ内の番地(10030)H
乃至(10035)H対応領域を論理“1”に設定す
る。For example, when the processor 2 executes a program from the address (10000) H [where H indicates hexadecimal display] to (1000F) H , as shown in FIG. 3 sets the area corresponding to the addresses (10000) H to (1000F) H of the trace memory (not shown) to the logic "1". [In FIG. 9 (b), the storage area set to the logical "1" in the trace memory (TRM) 31 is indicated by (*), and the logical "0" is displayed.
The storage area set to No. is displayed by (•). Next, after the processor 2 jumps from the address (1000F) H to the address (10030) H , the address (10
When the programs up to H are executed, the trace device 3 determines the address (10030) H in the trace memory.
Through (10035) H corresponding area is set to logical “1”.
【0007】以下同様にして、プロセッサ2が番地(1
0073)H 乃至(10082)H、番地(100A
8)H 乃至(100B7)H 、番地(10086)H 乃
至(1008A)H 、番地(10012)H 乃至(10
017)H のプログラムを順次実行すると、トレース装
置3はプロセッサ2のプログラム走行番地を、図9(b)
に例示される如く記録する。Similarly, the processor 2 is assigned the address (1
0073) H through (10082) H , address (100A
8) H to (100B7) H , address (10086) H to (1008A) H , address (10012) H to (10
When the H program is sequentially executed, the tracing device 3 changes the program running address of the processor 2 to that shown in FIG.
Record as illustrated in.
【0008】なおトレースメモリにおいては、走行番地
に対応する記憶領域が論理“1”に記録され、未走行番
地に対応する記憶領域が論理“0”の儘となる。In the trace memory, the storage area corresponding to the running address is recorded in the logical "1", and the storage area corresponding to the non-running address is the logical "0".
【0009】[0009]
【発明が解決しようとする課題】以上の説明から明らか
な如く、従来あるプログラムデバッグ装置においては、
トレース装置3がトレース対象プロセッサ2のプログラ
ム走行番地を、無条件に記録していた為、例えば特に注
目する記憶領域内のデータにアクセスした命令の番地を
記録する、或いは特に注目する記憶領域内の命令からア
クセスされたデータの番地を記録する等、きめ細かなト
レース情報の収集が不可能であった為、的確かつ効率的
なプログラムデバッグが実行出来ぬ問題があった。As is apparent from the above description, in the conventional program debug device,
Since the trace device 3 has unconditionally recorded the program running address of the trace target processor 2, for example, the address of the instruction that accessed the data in the memory area of particular interest is recorded, or the program running address of the memory area of particular interest is recorded. Since it was impossible to collect detailed trace information such as recording the address of the data accessed from the instruction, there was a problem that accurate and efficient program debugging could not be executed.
【0010】本発明は、マップトレース方式によるプロ
グラムデバッグを、極力効率良く実行可能とすることを
目的とする。An object of the present invention is to enable program debugging by the map trace method to be executed as efficiently as possible.
【0011】[0011]
【課題を解決するための手段】図1は本発明の原理を示
す図である。図1において、100は情報収集(トレー
ス)の対象となる処理装置、200は本発明の対象とな
るプログラム動作収集装置である。FIG. 1 is a diagram showing the principle of the present invention. In FIG. 1, reference numeral 100 is a processing device which is a target of information collection (trace), and 200 is a program operation collection device which is a target of the present invention.
【0012】300は、本発明(請求項1)によりプロ
グラム動作収集装置200に設けられた情報収集領域指
定手段である。400は、本発明(請求項2)によりプ
ログラム動作収集装置200に設けられた情報収集領域
指定手段である。Reference numeral 300 is an information collecting area designating means provided in the program operation collecting apparatus 200 according to the present invention (claim 1). Reference numeral 400 is an information collecting area designating unit provided in the program operation collecting apparatus 200 according to the present invention (claim 2).
【0013】[0013]
【作用】プログラム動作収集装置200は、処理装置1
00のプログラム走行番地をマップトレース方式により
記録する。The program operation collecting device 200 is the processing device 1
The program running address of 00 is recorded by the map trace method.
【0014】情報収集領域指定手段300は、予め指定
された記憶領域内のデータにアクセスした、予め指定さ
れた記憶領域内の命令の番地を記録する。情報収集領域
指定手段400は、予め指定された記憶領域内の命令か
らアクセスされた、予め指定された記憶領域内のデータ
の番地を記録する。The information collection area designating means 300 records the address of the instruction in the predesignated storage area that has accessed the data in the predesignated storage area. The information collection area designating means 400 records the address of the data in the predesignated storage area accessed by the instruction in the predesignated storage area.
【0015】従って、アクセスされるデータを指定して
アクセスする命令の番地を記録し、或いはアクセスする
命令を指定してアクセスされるデータの番地を記録する
等、所要の情報のみを的確に収集可能となり、当該プロ
グラム動作収集装置によるプログラムデバッグ効率が大
幅に向上する。Therefore, it is possible to accurately collect only the required information, such as recording the address of the instruction to be accessed by designating the data to be accessed, or recording the address of the data to be accessed by designating the instruction to be accessed. Therefore, the efficiency of program debugging by the program operation collecting apparatus is significantly improved.
【0016】[0016]
【実施例】以下、本発明の一実施例を図面により説明す
る。図2は本発明の一実施例によるプログラムデバッグ
装置を示す図であり、図3は本発明の一実施例によるコ
マンド形式を示す図であり、図4は図2における領域指
定部の一例を示す図であり、図5は図4における読出専
用メモリの入出力情報の一例を示す図であり、図6はア
クセス元命令とアクセス先データとの関係の一例を示す
図であり、図7は図6におけるトレース対象の一例を示
す図である。なお、全図を通じて同一符号は同一対象物
を示す。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. 2 is a diagram showing a program debug device according to one embodiment of the present invention, FIG. 3 is a diagram showing a command format according to one embodiment of the present invention, and FIG. 4 is an example of an area designation unit in FIG. 5 is a diagram showing an example of input / output information of the read-only memory in FIG. 4, FIG. 6 is a diagram showing an example of a relationship between an access source instruction and access destination data, and FIG. 7 is a diagram. It is a figure which shows an example of the trace object in 6. The same reference numerals denote the same objects throughout the drawings.
【0017】図2においては、図1における処理装置1
00としてプロセッサ2が示され、また図1におけるプ
ログラム動作収集装置200としてプログラムデバッグ
装置1が示され、また図1における情報収集領域指定手
段300および400として領域指定部7が各トレース
装置3内に設けられている。In FIG. 2, the processing apparatus 1 in FIG.
1, the program debug device 1 is shown as the program operation collecting device 200 in FIG. 1, and the area specifying unit 7 is provided in each trace device 3 as the information collecting area specifying means 300 and 400 in FIG. It is provided.
【0018】なお図4には、領域指定部7と共にトレー
ス装置3内に設けられているトレースメモリ(TRM)
31が示されている。図2に示されるトレースメモリ
(TRM)31は、1メガ語×1ビットの記憶容量を有
し、トレース対象プロセッサ2の走行番地を1メガ語の
領域内で、マップトレース方式によりトレース可能であ
る。In FIG. 4, a trace memory (TRM) provided in the trace device 3 together with the area designating section 7 is shown.
31 is shown. The trace memory (TRM) 31 shown in FIG. 2 has a storage capacity of 1 mega word × 1 bit, and the running address of the trace target processor 2 can be traced within the area of 1 mega word by the map trace method. .
【0019】領域指定部7に設けられている読出専用メ
モリ(ROM)751は、プロセッサ2内の1メガ語の
記憶領域をトレース対象として設定する場合に、先頭番
地を128キロ語置きの8種類の何れかに設定可能と
し、且つトレースメモリ(TRM)31には番地順に収
集可能とする為のアドレス変換の役割を果たす。A read-only memory (ROM) 751 provided in the area designating section 7 has eight kinds of head addresses every 128 kilowords when a 1-megaword storage area in the processor 2 is set as a trace object. , And the trace memory (TRM) 31 plays a role of address conversion so that data can be collected in the order of addresses.
【0020】8種類の先頭番地の何れを採用するかは、
レジスタ705に設定する入力ビット(I3 、I4 、I
5 )により指定される。例えばレジスタ705に、入力
ビット(I3 、I4 、I5 )=(0、0、1) B 〔但し
Bは二進表示を示す〕を設定した場合には、読出専用メ
モリ(ROM)751に入力ビット(I0 乃至I2 )と
して入力されるプロセッサ出力アドレス(f)の上位ビ
ット(f17、f18、f19)=(0、0、1)B 、(0、
1、0) B 、……、(1、1、1)B 、(0、0、0)
B は、それぞれ(0、0、0)B、(0、0、1)B 、
……、(1、1、0)B 、(1、1、1)B に変換され
て出力ビット(O0 乃至O2 )として出力され、トレー
スメモリ(TRM)31にアドレスビット(A17乃至A
19)として入力される為、トレースメモリ(TRM)3
1の(0)語目から最大領域迄に記録されることとな
り、またレジスタ705に、入力ビット(I3 、I4 、
I5 )=(0、1、0)B を設定した場合にも、読出専
用メモリ(ROM)751に入力ビット(I0 乃至
I2 )として入力されるプロセッサ出力アドレス(f)
の上位ビット(f17、f18、f19)=(0、1、
0)B 、(0、1、1)B 、……、(1、1、1)B 、
(0、0、0)B 、(0、0、1)B は、それぞれ
(0、0、0)B 、(0、0、1)B 、……、(1、
0、1)B 、(1、1、0)B 、(1、1、1)B に変
換されて出力ビット(O0 乃至O2 )として出力され、
トレースメモリ(TRM)31にアドレスビット(A17
乃至A19)として入力される為、やはりトレースメモリ
(TRM)31の(0)語目から最大領域迄に記録され
ることとなる。Which of the eight types of leading addresses is adopted is
Input bit (I3, IFour, I
Five). For example, input to the register 705
Bit (I3, IFour, IFive) = (0,0,1) B[However,
B indicates binary display] is set, the read-only
The input bit (I0Through I2)When
Upper address of the processor output address (f)
(F17, F18, F19) = (0,0,1)B, (0,
1,0) B, ..., (1, 1, 1)B, (0,0,0)
BAre (0, 0, 0) respectivelyB, (0, 0, 1)B,
... (1,1,0)B, (1, 1, 1)BIs converted to
Output bit (O0Through O2) Is output as a tray
Address bit (A17Through A
19), The trace memory (TRM) 3
It will be recorded from the (0) word of 1 to the maximum area.
In addition, the input bit (I3, IFour,
IFive) = (0,1,0)BIf you set to
Input bit (I0Through
I2Output address (f) input as
Upper bit (f17, F18, F19) = (0,1,
0)B, (0,1,1)B, ..., (1, 1, 1)B,
(0, 0, 0)B, (0, 0, 1)BRespectively
(0, 0, 0)B, (0, 0, 1)B, ……, (1,
0, 1)B, (1, 1, 0)B, (1, 1, 1)BStrange
Output bit (O0Through O2) Is output as
Address bits (A17
Through A19), So trace memory
It is recorded from the (0) word of (TRM) 31 to the maximum area.
The Rukoto.
【0021】図2乃至図7において、トレース実行者
が、プログラムデバッグ装置1によりプロセッサ2のト
レースを実行する場合には、最初にワークステーション
5から通信制御装置6を介して切替装置4を制御し、ト
レース対象プロセッサ2と対応するトレース装置3とを
接続する。In FIGS. 2 to 7, when the trace executor executes the trace of the processor 2 by the program debug device 1, first, the switching device 4 is controlled from the workstation 5 via the communication control device 6. , The trace target processor 2 and the corresponding trace device 3 are connected.
【0022】次にトレース実行者は、図3に例示される
如きコマンドを、ワークステーション5から通信制御装
置6を介してトレース装置3に入力する。入力されるコ
マンドは、図3に例示される如く、トレース装置番号
(EN)、コマンド種別(CM)、トレースモード
(M)、アクセス元領域(SA)およびアクセス先領域
(DA)から構成される。Next, the trace executor inputs a command as illustrated in FIG. 3 from the workstation 5 to the trace device 3 via the communication control device 6. The input command is composed of a trace device number (EN), a command type (CM), a trace mode (M), an access source area (SA) and an access destination area (DA) as illustrated in FIG. .
【0023】トレース装置番号(EN)は、今回はマッ
プトレースを実行するトレース装置3を指定し、コマン
ド種別(CM)は、今回はマップトレースの実行を指定
し、トレースモード(M)は、マップトレースに含まれ
る三種類のトレースモード、即ち命令トレース、アクセ
ス元トレースおよびアクセス先トレースの内、今回は何
れのトレースを実行するかを指定し、アクセス元領域
(SA)はトレース対象命令の記憶領域を指定し、アク
セス先領域(DA)はトレース対象データの記憶領域を
指定する。The trace device number (EN) designates the trace device 3 which executes the map trace this time, the command type (CM) designates the execution of the map trace this time, and the trace mode (M) designates the map map. Of the three types of trace modes included in the trace, that is, which one of the instruction trace, the access source trace, and the access destination trace is executed this time, the access source area (SA) is the storage area of the trace target instruction. Is designated, and the access destination area (DA) designates the storage area of the trace target data.
【0024】ここで命令トレースとは、従来あるマップ
トレースと同様に、アクセス元領域(SA)により指定
される記憶領域内の実行済命令のアドレスを記録するマ
ップトレースであり、またアクセス元トレースとは、ア
クセス先領域(DA)により指定される記憶領域内のデ
ータにアクセスした、アクセス元領域(SA)により指
定される記憶領域内の命令のアドレスを記録するマップ
トレースであり、更にアクセス先トレースとは、アクセ
ス元領域(SA)により指定される記憶領域内の命令か
らアクセスされた、アクセス先領域(DA)により指定
される記憶領域内のデータのアドレスを収集するマップ
トレースである。Here, the instruction trace is a map trace for recording the address of the executed instruction in the storage area designated by the access source area (SA), like the conventional map trace, and is also referred to as the access source trace. Is a map trace for recording the address of the instruction in the storage area specified by the access source area (SA) that has accessed the data in the storage area specified by the access destination area (DA). Is a map trace that collects the address of the data in the storage area specified by the access destination area (DA), which is accessed from the instruction in the storage area specified by the access source area (SA).
【0025】最初に、トレースモード(M)として命令
トレースを指定したコマンドが、ワークステーション5
から入力された場合を説明する。トレース装置3は、受
信したコマンドを解析し、コマンド種別(CM)がマッ
プトレースコマンドであり、更にトレースモード(M)
が命令トレースと認識すると、受信コマンドのアクセス
元領域(SA)に指定されている命令トレース先頭アド
レス/終了アドレス(a)を、領域指定部7内のレジス
タ701に設定し、レジスタ702よび703には何も
設定せず、更に領域指定部7に入力するアクセス元トレ
ース信号(d)およびアクセス先トレース信号(e)を
論理“0”の儘とする。First, the command specifying the instruction trace as the trace mode (M) is the work station 5
The case of input from is explained. The trace device 3 analyzes the received command, the command type (CM) is the map trace command, and the trace mode (M).
Recognizes that the instruction trace is an instruction trace, the instruction trace start address / end address (a) designated in the access source area (SA) of the received command is set in the register 701 in the area designation unit 7, and is set in the registers 702 and 703. Is not set, and the access source trace signal (d) and the access destination trace signal (e) input to the area designating section 7 are set to a logic "0".
【0026】またトレース装置3は、トレースメモリ
(TRM)31に入力するトレースデータ信号(j)を
論理“0”に設定し、トレースメモリ(TRM)31の
全記憶領域を論理“0”に初期設定した後、トレースデ
ータ信号(j)を論理“1”に設定する。Further, the trace device 3 sets the trace data signal (j) input to the trace memory (TRM) 31 to a logical "0" and initializes all the storage areas of the trace memory (TRM) 31 to a logical "0". After setting, the trace data signal (j) is set to logic "1".
【0027】アクセス元トレース信号(d)が論理
“0”に設定されていると、セレクタ(SEL)731
は入力端子(0)から入力されるデータを選択して出力
端子(X)から出力し、またアクセス元トレース信号
(d)およびアクセス先トレース信号(e)が共に論理
“0”に設定されていると、セレクタ(SEL)732
は入力端子(0)から入力されるデータを選択して出力
端子(X)から出力する。When the access source trace signal (d) is set to logic "0", the selector (SEL) 731
Selects the data input from the input terminal (0) and outputs it from the output terminal (X), and the access source trace signal (d) and the access destination trace signal (e) are both set to logic "0". Selector (SEL) 732
Selects the data input from the input terminal (0) and outputs it from the output terminal (X).
【0028】かかる状態で、プロセッサ2がプログラム
を実行すると、トレース装置3がプロセッサ2のプログ
ラム走行状態を監視し、プロセッサ出力アドレス
(f)、命令フェッチ信号(g)、オペランドアクセス
信号(h)、ラッチタイミング信号(i)等を領域指定
部7に入力する。When the processor 2 executes the program in such a state, the tracing device 3 monitors the program running state of the processor 2, and the processor output address (f), instruction fetch signal (g), operand access signal (h), The latch timing signal (i) or the like is input to the area designating unit 7.
【0029】領域指定部7においては、比較部711が
入力されるプロセッサ出力アドレス(f)を、レジスタ
701に設定されている命令トレース先頭アドレス/終
了アドレス(a)と比較し、プロセッサ出力アドレス
(f)が命令トレース先頭アドレス/終了アドレス
(a)により指定されるアクセス元領域(SA)内に存
在すると認識すると、出力する出力信号q711 を論理
“1”に設定する。In the area designating unit 7, the processor output address (f) input to the comparing unit 711 is compared with the instruction trace start address / end address (a) set in the register 701 to obtain the processor output address ( When f) is recognized to exist in the access source area (SA) designated by the instruction trace start address / end address (a), the output signal q 711 to be output is set to logic "1".
【0030】またプロセッサ2がプロセッサ出力アドレ
ス(f)において命令フェッチを実行した場合には、領
域指定部7に入力される命令フェッチ信号(g)が論理
“1”となる為、ゲート722の出力信号q722 が論理
“1”に設定される。When the processor 2 executes the instruction fetch at the processor output address (f), the instruction fetch signal (g) input to the area designating unit 7 becomes logical "1", so that the output of the gate 722 is output. Signal q 722 is set to a logical "1".
【0031】セレクタ(SEL)731は、入力端子
(0)に入力されるプロセッサ出力アドレス(f)を出
力端子(X)から出力し、下位17ビット(f0 乃至f
16)はトレースメモリ(TRM)31にアドレスビット
(A0 乃至A16)として入力し、上位3ビット(f17乃
至f19)は読出専用メモリ(ROM)751に入力ビッ
ト(I0 乃至I2 )として入力し、前述の如く変換した
後、出力ビット(O0 乃至O2 )として出力し、トレー
スメモリ(TRM)31にアドレスビット(A17乃至A
19)として入力する。The selector (SEL) 731 outputs the processor output address (f) input to the input terminal (0) from the output terminal (X), and the lower 17 bits (f 0 to f).
16 ) are input to the trace memory (TRM) 31 as address bits (A 0 to A 16 ), and the upper 3 bits (f 17 to f 19 ) are input bits (I 0 to I 2 ) to the read-only memory (ROM) 751. ), Converted as described above, output as output bits (O 0 to O 2 ), and output to the trace memory (TRM) 31 as address bits (A 17 to A 2 ).
19 ) Enter as.
【0032】またセレクタ(SEL)732は、入力端
子(0)に入力される出力信号q72 2 (論理“1”)
を、出力端子(X)から出力し、書込制御部741に入
力する。The selector (SEL) 732 outputs the output signal q 72 2 (logic "1") input to the input terminal (0).
Is output from the output terminal (X) and input to the write control unit 741.
【0033】書込制御部741は、セレクタ(SEL)
732から出力信号q722 (論理“1”)を入力される
と、トレースメモリ(TRM)31の入力端子(WE)
に入力する書込信号(we)を論理“1”に設定する。The write controller 741 is a selector (SEL).
When the output signal q 722 (logic “1”) is input from 732, the input terminal (WE) of the trace memory (TRM) 31.
The write signal (we) input to is set to logic "1".
【0034】その結果、トレースメモリ(TRM)31
には、アドレスビット(A0 乃至A 19)として入力され
る変換済のプロセッサ出力アドレス(f)に、トレース
データ信号(j)(=論理“1”)が記録され、プロセ
ッサ2が実行する各命令のマップトレースが実行され
る。As a result, the trace memory (TRM) 31
Address bit (A0Through A 19) Is entered as
Trace to the converted processor output address (f)
The data signal (j) (= logical “1”) is recorded,
Map trace of each instruction executed by
It
【0035】次に、トレースモード(M)としてアクセ
ス元トレースを指定したコマンドが、ワークステーショ
ン5から入力された場合を説明する。トレース装置3
は、受信したコマンドを解析し、コマンド種別(CM)
がマップトレースコマンドであり、更にトレースモード
(M)がアクセス元トレースと認識すると、受信コマン
ドのアクセス元領域(SA)に指定されているアクセス
元トレース先頭アドレス/終了アドレス(b)を領域指
定部7内のレジスタ702に設定し、また受信コマンド
のアクセス先領域(DA)に指定されているアクセス先
トレース先頭アドレス/終了アドレス(c)をレジスタ
703に設定し、レジスタ701には何も設定せず、更
に領域指定部7に入力するアクセス元トレース信号
(d)を論理“1”に設定し、アクセス先トレース信号
(e)を論理“0”の儘とする。Next, a case where a command designating an access source trace as the trace mode (M) is input from the workstation 5 will be described. Trace device 3
Analyzes the received command, and the command type (CM)
Is a map trace command, and when the trace mode (M) recognizes that it is an access source trace, the access source trace start address / end address (b) specified in the access source area (SA) of the received command is assigned to the area designating section. 7 is set in the register 702, the access destination trace start address / end address (c) specified in the access destination area (DA) of the received command is set in the register 703, and nothing is set in the register 701. Instead, the access source trace signal (d) input to the area designation unit 7 is set to logic "1", and the access destination trace signal (e) is set to logic "0".
【0036】またトレース装置3は、前述と如く、トレ
ースメモリ(TRM)31の全記憶領域を論理“0”に
初期設定した後、トレースデータ信号(j)を論理
“1”に設定する。As described above, the trace device 3 initializes the entire storage area of the trace memory (TRM) 31 to logic "0" and then sets the trace data signal (j) to logic "1".
【0037】アクセス元トレース信号(d)が論理
“1”に設定されると、セレクタ(SEL)731は入
力端子(1)から入力されるデータを選択して出力端子
(X)から出力し、またアクセス元トレース信号(d)
およびアクセス先トレース信号(e)の何れかが論理
“1”に設定されると、セレクタ(SEL)732は入
力端子(1)から入力されるデータを選択して出力端子
(X)から出力する。When the access source trace signal (d) is set to logic "1", the selector (SEL) 731 selects the data input from the input terminal (1) and outputs it from the output terminal (X). Access source trace signal (d)
If either of the access destination trace signal (e) and the access destination trace signal (e) is set to logic "1", the selector (SEL) 732 selects the data input from the input terminal (1) and outputs it from the output terminal (X). .
【0038】かかる状態で、プロセッサ2が命令をフェ
ッチすると、トレース装置3がプロセッサ2のプログラ
ム走行状態を監視し、プロセッサ出力アドレス(f)、
命令フェッチ信号(g)およびラッチタイミング信号
(i)等を領域指定部7に入力する。In this state, when the processor 2 fetches an instruction, the trace unit 3 monitors the program running state of the processor 2 and outputs the processor output address (f),
The instruction fetch signal (g), the latch timing signal (i), etc. are input to the area designating section 7.
【0039】領域指定部7においては、比較部712が
入力されるプロセッサ出力アドレス(f)を、レジスタ
702に設定されているアクセス元トレース先頭アドレ
ス/終了アドレス(b)と比較し、プロセッサ出力アド
レス(f)がアクセス元トレース先頭アドレス/終了ア
ドレス(b)により指定されるアクセス元領域(SA)
内に存在すると認識すると、出力する出力信号q712 を
論理“1”に設定する。In the area designating unit 7, the processor output address (f) input to the comparing unit 712 is compared with the access source trace start address / end address (b) set in the register 702 to obtain the processor output address. (F) is the access source area (SA) specified by the access source trace start address / end address (b)
When it is recognized that the output signal q 712 exists, the output signal q 712 to be output is set to the logic "1".
【0040】また領域指定部7に入力される命令フェッ
チ信号(g)およびラッチタイミング信号(i)が論理
“1”に設定されると、ゲート721の出力信号q721
が論理“1”に設定され、レジスタ704およびフリッ
プフロップ(FF)761に入力される。Further when the instruction fetch signal is input to the area specifying unit 7 (g) and latch timing signal (i) is set to a logic "1", the output signal q 721 of the gate 721
Is set to logic “1” and input to the register 704 and the flip-flop (FF) 761.
【0041】レジスタ704は、出力信号q721 が論理
“1”に設定されると、レジスタ704に入力されるプ
ロセッサ出力アドレス(f)を蓄積する。セレクタ(S
EL)731は、入力端子(1)に入力されるレジスタ
704に蓄積されているプロセッサ出力アドレス(f)
を、出力端子(X)から出力し、前述と同様に、上位三
ビット(f17乃至f19)を読出専用メモリ(ROM)7
51により変換した後、トレースメモリ(TRM)31
にアドレスビット(A0 乃至A19)として入力する。The register 704 stores the processor output address (f) input to the register 704 when the output signal q 721 is set to logic "1". Selector (S
EL) 731 is the processor output address (f) stored in the register 704 which is input to the input terminal (1).
From the output terminal (X), and the upper 3 bits (f 17 to f 19 ) are read-only memory (ROM) 7 in the same manner as described above.
Trace memory (TRM) 31 after conversion by 51
Address bits (A 0 to A 19 ).
【0042】次に、プロセッサ2がフェッチした命令に
指定されたオペランド(データ)にアクセスすると、ト
レース装置3がプロセッサ2のプログラム走行状態を監
視し、プロセッサ出力アドレス(f)およびオペランド
アクセス信号(h)等を領域指定部7に入力する。Next, when the processor 2 accesses the operand (data) designated by the fetched instruction, the trace device 3 monitors the program running state of the processor 2, and outputs the processor output address (f) and the operand access signal (h). ) Or the like is input to the area designation unit 7.
【0043】領域指定部7においては、比較部713が
入力されるプロセッサ出力アドレス(f)を、レジスタ
703に設定されているアクセス先トレース先頭アドレ
ス/終了アドレス(c)と比較し、プロセッサ出力アド
レス(f)がアクセス先トレース先頭アドレス/終了ア
ドレス(c)により指定されるアクセス先領域(DA)
内に存在すると認識すると、出力する出力信号q713 を
論理“1”に設定する。In the area designation unit 7, the processor output address (f) input to the comparison unit 713 is compared with the access destination trace start address / end address (c) set in the register 703 to determine the processor output address. (F) is the access destination area (DA) specified by the access destination trace start address / end address (c)
When it recognizes that the output signal q 713 exists, the output signal q 713 to be output is set to logic "1".
【0044】ゲート723は、フリップフロップ(F
F)761の出力信号q761 、比較部713の出力信号
q713 が論理“1”に設定され、且つ入力されるオペラ
ンドアクセス信号(h)が論理“1”に設定されると、
出力信号q723 を論理“1”に設定する。The gate 723 is a flip-flop (F
The output signal q 761 of F) 761, the output signal q 713 of comparator 713 is set to a logic "1", and the operand access signal input (h) is set to a logic "1",
Set output signal q 723 to logic "1".
【0045】セレクタ(SEL)732は、入力端子
(1)に入力される出力信号q723 (論理“1”)を出
力端子(X)から出力し、書込制御部741に入力す
る。書込制御部741は、セレクタ(SEL)732か
ら出力信号q723 (論理“1”)を入力されると、トレ
ースメモリ(TRM)31の入力端子(WE)に入力す
る書込信号(we)を論理“1”に設定する。The selector (SEL) 732 outputs the output signal q 723 (logic “1”) input to the input terminal (1) from the output terminal (X) and inputs it to the write control section 741. When the output signal q 723 (logic “1”) is input from the selector (SEL) 732, the write control unit 741 inputs the write signal (we) input to the input terminal (WE) of the trace memory (TRM) 31. Is set to logic "1".
【0046】その結果、トレースメモリ(TRM)31
には、レジスタ703に設定されているアクセス先トレ
ース先頭アドレス/終了アドレス(c)の領域内に存在
するデータにアクセスした命令をフェッチした際のプロ
セッサ出力アドレス(f)が、読出専用メモリ(RO
M)751により変換されてアドレスビット(A0 乃至
A19)として入力されると共に、トレースデータ信号
(j)(=論理“1”)が入力端子(DI)に入力さ
れ、マップトレース方式で記録される。As a result, the trace memory (TRM) 31
Indicates that the processor output address (f) at the time of fetching the instruction that accesses the data existing in the area of the access destination trace start address / end address (c) set in the register 703 is the read-only memory (RO).
M) 751 is converted and input as address bits (A 0 to A 19 ), and a trace data signal (j) (= logical “1”) is input to an input terminal (DI) and recorded by a map trace method. To be done.
【0047】次に、トレースモード(M)としてアクセ
ス先トレースを指定したコマンドが、ワークステーショ
ン5から入力された場合を説明する。トレース装置3
は、受信したコマンドを解析し、コマンド種別(CM)
がマップトレースコマンドであり、更にトレースモード
(M)がアクセス先トレースと認識すると、受信コマン
ドのアクセス元領域(SA)に指定されているアクセス
元トレース先頭アドレス/終了アドレス(b)を領域指
定部7内のレジスタ702に設定し、また受信コマンド
のアクセス先領域(DA)に指定されているアクセス先
トレース先頭アドレス/終了アドレス(c)をレジスタ
703に設定し、レジスタ701には何も設定せず、更
に領域指定部7に入力するアクセス先トレース信号
(e)を論理“1”に設定し、アクセス元トレース信号
(d)を論理“0”の儘とする。Next, a case will be described in which a command specifying the access destination trace as the trace mode (M) is input from the workstation 5. Trace device 3
Analyzes the received command, and the command type (CM)
Is a map trace command, and when the trace mode (M) recognizes that it is an access destination trace, the access source trace start address / end address (b) designated in the access source area (SA) of the received command is assigned to the area designating section. 7 is set in the register 702, the access destination trace start address / end address (c) specified in the access destination area (DA) of the received command is set in the register 703, and nothing is set in the register 701. Instead, the access destination trace signal (e) input to the area designating section 7 is set to logic "1", and the access source trace signal (d) is set to logic "0".
【0048】またトレース装置3は、前述の如く、トレ
ースメモリ(TRM)31の全記憶領域を論理“0”に
初期設定した後、トレースデータ信号(j)を論理
“1”に設定する。As described above, the trace device 3 initializes the entire storage area of the trace memory (TRM) 31 to logic "0" and then sets the trace data signal (j) to logic "1".
【0049】アクセス元トレース信号(d)が論理
“0”に設定されると、セレクタ(SEL)731は入
力端子(0)から入力されるデータを選択して出力端子
(X)から出力し、またアクセス元トレース信号(d)
およびアクセス先トレース信号(e)の何れかが論理
“1”に設定されると、セレクタ(SEL)732は入
力端子(1)から入力されるデータを選択して出力端子
(X)から出力する。When the access source trace signal (d) is set to logic "0", the selector (SEL) 731 selects the data input from the input terminal (0) and outputs it from the output terminal (X). Access source trace signal (d)
If either of the access destination trace signal (e) and the access destination trace signal (e) is set to logic "1", the selector (SEL) 732 selects the data input from the input terminal (1) and outputs it from the output terminal (X). .
【0050】かかる状態で、プロセッサ2が命令をフェ
ッチすると、トレース装置3がプロセッサ出力アドレス
(f)、命令フェッチ信号(g)およびラッチタイミン
グ信号(i)等を領域指定部7に入力する。When the processor 2 fetches an instruction in such a state, the trace device 3 inputs the processor output address (f), the instruction fetch signal (g), the latch timing signal (i) and the like to the area designating section 7.
【0051】領域指定部7においては、比較部712が
入力されるプロセッサ出力アドレス(f)を、レジスタ
702に設定されているアクセス元トレース先頭アドレ
ス/終了アドレス(b)と比較し、プロセッサ出力アド
レス(f)がアクセス元トレース先頭アドレス/終了ア
ドレス(b)により指定されるアクセス元領域(SA)
内に存在すると認識すると、出力する出力信号q712 を
論理“1”に設定する。In the area designation unit 7, the processor output address (f) input to the comparison unit 712 is compared with the access source trace start address / end address (b) set in the register 702, and the processor output address (F) is the access source area (SA) specified by the access source trace start address / end address (b)
When it is recognized that the output signal q 712 exists, the output signal q 712 to be output is set to the logic "1".
【0052】また領域指定部7に入力される命令フェッ
チ信号(g)およびラッチタイミング信号(i)が論理
“1”に設定されると、ゲート721の出力信号q721
が論理“1”に設定され、レジスタ704およびフリッ
プフロップ(FF)761に入力される。[0052] Also, when an instruction fetch signal is input to the area specifying unit 7 (g) and latch timing signal (i) is set to a logic "1", the output signal q 721 of the gate 721
Is set to logic “1” and input to the register 704 and the flip-flop (FF) 761.
【0053】また入力されたプロセッサ出力アドレス
(f)は、セレクタ(SEL)731と読出専用メモリ
(ROM)751とを介してトレースメモリ(TRM)
31に伝達されるが、現段階では入力端子(WE)に書
込信号(we)が入力されていない為、トレースデータ
信号(j)(=論理“1”)が記録されることは無い。The input processor output address (f) is passed through the selector (SEL) 731 and the read-only memory (ROM) 751 to the trace memory (TRM).
However, since the write signal (we) is not input to the input terminal (WE) at this stage, the trace data signal (j) (= logical “1”) is not recorded.
【0054】またレジスタ704は、出力信号q721 が
論理“1”に設定されると、レジスタ704に入力され
るプロセッサ出力アドレス(f)を蓄積するが、セレク
タ(SEL)731が入力端子(1)に入力されるデー
タを選択していない為、トレースメモリ(TRM)31
に伝達されることは無い。When the output signal q 721 is set to the logic "1", the register 704 stores the processor output address (f) input to the register 704, but the selector (SEL) 731 inputs the input terminal (1). ), The trace data (TRM) 31
Will not be transmitted to.
【0055】次に、プロセッサ2がフェッチした命令に
指定されたオペランド(データ)にアクセスすると、ト
レース装置3がプロセッサ2のプログラム走行状態を監
視し、プロセッサ出力アドレス(f)およびオペランド
アクセス信号(h)等を領域指定部7に入力する。Next, when the processor 2 accesses the operand (data) designated by the fetched instruction, the trace device 3 monitors the program running state of the processor 2, and outputs the processor output address (f) and the operand access signal (h). ) Or the like is input to the area designation unit 7.
【0056】領域指定部7においては、セレクタ(SE
L)731が、入力端子(0)に入力されるプロセッサ
出力アドレス(f)を出力端子(X)から出力し、上位
3ビット(f17乃至f19)のみを読出専用メモリ(RO
M)751により所要の変換を施した後、トレースメモ
リ(TRM)31にアドレスビット(A0 乃至A19)と
して入力し、また比較部713が、入力されるプロセッ
サ出力アドレス(f)を、レジスタ703に設定されて
いるアクセス先トレース先頭アドレス/終了アドレス
(c)と比較し、プロセッサ出力アドレス(f)がアク
セス先トレース先頭アドレス/終了アドレス(c)によ
り指定されるアクセス先領域(DA)内に存在すると認
識すると、出力する出力信号q713 を論理“1”に設定
する。In the area designating section 7, the selector (SE
L) 731 outputs the processor output address (f) input to the input terminal (0) from the output terminal (X), and only the upper 3 bits (f 17 to f 19 ) are read-only memory (RO).
M) 751 performs necessary conversion, and then inputs the address bits (A 0 to A 19 ) to the trace memory (TRM) 31, and the comparison unit 713 registers the input processor output address (f) with the register. In the access destination area (DA) in which the processor output address (f) is specified by the access destination trace start address / end address (c) by comparing with the access destination trace start address / end address (c) set in 703. When it is recognized that the output signal q 713 exists, the output signal q 713 to be output is set to the logic “1”.
【0057】ゲート723は、フリップフロップ(F
F)761の出力信号q761 、比較部713の出力信号
q713 が論理“1”に設定され、且つ入力されるオペラ
ンドアクセス信号(h)が論理“1”に設定されると、
出力信号q723 を論理“1”に設定する。The gate 723 is a flip-flop (F
The output signal q 761 of F) 761, the output signal q 713 of comparator 713 is set to a logic "1", and the operand access signal input (h) is set to a logic "1",
Set output signal q 723 to logic "1".
【0058】セレクタ(SEL)732は、入力端子
(1)に入力される出力信号q723 (論理“1”)を出
力端子(X)から出力し、書込制御部741に入力す
る。書込制御部741は、セレクタ(SEL)732か
ら出力信号q723 (論理“1”)を入力されると、トレ
ースメモリ(TRM)31の入力端子(WE)に入力す
る書込信号(we)を論理“1”に設定する。The selector (SEL) 732 outputs the output signal q 723 (logic “1”) input to the input terminal (1) from the output terminal (X) and inputs it to the write control unit 741. When the output signal q 723 (logic “1”) is input from the selector (SEL) 732, the write control unit 741 inputs the write signal (we) input to the input terminal (WE) of the trace memory (TRM) 31. Is set to logic "1".
【0059】その結果、トレースメモリ(TRM)31
には、レジスタ702に設定されているアクセス元トレ
ース先頭アドレス/終了アドレス(b)の領域内に存在
する命令がアクセスした、レジスタ703に設定されて
いるアクセス先トレース先頭アドレス/終了アドレス
(c)の領域内に存在するデータのプロセッサ出力アド
レス(f)が、読出専用メモリ(ROM)751により
変換されてアドレスビット(A0 乃至A19)として入力
されると共に、トレースデータ信号(j)(=論理
“1”)が入力端子(DI)に入力され、マップトレー
ス方式で記録される。As a result, the trace memory (TRM) 31
Is accessed by an instruction existing in the area of the access source trace start address / end address (b) set in the register 702, and the access destination trace start address / end address (c) set in the register 703 is accessed. The processor output address (f) of the data existing in the area of is converted by the read only memory (ROM) 751 and input as address bits (A 0 to A 19 ), and the trace data signal (j) (= Logic "1") is input to the input terminal (DI) and recorded by the map trace method.
【0060】図6および図7には、三種類のトレースモ
ード(M)、即ち命令トレース、アクセス元トレースお
よびアクセス先トレースにおけるトレース対象が例示さ
れている。FIGS. 6 and 7 exemplify trace objects in three kinds of trace modes (M), that is, instruction trace, access source trace and access destination trace.
【0061】図6において、アクセス元領域(SA)=
0語乃至(1M−1)語〔但しMはメガを示す〕に存在
する命令(k1 )乃至(k4 )、アクセス元領域(S
A)=1M語乃至(2M−1)語に存在する命令
(k3 )乃至(k7 )、並びにアクセス元領域(SA)
=2M語乃至(3M−1)語に存在する命令(k8 )を
実行したプロセッサ2が、アクセス先領域(DA)=0
語乃至(1M−1)語に存在するデータ(p1 )乃至
(p3 )、アクセス先領域(DA)=1M語乃至(2M
−1)語に存在するデータ(p4 )および(p5 )、ア
クセス先領域(DA)=2M語乃至(3M−1)語に存
在するデータ(p6 )および(p7 )、並びにアクセス
先領域(DA)=3M語以上に存在するデータ(p8 )
に、それぞれアクセスしたとする。In FIG. 6, access source area (SA) =
Instructions (k 1 ) to (k 4 ) existing in 0 to (1M-1) words (where M represents a mega), access source area (S
A) = 1 instructions (k 3 ) to (k 7 ) existing in 1M word to (2M−1) word, and access source area (SA)
= 2M words to (3M-1) words, the processor 2 that has executed the instruction (k 8 ) has access destination area (DA) = 0.
Term to (1M-1) data present in the word (p 1) to (p 3), access area (DA) = 1M word to (2M
-1) data (p 4 ) and (p 5 ) existing in word, access destination area (DA) = data (p 6 ) and (p 7 ) existing in 2M word to (3M-1) word, and access Destination area (DA) = data existing in 3M words or more (p 8 )
To each of the
【0062】かかる場合に、図7に示す如く、トレース
モード(M)として命令トレースを指定した場合に、ア
クセス元領域(SA)=0語乃至(1M−1)語を指定
すると命令(k1 )乃至(k4 )のアドレスが記録さ
れ、また命令トレース先頭アドレス/終了アドレス
(a)としてアクセス元領域(SA)=1メガ語乃至
(2M−1)語を指定すると命令(k5 )乃至(k7 )
のアドレスが記録され、更に命令トレース先頭アドレス
/終了アドレス(a)としてアクセス元領域(SA)=
2M語乃至(3M−1)語を指定すると命令(k8 )の
アドレスが記録される。In such a case, as shown in FIG. 7, when the instruction trace is designated as the trace mode (M) and the access source area (SA) = 0 word to (1M-1) word is designated, the instruction (k 1 ) To (k 4 ) addresses are recorded, and if the access source area (SA) = 1 megaword to (2M−1) words is specified as the instruction trace start address / end address (a), instructions (k 5 ) to (K 7 )
Address is recorded, and the access source area (SA) = as the instruction trace start address / end address (a)
2M word to (3M-1) words and designating an instruction address of (k 8) is recorded.
【0063】またトレースモード(M)としてアクセス
元トレースを指定し、且つアクセス先領域(DA)=1
M語乃至(2M−1)語を指定した場合に、アクセス元
領域(SA)=0語乃至(1M−1)語を指定すると命
令(k3 )のアドレスが記録され、またアクセス元領域
(SA)=1M語乃至(2M−1)語を指定すると命令
(k7 )のアドレスが記録され、更にアクセス元領域
(SA)=2M語乃至(3M−1)語を指定すると記録
される命令は存在しない。The access source trace is specified as the trace mode (M), and the access destination area (DA) = 1.
When M words to (2M-1) words are specified and the access source area (SA) = 0 words to (1M-1) words are specified, the address of the instruction (k 3 ) is recorded, and the access source area (SA) is also recorded. SA) = 1M word to (2M-1) word is specified, the address of the instruction (k 7 ) is recorded, and access source area (SA) = 2M word to (3M-1) word is specified. Does not exist.
【0064】更にトレースモード(M)としてアクセス
先トレースを指定し、且つアクセス元領域(SA)=0
語乃至(1M−1)語を指定した場合に、アクセス先領
域(DA)=0語乃至(1M−1)語を指定するとデー
タ(p1 )および(p2 )のアドレスが記録され、また
アクセス先領域(DA)=1M語乃至(2M−1)語を
指定するとデータ(p4 )のアドレスが記録され、更に
アクセス先領域(DA)=2M語乃至(3M−1)語を
指定すると記録されるデータは存在しない。Further, the access destination trace is designated as the trace mode (M), and the access source area (SA) = 0.
When the word to (1M-1) word is specified and the access destination area (DA) = 0 word to (1M-1) word is specified, the addresses of the data (p 1 ) and (p 2 ) are recorded, and When the access destination area (DA) = 1M word to (2M-1) word is specified, the address of the data (p 4 ) is recorded, and when the access destination area (DA) = 2M word to (3M-1) word is specified. There is no data recorded.
【0065】以上の説明から明らかな如く、本実施例に
よれば、トレースモード(M)として命令トレースを指
定し、且つアクセス元領域(SA)を指定することによ
り、または、トレースモード(M)としてアクセス元ト
レースまたはアクセス先トレースを指定し、且つアクセ
ス元領域(SA)とアクセス先領域(DA)とを指定す
ることにより、より目的に合致したきめ細かなトレース
情報がマップトレース方式により記録可能となる。As is clear from the above description, according to the present embodiment, the instruction mode is designated as the trace mode (M) and the access source area (SA) is designated, or the trace mode (M). By specifying the access source trace or the access destination trace as and the access source area (SA) and the access destination area (DA), detailed trace information more suited to the purpose can be recorded by the map trace method. Become.
【0066】なお、図2乃至図7はあく迄本発明の一実
施例に過ぎず、例えばアクセス元領域(SA)に存在す
る命令(k)およびアクセス先領域(DA)に存在する
データ(p)は図示されるものに限定されることは無
く、他に幾多の変形が考慮されるが、何れの場合にも本
発明の効果は変わらない。またプロセッサ出力アドレス
(f)の変換形式は図示されるものに限定されることは
無く、他に幾多の変形が考慮されるが、何れの場合にも
本発明の効果は変わらない。更に本発明の対象となる情
報収集領域指定手段300および400は、図示される
領域指定部7に限定されることは無く、他に幾多の変形
が考慮されるが、何れの場合にも本発明の効果は変わら
ない。更に本発明の対象となるプログラム動作収集装置
200は、図示されるプログラムデバッグ装置1に限定
されぬことは言う迄も無い。It is to be noted that FIGS. 2 to 7 are merely examples of the present invention until now, and for example, the instruction (k) existing in the access source area (SA) and the data (p existing in the access destination area (DA)). ) Is not limited to what is shown in the figure, and many other modifications can be considered, but in any case, the effect of the present invention does not change. Further, the conversion format of the processor output address (f) is not limited to that shown in the figure, and many other modifications can be considered, but in any case, the effect of the present invention does not change. Further, the information collection area designating means 300 and 400 which is the object of the present invention is not limited to the area designating part 7 shown in the figure, and various modifications can be considered. The effect of does not change. Further, it goes without saying that the program operation collecting apparatus 200 which is the object of the present invention is not limited to the program debug apparatus 1 shown in the figure.
【0067】[0067]
【発明の効果】以上、本発明によれば、前記プログラム
動作収集装置において、アクセスされるデータを指定し
てアクセスする命令の番地を記録し、或いはアクセスす
る命令を指定してアクセスされるデータの番地を記録す
る等、所要の情報のみを的確に収集可能となり、当該プ
ログラム動作収集装置によるプログラムデバッグ効率が
大幅に向上する。As described above, according to the present invention, in the program operation collecting apparatus, the address of the instruction to be accessed by designating the data to be accessed is recorded, or the data to be accessed by designating the instruction to be accessed is recorded. It becomes possible to accurately collect only necessary information such as recording the address, and the program debugging efficiency by the program operation collecting apparatus is significantly improved.
【図1】 本発明の原理を示す図FIG. 1 is a diagram showing the principle of the present invention.
【図2】 本発明の一実施例によるプログラムデバッグ
装置を示す図FIG. 2 is a diagram showing a program debug device according to an embodiment of the present invention.
【図3】 本発明の一実施例によるコマンド形式を示す
図FIG. 3 is a diagram showing a command format according to an embodiment of the present invention.
【図4】 図2における領域指定部の一例を示す図FIG. 4 is a diagram showing an example of an area designating section in FIG.
【図5】 図4における読出専用メモリの入出力情報の
一例を示す図5 is a diagram showing an example of input / output information of the read-only memory in FIG.
【図6】 アクセス元命令とアクセス先データとの関係
の一例を示す図FIG. 6 is a diagram showing an example of a relationship between an access source instruction and access destination data.
【図7】 図6におけるトレース対象の一例を示す図7 is a diagram showing an example of a trace target in FIG.
【図8】 従来あるプログラムデバッグ装置の一例を示
す図FIG. 8 is a diagram showing an example of a conventional program debug device.
【図9】 マップトレースによる情報収集の一例を示す
図で、同図(a) はトレース対象プログラム走行経過の一
例を示し、同図(b) は収集結果の一例を示すFIG. 9 is a diagram showing an example of information collection by map trace, in which FIG. 9A shows an example of a trace target program running process, and FIG. 9B shows an example of a collection result.
1 プログラムデバッグ装置 2 プロセッサ 3 トレース装置 4 切替装置 5 ワークステーション 6 通信制御装置 7 領域指定部 31 トレースメモリ(TRM) 100 処理装置 200 プログラム動作収集装置 300、400 情報収集領域指定手段 701乃至705 レジスタ 711乃至713 比較部 721乃至723 ゲート 731、732 セレクタ(SEL) 741 書込制御部 751 読出専用メモリ(ROM) 761 フリップフロップ(FF) 1 Program Debugging Device 2 Processor 3 Tracing Device 4 Switching Device 5 Workstation 6 Communication Control Device 7 Area Designating Unit 31 Trace Memory (TRM) 100 Processing Device 200 Program Action Collecting Device 300, 400 Information Collecting Region Designating Means 701 to 705 Register 711 To 713 comparator 721 to 723 gates 731 and 732 selector (SEL) 741 write controller 751 read only memory (ROM) 761 flip-flop (FF)
Claims (2)
地をマップトレース方式により記録するプログラム動作
収集装置(200)において、 予め指定された記憶領域内のデータにアクセスした、予
め指定された記憶領域内の命令のアドレスを記録する情
報収集領域指定手段(300)を設けることを特徴とす
る領域指定トレース方式。1. A program operation collection device (200) for recording a program running address of a processing device (100) by a map trace method, wherein a data in a predesignated storage region is accessed and a predesignated storage region is accessed. Area designation trace system characterized by comprising an information collection area designation means (300) for recording the address of the instruction.
地をマップトレース方式により記録するプログラム動作
収集装置(200)において、 予め指定された記憶領域内の命令からアクセスされた、
予め指定された記憶領域内のデータのアドレスを記録す
る情報収集領域指定手段(400)を設けることを特徴
とする領域指定トレース方式。2. A program operation collection device (200) for recording a program running address of a processing device (100) by a map trace method, which is accessed from an instruction in a prespecified storage area,
An area designation trace system characterized by comprising an information collection area designation means (400) for recording an address of data in a designated storage area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4157110A JPH064342A (en) | 1992-06-17 | 1992-06-17 | Area specified trace method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4157110A JPH064342A (en) | 1992-06-17 | 1992-06-17 | Area specified trace method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH064342A true JPH064342A (en) | 1994-01-14 |
Family
ID=15642452
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4157110A Withdrawn JPH064342A (en) | 1992-06-17 | 1992-06-17 | Area specified trace method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH064342A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010123050A (en) * | 2008-11-21 | 2010-06-03 | Renesas Technology Corp | Semiconductor device |
-
1992
- 1992-06-17 JP JP4157110A patent/JPH064342A/en not_active Withdrawn
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010123050A (en) * | 2008-11-21 | 2010-06-03 | Renesas Technology Corp | Semiconductor device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106484618A (en) | A kind of based on memory access rely on to parallel playback method and device | |
| JPH064342A (en) | Area specified trace method | |
| JPH08180094A (en) | Architecture simulator | |
| JPS60262251A (en) | Backup device for development of microprocessor | |
| JPS6020251A (en) | Jump instruction tracing system | |
| JPS5931740B2 (en) | Storage device control method | |
| RU2110088C1 (en) | Parallel processor with soft-wired structure | |
| JPH02197924A (en) | central processing unit | |
| JPS6152748A (en) | Trace selection system of microprogram development device | |
| JPS59112350A (en) | Supervising and controlling system of program | |
| SU1327112A1 (en) | Apparatus for debugging programs | |
| SU1397922A1 (en) | Device for shaping interrupt signal in program debugging | |
| JP2727947B2 (en) | Address trace method | |
| JP2752732B2 (en) | Trace device | |
| JPH06139105A (en) | Device for tracing software | |
| SU1737454A1 (en) | Device for storing route of interprocessor exchanges in multiprocessor systems | |
| JPH0535547A (en) | Tracer memory capable of designation of trace information | |
| JP2895892B2 (en) | Data processing device | |
| JP3457535B2 (en) | Communication device between processors | |
| CN119960826A (en) | Host instruction processing system, method, storage chip and storage medium | |
| JPH01161449A (en) | Tracing device | |
| JPH05313954A (en) | Multiprocessor and its information collection and memory operation method | |
| JPH07295832A (en) | Computer simulator | |
| JPS60169946A (en) | Task control system | |
| JPS6249543A (en) | Multi-way branching system for module |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19990831 |