JPH0863374A - Tracing function incorporated type lsi - Google Patents
Tracing function incorporated type lsiInfo
- Publication number
- JPH0863374A JPH0863374A JP6196722A JP19672294A JPH0863374A JP H0863374 A JPH0863374 A JP H0863374A JP 6196722 A JP6196722 A JP 6196722A JP 19672294 A JP19672294 A JP 19672294A JP H0863374 A JPH0863374 A JP H0863374A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- data
- trace
- lsi
- internal
- 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
Links
Landscapes
- Tests Of Electronic Circuits (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、動作中のLSIに対す
る入出力情報又はLSI内部信号をトレースするトレー
ス機能内蔵型LSIに係り、特に、LSIの所定のデー
タ処理機能とは別にLSI内部にトレース機能部分を設
けたトレース機能内蔵型LSIに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an LSI having a built-in trace function for tracing input / output information or an LSI internal signal to an operating LSI, and more particularly, tracing inside the LSI separately from a predetermined data processing function of the LSI. The present invention relates to a trace function built-in LSI provided with a functional portion.
【0002】[0002]
【従来の技術】従来から、LSIの設計上のバグを製造
あるいは試作したLSIデバイス自体からデバッグする
方法として、エラーを生じる数サイクル前からのバス情
報(すなわちLSI入出力端子の情報)の履歴を解析す
る方法が用いられている。2. Description of the Related Art Conventionally, as a method of debugging a bug in the design of an LSI from an LSI device itself manufactured or manufactured as a prototype, a history of bus information (that is, information of an LSI input / output terminal) from several cycles before an error occurs The method of analysis is used.
【0003】このようなLSI入出力端子の情報を得る
方法として、ロジックアナライザを用いてLSI端子の
電圧を直接測定する方法と当該LSIを用いるシステム
にバストレース機能を組み込む方法とがある。As a method of obtaining the information of such an LSI input / output terminal, there are a method of directly measuring the voltage of the LSI terminal using a logic analyzer and a method of incorporating a bus trace function into a system using the LSI.
【0004】まず、図7は、ロジックアナライザを用い
た従来のLSI入出力端子情報を取得する装置の構成例
を示す図である。図7において、試験者は、基板31に
実装されたLSI32の入出力端子33に、ロジックア
ナライザ35が接続されたプローブ34を当接させる。
この状態で、当該LSIを含むシステムを動作させる
と、ロジックアナライザ35は、入出力端子33の信号
を取り込み、サイクル毎に信号の同期を取り、信号の電
圧レベルを´1´、´0´の2値に変換し、その情報を
ディスプレイ36上に表示する。LSIに異常が発生し
た場合、エラー発生から数クロック前までの前記情報を
用いて異常発生原因の解析を行う。First, FIG. 7 is a diagram showing a configuration example of a conventional device for acquiring LSI input / output terminal information using a logic analyzer. In FIG. 7, the tester brings the probe 34, to which the logic analyzer 35 is connected, into contact with the input / output terminal 33 of the LSI 32 mounted on the substrate 31.
When a system including the LSI is operated in this state, the logic analyzer 35 takes in the signal of the input / output terminal 33, synchronizes the signal for each cycle, and sets the voltage level of the signal to “1” or “0”. It is converted into a binary value and the information is displayed on the display 36. When an abnormality occurs in the LSI, the cause of the abnormality is analyzed using the information from the error occurrence up to several clocks before.
【0005】次に、図8は、システムにバストレース機
能を組み込んだ従来のLSI入出力端子情報を取得する
装置の構成例を示す図である。図8(a)において、シ
ステムバス41には、デバッグが行われるLSI42、
当該LSI42以外のシステム上の情報処理装置43
(含む、入出力装置、記憶装置)、トレースRAM制御
回路44及びトレースRAM45が接続されている。こ
こで、システムバス41、トレースRAM制御回路44
及びトレースRAM45によってバストレース機能が構
成されている。Next, FIG. 8 is a diagram showing an example of the configuration of a conventional device for acquiring information on LSI input / output terminals in which a bus trace function is incorporated in a system. In FIG. 8A, the system bus 41 includes an LSI 42 to be debugged,
Information processing device 43 on a system other than the LSI 42
(Including an input / output device and a storage device), a trace RAM control circuit 44 and a trace RAM 45 are connected. Here, the system bus 41 and the trace RAM control circuit 44
The bus trace function is configured by the trace RAM 45.
【0006】さらに、トレースRAM45は、図8
(b)に示すようにバス幅×N段アドレスで構成され、
書込アドレスを循環させて、常に最新のN個のアドレス
が保持されるようになっている。Further, the trace RAM 45 is shown in FIG.
As shown in (b), it is composed of bus width × N-stage address,
The write address is circulated so that the latest N addresses are always held.
【0007】このようなバストレース機能が組み込まれ
たシステムを動作させると、LSI42からのバス情報
(すなわちLSI入出力端子の情報)がトレースRAM
制御回路44の制御によってトレースRAM45に書き
込まれる。そして、システム動作中にトレースRAM制
御回路44によって監視されているバス上のデータにエ
ラーコード等の異常値が検出されると、トレースRAM
制御回路44はそのときのトレースRAM45のアドレ
スを保持し、トレースRAM45への書き込みを禁止す
る。When a system incorporating such a bus trace function is operated, the bus information from the LSI 42 (that is, the information on the LSI input / output terminals) is stored in the trace RAM.
It is written in the trace RAM 45 under the control of the control circuit 44. When an abnormal value such as an error code is detected in the data on the bus monitored by the trace RAM control circuit 44 during the system operation, the trace RAM is detected.
The control circuit 44 holds the address of the trace RAM 45 at that time and prohibits writing to the trace RAM 45.
【0008】こののち、試験者は、トレースRAM45
の情報を読み出し、読み出されたエラー発生からNクロ
ック前までのバス情報を用いて異常発生原因の解析を行
う。このようなシステムでは、トレース内容を解析に有
効な情報に限定することによって素早い解析を行うこと
ができる。After this, the tester determines that the trace RAM 45
Information is read out, and the cause of the abnormality is analyzed using the read bus information from the occurrence of the error to N clocks before. In such a system, quick analysis can be performed by limiting the trace contents to information effective for analysis.
【0009】[0009]
【発明が解決しようとする課題】ところで、設計上のバ
グをデバックするLSIが、メモリ、マイクロプロセッ
サ等の汎用LSIであって大量生産する製品であるなら
ば、上記した方法等を用い、手間と時間をかけてデバッ
クしても生産性はそれ程低下しない。If the LSI for debugging the design bug is a general-purpose LSI such as a memory or a microprocessor and is a mass-produced product, the above-mentioned method is used to save time and labor. Even if you debug over time, your productivity will not drop that much.
【0010】しかしながら、例えばASICと呼ばれる
特定用途向けLSI等,少量多品種生産をしなければな
らない製品の場合、効率よく設計上のバグをデバックす
ること、あるいは、バグを回避させてLSIを動作させ
る方法を検討することが生産性の向上に大きく貢献す
る。However, in the case of a product that needs to be manufactured in a small amount and in a wide variety of products, such as a special-purpose LSI called ASIC, for example, it is possible to debug a design bug efficiently or to operate the LSI while avoiding the bug. Examining the method will greatly contribute to the improvement of productivity.
【0011】このような生産性向上の観点からすると、
ロジックアナライザを用いる方法は、LSIの入出力端
子33にプローブ34を接続するだけでも非常に手間が
かかり、効率が悪いという問題点がある。また、表面実
装LSIでは、入出力端子33間の間隔が狭く、プロー
ブ34が隣の端子に接触する危険が高いという問題点も
ある。さらに、最新のパッケージ技術であるBGA(Ba
ll Grid Array )では内側の端子へプローブ接続が不可
能であり、必要な情報を得ることもできない。From the viewpoint of such productivity improvement,
The method using the logic analyzer has a problem that it is very troublesome to connect the probe 34 to the input / output terminal 33 of the LSI and the efficiency is low. Further, in the surface-mount LSI, there is a problem that the interval between the input / output terminals 33 is narrow and there is a high risk that the probe 34 will contact an adjacent terminal. In addition, the latest packaging technology, BGA (Ba
ll Grid Array), it is impossible to connect the probe to the inner terminal, and it is not possible to obtain the necessary information.
【0012】一方、上述したシステムにバストレース機
能を付加する場合、ユーザから発注されたシステム本体
にバストレース機能を組み込んでASIC等のLSIを
デバックし、その後、バストレース機能を残したまま製
品として出荷することが多い。このような場合、万一、
システム使用中にエラーが発生したときには、ユーザ先
でさらにデバック作業をすること、あるいは、バグを回
避させてLSIを動作させる方法を検討することができ
る。On the other hand, when the bus trace function is added to the above-mentioned system, the bus trace function is incorporated into the system body ordered by the user to debug the LSI such as ASIC, and then the product is left as the product with the bus trace function left. Often shipped. In such a case,
When an error occurs during the use of the system, it is possible to consider further debugging work at the user's place or to consider a method of operating the LSI while avoiding a bug.
【0013】しかしながら、このような方法では予め設
定した端子からの情報しか得ることができない。これに
対応するためには、多くの端子を解析できるように設定
しておけばよいが、そのためにはトレースRAM45を
それぞれの端子に対応して設けなければならないので、
システム全体のハードウエア量が大きくなる。ハードウ
エア量の増加にしたがって、システムバス41の負荷は
大きくなり、システムの動作周期が遅くなるという問題
点がある。バストレース機能はあくまで、LSIのデバ
ックのためのものなので、このような理由により製品で
あるシステムの動作が遅くなることは、好ましくない。However, such a method can only obtain information from a preset terminal. In order to deal with this, it is necessary to set so that many terminals can be analyzed, but for that purpose, since the trace RAM 45 must be provided corresponding to each terminal,
The amount of hardware in the entire system increases. As the amount of hardware increases, the load on the system bus 41 increases and the operating cycle of the system becomes slower. Since the bus trace function is only for debugging the LSI, it is not preferable that the operation of the system, which is a product, slows down for such a reason.
【0014】さらに、上記した2つの方法では、基板3
1あるいはシステムバス41に接続された入出力端子か
らの情報履歴しか調べることができない。実際には、入
出力端子から出力されないLSI内部での信号を調べる
必要が生じることがあり、このような要請には上記の方
法では対応できない。従って、内部信号を出力する専用
端子を特に設けることがあるが、このような端子の付設
は、当該LSIの面積を増加させ、製造コストを増加さ
せることになる。Further, in the above two methods, the substrate 3
1 or only the information history from the input / output terminal connected to the system bus 41 can be checked. Actually, it may be necessary to check the signal inside the LSI that is not output from the input / output terminal, and such a request cannot be met by the above method. Therefore, although a dedicated terminal for outputting the internal signal may be provided in particular, the attachment of such a terminal increases the area of the LSI and increases the manufacturing cost.
【0015】本発明は、このような状況を鑑みてなされ
たもので、LSIが接続されるシステムにおいて、当該
システムのシステムバスにハードウエアを接続すること
なく、接続されたLSIの履歴情報を保持する機能を実
現でき、ひいては高速にシステムを動作させることので
きるトレース機能内蔵型LSIを提供することを目的と
する。The present invention has been made in view of such a situation, and in a system to which an LSI is connected, the history information of the connected LSI is held without connecting hardware to the system bus of the system. It is an object of the present invention to provide an LSI with a built-in trace function, which can realize the function to operate, and can operate the system at high speed.
【0016】[0016]
【課題を解決するための手段】上記課題を解決するため
に、請求項1に対応する発明は、所定のデータ処理機能
を有し、かつ、動作中この所定のデータ処理機能を検診
してエラー発生時にエラー発生信号を発する内部回路
と、この内部回路に対するデータの入出力を行うための
入出力端子とを有するLSIにおいて、内部回路に接続
され、動作中この内部回路に対する入出力データ又はこ
の内部回路内の所定位置の内部データにおける常に最新
の所定個数のデータを記憶保持するトレースメモリ回路
と、エラー発生信号を受領して前記トレースメモリ回路
における新規データの記憶保持動作を停止させるメモリ
制御回路と、新規データの記憶保持動作を停止した後の
トレースメモリ回路に記憶保持されているデータをイン
タフェース端子を介して外部へ送出するインタフェース
回路とを設けたトレース機能内蔵型LSIである。In order to solve the above-mentioned problems, the invention according to claim 1 has a predetermined data processing function, and during operation, the predetermined data processing function is detected and an error is detected. In an LSI having an internal circuit that issues an error occurrence signal when an error occurs, and an input / output terminal for inputting / outputting data to / from this internal circuit, connected to the internal circuit, and input / output data to / from this internal circuit during operation A trace memory circuit that always stores and holds the latest predetermined number of pieces of internal data at a predetermined position in the circuit, and a memory control circuit that receives an error occurrence signal and stops the storage and holding operation of new data in the trace memory circuit. , The data stored / held in the trace memory circuit after stopping the storage / holding operation of new data is transmitted via the interface terminal. A trace function built-in type LSI provided with an interface circuit for sending to the outside Te.
【0017】また、請求項2に対応する発明は、所定の
データ処理機能を有し、かつ、動作中この所定のデータ
処理機能を検診してエラー発生時にエラー発生信号を発
する内部回路と、この内部回路に対するデータの入出力
を行うための入出力端子とを有するLSIにおいて、内
部回路に接続され、動作中この内部回路に対する入出力
データ又はこの内部回路内の所定位置の内部データにお
ける常に最新の所定個数のデータを記憶保持するトレー
スメモリ回路と、エラー発生信号又は割込端子を介して
外部から入力された強制停止信号を受領して前記トレー
スメモリ回路における新規データの記憶保持動作を停止
させるメモリ制御回路と、新規データの記憶保持動作を
停止した後のトレースメモリ回路に記憶保持されている
データをインタフェース端子を介して外部へ送出するイ
ンタフェース回路とを設けたトレース機能内蔵型LSI
である。Further, the invention according to claim 2 has an internal circuit which has a predetermined data processing function, and which detects the predetermined data processing function during operation and issues an error occurrence signal when an error occurs, In an LSI having an input / output terminal for inputting / outputting data to / from an internal circuit, the latest input / output data to / from this internal circuit or an internal data at a predetermined position in this internal circuit which is connected to the internal circuit during operation is always the latest. A trace memory circuit that stores and holds a predetermined number of data, and a memory that receives an error occurrence signal or a forced stop signal externally input via an interrupt terminal to stop the storage and holding operation of new data in the trace memory circuit The interface between the control circuit and the data stored and held in the trace memory circuit after stopping the storage and holding operation of new data Trace function built-in LSI provided an interface circuit for sending to the outside through the over scan terminals
Is.
【0018】さらに、請求項3に対応する発明は、所定
のデータ処理機能を有し、かつ、動作中この所定のデー
タ処理機能を検診してエラー発生時にエラー発生信号を
発する内部回路と、この内部回路に対するデータの入出
力を行うための入出力端子とを有するLSIにおいて、
内部回路に接続され、動作中この内部回路に対する入出
力データ又はこの内部回路内の所定位置の内部データに
おける常に最新の所定個数のデータを記憶保持するトレ
ースメモリ回路と、内部回路の動作状態が予め外部から
指定された条件を満たすと条件合致信号を出力する動作
条件検出回路と、エラー発生信号又は条件合致信号を受
領してトレースメモリ回路における新規データの記憶保
持動作を停止させるメモリ制御回路と、新規データの記
憶保持動作を停止した後のトレースメモリ回路に記憶保
持されているデータをインタフェース端子を介して外部
へ送出するインタフェース回路とを設けたトレース機能
内蔵型LSIである。Further, the invention according to claim 3 has an internal circuit which has a predetermined data processing function and which detects the predetermined data processing function during operation and issues an error occurrence signal when an error occurs, In an LSI having an input / output terminal for inputting / outputting data to / from an internal circuit,
A trace memory circuit that is connected to an internal circuit and always stores and holds the latest predetermined number of data in the input / output data for this internal circuit or internal data at a predetermined position in this internal circuit, and the operating state of the internal circuit in advance. An operating condition detection circuit that outputs a condition matching signal when a condition specified from the outside is output, and a memory control circuit that receives an error occurrence signal or a condition matching signal and stops the storage holding operation of new data in the trace memory circuit, An LSI with a built-in trace function provided with an interface circuit for sending the data stored and held in the trace memory circuit to the outside through an interface terminal after the storage and holding operation of new data is stopped.
【0019】さらに、請求項4に対応する発明は、請求
項1乃至3何れか一項に対応する発明において、内部回
路とトレースメモリ回路との間に介挿され、内部回路に
対する入出力データ又はこの内部回路内の所定位置の内
部データのうちの外部から指定された種類のデータを選
択してトレースメモリ回路へ送出するデータ選択回路を
付加したトレース機能内蔵型LSIである。Further, an invention according to claim 4 is the invention according to any one of claims 1 to 3, wherein the invention is inserted between an internal circuit and a trace memory circuit, and input / output data for the internal circuit or This is a trace function built-in type LSI to which a data selection circuit for selecting data of a specified type from the outside of internal data at a predetermined position in the internal circuit and sending it to the trace memory circuit is added.
【0020】[0020]
【作用】従って、まず、請求項1に対応する発明のトレ
ース機能内蔵型LSIにおいては、LSI本来の目的機
能部分である内部回路への入出力データ、又は、内部回
路内の内部信号がトレースメモリ回路に入力され、常に
最新の所定個数のデータが記憶保持されている。Therefore, first, in the trace function built-in type LSI of the invention according to claim 1, the input / output data to / from the internal circuit, which is the original function of the LSI, or the internal signal in the internal circuit is trace memory. The data is input to the circuit and the latest predetermined number of data is always stored and held.
【0021】ここで、内部回路からのエラー発生信号が
受信されると、メモリ制御回路によってトレースメモリ
回路における新規データの記録保持動作が停止される。
こののち、外部からの指示に応じ、インターフェース回
路によってトレースメモリ回路内のデータがインターフ
ェース端子を介して外部へ読み出され、データの解析等
が行われる。Here, when the error occurrence signal from the internal circuit is received, the memory control circuit stops the record holding operation of new data in the trace memory circuit.
Then, according to an instruction from the outside, the interface circuit reads the data in the trace memory circuit to the outside through the interface terminal, and analyzes the data.
【0022】また、請求項2に対応する発明のトレース
機能内蔵型LSIにおいては、請求項1に対応する発明
と同様に作用する他、割込端子を介して強制停止信号が
メモリ制御回路に受信された場合にも、メモリ制御回路
によってトレースメモリ回路における新規データの記録
保持動作が停止される。Further, in the trace function built-in type LSI of the invention according to claim 2, the memory control circuit receives a forced stop signal via the interrupt terminal in addition to the same operation as the invention according to claim 1. Also in this case, the memory control circuit stops the record holding operation of new data in the trace memory circuit.
【0023】こののち、前述した場合と同様に外部から
の指示に応じ、インターフェース回路によってトレース
メモリ回路内のデータがインターフェース端子を介して
外部へ読み出され、データの解析等が行われる。After this, similarly to the case described above, the interface circuit reads the data in the trace memory circuit to the outside through the interface terminal according to the instruction from the outside, and analyzes the data.
【0024】さらに、請求項3に対応する発明のトレー
ス機能内蔵型LSIにおいては、請求項1に対応する発
明と同様に作用する他、内部回路が予め外部から指定さ
れた条件に達したとき、動作条件検出回路によって条件
合致信号がメモリ制御回路に出力される。Further, in the trace function built-in type LSI of the invention according to claim 3, the same operation as that of the invention according to claim 1 is achieved, and when the internal circuit reaches a condition designated from the outside in advance, A condition agreement signal is output to the memory control circuit by the operating condition detection circuit.
【0025】この場合にも、メモリ制御回路によってト
レースメモリ回路における新規データの記録保持動作が
停止される。さらにまた、請求項4に対応する発明のト
レース機能内蔵型LSIにおいては、請求項1乃至3何
れか一項に対応する発明と同様に作用する他、内部回路
への入出力データ及び内部回路内の内部信号の中からデ
ータ選択手段によって選択されたデータがトレースメモ
リー内に書き込まれる。なお、データ選択手段により選
択されるデータは、外部から指定される。Also in this case, the memory control circuit stops the recording and holding operation of new data in the trace memory circuit. Furthermore, in the trace function built-in type LSI of the invention according to claim 4, the same operation as the invention according to any one of claims 1 to 3 is achieved, and the input / output data to / from the internal circuit and the internal circuit The data selected by the data selecting means from among the internal signals of (3) are written in the trace memory. The data selected by the data selection means is designated from the outside.
【0026】[0026]
【実施例】以下、本発明の実施例について、図面を用い
て説明する。図1は本発明に係るトレース機能内蔵型L
SIの第1の実施例を示すブロック図である。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a trace function built-in type L according to the present invention.
It is a block diagram which shows the 1st Example of SI.
【0027】図1に示すLSI1において、内部論理回
路3は、図示しないシステムバスに接続された入力端子
2から入力した信号に基づいて必要な演算等を行い、演
算結果を出力端子4に接続された図示しないシステムバ
スへ出力し、トレース機能を内蔵していないLSIと同
等の機能を果たしている。この論理回路3内にはエラー
検出回路13が組み込まれている。In the LSI 1 shown in FIG. 1, the internal logic circuit 3 performs necessary arithmetic operations based on a signal input from an input terminal 2 connected to a system bus (not shown), and the arithmetic result is connected to an output terminal 4. It outputs to a system bus (not shown) and performs the same function as an LSI that does not have a trace function. An error detection circuit 13 is incorporated in the logic circuit 3.
【0028】また、LSI1内には、内部論理回路3以
外に、入力端子2及び出力端子4よりの入出力情報が書
き込まれるトレースRAM7と、内部論理回路3又は強
制割り込み用端子5を介した外部コントローラ6からの
信号に基づいてトレースRAM7を制御するトレースR
AM制御回路8と、シリアルバス用端子10を介して外
部コントローラ6に制御され、トレースRAM7及びト
レースRAM制御回路8の情報を読み出すシリアルバス
インターフェース回路9とが設けられている。In addition to the internal logic circuit 3, a trace RAM 7 into which input / output information from the input terminal 2 and the output terminal 4 is written, and an external circuit via the internal logic circuit 3 or the forced interrupt terminal 5 are provided in the LSI 1. Trace R for controlling the trace RAM 7 based on the signal from the controller 6
An AM control circuit 8 and a serial bus interface circuit 9 which is controlled by the external controller 6 via the serial bus terminal 10 and reads information from the trace RAM 7 and the trace RAM control circuit 8 are provided.
【0029】また、トレースRAM制御回路8は、書き
込み許可発生回路11とアドレスカウンタ12とにより
構成されている。ここで、書き込み許可発生回路11
は、内部論理回路3内に組み込まれたエラー検出回路1
3から出力されたエラー発生信号又は外部コントローラ
6より強制割り込み用端子5を介して入力された強制停
止信号に基づいて、アドレスカウンタ12のカウントア
ップ及びトレースRAM7の書き込みを禁止する。ま
た、内部論理回路3のエラー発生信号又は外部コントロ
ーラ6からの強制停止信号の解除に基づいてアドレスカ
ウンタ12及びトレースRAM7の動作を再開させる。The trace RAM control circuit 8 is composed of a write permission generation circuit 11 and an address counter 12. Here, the write permission generation circuit 11
Is an error detection circuit 1 incorporated in the internal logic circuit 3.
On the basis of the error occurrence signal output from 3 or the forced stop signal input from the external controller 6 via the forced interrupt terminal 5, the count-up of the address counter 12 and the writing of the trace RAM 7 are prohibited. Further, the operation of the address counter 12 and the trace RAM 7 is restarted based on the release of the error occurrence signal of the internal logic circuit 3 or the forced stop signal from the external controller 6.
【0030】アドレスカウンタ12は、0〜N−1まで
カウントアップし、N−1の次は再び0にし、トレース
RAM7内の書き込みアドレスを制御する。また、トレ
ースRAM7は、記憶幅ビット×N段の構成になってい
る。The address counter 12 counts up from 0 to N-1 and resets to 0 after N-1 to control the write address in the trace RAM 7. Further, the trace RAM 7 has a configuration of storage width bits × N stages.
【0031】次に、以上のように構成された本実施例の
トレース機能内蔵型LSIの動作について説明する。ま
ず、LSI1を動作させるとトレースRAM制御回路8
は書き込み許可信号(WE)をトレースRAM7に与え
る。ここでアドレスカウンタ12が毎サイクルごとにト
レースRAM7の書き込みアドレスをカウントアップす
る。その結果、入力端子2,出力端子4からの入出力情
報がトレースRAM7に書き込まれる。Next, the operation of the trace function built-in type LSI of the present embodiment configured as described above will be explained. First, when the LSI 1 is operated, the trace RAM control circuit 8
Gives a write enable signal (WE) to the trace RAM 7. Here, the address counter 12 counts up the write address of the trace RAM 7 every cycle. As a result, the input / output information from the input terminal 2 and the output terminal 4 is written in the trace RAM 7.
【0032】アドレスは0〜N−1までを循環し、これ
によって常に最新のNサイクル分の情報がトレースRA
M7に記憶される。次に、動作中の内部論理回路3でエ
ラーが発生すると、内部論理回路3内のエラー検出回路
13によって当該エラーが検出され、エラー発生信号が
トレースRAM制御回路8に引き渡される。トレースR
AM制御回路8は、エラー検出回路13からのエラー発
生信号又は強制割り込み用端子5を介した外部コントロ
ーラ6からの強制停止信号を受けると、アドレスカウン
タ12のカウントアップを止めて、アドレスを保持する
と共に、トレースRAM7の書き込み許可を停止する。
この時点で、トレースRAM7にはエラー発生又は強制
停止直前のNサイクルの情報が記憶されている。The address circulates from 0 to N-1, so that the latest N cycles of information are always trace RA.
It is stored in M7. Next, when an error occurs in the operating internal logic circuit 3, the error is detected by the error detection circuit 13 in the internal logic circuit 3, and the error occurrence signal is delivered to the trace RAM control circuit 8. Trace R
When the AM control circuit 8 receives an error occurrence signal from the error detection circuit 13 or a forced stop signal from the external controller 6 via the forced interrupt terminal 5, the AM control circuit 8 stops counting up the address counter 12 and holds the address. At the same time, the write permission of the trace RAM 7 is stopped.
At this point of time, the trace RAM 7 stores the information of N cycles immediately before the occurrence of the error or the forced stop.
【0033】さらに、外部コントローラ6は、シリアル
バスインターフェース回路9を制御して、アドレスカウ
ンタ12内の最新のアドレス値とトレースRAM7内の
N段分の情報を読み出し、最新のNサイクル分の情報を
得ることができる。Further, the external controller 6 controls the serial bus interface circuit 9 to read the latest address value in the address counter 12 and the information for N stages in the trace RAM 7, and to obtain the latest information for N cycles. Obtainable.
【0034】上述したように、本実施例によるトレース
機能内蔵型LSIは、LSI1内にトレースRAM7と
トレースRAM制御回路8とシリアルバスインターフェ
ース回路9と強制割り込み用端子5とシリアルバス用端
子10とを設け、システムバスに接続される入力端子2
と出力端子4からの入出力情報を記録し、記録された情
報をシステムバスを介することなくシリアルバス用端子
10を通じてシリアルバスから読み出せるようにしたの
で、ロジックアナライザを用いた解析が不要になり、L
SI端子にプローブを接続するセットアップ作業等を省
略できるので、LSI設計上のバグのデバックあるいは
バグの回避方法の検討等のための解析を効率良く行うこ
とができる。As described above, the trace function built-in type LSI according to this embodiment has the trace RAM 7, the trace RAM control circuit 8, the serial bus interface circuit 9, the forced interrupt terminal 5 and the serial bus terminal 10 in the LSI 1. Input terminal 2 provided and connected to the system bus
Since the input / output information from the output terminal 4 and the recorded information can be read from the serial bus through the serial bus terminal 10 without passing through the system bus, analysis using a logic analyzer is not necessary. , L
Since the setup work and the like for connecting the probe to the SI terminal can be omitted, it is possible to efficiently carry out an analysis for debugging a bug in the LSI design or examining a method for avoiding the bug.
【0035】また、システムにバストレース機能を組み
込む場合は、システムバスにトレースRAMやトレース
RAM制御回路を接続するので、これらのハードウエア
によりバスのトラフィック量が増大し、システムそのも
のの動作速度が遅くなる。しかし、本実施例のLSIを
用いたシステムは、システムバスにこれらの機器を接続
する必要がないので、システムにバストレース機能を組
み込む場合と比べるとシステム全体のハードウエア量を
減らすことができると共に、システムの動作を高速にす
ることができる。Further, when the bus trace function is incorporated in the system, since the trace RAM and the trace RAM control circuit are connected to the system bus, the amount of bus traffic increases due to these hardware and the operating speed of the system itself becomes slow. Become. However, since the system using the LSI of this embodiment does not need to connect these devices to the system bus, the hardware amount of the entire system can be reduced as compared with the case where the bus trace function is incorporated in the system. , The operation of the system can be made faster.
【0036】このようなシステムの動作の高速化につい
ては、例えば次に示す(1)式、すなわちパルスの立ち
上がりにおける伝搬遅延の一般式で評価することができ
る。 Tpd=Tup+Kup・(ΣCin+ΣCi ) …(1) ただし、Tpd :信号伝搬遅延時間(ns) Tup :出力ドライバ固有遅延時間(ns) Kup :出力ドライバ固有負荷係数(ns/ps) Cin :入力ドライバの入力負荷(pF) ΣCi :配線容量(pF) ここでCinはバスに接続される各部品の容量を表し、Σ
Ci は全体の配線長(配線容量)を表しており、RAM
がコンデンサから構成されていることから、システムバ
スに接続するRAMの数を減らすとTpdすなわち信号伝
搬遅延時間を短縮できることがわかる。つまり、システ
ムバスに接続されるRAMの個数を減らすとΣCinをへ
らすことになり、総配線長も短くなるので、(ΣCin+
ΣCi )が小さくなる。従って、トレースRAMをLS
I内に内蔵させることにより、システムバスの伝搬遅延
時間が短縮され、システムの動作周期が速くなる。The speedup of the operation of such a system can be evaluated, for example, by the following equation (1), that is, the general equation of the propagation delay at the rising edge of the pulse. Tpd = Tup + Kup · (ΣCin + ΣCi) (1) where Tpd: signal propagation delay time (ns) Tup: output driver specific delay time (ns) Kup: output driver specific load coefficient (ns / ps) Cin: input driver input Load (pF) ΣCi: Wiring capacitance (pF) Here, Cin represents the capacitance of each component connected to the bus, and Σ
Ci represents the total wiring length (wiring capacity), and RAM
Is composed of a capacitor, it can be understood that Tpd, that is, the signal propagation delay time can be shortened by reducing the number of RAMs connected to the system bus. In other words, if the number of RAMs connected to the system bus is reduced, ΣCin will be reduced, and the total wiring length will be shortened.
ΣC i) becomes smaller. Therefore, trace RAM is LS
By incorporating it in I, the propagation delay time of the system bus is shortened and the operating cycle of the system is shortened.
【0037】次に、図2は、本発明に係るトレース機能
内蔵型LSIの第2の実施例を示すブロック図である。
図1と同一部分には同一符号を付して説明し、ここでは
異なる部分についてのみ述べる。Next, FIG. 2 is a block diagram showing a second embodiment of the trace function built-in type LSI according to the present invention.
The same parts as those in FIG. 1 are described with the same reference numerals, and only different parts will be described here.
【0038】図2において、トレースRAM7bは入力
端子2及び出力端子4でなく、内部論理回路3に接続さ
れ、内部論理回路3の予め指定された位置における内部
信号が書き込まれる。In FIG. 2, the trace RAM 7b is connected to the internal logic circuit 3 instead of the input terminal 2 and the output terminal 4, and the internal signal is written at a predetermined position of the internal logic circuit 3.
【0039】また、その他の構成は第1の実施例の構成
と同じなので、ここではその説明を省略する。以上のよ
うに構成された本実施例のトレース機能内蔵型LSIの
動作は、トレースRAMに書き込まれる情報が入出力情
報でなく出力端子4からは出力されない内部論理回路3
の内部情報であるという点を除いて第1の実施例の動作
と同じなので、ここではその説明を省略する。Since the other structure is the same as that of the first embodiment, its description is omitted here. The operation of the trace function built-in type LSI of the present embodiment configured as described above is such that the information written in the trace RAM is not input / output information and is not output from the output terminal 4.
Since it is the same as the operation of the first embodiment except that it is the internal information of the above, the description thereof is omitted here.
【0040】このように、本実施例によるトレース機能
内蔵型LSIは、第1の実施例と同様にシステムの動作
速度を遅延させることなく内部情報をトレースできる
他、新たな出力端子を設けることなく内部論理回路3の
内部情報をトレースすることができる。このことは、L
SIの入出力端子数の減少、チップ面積の縮小につなが
るのでLSIの製造コストを下げることができる。As described above, the trace function built-in type LSI according to the present embodiment can trace the internal information without delaying the operation speed of the system as in the first embodiment, and without providing a new output terminal. The internal information of the internal logic circuit 3 can be traced. This is L
This leads to a reduction in the number of SI input / output terminals and a reduction in the chip area, so that the LSI manufacturing cost can be reduced.
【0041】さらに、図3は、本発明に係るトレース機
能内蔵型LSIの第3の実施例を示すブロック図であ
る。図1と同一部分には同一符号を付して説明し、ここ
では異なる部分についてのみ述べる。Further, FIG. 3 is a block diagram showing a third embodiment of a trace function built-in type LSI according to the present invention. The same parts as those in FIG. 1 are described with the same reference numerals, and only different parts will be described here.
【0042】図3において、入力端子2及び出力端子4
と内部論理回路3の複数位置から信号がセレクタ14に
入力されており、セレクタ14はモード切り換えレジス
タ15の情報に基づいてトレースRAM7cに書き込ま
れる情報を選択する。In FIG. 3, the input terminal 2 and the output terminal 4
And signals from a plurality of positions in the internal logic circuit 3 are input to the selector 14, and the selector 14 selects information to be written in the trace RAM 7c based on the information in the mode switching register 15.
【0043】モード切り換えレジスタ15には、外部コ
ントローラ6よりシリアルバスインターフェース回路9
bを介してセレクタ14で選択する情報の対象が書き込
まれている。モード切り換えレジスタ15の内容は書換
可能である。The mode switching register 15 includes a serial bus interface circuit 9 from the external controller 6.
The target of the information selected by the selector 14 is written via b. The contents of the mode switching register 15 can be rewritten.
【0044】トレースRAM7cには、セレクタ14で
選択された入力端子2及び出力端子4あるいは内部論理
回路3の情報が書き込まれる。なお、データ選択回路
は、例えばセレクタ14及びモード切り換えレジスタ1
5から構成されている。Information of the input terminal 2 and the output terminal 4 or the internal logic circuit 3 selected by the selector 14 is written in the trace RAM 7c. The data selection circuit includes, for example, the selector 14 and the mode switching register 1
It is composed of 5.
【0045】また、その他の構成は第1の実施例の構成
と同じなので、ここではその説明を省略する。次に、以
上のように構成された本実施例のトレース機能内蔵型L
SIの動作について説明する。Since the other structure is the same as that of the first embodiment, its description is omitted here. Next, the trace function built-in type L of the present embodiment configured as described above
The operation of SI will be described.
【0046】まず、シリアルバスインターフェース回路
9bを介してモード切り換えレジスタ15に値を設定す
る。この設定された値によってトレースされる情報の対
象が指定される。トレース内容は、用途に応じて様々で
あるが、本実施例では入力信号、出力信号あるいは制御
レジスタ等の内部論理回路3の内部信号としている。ま
た、トレースしたい内部信号数が多い場合には複数グル
ープに分けることができる。これらの情報の内、上記し
たようにモード切り換えレジスタ15に指定されたもの
が、セレクタ14によって選択されてトレースRAM7
cに入力される。First, a value is set in the mode switching register 15 via the serial bus interface circuit 9b. The target of the information traced is specified by this set value. The trace content varies depending on the application, but in this embodiment, it is an input signal, an output signal, or an internal signal of the internal logic circuit 3 such as a control register. If the number of internal signals to be traced is large, they can be divided into a plurality of groups. Of these pieces of information, the one designated in the mode switching register 15 as described above is selected by the selector 14 to be selected in the trace RAM 7.
Input to c.
【0047】トレース情報対象の指定後、LSI1を動
作させると、トレースRAM制御回路8は書き込み許可
信号(WE)をトレースRAM7cを与える。ここでア
ドレスカウンタ12が毎サイクルごとにトレースRAM
7cの書き込みアドレスをカウントアップし、その結
果、入力端子2,出力端子4からの入出力情報がトレー
スRAM7cに書き込まれる。When the LSI 1 is operated after the trace information target is designated, the trace RAM control circuit 8 gives a write enable signal (WE) to the trace RAM 7c. Here, the address counter 12 has a trace RAM for each cycle.
The write address of 7c is counted up, and as a result, the input / output information from the input terminal 2 and the output terminal 4 is written in the trace RAM 7c.
【0048】アドレスは0〜N−1までを循環し、これ
によって常に最新のNサイクル分の情報がトレースRA
M7cに記憶される。次に、動作中の内部論理回路3で
エラーが発生すると、内部論理回路3内のエラー検出回
路13によって当該エラーが検出され、エラー発生信号
がトレースRAM制御回路8に引き渡される。トレース
RAM制御回路8は、エラー検出回路13からのエラー
発生信号又は強制割り込み用端子5を介した外部コント
ローラ6からの強制停止信号を受けると、アドレスカウ
ンタ12のカウントアップを止めて、アドレスを保持す
ると共に、トレースRAM7cの書き込み許可を停止す
る。この時点で、トレースRAM7cにはエラー発生又
は強制停止直前のNサイクルの情報が記憶されている。The address circulates from 0 to N-1, whereby the latest N cycles of information are always traced RA.
It is stored in M7c. Next, when an error occurs in the operating internal logic circuit 3, the error is detected by the error detection circuit 13 in the internal logic circuit 3, and the error occurrence signal is delivered to the trace RAM control circuit 8. When the trace RAM control circuit 8 receives an error occurrence signal from the error detection circuit 13 or a forced stop signal from the external controller 6 via the forced interrupt terminal 5, the trace RAM control circuit 8 stops counting up the address counter 12 and holds the address. At the same time, the write permission of the trace RAM 7c is stopped. At this point in time, the trace RAM 7c stores information on N cycles immediately before the occurrence of an error or forced stop.
【0049】さらに、外部コントローラ6は、シリアル
バスインターフェース回路9bを制御して、アドレスカ
ウンタ12内の最新のアドレス値とトレースRAM7c
内のN段分の情報を読み出し、最新のNサイクル分の情
報を得ることができる。Further, the external controller 6 controls the serial bus interface circuit 9b so that the latest address value in the address counter 12 and the trace RAM 7c can be obtained.
It is possible to obtain the latest N cycles of information by reading the information of N stages in the above.
【0050】このように、本実施例によるトレース機能
内蔵型LSIは、第1又は第2の実施例と同様の効果が
得られる他、入力情報、出力情報、内部情報をそれぞれ
さらに細かくグループ分けしてトレースビット幅を小さ
くすることができるので、必要なRAMの容量を小さく
することができる。また、モード切り換えレジスタ15
で必要な情報を切り換え、選択できるので、より多くの
情報のトレースができる。従って、第1又は第2の実施
例の場合よりもトレースRAM7cの容量を小さくする
ことができ、より多くの情報をトレースすることができ
る。As described above, the LSI with built-in trace function according to the present embodiment can obtain the same effect as that of the first or second embodiment, and further divides input information, output information, and internal information into finer groups. Since the trace bit width can be reduced, the required RAM capacity can be reduced. In addition, the mode switching register 15
The necessary information can be switched and selected with, so more information can be traced. Therefore, the capacity of the trace RAM 7c can be made smaller than in the case of the first or second embodiment, and more information can be traced.
【0051】さらに、図4は、本発明に係るトレース機
能内蔵型LSIの第4の実施例を示すブロック図であ
る。図3と同一部分には同一符号を付して説明し、ここ
では異なる部分についてのみ述べる。Further, FIG. 4 is a block diagram showing a fourth embodiment of a trace function built-in type LSI according to the present invention. The same parts as those in FIG. 3 are described with the same reference numerals, and only different parts will be described here.
【0052】図4において、内部論理回路3内にはエラ
ー検出回路13の他に、動作条件検出回路16が設けら
れている。この動作条件検出回路16は、外部コントロ
ーラ6よりシリアルバスインターフェース回路9cを介
して書き込まれた動作条件を満たした場合、条件合致信
号をトレースRAM制御回路8へ送出する。In FIG. 4, an operation condition detection circuit 16 is provided in the internal logic circuit 3 in addition to the error detection circuit 13. The operation condition detection circuit 16 sends a condition match signal to the trace RAM control circuit 8 when the operation condition written from the external controller 6 via the serial bus interface circuit 9c is satisfied.
【0053】また、その他の構成は第3の実施例の構成
と同じなので、ここではその説明を省略する。次に、以
上のように構成された本実施例のトレース機能内蔵型L
SIの動作について説明する。Since the other structure is the same as that of the third embodiment, its description is omitted here. Next, the trace function built-in type L of the present embodiment configured as described above
The operation of SI will be described.
【0054】まず、シリアルバスインターフェース回路
9cを介して動作条件検出回路16に必要な値を入力
し、LSIの停止条件を設定する。動作条件検出回路1
6が、LSI1の動作中、内部に設定された条件を満た
した場合に条件合致信号をトレースRAM制御回路8へ
送信する他は、第3の実施例と同様である。First, a necessary value is input to the operation condition detection circuit 16 via the serial bus interface circuit 9c to set the LSI stop condition. Operating condition detection circuit 1
The sixth embodiment is the same as the third embodiment except that the condition matching signal is transmitted to the trace RAM control circuit 8 when the condition set therein is satisfied during the operation of the LSI 1.
【0055】また、例えば演算中、内部論理回路3内の
第Mレジスタが値Kになるまでの履歴を得ることを考え
る。まず、シリアルバスインターフェース回路9cを介
して動作条件検出回路16に内部論理回路3内第Mレジ
スタが値Kになったとき、条件合致信号をトレースRA
M制御回路8へ送出するように設定する。Consider, for example, that the history until the M-th register in the internal logic circuit 3 becomes the value K is obtained during the operation. First, when the Mth register in the internal logic circuit 3 becomes the value K in the operating condition detection circuit 16 via the serial bus interface circuit 9c, the condition matching signal is traced RA.
It is set to send to the M control circuit 8.
【0056】次に、シリアルバスインターフェース回路
9cを介してモード切り換えレジスタ15を書換え、第
Mレジスタをトレースするように設定する。上記設定
後、LSIを動作させる。動作中、第MレジスタがKに
なるまでエラーを発生せず、かつ、外部からの強制停止
信号も入力されない場合、第MレジスタがKになったと
き、条件合致信号がトレースRAM制御回路8へ送出さ
れ、トレースRAM7cが停止される。Next, the mode switching register 15 is rewritten through the serial bus interface circuit 9c, and the Mth register is set to be traced. After the above setting, the LSI is operated. In the operation, if the error does not occur until the Mth register becomes K and the forced stop signal from the outside is not input, when the Mth register becomes K, the condition matching signal is sent to the trace RAM control circuit 8. Then, the trace RAM 7c is stopped.
【0057】もし、例えば第MレジスタがKになるまで
の入力値も必要ならば、モード切り換えレジスタ15の
値を切り換えて同様な操作を行えばよい。このように、
本実施例によるトレース機能内蔵型LSIは、動作条件
検出回路16に設定された条件でトレースRAM7cに
対する新規データの書き込みを停止できるようにしたの
で、第3の実施例と同様の効果が得られる他、内部論理
回路3内の任意の条件で回路(LSI)を停止して、そ
れまでの履歴を解析することができる。If, for example, the input value until the M-th register becomes K is also required, the value of the mode switching register 15 may be switched to perform the same operation. in this way,
In the trace function built-in type LSI according to the present embodiment, the writing of new data to the trace RAM 7c can be stopped under the condition set in the operation condition detection circuit 16, so that the same effect as the third embodiment can be obtained. The circuit (LSI) can be stopped under any condition in the internal logic circuit 3 and the history up to that point can be analyzed.
【0058】また、図5は、本発明に係るトレース機能
内蔵型LSIの第5の実施例を示すブロック図である。
図4と同一部分には同一符号を付して説明し、ここでは
異なる部分についてのみ述べる。FIG. 5 is a block diagram showing the fifth embodiment of the trace function built-in type LSI according to the present invention.
The same parts as those in FIG. 4 are described with the same reference numerals, and only different parts will be described here.
【0059】図5において、内部論理回路3内のエラー
検出回路13b内に、動作条件検出回路16bが設けら
れている。したがって、エラー検出回路13bは、内部
回路でエラーが発生した場合、又は、外部コントローラ
6よりシリアルバスインターフェース回路9cを介して
動作条件検出回路16bに書き込まれた動作条件が満た
された場合、エラー発生信号、又は、条件合致信号の代
わりに強制停止信号をトレースRAM制御回路8へ送出
する。In FIG. 5, an operation condition detection circuit 16b is provided in the error detection circuit 13b in the internal logic circuit 3. Therefore, the error detection circuit 13b generates an error when an error occurs in the internal circuit or when the operation condition written in the operation condition detection circuit 16b from the external controller 6 via the serial bus interface circuit 9c is satisfied. A forced stop signal is sent to the trace RAM control circuit 8 instead of the signal or the condition matching signal.
【0060】また、その他の構成は第4の実施例の構成
と同じなので、ここではその説明を省略する。以上のよ
うに構成された本実施例のトレース機能内蔵型LSIの
動作は、エラー発生信号、又は、条件合致信号の代わり
に強制停止信号がトレースRAM制御回路8へ送出され
る他は、第4の実施例と同様である。Since the other structure is the same as that of the fourth embodiment, its explanation is omitted here. The operation of the trace function built-in type LSI of the present embodiment configured as described above is the fourth except that the error occurrence signal or the forced stop signal is sent to the trace RAM control circuit 8 instead of the condition matching signal. It is similar to the embodiment of.
【0061】このように、本実施例によるトレース機能
内蔵型LSIは、動作条件検出回路16bをエラー検出
回路13b内に設けたので、第4の実施例と同様の効果
が得られる他、第4の実施例におけるエラー検出回路1
3と動作条件検出回路16の共通部分を省略できるので
回路を簡便にすることができる。As described above, in the trace function built-in type LSI according to the present embodiment, since the operating condition detection circuit 16b is provided in the error detection circuit 13b, the same effect as that of the fourth embodiment can be obtained and the fourth embodiment. Error detection circuit 1 in the embodiment
3 can be omitted, so that the circuit can be simplified.
【0062】また、図6は、本発明に係るトレース機能
内蔵型LSIの第6の実施例を示すブロック図である。
図1と同一部分には同一符号を付して説明し、ここでは
異なる部分についてのみ述べる。FIG. 6 is a block diagram showing a sixth embodiment of a trace function built-in type LSI according to the present invention.
The same parts as those in FIG. 1 are described with the same reference numerals, and only different parts will be described here.
【0063】図6において、トレース機能内蔵型LSI
は、図1内の強制割り込み用端子を備えていない。本実
施例では、外部からの強制停止信号はシリアルバス用端
子10及びシリアルバスインターフェース回路9dを介
してトレースRAM制御回路8に入力される。In FIG. 6, an LSI with a built-in trace function
Does not include the forced interrupt terminal in FIG. In this embodiment, a forced stop signal from the outside is input to the trace RAM control circuit 8 via the serial bus terminal 10 and the serial bus interface circuit 9d.
【0064】また、その他の構成は第1の実施例の構成
と同じなので、ここではその説明を省略する。以上のよ
うに構成された本実施例のトレース機能内蔵型LSIの
動作は、外部からの強制停止信号がシリアルバスインタ
ーフェース回路9dを介してトレースRAM制御回路8
に入力されるという点を除いて第1の実施例の動作と同
じなので、ここではその説明を省略する。Since the other structure is the same as that of the first embodiment, its explanation is omitted here. In the operation of the trace function built-in type LSI of the present embodiment configured as described above, the trace RAM control circuit 8 receives a forced stop signal from the outside via the serial bus interface circuit 9d.
Since the operation is the same as that of the first embodiment except that it is input to, the description thereof will be omitted here.
【0065】上述したように、本実施例によるトレース
機能内蔵型LSIは、第1の実施例から強制割り込み用
端子を省略し、外部からの強制停止信号をシリアルバス
インターフェース回路9dを介してトレースRAM制御
回路8に入力するようにしたので、第1の実施例と同様
な効果の他、LSIの入出力端子を減らすことができ、
このことはチップ面積の縮小につながるのでLSIの製
造コストを下げることができる。As described above, in the trace function built-in type LSI according to the present embodiment, the forced interrupt terminal is omitted from the first embodiment, and the forced stop signal from the outside is traced through the serial bus interface circuit 9d to the trace RAM. Since the input is made to the control circuit 8, the input and output terminals of the LSI can be reduced in addition to the same effect as the first embodiment.
This leads to a reduction in the chip area, so that the LSI manufacturing cost can be reduced.
【0066】また、本実施例は当然のことながら、第
2,第3,第4,第5の実施例にも適用できる。なお、
実施例では外部コントローラとの接続のためにシリアル
バスを用いているが、本発明は、これに限られるもので
はなく、どのようなバスを用いてもよい。Further, this embodiment is naturally applicable to the second, third, fourth and fifth embodiments. In addition,
Although the embodiment uses the serial bus for connection with the external controller, the present invention is not limited to this, and any bus may be used.
【0067】さらに、本実施例では、外部コントローラ
によりトレースRAMとアドレスカウンタ内の情報読み
出し制御を行っているが、本発明は、これに限定される
ものでなく、システムバスを介さないのならばどのよう
な方式で情報の読み出しを行ってもよく、例えば読み出
し制御部分をLSI内に設けても構わない。このように
本発明は、その要旨を逸脱しない範囲で種々変形が可能
である。Further, in the present embodiment, the information read control in the trace RAM and the address counter is performed by the external controller, but the present invention is not limited to this, and if the system bus is not used. Information may be read by any method, for example, a read control portion may be provided in the LSI. As described above, the present invention can be variously modified without departing from the gist thereof.
【0068】[0068]
【発明の効果】以上詳記したように本発明によれば、L
SIが接続されるシステムにおいて、当該システムのシ
ステムバスにハードウエアを接続することなく、接続さ
れたLSIの履歴情報を保持する機能を実現でき、ひい
ては高速にシステムを動作させることのできるトレース
機能内蔵型LSIを提供することができる。As described above in detail, according to the present invention, L
In a system to which SI is connected, the function to retain the history information of the connected LSI can be realized without connecting the hardware to the system bus of the system, and eventually the system has a trace function that can operate the system at high speed. A type LSI can be provided.
【図1】本発明に係るトレース機能内蔵型LSIの第1
の実施例を示すブロック図。FIG. 1 is a first LSI with a built-in trace function according to the present invention.
FIG.
【図2】本発明に係るトレース機能内蔵型LSIの第2
の実施例を示すブロック図。FIG. 2 is a second LSI with a built-in trace function according to the present invention.
FIG.
【図3】本発明に係るトレース機能内蔵型LSIの第3
の実施例を示すブロック図。FIG. 3 is a third LSI with a built-in trace function according to the present invention.
FIG.
【図4】本発明に係るトレース機能内蔵型LSIの第4
の実施例を示すブロック図。FIG. 4 is a fourth LSI with a built-in trace function according to the present invention.
FIG.
【図5】本発明に係るトレース機能内蔵型LSIの第5
の実施例を示すブロック図。FIG. 5 is a fifth LSI with a built-in trace function according to the present invention.
FIG.
【図6】本発明に係るトレース機能内蔵型LSIの第6
の実施例を示すブロック図。FIG. 6 is a sixth LSI with a built-in trace function according to the present invention.
FIG.
【図7】ロジックアナライザを用いた従来のLSI入出
力端子情報を取得する装置の構成を示す図。FIG. 7 is a diagram showing a configuration of a conventional device that acquires LSI input / output terminal information using a logic analyzer.
【図8】システムにバストレース機能を組み込んだ従来
のLSI入出力端子情報を取得する装置の構成を示す
図。FIG. 8 is a diagram showing a configuration of a conventional device for acquiring information on an LSI input / output terminal in which a bus trace function is incorporated in a system.
1…LSI、2…入力端子、3…内部論理回路、4…出
力端子、5…強制割り込み用端子、7,7b,7c…ト
レースRAM、8…トレースRAM制御回路、9,9
b,9c,9d…シリアルバスインターフェース回路、
11…書き込み許可発生回路、12…アドレスカウン
タ、13,13b…エラー検出回路、14…セレクタ、
15…モード切り換えレジスタ、16,16b…動作条
件検出回路。1 ... LSI, 2 ... Input terminal, 3 ... Internal logic circuit, 4 ... Output terminal, 5 ... Forced interrupt terminal, 7, 7b, 7c ... Trace RAM, 8 ... Trace RAM control circuit, 9, 9
b, 9c, 9d ... Serial bus interface circuit,
11 ... Write permission generation circuit, 12 ... Address counter, 13, 13b ... Error detection circuit, 14 ... Selector,
15 ... Mode switching register 16, 16b ... Operating condition detection circuit.
Claims (4)
作中この所定のデータ処理機能を検診してエラー発生時
にエラー発生信号を発する内部回路と、この内部回路に
対するデータの入出力を行うための入出力端子とを有す
るLSIにおいて、 前記内部回路に接続され、動作中この内部回路に対する
入出力データ又はこの内部回路内の所定位置の内部デー
タにおける常に最新の所定個数のデータを記憶保持する
トレースメモリ回路と、 前記エラー発生信号を受領して前記トレースメモリ回路
における新規データの記憶保持動作を停止させるメモリ
制御回路と、 前記新規データの記憶保持動作を停止した後のトレース
メモリ回路に記憶保持されているデータをインタフェー
ス端子を介して外部へ送出するインタフェース回路とを
備えたトレース機能内蔵型LSI。1. An internal circuit which has a predetermined data processing function and which detects the predetermined data processing function during operation and issues an error occurrence signal when an error occurs, and inputs and outputs data to and from this internal circuit. An LSI having an input / output terminal for storing the latest predetermined number of data in the input / output data to / from the internal circuit or the internal data at a predetermined position in the internal circuit which is connected to the internal circuit during operation. A trace memory circuit, a memory control circuit that receives the error occurrence signal and stops the storage and holding operation of new data in the trace memory circuit, and a storage and holding unit in the trace memory circuit after stopping the storage and holding operation of the new data With an interface circuit that sends the stored data to the outside through the interface terminal LSI with built-in functions.
作中この所定のデータ処理機能を検診してエラー発生時
にエラー発生信号を発する内部回路と、この内部回路に
対するデータの入出力を行うための入出力端子とを有す
るLSIにおいて、 前記内部回路に接続され、動作中この内部回路に対する
入出力データ又はこの内部回路内の所定位置の内部デー
タにおける常に最新の所定個数のデータを記憶保持する
トレースメモリ回路と、 前記エラー発生信号又は割込端子を介して外部から入力
された強制停止信号を受領して前記トレースメモリ回路
における新規データの記憶保持動作を停止させるメモリ
制御回路と、 前記新規データの記憶保持動作を停止した後のトレース
メモリ回路に記憶保持されているデータをインタフェー
ス端子を介して外部へ送出するインタフェース回路とを
備えたトレース機能内蔵型LSI。2. An internal circuit which has a predetermined data processing function and which detects the predetermined data processing function during operation and issues an error occurrence signal when an error occurs, and inputs and outputs data to and from this internal circuit. An LSI having an input / output terminal for storing the latest predetermined number of data in the input / output data to / from the internal circuit or the internal data at a predetermined position in the internal circuit which is connected to the internal circuit during operation. A trace memory circuit, a memory control circuit that receives the error occurrence signal or a forced stop signal input from the outside through an interrupt terminal and stops the memory holding operation of new data in the trace memory circuit, and the new data Data stored in the trace memory circuit after stopping the memory holding operation of the An LSI with a built-in trace function that has an interface circuit that sends it to the outside.
作中この所定のデータ処理機能を検診してエラー発生時
にエラー発生信号を発する内部回路と、この内部回路に
対するデータの入出力を行うための入出力端子とを有す
るLSIにおいて、 前記内部回路に接続され、動作中この内部回路に対する
入出力データ又はこの内部回路内の所定位置の内部デー
タにおける常に最新の所定個数のデータを記憶保持する
トレースメモリ回路と、 前記内部回路の動作状態が予め外部から指定された条件
を満たすと条件合致信号を出力する動作条件検出回路
と、 前記エラー発生信号又は前記条件合致信号を受領して前
記トレースメモリ回路における新規データの記憶保持動
作を停止させるメモリ制御回路と、 前記新規データの記憶保持動作を停止した後のトレース
メモリ回路に記憶保持されているデータをインタフェー
ス端子を介して外部へ送出するインタフェース回路とを
備えたトレース機能内蔵型LSI。3. An internal circuit which has a predetermined data processing function and which detects the predetermined data processing function during operation and issues an error occurrence signal when an error occurs, and inputs and outputs data to and from this internal circuit. An LSI having an input / output terminal for storing the latest predetermined number of data in the input / output data to / from the internal circuit or the internal data at a predetermined position in the internal circuit which is connected to the internal circuit during operation. A trace memory circuit, an operation condition detection circuit that outputs a condition match signal when the operation state of the internal circuit satisfies a condition specified in advance from the outside, and the trace memory that receives the error occurrence signal or the condition match signal A memory control circuit for stopping the memory holding operation of new data in the circuit, and after stopping the memory holding operation of the new data Trace function built-in LSI having an interface circuit for sending data stored and held in the trace memory circuit to the outside through the interface terminal.
間に介挿され、前記内部回路に対する入出力データ又は
この内部回路内の所定位置の内部データのうちの外部か
ら指定された種類のデータを選択して前記トレースメモ
リ回路へ送出するデータ選択回路を備えたことを特徴と
する請求項1乃至3のいずれか1項記載のトレース機能
内蔵型LSI。4. An input / output data for the internal circuit or data of a type specified from outside of internal data at a predetermined position in the internal circuit is inserted between the internal circuit and the trace memory circuit. 4. The trace function built-in type LSI according to any one of claims 1 to 3, further comprising a data selection circuit for selecting and transmitting to the trace memory circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6196722A JPH0863374A (en) | 1994-08-22 | 1994-08-22 | Tracing function incorporated type lsi |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6196722A JPH0863374A (en) | 1994-08-22 | 1994-08-22 | Tracing function incorporated type lsi |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0863374A true JPH0863374A (en) | 1996-03-08 |
Family
ID=16362514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6196722A Pending JPH0863374A (en) | 1994-08-22 | 1994-08-22 | Tracing function incorporated type lsi |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0863374A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001013135A1 (en) * | 1998-01-30 | 2001-02-22 | Matsushita Electric Industrial Co., Ltd. | Internal signal monitor of integrated circuit |
KR100343765B1 (en) * | 1998-10-20 | 2002-07-20 | 마쯔시다덴기산교 가부시키가이샤 | Signal processing apparatus |
US6484243B1 (en) | 1998-09-18 | 2002-11-19 | Matsushita Electric Industrial Co., Ltd. | Shared memory tracing apparatus |
JP2003006003A (en) * | 2001-06-18 | 2003-01-10 | Mitsubishi Electric Corp | Dma controller and semiconductor integrated circuit |
US6687863B1 (en) | 1999-07-29 | 2004-02-03 | Matsushita Electric Industrial Co., Ltd. | Integrated circuit internal signal monitoring apparatus |
JP2009129368A (en) * | 2007-11-27 | 2009-06-11 | Ricoh Co Ltd | Program, method and apparatus for verifying semiconductor integrated circuit |
JP2010205064A (en) * | 2009-03-04 | 2010-09-16 | Fujitsu Ltd | Device and method for tracing for fault analysis |
JP2012074057A (en) * | 2003-07-11 | 2012-04-12 | Yogitech Spa | Dependable microcontroller, designing method thereof and computer program therefor |
JP2016136292A (en) * | 2015-01-23 | 2016-07-28 | 株式会社リコー | Semiconductor device, log acquisition method, and electronic apparatus |
-
1994
- 1994-08-22 JP JP6196722A patent/JPH0863374A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001013135A1 (en) * | 1998-01-30 | 2001-02-22 | Matsushita Electric Industrial Co., Ltd. | Internal signal monitor of integrated circuit |
US6484243B1 (en) | 1998-09-18 | 2002-11-19 | Matsushita Electric Industrial Co., Ltd. | Shared memory tracing apparatus |
KR100343765B1 (en) * | 1998-10-20 | 2002-07-20 | 마쯔시다덴기산교 가부시키가이샤 | Signal processing apparatus |
US6687863B1 (en) | 1999-07-29 | 2004-02-03 | Matsushita Electric Industrial Co., Ltd. | Integrated circuit internal signal monitoring apparatus |
JP2003006003A (en) * | 2001-06-18 | 2003-01-10 | Mitsubishi Electric Corp | Dma controller and semiconductor integrated circuit |
JP2012074057A (en) * | 2003-07-11 | 2012-04-12 | Yogitech Spa | Dependable microcontroller, designing method thereof and computer program therefor |
JP2009129368A (en) * | 2007-11-27 | 2009-06-11 | Ricoh Co Ltd | Program, method and apparatus for verifying semiconductor integrated circuit |
JP2010205064A (en) * | 2009-03-04 | 2010-09-16 | Fujitsu Ltd | Device and method for tracing for fault analysis |
JP2016136292A (en) * | 2015-01-23 | 2016-07-28 | 株式会社リコー | Semiconductor device, log acquisition method, and electronic apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4460999A (en) | Memory tester having memory repair analysis under pattern generator control | |
US4736373A (en) | Memory tester having concurrent failure data readout and memory repair analysis | |
JPH0863374A (en) | Tracing function incorporated type lsi | |
US6728906B1 (en) | Trace buffer for a configurable system-on-chip | |
KR20060110359A (en) | Devices and methods for integrated systems for critical safety computer systems in automobiles | |
JPH11282709A (en) | In-circuit emulator | |
US7051237B2 (en) | Program-controlled unit | |
US6266626B1 (en) | ROM data verification circuit | |
JPH10214206A (en) | Information processor | |
JP2006090727A (en) | On-chip logic analyzer | |
JPS6153579A (en) | Logic circuit function tester | |
JP3008914B2 (en) | Semiconductor integrated circuit | |
US20050209715A1 (en) | Monitoring device for monitoring internal signals during initialization of an electronic circuit unit | |
JPH1196793A (en) | Semiconductor memory test device | |
JP2692408B2 (en) | Built-in diagnostic circuit in large scale integrated circuit | |
SU1405059A1 (en) | Device for checking digital units | |
JPH11353897A (en) | Ic-testing apparatus | |
JPH02216565A (en) | Memory testing device | |
JPH0512063A (en) | Logic circuit design device | |
JPS59211123A (en) | Semiconductor integrated circuit | |
JPH03108022A (en) | Semiconductor integrated circuit | |
JPH05101699A (en) | Memory device | |
JPH03269900A (en) | Semiconductor integrated circuit | |
JPH0312744A (en) | Error detecting circuit | |
JPH0997194A (en) | Data acquisition device for fail memory |