JPH0324640A - Debugging system for information processor - Google Patents

Debugging system for information processor

Info

Publication number
JPH0324640A
JPH0324640A JP1159269A JP15926989A JPH0324640A JP H0324640 A JPH0324640 A JP H0324640A JP 1159269 A JP1159269 A JP 1159269A JP 15926989 A JP15926989 A JP 15926989A JP H0324640 A JPH0324640 A JP H0324640A
Authority
JP
Japan
Prior art keywords
cache memory
data
address
trace
memory
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
JP1159269A
Other languages
Japanese (ja)
Inventor
Katsu Ueda
植田 克
Kazuyoshi Aizawa
相澤 一好
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
NEC Ibaraki Ltd
Original Assignee
NEC Corp
NEC Ibaraki 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 NEC Corp, NEC Ibaraki Ltd filed Critical NEC Corp
Priority to JP1159269A priority Critical patent/JPH0324640A/en
Publication of JPH0324640A publication Critical patent/JPH0324640A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To simply and surely obtain data necessary for the analysis of fault cause by controlling a selector corresponding to a debugging mode to transfer data between a CPU and a main storage by using a cache memory as by-pass and storing trace data in the cache memory. CONSTITUTION:A debugging mode FF 2 outputs a setting signal 103 by a debugging mode signal 102 outputted from a diagnostic processor 1 to control selectors 3, 7, 8. The selector 8 selects cache memory reading data 107 or data in a main storage reading data and main storage writing data 106 are sent from the CPU 5 to the main storage through a data bus 100 and the cache memory 4 is by-passed. On the other hand, the selectors 7, 3 respectively select a cache memory address 109 from the CPU 5 and trace data 104 and the data 104 are written in the memory 4. Thus, trace data necessary for the analysis of a fault cause can be easily and surely acquired in the cache memory 4 without increasing the number of hardwares.

Description

【発明の詳細な説明】 技術分野 本発明は情報処理装置のデバッグ方式に関し、特に中央
処理装置での障害発生時における障害原因の角q析に用
いられるトレースデータの格納方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a debugging method for an information processing device, and more particularly to a method for storing trace data used for angular analysis of the cause of a failure when a failure occurs in a central processing unit.

従来技術 従来、情報処理装置においては、中央処理装置に障害が
発生したときの障害原因解析用に専用のトレースメモリ
が設置され、該トレースメモリに中央処理装置の動作履
歴が毎クロツク記憶されていた。
BACKGROUND ART Conventionally, in an information processing device, a dedicated trace memory was installed for analyzing the cause of a failure when a failure occurred in the central processing unit, and the operation history of the central processing unit was stored in the trace memory every clock. .

このような従来の情報処理装置では、中央処理装置の動
作履歴を毎クロック記憶させるために専用のトレースメ
モリが設けられていたので、ハードウェア量が増大する
という欠点がある。
In such conventional information processing devices, a dedicated trace memory is provided to store the operation history of the central processing unit every clock, which has the disadvantage of increasing the amount of hardware.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、専用のトレースメモリを設けることなく
、中央処理装置での障害発生時における障害原因の解析
に必要なトレースデータを得ることができ、ハードウエ
ア量を削減することができる情報処理装置のデバッグ方
式の提供を目的とする。
Purpose of the Invention The present invention has been made in order to eliminate the above-mentioned drawbacks of the conventional system.The present invention has been made in order to eliminate the above-mentioned drawbacks of the conventional system. An object of the present invention is to provide a debugging method for an information processing device that can obtain the following information and reduce the amount of hardware.

発明の構戊 本発明による情報処理装置のデバッグ方式は、キャッシ
ュメモリを有する情報処理装置のデバッグ方式であって
、デバッグモード時に前記キャッシュメモリにアドレス
を供給するアドレス供給手段と、前記デバッグモード時
に中央処理装置と主記憶との間のデータ転送を前記キャ
ッシュメモリをバイパスして行わせるバイパス手段とを
設け、前記デバッグモード時に前記アドレス供給手段か
ら供給されるアドレスにより前記キャッシュメモリにト
レースデータを格納するようにしたことを特徴とする。
Structure of the Invention A debugging method for an information processing device according to the present invention is a debugging method for an information processing device having a cache memory, which comprises address supply means for supplying an address to the cache memory in a debug mode, and a bypass means for performing data transfer between a processing device and a main memory by bypassing the cache memory, and storing trace data in the cache memory using an address supplied from the address supply means during the debug mode. It is characterized by the following.

実施例 次に、本発明の一実施例について図面を参照して説明す
る。
Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、診断プロセッサ1−はデバッグモード
時にデバッグモードフリップフロツプ(以下デバッグモ
ードFFとする)2にデバッグモード信号102を送出
してデバッグモードFF2をセットするとともに、アド
レスカウンタ6にアドレスカウンタリセット信号101
を送出する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, in the debug mode, the diagnostic processor 1- sends a debug mode signal 102 to the debug mode flip-flop (hereinafter referred to as debug mode FF) 2 to set the debug mode FF2, and also resets the address counter 6. signal 101
Send out.

セレクタ3ではデバッグモードFF2からの出力信号【
08に応じてトレース信号104と、図示せぬ主記憶か
らの主記憶リードデータ105と、中央処理装置5から
の主記憶ライトデータ10Bとのうち一つが選択されて
おり、デバッグモードFF2がセットされることにより
トレース信号104が選択される。
Selector 3 outputs the output signal from debug mode FF2 [
08, one of the trace signal 104, main memory read data 105 from the main memory (not shown), and main memory write data 10B from the central processing unit 5 is selected, and the debug mode FF2 is set. The trace signal 104 is selected by this.

また、セレクタ7ではデバッグモードFF2からの出力
信号103に応じて中央処理装置5からのキャッシュメ
モリアドレス109とアドレスカウンタ6からのキャッ
シュメモリアドレスl08とのうちどちらかが選択され
ており、デバッグモードFF2がセットされることによ
りキャッシュメモリアドレス108が選択される。
Further, in the selector 7, either the cache memory address 109 from the central processing unit 5 or the cache memory address l08 from the address counter 6 is selected according to the output signal 103 from the debug mode FF2. By setting , the cache memory address 108 is selected.

さらに、セレクタ8ではデバッグモードFF2からの出
力信号103に応じて主記憶からの主記憶リードデータ
105とキャッシュメモリ4からのキャッシュメモリリ
ードデータ107とのうちどちらかが選択されており、
デバッグモードFF2がセツトされることにより主記憶
リードデータ105が選択される。
Further, the selector 8 selects either main memory read data 105 from the main memory or cache memory read data 107 from the cache memory 4 in accordance with the output signal 103 from the debug mode FF2.
Main memory read data 105 is selected by setting debug mode FF2.

よって、キャッシュメモリ4ではセレクタ7で選択され
たキャッシュメモリアドレス108によって指定される
番地に、セレクタ3で選択されたトレースデータ104
が格納される。
Therefore, in the cache memory 4, the trace data 104 selected by the selector 3 is stored at the address specified by the cache memory address 108 selected by the selector 7.
is stored.

このとき、中央処理装置5において主記憶アクセスが発
生すると、主記憶から読出されてきた主記憶リードデー
タ105はセレクタ8を介して中央処理装置5に人力さ
れ、中央処理装置5から主記憶に書込まれる主記憶ライ
トデータl0Bはデータバスl00を介して主記憶に送
出される。
At this time, when main memory access occurs in the central processing unit 5, the main memory read data 105 read from the main memory is manually input to the central processing unit 5 via the selector 8, and written from the central processing unit 5 to the main memory. The loaded main memory write data l0B is sent to the main memory via the data bus l00.

すなわち、デバッグモードFF2にデバッグモードがセ
ットされると、中央処理装i15はキャッシュメモリ4
を使用することができず、主記憶に対するアクセスはキ
ャッシュメモリ4をバイパスして行われることになる。
That is, when the debug mode is set to debug mode FF2, the central processing unit i15
cannot be used, and access to the main memory is performed by bypassing the cache memory 4.

アドレスカウンタ6はクロツク信号(図示せず)が入力
される毎にアドレスを更新し、このアドレスによって指
定されるキャッシュメモリ4の番地にトレース信号10
4が順次格納されていく。
The address counter 6 updates the address every time a clock signal (not shown) is input, and the trace signal 10 is sent to the address of the cache memory 4 specified by this address.
4 are stored sequentially.

アドレスの更新によりアドレスカウンタ6の内容がキャ
ッシュメモリ4の最大アドレスを示すと、アドレスカウ
ンタ6は診断プロセッサ1にアドレスカウントアップ信
号110を送出する。
When the contents of the address counter 6 indicate the maximum address of the cache memory 4 by updating the address, the address counter 6 sends an address count up signal 110 to the diagnostic processor 1.

診断プロセッサ1はアドレスカウンタ6からのアドレス
カウントアップ信号110を受信すると、中央処理装置
5に実行抑止指示信号111を出力してキャッシュメモ
リ4の内容の読出しを開始する。
When the diagnostic processor 1 receives the address count-up signal 110 from the address counter 6, it outputs an execution inhibition instruction signal 111 to the central processing unit 5 and starts reading the contents of the cache memory 4.

中央処理装置5ではこの実行抑止指示信号Iltにより
命令の実行が停止され、ウェイト状態となる。
In the central processing unit 5, execution of the instruction is stopped by this execution inhibition instruction signal Ilt, and the CPU enters a wait state.

診断プロセッサ1はキャッシュメモリ4からのキャッシ
ュメモリリードデータ107をすべて受取ると、アドレ
スカウンタ6にアドレスカウンタリセット信号101を
出力して、アドレスカウンタ6の内容をすべて“0”に
リセットし、中央処理装置5への実行抑止指示信号Ut
を解除してトレース動作を再開する。
When the diagnostic processor 1 receives all the cache memory read data 107 from the cache memory 4, it outputs an address counter reset signal 101 to the address counter 6, resets all the contents of the address counter 6 to "0", and the central processing unit Execution suppression instruction signal Ut to 5
to resume tracing operation.

このように、デバッグモード時に中央処理装置5と主記
憶との間のデータ転送をキャッシュメモリ4をバイパス
させて行わせるとともに、トレース信号104をアドレ
スカウンタ6からのキャッシュメモリアドレス108に
よりキャッシュメモリ4に格納するようにすることによ
って、中央処理装置5での障害発生時における障害原因
の解析に必要なトレース信号104を専用のトレースメ
モリを設けることなく得ることができる。
In this way, in the debug mode, data transfer between the central processing unit 5 and the main memory is performed by bypassing the cache memory 4, and the trace signal 104 is transferred to the cache memory 4 using the cache memory address 108 from the address counter 6. By storing the trace signal 104 necessary for analyzing the cause of a failure when a failure occurs in the central processing unit 5, it is possible to obtain the trace signal 104 without providing a dedicated trace memory.

また、専用のトレースメモリを設けなくともよいため、
ハードウエア量を削減することができる。
Also, since there is no need to provide a dedicated trace memory,
The amount of hardware can be reduced.

発明の効果 以上説明したように本発明によれば、デバッグモード時
に中央処理装置と主記憶との間のデータ転送をキャッシ
ュメモリをバイパスして行わせるとともに、該キャッシ
ュメモリにトレースデータを格納するようにすることに
よって、専用のトレースメモリを設けることなく、中央
処理装置での障害発生時における障害原因の解析に必要
なトレースデータを得ることができ、ハードウエア量を
削減することができるという効果がある。
Effects of the Invention As explained above, according to the present invention, data transfer between the central processing unit and the main memory is performed by bypassing the cache memory in the debug mode, and trace data is stored in the cache memory. By doing so, it is possible to obtain the trace data necessary to analyze the cause of a failure when a failure occurs in the central processing unit without providing a dedicated trace memory, and the amount of hardware can be reduced. be.

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

第1図は本発明の一実施例の構或を示すブロック図であ
る。 主要部分の符号の説明 1・・・・・・診断プロセッサ 2・・・・・・デバッグモード フリップフロップ 3,7.8・・・・・・セレクタ 4・・・・・・キャッシュメモリ 5・・・・・・中央処理装置 6・・・・・・アドレスカウンタ
FIG. 1 is a block diagram showing the structure of an embodiment of the present invention. Explanation of symbols of main parts 1...Diagnostic processor 2...Debug mode flip-flop 3, 7.8...Selector 4...Cache memory 5... ... Central processing unit 6 ... Address counter

Claims (1)

【特許請求の範囲】[Claims] (1)キャッシュメモリを有する情報処理装置のデバッ
グ方式であって、デバッグモード時に前記キャッシュメ
モリにアドレスを供給するアドレス供給手段と、前記デ
バッグモード時に中央処理装置と主記憶との間のデータ
転送を前記キャッシュメモリをバイパスして行わせるバ
イパス手段とを設け、前記デバッグモード時に前記アド
レス供給手段から供給されるアドレスにより前記キャッ
シュメモリにトレースデータを格納するようにしたこと
を特徴とするデバッグ方式。
(1) A debugging method for an information processing device having a cache memory, which includes address supply means for supplying an address to the cache memory in a debug mode, and data transfer between a central processing unit and a main memory in the debug mode. A debugging method comprising bypass means for bypassing the cache memory, and storing trace data in the cache memory using an address supplied from the address supply means during the debug mode.
JP1159269A 1989-06-21 1989-06-21 Debugging system for information processor Pending JPH0324640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1159269A JPH0324640A (en) 1989-06-21 1989-06-21 Debugging system for information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1159269A JPH0324640A (en) 1989-06-21 1989-06-21 Debugging system for information processor

Publications (1)

Publication Number Publication Date
JPH0324640A true JPH0324640A (en) 1991-02-01

Family

ID=15690083

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1159269A Pending JPH0324640A (en) 1989-06-21 1989-06-21 Debugging system for information processor

Country Status (1)

Country Link
JP (1) JPH0324640A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6507710B1 (en) 1998-05-13 2003-01-14 Fuji Photo Film Co., Ltd. Data recording device and camera with data imaging device
US7670447B2 (en) 2002-09-24 2010-03-02 Dic Corporation Method for applying adhesive to substrate, substrate, coating device, method for producing laminated object, and laminated object

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6507710B1 (en) 1998-05-13 2003-01-14 Fuji Photo Film Co., Ltd. Data recording device and camera with data imaging device
US7670447B2 (en) 2002-09-24 2010-03-02 Dic Corporation Method for applying adhesive to substrate, substrate, coating device, method for producing laminated object, and laminated object

Similar Documents

Publication Publication Date Title
JPS5960658A (en) Semiconductor storage device provided with logical function
US5615348A (en) Microprocessor having register bank architecture
JP3066753B2 (en) Storage controller
JPS6319058A (en) Memory device
JPH0324640A (en) Debugging system for information processor
JPH0581087A (en) Processor monitoring system
JPS59197946A (en) Memory device
JPH02281341A (en) Write data confirming method for debugging
JPH0266668A (en) Data tracing method for multi-processor bus
JPS59153247A (en) Debugging device
JPS63307543A (en) Debug device
KR890008681A (en) Processor control unit
JPH04106647A (en) Memory diagnostic system
JPH04242455A (en) Inter-processor communication trace circuit
JPH05257831A (en) Input/output processor
JPS62103739A (en) Execution address tracing circuit
JPH05108395A (en) Method for testing computer
JPS63155347A (en) Auxiliary circuit for diagnosis of memory
JPH01166144A (en) Debugging system for firmware program
JPS61190636A (en) Information processor with trace function
JPS5968067A (en) Specifying system for number of run steps
JPS58125154A (en) State hysteresis storing system
JPS6292039A (en) Data processor
JPH0277946A (en) Measurement system for coverage of microprogram
JP2000276374A (en) Instruction address tracer circuit