JPH0973403A - Divided recording device for trace storage memory of in-circuit emulator device - Google Patents

Divided recording device for trace storage memory of in-circuit emulator device

Info

Publication number
JPH0973403A
JPH0973403A JP7282354A JP28235495A JPH0973403A JP H0973403 A JPH0973403 A JP H0973403A JP 7282354 A JP7282354 A JP 7282354A JP 28235495 A JP28235495 A JP 28235495A JP H0973403 A JPH0973403 A JP H0973403A
Authority
JP
Japan
Prior art keywords
storage memory
trace
address
trace storage
circuit emulator
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
JP7282354A
Other languages
Japanese (ja)
Inventor
Miya Ikegami
美也 池上
Betsukaa Akuseru
ベッカー アクセル
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.)
Canon I Tech Inc
Original Assignee
Tokyo Denshi Sekkei KK
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 Tokyo Denshi Sekkei KK filed Critical Tokyo Denshi Sekkei KK
Priority to JP7282354A priority Critical patent/JPH0973403A/en
Publication of JPH0973403A publication Critical patent/JPH0973403A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To analyze program execution states at a plurality of places by a single trial run. SOLUTION: This device consists of the trace storage memory 15 in the in-circuit emulator device and a peripheral control circuit which controls the trace storage memory 15, and the recording method of the trace storage memory 15 of the in-circuit emulator device is recorded while divided into 1, its half, or 1 over a multiple of 1 or 2 (1/X: X is a multiple of 2). Further, the trace storage memory 15 is divided into 1, its half, or 1 over a multiple of 2 (1/X: X is a multiple of 2), 1 or >=2 divided areas are optionally selected as one recording area, and recording to and storaging in the selected areas are performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】コンピュータ装置を動作させるた
めの装置の内部回路、またはそのプログラムが正常に動
作しているか否かを解析するために、マイクロプロセッ
サ開発支援装置(以下一般名称の「インサーキットエミ
ュレータ装置」と記す)を使用して該コンピュータ装置
の内部回路、およびそのプログラムの内容/実行状態を
解析する方法が取られる。しかしコンピュータ装置(イ
ンサーキットエミュレータ装置を接続したコンピュータ
装置は、一般的には「ターゲットコンピュータ装置」と
称されているが、本発明及び本明細書ではこの「インサ
ーキットエミュレータ装置」を接続した「ターゲットコ
ンピュータ装置」のことを単に「コンピュータ装置」と
記す)に接続したインサーキットエミュレータ装置の内
部のトレース格納メモリへの格納記録は、該メモリとそ
の制御関係回路の問題から、あるプログラム番地からそ
の装置に準備されたメモリの格納許容範囲迄のフレーム
分の1回限りしか格納することが出来なかった。本発明
では前記トレース格納メモリの記録可能な格納容量を1
倍(分割しない)、又はその2分の1(1/2)、ある
いは2の乗数倍分の1(1/X:Xは2の乗数倍)に分
割記録可能とし、分割した領域に複数のプログラム実行
個所の実行状況を格納する事が出来るインサーキットエ
ミュレータ装置を提供する事にある。
BACKGROUND OF THE INVENTION In order to analyze whether an internal circuit of a device for operating a computer device or its program is operating normally, a microprocessor development support device (hereinafter referred to as a general name "in-circuit") is used. (Described as "emulator device") is used to analyze the internal circuit of the computer device and the content / execution state of its program. However, a computer device (a computer device to which an in-circuit emulator device is connected is generally referred to as a “target computer device”, but in the present invention and the present specification, a “target device” to which the “in-circuit emulator device” is connected. The "computer device" is simply referred to as "computer device") is stored and recorded in the trace storage memory inside the in-circuit emulator device, because of the problem of the memory and its control-related circuit, the device address starts from a certain program address. It was possible to store only once for the frame up to the storage allowable range of the prepared memory. In the present invention, the recordable storage capacity of the trace storage memory is set to 1
It is possible to divide (not divide), or half (1/2), or a multiple of 2 (1 / X: X is a multiple of 2) for division recording, and a plurality of divided areas can be recorded. It is to provide an in-circuit emulator device capable of storing the execution status of a program execution point.

【0002】[0002]

【従来の技術】従来からコンピュータ装置のプログラム
の実行/解析には、そのプログラムに仮のデータを与え
て試行させ、初期の目的としたデータまたは結果が得ら
れるか否かを確認しながらプログラムの実行/解析を行
っていた。さらに近年では該プログラムの解析にはイン
サーキットエミュレータ装置が多く用いられるようにな
ってきた。従来のインサーキットエミュレータ装置を使
用してプログラムを実行/解析しようとした場合、該イ
ンサーキットエミュレータ装置のトレース格納メモリ
は、前記の通りメモリとその制御回路の関係から分割格
納が難かしく、仲々実現されなかった本発明では、新し
いトレース格納メモリへの分割格納装置(方法)を提供
することにある。
2. Description of the Related Art Conventionally, in executing / analyzing a program of a computer device, provisional data is given to the program so that the program can be tried while confirming whether or not the initial target data or result is obtained. It was executing / analyzing. Furthermore, in recent years, an in-circuit emulator device has been widely used for analyzing the program. When a program is executed / analyzed by using the conventional in-circuit emulator device, it is difficult to divide the trace storage memory of the in-circuit emulator device because of the relationship between the memory and its control circuit as described above. The present invention, which has not been made, is to provide a division storage device (method) to a new trace storage memory.

【0003】[0003]

【発明が解決しようとする課題】本発明では前記のとお
り、コンピュータ装置のCPUが実行するプログラムを
解析するインサーキットエミュレータ装置におけるトレ
ース格納メモリの1回当りの格納容量の分割手法、及び
分割されたその1個所当りの記録容量の大きさを限定さ
れた範囲内で可変指定する方法を提供することにより、
従来プログラム実行状況の1箇所部分のみのしか解析出
来なかったインサーキットエミュレータ装置のトレース
格納すべきメモリを、任意の整数分の1に分割し、分割
したそれぞれの箇所に別の箇所のプログラム実行状況を
トレース格納メモリに格納すること。並びに1回の格納
容量が分割された1、又は2以上を連続して格納するこ
とももできること、等々一度コンピュータ装置を試走さ
せれば複数カ所のプログラム実行状況、及び問題個所の
記録容量の大きさを可変指定することで、前記課題を解
決することができるインサーキットエミュレータ装置を
提供することにある。
As described above, in the present invention, a method of dividing the storage capacity per time of the trace storage memory in the in-circuit emulator device for analyzing the program executed by the CPU of the computer device, and the division method. By providing a method for variably designating the size of the recording capacity per location within a limited range,
The memory to be stored in the trace of the in-circuit emulator device, which was able to analyze only one part of the conventional program execution status, was divided into arbitrary integer fractions, and the program execution status of another part was divided into each divided part. Is stored in the trace storage memory. In addition, one or two or more of which the storage capacity is divided once can be stored continuously, and so on. Once the computer device is run as a test, the program execution status at multiple locations and the recording capacity at the problem location are large. It is an object of the present invention to provide an in-circuit emulator device that can solve the above problems by variably designing the height.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
に本発明ではプログラムの実行状況を実行/解析するコ
ンピュータ装置と、該コンピュータ装置のプログラムの
実行状況を実行/解析するインサーキットエミュレータ
装置と、該インサーキットエミュレータ装置内に装備し
た該トレース格納メモリの1回の格納容量の大きさを決
定するトレース格納メモリの1回当りの記録格納メモリ
サイズ状態カウンタと、該トレース格納メモリの分割数
を決定するための分割状態コードと、フレーム数の大き
さを決定する為のフレーム数状態コードと、トレース格
納メモリのアドレス番地を制御(決定)するアドレスカ
ウンタと、終了転から後の格納するフレーム数を制御
(決定)する為のディレイカウンタと、トレース格納メ
モリの記録格納開始点等を検出するイベント回路ブロッ
クとその周辺回路とで構成し、前記のイベント回路ブロ
ックとディレイカウンタの動作によって、オペレータが
定めた(希望した)トレース結果を記録格納出来るよう
にすることで前記課題を解決することにある。
In order to solve the above problems, according to the present invention, a computer device for executing / analyzing the execution status of a program, and an in-circuit emulator device for executing / analyzing the execution status of the program of the computer device are provided. A record storage memory size state counter per time of the trace storage memory for determining the size of the storage capacity of the trace storage memory installed in the in-circuit emulator device at one time, and the number of divisions of the trace storage memory. Division status code for determining, frame number status code for determining the size of the number of frames, address counter for controlling (determining) the address address of the trace storage memory, and number of frames to be stored after the end transfer Delay counter to control (determine) and start recording storage of trace storage memory The above problem is achieved by including an event circuit block for detecting such as the above and its peripheral circuit, and enabling the operator to record and store the (desired) trace result by the operation of the event circuit block and the delay counter. There is a solution.

【0005】[0005]

【実施例】図1は、本発明の一実施例を示すトレース/
イベント部の機能を示すブロック図である。図2は、本
発明の一実施例を示すトレース/イベント部の主要回路
を示すブロック図である。本図においての諸結線は、主
要結線のみを示しているので細部において必ずしも一致
しない部分があるところはご容赦願いたい。図3は、本
発明の一実施例を示すイベント回路を示すブロック図で
ある。図4は、本発明の実施例の一部のアドレスカウン
タ/ディレイカウンタ部を示す回路ブロック図である。
図5はイベント検出からアドレスカウンタ、ディレイカ
ウンタの動作状況を示すチャート図である。図6は、従
来のプローブI/Fブロックを介しインサーキットエミ
ュレータ装置とコンピュータ装置を接続した状態の両装
置の主要機能を示すブロック図である。表1は、トレー
ス格納メモリのフレームの大きさを決定する状態コード
の状態を示す表である。表2は、トレース格納メモリの
フレームのフレーム分割数を決定する状態コードの状態
を示す表である。表3は、トレース格納メモリのフレー
ム数の大きさと、1回の記録するフレーム分割数を決定
する状態コードとの関係を示す表である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a trace / trace showing an embodiment of the present invention.
It is a block diagram which shows the function of an event part. FIG. 2 is a block diagram showing a main circuit of a trace / event unit showing an embodiment of the present invention. Please note that the connections in this figure show only the main connections, so some parts may not necessarily match in detail. FIG. 3 is a block diagram showing an event circuit showing an embodiment of the present invention. FIG. 4 is a circuit block diagram showing a part of the address counter / delay counter portion of the embodiment of the present invention.
FIG. 5 is a chart showing the operation statuses of the address counter and the delay counter from event detection. FIG. 6 is a block diagram showing the main functions of both devices in a state where an in-circuit emulator device and a computer device are connected via a conventional probe I / F block. Table 1 is a table showing the states of the state codes that determine the frame size of the trace storage memory. Table 2 is a table showing the state of the state code that determines the number of frame divisions of the frame of the trace storage memory. Table 3 is a table showing the relationship between the size of the number of frames in the trace storage memory and the status code that determines the number of frame divisions to be recorded once.

【0006】図6においてコンピュータ装置のCPU7
0が実行するプログラムの実行状況を記録するトレース
格納メモリ15の記録格納は概ね次の手順で処理され
る。すなわち、コンピュータ装置のCPU70が実行
(処理)中のプログラムの信号は、ICEバス82、サ
ンプリング/デコード回路85を介しサンプリングバス
89に伝達される。オペレータがホストコンピュータ装
置94から入力したプログラムの「何番地からトレース
結果を格納開始せよ」又は「トレース開始条件」等の
「トレース開始アドレスデータ又は条件」は、ホストコ
ンピュータ・インターフェイス(I/F)93、メイン
CPU90、マザーバス88を介してイベント回路ブロ
ック14に予め記憶される。一方トレースコントローラ
103は、コンピュータ装置のCPU70が実行中のプ
ログラムのアドレスを監視し、イベント回路ブロック1
4に記録されたトレース開始アドレス情報に基づき、C
PUバス82のコンピュータ装置のCPU70のプログ
ラム実行状況をゲート(通過)させ、記録すべく実処理
時間信号(タイムメジャー信号)、その他の記録格納す
べき信号と共にトレース格納メモリ15に送られ、トレ
ース格納メモリ15の記録許容範囲(フレーム範囲
数)、又は指定記録フレーム数、あるいは中断等の指令
で中断されるまでのフレーム数がトレース格納メモリ1
5に記録格納される。
In FIG. 6, the CPU 7 of the computer device
The record storage of the trace storage memory 15 for recording the execution status of the program executed by 0 is generally processed in the following procedure. That is, the signal of the program being executed (processed) by the CPU 70 of the computer device is transmitted to the sampling bus 89 via the ICE bus 82 and the sampling / decoding circuit 85. The "trace start address data or condition" such as "where to start storing the trace result" or "trace start condition" of the program input by the operator from the host computer device 94 is the host computer interface (I / F) 93. , Is stored in the event circuit block 14 in advance via the main CPU 90 and the mother bus 88. On the other hand, the trace controller 103 monitors the address of the program being executed by the CPU 70 of the computer device, and the event circuit block 1
C based on the trace start address information recorded in 4
The program execution status of the CPU 70 of the computer device of the PU bus 82 is gated (passed) and sent to the trace storage memory 15 together with the actual processing time signal (time measure signal) for recording and other signals to be recorded and stored. The recording allowable range (the number of frame ranges) of the memory 15 or the number of designated recording frames or the number of frames until interrupted by a command such as interrupt is the trace storage memory 1
5 is recorded and stored.

【0007】他方、前記で記録格納されたコンピュータ
装置のCPU70のプログラム実行結果は、ホストコン
ピュータ装置94からの指示に基づき、トレース格納メ
モリ14からトレースコントローラ103を介して、ホ
ストコンピュータ装置94に伝達表示され、オペレータ
はその表示結果をチェック/確認することで、コンピュ
ータ装置のCPU70が実行したプログラムの実行結果
と、設計したプログラムとの相違/問題点を解決する事
でコンピュータ装置のプログラムの実行/解析(デバッ
グ)が行われる。以上は従来のインサーキットエミュレ
ータ装置の動作の概略であるが、前記従来動作では、記
録すべきプログラムの実行の「何番地から何番地まで」
あるいは「何番地から何行(フレーム)分まで」と、あ
る指定した番地から1ケ所のみしか記録することが出来
なかった。理由はトレース格納メモリに格納すべきメモ
リの記録番地分割管理手法、何番地から格納せよとの指
示を実行するイベント回路ブロックの複数記録管理手
法、前記に対応するソフトウエア/ハードウエア上の問
題があり実現されなかった。しかし、コンピュータ装置
技術が進歩するにつれ、コンピュータ装置のプログラミ
ング技術、及びインサーキットエミュレータ装置の使用
方法も多用化し、1回のコンピュータ装置のプログラム
の実行で、複数のプログラム問題箇所を記録格納すべく
要求がなされて来た。以上の要望に添うべくなされたの
が本発明である。
On the other hand, the program execution result of the CPU 70 of the computer device recorded and stored as described above is transmitted and displayed to the host computer device 94 from the trace storage memory 14 via the trace controller 103 based on an instruction from the host computer device 94. By checking / confirming the display result, the operator solves the difference / problem between the execution result of the program executed by the CPU 70 of the computer device and the designed program, thereby executing / analyzing the program of the computer device. (Debugging) is performed. The above is the outline of the operation of the conventional in-circuit emulator device. In the conventional operation, "from what address" of the execution of the program to be recorded is executed.
Or, "from what address to how many lines (frames)", it was possible to record only one place from a certain specified address. The reason is that the recording address division management method of the memory to be stored in the trace storage memory, the multiple recording management method of the event circuit block that executes the instruction to store the trace address, and the software / hardware problem corresponding to the above. There was not realized. However, as the computer device technology has advanced, the programming technique of the computer device and the usage method of the in-circuit emulator device have been diversified, and it is required to record and store a plurality of program problem points by executing the program of the computer device once. Has been done. The present invention has been made to meet the above demands.

【0008】図2において本発明の一実施例を説明す
る。先ず各ブロックの説明をすると、トレース格納メモ
リ15は目的であるコンピュータ装置のCPU70が動
作するプログラムの実行状況のデータを格納するメイン
となるメモリで、データを格納する格納項目は(本発明
の為の一実施例として)1フレーム当り256ビットで
構成されている。さらに前記(C)の主となるデータ記
録エリアは次に示すー迄の256ビットで構成、そ
のビット配置は次の通りである。 記 号 内 容 記録ビット配置 SA : アドレスデータ 0− 31番 SD : メイン・データ 32− 63〃 SC : コントロール信号 64− 95〃 SB : その他のサンプルデータエリア 96− 127〃 MEAS: 測定計時信号(メジャー信号) 128− 143〃 TAG : 状態信号 144− 159〃 EMEA: 拡張測定計時信号 160− 175〃 ETAG: 拡張状態信号 176− 191〃 (予備): − − 192− 255〃
An embodiment of the present invention will be described with reference to FIG. First, each block will be described. The trace storage memory 15 is a main memory for storing the data of the execution status of the program in which the CPU 70 of the target computer device operates, and the storage item for storing the data is ( As an example, 256 bits are formed per frame. Further, the main data recording area of the above (C) is composed of 256 bits up to the following, and the bit arrangement is as follows. Symbol Description recording bits located SA: Address Data 0 31 Number SD: main data 32 63〃 SC: control signal 64 95〃 SB: other sample data area 96 127〃 MEAS: measured timing signal (major Signal) 128-143 〃 TAG: Status signal 144-159 〃 EMEA: Extended measurement time signal 160-175 〃 ETAG: Extended status signal 176-191 〃 (spare): – 192-255 〃

【0009】今、ここで前記トレース格納メモリ15を
分割記録しようとする場合、次の2つの条件が考えられ
る。 (a)トレース格納メモリの記録可能フレーム数を前記
の通り最大128Kフレーム(記録フレームとは、作成
したコンピュータ装置のプログラムの概ね1行となる
が、実際はそのCPU70の実行の1行であり、プログ
ラム上での1行でもフレーム数は2−4/5行になる場
合もある)とした場合、プログラムの実行状況の1行を
1フレームと考え、その分割記録方法としてはその2分
の1、4分の1、・・・・と2の倍々数(乗数)に分割
する方法。 (b)あるプログラムのトレース結果を格納するとき、
ある時は4Kフレーム、別の時では8Kフレーム、ある
いは別の時は32K、又は128Kフレーム全部等々
と、希望する解析プログラムの内容により記録するフレ
ーム数を変更したい場合、が考えられる。よって本発明
では、1度のプログラムの実行で記録できるフレームの
大きさは、表1に示すとおり、4K、8K、32K、1
28Kの4種類に選択可能とした。したがってこれらを
表す状態コードも4条件であるから2ビットで構成出来
て、0−0 ー 1−1で表すことが出来る(分割数を
4以上にすると当然ながらこの状態コードを表すビット
数もそれに従い3(電気的に難しいが)ビット(8個
迄)ー4ビット(16個迄)と増すことは言う迄もな
い)。次に、フレームの分割数は表2に示すとおり1
(分割しない)、4分割(1/4)、32分割(1/3
2)、128分割(1/128)に分割するとした場
合、4つの状態に分割するから、前記同様2ビットで表
現でき、したがって状態コードも0−0 ー 1−1で
表現することが出来る(尚、表1と同様分割数を4分割
以上にすると、この状態コードを表すビット数もそれに
従い3ビットー4ビットと増さなければならないことは
言う迄もない)。
When the trace storage memory 15 is to be divided and recorded, the following two conditions can be considered. (A) The maximum number of recordable frames in the trace storage memory is 128K frames as described above (a recording frame is approximately one line of a program of a computer device that has been created, but actually it is one line of execution of the CPU 70. If the number of frames is 2-4 / 5 lines even if one line in the above), then one line of the execution status of the program is considered as one frame, and as a divided recording method, half of that is used. A method of dividing into a multiple (multiplier) of 1/4, ... (B) When storing the trace result of a program,
There may be a case where it is desired to change the number of frames to be recorded according to the content of a desired analysis program, such as 4K frames at one time, 8K frames at another time, or 32K or 128K frames at another time. Therefore, in the present invention, the size of the frame that can be recorded by executing the program once is 4K, 8K, 32K, 1 as shown in Table 1.
It is possible to select from 4 types of 28K. Therefore, since the status code representing these is also 4 conditions, it can be configured with 2 bits and can be represented by 0-0-1 (when the number of divisions is 4 or more, the number of bits representing this status code also changes accordingly. Therefore, it goes without saying that it will be increased to 3 (electrically difficult) bits (up to 8) -4 bits (up to 16)). Next, the number of frame divisions is 1 as shown in Table 2.
(No division), 4 divisions (1/4), 32 divisions (1/3)
2), if it is divided into 128 (1/128) divisions, since it is divided into 4 states, it can be represented by 2 bits as described above, and therefore the state code can also be represented by 0-0-1-1 ( Needless to say, if the number of divisions is four or more, as in Table 1, the number of bits representing this status code must be increased accordingly to 3 bits to 4 bits).

【0010】以上の様に、分割数を決定する場合、フレ
ーム数の分割すべきその大きさと、状態コードとは次の
通りに設定したこととして以下説明する。すなわち、フ
レーム数の最大を128Kフレーム、フレームの分割数
を4とした場合、 さらに本発明では、128Kフレームのトレース格納メ
モリのアドレスを管理するためにさらに拡張バンク・ア
ドレス(以下「EBAアドレス」と記す)を付加してあ
る。EBAアドレスは、4ビットで構成してあるので十
進数で0ー15となるから、128Kフレームのトレー
ス格納メモリ15を16で分割し、1・EBAアドレス
当り8Kフレームを構成し、トレース格納メモリ15を
管理することとした。すなわち EBAアドレス(2進数)トレース格納メモリアドレス(十進数) 0000(十進数で0) : 8K(001−008Kフレーム) 0001( 〃 1) : 8K(009ー016K 〃 ) 0010( 〃 2) : 8K(017ー024K 〃 ) ・ ・ ・ ・ ・ ・ 1111( 〃 15) : 8K(121ー128K 〃 )
As described above, when determining the number of divisions, it is assumed that the size of the number of frames to be divided and the status code are set as follows. That is, when the maximum number of frames is 128K frames and the number of frame divisions is 4, Further, in the present invention, an extended bank address (hereinafter referred to as "EBA address") is added to manage the address of the 128K frame trace storage memory. Since the EBA address consists of 4 bits, the decimal number is 0-15, so the 128K frame trace storage memory 15 is divided by 16 to configure 8K frames per 1 EBA address, and the trace storage memory 15 Decided to manage. That is, EBA address (binary number) : trace storage memory address (decimal number) 0000 (decimal number 0): 8K (001-008K frame) 0001 (〃 1): 8K (009-016K 〃) 0010 (〃 2): 8K (017-024K〃) ・ ・ ・ ・ ・ ・ ・ 1111 (〃15) : 8K (121-128K〃)

【0011】故に、トレース格納メモリ15の全容量1
28Kを4で割った32Kは、32K÷8K=4、すな
わち各32Kフレームは、EBAアドレスの0−3(十
進数)番地に記録されることとなる。よって状態カウン
タとEBAアドレスとの関係は (実際は2進数で4桁)の各EBAアドレスが付加され
る。次に、アドレスカウンタ21のメモリ配置は アドレス :01−12・・アドレスコード18
ビットの下16ビットを割当 EBAアドレス:13−16・・拡張アドレス・コー
ド(EBAアドレス)4ビット と、はアドレス、は拡張アドレス(EBAアドレ
ス)となっている。
Therefore, the total capacity of the trace storage memory 15 is 1
32K obtained by dividing 28K by 4 is 32K / 8K = 4, that is, each 32K frame is recorded at addresses 0-3 (decimal number) of the EBA address. Therefore, the relationship between the status counter and the EBA address is Each EBA address (actually, four digits in binary number) is added. Next, the memory arrangement of the address counter 21 is address: 01-12 ... Address code 18
16 bits below the bit are allocated EBA address: 13-16 ... 4 bits of extended address code (EBA address) are the address and is the extended address (EBA address).

【0012】以上から本発明では、前記の使用するフレ
ームの大きさと分割数の双方を加味した方法を提案する
もので、格納領域の大きさを最大128Kフレームとし
た場合、分割数は1、4、16、64として表3に示す
通り10通りに設定することができる。すなわち、表3
において、トレース格納メモリ15の格納領域の大きさ
を(イ)の最大で4Kフレームとした場合、4分割する
と各分割領域の大きさは1Kフレームとなり、2K以下
となるので本実施例の場合では分割出来ないから、1フ
レームの大きさは最大4Kの1個である。また、(ニ)
の場合最大の128Kフレームであるから、全容量を4
個に分割した場合128K÷4=32Kフレームで4個
に分割記録する事が出来る事を意味する。以下、各ブロ
ックの動作は前記のとおり、128Kフレーム、4分割
1個当り32Kフレームに分割したとして説明する。い
ま、オペレータがホストコンピュータ装置から入力した
フレームの大きさ、すなわちフレーム数を最大128K
とし、フレーム分割数を4分割とする信号=表1の1
28K[1、1]、表2の(B)の4分割の状態コード
[0、1]、(以下:単に「状態コード」とした場合、
表1の・・・・、表2の(A)(B)・・・、表3
の(イ)(ロ)・・・、記録開始アドレス=X1、X2
・・・等を総称することを意味する)は、トレースMO
DEブロック13を経て、アドレスカウンタ21、及び
シーケンスRAMブロック29他に入力保持される。
From the above, the present invention proposes a method in which both the size of the frame to be used and the number of divisions are taken into consideration. When the size of the storage area is 128K frames at maximum, the number of divisions is 1, 4 , 16 and 64 can be set in 10 ways as shown in Table 3. That is, Table 3
In the case of the present embodiment, when the size of the storage area of the trace storage memory 15 is 4K frames at the maximum in (a), the size of each divided area becomes 1K frames and 2K or less. Since it cannot be divided, the maximum size of one frame is 4K. Also, (d)
Since the maximum is 128K frames, the total capacity is 4
This means that when divided into pieces, 128K / 4 = 32K frames can be divided and recorded into 4 pieces. Hereinafter, the operation of each block will be described assuming that 128 K frames are divided into 32 K frames per 4 divisions as described above. Now, the maximum size of a frame input by the operator from the host computer is 128K.
And the number of frame divisions is 4 = 1 in Table 1
28K [1,1], status code [0,1] of four divisions in (B) of Table 2, (hereinafter: when simply referred to as “status code”,
Table 1 ..., Table 2 (A) (B) ..., Table 3
(A) (b) ... Recording start address = X1, X2
... means the generic name of etc.) is a trace MO
It is input and held in the address counter 21, the sequence RAM block 29, and the like via the DE block 13.

【0013】次にコンピュータ装置、インサーキットエ
ミュレータ装置が動作開始すると、装置全体のスタート
信号(TON)が発せら、アドレスカウンタ21の分割
されたフレームである32K/1(32Kに4分割され
たトレース格納メモリの第1番目のフレームの意)のア
ドレスカウンタがカウントを開始する。このアドレスカ
ウンタ21はフレーム数が32Kに指定されているか
ら、0(十進数)から(32Kである)32767(十
進数)迄をカウントするが、32767の次は0に戻
り、再び順次カウントアップし、トレース格納メモリ1
5のトレース格納番地となる。したがってトレース格納
メモリ15にも順次記録されることとなるが、前記カウ
ンタが0に戻ると、トレース格納メモリ15のアドレス
も0に戻り、記録データは上書きされる(言う迄もない
が、上書きされ場合前の記録は残らない)。尚、先の状
態コードが16分割、8Kフレームと指示した場合は0
からカウントアップし8121でその次は0に戻ること
になり、128Kフレームで分割1(分割しない)とし
た場合には0ー131071(128×1024−1)
となりその次は前記同様0に戻る(これら数値は便宜上
10進数で表記してあるが、実際は16進数での数値で
あります)。
Next, when the computer device and the in-circuit emulator device start operating, a start signal (TON) for the entire device is issued, and the divided frame of the address counter 21 is 32K / 1 (trace divided into 32K by 4). The address counter (in the first frame of the storage memory) starts counting. This address counter 21 counts from 0 (decimal) to (32K) 32767 (decimal) because the number of frames is specified as 32K, but after 32767, it returns to 0 and counts up again in sequence. And trace storage memory 1
It becomes the trace storage address of 5. Therefore, it is sequentially recorded in the trace storage memory 15, but when the counter returns to 0, the address of the trace storage memory 15 also returns to 0, and the recorded data is overwritten (obviously, it is overwritten). If the previous record does not remain). If the previous status code is 16 divisions and 8K frames is specified, it is 0.
It counts up from 0121 and then returns to 0 at 8121. When divided into 1 (not divided) with 128K frames, 0-131071 (128 × 1024-1)
And then the next returns to 0 as before (these numbers are written in decimal for convenience, but they are actually numbers in hexadecimal).

【0014】いま、コンピュータ装置のプログラムが最
初に記録すべきX1番地に達した時、イベント・コンパ
レータ27はサンプリング・バス89から入力されたト
レース中のバス・アドレスと予め記憶されている値とを
比較し、記録開始すべきであるとの信号をイベント・セ
レクタ28に送り、さらにこの場合はイベント・セレク
タ28はその信号をシーケンスRAM29に送る。シー
ケンスRAM29は前記信号が入力されるとアドレスカ
ウンタ21に記録開始信号であるACENを発信し、ア
ドレスカウンタ22のカウンタがカウントアップを開始
する。ディレイカウンタ22は、先のフレーム4分割数
のカウンの数である32Kの状態コード信号を受け、デ
ィレイカウンタ22内のカウンタのカウントアップの限
度設定(セッティング)を32K迄(実際は128K−
[マイナス]32K=96Kである96000(10進
数/実際は16進数)をセッティングし、前記ディレイ
カウンタ22のカウント開始信号(DCEN)を受ける
と、96000から上にカウントアップしてゆき、96
000(10進数/実際は16進数)、96000、9
6001、96002、96003・・・・・128K
である128000(実際は16進数で「FF・・F
F」)に達すると、カウントフルの信号(DCF)がア
ドレスカウンタ21、及びシーケンスRAM29に発信
される。尚、ディレイカウンタ22のカウントアップの
設定(セッティング)は、128Kフレームで1分割の
時はカウンタに00000をセッティングするが、12
8K÷32分割=4Kフレームの時は、128K−4K
=124Kの数値である124000を設定(セッティ
ング)し、全て128000(16進数で「FF・・F
F」)となったときカウントが終了する方法を採ってい
る。
Now, when the program of the computer device reaches the first address X1 to be recorded, the event comparator 27 compares the bus address in the trace input from the sampling bus 89 and the previously stored value. After comparison, a signal indicating that recording should be started is sent to the event selector 28, and in this case, the event selector 28 sends the signal to the sequence RAM 29. When the above signal is input, the sequence RAM 29 sends a recording start signal ACEN to the address counter 21, and the counter of the address counter 22 starts counting up. The delay counter 22 receives the status code signal of 32K, which is the number of counts of the previous four frame divisions, and sets the count-up limit setting (setting) of the counter in the delay counter 22 to 32K (actually 128K-
[Minus] 32K = 96K 96000 (decimal / actually hexadecimal) is set, and when the count start signal (DCEN) of the delay counter 22 is received, the count is incremented upward from 96000.
000 (decimal / actually hexadecimal), 96000, 9
6001, 96002, 96003 ... 128K
128000 (actually, in hexadecimal, "FF ... F
F ”), a count full signal (DCF) is transmitted to the address counter 21 and the sequence RAM 29. The count-up setting of the delay counter 22 is set to 00000 when the counter is divided into 1 in 128K frames.
128K-4K when 8K ÷ 32 division = 4K frame
= 124K, which is a numerical value of 124K, is set (setting), and all 128000 (hexadecimal "FF ... F
The method is such that the count ends when it becomes "F").

【0015】前記ディレイカウンタ22からのカウント
フル信号(DCF)を受けたアドレスカウンタ21は、
アドレスカウンタのカウントアップを中止する。従って
カウント開始の信号から前記カウントフル(DCF)信
号を受ける迄の間、アドレスカウンタのカウントアップ
が回転しており、その間トレース格納メモリ15にプロ
グラムのトレース結果が実際に記録格納され、残されて
いることになる。これらの動作をチャートにすると図5
に示すとおりとなり、イベント信号(記録開始信号:図
5ではイベントーイベントに該当)が入力されると
ディレイカウンタ22はカウントを開始し、カウントフ
ル迄カウントし、カウントフル(DCF)になると、次
に記録すべき分割した第2のアドレスカウンタに移りで
ぃれいかうんた22はカウンターが初期化され次のイベ
ント信号の待機状態となる。以下、この状態を分割され
た数(本説明の場合は4分割)続くこととなる。ここで
先に述べた、トレース格納メモリ15の記録フレーム数
は最大128Kフレームであるから、本実施例では拡張
アドレスバス(EBAアドレス)4ビット分を追加しア
ドレスを管理している。すなわち前述した アドレスコード : 18ビット 拡張アドレスコード(EBAアドレス): 4ビット データ記録エリア :256ビット で構成している。の「拡張アドレスコード(EBAア
ドレス)の4ビットは(10進数で)16であるから、
128K÷16=8K毎にアドレスを割り付けている。
The address counter 21 receiving the count full signal (DCF) from the delay counter 22 is
Stop counting up the address counter. Therefore, the count-up of the address counter is rotating from the count start signal until the count full (DCF) signal is received, during which the trace result of the program is actually recorded and stored in the trace storage memory 15 and left. Will be there. The chart of these operations is shown in FIG.
When the event signal (recording start signal: corresponding to event-event in FIG. 5) is input, the delay counter 22 starts counting, counts up to count full, and when the count full (DCF) is reached, The second address counter which is to be recorded is moved to the divided second address counter 22 and the counter is initialized to be in a standby state for the next event signal. Hereinafter, this state continues for the number of divisions (four divisions in the case of the present description). Since the maximum number of recording frames of the trace storage memory 15 is 128K frames, the address is managed by adding 4 bits of the extended address bus (EBA address) in this embodiment. That is, the above-mentioned address code: 18 bits Extended address code (EBA address): 4 bits Data recording area: 256 bits 4 bits of the extended address code (EBA address) is 16 (decimal number),
Addresses are assigned every 128K / 16 = 8K.

【0016】トレースMODEブロック13は、ホスト
コンピュータ装置94から入力されたオペレータからの
入力情報をマザー・バス82を経由して中継/記憶する
ブロックで、前記の分割状態コード(DVTRC)、フ
レームの大きさ状態コード(TRCMEMO)の両信
号、記録開始すべきX1番地、X2番地、・・・・をア
ドレスカウンタ21、シーケンスRAM29他に送出す
る。シーケンスRAM29はプログラマブルRAMメモ
リ/16ビットで構成され、図2に示すトレーサボード
部全体の制御を司る。先ずシーケンスRAM29は次の
信号が入力される。 MA1−23:メインアドレス信号(24ビットで構
成) MD0−15:メインデータ信号(16ビットで構
成) LSTDV:アドレスカウンタ21からのカウント信
号でトレース格納メモリ15の分割の1個を繰返し記録
(重ね書き)するか、次の分割フレームへジャンプする
かの指示信号(1ビット) DCF :ディレイカウンタ22からのカウント
・フル信号(1ビット) EV :イベントセレクタ28からシーケンス
RAM29へのトレース 格納開始の
X1番地、X2番地・・・のイベント情報信号(8
ビット) ECF :イベントカウンタ30からのキャリー
・アウトプット信号トレースを任意の位置で中断したい
時のカウントアップ信号 次に、シーケンスRAM29は、トレーサボード部の動
作・制御の為に次の信号を各ブロックに出力する。 ACEN :アドレスカウンタ(AC)のカウント
開始指示信号 DCEN :ディレイカウンタ22のカウント開始
指示信号 形態信号により、本信号Hiとなったときディレイカウ
ンタ2 2がカウントを開始する。 BRK :イベント形態カウントで、エミュレー
ションの形態により、CPU70の動作を中断する/し
ないの信号 ECEN :イベント形態カウンタ。イベントの回
数をカウントする DCREN :トレース格納メモリ15を分割した
時、次の部分に行くか、繰 り返すか
の信号。
The trace MODE block 13 is a block for relaying / storing the input information from the operator input from the host computer device 94 via the mother bus 82, and the division status code (DVTRC) and the size of the frame. .. are sent to the address counter 21, the sequence RAM 29 and the like, the two signals of the status code (TRCMEMO), X1 address, X2 address, ... The sequence RAM 29 is composed of a programmable RAM memory / 16 bits and controls the entire tracer board section shown in FIG. First, the sequence RAM 29 receives the following signals. MA1-23: Main address signal (consisting of 24 bits) MD0-15: Main data signal (consisting of 16 bits) LSTDV: Count signal from the address counter 21 repeatedly records one of the divisions of the trace storage memory 15 (overlap) Write) or jump to the next divided frame (1 bit) DCF: Count full signal (1 bit) from delay counter 22 EV: Trace from event selector 28 to sequence RAM 29 Storage start X1 Event information signal (8)
Bit) ECF: Carry output signal from event counter 30 Count-up signal when tracing is desired to be interrupted at an arbitrary position Next, the sequence RAM 29 sends the following signals to each block for operation / control of the tracer board section. Output to. ACEN: Address counter (AC) count start instruction signal DCEN: Delay counter 22 count start instruction signal The delay counter 22 starts counting when this signal Hi is reached by the form signal. BRK: Event form count, which is a signal for interrupting / not interrupting the operation of the CPU 70 depending on the emulation form. ECEN: Event form counter. Counts the number of events DCREN: When the trace storage memory 15 is divided, a signal indicating whether to go to the next part or repeat.

【0017】アドレスカウンタ21は、トレース格納メ
モリ15に諸データを格納する為に、トレース格納メモ
リ15のアドレスを設定する為のカウンタで、オペレー
タが入力した2つの状態信号(DVTRC、TRCME
MO)と、前記EBAアドレスをもとにトレース格納メ
モリ15に格納するアドレスを設定するカウンタで、次
のメモリ容量で構成している。 アドレスカウンタ:トレース格納メモリのアドレスを
設定するカウンタ 0ー12の13ビットで構成 EBAアドレスカウンタ:前記アドレスカウンタを1
ブロック(8Kフレーム単位)に管理する4ビットで構
成するカウンタ ACR08 :アドレスカウンタが8Kになった
時に該信号を保持するカウンタメモリ(1ビットで構
成) ACR04 :アドレスカウンタが4Kになった
時に該信号を保持するカウンタメモリ(1ビットで構
成) DCF :後記ディレイカウンタ・フルの指
示信号を保持するカウンタメモリ(1ビットで構成) 予備 :アドレスカウンタ32ビット構成
の残り12ビット
The address counter 21 is a counter for setting the address of the trace storage memory 15 in order to store various data in the trace storage memory 15, and has two status signals (DVTRC, TRCME) input by the operator.
MO) and an address to be stored in the trace storage memory 15 based on the EBA address, and has a memory capacity as follows. Address counter: Counter for setting the address of the trace storage memory. It consists of 13 bits of 0-12. EBA address counter: 1 for the address counter.
Counter composed of 4 bits managed in blocks (8K frame units) ACR08: Counter memory (composed of 1 bit) that holds the signal when the address counter reaches 8K ACR04: The signal when the address counter reaches 4K Counter memory (composed of 1 bit) DCF: counter memory (composed of 1 bit) that holds a delay counter full instruction signal, which will be described later Reserve: address counter 32 bits remaining 12 bits

【0018】ディレイカウンタ22は、前述のとおりト
レース格納メモリ15に格納する格納フレーム数を設定
(カウント)するカウンタで、トレースMODEブロッ
ク13からの2つの状態信号(DVTRC、TRCME
MO)をもとに、格納フレーム数、すなわち、本実施例
の1格納ブロック32Kの場合、128K−32K=9
6Kである(説明を分かりやすくする為十進数で表現・
・実際は16進数で構成されている)数値をカウンタの
初期設定として96000に設定し、カウント開始の信
号(DCEN)がシーケンスRAMから届くと、960
01、96002、96003、・・・・とカウントア
ップし、128000(実際は16進数で「FF・・F
F」になると)カウント・フルの信号(DCF)をアド
レスカウンタ21、シーケンスRAM25に出力され
る。(参考として:表3の最大フレーム分割数を64と
した場合、128÷64=2Kで、1格納フレームは2
Kとなるから、この場合は128K−2K=126Kと
なり、126000に初期値を設定し、順次カウントア
ップして128000[実際は16進数で「FF・・F
F」]になったところでカウント・フル信号(DCF)
が発せられることになる)。
The delay counter 22 is a counter for setting (counting) the number of frames to be stored in the trace storage memory 15 as described above, and has two status signals (DVTRC, TRCME) from the trace MODE block 13.
Based on MO), the number of storage frames, that is, 128K−32K = 9 in the case of one storage block 32K in this embodiment.
6K (expressed in decimal notation for easy understanding)
(Actually configured by hexadecimal number) When the counter is initialized to 96000 and the count start signal (DCEN) arrives from the sequence RAM, 960
01, 96002, 96003, ... Counted up to 128000 (actually, in hexadecimal, "FF ... F
When it becomes "F"), a count full signal (DCF) is output to the address counter 21 and the sequence RAM 25. (For reference: When the maximum number of frame divisions in Table 3 is 64, 128 ÷ 64 = 2K, and one storage frame is 2
In this case, 128K-2K = 126K, so the initial value is set to 126000, and the count is sequentially incremented to 128000 [actually, in hexadecimal, "FF ... F
F ”], the count full signal (DCF)
Will be emitted).

【0019】トレースCPUコネクタ26はサンプリン
グ・バス82=コンピュータ装置CPUバスからトレー
ス格納メモリ15の記録に必要な信号を入力し、トレー
スMODEブロック13からと、シーケンシャルRAM
ブロック29から、アドレスカウンタからのアドレスカ
ウント信号、ディレイカウンタからの信号とCPUバス
からのメインアドレス及びメインデータの信号を受け、
前記トレース格納メモリに格納するメインアドレス/メ
インデータ信号をSA、SB、SC、SDに分離生成
し、該信号をイベントコンパレータ27に伝送する。イ
ベントコンパレータ27はトレースCPUコネクタ26
からのSA、SB、SC、SDの各信号を入力し、オペ
レータが最初に入力したトレース開始するか/否かX1
番地ーX4番地のアドレス等を比較し、トレース格納メ
モリ15にデータ伝送路34を経て信号が送られると同
時に、X1番地とアドレスが一致した場合には、その信
号をCA、CB、CC、CDの信号としてその旨のデー
タを前記信号を次段のイベントセレクター28に送信符
号化して転送する。さらにイベントセレクタ28は、イ
ベントコンパレータからの信号(CA、CB、CC、C
D)を検知し、トレース開始すべしの信号をシーケンス
RAM29にはトレース開始信号発信用として、及びト
レース格納メモリ15に記録格納用の信号として伝送す
る。イベントカウンタ30は、トレースを何等かの理由
で中断する/しないの場合、シーケンスRAM29への
出力信号、すなわちECEN信号を基にカウントアップ
を開始し、カウント・フルの「FF・・FF」になった
とき、ECN信号をシーケンスRAM29に入力する
と、シーケンスRAM29はトレースを中断するブレー
ク信号(BRK)を必要な各各ブロックに発信する。
The trace CPU connector 26 inputs signals required for recording in the trace storage memory 15 from the sampling bus 82 = computer device CPU bus, and from the trace MODE block 13 and the sequential RAM.
From the block 29, the address count signal from the address counter, the signal from the delay counter, and the main address and main data signals from the CPU bus are received.
The main address / main data signal to be stored in the trace storage memory is separately generated into SA, SB, SC and SD, and the signal is transmitted to the event comparator 27. The event comparator 27 is a trace CPU connector 26
Input SA signal, SB signal, SC signal, SD signal from the operator and start / not start the trace input by the operator X1
The address and the like of the address X4 are compared, and a signal is sent to the trace storage memory 15 via the data transmission path 34. At the same time, when the address coincides with the address X1, the signal is sent to CA, CB, CC, CD. The data indicating that is transmitted and encoded as the signal of (1) to the event selector 28 of the next stage and transferred. Further, the event selector 28 uses the signals (CA, CB, CC, C from the event comparator).
D) is detected, and a signal indicating that the trace should start is transmitted to the sequence RAM 29 as a signal for transmitting a trace start signal and as a signal for recording and storing in the trace storing memory 15. When the trace is interrupted / not suspended for some reason, the event counter 30 starts counting up based on the output signal to the sequence RAM 29, that is, the ECEN signal, and becomes "FF ... FF" of count full. When the ECN signal is input to the sequence RAM 29, the sequence RAM 29 sends a break signal (BRK) for interrupting the trace to each required block.

【0020】以上、各機能ブロックの動作概要を説明し
たが、次にトレース格納メモリ15への格納の例を説明
する。いま動作例を説明するためオペレータは、前記同
様次の通りに条件を設定したとする、すなわち フレームの最大記録数を128Kフレームとする・・
・・・(表1から)状態信号1−1 トレース格納メモリの分割数を4とする(DVTR
C)・・(表2から)状態信号0−1 前記からトレース格納メモリの1個当りの格納フレー
ム容量は、表3から32Kフレームとなる(TRCME
MO) 前記4分割した各状態へのトレース開始アドレスを・
・・・X1番地、X2番地、X3番地、X4番地 と設定したこととして説明する。
The outline of the operation of each functional block has been described above. Next, an example of storage in the trace storage memory 15 will be described. Now, in order to explain the operation example, it is assumed that the operator sets the conditions as follows, that is, the maximum number of frames to be recorded is 128K frames ...
... (from Table 1) Status signal 1-1 Set the number of divisions of the trace storage memory to 4 (DVTR
C) ... (from Table 2) Status signal 0-1 From the above, the storage frame capacity per trace storage memory is from Table 3 to 32K frames (TRCME).
MO) Trace start address for each of the four divided states
... It is assumed that the addresses X1, X2, X3, and X4 are set.

【0021】以上の条件から、オペレータは (a)最初にインサーキットエミュレータ装置に接続さ
れているホストコンピュータ装置94から、マザーバス
88を介してトレースMODEブロック13に前記の条
件を入力する。 (b)ホストコンピュータ装置94からのトレース開始
信号(TON)が入力されると、コンピュータ装置のC
PU70はプログラムの実行を開始する。 (c)ホストコンピュータ装置94からのトレース開始
信号(TON)がトレースMODEブロック13にも入
力されると、該トレース開始信号がシーケンスRAM2
9に伝達され、シーケンスRAM29は該トレース開始
信号を関係各ブロックにトレース開始信号(TON)を
発信し、アドレスカウンタ21のアドレスカウンタは該
トレース開始信号をもとにカウントアップを開始する。
該アドレスカウンタは所定の数(この場合1格納フレー
ムは32Kであるから00000から32000)にな
るとカウンタは00000に戻り、再度00001、0
0002とカウントアップを(後述するカウントアップ
停止信号が届くまで)何回でも繰り返している(図4参
照)。故にトレース格納メモリ15には前記トレース格
納すべくアドレス信号が入力されるので、格納が実行さ
れるが、前記カウンタが一巡すると同じアドレスに戻る
ので、後に入力された信号に書き替えら格納が繰り返さ
れることとなる。
From the above conditions, the operator (a) first inputs the above conditions from the host computer device 94 connected to the in-circuit emulator device to the trace MODE block 13 via the mother bus 88. (B) When a trace start signal (TON) is input from the host computer device 94, C of the computer device is input.
The PU 70 starts executing the program. (C) When the trace start signal (TON) from the host computer device 94 is also input to the trace MODE block 13, the trace start signal is sent to the sequence RAM 2
9, the sequence RAM 29 transmits the trace start signal (TON) to each related block, and the address counter of the address counter 21 starts counting up based on the trace start signal.
When the address counter reaches a predetermined number (in this case, since one storage frame is 32K, 0000 to 32000), the counter returns to 00000, and 00001, 0 again.
0002 and count-up are repeated any number of times (until a count-up stop signal described later arrives) (see FIG. 4). Therefore, since the address signal is input to the trace storage memory 15 to store the trace, the storage is executed, but since the counter returns to the same address when the counter makes one cycle, the signal input later is repeatedly stored. Will be done.

【0022】(d)一方トレースCPUコネクタ26は
(以下図3参照)、シーケンスRAM29からのトレー
ス開始信号(TON)を受け、CPUバスからのトレー
スデータをSA(アドレス)、SB(他のデータ)、S
C(コントロール)、SD(Data)信号に分離しゲ
ート(通過)させ、イベントコンパレータ27に送る。 (e)イベントコンパレータ27は、トレースCPUコ
ネクタ26からの入力されたアドレス信号(SA)と、
最初にオペレータが入力した格納開始を指示したアドレ
ス「X1番地」とを比較し、アドレスが一致した場合格
納開始となるので、該一致した旨の信号をイベントセレ
クタ28を介し、シーケンスRAM29に送出する。 (f)イベントセレクタ28は、該信号をイベント信号
(EV)に変換し、シーケンスRAM29に送出すると
共にトレース格納メモリ15に送り記録させる。 (g)シーケンスRAM29は(以下図4参照)、前記
トレース開始の信号(EV)が入力されると、ディレイ
カウンタ22にカウント・アップの開始の信号(DCE
N)がディレイカウンタ22に発せられる。
(D) On the other hand, the trace CPU connector 26 (see FIG. 3 below) receives the trace start signal (TON) from the sequence RAM 29, and receives the trace data from the CPU bus as SA (address) and SB (other data). , S
The signals are separated into C (control) and SD (Data) signals, gated (passed), and sent to the event comparator 27. (E) The event comparator 27 receives the address signal (SA) input from the trace CPU connector 26,
First, the address "X1" that is inputted by the operator and instructed to start the storage is compared, and if the addresses match, the storage is started. Therefore, a signal indicating the match is sent to the sequence RAM 29 via the event selector 28. . (F) The event selector 28 converts the signal into an event signal (EV), sends it to the sequence RAM 29, and sends it to the trace storage memory 15 for recording. (G) When the trace start signal (EV) is input to the sequence RAM 29 (see FIG. 4 below), the delay counter 22 starts counting up (DCE).
N) is issued to the delay counter 22.

【0023】(h)前記DCENの信号が届くとディレ
イカウンタ22のカウンタは、カウント・アップを開始
する。尚、ディレイカウンタ22は前述のとおり、第1
記録ブロックへの記録フレーム数である32Kの場合、
カウンタの初期設定値は128−32=96K:960
00に設定されているから、カウンタは96001、9
6002・・・とカウントアップして行き、12800
0(16進数で「FF・・FF」)になると、カウント
・フル信号(DCF)がアドレスカウンタ21、シーケ
ンスRAM29に出力される。 (i)一方、アドレスカウンタ21は、前記カウントフ
ル信号(DCF)が入力されると、アドレスカウンタの
カウントアップを中止する。すなわちトレース格納メモ
リ15のアドレス・カウンタのカウンタが中止されるの
で、カウンタ・アップしていた過去の(最後の)32K
フレーム分が格納されることになる。故に、ディレイカ
ウンタで設定したカウントアップの32Kフレーム分が
トレース格納メモリ15に残され格納されることとな
る。 (j)前記第1ブロックのカウント=トレース格納メモ
リ15への格納が終了すると、前述のディレイカウンタ
22のカウントフル信号(DCF)を元に、アドレスカ
ウンタ21は第1ブロックのアドレスから第2ブロック
への2個の状態コードカウンタをカウントアップし、さ
らにアドレスカウンタの上位の桁をアップさせ、次の第
2ブロック(X2番地のイベント)でのアドレスカント
アップに備える。 (k)本発明の1つである分割したフレームの1つを連
続して、例えば32Kの2個を連続した記録フレームと
したい時は前記2つの状態コードと、ディレイカウンタ
22の初期設定値を変え、さらにアドレスカウンタの上
位の桁を設定することで目的を達成することが容易とな
る。
(H) When the DCEN signal arrives, the counter of the delay counter 22 starts counting up. The delay counter 22 has the first counter as described above.
In the case of 32K which is the number of recording frames in the recording block,
The initial setting value of the counter is 128-32 = 96K: 960
Since it is set to 00, the counters are 96001, 9
Counted up to 6002 ... 12800
When it reaches 0 (“FF ... FF” in hexadecimal number), a count full signal (DCF) is output to the address counter 21 and the sequence RAM 29. (I) On the other hand, when the count full signal (DCF) is input, the address counter 21 stops counting up the address counter. That is, since the counter of the address counter of the trace storage memory 15 is stopped, the past (last) 32K which has been incremented
Frames will be stored. Therefore, the count-up of 32K frames set by the delay counter is left and stored in the trace storage memory 15. (J) When the count of the first block = storing in the trace storage memory 15 is completed, the address counter 21 changes from the address of the first block to the second block based on the count full signal (DCF) of the delay counter 22. To count up the two status code counters, and the upper digit of the address counter is increased to prepare for the address cant up in the next second block (event at address X2). (K) When it is desired to make one of the divided frames which is one of the present invention continuous, for example, two 32K continuous recording frames, the two status codes and the initial setting value of the delay counter 22 are set. It is easy to achieve the purpose by changing the number and setting the upper digit of the address counter.

【0024】[0024]

【発明の効果】以上説明したように、本発明を利用した
インサーキットエミュレータ装置は、コンピュータ装置
のCPU70が実行するプログラムの実行状況を記録格
納するインサーキットエミュレータ装置の内部のトレー
ス格納メモリ15に記録格納すべきエリアを分割記録す
ることが出来るので、1回のコンピュータ装置のプログ
ラムを実行すれば、複数個所(本発明例では最大64個
所)の実行状況を記録格納出来るし、さらに、前記分割
した記録格納エリアの(本発明例では最大64箇所の)
1又は2以上を任意に複数箇所を連続して使用すること
が出来る等、コンピュータ装置のプログラムのデバッグ
が素早く実行することが出来、デバッグに要する時間を
大幅に節約する事が可能となる。
As described above, the in-circuit emulator device using the present invention records the execution status of the program executed by the CPU 70 of the computer device in the trace storage memory 15 inside the in-circuit emulator device. Since the area to be stored can be divided and recorded, the execution status of a plurality of places (maximum 64 places in the example of the present invention) can be recorded and stored by executing the program of the computer once. Recording storage area (maximum of 64 locations in the present invention)
One or two or more can be arbitrarily used continuously at a plurality of locations, so that the program of the computer device can be debugged quickly, and the time required for debugging can be greatly saved.

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

【図1】本発明の一実施例を示すトレース/イベント部
機能ブロックを示す図である。
FIG. 1 is a diagram showing a functional block of a trace / event unit according to an embodiment of the present invention.

【図2】本発明の一実施例を示すトレース/イベント部
主要回路ブロックを示す図である。
FIG. 2 is a diagram showing a trace / event section main circuit block showing an embodiment of the present invention.

【図3】本発明の一実施例を示すイベント回路ブロック
を示す図である。
FIG. 3 is a diagram showing an event circuit block showing an embodiment of the present invention.

【図4】本発明の実施例の一部を示すアドレスカウンタ
/ディレイカウンタを示す回路ブロック図である。
FIG. 4 is a circuit block diagram showing an address counter / delay counter showing a part of an embodiment of the present invention.

【図5】イベント検出からアドレスカウンタ、ディレイ
カウンタの動作状況を示すチャート図である。
FIG. 5 is a chart showing the operation statuses of an address counter and a delay counter from event detection.

【図6】プローブI/Fブロックを介しインサーキット
エミュレータ装置とコンピュータ装置を接続した状態の
両機能の主要ブロック図である。
FIG. 6 is a main block diagram of both functions in a state where the in-circuit emulator device and the computer device are connected via a probe I / F block.

【表1】 トレース格納メモリのフレームの大きさを決定する状態
コードの状態を示す表である。
[Table 1] 6 is a table showing the states of state codes that determine the frame size of the trace storage memory.

【表2】 トレース格納メモリのフレームのフレーム分割数を決定
する状態コードの状態を示す表である。
[Table 2] 9 is a table showing the states of state codes that determine the number of frame divisions of a frame in the trace storage memory.

【表3】 トレース格納メモリのフレーム数の大きさと、1回の記
録するフレーム分割数を決定する状態コードとの関係を
示す表である。
[Table 3] 9 is a table showing the relationship between the size of the number of frames in the trace storage memory and a status code that determines the number of frame divisions to be recorded once.

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

13 トレースMODEブロック 15 トレース格納メモリ 21 アドレスカウンタ 22 ディレイカウンタ 23 クロック・ジェネレータ 24 メモリ・カウンタ 26 トレースCPU・コネクタ 27 イベント・コンパレータ 28 イベント・セレクタ 29 シーケンスRAM 70 ターゲットコンピュータ装置 82 コンピュータ装置のCPUバス 88 インサーキットエミュレータ装置のメインCPU
バス 90 インサーキットエミュレータ装置内のメインCP
U 93 ホストコンピュータ装置
13 Trace MODE Block 15 Trace Storage Memory 21 Address Counter 22 Delay Counter 23 Clock Generator 24 Memory Counter 26 Trace CPU Connector 27 Event Comparator 28 Event Selector 29 Sequence RAM 70 Target Computer Device 82 Computer CPU Bus 88 In Main CPU of circuit emulator device
Bus 90 Main CP in in-circuit emulator device
U 93 Host computer device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】コンピュータ装置の中央処理制御装置(C
PU)の実行状況を解析するインサーキットエミュレー
タ装置において、前記インサーキットエミュレータ装置
内部のトレース格納メモリと、該トレース格納メモリを
制御するその周辺制御回路とで構成し、該インサーキッ
トエミュレータ装置のトレース格納メモリの記録方法を
1、又はその2分の1(1/2)、あるいは2の乗数分
の1(1/X:Xは2の乗数)に分割記録する事を特長
とするインサーキットエミュレータ装置。
1. A central processing control unit (C) of a computer device.
In the in-circuit emulator device for analyzing the execution status of the (PU), the trace storage memory in the in-circuit emulator device and the peripheral control circuit for controlling the trace storage memory are provided. In-circuit emulator device characterized in that the recording method of the memory is divided into 1 or 1/2 (1/2) or 1 / X (1 / X: X is a multiplier of 2) .
【請求項2】コンピュータ装置の中央処理制御装置(C
PU)の実行状況を解析するインサーキットエミュレー
タ装置において、前記インサーキットエミュレータ装置
内部のトレース格納メモリと、該トレース格納メモリを
制御するその周辺制御回路とで構成し、該インサーキッ
トエミュレータ装置のトレース格納メモリを1、又はそ
の2分の1(1/2)、あるいは2の乗数分の1(1/
X:Xは2の乗数)に分割し、かつその分割した領域の
1または2以上を任意に選択して1記録エリアとし、前
記任意に選択した記録エリアに記録格納する事を特長と
するインサーキットエミュレータ装置。
2. A central processing controller (C) of a computer device.
In the in-circuit emulator device for analyzing the execution status of the (PU), the trace storage memory in the in-circuit emulator device and the peripheral control circuit for controlling the trace storage memory are provided. 1 or half of the memory (1/2), or a power of 2 (1 /
X: X is a power of 2), and one or two or more of the divided areas are arbitrarily selected as one recording area, and are stored in the arbitrarily selected recording area. Circuit emulator device.
【請求項3】コンピュータ装置の中央処理制御装置(C
PU)の実行状況を解析するインサーキットエミュレー
タ装置において、前記インサーキットエミュレータ装置
内部のトレース格納メモリと、該トレース格納メモリを
制御するその周辺制御回路とで構成し、該トレース格納
メモリを制御するその周辺制御回路とで構成し、該イン
サーキットエミュレータ装置のトレース格納メモリを
1、又はその2分の1(1/2)、あるいは2の乗数分
の1(1/X:Xは2の乗数)に分割し、該分割された
トレース格納メモリに追加のアドレス管理用のバンクア
ドレスを設け、該バンクアドレスはトレース格納メモリ
をブロックに分割するようにアドレスとして、前記分割
された該メモリの記録フレーム数を管理する事を特長と
するインサーキットエミュレータ装置。
3. A central processing control unit (C) of a computer device.
In the in-circuit emulator device for analyzing the execution status of the (PU), the trace storage memory inside the in-circuit emulator device and its peripheral control circuit for controlling the trace storage memory are configured to control the trace storage memory. A peripheral control circuit, and the trace storage memory of the in-circuit emulator device is 1 or 1/2 (1/2) or a multiplier of 2 (1 / X: X is a multiplier of 2). The divided trace storage memory is provided with a bank address for additional address management, and the bank address is used as an address for dividing the trace storage memory into blocks, and the number of recording frames of the divided memory. An in-circuit emulator device characterized by managing
【請求項4】コンピュータ装置の中央処理制御装置(C
PU)の実行状況を解析するインサーキットエミュレー
タ装置において、前記インサーキットエミュレータ装置
内部のトレース格納メモリと、該トレース格納メモリを
制御するその周辺制御回路とで構成し、該インサーキッ
トエミュレータ装置のトレース格納メモリの記録方法を
1、又はその2分の1(1/2)、あるいは2の乗数分
の1(1/X:Xは2の乗数)に分割記録出来るように
して、かつ分割記録の記録アドレス/記録フレーム数を
状態カウンタとディレイカウンタにより記録すべくアド
レスと記録フレーム数を管理し、分割されたトレース格
納メモリに記録格納することを特長とするインサーキッ
トエミュレータ装置。 【請求項4】コンピュータ装置の中央処理制御装置(C
PU)の実行状況を解析するインサーキットエミュレー
タ装置において、前記インサーキットエミュレータ装置
内部のトレース格納メモリと、該トレース格納メモリを
制御するその周辺制御回路とで構成し、該インサーキッ
トエミュレータ装置のトレース格納メモリの記録方法を
1、又はその2分の1(1/2)、あるいは2の乗数分
の1(1/X:Xは2の乗数)に分割記録し、該分割記
録された1個の格納エリアの格納フレーム数はディレイ
カウンタに設定した設定条件でのカウント数に依存し
て、トレース格納メモリに格納する事を特長とするイン
サーキットエミュレータ装置。
4. A central processing control unit (C) of a computer system.
In the in-circuit emulator device for analyzing the execution status of the (PU), the trace storage memory in the in-circuit emulator device and the peripheral control circuit for controlling the trace storage memory are provided. The recording method of the memory is divided into 1 or 1/2 (1/2) or 1 / X (1 / X: X is a multiplier of 2) division recording, and division recording is performed. An in-circuit emulator device characterized by managing the address and the number of recording frames so that the address / recording frame number can be recorded by a state counter and a delay counter, and recording and storing them in a divided trace storage memory. 4. A central processing control unit (C) of a computer system.
In the in-circuit emulator device for analyzing the execution status of the (PU), the trace storage memory in the in-circuit emulator device and the peripheral control circuit for controlling the trace storage memory are provided. The recording method of the memory is dividedly recorded into 1 or 1/2 (1/2) or 1 / X (where X is a multiplier of 2), and one of the divided and recorded data is recorded. The in-circuit emulator device is characterized in that the number of frames stored in the storage area depends on the number of counts set under the delay counter and is stored in the trace storage memory.
JP7282354A 1995-09-06 1995-09-06 Divided recording device for trace storage memory of in-circuit emulator device Pending JPH0973403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7282354A JPH0973403A (en) 1995-09-06 1995-09-06 Divided recording device for trace storage memory of in-circuit emulator device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7282354A JPH0973403A (en) 1995-09-06 1995-09-06 Divided recording device for trace storage memory of in-circuit emulator device

Publications (1)

Publication Number Publication Date
JPH0973403A true JPH0973403A (en) 1997-03-18

Family

ID=17651328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7282354A Pending JPH0973403A (en) 1995-09-06 1995-09-06 Divided recording device for trace storage memory of in-circuit emulator device

Country Status (1)

Country Link
JP (1) JPH0973403A (en)

Similar Documents

Publication Publication Date Title
US4367525A (en) CPU Channel monitoring system
US6161200A (en) Method and apparatus for analyzing software executed in embedded systems
EP0130469B1 (en) Internally distributed monitoring system
KR880001401B1 (en) Common Bus Utilization Detection Logic in Data Processing System
US8978017B2 (en) Profiling operating context
US7174274B2 (en) Gathering I/O measurement data during an I/O operation process
JP2003006003A (en) DMA controller and semiconductor integrated circuit
WO2001027873A1 (en) Programmable event counter system
CN113076233B (en) IO performance detection method, device, equipment and storage medium
US7802149B2 (en) Navigating trace data
US20060150023A1 (en) Debugging apparatus
JPS61269444A (en) Data transmission system
JPH0973403A (en) Divided recording device for trace storage memory of in-circuit emulator device
JP2595082B2 (en) Operation state monitoring device for programmable controller
US7222202B2 (en) Method for monitoring a set of semaphore registers using a limited-width test bus
JPS6142186Y2 (en)
JPH10221410A (en) Automatic logic verification method for LSI
JPH05241619A (en) Programmable controller programming device
JPH1040130A (en) Microcomputer
JPH03127237A (en) Performance measurement system for information processor
JPH05250231A (en) Program operation gathering device
JPH03144705A (en) Operation state monitor for programmable controller
CN119849393A (en) Real-time data read-write method and related device for on-chip logic analyzer
JP2004348635A (en) Method for developing program
JP2003280940A (en) Debug system