JPS6358548A - Microprocessor for debug - Google Patents

Microprocessor for debug

Info

Publication number
JPS6358548A
JPS6358548A JP61203011A JP20301186A JPS6358548A JP S6358548 A JPS6358548 A JP S6358548A JP 61203011 A JP61203011 A JP 61203011A JP 20301186 A JP20301186 A JP 20301186A JP S6358548 A JPS6358548 A JP S6358548A
Authority
JP
Japan
Prior art keywords
microprocessor
debug
instruction
program
debugging
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.)
Granted
Application number
JP61203011A
Other languages
Japanese (ja)
Other versions
JPH0724032B2 (en
Inventor
Tsuneo Koike
庸夫 小池
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 JP61203011A priority Critical patent/JPH0724032B2/en
Publication of JPS6358548A publication Critical patent/JPS6358548A/en
Publication of JPH0724032B2 publication Critical patent/JPH0724032B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simplify the constitution of a back-up device for development of microprocessor by providing an instruction executing part having a function that saves even the contents of a program counter which designates the instruction executed when a debug interruption is produced in a debug interruption mode. CONSTITUTION:An instruction executing part 4 of a debug microprocessor 1 has the microprocessor internal state information (PSW) 4-1 and reads out an instruction via a program (PC) next 4-2 to copy the value of the next 4-2 to a PCcurrent 4-3. Then the processor 1 sets the next 4-1 at the value of the counter to be executed next. The part 4 is informed from a control part 5 that a debug interruption 13 is active and functions to save those information on the PSW 4-1, the next 4-2 and the current 4-3 through a bus control part 2. Thus it is possible to simplify the constitution of a back-up device for development of microprocessor.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデバッグ対象システムのデバッグ用割なうマイ
クロプロセッサ開発支援装置に使用されるデバッグ用マ
イクロプロセッ?に関し、特に前記デバッグ用マイクロ
プロセッサがデバッグ対象プログラムの実行状態からメ
モリ、レジスタなどの内容の表示、変更を行なうデバッ
グプログラムの実行へ遷移する時う機能に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a debugging microprocessor used in a debugging microprocessor development support device for a system to be debugged. In particular, the present invention relates to a function when the debugging microprocessor transitions from the execution state of a debug target program to the execution of a debug program that displays and changes the contents of memory, registers, etc.

〔従来の技術〕[Conventional technology]

まず、本デバッグ用マイクロプロセッサが使用されるマ
イクロプロセッサ開発支援装置とデバッグ対称システム
の接続の概要を第4図を用いて説明する。デバッグ対称
システム39に実装されるマイクロプロセッサの代わり
にコネクタ38、グープル37を介してマイクロプロセ
ッサ開発支援装置27が接続される。マイクロプロセッ
サ開発支援装置27にはデバッグ用マイクロプロセッサ
lの他に、コントロール部など(本発明と直接関係がな
いので省略した)があシ、デバッグ対称システム39に
実装されるべきマイクロプロセッサの代わシにデバッグ
対象プログラムの実行と、そのデバッグを行なう機能を
有する。このためデバッグ用マイクロプロセッサ1は、
デバッグ対象システム39上のメモリにあるプログラム
(通常マイクロプロセッサ開発支援装置27内に前記メ
モリを仮想的に配置することも可能ではあるが、本発明
とは直接関係がないので省略する)の実行と、マイクロ
プロセッサ開発支援装置27内の別バンクにあるデバッ
グ機能を有したデバッグプログラムが書き込まれている
メモリの実行を行わなければならない。
First, an outline of the connection between the microprocessor development support device in which the present debugging microprocessor is used and the debugging target system will be explained with reference to FIG. A microprocessor development support device 27 is connected via a connector 38 and a group 37 in place of the microprocessor installed in the debug target system 39. In addition to the debugging microprocessor l, the microprocessor development support device 27 has a control unit (not directly related to the present invention, so it has been omitted), and a replacement system for the microprocessor to be implemented in the debug target system 39. It has the function of executing the program to be debugged and debugging it. For this reason, the debugging microprocessor 1
Execution of a program in the memory on the debug target system 39 (although it is possible to virtually arrange the memory in the microprocessor development support device 27, this is omitted as it is not directly related to the present invention). , the memory in which the debug program with the debug function is written, which is located in a separate bank in the microprocessor development support device 27, must be executed.

従来、この種のデバッグ用マイクロプロセッサとして本
来デバッグ対象システム39上に接続すべきマイクロプ
ロセッサ(以下本来のマイクロブセッサと称す)を使用
し、ある条件でその実行を中断しく以下ブレークと称す
)、マイクロプロセッサ開発支援装置27上にあるデバ
ッグプログラムへ制御を移す為に1本来のマイクロプロ
セッサが持っているマスク不可能側シ込み(以下NMI
と称す)′5r:使ってブレーク動作を実現していた。
Conventionally, as this type of debugging microprocessor, a microprocessor (hereinafter referred to as the original microprocessor) that should originally be connected to the system 39 to be debugged is used, and its execution is interrupted under certain conditions (hereinafter referred to as a break). In order to transfer control to the debug program on the microprocessor development support device 27, the non-maskable side input (hereinafter NMI) that the original microprocessor has
)'5r: was used to realize a break operation.

第5図は本来のマイクロプロセッサの内部ブロック図で
ある。バス制御部2はアドレスバス6とデータバス7と
制御バス8を制御し、命令を読み込み、命令バッファ3
へ格納する。命令実行部4はその内部にプログラムカウ
ンタ4−2’(以下PCを記述することもある)とマイ
クロプロセッサ内部状態情報4−1(以下プログラムス
テータスワード:pswと称す)を持ち、これにもとす
いて命令バッファ3から命令を受は取シ、順次実行して
ゆく。命令実行部はプログラムカウンタ4−2′の命令
を命令バッファ3から順次受は取シ、命令を受は取る度
にプログラムカウンタ4−2′の内容は次に実行される
プログラムの値に、更新される。すなわち、命令が実行
されている時点でのプログラムカウンタ4−2′の内容
は次に実行されるべき命令のマドレスを示している。命
令バッファ制御部11はバス制御部2と命令実行部4′
からの情報10−1.10−2により、命令バッファ3
内に取シ込まれている命令数をマイクロプロセッサ外部
へ信号線12を通して通知する。また割り込み制御部5
′は割シ込み端子(NM114)からの割シ込み要求を
命令実行部4′は、プログラムカウンタ4−2′の内容
とプログラムステータスワード4−1とをバス制御部2
る通じてメモリへ退避させ、次に所定の命令を実行する
FIG. 5 is an internal block diagram of the original microprocessor. The bus control unit 2 controls the address bus 6, data bus 7, and control bus 8, reads instructions, and
Store it in The instruction execution unit 4 internally has a program counter 4-2' (hereinafter also referred to as PC) and microprocessor internal state information 4-1 (hereinafter referred to as program status word: psw). It then receives instructions from the instruction buffer 3 and executes them sequentially. The instruction execution unit sequentially receives the instructions in the program counter 4-2' from the instruction buffer 3, and each time it receives an instruction, the contents of the program counter 4-2' are updated to the value of the next program to be executed. be done. That is, the contents of the program counter 4-2' at the time the instruction is being executed indicates the address of the next instruction to be executed. The instruction buffer control section 11 includes the bus control section 2 and the instruction execution section 4'.
According to the information 10-1.10-2 from the instruction buffer 3
The number of instructions taken into the microprocessor is notified to the outside of the microprocessor through a signal line 12. Also, the interrupt control unit 5
' is an interrupt request from the interrupt terminal (NM114), and the instruction execution unit 4' sends the contents of the program counter 4-2' and the program status word 4-1 to the bus control unit 2.
The command is then saved to memory through the process, and then a predetermined command is executed.

このような動作をする本来のマイクロプロセッサをデバ
ッグ用マイクロプロセッサとして使用した場合のマイク
ロプロセッサ開発支援装置は、第7図の構成となる。マ
イクロプロセッサ開発支援装置27′は、本来のマイク
ロプロセラ?1’、制御部19′、デバッグプログラム
用メモIJ 16、N)、4工退避メモリ17’、NM
I退避タイミング制御部18、デバッグ対象システムか
らのNMI26と制御部19′からのブレーク要求信号
25とを選択する選択回路46などから構成されている
。デバッグ対象プログ2ムの実行状態からデバッグプロ
グラムの実行状態へ遷移させるブレーク動作は、マイク
ロプロセッサ開発支援装置27′がメモリパンクをNM
I退避メモリ17′へ切シ替え、ブレーク要求信号25
を通じてNMI14をアクティブとし、デバッグ用マイ
クロプロセッサ1′(すなわち本来のマイクロプロセッ
サ)が退避する情報(プログラムカウンタ及びプログラ
ムステータスワード)をNMI退避メモリ17′へ格納
し、次に別バンクにあるデバッグプログラムメモリ16
を本来のマイクロブセッサ1′に与え、デバッグプログ
ラムを起動することKより実行される。
A microprocessor development support device in the case where an original microprocessor that operates in this manner is used as a debugging microprocessor has the configuration shown in FIG. Is the microprocessor development support device 27' the original microprocessor? 1', control unit 19', debug program memo IJ 16, N), 4-engine save memory 17', NM
It is comprised of an I save timing control section 18, a selection circuit 46 that selects the NMI 26 from the system to be debugged and the break request signal 25 from the control section 19'. The break operation that transitions from the execution state of the debug target program 2m to the execution state of the debug program is performed by the microprocessor development support device 27'
Switch to I save memory 17', break request signal 25
The debugging microprocessor 1' (that is, the original microprocessor) stores the saved information (program counter and program status word) in the NMI save memory 17', and then stores the information saved in the debugging program memory 17' in another bank. 16
is given to the original microprocessor 1' and the debug program is started.

NMI退避タイミング制御部18及び制御部19′は、
以上の動作の制御を行なっている。また命令バッファス
テータス制御部44はブレーク動作が発生した時点で実
行していた命令を命令バッファ制御信号12とNMI退
避メモリ17′へ退避されたプログラムカウンタの情報
から換算し、その情報を制御部19′へ知らせる機能を
持たなければならなかった。
The NMI evacuation timing control section 18 and the control section 19' are
The above operations are controlled. Further, the instruction buffer status control unit 44 converts the instruction being executed at the time when the break operation occurs from the instruction buffer control signal 12 and the program counter information saved in the NMI save memory 17', and uses the information to convert the instruction to the control unit 19. It was necessary to have a function to notify ``.

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

上述したように、デバッグ用マイクロプロセッサとして
、本来のマイクロプロセッサを使用した場合、命令バッ
ファを持つために、マイクロプロセッサが命令を読み取
る時刻と命令を実行する時刻が異なシ、これを調整する
機能、およびデバッグ対象システムからのNMIとブレ
ーク要求信号を選択するための選択回路がマイクロプロ
セッサ開発支援装置に必要となシ、マイクロプロセッサ
開発支援装置の構成を複雑化していた。
As mentioned above, when an original microprocessor is used as a debugging microprocessor, because it has an instruction buffer, the time at which the microprocessor reads an instruction and the time at which it executes the instruction are different, and there is a function to adjust this. The microprocessor development support apparatus also requires a selection circuit for selecting the NMI and break request signals from the system to be debugged, which complicates the configuration of the microprocessor development support apparatus.

C問題点を解決するための手段〕 本発明のデバッグ用マイクロプロセッサはマイクロプロ
セッサ開発支援装置に使用するデバッグ用マイクロプロ
セッサとして、本来のマイクロプロセッサの機能に加え
て本来のマイクロプロセッサが有する割シ込み機能より
優先順位の高いデバッグ月割シ込み機能を有し、前記デ
バッグ相開り込みにより生じるデバッグ用マイクロプロ
セッサの内部情報の退避動作において、前記デバッグ月
割シ込み処理が終了した時点で実行が再開されるべきプ
ログラムカウンタの情報の他に前記デパック月割シ込み
のかかった時に実行していた命令のプログラムカウンタ
の情報をも退避する機能を有している。
Means for Solving Problem C] The debugging microprocessor of the present invention is used as a debugging microprocessor for use in a microprocessor development support device, and in addition to the functions of the original microprocessor, the debugging microprocessor of the present invention has the interrupt function of the original microprocessor. It has a debug monthly discount function that has a higher priority than the debug monthly discount function, and in the operation of saving internal information of the debugging microprocessor caused by the opening of the debug phase, execution is executed when the debug monthly discount request processing is completed. In addition to the information on the program counter to be restarted, it also has the function of saving the information on the program counter of the instruction being executed when the Depack monthly interrupt occurred.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示すデバッグ用マイクロプ
ロセッサのブロック図である。第5図の本来のマイクロ
プロセッサとの違いは割シ込み制御部5にデバッグ月割
シ込み13がつき、また命令実行部4に従来′のプログ
ラムカウンタ4−2(以下P Cnextと記述する)
に加えて2つめのプログラムカウンタ4−3(以下P 
Ccurrent  と記述する)がついた点である。
FIG. 1 is a block diagram of a debugging microprocessor showing one embodiment of the present invention. The difference from the original microprocessor shown in FIG. 5 is that the interrupt control section 5 has a debug interrupt 13, and the instruction execution section 4 has a conventional program counter 4-2 (hereinafter referred to as P Cnext).
In addition to the second program counter 4-3 (hereinafter P
This is the point marked with Ccurrent.

命令実行部はPCnext 4−2を使って命令を読み
出すとP Ccurrent4−3へP Cnext 
 4−2 (D値ヲコピーし、続いてPCnext4−
2を次に実行するプログラムカウンタの値ヘセットする
。すなわち、PCnext4−2は次に実行されるべき
プログラムカウンタについテノ情報を、P Ccurr
ent 4−3は現在実行されているプログラムカウン
タについての情報を持っていることになる。また命令実
行部4はデバッグ月割シ込み13がアクティブとなった
ことを割り込み制御部5から通知されると、バス制御部
2を通してPSW4−1、PCnext4−2(本来の
マイクロプロセッサにおけるPO2−2’と同じ)、P
 Ccurrent 4−3の3つの情報を退避する機
能を持っている。
When the instruction execution unit reads the instruction using PCnext 4-2, it transfers it to PCcurrent4-3.
4-2 (Copy the D value, then PCnext4-
2 to the value of the program counter to be executed next. That is, PCnext4-2 transmits teno information about the program counter to be executed next to PCcurr.
ent 4-3 will have information about the currently running program counter. In addition, when the instruction execution unit 4 is notified from the interrupt control unit 5 that the debug monthly interrupt 13 has become active, the instruction execution unit 4 sends PSW4-1, PCnext4-2 (PO2-2 in the original microprocessor) through the bus control unit 2. ), P
It has a function to save three pieces of information: Ccurrent 4-3.

本デバッグ用マイクロプロセッサを用いたマイクロプロ
セッサ開発支援装置のブロック図を第2図に示す。従来
のマイクロプロセッサ開発支援装置7のブロック図との
違いは命令バッファステータス制御部44と、デバッグ
対象システムからの割シ込みと制御部からの割り込み(
ブレーク要求信号)との選択回路46がなくなったこと
である。
FIG. 2 shows a block diagram of a microprocessor development support device using this debugging microprocessor. The difference from the block diagram of the conventional microprocessor development support device 7 is that the instruction buffer status control unit 44 and the interrupts from the system to be debugged and the interrupts from the control unit (
This is because the selection circuit 46 for selecting the break request signal) is eliminated.

制御部19からのブレーク要求信号25はデバッグ用マ
イクロプロセッサのデバッグ月割シ込み13へ加えられ
る。ブレークが発生すると制御部19ブレ一クタイミン
グ制御部18によって、メモリバンクがブレーク退避メ
モリ17(機能的にはNMI退避メモリ17′と同等)
へ切り替えられ、P 5W4−1、P Cnext  
4−2、P Ccurrent4−3の情報がブV−り
退避メモリ17へ書1込まれ、次にデバッグプログラム
メモリ16へバンクが切り替えられ、デバッグプログラ
ムが動作する。この時読に、ブレークがかかった時点で
実行されていれ命令のプログラムカウンタの情報(P 
Ccurrent 4−3ンは)”レーク退避メモリ1
7へ格納されておシ、命令バッファステータス制御部4
4がこの情報を換算する必要がない。またデバッグ月割
シ込み13がNMI 14と独立したため、デバッグ対
象システム39からのNMI26と制御部19からのブ
レーク要求信号25とを選択する必要はない。
A break request signal 25 from the control section 19 is applied to the debug monthly interrupt 13 of the debugging microprocessor. When a break occurs, the control unit 19 causes the break timing control unit 18 to change the memory bank to the break save memory 17 (functionally equivalent to the NMI save memory 17').
Switched to P 5W4-1, P Cnext
4-2, the information of P Ccurrent 4-3 is written to the buffer memory 17, and then the bank is switched to the debug program memory 16, and the debug program runs. At this time, read the program counter information (P
Ccurrent 4-3)” Rake evacuation memory 1
7, the instruction buffer status control unit 4
4 does not need to convert this information. Furthermore, since the debug monthly interrupt 13 is independent of the NMI 14, there is no need to select the NMI 26 from the debug target system 39 and the break request signal 25 from the control unit 19.

次に、本発明の他の実施例について説明する。Next, other embodiments of the present invention will be described.

第6図はマイクロプロセッサの一構成図である。FIG. 6 is a configuration diagram of a microprocessor.

最近のマイクロプロセッサでは、機能が複雑な為、マイ
クロコード40と呼ばれる制御プログラムをマイクロプ
ロセッサ1,1′内部に持ち、簡単な機能の回路の集合
体でおるハードウェア42を、このマイクロコード40
で制御してマイクロプロセッサを動作させているもので
ある。
Modern microprocessors have complex functions, so they have a control program called a microcode 40 inside the microprocessor 1, 1', and the hardware 42, which is a collection of circuits with simple functions, is controlled by the microcode 40.
It is controlled by the microprocessor to operate it.

このようなマイクロコードによる制御を行なうマイクロ
プロセッサにおいて、本来のマイクロプロセッサが持つ
NMIの機能は第8図に示すようなマイクロコードで構
成されている。割シ込みを検出するとスタックポインタ
(SPと記述する)と呼ばれるポインタを用いてプログ
ラムステータスワード、プログラムカウンタの内容をポ
インタが指す場所へ退避する。NMIを検出する(47
)と、まずSPがインクリメントされ(48)、SPの
さすメモリへプログラムステータスワードの内容を書き
込む。(49)次に1再度SPをインクリメントしく5
0)、そこへプログラムカウンタの内容を書き込む。(
51)その後、プログラムカウンタを所定のエントリー
の値にセットして(52)、割シ込みエントリーへ制御
を移す(53)。このとき、この本来のマイクロプロセ
ッサを用いたマイクロプロセッサ開発支援装置の動作は
実施例1におけるマイクロプロセッサ開発支援装置27
′と同じである。
In such a microprocessor that performs control using microcode, the NMI function that the microprocessor originally has is constituted by microcode as shown in FIG. When an interrupt is detected, a pointer called a stack pointer (denoted as SP) is used to save the contents of the program status word and program counter to the location pointed to by the pointer. Detect NMI (47
), first SP is incremented (48), and the contents of the program status word are written to the memory pointed to by SP. (49) Next, increment SP by 1 again to 5
0), the contents of the program counter are written there. (
51) Thereafter, the program counter is set to the value of a predetermined entry (52), and control is transferred to the interrupt entry (53). At this time, the operation of the microprocessor development support device using this original microprocessor is similar to that of the microprocessor development support device 27 in the first embodiment.
’ is the same as

第3図は本実施例におけるデバッグ月割シ込みの機能を
実行させるマイクロコードをしめしたいものでhる。デ
バッグ月割シ込みを検出する(28)と、まずSPがイ
ンクリメントされ(29)、SPのさずメモリへプログ
ラムステータスワードの内容を書き込む(30)。次に
、再度SPをインクリメントしく31X そこへP C
nextの値を書き込み(32χ さらに、SPをイン
クリメントしく33XそこへPCcurrentの値を
書き込む(34)。最後にプログラムカウンタに所定の
エントリーの値をセットして(35X 制御を割シ込み
エントリーへ移す(36)。
FIG. 3 shows the microcode for executing the monthly debugging subscription function in this embodiment. When the monthly debugging interrupt is detected (28), SP is first incremented (29), and the contents of the program status word are written into the SP memory (30). Next, increment SP again to 31X then P C
Write the value of next (32χ Furthermore, increment SP and write the value of PCcurrent there (34).Finally, set the value of the specified entry in the program counter (35X) Transfer control to the interrupt entry (34). 36).

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

以上説明したように本発明は、デバッグ月割シ込みを持
ち、デバッグ月割シ込み時にpsw。
As explained above, the present invention has a debug monthly interrupt, and when the debug monthly interrupt occurs, the psw.

P Cnext、 PCcurrentを退避する機能
を持つデバッグ用マイクロプロセッサをマイクロプロセ
ッサ開発支援装置に搭載することにより、命令バッファ
ステータス制御部、デバッグ対象システムとブレーク要
求信号の選択回路を持つ必要がなくなり、マイクロプロ
セッサ開発支援装置を簡単に構成することができる。
By equipping a microprocessor development support device with a debugging microprocessor that has the function of saving P Cnext and PCcurrent, it is no longer necessary to have an instruction buffer status control unit, a selection circuit for the debug target system and a break request signal, and the microprocessor The development support device can be easily configured.

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

第1図は本発明によるデバッグ用マイクロプロセッサの
一実施例の機能ブロック図、第2図は本発明によるデバ
ッグ用マイクロプロセッサを用いたマイクロプロセッサ
開発支援装置の機能ブロック図、第3図は本発明で用い
るマイクロコードによる処理フロー図、第4図はマイク
ロプロセッサ開発支援装置とデバッグ対象システムの接
続図、第5図は本来のマイクロプロセッサの機能ブロッ
ク図、第6図はマイクロコードによって実現されるマイ
クロプロセッサのブロック図、第7図は本来のマイクロ
プロセッサを用いたマイクロプロセッサ開発支援装置の
一例を示す構成図、第8図はマイクロコードによって実
現される本来のマイクロプロセッサのNMIの動作を示
すシーケンスフロー図である。 1・・・・・・デバッグ用マイクロプロセッサ、1′・
・・・・・本来のマイクロプロセッサ、2・・・・・・
バス制御部、3・・・・・・命令バッファ、4・・・・
・・命令実行部、4−1・・・・・・プログラムステー
タスワード、4−2・・・・・・次に実行されるプログ
ラムカウンタ(PCnext)、4−2′・・・・・・
次に実行されるプログラムカウンタ(PC)、4−3・
・・−・・現在実行されているプログラムカウンタ(P
 Ccurrent)、5・・・・・・割シ込み制御部
、6・・・・・・アンレスバス、7・・・・・・データ
バス、8・・・・−ffd[lハス、9・・・・・・ア
ドレスバス、9−1゜9−2・・・・・・命令パス、1
0−1.10−2・・・・・・命令バッファ制御部入力
信号、11・・・・・・命令バッファ制御部、12・・
・・・・命令バッファ制御部出力信号、13・・・・・
・デバッグ月割シ込み、14・・・・・・マスク不可能
側シ込み(NMI)、15・・・・−・割シ込み制御パ
ス、16・・・・・・デバッグプログラム用メモリ(デ
バッグプログラムがのっている)、17・・・・・・ブ
レーク退避メモリ、17′・・・・・・Nll/II退
避メモリ(17と機能的に同じ)、18・−・・・・ブ
レーク退避タイミング制御部、19.19’・・・・・
・制御部、20・・・・・・デバッグ対象プログラムメ
モリ、21−1゜21−2・・・・・・バッファ、メモ
リ選択信号、22−1゜22−2.22−3・・・・・
・アクセス信号、23−1゜23−2・・・・・・バッ
ファ、24−1 、24−2・・・・・・インバータ、
25・・・・・・ブレーク要求信号、26・・・・・・
デバッグ対象システムからのNMI、27゜27′・・
・・・・マイクロプロセッサ開発支援装置、28−36
・・・・・・デバッグ相開シ込み処理手順(マイクロコ
ードによる処理)、37・・・・・・ケーブル、38・
・・・・・コネクタ、39・・・・・・デバッグ対象シ
ステム、40・・・・・・マイクロコード、41・・・
・・・マイクoコード制御パス、42・・・・・・ハー
ドウェア、43・・・・・・マイクロプロセッサ信号、
44・・・・・・命令バッファステータス制御部、45
・・・・・・命令バッファステータス制御部出力信号、
46・・・・・・選択回路、47−53・・・・・・N
MI処理手順(マイクロコードによる処理)。 ′yFJ2図 ¥J5図 箔乙図 カフ図 呵6図
FIG. 1 is a functional block diagram of an embodiment of a debugging microprocessor according to the present invention, FIG. 2 is a functional block diagram of a microprocessor development support device using the debugging microprocessor according to the present invention, and FIG. 3 is a functional block diagram of an embodiment of the debugging microprocessor according to the present invention. Fig. 4 is a connection diagram of the microprocessor development support device and the system to be debugged, Fig. 5 is a functional block diagram of the original microprocessor, and Fig. 6 is the microprocessor realized by microcode. A block diagram of the processor, FIG. 7 is a configuration diagram showing an example of a microprocessor development support device using an original microprocessor, and FIG. 8 is a sequence flow showing the operation of NMI of an original microprocessor realized by microcode. It is a diagram. 1... Microprocessor for debugging, 1'.
...Original microprocessor, 2...
Bus control unit, 3...Instruction buffer, 4...
...Instruction execution unit, 4-1...Program status word, 4-2...Next program counter (PCnext), 4-2'...
Program counter (PC) to be executed next, 4-3.
・・・-・Currently running program counter (P
Ccurrent), 5...Interrupt control unit, 6...Unres bus, 7...Data bus, 8...-ffd[l has, 9... ...Address bus, 9-1゜9-2...Instruction path, 1
0-1.10-2...Instruction buffer control unit input signal, 11...Instruction buffer control unit, 12...
...Instruction buffer control unit output signal, 13...
・Debug monthly interrupt, 14... Non-maskable side interrupt (NMI), 15...-- Interrupt control path, 16... Memory for debug program (debug ), 17...Break save memory, 17'...Nll/II save memory (functionally the same as 17), 18...Break save memory Timing control section, 19.19'...
- Control unit, 20...Debug target program memory, 21-1゜21-2...Buffer, memory selection signal, 22-1゜22-2.22-3...・
・Access signal, 23-1゜23-2...Buffer, 24-1, 24-2...Inverter,
25...Break request signal, 26...
NMI from the debug target system, 27°27'...
...Microprocessor development support device, 28-36
...Debug phase opening processing procedure (processing by microcode), 37... Cable, 38.
... Connector, 39 ... System to be debugged, 40 ... Microcode, 41 ...
... Microphone o-code control path, 42 ... Hardware, 43 ... Microprocessor signal,
44...Instruction buffer status control unit, 45
...Instruction buffer status control unit output signal,
46...Selection circuit, 47-53...N
MI processing procedure (processing by microcode). 'yFJ2 figure ¥J5 figure Foil Otsu figure Cuff figure 26 figure

Claims (1)

【特許請求の範囲】[Claims] 実行されるべき命令を指定するプログラムカウンタの内
容と内部状態を表わす情報とをメモリへ退避する機能と
、割り込み機能とを有るマイクロプロセッサにおいて、
前記割り込み機能より優先順位の高いデバッグ用割り込
み機能を有する割込み制御部と、前記デバッグ用割り込
み時に、前記プログラムカウンタの内容と前記内部状態
を表わす情報との退避動作に加えて、前記デバッグ用割
り込みが発生した時点で実行されていた命令を指定する
プログラムカウンタの内容をも退避させる機能を有する
命令実行部とを有することを特徴とするデバッグ用マイ
クロプロセッサ。
In a microprocessor that has a function to save the contents of a program counter that specifies instructions to be executed and information representing an internal state to memory, and an interrupt function,
an interrupt control unit having a debugging interrupt function with a higher priority than the interrupt function; and an interrupt control unit having a debugging interrupt function that has a higher priority than the interrupt function; 1. A debugging microprocessor comprising: an instruction execution unit having a function of also saving the contents of a program counter specifying an instruction being executed at the time of occurrence.
JP61203011A 1986-08-28 1986-08-28 Microprocessor for debugging Expired - Lifetime JPH0724032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61203011A JPH0724032B2 (en) 1986-08-28 1986-08-28 Microprocessor for debugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61203011A JPH0724032B2 (en) 1986-08-28 1986-08-28 Microprocessor for debugging

Publications (2)

Publication Number Publication Date
JPS6358548A true JPS6358548A (en) 1988-03-14
JPH0724032B2 JPH0724032B2 (en) 1995-03-15

Family

ID=16466858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61203011A Expired - Lifetime JPH0724032B2 (en) 1986-08-28 1986-08-28 Microprocessor for debugging

Country Status (1)

Country Link
JP (1) JPH0724032B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221943A (en) * 1985-03-28 1986-10-02 Canon Inc Arithmetic processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221943A (en) * 1985-03-28 1986-10-02 Canon Inc Arithmetic processor

Also Published As

Publication number Publication date
JPH0724032B2 (en) 1995-03-15

Similar Documents

Publication Publication Date Title
JPH06103472B2 (en) Microprocessor for debugging
EP0313097B1 (en) Microcomputer system including master processor and slave processor
EP0638864B1 (en) Development support system for microcomputer with internal cache
JPS6358548A (en) Microprocessor for debug
JPH07152598A (en) Incircuit emulator
JPS61260338A (en) Memory dumping system
JPH11119992A (en) Trace controller for firmware
JP2954006B2 (en) Emulation device and emulation method
JPH06266630A (en) Input/output controller with trace function
JPS63155330A (en) Microprogram controller
JP3102381B2 (en) Task debugging device, task debugging method, and recording medium therefor
JPH02112054A (en) Data processor
JPH0333939A (en) Microprocessor
JPH03134742A (en) Debug device
JPS58166454A (en) Data processor
JPS6175436A (en) Microprogram controller
JPH02183342A (en) Interruption controller
JPH09160800A (en) Emulator
JPH0419580B2 (en)
JPS63310040A (en) Data sampling system
JPH01233532A (en) Trace control system in multi-processor system
JPH02212948A (en) Fault information collector for central processing unit
JPH0272443A (en) Data processor
JP2000089969A (en) Data processor
JPH03105529A (en) Psw type error control circuit