JPH01158541A - Program travelling route collecting system - Google Patents

Program travelling route collecting system

Info

Publication number
JPH01158541A
JPH01158541A JP62317984A JP31798487A JPH01158541A JP H01158541 A JPH01158541 A JP H01158541A JP 62317984 A JP62317984 A JP 62317984A JP 31798487 A JP31798487 A JP 31798487A JP H01158541 A JPH01158541 A JP H01158541A
Authority
JP
Japan
Prior art keywords
trace
memory
processing unit
arithmetic processing
program
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
JP62317984A
Other languages
Japanese (ja)
Inventor
Yoshio Sakurai
櫻井 良雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62317984A priority Critical patent/JPH01158541A/en
Publication of JPH01158541A publication Critical patent/JPH01158541A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To freely refer with a trouble processing program by a arithmetic processing unit by preserving the travelling route of a program until an abnormality occurs at the program execution with the arithmetic processing unit, into a main memory. CONSTITUTION:A trace memory 4 composed of plural words to respond to the access from an arithmetic processing unit 1 to a main memory 2 and store the information related to the access is connected onto a processor bus 3 to connect the arithmetic processing unit 1 and the main memory 2. A means 5 to stop the storing of the information to a trace memory 4 with a signal 9 sent from the arithmetic processing unit 1 and transfer the information stored into the trace memory 4 through the processor bus 3 to the main memory 1 is provided. Thus, without limiting the type and quantity of the information necessary to analyze the program travelling route, and at the time of analyzing travelling route, the constitution to be able to refer freely with the trouble processing program, etc., executed in a data processor can be adopted and the program trouble can be efficiently analyzed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明4よ、プログラム走行ルートの収集方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention 4 relates to a method for collecting program running routes.

〔従来の技術〕[Conventional technology]

従来、この種のプログラム走行ルートの収集方式として
は、データ処理装置の外部にロジックアナライザの如き
、プログラム走行ルートのトレース装置を接続し、プロ
グラムの走行ルートをオフライン的に保存する収集方式
が良く知られている。
Conventionally, a well-known method for collecting this type of program running route is to connect a program running route tracing device such as a logic analyzer to the outside of the data processing device and save the program running route offline. It is being

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の方式は、データ処理装置の外部にトレー
ス装置を接続する構成となっているので、接続を行うた
めのリード線の本数制限、またリード線の線長制限など
の物理的な制限から、プログラム走行ルートを解析する
に必要な最小限の情報しか収集できないという欠点があ
った。
The conventional method described above has a configuration in which the tracing device is connected to the outside of the data processing device, so there are physical limitations such as a limit on the number of lead wires for connection and a limit on the length of the lead wires. However, the drawback was that only the minimum amount of information needed to analyze the program travel route could be collected.

また、収集された情報そのものがデータ処理装置とは全
く別個の装置内にあるため、プログラム走行ルートの解
析に当って、データ処理装置内で実行されたプログラム
との照合をオフライン的にしか実行できず解析の為に熟
練度の高い技術者を必要とするなどといった欠点もあっ
た。
In addition, since the collected information itself is in a device completely separate from the data processing device, when analyzing the program running route, comparison with the program executed in the data processing device can only be performed offline. There were also drawbacks, such as the need for highly skilled engineers to perform the analysis.

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

本発明の方式は、演算処理装置と主記憶装置とを接続す
るプロセッサバス上に接続され、演算処理装置から主記
憶装置へのアクセスに反応し、アクセスにかかわる情報
をサイクリックに格納する複数語からなるトレースメモ
リと、 演算処理装置から送出される信号によりトレースメモリ
への情報の格納を中断し、トレースメモリに格納された
情報をプロセッサバスを経由して主記憶装置へ転送する
手段とを有している。
The system of the present invention is a multi-word processor that is connected to a processor bus that connects an arithmetic processing unit and a main memory, responds to access from the arithmetic processing unit to the main memory, and cyclically stores information related to the access. and a means for interrupting the storage of information in the trace memory by a signal sent from the arithmetic processing unit and transferring the information stored in the trace memory to the main storage device via the processor bus. are doing.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例であるデータ処理装置のブ
ロック図である。
FIG. 1 is a block diagram of a data processing device that is an embodiment of the present invention.

本データ処理装置は、演算処理装置1と主記憶装置2が
、プロセッサバス3により接続され、更にプロセッサバ
ス3には、トレースメモリ4とトレースメモリ制御回路
5が接続される。
In this data processing device, an arithmetic processing unit 1 and a main storage device 2 are connected by a processor bus 3, and a trace memory 4 and a trace memory control circuit 5 are further connected to the processor bus 3.

トレースメモリ制御回路5は、トレースメモリ4と、メ
モリアドレス線6.メモリ書込みイネーブル線7および
メモリ読出しイネーブル線8で接続されており、更に演
算処理装置1とはトレース中断指示線9で接続されてい
る。
The trace memory control circuit 5 includes a trace memory 4 and a memory address line 6 . It is connected by a memory write enable line 7 and a memory read enable line 8, and is further connected to the arithmetic processing unit 1 by a trace interruption instruction line 9.

第2図は、トレースメモリ制御回路5を更に詳細に説明
するブロック図である。
FIG. 2 is a block diagram illustrating the trace memory control circuit 5 in more detail.

第2図において、トレースメモリ制御回路5は、プロセ
ッサバス3に接続され、トレースメモリ4にメモリ書込
みイネーブル線7により書込みを指示するトレース条件
判定回路51と、トレース条件判定回路51に接続され
トレースメモリ4にメモリアドレス線6を供給するトレ
ースメモリアドレスレジスタ52と、演算処理装置1か
らのトレース中断指示線9に接続されプロセッサバス3
を経由して、トレースメモリ4に格納されたトレース情
報の主記憶装置2への転送を制御するプロセッサバス制
御回路53とを含んでい゛る。゛プロセッサバス制御回
路53は、また、トレースメモリjに対し、トレースメ
モリ読出しイネーブル線8を供給するとともにトレース
メモリアドレスレジスタ52への+1歩歩進量54bも
供給している。更に、トレース中断指示線9は、゛トレ
ース条件判定回路51にも接続されており、トレースメ
モリ4へのトレース情報の書込みの中断を指示する。
In FIG. 2, a trace memory control circuit 5 includes a trace condition determining circuit 51 connected to the processor bus 3 and instructing writing to the trace memory 4 via a memory write enable line 7; A trace memory address register 52 that supplies the memory address line 6 to the processor bus 3 is connected to the trace interrupt instruction line 9 from the arithmetic processing unit 1.
The processor bus control circuit 53 controls the transfer of trace information stored in the trace memory 4 to the main storage device 2 via the processor bus control circuit 53 . The processor bus control circuit 53 also supplies the trace memory read enable line 8 to the trace memory j, and also supplies the +1 increment amount 54b to the trace memory address register 52. Furthermore, the trace interruption instruction line 9 is also connected to the trace condition determination circuit 51, and instructs the writing of trace information to the trace memory 4 to be interrupted.

次に実施例の動作について、第1図及び第2図を参照し
て説明する。
Next, the operation of the embodiment will be explained with reference to FIGS. 1 and 2.

データ処理装置は、主記憶装置2内に格納されたプログ
ラムを演算処理装置1が逐−取り出、し、実行するもの
であって、この場合、プロセッサバス3の上には、主記
憶装置2のメモリアドレス。
In the data processing device, the arithmetic processing device 1 retrieves programs stored in the main storage device 2 one by one and executes them. memory address.

読取りデータあるいは演算処理装置1から主記憶装置2
への書込みデータ、更には演算処理装置1の主記憶装置
2へのアクセス種別識別信号などが送受信されている。
Read data or arithmetic processing unit 1 to main storage unit 2
Data to be written to the main memory 2 of the arithmetic processing unit 1 as well as an access type identification signal to the main memory 2 of the arithmetic processing unit 1 are transmitted and received.

このアクセス種別識別信号には、命令フェッチ実行中、
オペランドストア実行中東にはジャンプ先命令フェッチ
実行中などのアクセス識別を含んでおり、かかるアクセ
ス種別識別信号がトレース条件判定回路51において条
件判定され、プログラム走行ルート解析に必要なデータ
であった場合にのみメモリ書込みイネーブル線7をオン
とすることでプロセッサバス3上のデータをトレースメ
モリ4に書込むよう構成される。
This access type identification signal includes instructions such as
The operand store execution middle includes access identification such as when a jump destination instruction is being fetched, and the access type identification signal is subjected to a condition judgment in the trace condition judgment circuit 51, and if the data is necessary for analyzing the program running route. The data on the processor bus 3 is written into the trace memory 4 by turning on the memory write enable line 7 only.

このトレースメモリ4への書込み動作が完了すると、ト
レース条件判定回路51は、トレースメモリアドレスレ
ジスタ52に+1歩進信号54aを出力し、トレースメ
モリ4に供給されるメモリアドレス線6を+1歩進する
ことで次のトレース情報の書込みに備える。
When the write operation to the trace memory 4 is completed, the trace condition determination circuit 51 outputs a +1 increment signal 54a to the trace memory address register 52, and increments the memory address line 6 supplied to the trace memory 4 by +1. This prepares for writing the next trace information.

このようなトレースメモリ4へのトレース情報の書込み
を繰り返し実行することで、複数語からなるトレースメ
モリは満杯の状態となるが、トレース中断指示線9がオ
ンとならない限りはトレースメモリ4への書込みが継続
される。すなわち、トレースメモリ4が満杯の状態にな
ると、トレースメモリアドレスレジスタ52は初期値に
戻り、トレースメモリ4のO番地からトレース情報の書
込みが行われる。
By repeatedly writing trace information to the trace memory 4 in this way, the trace memory consisting of multiple words becomes full, but unless the trace interrupt instruction line 9 is turned on, writing to the trace memory 4 will not be possible. will continue. That is, when the trace memory 4 becomes full, the trace memory address register 52 returns to its initial value, and trace information is written from address O of the trace memory 4.

このように構成することで、複数語からなるトレースメ
モリ4の内容は、常に最新のプログラムの走行ルート情
報に更新されることとなる。すなわち、トレースメモリ
アドレスレジスタ52の示すメモリアドレスから、トレ
ースメモリ4の記憶容量分情報が最新のプログラムの走
行ルート情報となっている。
With this configuration, the contents of the trace memory 4 consisting of a plurality of words are always updated to the latest program running route information. That is, the information corresponding to the storage capacity of the trace memory 4 from the memory address indicated by the trace memory address register 52 is the running route information of the latest program.

演算処理装置1におけるプログラム実行中に、プログラ
ム障害の割込みが発生した場合とか、データ処理装置全
体の動作が異常状態となりシステムの再構成を行うとい
った緊急制御動作の起動された場合とか、といったプロ
グラム実行に異常が発生すると、演算処理装置1はトレ
ース中断指示線9をオンとする。
Program execution occurs when a program failure interrupt occurs during program execution in the arithmetic processing unit 1, or when the operation of the entire data processing unit is in an abnormal state and an emergency control operation such as system reconfiguration is activated. When an abnormality occurs, the arithmetic processing unit 1 turns on the trace interruption instruction line 9.

このトレース中断指示線9がオンとなることで、トレー
ス条件判定回路51は、この時点以降に発生するトレー
ス条件の判定を禁止し、トレースメモリ4へのメモリ書
込みイネーブル線7をオフ状態のままとする。
By turning on this trace interruption instruction line 9, the trace condition determination circuit 51 prohibits determination of trace conditions occurring after this point, and keeps the memory write enable line 7 to the trace memory 4 in the off state. do.

一方、トレース中断指示線9を受信したプロセッサバス
制御回路53では、トレース情報を転送するための主記
憶装置2のアドレス情報をプロセッサバス3に出力する
とともにトレースメモリ4へのメモリ読出しイネーブル
線8をオンとし、トレースメモリ4からの読出しデータ
もまたプロセッサバス3上に出力することで、主記憶装
置2への書込み動作を実行する。
On the other hand, the processor bus control circuit 53 that has received the trace interruption instruction line 9 outputs the address information of the main storage device 2 for transferring trace information to the processor bus 3, and also outputs the memory read enable line 8 to the trace memory 4. By turning on the trace memory 4 and outputting read data from the trace memory 4 onto the processor bus 3, a write operation to the main memory device 2 is executed.

トレースメモリ4の1語分の主記憶装置2への書込み動
作が完了すると、+1歩進信号54bが出力され、トレ
ースメモリアドレスレジスタ52を+1歩進する。この
動作が、トレースメモリ4の語数骨だけ実行されること
で、主記憶装置2内に演算処理装置1でのプログラム実
行に異常が発生した直前までのプログラムの走行ルート
を保存することができる。
When the write operation for one word of the trace memory 4 to the main memory device 2 is completed, a +1 increment signal 54b is output, and the trace memory address register 52 is incremented by +1. By executing this operation for the number of words in the trace memory 4, it is possible to store in the main storage device 2 the running route of the program up to the point immediately before an abnormality occurred in program execution in the arithmetic processing unit 1.

すなわち、演算処理装置1でのプログラム実行に異常が
発生するまでのプログラムの走行ルートが主記憶装置2
内に保存され、演算処理装置1での障害処理プログラム
などで自由に参照できる状況となっている。
That is, the running route of the program until an abnormality occurs in program execution in the arithmetic processing unit 1 is stored in the main memory 2.
The information is stored in the computer and can be freely referenced in the troubleshooting program of the arithmetic processing unit 1.

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

以上、説明したように本発明は、演算処理装置と主記憶
装置とを接続するプロセッサバス上に演算処理装置から
主記憶装置へのアクセスに反応しこのアクセスにかかわ
る情報を格納する複数語からなるトレースメモリを接続
し、演算処理装置から送出される信号によりトレースメ
モリへの情報の格納を中断し、トレースメモリに格納さ
れた情報をプロセッサバスを経由して主記憶装置へ転送
する手段を設けることにより、プログラム走行ルートを
解析するに必要な情報の種類や量を制限することなく、
かつプログラム走行ルートの解析に当っては、データ処
理装置内で実行する障害処理プログラムなどで自由に参
照できる構成を採ることができ、効率的なプログラム障
害の解析手段を提供できる効果がある。
As explained above, the present invention consists of a plurality of words that respond to an access from the arithmetic processing unit to the main memory and store information related to this access on the processor bus that connects the arithmetic processing unit and the main memory. Providing means for connecting the trace memory, interrupting the storage of information in the trace memory by a signal sent from the arithmetic processing unit, and transferring the information stored in the trace memory to the main memory via the processor bus. This allows you to analyze program travel routes without limiting the type or amount of information required.
In addition, when analyzing a program running route, a configuration can be adopted that can be freely referenced by a fault processing program executed within a data processing device, and an efficient means for analyzing program faults can be provided.

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

第1図は本発明の一実施例であるデータ処理装置のブロ
ック図、第2図は第1図のトレースメモリ制御回路の詳
細を説明するブロック図である。 1・・・演算処理装置、2・・・主記憶装置、3・・・
プロセッサメモリ、4・・・トレースメモリ、5・・・
トレースメモリ制御回路、6・・・メモリアドレス線、
7・・・メモリ書込みイネーブル線、8・・・メモリ読
出しイネーブル線、9・・・トレース中断指示線、51
・・・トレース条件判定回路、52・・・トレースメモ
リアドレスレジスタ、53・・・プロセッサバス制御回
路、54a、5i4b−+1歩進信号。
FIG. 1 is a block diagram of a data processing device according to an embodiment of the present invention, and FIG. 2 is a block diagram illustrating details of the trace memory control circuit of FIG. 1. 1... Arithmetic processing unit, 2... Main storage device, 3...
Processor memory, 4...Trace memory, 5...
Trace memory control circuit, 6... memory address line,
7...Memory write enable line, 8...Memory read enable line, 9...Trace interruption instruction line, 51
. . . Trace condition determination circuit, 52 . . . Trace memory address register, 53 . . . Processor bus control circuit, 54a, 5i4b-+1 increment signal.

Claims (1)

【特許請求の範囲】  演算処理装置と主記憶装置とをプロセッサバスにより
接続してなるデータ処理装置にあって、前記プロセッサ
バスに接続され、前記演算処理装置から前記主記憶装置
へのアクセスに反応し、前記アクセスにかかわる情報を
サイクリックに格納する複数語からなるトレースメモリ
と、 前記演算処理装置から送出される信号により前記トレー
スメモリへの情報の格納を中断し、前記トレースメモリ
に格納された情報を前記プロセッサバスを経由して、前
記主記憶装置へ転送する手段とを有し、 前記演算処理装置内で実行されるプログラムの走行ルー
トを前記主記憶装置に保存することを特徴としたデータ
処理装置におけるプログラム走行ルートの収集方式。
[Scope of Claims] A data processing device comprising an arithmetic processing unit and a main storage device connected by a processor bus, the data processing device being connected to the processor bus and responding to accesses from the arithmetic processing device to the main storage device. a trace memory consisting of a plurality of words that cyclically stores information related to the access; and a signal sent from the arithmetic processing unit to interrupt the storage of the information in the trace memory, and means for transferring information to the main storage device via the processor bus, the data characterized in that a running route of a program executed in the arithmetic processing unit is stored in the main storage device. A method for collecting program running routes in a processing device.
JP62317984A 1987-12-15 1987-12-15 Program travelling route collecting system Pending JPH01158541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62317984A JPH01158541A (en) 1987-12-15 1987-12-15 Program travelling route collecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62317984A JPH01158541A (en) 1987-12-15 1987-12-15 Program travelling route collecting system

Publications (1)

Publication Number Publication Date
JPH01158541A true JPH01158541A (en) 1989-06-21

Family

ID=18094184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62317984A Pending JPH01158541A (en) 1987-12-15 1987-12-15 Program travelling route collecting system

Country Status (1)

Country Link
JP (1) JPH01158541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device
EP2025320A1 (en) 2007-08-10 2009-02-18 L'Oréal Assembly for packaging and applying a high-viscosity nail varnish

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device
EP2025320A1 (en) 2007-08-10 2009-02-18 L'Oréal Assembly for packaging and applying a high-viscosity nail varnish

Similar Documents

Publication Publication Date Title
JPH01173247A (en) slave control device
JPH01158541A (en) Program travelling route collecting system
JPH06342397A (en) Circuit device for mapping of logical address space
JPH11119992A (en) Trace controller for firmware
JPH0335327A (en) Majority decision fault processor
JPS59112350A (en) Supervising and controlling system of program
JPS6284354A (en) Trace instruction controlling system
JPS60157643A (en) Duplex structure computer
JP2506591B2 (en) Auxiliary processor
JPS59168999A (en) Memory monitoring circuit
JPS6127778B2 (en)
JPH01274251A (en) Activity history memory
JPS6053892B2 (en) processing equipment
JP2007156594A (en) Program trace apparatus and method
JPH0150936B2 (en)
JPH01274252A (en) Activity history memory
JPS6275744A (en) Program monitoring system
JPS6042968B2 (en) information processing equipment
JPS6019815B2 (en) Transfer control method
JPH0272443A (en) Data processor
WO1989002100A1 (en) Signal trace control system for pmc
JPH04296938A (en) Computer device
JPS6362048A (en) System for registering execution history of microprogram
JPS6381547A (en) Cache memory access system
JPH01288932A (en) Program running route collecting system