JPH02310738A - Microprocessor ic - Google Patents

Microprocessor ic

Info

Publication number
JPH02310738A
JPH02310738A JP1133636A JP13363689A JPH02310738A JP H02310738 A JPH02310738 A JP H02310738A JP 1133636 A JP1133636 A JP 1133636A JP 13363689 A JP13363689 A JP 13363689A JP H02310738 A JPH02310738 A JP H02310738A
Authority
JP
Japan
Prior art keywords
buffer
data
trace
microprocessor
data bus
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
JP1133636A
Other languages
Japanese (ja)
Inventor
Kazuto Tsuzuki
都築 一人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP1133636A priority Critical patent/JPH02310738A/en
Publication of JPH02310738A publication Critical patent/JPH02310738A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To trace the operating state of a microprocessor IC in real time by providing a buffer which stores the trace data of a processing executed in the inside at every execution unit. CONSTITUTION:The address of an instruction and the content of a register, etc., executed in a central processing unit 2 are sent to a buffer part 5 via an internal data bus 9 as the trace data 8, and a buffer control part 6 sends the address and write information to the buffer part 5 by using an internal address bus 19 and a read/write control signal line 16, and writes them on the buffer part 5 as the trace data 8. A data bus switching part 7 is operated by making active a read requesting signal line 22 from the outside, and the trace data can be read out from the buffer part 5 to the outside via an internal data bus 14 and a data bus 21. In such a manner, it is possible to trace the operation of the microprocessor IC 1-2 regardless of the presence/absence of corresponding data in a cache memory part 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はキャッシュを内蔵したマイクロプロセッサIC
に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a microprocessor IC with a built-in cache.
Regarding.

〔従来の技術〕[Conventional technology]

従来のこ7種のマイクロプロセッサICは、第3図のよ
うに、中央処理装置2と、キャッシュ制御部3と、キャ
ッシュメモリ部4と、データバス切換え部7と、内部バ
ス10,11.12及び17と、内部データバス13と
、データバス制御信号線18と、外部メモリアクセス要
求バス20と、データバス21から構成されている。
These seven types of conventional microprocessor ICs, as shown in FIG. and 17, an internal data bus 13, a data bus control signal line 18, an external memory access request bus 20, and a data bus 21.

第2図のマイクロプロセッサICl−3は、内部にキャ
ッシュメモリ部4とキャッシュ制御部3とを持つマイク
ロプロセッサであり、中央処理装置2が内部バス11,
10,12を通して、キャッシュ制御部3に対して実行
命令の読み出しを要求すると、キャッシュメモリ部4に
該当する命令があるかどうかをキャッシュ制御部3が検
索する。検索した結果、キャッシュメモリ部4に該当す
る命令があれば内部バス1゛7を通してキャッシュ制御
部3が読み出し、内部バス12,10゜11を通して、
中央処理装置2に命令を送る。検索した結果キャッシュ
メモリ部4に該当する命令がなかった場合、キャッシュ
制御部3は外部メモリアクセス要求バス20を通して、
外部のメモリに対しアドレス及びリード制御のための情
報を出力する。これにより外部のメモリから命令が読み
出される。この際、キャッシュ制御部3はデータバス制
御信号線18により、データバス切換え部7を制御して
データバス21と内部データバス13とを接続する。読
み出された命令は、データバス21.内部データバス1
3.内部バス10及び11を通して中央処理装置2に送
られる。これにより中央処理装置2で送られてきた命令
が実行される。このとき実行される命令が外部のメモリ
に対して読み出しを要求する命令であれば、命令を読み
込んだ手順と同様にして中央処理装置2に読み込み処理
を行っていた。この際、マイクロプロセッサICl−3
の内部では状態のトレースを行っていない。
The microprocessor ICl-3 shown in FIG.
When a request is made to the cache control section 3 to read an execution instruction through the cache control section 10 and 12, the cache control section 3 searches the cache memory section 4 for the corresponding instruction. As a result of the search, if there is a corresponding instruction in the cache memory unit 4, the cache control unit 3 reads it through the internal bus 1゛7, and through the internal buses 12, 10゜11,
A command is sent to the central processing unit 2. As a result of the search, if there is no corresponding instruction in the cache memory section 4, the cache control section 3 sends an instruction via the external memory access request bus 20.
Outputs address and read control information to external memory. This causes the instruction to be read from external memory. At this time, the cache control section 3 controls the data bus switching section 7 using the data bus control signal line 18 to connect the data bus 21 and the internal data bus 13. The read instructions are transferred to the data bus 21. Internal data bus 1
3. It is sent to the central processing unit 2 via internal buses 10 and 11. As a result, the instructions sent by the central processing unit 2 are executed. If the instruction to be executed at this time is an instruction that requests reading from an external memory, the reading process is performed by the central processing unit 2 in the same manner as the procedure for reading the instruction. At this time, the microprocessor ICl-3
The state is not traced internally.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したようにキャッシュを内蔵しているマイクロプロ
セッサICでは、内部のキャッシュメモリ部に必要とす
るデータが格納されている場合といない場合とによって
、外部メモリに対するアクセスの有無の相違が生じる。
As described above, in a microprocessor IC having a built-in cache, whether or not the external memory is accessed depends on whether or not the internal cache memory section stores necessary data.

すなわち、内部のキャッシュメモリ部に必要とするデー
タが格納されている場合には外部のメモリに対してアク
セス要求を行わないため、外部メモリアクセスlバス2
0を通してアドレス及びステータス等の情報がマイクロ
プロセッサICから出力されない。そのためこのマイク
ロプロセッサICの動作状態をマイクロプロセッサIC
外部でトレースする場合には、キャッシュに関する動作
を止めてすべての処理に関してマイクロプロセッサIC
の外部に情報を出力するようにしなければならず、実際
のマイクロプロセッサICの動作と異なった状態でトレ
ースを行うためにリアルタイム性が失われるという欠点
があった。
In other words, when the necessary data is stored in the internal cache memory section, no access request is made to the external memory, so the external memory access l bus 2
Information such as address and status is not output from the microprocessor IC through 0. Therefore, the operating state of this microprocessor IC is
When tracing externally, cache-related operations are stopped and all processing is performed by the microprocessor IC.
This has the disadvantage that real-time performance is lost because information must be output to the outside of the microprocessor IC, and tracing is performed in a state different from the actual operation of the microprocessor IC.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のマイクロプロセッサICは、キャッシュ内蔵型
のマイクロプロセッサICにおいて、内部で実行された
命令のアドレス値及びデータ値及びその実行単位の区別
を示す情報とを含むトレースデータを各実行単位ごとに
格納するバッファと、前記バッファに対する前記トレー
スデータ書き込み及び読み出しを制御する制御手段と、
外部から前記制御手段へ制御信号を入力するための外部
端子とを備えて構成されている。
The microprocessor IC of the present invention is a cache built-in microprocessor IC, and stores trace data for each execution unit, including address values and data values of internally executed instructions, and information indicating the distinction between the execution units. a buffer for controlling the trace data, and a control means for controlling writing and reading of the trace data to the buffer;
and an external terminal for inputting a control signal from the outside to the control means.

〔実施例〕〔Example〕

次に、本発明の第1の実施例について第1図を用いて説
明する。
Next, a first embodiment of the present invention will be described using FIG. 1.

1−1はマイクロプロセッサIC,2は中央処理装置、
3はキャッシュ制御部、4はキャッシュメモリ部、5は
バッファ部、6はバッファ制御部、7はデータバス切換
え部、8はトレースデータ、9.13及び14は内部デ
ータバス、10,11゜12及び17は内部バス、15
はライト要求信号線、16はリード/ライト制御信号線
、18はデータバス制御信号線、19は内部アドレスバ
ス、20は外部メモリアクセス要求バス、21はデータ
バス、22はリード要求信号線、23はリード応答信号
線である。
1-1 is a microprocessor IC, 2 is a central processing unit,
3 is a cache control unit, 4 is a cache memory unit, 5 is a buffer unit, 6 is a buffer control unit, 7 is a data bus switching unit, 8 is trace data, 9.13 and 14 are internal data buses, 10, 11゜12 and 17 is an internal bus, 15
1 is a write request signal line, 16 is a read/write control signal line, 18 is a data bus control signal line, 19 is an internal address bus, 20 is an external memory access request bus, 21 is a data bus, 22 is a read request signal line, 23 is the read response signal line.

まず、本マイクpプロセッサICl−1では、リード要
求信号線22の状態によってトレースを動作の選択を行
う。すなわち、リード要求信号線22がインアクティブ
のときにトレース動作を行い、アクティブのときにトレ
ース動作を中断してバッファ部5からトレースデータを
読み出す二つの機能を持っている。以下にそれぞれの機
能について説明する。
First, in the microphone p processor ICl-1, the tracing operation is selected depending on the state of the read request signal line 22. That is, it has two functions: performing a trace operation when the read request signal line 22 is inactive, and interrupting the trace operation and reading trace data from the buffer unit 5 when the read request signal line 22 is active. Each function will be explained below.

トレース動作を行う場合、外部からリード要求信号線2
2をインアクティブにする。これによりデータバス切換
え部7が動作してデータバス21と内部データバス13
を接続する。次に、中央処理装置2が命令の読み出しを
要求すると、従来技術で説明した動作通りに命令が中央
処理装置2に送られる。これにより中央処理装置2で命
令が実行される。このとき実行した命令のアドレスやレ
ジスタの内容等がトレースデータ8として内部データバ
ス9を通してバッファ部5に送られる。
When performing trace operation, external read request signal line 2
Make 2 inactive. As a result, the data bus switching unit 7 operates to switch between the data bus 21 and the internal data bus 13.
Connect. Next, when the central processing unit 2 requests reading of an instruction, the instruction is sent to the central processing unit 2 in accordance with the operation described in the prior art. This causes the central processing unit 2 to execute the command. At this time, the address of the executed instruction, the contents of the register, etc. are sent as trace data 8 to the buffer section 5 through the internal data bus 9.

又、中央処理装置2は、内部バス11.10とライト要
求信号線15を通して、バッファ制御部6にバッファ部
5に対するトレースデータ8の書き込み要求を行う。こ
れを受けてバッファ制御部6は内部アドレスバス19及
びリード/ライト制御信号線16を用いてアドレス及び
ライト制御情報をバッファ部5に送る。これによりバッ
ファ部5にトレースデータ8が書き込まれる。次に、バ
ッファ制御部6はアドレスをインクリメントし前記の動
作を繰り返す。こうしてトレースデータが順次書き込ま
れていく。
Further, the central processing unit 2 requests the buffer control unit 6 to write the trace data 8 to the buffer unit 5 through the internal bus 11.10 and the write request signal line 15. In response to this, the buffer control section 6 sends the address and write control information to the buffer section 5 using the internal address bus 19 and the read/write control signal line 16. As a result, the trace data 8 is written into the buffer section 5. Next, the buffer control unit 6 increments the address and repeats the above operation. In this way, trace data is written sequentially.

バッファ部5からのトレースデータの読み出し動作を行
う場合には、外部からリード要求信号線22をアクティ
ブにする。これによりデータバス切換え部7が動作しデ
ータバス21と内部データバス14を接続する。次に、
バッファ制御部6は書き込み時と同様に内部アドレスバ
ス19とり一ド/ライト制御信号線16を用いてアドレ
ス及びリード制御情報をバッファ部5に送る。これによ
り、バッファ部5からトレースデータが内部データバス
14及びデータバス21を通して外部に読み出される。
When reading trace data from the buffer section 5, the read request signal line 22 is made active from the outside. As a result, the data bus switching section 7 operates to connect the data bus 21 and the internal data bus 14. next,
The buffer control section 6 sends the address and read control information to the buffer section 5 using the internal address bus 19 and the read/write control signal line 16 as in the case of writing. As a result, trace data is read out from the buffer section 5 through the internal data bus 14 and the data bus 21.

次に、バッファ制御部6はアドレスをインクリメントし
前記の動作を繰り返す。こうしてトレースデータが順次
読み出され、バッファ部5の最終アドレスに達すると、
バッファ制御部6はリード応答信号線23により、この
トレースデータで読み出しが終了することを外部に知ら
せる。これに対して外部でリード要求信号線22をイン
アクティブにすることで読み出しが終了する。
Next, the buffer control unit 6 increments the address and repeats the above operation. In this way, the trace data is read out sequentially, and when the final address of the buffer section 5 is reached,
The buffer control unit 6 notifies the outside via the read response signal line 23 that reading of this trace data is completed. In contrast, reading is completed by making the read request signal line 22 inactive externally.

第2図は本発明の第2の実施例のブロック図である。第
2図のマイクロプロセッサICは、第1図の第1の実施
例と基本的な動作内容は同じであるがバッファ部5に対
するトレースデータの書き込みを要求するライト要求信
号を外部から与える点が異なっている。
FIG. 2 is a block diagram of a second embodiment of the invention. The microprocessor IC shown in FIG. 2 has the same basic operation as the first embodiment shown in FIG. ing.

第2図の実施例によれば、必要な処理実行単位のトレー
スデータのみをバッファ部に記憶させることができる。
According to the embodiment shown in FIG. 2, only the trace data of a necessary process execution unit can be stored in the buffer section.

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

以上説明したように、本発明は、マイクロプロセッサI
Cの内部で実行された処理のトレースデータを実行単位
ごとに格納するバッファを有し、外部からの制御信号で
読み出すことができるので、内蔵のキャッシュメモリ部
における該当するデータの有無に関係なく、マイクロプ
ロセッサICの動作をトレースすることができるという
効果かある。
As explained above, the present invention provides a microprocessor I
It has a buffer that stores trace data of processes executed inside C for each execution unit, and can be read out using an external control signal, regardless of the presence or absence of the corresponding data in the built-in cache memory. This has the effect of being able to trace the operation of the microprocessor IC.

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

第1図は本発明の第1の実施例のブロック図、第2図は
本発明のマイメロプロセッサICの第2の実施例のブロ
ック図、第3図は従来のキャッシュ内蔵型のマイクロプ
ロセッサICのブロック図である。 1−1.1−2.1−3・・・・・・マイクロプロセッ
サIC,2・・・・・・中央処理装置、3・・・・・・
キャッシュ制御部、4・・・・・・キャッシュメモリ部
、5・・・・・・バッファ部、6・・・・・・バッファ
制御部、7・・・・・・データバス切換え部、8・・・
・・・トレースデータ、9,13゜14・・・・・・内
部データバス、10,11,12.17・・・・・・内
部バス、15・・・・・・ライト要求信号線、16・・
・・・・リード/ライト制御信号線、18・・・・・・
データバス制御信号線、19・・・・・・内部アドレス
バス、20・・・・・・外部メモリアクセス要求バス、
21・・印・データバス、22・・・・・・リード要求
信号線、23・・・・リード応答信号線。
FIG. 1 is a block diagram of a first embodiment of the present invention, FIG. 2 is a block diagram of a second embodiment of a MyMelo processor IC of the present invention, and FIG. 3 is a block diagram of a conventional cache-embedded microprocessor IC. It is a block diagram. 1-1.1-2.1-3...Microprocessor IC, 2...Central processing unit, 3...
Cache control unit, 4... Cache memory unit, 5... Buffer unit, 6... Buffer control unit, 7... Data bus switching unit, 8.・・・
...Trace data, 9,13゜14...Internal data bus, 10,11,12.17...Internal bus, 15...Write request signal line, 16・・・
...Read/write control signal line, 18...
Data bus control signal line, 19... Internal address bus, 20... External memory access request bus,
21...mark/data bus, 22...read request signal line, 23...read response signal line.

Claims (1)

【特許請求の範囲】[Claims] キャッシュ内蔵型のマイクロプロセッサICにおいて、
内部で実行された命令のアドレス値及びデータ値及びそ
の実行単位の区別を示す情報とを含むトレースデータを
各実行単位ごとに格納するバッファと、前記バッファに
対する前記トレースデータ書き込み及び読み出しを制御
する制御手段と、外部から前記制御手段へ制御信号を入
力するための外部端子とを有することを特徴とするマイ
クロプロセッサIC。
In a microprocessor IC with built-in cache,
A buffer that stores trace data for each execution unit, including address values and data values of internally executed instructions, and information indicating the distinction between the execution units, and a control that controls writing and reading of the trace data to and from the buffer. and an external terminal for inputting a control signal from the outside to the control means.
JP1133636A 1989-05-26 1989-05-26 Microprocessor ic Pending JPH02310738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1133636A JPH02310738A (en) 1989-05-26 1989-05-26 Microprocessor ic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1133636A JPH02310738A (en) 1989-05-26 1989-05-26 Microprocessor ic

Publications (1)

Publication Number Publication Date
JPH02310738A true JPH02310738A (en) 1990-12-26

Family

ID=15109454

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1133636A Pending JPH02310738A (en) 1989-05-26 1989-05-26 Microprocessor ic

Country Status (1)

Country Link
JP (1) JPH02310738A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6687811B1 (en) 2000-01-21 2004-02-03 Renesas Technology Corp. Processor with trace memory for storing access information on internal bus
JP2010061473A (en) * 2008-09-04 2010-03-18 Fujitsu Ltd Apparatus, method and program for cache logic verification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6687811B1 (en) 2000-01-21 2004-02-03 Renesas Technology Corp. Processor with trace memory for storing access information on internal bus
JP2010061473A (en) * 2008-09-04 2010-03-18 Fujitsu Ltd Apparatus, method and program for cache logic verification

Similar Documents

Publication Publication Date Title
JPH02310738A (en) Microprocessor ic
EP0059758A1 (en) Numerical control unit
KR0184454B1 (en) Real time interfacing method between emulator and host
JPH03137736A (en) Operation tracing system for micro processor
JPH02281341A (en) Write data confirming method for debugging
JPH04237346A (en) Microprocessor system
JPS62168497A (en) Data base processing system for exchange-processing program
JPS62279438A (en) Tracking circuit
KR100336743B1 (en) Processing circuit for data
JPH0447350A (en) Main storage read/response control
JPH03127126A (en) Information processor
JPH04102143A (en) Compare and swap control system
JPH03168845A (en) Instruction execution control system
JPH04305783A (en) Microcomputer
JPH0259829A (en) Microcomputer
JPH03269650A (en) Buffer storage
JPS6011969A (en) Memory device with logical arithmetic means
JPH04167146A (en) Address tracing system for information processor
JPS63155254A (en) Information processor
JPH0481939A (en) Control system for microcomputer
JPH0194455A (en) System for accessing storage device
JPH03185547A (en) Memory control device
JPS62130437A (en) Lsi tracing system
JPH04184548A (en) Memory extension system
JPH04367044A (en) Cache memory