JPH04171542A - Microprocessor containing debugging function - Google Patents

Microprocessor containing debugging function

Info

Publication number
JPH04171542A
JPH04171542A JP2300063A JP30006390A JPH04171542A JP H04171542 A JPH04171542 A JP H04171542A JP 2300063 A JP2300063 A JP 2300063A JP 30006390 A JP30006390 A JP 30006390A JP H04171542 A JPH04171542 A JP H04171542A
Authority
JP
Japan
Prior art keywords
register
information
cpu
internal
microprocessor
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
JP2300063A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Yamamoto
山本 満博
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 Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2300063A priority Critical patent/JPH04171542A/en
Publication of JPH04171542A publication Critical patent/JPH04171542A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the output of the internal information to the outside regardless of the operation of a CPU by providing a debugging register into the CPU to temporarily hold the information needed in the CPU. CONSTITUTION:A condition register 4 holds the conditions needed for acquisition of such internal information on the execution of instructions of a microprocessor, the transition of the data value, etc. A comparator 5 compares the internal information with the contents held in the register 4 and outputs the result of comparison. Then a sample register 6 holds the internal information according to the comparison result of the comparator 5 and outputs the information to the outside without dependence on the operation of the microprocessor. In such a constitution, a register is prepared in a CPU in order to hold temporarily the information on an internal bus equivalent to a trace memory. Thus the internal bus information can be outputted to the outside without stopping the operation of the CPU. Thus it is possible to obtain a microprocessor containing a debugging function.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムの検証、ハードウェアの動作確認
等のデバッグ作業に必要となる情報をマイクロプロセッ
サの外部に出力する機能を内蔵するデパック機能内蔵マ
イクロプロセッサに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a depacking function that has a built-in function to output information necessary for debugging operations such as program verification and hardware operation confirmation to the outside of a microprocessor. Concerning the built-in microprocessor.

〔従来の技術〕[Conventional technology]

従来のデバッグ機能内蔵マイクロプロセッサの一例を第
9図のブロック図に示し、そのデバッグシステムのトレ
ース部分の具体例を第10図のブロック図に示す。
An example of a conventional microprocessor with a built-in debug function is shown in the block diagram of FIG. 9, and a specific example of the trace portion of the debug system is shown in the block diagram of FIG.

第9図において、1はマイクロプロセッサ(以下CPU
という)内の命令を実行する部分である命令実行部(E
XU)、2はC’PUIの内の外部メモリ8の内容をキ
ャッシングするキャッシュメモリ、3はCPU内の外部
メモリ8を制御するメモリコントローラ、4はCPU内
にありCPU命令によって内容の書換えが可能で、デバ
ッグシステム内のトレースメモリを停止させる信号を発
生させるための条件を保持する条件レジスタ、5はCP
U内にあり条件レジスタ4とCPU内部バスの状態を比
較して比較結果を出力する比較器、9bはCPUとメモ
リ8間の外部バスをトレースするためのトレースメモリ
(リングバッファ構造になっている)を持ちトレース信
号23でトレースメモリの書き込みを中止(トレーサメ
モリの書き込みスタートはデバッグシステム内で制御す
る)するデバッグシステム、10はEXUI、メモリコ
ントローラ3間の内部アドレスバス、11はEXUlと
メモリコントローラ3間の内部データバス、12はEX
UIとメモリコントローラ3間の内部制御バス、13は
条件レジスタ4のデータを比較器5に転送する条件デー
タ信号、16はメモリコントローラ3とメモリ8間の外
部アドレスバス、17はメモリコントローラ3とメモリ
8間の外部データバス、18はメモリコントローラ3と
メモリ8間の外部制御バス、23は比較器5の比較結果
でデバッグシステム9b内のトレーサーを止めるトレー
ス信号である。
In Figure 9, 1 is a microprocessor (hereinafter referred to as CPU).
The instruction execution unit (E
XU), 2 is a cache memory that caches the contents of the external memory 8 in the C'PUI, 3 is a memory controller that controls the external memory 8 in the CPU, 4 is in the CPU and the contents can be rewritten by CPU instructions 5 is a condition register that holds the conditions for generating a signal to stop the trace memory in the debug system; 5 is a CP
Comparator 9b is located in U and compares the condition register 4 with the state of the CPU internal bus and outputs the comparison result. 9b is a trace memory (having a ring buffer structure) for tracing the external bus between the CPU and memory 8. ) and stops writing to the trace memory with the trace signal 23 (the start of writing to the tracer memory is controlled within the debug system); 10 is an internal address bus between the EXUI and the memory controller 3; 11 is the EXU1 and the memory controller Internal data bus between 3 and 12 is EX
An internal control bus between the UI and the memory controller 3, 13 a condition data signal that transfers the data of the condition register 4 to the comparator 5, 16 an external address bus between the memory controller 3 and the memory 8, and 17 an external address bus between the memory controller 3 and the memory 8 is an external data bus between the memory controller 3 and the memory 8, 18 is an external control bus between the memory controller 3 and the memory 8, and 23 is a trace signal that stops the tracer in the debug system 9b based on the comparison result of the comparator 5.

第10図において、アドレスカウンタ91aは外部制御
バス内のクロック信号をカウントしカウント結果を出力
する。デバッグシステム9b内トレースメモリ90はア
ドレスカウンタ91aのカウント結果をアドレスとして
外部アドレスバス16、外部データバス17.外部制御
バス18をトレースする。トレースメモリ90の読比し
はCPUとは独立してデバッグシステム内で行われる。
In FIG. 10, an address counter 91a counts clock signals in the external control bus and outputs the count results. The trace memory 90 in the debug system 9b uses the count result of the address counter 91a as an address for the external address bus 16, external data bus 17 . Trace external control bus 18. Reading of the trace memory 90 is performed within the debug system independently of the CPU.

次に、この回路の動作を説明する。あらかじめ条件レジ
スタ4にはデバッグシステム9b内のトレーサーを停止
させる条件が書き込まれていて、比較器5は条件レジス
タ4の内容と外部アドレスバス16.外部制御バス18
を常時比較し内容が一致したらトレース信号23を出力
する。デバッグシステム9b内トレーサーは常時外部バ
スの内容をトレースメモリ90に書き込み、トレース信
号23のストップ信号によってトレースメモリ90への
書き込みを中止する。
Next, the operation of this circuit will be explained. Conditions for stopping the tracer in the debug system 9b are written in advance in the condition register 4, and the comparator 5 uses the contents of the condition register 4 and the external address bus 16. External control bus 18
are constantly compared, and if the contents match, a trace signal 23 is output. The tracer in the debug system 9b constantly writes the contents of the external bus to the trace memory 90, and stops writing to the trace memory 90 in response to the stop signal of the trace signal 23.

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

上述した従来のデバッグ機能内蔵マイクロプロセッサは
、CPU動作状態をトレースする機能を実現するのに必
要なトレース条件を保持する条件レジスタ、CPLIの
バス条件と条件レジスタを比較する比較器はCPUに内
蔵することが可能だったが、トレースメモリ90はアド
レス、データ。
The conventional microprocessor with a built-in debug function described above has a condition register that holds the trace conditions necessary to realize the function of tracing the CPU operating state, and a comparator that compares the CPLI bus condition and the condition register built into the CPU. However, the trace memory 90 stores addresses and data.

制御バスをCPUのバスサイクルごとにトレースするた
めに高速大容量のメモリが必要となりCPU内蔵は不可
能だった。また、トレースメモリ90をCPU外部に配
置する関係で、トレースするデータはCPUから出力さ
れるデータに限られ、比較器で比較する対象もCPUが
ら出力される情報に限定されていたため、CPU外部に
出力されない情報はトレースされながった。特に問題に
なるキャッシュメモリをCPU内部に持つ場合には、外
部メモリとCPU内部のキャッシュメモリとの闇のデー
タのやりとりはCPU外部のメモリバスをトレースする
ことでCPU動作情報を得ることが可能であるが、CP
U内の命令実行部分と内部キャッシュとのやりとりは外
部でトレースすることが不可能であった。デバッグには
実際にCPUが処理した命令、データが何であったかの
情報、すなわち内部バスの情報が必要である。内部バス
の情報を外部に出力するためにトレースするデータ専用
端子を設けることが考えられるが、32ビツトCPUの
場合アドレス、データだけで64本になるため現実的で
はない。
Tracing the control bus for each CPU bus cycle required a high-speed, large-capacity memory, making it impossible to incorporate the CPU. In addition, since the trace memory 90 is located outside the CPU, the data to be traced is limited to data output from the CPU, and the data compared by the comparator is also limited to information output from the CPU. Information that is not output is no longer traced. Particularly when the CPU has a cache memory that is a problem, it is possible to obtain CPU operation information by tracing the memory bus outside the CPU. Yes, but CP
It has been impossible to externally trace the interaction between the instruction execution part in U and the internal cache. Debugging requires information on the instructions and data actually processed by the CPU, that is, information on the internal bus. It is conceivable to provide a data-only terminal for tracing in order to output internal bus information to the outside, but this is not practical because in the case of a 32-bit CPU, there would be 64 terminals for addresses and data alone.

本発明の目的は、トレースメモリに相当する内部バスの
情報を一時的に保持しておくレジスタをCPU内部に持
つことにより、CPUの動作を止めずに内部バス情報を
外部に出力することができ、デバッグを可能にしたデバ
ッグ機能内蔵マイクロプロセッサを提供することにある
An object of the present invention is to provide a register inside the CPU that temporarily holds internal bus information corresponding to a trace memory, thereby making it possible to output internal bus information to the outside without stopping CPU operation. The object of the present invention is to provide a microprocessor with a built-in debug function that enables debugging.

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

本発明の構成は、汎用レジスタ、命令実行部。 The configuration of the present invention includes a general-purpose register and an instruction execution section.

外部メモリ制御部等の機能を内蔵すると共に、プログラ
ムの検証、ハードウェアの動作確認等のデバッグ作業に
必要となる情報を外部に出力する機能を内蔵するデバッ
グ機能内蔵マイクロプロセッサにおいて、このマイクロ
プロセッサの命令の実行、データ値の遷移等の内部情報
を得るのに必要な条件を保持しておく条件レジスタと、
この条件レジスタの保持している内容と前記内部情報と
を比較し比較結果を出力する比較回路と、この比較回路
の比較結果に応じて前記内部の情報を保持し、マイクロ
プロセッサの動作に依存することなく外部に情報を出力
するサンプルレジスタとを備えることを特徴とする。
This microprocessor is a microprocessor with a built-in debug function that has built-in functions such as an external memory control unit, and also has a built-in function to output information necessary for debugging such as program verification and hardware operation check. a condition register that holds the conditions necessary to obtain internal information such as instruction execution and data value transition;
A comparison circuit that compares the contents held in this condition register with the internal information and outputs the comparison result, and a comparison circuit that holds the internal information according to the comparison result of this comparison circuit and depends on the operation of the microprocessor. It is characterized by being equipped with a sample register that outputs information to the outside without any interference.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図、第2図は第1
図の比較器の具体例の回路図、第3図は第1図のドライ
バーの具体例の回路図、第4図はサンプルレジスタの具
体例の回路図、第5図はデバッグシステム内トレーサー
の具体例の回路図、第6図は第1図の条件レジスタのフ
ォーマット例の図である。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
Figure 3 is a circuit diagram of a concrete example of the comparator in Figure 1, Figure 4 is a circuit diagram of a concrete example of a sample register, Figure 5 is a circuit diagram of a concrete example of a tracer in a debug system. An example circuit diagram, FIG. 6, is a diagram of an example format of the condition register of FIG.

第1図において、6は比較器5の比較結果によって内部
バスの状態を保持するサンプルレジスタ、7はサンプル
レジスタ6の内容をCPU外部に出力するドライバー、
9aはドライバー7が出力する外部サンプルデータ信号
19をトレースするデバッグシステム、14は比較器5
の出力でありサンプルレジスタ6のサンプルタイミング
やドライバー7のデータ出力タイミング生成に使用され
る比較結果信号、15はサンプルレジスタ6がサンプル
したデータをドライバー7に送る内部サンプルデータ信
号、19はドライバー7が出力する内部バスサンプルデ
ータをデバッグシステム9aに送る外部サンプルデータ
信号、20は外部サンプルデータ信号19のストローブ
信号であるサンプルデータストローブ信号である。この
他は第9図と同等なので説明を省略する。
In FIG. 1, 6 is a sample register that maintains the state of the internal bus based on the comparison result of comparator 5; 7 is a driver that outputs the contents of sample register 6 to the outside of the CPU;
9a is a debug system that traces the external sample data signal 19 output by the driver 7; 14 is a comparator 5;
15 is an internal sample data signal that sends the data sampled by the sample register 6 to the driver 7, and 19 is the comparison result signal used to generate the sample timing of the sample register 6 and the data output timing of the driver 7. An external sample data signal 20 sends internal bus sample data to be output to the debug system 9a, and a sample data strobe signal 20 is a strobe signal of the external sample data signal 19. The other parts are the same as those in FIG. 9, so the explanation will be omitted.

第2図の比較器5の回路では、内部アドレスバス10.
内部制御バ、ス12と条件データ信号13を対応するビ
ットごとにエクスクル−シブ(EX)OR51によりE
X−ORをとり、このEX−OR51の出力をNAND
ゲート52で統合して出力することで実現している。
In the circuit of comparator 5 of FIG. 2, internal address bus 10.
The internal control bus 12 and the condition data signal 13 are converted to E by exclusive (EX) OR51 for each corresponding bit.
Take X-OR and NAND the output of this EX-OR51
This is achieved by integrating and outputting at the gate 52.

第3図のドライバー7の回路では、比較結果信号14を
内部制御バス12内クロツクでフリップフロップ71に
よりラッチしバッファ72でドライブしてサンプルデー
タストローブ信号2oを出力する。内部サンプルデータ
信号はバッファ73でドライブして外部サンプルデータ
信号19として出力する。
In the circuit of the driver 7 shown in FIG. 3, the comparison result signal 14 is latched by a flip-flop 71 using the clock in the internal control bus 12, and is driven by a buffer 72 to output a sample data strobe signal 2o. The internal sample data signal is driven by a buffer 73 and output as an external sample data signal 19.

第4図のサンプルレジスタ6の回路では、比較結果信号
14と内部制御バス12(CPU動作クロック)で生成
した信号で内部アドレスバス10、内部データバス11
をラッチしたデータを内部サンプルデータ信号15とし
て出力する。
In the circuit of the sample register 6 shown in FIG.
The latched data is output as an internal sample data signal 15.

第5図のデバッグシステム内トレーサーの回路において
は、アドレスカウンタ91は、サンプルデータストロー
ブ信号2oのパルスをカウントし、カウント結果を出力
する。デバッグシステム9a内トレースメモリ9oはア
ドレスカウンタ91のカウント結果をアドレスとして外
部サンプルデータ信号19をトレースする。トレースメ
モリの読み出しはCPLIとは独立してデバッグシステ
ム内で行われる。
In the circuit of the tracer in the debug system shown in FIG. 5, the address counter 91 counts the pulses of the sample data strobe signal 2o and outputs the count result. The trace memory 9o in the debug system 9a traces the external sample data signal 19 using the count result of the address counter 91 as an address. Reading of the trace memory is done within the debug system independently of the CPLI.

第6図の条件レジスタのフォーマット例は、0からmビ
ットに内部アドレス、m+1ビツトに内部アドレスが1
(命令)かD(データ)を示すI/Dからなる。
An example of the format of the condition register in Figure 6 is that the internal address is 0 to m bits, and the internal address is 1 to m+1 bits.
It consists of an I/D indicating (command) or D (data).

以下、この実施例の動作を説明する。The operation of this embodiment will be explained below.

条件レジスタ4には、あらかじめ知りたい情報のキーに
なる情報、第6図では内部アドレスと内部アドレスの穫
類(命令またはデータ)が設定されていて、比較器5は
条件レジスタ4の内容と内部アドレスバス10.内部制
御バス12を常時比較し、その内容が一致したら比較結
果信号14を出力する。サンプルレジスタ6は、比較結
果信号14を使用して生成した信号で内部アドレスバス
10、内部データバス11.内部制御バス12をサンプ
ルする。ドライバー7はサンプルレジスタ6でサンプル
した情報をCPU外部に出力するため、内部サンプルデ
ータ信号15をドライブする。デバッグシステム9a内
トレーサーはサンプルデータストローブ信号2oに同期
して外部サンプルデータ信号19を保持する。
The condition register 4 is set with information that is the key to the information that you want to know in advance, and in FIG. Address bus10. Internal control buses 12 are constantly compared, and if the contents match, a comparison result signal 14 is output. The sample register 6 is a signal generated using the comparison result signal 14 and is connected to an internal address bus 10, an internal data bus 11 . Sample internal control bus 12. The driver 7 drives the internal sample data signal 15 in order to output the information sampled by the sample register 6 to the outside of the CPU. The tracer within the debug system 9a holds the external sample data signal 19 in synchronization with the sample data strobe signal 2o.

第7図は本発明の第2の実施例のブロック図であり、第
8図は第7図に用いる条件レジスタ4のフォーマット図
である。
FIG. 7 is a block diagram of a second embodiment of the present invention, and FIG. 8 is a format diagram of the condition register 4 used in FIG.

第7図において、22は演算結果を一時的に格納する等
に使用する汎用レジスタ、21はこの汎用レジスタ22
を識別するためのレジスタ番号を転送するレジスタ番号
バスである。この他は第9図と同等である。
In FIG. 7, 22 is a general-purpose register used to temporarily store calculation results, and 21 is this general-purpose register 22.
This is a register number bus that transfers register numbers for identification. Other than this, it is the same as FIG. 9.

第8図の内部レジスタのフォーマット例は、0からSビ
ットに汎用レジスタのレジスタ番号、S+1ビツトに汎
用レジスタが読み出された(R)か、書き込まれた(W
)かを示すR/Wからなる。
An example of the internal register format in Figure 8 is the register number of the general-purpose register in the 0 to S bits, and the number of the general-purpose register read (R) or written (W) in the S+1 bit.
) consists of R/W indicating whether

次に、この実施例の動作を説明する。Next, the operation of this embodiment will be explained.

条件レジスタ4には、あらかじめ着目するレジスタ番号
、R/Wの設定がされていて、比較器5は条件レジスタ
4の内容とレジスタ番号バス21、内部制御バス12を
常時比較し内容が一致したら比較結果信号14を出力す
る。サンプルレジスタ6は比較結果信号14を使用して
生成した信号でレジスタ番号バス21.内部データバス
11、内部制御バス12をサンプルする。ドライバー7
はサンプルレジスタ6でサンプルした情報をCPU外部
に出力するなめ、内部サンプルデータ信号15をドライ
ブする。デバッグシステム9a内トレーサーはサンプル
データストローブ信号20に同期して外部サンプルデー
タ信号19を保持する。
The register number and R/W to be focused on are set in advance in the condition register 4, and the comparator 5 constantly compares the contents of the condition register 4 with the register number bus 21 and internal control bus 12, and when the contents match, the comparison is made. A result signal 14 is output. The sample register 6 is a signal generated using the comparison result signal 14 and is connected to the register number bus 21. The internal data bus 11 and internal control bus 12 are sampled. driver 7
drives the internal sample data signal 15 in order to output the information sampled by the sample register 6 to the outside of the CPU. The tracer within the debug system 9a holds the external sample data signal 19 in synchronization with the sample data strobe signal 20.

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

以上説明したように本発明は、CPU内部の必要な情報
を一時的に保持しておくデバッグ用レジスタをCPLI
内部に持つことにより、CPLIの動作と無関係に内部
情報を外部に出力することが可能となり、特にキャッシ
ュメモリを内蔵したCPUはキャッシュメモリがCPU
内部でアクセスされた場合、アドレス、データ、命令/
データ、読み込み/書き出し等の情報はCPU外部で得
ることが可能となる。腋な、デバッグ用レジスタがCP
U外部と内部のスピード差を緩衝するため、外部のトレ
ースメモリのアクセス速度をCPUの動作スピードに合
わせる必要がなくアクセス速度の遅いメモリが使用可能
となり、外部に出力する方法もCPU動作と非同期に行
われるので、データ転送方法もパラレルだけでなくシリ
アルも使用可能になり、このデータ転送をシリアルにで
きるので、デバッグ情報を出力するための端子を少なく
することも可能となるという効果がある。
As explained above, the present invention uses debugging registers that temporarily hold necessary information inside the CPU as CPLI.
By having it internally, it is possible to output internal information to the outside regardless of the operation of the CPLI.In particular, for CPUs with built-in cache memory, the cache memory is
When accessed internally, addresses, data, instructions/
Information such as data, reading/writing, etc. can be obtained outside the CPU. The armpit debug register is CP.
In order to buffer the speed difference between the external and internal U, there is no need to adjust the access speed of external trace memory to the operating speed of the CPU, making it possible to use memory with a slower access speed, and the method of outputting externally is also asynchronous to the CPU operating speed. Therefore, not only parallel but also serial data transfer methods can be used, and since this data transfer can be performed serially, it is possible to reduce the number of terminals for outputting debug information.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の比較器の具体例の回路図、第3図は第1図のドライ
バーの具体例の回路図、第4図は第1図のサンプルレジ
スタの具体例の回路図、第5図は第1図のデバッグシス
テム内トレーサーの具体例の回路図、第6図は第1図の
条件レジスタのフォーマット図、第7図は本発明の第2
の実施例のブロック図、第8図は第7図の条件レジスタ
フォーマット図、第9図は従来例のブロック図、第10
図は第9図のデバッグシステムのトレース部分の具体例
のブロック図である。 1・・・EXU (命令実行部)、2・・・キャッシュ
メモリ、3・・・メモリコントローラ、4・・・条件レ
ジスタ、5・・・比較器、6・・・サンプルレジスタ、
7・・・ドライバー、8・・・メモリ、9a、9b・・
・デバッグシステム、10・・・内部アドレスバス、1
1・・・内部データバス、12・・・内部制御バス、1
3・・・条件データ信号、14・・・比較結果信号、1
5・・・内部サンプルデータ信号、16・・・外部アド
レスバス、17・・・外部データバス、18・・・外部
制御バス、19・・・外部サンプルデータ信号、20・
・・サンプルデータストローブ信号、21・・・レジス
タ番号バス、22・・・汎用レジスタ、23・・・トレ
ース信号、51・・・EX−OR回路、52・・・NA
NDゲート、71・・・フリップフロップ、72.73
・・・バッファ、90・・・トレースメモリ、91.9
1a・・・アドレスカウンタ。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
Figure 3 is a circuit diagram of a concrete example of the comparator in Figure 1, Figure 4 is a circuit diagram of a concrete example of the sample register in Figure 1, Figure 5 is a circuit diagram of a concrete example of the driver in Figure 1, Figure 6 is a circuit diagram of a specific example of a tracer in the debug system, Figure 6 is a format diagram of the condition register in Figure 1, and Figure 7 is a diagram of the condition register of the present invention.
FIG. 8 is a block diagram of the condition register format of FIG. 7, FIG. 9 is a block diagram of the conventional example, and FIG.
The figure is a block diagram of a specific example of the tracing part of the debug system of FIG. 9. 1...EXU (instruction execution unit), 2...cache memory, 3...memory controller, 4...condition register, 5...comparator, 6...sample register,
7...Driver, 8...Memory, 9a, 9b...
・Debug system, 10...Internal address bus, 1
1... Internal data bus, 12... Internal control bus, 1
3... Condition data signal, 14... Comparison result signal, 1
5... Internal sample data signal, 16... External address bus, 17... External data bus, 18... External control bus, 19... External sample data signal, 20...
...Sample data strobe signal, 21...Register number bus, 22...General-purpose register, 23...Trace signal, 51...EX-OR circuit, 52...NA
ND gate, 71...Flip-flop, 72.73
...Buffer, 90...Trace memory, 91.9
1a...Address counter.

Claims (1)

【特許請求の範囲】[Claims]  汎用レジスタ、命令実行部、外部メモリ制御部等の機
能を内蔵すると共に、プログラムの検証、ハードウェア
の動作確認等のデバッグ作業に必要となる情報を外部に
出力する機能を内蔵するデバッグ機能内蔵マイクロプロ
セッサにおいて、このマイクロプロセッサの命令の実行
、データ値の遷移等の内部情報を得るのに必要な条件を
保持しておく条件レジスタと、この条件レジスタの保持
している内容と前記内部情報とを比較し比較結果を出力
する比較回路と、この比較回路の比較結果に応じて前記
内部の情報を保持し、マイクロプロセッサの動作に依存
することなく外部に情報を出力するサンプルレジスタと
を備えることを特徴とするデバッグ機能内蔵マイクロプ
ロセッサ。
A micro with a built-in debug function that has built-in functions such as general-purpose registers, an instruction execution unit, and an external memory control unit, as well as a function to externally output information necessary for debugging such as program verification and hardware operation confirmation. In the processor, there is a condition register that holds the conditions necessary to execute instructions of the microprocessor and obtain internal information such as data value transitions, and a condition register that stores the contents held in this condition register and the internal information. The present invention includes a comparison circuit that compares and outputs a comparison result, and a sample register that holds the internal information according to the comparison result of the comparison circuit and outputs the information to the outside without depending on the operation of the microprocessor. A microprocessor with a built-in debug function.
JP2300063A 1990-11-06 1990-11-06 Microprocessor containing debugging function Pending JPH04171542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2300063A JPH04171542A (en) 1990-11-06 1990-11-06 Microprocessor containing debugging function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2300063A JPH04171542A (en) 1990-11-06 1990-11-06 Microprocessor containing debugging function

Publications (1)

Publication Number Publication Date
JPH04171542A true JPH04171542A (en) 1992-06-18

Family

ID=17880253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2300063A Pending JPH04171542A (en) 1990-11-06 1990-11-06 Microprocessor containing debugging function

Country Status (1)

Country Link
JP (1) JPH04171542A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001013135A1 (en) * 1998-01-30 2001-02-22 Matsushita Electric Industrial Co., Ltd. Internal signal monitor of integrated circuit
US6523136B1 (en) 1999-05-20 2003-02-18 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated circuit device with processor
US6687863B1 (en) 1999-07-29 2004-02-03 Matsushita Electric Industrial Co., Ltd. Integrated circuit internal signal monitoring apparatus
JP2010061473A (en) * 2008-09-04 2010-03-18 Fujitsu Ltd Apparatus, method and program for cache logic verification

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001013135A1 (en) * 1998-01-30 2001-02-22 Matsushita Electric Industrial Co., Ltd. Internal signal monitor of integrated circuit
US6523136B1 (en) 1999-05-20 2003-02-18 Mitsubishi Denki Kabushiki Kaisha Semiconductor integrated circuit device with processor
US6687863B1 (en) 1999-07-29 2004-02-03 Matsushita Electric Industrial Co., Ltd. Integrated circuit internal signal monitoring apparatus
JP2010061473A (en) * 2008-09-04 2010-03-18 Fujitsu Ltd Apparatus, method and program for cache logic verification

Similar Documents

Publication Publication Date Title
KR900004006B1 (en) Micro processor system
JP2957177B2 (en) Micro computer
JPH02113381A (en) Microprocessor
JP2006507586A (en) Apparatus and method for analyzing embedded system
JPH04171542A (en) Microprocessor containing debugging function
JP3061106B2 (en) Bus bridge and computer system having the same
US4888685A (en) Data conflict prevention for processor with input/output device
EP0436211B1 (en) Apparatus enabling observation of internal memory-mapped registers
JPH0222748A (en) Non-volatile memory control circuit
JPH0423051A (en) Microprocessor
JP2004013289A (en) On-chip debugging method of microcontroller
JP2536238B2 (en) Information processing device
JPH0542525Y2 (en)
JP2786033B2 (en) Time measuring device
JP2581144B2 (en) Bus control device
JPH04112251A (en) Microcomputer
JPH0412855B2 (en)
JPS6391756A (en) Partial write instruction processing system for storage device
JPS61237145A (en) Controlling system for store buffer
JPH10222391A (en) Emulator
JPS6010368A (en) Address conversion buffer control system
JPH11237442A (en) Bus control system of semiconductor-testing device
JPH07191877A (en) Computer debugging device
JPH0322041A (en) Real-time tracer
JPH044451A (en) Computer system