JPS6249454A - Debug supporting circuit for microprogram - Google Patents

Debug supporting circuit for microprogram

Info

Publication number
JPS6249454A
JPS6249454A JP60187365A JP18736585A JPS6249454A JP S6249454 A JPS6249454 A JP S6249454A JP 60187365 A JP60187365 A JP 60187365A JP 18736585 A JP18736585 A JP 18736585A JP S6249454 A JPS6249454 A JP S6249454A
Authority
JP
Japan
Prior art keywords
microinstruction
trace
register
microprogram
executed
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
JP60187365A
Other languages
Japanese (ja)
Inventor
Tsutomu Sakamoto
務 坂本
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP60187365A priority Critical patent/JPS6249454A/en
Publication of JPS6249454A publication Critical patent/JPS6249454A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To confirm routine of an executed microprogram easily and surely by storing addresses of microinstruction read out from a control storage section and executed successively, and then analyzing them. CONSTITUTION:Microinstructions stored in a control storage section 2 are read out according to microinstruction addresses held in a microinstruction address register 1, and these are held in a microinstruction register 4, and the content of the microinstruction address register 1 is held in a copy register 3. When trace start command TST is executed by the microinstruction, a flip- flop 9 is set by output of a decoder 8, and a write permission signal ('1') is outputted to a trace memory 6. Consequently, the content of a trace register 3 is written in the trace memory 6. At the same time, a counter 5 is counted up by 1, and an address that determines write area of the trace memory 6 is advanced by 1. Thus, history of execution of microinstructions is stored in due order in the trace memory 6.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は、マイクロプログラムを使用するデータ処理装
置等におけるマイクロプログラムデバッグ支援回路に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a microprogram debug support circuit in a data processing device or the like that uses microprograms.

L発明の技術的背景とその問題点J 従来この種のデータ処理装置におけるマイクロプログラ
ムのデバッグを完全に行なうことは、マイクロプログラ
ムが複雑化、人容看化するにつれて困難になってきてい
る。例えば、ある機能を処理するために、マイクロプロ
グラムは入力の条件に従っていくつかに分岐して上記処
理を行なう。
TECHNICAL BACKGROUND OF THE INVENTION AND THE PROBLEMS J Conventionally, it has become difficult to completely debug microprograms in this type of data processing device as microprograms become more complex and more demanding. For example, in order to process a certain function, a microprogram branches into several branches according to input conditions and performs the above processing.

ところで、従来この種のデバッグはマイクロ命令をワン
ステップずつ実行し、何らかの手段でその様子を目で確
かめながら行なっているため、上記の如く複雑なマイク
ロプログラムのデバッグ中に全ての分岐したルーチンを
実行したがどうかを確認することは、効率が悪くまた見
落とし等があるため困難であった。
By the way, conventionally, this type of debugging is performed by executing microinstructions one step at a time and visually checking the progress by some means, so it is difficult to execute all branched routines while debugging a complex microprogram as described above. It has been difficult to confirm whether or not this has been done because it is inefficient and there are often oversights.

[発明の目的] 本発明の目的は、上記の欠点に鑑み、実行されたマイク
ロプログラムのルーチンを容易に確認することができる
マイクロプログラムのデバッグ支援回路を提供すること
にある。
[Object of the Invention] In view of the above-mentioned drawbacks, an object of the present invention is to provide a microprogram debugging support circuit that allows easy confirmation of executed microprogram routines.

[発明の概要] 本発明は、制御記憶部から読み出されて実行されたマイ
クロ命令のアドレスを順次記憶するようにし、後にこれ
を解析することにより、上記目的を達成するものである
[Summary of the Invention] The present invention achieves the above object by sequentially storing addresses of microinstructions read from a control storage unit and executed, and later analyzing the addresses.

[発明の実施例] 以下本発明の一実施例を図面を参照して説明する。第1
図は本発明のマイクロプログラムデバッグ支援回路の一
実施例を示したブロック図である。
[Embodiment of the Invention] An embodiment of the present invention will be described below with reference to the drawings. 1st
The figure is a block diagram showing an embodiment of the microprogram debugging support circuit of the present invention.

符号1はマイクロ命令アドレスレジスタで、読み出しマ
イクロ命令のアドレスを保持するものであり、符号2は
マイクロプログラム(マイクロ命令)を格納している制
御記憶部である。符号3はマイクロ命令アドレスレジス
タ1の内容をコピーするコピーレジスタで、符@4は制
御記憶部2から読み出されたマイクロ命令を一旦保持す
るマイクロ命令レジスタである。符号5は1つずつカウ
ントアツプするカウンタ、符号6はコピーレジスタ3の
内容を順次記憶するトレースメモリである。符号7はマ
イクロ命令レジスタ4に保持されるコマンド下(後述)
をデコードするデコーダ、符号8は同レジスタ4に保持
されるコマンドTST /TSP(後述)をデコードす
るデコーダ、符号9はデコーダ8から送られてくるTS
Tコマンドでセットし、TSPコマンドでリセットする
フリップフロップ、符号10はデコーダ7からの出力と
フリップフロップ9の出力のアンド条件をとって、その
結果を書き込み許可信号としてトレースメモリ6に、カ
ウントアツプ許可信号としてカウンタ5に出力する論理
ゲートである。
Reference numeral 1 is a microinstruction address register that holds the address of a read microinstruction, and reference numeral 2 is a control storage section that stores a microprogram (microinstruction). Reference numeral 3 is a copy register that copies the contents of the microinstruction address register 1, and reference numeral @4 is a microinstruction register that temporarily holds the microinstruction read out from the control storage section 2. Reference numeral 5 is a counter that counts up one by one, and reference numeral 6 is a trace memory that sequentially stores the contents of the copy register 3. Code 7 is below the command held in microinstruction register 4 (described later)
8 is a decoder that decodes the command TST/TSP (described later) held in the same register 4, and 9 is a TS sent from decoder 8
The flip-flop 10, which is set by the T command and reset by the TSP command, performs an AND condition between the output from the decoder 7 and the output from the flip-flop 9, and sends the result to the trace memory 6 as a write permission signal to enable counting up. This is a logic gate that outputs a signal to the counter 5.

第2図は第1図のマイクロ命令レジスタ4に保持される
本発明に用意されたnビット幅のマイクロ命令のフォー
マットを示している。図中Tはトレース許可、TSTは
トレース開始、TSPはトレース停止のコマンドを示し
ている。
FIG. 2 shows the format of the n-bit wide microinstruction prepared in the present invention and held in the microinstruction register 4 of FIG. 1. In the figure, T indicates a trace permission command, TST indicates a trace start command, and TSP indicates a trace stop command.

次に本実施例の動作について説明する。マイクロ命令、
アドレスレジスタ1に保持されたマイクロ命令アドレス
に従って、制御記憶部2に格納されているマイクロ命令
が読み出され、これがマイクロ命令レジスタ4に保持さ
れる。上記動作に同期して、マイクロ命令アドレスレジ
スタ1の内容がコピーレジスタ3へ保持される。次に、
マイクロ命令レジスタ4に保持されたマイクロ命令でト
レース開始コマンドTSTが実行されると、デコーダ8
の出力によりフリップフロップ9がセットされる。その
後、制御記憶部2から読み出されて実行されるマイクロ
命令により、トレース許可コマンドTが指定された場合
、デコーダ7の出力が、真(”1”)となると共に、上
記の如くセットされたフリップフロップ9の出力が真(
“1′′)となるため、これらを入力するアンド回路1
0のアンド条件が成立して、トレースメモリ6に書き込
み許可信号(”1”)が出力される。このため、コピー
レジスタ3の内容がトレースメモリ6に書き込まれる。
Next, the operation of this embodiment will be explained. micro instructions,
According to the microinstruction address held in the address register 1, the microinstruction stored in the control storage section 2 is read out and held in the microinstruction register 4. In synchronization with the above operation, the contents of the microinstruction address register 1 are held in the copy register 3. next,
When the trace start command TST is executed using the microinstruction held in the microinstruction register 4, the decoder 8
The flip-flop 9 is set by the output. Thereafter, when the trace enable command T is specified by a microinstruction read from the control storage unit 2 and executed, the output of the decoder 7 becomes true (“1”) and is set as described above. The output of flip-flop 9 is true (
“1''), so the AND circuit 1 that inputs these
The AND condition of 0 is established, and a write permission signal (“1”) is output to the trace memory 6. Therefore, the contents of the copy register 3 are written to the trace memory 6.

これと同時に、アンド回路10からカウンタ5にカウン
トアツプ許可信号(1″)が出力され、このカウンタ5
が1だけカウントアツプされ、トレースメモリ6の書き
込み領域を決めるアドレスを1つ進める。なあ、カウン
タ5にはシステムの初期化時あるいは、説明は省くが他
のコマンドで初期値が設定できるようになっている。
At the same time, a count up permission signal (1'') is output from the AND circuit 10 to the counter 5, and this counter 5
is counted up by 1, and the address that determines the write area of the trace memory 6 is advanced by one. Incidentally, an initial value can be set for the counter 5 at the time of system initialization or by other commands, which will not be explained here.

次に、他のマイクロ命令でトレース停止コマンドTSP
を実行すると、デコーダ8の出力によりフリップフロッ
プ9がリセットされ、このフリップフロップ9の出力を
偽(″“O゛)とするため、アンド回路10のアンド条
件はとれなくなり、書き込み許可信号及びカウントアツ
プ許可信号が出力されなくなって、カウンタ5及びトレ
ースメモリ6の動作が停止される。上記のような動作は
繰り返され、予めマイクロプログラムに挿入したトレー
ス許可コマンドが書かれているマイクロ命令の実行履歴
(実行したマイクロ命令のアドレス〉がトレースメモリ
6に順番に記憶される。また、トレース開始及び停止の
コマンドTST 、 TSPをトレースしたいマイクロ
プログラムルーチンの前後で実行することにより、トレ
ースメモリ6に所望のルーチンのみの実行履歴を記憶さ
せることができる。
Next, use the trace stop command TSP with another microinstruction.
When this is executed, the flip-flop 9 is reset by the output of the decoder 8, and the output of this flip-flop 9 is made false (""O"). Therefore, the AND condition of the AND circuit 10 cannot be satisfied, and the write permission signal and count-up The permission signal is no longer output, and the operations of the counter 5 and trace memory 6 are stopped. The above operations are repeated, and the execution history (address of the executed microinstruction) of the microinstruction in which the trace enable command inserted into the microprogram in advance is written is sequentially stored in the trace memory 6. By executing the start and stop commands TST and TSP before and after the microprogram routine to be traced, the execution history of only the desired routine can be stored in the trace memory 6.

本実施例によれば、トレースメモリ6の記憶内容を主記
憶装置(図示せず)にログアウトし、これを即ち、実行
したマイクロ命令及びマイクロプログラムのルーチンの
アドレスを解析することにより、マイクロプログラムの
実行過程を容易且つ確実に把握することができる。
According to this embodiment, the contents of the trace memory 6 are logged out to the main memory (not shown), and the contents of the microprogram are analyzed by analyzing the executed microinstructions and the addresses of the routines of the microprogram. The execution process can be easily and reliably understood.

「発明の効果J 以上記述した如く本発明のマイクロプログラムデバッグ
支援回路によれば、制御記憶部から読み出されて実行さ
れたマイクロ命令のアドレスを順次配°臆するようにし
、後にこれを解析することにより、実行されたマイクロ
プログラムのルーチンを容易且つ確実に確認し得る効果
がある。
Effects of the Invention J As described above, according to the microprogram debugging support circuit of the present invention, the addresses of microinstructions read out from the control storage unit and executed are sequentially allocated, and later analyzed. This has the effect that the routine of the executed microprogram can be easily and reliably confirmed.

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

第1図は本発明のマイクロプログラムデバッグ支援回路
の一実施例を示したブロック図、第2図は第1図のマイ
クロ命令レジスタに格納されるマイクロ命令のフォーマ
ット例を示した図である。 1・・・マイクロ命令アドレスレジスタ、2・・・制御
記憶部、3・・・コピーレジスタ、4・・・マイクロ命
令レジスタ、5・・・カウンタ、6・・・トレースメモ
リ、7.8・・・デコーダ、9・・・フリップフロップ
代理人 弁理士  本 1) 崇 第1図 第2図
FIG. 1 is a block diagram showing an embodiment of a microprogram debugging support circuit of the present invention, and FIG. 2 is a diagram showing an example of the format of a microinstruction stored in the microinstruction register of FIG. 1. DESCRIPTION OF SYMBOLS 1... Micro instruction address register, 2... Control storage unit, 3... Copy register, 4... Micro instruction register, 5... Counter, 6... Trace memory, 7.8...・Decoder, 9...Flip-flop agent Patent attorney Book 1) Takashi Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] マイクロプログラムのデータ処理装置にあって、予めト
レース許可コマンドとトレース開始コマンド及びトレー
ス停止コマンドを付加したマイクロ命令を格納する制御
記憶部と、実行マイクロ命令のアドレスを順次記憶する
記憶手段と、トレース許可コマンドの実行後、トレース
開始コマンドで該マイクロ命令のアドレスを前記記憶手
段に書き込み、トレース停止コマンドで書き込み動作を
停止する書き込み制御手段とを具備して成ることを特徴
とするマイクロプログラムのデバッグ支援回路。
A microprogram data processing device includes: a control storage unit that stores microinstructions to which a trace permission command, a trace start command, and a trace stop command are added in advance; a storage unit that sequentially stores addresses of executed microinstructions; and a trace permission unit. A microprogram debugging support circuit comprising write control means for writing the address of the microinstruction into the storage means using a trace start command and stopping the write operation using a trace stop command after execution of the command. .
JP60187365A 1985-08-28 1985-08-28 Debug supporting circuit for microprogram Pending JPS6249454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60187365A JPS6249454A (en) 1985-08-28 1985-08-28 Debug supporting circuit for microprogram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60187365A JPS6249454A (en) 1985-08-28 1985-08-28 Debug supporting circuit for microprogram

Publications (1)

Publication Number Publication Date
JPS6249454A true JPS6249454A (en) 1987-03-04

Family

ID=16204717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60187365A Pending JPS6249454A (en) 1985-08-28 1985-08-28 Debug supporting circuit for microprogram

Country Status (1)

Country Link
JP (1) JPS6249454A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895700A (en) * 1996-05-17 1999-04-20 Ngk Insulators, Ltd. Honeycomb structural body

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895700A (en) * 1996-05-17 1999-04-20 Ngk Insulators, Ltd. Honeycomb structural body

Similar Documents

Publication Publication Date Title
US3659272A (en) Digital computer with a program-trace facility
JPS63279328A (en) Control system for guest execution of virtual computer system
KR20010085997A (en) Thread-oriented debugging
US3618042A (en) Error detection and instruction reexecution device in a data-processing apparatus
JPS6249454A (en) Debug supporting circuit for microprogram
JPS60124746A (en) Data processing unit
JPH02118733A (en) System for controlling execution of task
JPS5842891B2 (en) Meirei Seigiyohoushiki
JPH01147605A (en) Microprogram sequence controller
JPS63228237A (en) Program debugging system
JPS626341A (en) Information processor
JPS60193046A (en) Detecting system for instruction exception
JPS63124144A (en) Information processor
JPS61210439A (en) Tracing control system for task
JPH0831054B2 (en) History information storage method
JPS61290546A (en) Tracing system for microprogram controller
JPS6170644A (en) Program debugging system
JPS59202550A (en) Debugging device
JPS63124145A (en) Information processor
JPS61143848A (en) Microprogram controller
JPS62150442A (en) Development supporting device
JPH064345A (en) History information storage system
JPH01142948A (en) Symbolic debugger for microcomputer
JPH0322146A (en) Microprogram control device
KR890016477A (en) Operation program and data loading method of electronic exchange