JPS62130437A - Lsi tracing system - Google Patents

Lsi tracing system

Info

Publication number
JPS62130437A
JPS62130437A JP60272066A JP27206685A JPS62130437A JP S62130437 A JPS62130437 A JP S62130437A JP 60272066 A JP60272066 A JP 60272066A JP 27206685 A JP27206685 A JP 27206685A JP S62130437 A JPS62130437 A JP S62130437A
Authority
JP
Japan
Prior art keywords
lsi
output
data
signal
circuit
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
JP60272066A
Other languages
Japanese (ja)
Inventor
Tatsuya Yamaguchi
達也 山口
Toshihiro Sakai
酒井 利弘
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP60272066A priority Critical patent/JPS62130437A/en
Publication of JPS62130437A publication Critical patent/JPS62130437A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform real-time tracing operation by providing two LSIs which have a switching circuit for a normal output and an internal state, and putting one LSI in operation and outputting the normal output and internal state from the other. CONSTITUTION:A master mode LSI 6 and a debugging mode LSI 14 which perform the same operation are provided with switching circuits 7 and 15, and mode signals 3 and 11 are received by the circuits 7 and 15, which output the normal output signal 4 and a normal output and internal state output signal 12 to an external circuit 5 and a tracing circuit 13. Then, a normal input signal 17 and data 18 are inputted to the LSIs 6 and 14 in common to connect the circuit 5 to a main memory 10 and also trace it by the circuit 13.

Description

【発明の詳細な説明】 〔概要〕 通常出力信号及び内部状態出力信号を出力し得る2つの
LSIをシステム内に設けると共にこれら両LSIの一
方にシステムのための実際の稼動状態を生ぜしめつつ、
これと同じ動作を行なっている他方のLSIから通常の
出力信号及び内部状態出力信号をトレース情報信号とし
て出力させてシステムLSI内外部データのリアルタイ
ムトレースを行なう。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Two LSIs capable of outputting a normal output signal and an internal state output signal are provided in a system, and an actual operating state for the system is generated in one of these two LSIs.
The other LSI, which is performing the same operation, outputs normal output signals and internal status output signals as trace information signals to perform real-time tracing of internal and external data of the system LSI.

〔産業上の利用分野〕[Industrial application field]

本発明はLSIトレース方式に関し、更に詳しく言えば
LSIにバッファメモリを有する場合のLSI内外部デ
ータのリアルタイムトレースを行ない得るLSIトレー
ス方式に関する。
The present invention relates to an LSI tracing method, and more particularly to an LSI tracing method that can perform real-time tracing of internal and external data of an LSI when the LSI has a buffer memory.

情報処理システムではその正常な動作をチェックするた
めの手段としてデバッグ機能が設けられている。このデ
バッグ機能は通例、システムの通常稼動状態にない状態
の下で行なわれるのが普通である。
An information processing system is provided with a debug function as a means for checking its normal operation. This debugging function is typically performed under non-normal operating conditions of the system.

しかしながら、システムの利用分野によっては、従来の
デバッグ技法では不都合が生じてしまう場合が生ずるの
で、これを技術的に解決するための手段の開発が望まれ
るところとなっている。
However, depending on the field of use of the system, conventional debugging techniques may cause inconveniences, and there is a need for the development of means to technically solve these problems.

〔従来の技術〕[Conventional technology]

従来、内部にバッファメモリを備えたプロセッサLSI
でプログラムのトレースを行なう手段はソフトウェアに
よりトレース情報を得る如きものであった。これは第4
図に示すように1つの命令実行の都度、プロセッサをト
レース状態にするか又はトレース割込みによりプログラ
ムカウンタ等の内容を成る特定のメモリ領域(トレース
メモリ)に格納し、再び命令実行状態へ復帰するプロセ
スを繰り返すものである。
Conventionally, a processor LSI with an internal buffer memory
The means to trace a program was to obtain trace information using software. This is the fourth
As shown in the figure, a process in which each time an instruction is executed, the processor is placed in a trace state or the contents of the program counter, etc. are stored in a specific memory area (trace memory) by a trace interrupt, and then returned to the instruction execution state. is repeated.

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

この技法は上述の如く、各命令の実行の都度、トレース
ルーチンの実行に入ってメインプログラムに戻るため、
トレースのリアルタイムを行ない得ているというに不十
分なもので、高度のリアルタイム性を要求される分野に
は、適用し得ないものである。
As mentioned above, this technique enters the execution of the trace routine and returns to the main program each time each instruction is executed.
It is insufficient to perform real-time tracing, and cannot be applied to fields that require a high degree of real-time performance.

本発明は斯かる問題点に鑑みて創作されたもので、実働
のプログラムをリアルタイムでトレースし得るLSIl
−レース方式を提供することを目的とする。
The present invention was created in view of such problems, and is an LSI that can trace actual programs in real time.
- Aims to provide a racing format.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の原理ブロック図を示す。図において、
1は装置プリント板、2はデバッグプリント板である。
FIG. 1 shows a block diagram of the principle of the present invention. In the figure,
1 is a device printed board, and 2 is a debug printed board.

装置プリント板1にはモード信号“0”3を受けて通常
出力信号4を外部回路5に出力するマスターモードLS
I6がある。通常出力信号4の出力はモード信号“0”
 (3)を受ける切換え回路7の働きによって生ぜしめ
られる。
The device printed board 1 has a master mode LS that receives the mode signal “0” 3 and outputs the normal output signal 4 to the external circuit 5.
There is an I6. Normal output signal 4 output is mode signal “0”
(3) is produced by the action of the switching circuit 7 which receives (3).

外部回路5はアドレス線8及びデータ線9を経てメイン
メモリ10に接続される。デバッグプリント板2には、
モード信号“1”11を受けて通常出力及び内部状態出
力信号12をトレース回路13に出力するデバッグモー
ドLS114がある。
External circuit 5 is connected to main memory 10 via address line 8 and data line 9. On the debug printed board 2,
There is a debug mode LS 114 that receives a mode signal "1" 11 and outputs a normal output and an internal state output signal 12 to the trace circuit 13.

通常出力及び内部状態出力信号12の出力はモード信号
“1”を受ける切換え回路15の働きによって生ぜしめ
られる。デバッグモードLS114はマスターモードL
SI6と全く同じ動作をするものであって、マスターモ
ードLSI6へ入力される通常人力信号17のほかマス
ターモードLSI6と外部回路4との間で授受されるデ
ータ18を受ける。
The normal output and the output of the internal state output signal 12 are produced by the action of the switching circuit 15 which receives the mode signal "1". Debug mode LS114 is master mode L
It operates exactly the same as the SI 6 and receives data 18 exchanged between the master mode LSI 6 and the external circuit 4 in addition to the normal human input signal 17 input to the master mode LSI 6 .

〔作用〕[Effect]

マスターモードLSI6はモード信号“0″3を受ける
切換え回路7の働きによって、そこへ供給される通常入
力信号及びデータに応答してそのプロセッサ部で所要の
演算を行ない演算結果データ及びそのためのアドレスを
外部回路5を介してメインメモリ10へ送る。又マスタ
ーモードLS■6は通常出力信号4を外部回路5へ送る
The master mode LSI 6 performs the necessary calculations in its processor section in response to the normal input signals and data supplied thereto by the action of the switching circuit 7 that receives the mode signal "0" 3, and generates the calculation result data and the address therefor. It is sent to the main memory 10 via the external circuit 5. Further, the master mode LS6 sends the normal output signal 4 to the external circuit 5.

このマスターモードLSI6で行なわれる処理を全く同
じ処理がデバ・へグモードLS114でも行なわれる。
Exactly the same process performed in the master mode LSI 6 is also performed in the Devaheg mode LS 114.

そのために、マスターモードLSI6へ送り込まれる通
常入力信号及びデータがデバッグモードLSIL4にも
送られ、該LS114でLSI6で実行される演算と同
一の演算が行なわれる。その際に切換え回路15はモー
ド信号“1”を受けているので通常出力及び内部状態出
力信号12がそのためのアドレス19と共にトレース回
路13へ送られるので、マスターモードLS■6で遂行
されつつある演算過程を従来LSI6の外部に取り出し
得なかった内部状態の出力信号をもリアルタイムでトレ
ース回路13へ送り込んでトレースすることができる。
For this purpose, normal input signals and data sent to the master mode LSI 6 are also sent to the debug mode LSIL 4, and the same calculations as those performed in the LSI 6 are performed in the LS 114. At this time, since the switching circuit 15 receives the mode signal "1", the normal output and internal state output signal 12 are sent to the trace circuit 13 along with the address 19 for that purpose, so that the operation being performed in the master mode LS6 is sent to the trace circuit 13. Output signals of internal states, whose processes could not conventionally be extracted outside the LSI 6, can also be sent to the trace circuit 13 in real time and traced.

〔実施例〕〔Example〕

第2図は第1図で示したブロック構成図のLSI部の実
施例詳細図である。この図において、20は装置プリン
ト板内LSI(マスターモードLSI)で、22はデバ
ッグプリント内LSI(デバッグモードLS I)であ
る。これらはいずれも、同一構成であり次の構成要素か
ら成るが、ここではそれら両者を区別する添字を付する
ことなしにその構成番号のみでそれら構成要素を示す。
FIG. 2 is a detailed diagram of an embodiment of the LSI section of the block diagram shown in FIG. 1. In this figure, 20 is an LSI in the device printed board (master mode LSI), and 22 is an LSI in the debug print (debug mode LSI). All of these have the same configuration and consist of the following constituent elements, but here these constituent elements are indicated only by their constituent numbers without adding subscripts to distinguish between them.

共通な通常入力信号30及びクロック・リセット信号3
2を受けるプロセッサ部34と、内部アドレスストロー
ブFを受けるディレクトリ36と、ディレクトリ36か
らの制御信号及びモード切換え信号37を受けるゲート
38と、ディレクトリ36からのメインメモリ用アドレ
スを対応する外部アドレスバスAを介してメインメモリ
40及びトレースメモリ41へ供給するドライバ42と
、メインメモリ40から外部データバスBを経て送られ
て来るデータを受けるレシーバ44と、レシーバ44か
らのデータをディレクトリ36から内部アドレスバスD
を経て送られて来るアドレスが示す格納個所に格納する
バッファメモリ46と、ディレクトリ36からの切換え
制御信号によってレシーバ44からのデータ又はバッフ
ァメモリ46からのデータを択一的に出力するマルチプ
レクサ48と、プロセッサ部34からのデータを外部デ
ータバスBへ出力するドライバ50と、マルチプレクサ
48からのデータ出力信号52又はディレクトリ36か
らACK等の通常出力信号をモード切換え信号37によ
って切り換えて出力するマルチプレクサ54とから構成
される。但し、デバッグプリント板内LSI22のゲー
ト382及びマルチプレクサ522へのモード切換え信
号372は装置プリント板内LSI20へのモード切換
え信号をインバータ56を経たものとされている。又、
図面を節単にするため、アドレスストローブCは、常に
マルチプレクサから出力し得るようになっている。
Common normal input signal 30 and clock reset signal 3
2, a directory 36 that receives the internal address strobe F, a gate 38 that receives the control signal and mode switching signal 37 from the directory 36, and an external address bus A that receives the main memory address from the directory 36. a driver 42 that supplies data to the main memory 40 and trace memory 41 via an external data bus B; a receiver 44 that receives data sent from the main memory 40 via an external data bus B; D
a buffer memory 46 that stores data in the storage location indicated by the address sent via the directory 36, and a multiplexer 48 that selectively outputs data from the receiver 44 or data from the buffer memory 46 in response to a switching control signal from the directory 36; A driver 50 that outputs data from the processor section 34 to an external data bus B, and a multiplexer 54 that outputs a data output signal 52 from the multiplexer 48 or a normal output signal such as ACK from the directory 36 after being switched by the mode switching signal 37. configured. However, the mode switching signal 372 to the gate 382 and multiplexer 522 of the debug printed board LSI 22 is the mode switching signal sent to the device printed board LSI 20 via the inverter 56. or,
To simplify the drawing, the address strobe C is always available for output from the multiplexer.

このように構成することにより、各プロセッサ部341
,342には同一の出力信号、即ちデータ及び通常入力
信号を受けて全く同じ動作を行なっている。その動作に
おいて、ディレクトリ36.。
With this configuration, each processor section 341
, 342 receive the same output signals, that is, data and normal input signals, and perform exactly the same operations. In its operation, directories 36. .

362がミスヒツトした、つまりプロセッサ部341.
342で必要とするデータがバッファメモリ461,4
62にないことを判明した場合には、そのデータをメイ
ンメモリ40から取り込む動作になる(第3図のT1及
びT3参照)。この取り込まれたデータはディレクトリ
361,362により切換え制御されるマルチプレクサ
481,482を経てプロセッサ部341,342及び
マルチプレクサ521,522へ供給される。マルチプ
レクサ522へ供給されたデータはトレースメモリ41
へ供給されると共にプロセッサ部342へ供給されたデ
ータの読み出しに用いられたアドレスはディレクトリ3
61,362の制御の下にアドレスバスAを経てトレー
スメモリ41へ供給される。かくして、ディレクトリ3
61,362がヒツトしない場合のプログラムの動きを
リアルタイムでトレースすることができる。プロセッサ
部342での処理結果もプロセッサ部342及びディレ
クトリ362の制御の下に同様トレースされる。
362 has a miss, that is, the processor section 341.
The data required by 342 is stored in buffer memories 461 and 4.
If it is found that the data does not exist in the main memory 40, the data is fetched from the main memory 40 (see T1 and T3 in FIG. 3). This captured data is supplied to processor sections 341, 342 and multiplexers 521, 522 via multiplexers 481, 482 which are switched and controlled by directories 361, 362. The data supplied to the multiplexer 522 is transferred to the trace memory 41
The address used to read the data supplied to the processor unit 342 is the directory 3.
It is supplied to the trace memory 41 via the address bus A under the control of 61 and 362. Thus, directory 3
The behavior of the program when 61 and 362 are not hit can be traced in real time. Processing results in the processor section 342 are also traced under the control of the processor section 342 and the directory 362.

又、ディレクトリ361,362がヒントした場合には
、そのデータはバッファメモリ461゜462から対応
するマルチプレクサ48+、482を経てプロセッサ部
341,342へ与えられる(第3図のT2参照)。こ
のヒント時におけるマスターモードLSI20では、モ
ード切換え信号″0”がマルチプレクサ52.へ供給さ
れているために、内部アドレスバスD内部データバスE
及び内部アドレスストローブFはマスターモードLS■
20の外に見えて来ない(第3図A参照)。
If the directories 361, 362 are hinted, the data is provided from the buffer memories 461, 462 to the processor sections 341, 342 via the corresponding multiplexers 48+, 482 (see T2 in FIG. 3). In the master mode LSI 20 at this hint, the mode switching signal "0" is sent to the multiplexer 52. Internal address bus D internal data bus E
And internal address strobe F is master mode LS■
It does not appear outside of 20 (see Figure 3A).

これに対して、デバッグモードLST22ではモード切
換え信号″1″がマルチプレクサ52□へ供給されてい
るから、内部アドレスバスD、内部データバスE及び内
部アドレスストローブFがデバッグモードLSI22の
外に見えて来る(第3図B参照)。即ち、バッファメモ
リ462からプロセッサ部342へ供給されたデータが
マルチプレクサ522を経て内部データ出力信号として
トレースメモリ41へ供給されると共に、プロセッサ部
34□へ供給されたデータの読み出しに用いられたアド
レスもディレクトリ362からドライバ42を経てトレ
ースメモリ41に供給され、該アドレスのアドレススト
ローブ出力を、カウンタ58のカウントアンプ用クロッ
ク入力にし、該カウンタの出力をトレースメモリ41の
アドレッシングとして用いることにより、ディレクトリ
36゜36□でヒントが生じている場合におけるLSI
内部データ(バッファメモリ出力)もトレースし得るこ
とになる。プロセッサ部342での処理結果もプロセッ
サ部342及びディレクトリ362の制御の下に同様に
トレースされる。
On the other hand, in the debug mode LST22, the mode switching signal "1" is supplied to the multiplexer 52□, so the internal address bus D, internal data bus E, and internal address strobe F are visible outside the debug mode LSI 22. (See Figure 3B). That is, the data supplied from the buffer memory 462 to the processor section 342 is supplied to the trace memory 41 as an internal data output signal via the multiplexer 522, and the address used for reading the data supplied to the processor section 34□ is also supplied to the trace memory 41 as an internal data output signal. The directory 36° is supplied from the directory 362 to the trace memory 41 via the driver 42, and the address strobe output of the address is used as the clock input for the count amplifier of the counter 58, and the output of the counter is used as addressing for the trace memory 41. LSI when a hint occurs in 36□
Internal data (buffer memory output) can also be traced. Processing results in the processor section 342 are also traced under the control of the processor section 342 and the directory 362.

なお、上記実施例においては、トレースされるLSI内
部データとしてバッファメモリ出力を例にとって説明し
たが、同様の技法でその他のLSI内部データのトレー
スも行なうことができる。
In the above embodiment, the buffer memory output was explained as an example of LSI internal data to be traced, but other LSI internal data can also be traced using the same technique.

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

以上説明したように本発明によれば、LSIの端子から
LSI内部で実行されているプログラムの必要とするす
べてのデータをリアルタイムでトレースできる。従って
、プログラムの動きを外部より判断し得ることになる。
As described above, according to the present invention, all data required by a program being executed inside the LSI can be traced in real time from the terminals of the LSI. Therefore, the behavior of the program can be determined from the outside.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示す図、 第3図はタイミングチャート、 第4図は従来トレース方式を示す図である。 第1図において、 7.15は切換え回路、 3.11は切換え信号供給手段、 13はトレース回路である。 第2図において、 341.342はプロセッサ部、 361.362はディレクトリ、 371.372はモード切換え信号、 41はトレースメモリ、 461.462はバッファメモリ、 48+ 、482,521.522はマルチプレクサ、 58はカウンタである。 Figure 1 is a block diagram of the principle of the present invention. FIG. 2 is a diagram showing an embodiment of the present invention; Figure 3 is a timing chart, FIG. 4 is a diagram showing a conventional tracing method. In Figure 1, 7.15 is a switching circuit, 3.11 is a switching signal supply means; 13 is a trace circuit. In Figure 2, 341.342 is the processor part, 361.362 is the directory, 371.372 is a mode switching signal, 41 is trace memory, 461.462 is buffer memory, 48+, 482, 521.522 is a multiplexer, 58 is a counter.

Claims (1)

【特許請求の範囲】[Claims] LSIを使用して構成されるシステムにおいて、前記L
SIの通常出力及び前記LSIの内部状態出力の出力態
様を切り換える切換え回路(7)、(15)及び該切換
え回路の切換えを生ぜしめる切換え信号の供給を行なう
信号供給手段(3)、(11)を設けたLSIを2個(
6)、(14)設け、これら両LSIの信号入力を共通
にし且つ前記切換え信号により前記切換え回路の出力態
様を切り換えせしめて前記2つのLSIの一方に実際の
稼動状態を生ぜしめつつ該LSIと同じ動作を行なって
いる他方のLSIから通常出力及び内部状態出力をトレ
ース情報出力として出力せしめてリアルタイムのトレー
スを生ぜしめることを特徴とするLSIトレース方式。
In a system configured using LSI, the L
Switching circuits (7), (15) for switching the output mode of the normal output of the SI and the internal state output of the LSI, and signal supply means (3), (11) for supplying a switching signal that causes switching of the switching circuit. Two LSIs with (
6) and (14) are provided, and the signal input of both LSIs is made common, and the output mode of the switching circuit is switched by the switching signal, so that one of the two LSIs is brought into an actual operating state. An LSI tracing method characterized in that a normal output and an internal state output from another LSI performing the same operation are outputted as trace information output to generate a real-time trace.
JP60272066A 1985-12-03 1985-12-03 Lsi tracing system Pending JPS62130437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60272066A JPS62130437A (en) 1985-12-03 1985-12-03 Lsi tracing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60272066A JPS62130437A (en) 1985-12-03 1985-12-03 Lsi tracing system

Publications (1)

Publication Number Publication Date
JPS62130437A true JPS62130437A (en) 1987-06-12

Family

ID=17508618

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60272066A Pending JPS62130437A (en) 1985-12-03 1985-12-03 Lsi tracing system

Country Status (1)

Country Link
JP (1) JPS62130437A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03129440A (en) * 1989-10-13 1991-06-03 Nec Corp Access monitoring device for microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03129440A (en) * 1989-10-13 1991-06-03 Nec Corp Access monitoring device for microprocessor

Similar Documents

Publication Publication Date Title
KR970012203A (en) Data processing system for executing trace functions and their methods
JPH02224140A (en) Interruption testing device
KR970012153A (en) How to run data processor and breakpoint operations
JP3003782B2 (en) Development support equipment
JPS62130437A (en) Lsi tracing system
KR100223096B1 (en) Method and apparatus for observing internal memory-mapped registers
US6957370B2 (en) Digital signal processor including an interface therein capable of allowing direct access to registers from an external device
JP3000779B2 (en) Information collection method of processor execution status
JP2760228B2 (en) Microprocessor with built-in cache memory and its trace analyzer
JPS5472909A (en) Recording method for program passing trace of electronic switchboard
JP2657947B2 (en) Data processing device
JPH02281341A (en) Write data confirming method for debugging
JP2580877B2 (en) Light module for data flow calculator
JP2520158B2 (en) Debugging method of digital signal processor
JPH0652013A (en) Tracing circuit
JP2935710B2 (en) Test equipment for processor integrated circuit devices
JPH02150931A (en) Information processor
JPH08137715A (en) Processor device
JPS6217250B2 (en)
JPH02310738A (en) Microprocessor ic
JPS6326741A (en) Testing instrument for data processor
JPH06223046A (en) Bus tracing execution method
JPH01147732A (en) Information processor
JPS63126043A (en) Logic simulator
JPS63282533A (en) In-circuit emulator