JP2902861B2 - Buffer device with trace function - Google Patents

Buffer device with trace function

Info

Publication number
JP2902861B2
JP2902861B2 JP4186728A JP18672892A JP2902861B2 JP 2902861 B2 JP2902861 B2 JP 2902861B2 JP 4186728 A JP4186728 A JP 4186728A JP 18672892 A JP18672892 A JP 18672892A JP 2902861 B2 JP2902861 B2 JP 2902861B2
Authority
JP
Japan
Prior art keywords
trace
cpu
bus
memory
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4186728A
Other languages
Japanese (ja)
Other versions
JPH0635760A (en
Inventor
滋雄 南部
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4186728A priority Critical patent/JP2902861B2/en
Publication of JPH0635760A publication Critical patent/JPH0635760A/en
Application granted granted Critical
Publication of JP2902861B2 publication Critical patent/JP2902861B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサを
用いたパーソナルコンピュータや制御コンピュータに対
するRAS(reliability :信頼性、availability:稼
働性、serviceability:保守性)を検討するに適用され
るトレース機能付バッファ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer with a trace function which is applied to study RAS (reliability: availability, availability: serviceability: serviceability) for a personal computer or control computer using a microprocessor. Related to the device.

【0002】[0002]

【従来の技術】マイクロプロセッサには8ビット、16
ビット、32ビットのものがある。これらマイクロプロ
セッサに対してはプログラムデバック及びバグの調査が
行われている。
2. Description of the Related Art A microprocessor has 8 bits, 16 bits.
There are 32 bits and 32 bits. For these microprocessors, program debugging and bug investigation are performed.

【0003】この調査は、CPUから発せられた命令の
実行やメモリに対するリード・ライト等のアクセスの結
果をトレースメモリにリアルタイムで蓄積し、そしてト
リガ成立後にトレースメモリに蓄積されたCPUのアク
セスの結果を読み出すことによって行っている。
[0003] In this investigation, the result of execution of an instruction issued from the CPU and the result of access to the memory, such as read / write, is accumulated in the trace memory in real time, and the result of the CPU access accumulated in the trace memory after the trigger is established. Is performed by reading out.

【0004】このようなデバックの開発サポートツール
としては、例えばインサーキットエミュレータ(in cir
cuit emulator :ICE)が用いられている。このIC
Eは、ICE側のCPUをユーザシステム内部で動作さ
せ、CPUの実行内容を逐次ICEのソフトウェアで追
跡し監視するものである。又、このICEは、CPUの
実行をある条件により停止させたり、メモリ内容を変
更、I/O実行等をICEのソフトウェアを介入して制
御し、実機と近似した条件で、回路条件が正常であるか
どうか、又機能が十分に満足されているかを把握するも
の機能を有している。
As a development support tool for such a debug, for example, an in-circuit emulator (in cir
cuit emulator: ICE) is used. This IC
E operates the CPU on the ICE side in the user system, and sequentially tracks and monitors the execution contents of the CPU with the ICE software. In the ICE, the execution of the CPU is stopped under certain conditions, the contents of the memory are changed, and the execution of I / O is controlled by intervening the software of the ICE. It has the function of grasping whether there is, and whether the function is sufficiently satisfied.

【0005】このICEを実際に用いる場合は、図2に
示すようにICE本体1のアダプタ2をCPUを搭載し
た処理装置3のCPUソケット4に接続し、かつICE
本体1に対してプローブボックスやメモリ、パーソナル
コンピュータ等の解析装置5を接続することになる。な
お、このICEとしては、例えばインテル社386D
X、486DXやモトローラ社68000シリーズの各
機能に対応したものがある。
When this ICE is actually used, as shown in FIG. 2, the adapter 2 of the ICE main body 1 is connected to the CPU socket 4 of the processing device 3 having the CPU mounted thereon, and
An analyzer 5 such as a probe box, a memory, or a personal computer is connected to the main body 1. This ICE is, for example, Intel 386D
X, 486DX and Motorola 68000 series.

【0006】これらICEは、その豊富な機能、コンパ
イラ、アセンブラ等の言語処理、マンマシンインタフェ
ース等の統合された開発環境を提供し、ソフトウェア開
発者にとっては非常に有益なものである。
These ICEs provide an abundant function, language processing such as a compiler and an assembler, and an integrated development environment such as a man-machine interface, and are very useful for software developers.

【0007】しかしながら、ユーザシステムの開発後に
発生するバグ、例えばハードウェアの読みマージン不
足、処理タイミングによって希に発生するエラー、スタ
ックのpush及びpop の操作の食い違い等は、実際にはユ
ーザシステムの動作中に起こる場合が多い。このため、
上記ICEを取り付けた状態で、かかるバグを解析する
ことは困難である。又、マルチCPU、DMA等に対し
てバグを解析するには、各CPUに対してICEを接続
しなければならない。そのうえ、ICEは高価である。
However, bugs that occur after the development of the user system, such as insufficient reading margin of hardware, errors that occur rarely due to processing timing, and discrepancies in stack push and pop operations, are actually caused by the operation of the user system. Often happens during. For this reason,
It is difficult to analyze such a bug with the ICE attached. In order to analyze a bug with respect to multiple CPUs, DMAs, etc., an ICE must be connected to each CPU. Moreover, ICE is expensive.

【0008】[0008]

【発明が解決しようとする課題】以上のようにICEを
取り付けた状態で、ユーザシステムの開発後に発生する
バグを解析することで困難であり、又マルチCPU等に
対しては各CPUに対してICEを接続しなければなら
ない。
As described above, it is difficult to analyze a bug that occurs after the development of the user system with the ICE attached, and it is difficult to analyze multiple CPUs for each CPU. ICE must be connected.

【0009】そこで本発明は、ユーザシステムの開発後
に発生するバグの解析を、通常存在するバスバッファを
利用して新たにハードウェアを追加せずにできるものと
し、そのうえマルチCPU等に対しても適用できるトレ
ース機能付バッファ装置を提供することを目的とする。
Therefore, the present invention makes it possible to analyze a bug that occurs after the development of a user system by using a normally existing bus buffer without adding new hardware, and also for a multi-CPU or the like. An object of the present invention is to provide a buffer device with a trace function that can be applied.

【0010】[0010]

【課題を解決するための手段】本発明は、コンピュータ
におけるCPUとマルチバス等との間に接続されるバッ
ファ装置において、
SUMMARY OF THE INVENTION The present invention relates to a buffer device connected between a CPU and a multi-bus or the like in a computer.

【0011】トレースメモリと、少なくとも前記CPU
から発せられたアクセスを前記トレースメモリに履歴と
してセーブし、かつ予め設定された所定条件の発生を検
知して前記履歴のセーブのスタート及びストップを制御
するトレース制御手段とを備えて上記目的を達成しよう
とするトレース機能付バッファ装置である。
A trace memory and at least the CPU
The access issued from the server is saved as a history in the trace memory, and the occurrence of a predetermined condition set in advance is detected.
And a trace control means for controlling the start and stop of saving of the history.

【0012】[0012]

【作用】このような手段を備えたことにより、コンピュ
ータにおけるCPUとマルチバス等との間に接続され、
CPUから発せられたアクセスはトレースメモリに履歴
としてセーブされる。この場合、CPUのアクセスのト
レースメモリへのセーブは、予め設定された所定条件に
基づいて、トレース制御手段によりスタート及びストッ
プ制御される。
With such a means, it is connected between a CPU of a computer and a multi-bus or the like.
The access issued from the CPU is saved as a history in the trace memory. In this case, saving of the access of the CPU to the trace memory is performed under a predetermined condition set in advance.
On the basis of this, start and stop control is performed by the trace control means.

【0013】[0013]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0014】図1はトレース機能付バッファ装置10の
構成図である。このバッファ装置10は、バスバッファ
として機能するもので、バスの調停ロジック及びバスバ
ッファを有している。すなわち、例えばインテル社38
6DX、486DXクラスでは、マルチバスや共通メモ
リを使用する場合が多く、これには調停ロジック及びバ
スバッファが必要となる。
FIG. 1 is a block diagram of a buffer device 10 with a trace function. The buffer device 10 functions as a bus buffer, and has a bus arbitration logic and a bus buffer. That is, for example, Intel Corporation 38
The 6DX and 486DX classes often use a multi-bus or common memory, which requires arbitration logic and a bus buffer.

【0015】本バッファ装置10は、かかるバスバッフ
ァを利用したもので、ASIC(特定用途向け集積回
路)、例えばゲートアレイにより構成されている。そし
て、このバッファ装置10は、コンピュータにおけるC
PUとマルチバスやI/Oバス、システムバス、共有メ
モリバスとの間に接続されている。なお、同図ではCP
Uとマルチバスとの間に接続されている。
The buffer device 10 utilizes such a bus buffer, and is constituted by an ASIC (Application Specific Integrated Circuit), for example, a gate array. And this buffer device 10 is a C
It is connected between the PU and the multibus, I / O bus, system bus, and shared memory bus. Note that in FIG.
It is connected between U and the multibus.

【0016】このバッファ装置10には、シリアルポー
トを有するアドレス用バス11、ステータス用バス12
及びデータ用バス13が設けられ、これらバス11〜1
3のうちアドレス用バス11がCPUからのアドレスバ
ス14に接続され、ステータス用バス12がCPUから
のステータスバス15に接続され、データ用バス13が
CPUからのデータバス16に接続されている。
The buffer device 10 includes an address bus 11 having a serial port, a status bus 12
And a data bus 13 are provided.
Among them, the address bus 11 is connected to the address bus 14 from the CPU, the status bus 12 is connected to the status bus 15 from the CPU, and the data bus 13 is connected to the data bus 16 from the CPU.

【0017】又、アドレス用バス11には一方向バッフ
ァ17が接続され、データ用バス13には双方向バッフ
ァ18が接続され、それぞれマルチバス側のアドレス用
バス19、データバス20に接続され、かつこれらバス
11、12、13にトレースロジック21、レジスタ2
2及びトレースメモリ23が接続されている。このうち
トレースロジック21は、次の各機能を有している。
A one-way buffer 17 is connected to the address bus 11, a bidirectional buffer 18 is connected to the data bus 13, and connected to an address bus 19 and a data bus 20 on the multi-bus side, respectively. The trace logic 21 and the register 2 are connected to these buses 11, 12, and 13.
2 and the trace memory 23 are connected. The trace logic 21 has the following functions.

【0018】すなわち、トレースメモリ23に履歴をセ
ーブするスタート・ストップのトリガ条件や履歴の内容
を読み出す条件をレジスタ22に設定するインタフェー
ス機能。
That is, an interface function for setting a start / stop trigger condition for saving the history in the trace memory 23 and a condition for reading the content of the history in the register 22.

【0019】このレジスタ22に設定された条件に従っ
て、CPUから発せられたアクセス、例えば、命令実行
サイクル、コードフェッチ、メモリのリードライト等を
履歴としてトレースメモリ23にセーブし、かつトリガ
条件と一致したときに履歴のセーブを停止するトレース
制御機能を有している。
In accordance with the conditions set in the register 22, accesses issued from the CPU, for example, instruction execution cycles, code fetches, memory read / writes, etc., are saved in the trace memory 23 as histories and matched with the trigger conditions. It has a trace control function that sometimes stops saving the history.

【0020】かかる構成であれば、CPUからアクセス
の履歴をセーブするスタート・ストップのトリガ条件や
履歴の内容を読み出す条件が発せられると、これら条件
はトレースロジック21によりレジスタ22に設定され
る。
With this configuration, when a start / stop trigger condition for saving the access history and a condition for reading the history content are issued from the CPU, these conditions are set in the register 22 by the trace logic 21.

【0021】この状態に、CPUからアクセス、例えば
コードフェッチ、メモリ、I/Oのリードライト等が発
せられると、これらアクセスはステータスバス15を通
ってトレースロジック21に入力する。このトレースロ
ジック21は、これらアクセスを逐次トレースメモリ2
3に蓄積し、かつこのときアドレスバス14及びデータ
バス16に乗っているアドレス及びデータをモニタして
トレースメモリ23に蓄積する。なお、アドレス及びデ
ータは、それぞれ一方向バッファ17、双方向バッファ
18を通ってマルチバス側に伝送される。
In this state, when accesses from the CPU, for example, code fetch, memory, I / O read / write, etc. are issued, these accesses are input to the trace logic 21 through the status bus 15. The trace logic 21 performs these accesses sequentially in the trace memory 2.
3 and at this time, the addresses and data on the address bus 14 and the data bus 16 are monitored and stored in the trace memory 23. The address and the data are transmitted to the multi-bus side through the one-way buffer 17 and the two-way buffer 18, respectively.

【0022】このようにCPUからのアクセスをトレー
スメモリ23に蓄積している状態に、例えばプログラム
実行の状態がレジスタ22に設定されたストップのトリ
ガ条件に一致すると、トレースロジック21は、アクセ
ス履歴のトレースを停止する。
When the access from the CPU is stored in the trace memory 23, for example, when the execution state of the program matches the stop trigger condition set in the register 22, the trace logic 21 stores the access history. Stop tracing.

【0023】そして、CPUから履歴内容の読み出し指
令が発せられると、この指令はトレースロジック21を
通してトレースメモリ23に入力し、この状態にCPU
はトレースロジック21から履歴内容の読み出す。
When the CPU issues a command to read the history contents, the command is input to the trace memory 23 through the trace logic 21 and the CPU enters the state in this state.
Reads history contents from the trace logic 21.

【0024】このように上記一実施例においては、コン
ピュータにおけるCPUとマルチバスとの間に接続し、
CPUから発せられたアクセスをトレースメモリ23に
履歴としてセーブし、このトレースメモリ23へのセー
ブをトレースロジック21によりスタート及びストップ
制御するようにしたので、トレースメモリ23にセーブ
されたアクセスの履歴を読み取ることによって、ユーザ
システムの開発後に発生するバグの解析を行うことがで
きる。そのうえ、このバグの解析は、通常存在するバス
バッファを利用して新たにハードウェアを追加せずにで
きる。又、大規模ASICを使用することにより、マル
チCPU等に対しても適用できる。そして、マルチCP
Uの各CPUに対してアクセス履歴のトレース機能を持
たせることができるので、共通要因があれば、各CPU
のサンプルデータを得て解析が容易となる。さらに、レ
ジスタ22に設定されるトリガ条件は変更が可能であ
り、かつトレースメモリ23の履歴をCPUにより任意
に読み出すことができる。なお、本発明は上記一実施例
に限定されるものでなくその要旨を変更しない範囲で変
形してもよい。
As described above, in the above-described embodiment, the connection is made between the CPU and the multi-bus in the computer.
The access issued from the CPU is saved in the trace memory 23 as a history, and the save in the trace memory 23 is controlled to start and stop by the trace logic 21. Therefore, the history of the access saved in the trace memory 23 is read. This enables analysis of a bug that occurs after the development of the user system. In addition, the analysis of this bug can be performed using the existing bus buffer without adding new hardware. Further, by using a large-scale ASIC, the present invention can be applied to a multi-CPU or the like. And multi CP
Each CPU of U can be provided with an access history tracing function.
The analysis is facilitated by obtaining sample data. Further, the trigger condition set in the register 22 can be changed, and the history of the trace memory 23 can be read arbitrarily by the CPU. Note that the present invention is not limited to the above-described embodiment, and may be modified without departing from the scope of the invention.

【0025】[0025]

【発明の効果】以上詳記したように本発明によれば、ユ
ーザシステムの開発後に発生するバグの解析を、通常存
在するバスバッファを利用して新たにハードウェアを追
加せずにできるものとし、そのうえマルチCPU等に対
しても適用できるトレース機能付バッファ装置を提供で
きる。
As described above in detail, according to the present invention, analysis of a bug occurring after the development of a user system can be performed without adding new hardware by using a normally existing bus buffer. In addition, a buffer device with a trace function that can be applied to a multi-CPU or the like can be provided.

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

【図1】本発明に係わるトレース機能付バッファ装置の
一実施例を示す構成図。
FIG. 1 is a configuration diagram showing one embodiment of a buffer device with a trace function according to the present invention.

【図2】従来装置の構成図。FIG. 2 is a configuration diagram of a conventional device.

【符号の説明】[Explanation of symbols]

10…トレース機能付バッファ装置、17…一方向バッ
ファ、18…双方向バッファ、21…トレースロジッ
ク、22…レジスタ、23…トレースメモリ。
10: buffer device with trace function, 17: one-way buffer, 18: bidirectional buffer, 21: trace logic, 22: register, 23: trace memory.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 コンピュータにおけるCPUとマルチバ
ス等との間に接続されるバッファ装置において、 トレースメモリと、少なくとも前記CPUから発せられ
たアクセスを前記トレースメモリに履歴としてセーブ
し、かつ予め設定された所定条件の発生を検知して前記
履歴のセーブのスタート及びストップを制御するトレー
ス制御手段とを具備したことを特徴とするトレース機能
付バッファ装置。
1. A buffer device connected between a CPU and a multi-bus or the like in a computer, wherein a trace memory and at least an access issued from the CPU are saved as a history in the trace memory, and are set in advance. A buffer device with a trace function, comprising: trace control means for detecting the occurrence of a predetermined condition and controlling start and stop of the history saving.
JP4186728A 1992-07-14 1992-07-14 Buffer device with trace function Expired - Fee Related JP2902861B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4186728A JP2902861B2 (en) 1992-07-14 1992-07-14 Buffer device with trace function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4186728A JP2902861B2 (en) 1992-07-14 1992-07-14 Buffer device with trace function

Publications (2)

Publication Number Publication Date
JPH0635760A JPH0635760A (en) 1994-02-10
JP2902861B2 true JP2902861B2 (en) 1999-06-07

Family

ID=16193602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4186728A Expired - Fee Related JP2902861B2 (en) 1992-07-14 1992-07-14 Buffer device with trace function

Country Status (1)

Country Link
JP (1) JP2902861B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2461716A (en) 2008-07-09 2010-01-13 Advanced Risc Mach Ltd Monitoring circuitry for monitoring accesses to addressable locations in data processing apparatus that occur between the start and end events.

Also Published As

Publication number Publication date
JPH0635760A (en) 1994-02-10

Similar Documents

Publication Publication Date Title
US6598178B1 (en) Peripheral breakpoint signaler
US4312066A (en) Diagnostic/debug machine architecture
US5491793A (en) Debug support in a processor chip
JP2651916B2 (en) In-circuit emulator
EP0084431A2 (en) Monitoring computer systems
US5640508A (en) Fault detecting apparatus for a microprocessor system
JPH011039A (en) In-circuit emulator
US5047926A (en) Development and debug tool for microcomputers
JPH11110254A (en) Exception identification device and method for software debugging
US5678003A (en) Method and system for providing a restartable stop in a multiprocessor system
US5307482A (en) Computer, non-maskable interrupt trace routine override
US7890685B2 (en) Multi-core data processor
US20060179380A1 (en) On-chip electronic hardware debug support units having execution halting capabilities
US7526756B2 (en) Address watch breakpoints with basing pointers
JP2007522554A (en) Embedded system analysis apparatus and method for in-vehicle security problematic computer systems
JP2902861B2 (en) Buffer device with trace function
US20030046666A1 (en) Program-controlled unit
JP2001249823A (en) Microcomputer development assisting device
US5287522A (en) External procedure invocation apparatus utilizing internal branch vector interrupts and vector address generation, in a RISC chip
JPH0581087A (en) Processor monitoring system
KR940001558B1 (en) Processor board state checking apparatus
JPH04199336A (en) Microcomputer
JPS62164140A (en) Testing of data processing system
US6671665B1 (en) Emulation system with search and identification of optional emulation peripherals
US7206926B2 (en) Programmable unit including program operation unit and associated stopping device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees