JPH0449433A - Debugging mechanism for firmware - Google Patents

Debugging mechanism for firmware

Info

Publication number
JPH0449433A
JPH0449433A JP2160141A JP16014190A JPH0449433A JP H0449433 A JPH0449433 A JP H0449433A JP 2160141 A JP2160141 A JP 2160141A JP 16014190 A JP16014190 A JP 16014190A JP H0449433 A JPH0449433 A JP H0449433A
Authority
JP
Japan
Prior art keywords
register
address
execution
coincidence signal
processor
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
JP2160141A
Other languages
Japanese (ja)
Inventor
Atsushi Morioka
篤志 盛岡
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 JP2160141A priority Critical patent/JPH0449433A/en
Publication of JPH0449433A publication Critical patent/JPH0449433A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To make it possible to sample data necessary for each processing by providing the debugging mechanism with a means for forming a register coincidence signal and a means for aborting a clock of a processor and aborting the execution of a microprogram when both of an address coincidence signal and the register coincidence signal are '1'. CONSTITUTION:A register comparing means 8 compares the value of a debug ging register 5 with the value of a comparing register 6, and when both the values are equal, outputs a register coincidence signal 9 to a NAND gate 10. If both the address coincidence signal 4 and register coincidence signal 9 are '1' when an enable signal 11 is logical '1', the output of the NAND gate 10 becomes '0' and a processor clock signal 12 is gated by an AND gate 13 is not supplied to a processor 14, so that the execution of the microprogram is stopped. Consequently comparing values can be changed in each processing by an address stop in a routine to be used for various processing in common and data when the comparing values of each processing coincide with each other can be sampled.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファームウェアのデバッグ機構に関し、特にマ
イクロプログラムのアドレスストップ機構によるファー
ムウェアのデバッグ機構に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a firmware debugging mechanism, and more particularly to a firmware debugging mechanism using a microprogram address stop mechanism.

〔従来の技術〕[Conventional technology]

従来、この種のプロセッサに内蔵されたファームウェア
のデバッグ機構は、操作iによって設定されたマイクロ
命令の実行アドレスで、マイクロ命令の実行が停止する
構造になっていた。
Conventionally, a firmware debugging mechanism built into this type of processor has a structure in which execution of a microinstruction is stopped at the execution address of the microinstruction set by operation i.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上述した従来のファームウェアのデバッグ機構は、設定
したストップアドレスて必らずマイクロ命令の実行は止
ってしまう為、動作中幾度も実行されるアドレスで、あ
る条件の時たけ市めてデータを採取しデバッグする必要
がある場合、・2・要なデータの採取が難しいという欠
点があった。
In the conventional firmware debugging mechanism described above, the execution of microinstructions always stops at the set stop address, so data is periodically collected under certain conditions at an address that is executed many times during operation. When it is necessary to debug, there is a drawback that it is difficult to collect the necessary data.

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

本発明のファームウェアのデバッグ機構は、プロセッサ
によってマイクロ命令を実行する情報処理装置において
、ストップアドレスを設定するアドレススイッチと、前
記アドレススイッチで設定されたストップアドレスとマ
イクロ命令の実行アドレスとを比較し等しけれはアドレ
ス一致信号を生成する手段と、デバッグ用の情報を格納
するデバッグ用レジスタと、レジスタ比較データをファ
ームウェアによって設定する手段と、前記デバッグ用レ
ジスタの値とファームウェアによって設定されたレジス
タ比較データとを比較し等しければレジスタ一致信号を
生成する手段と、前記アドレス一致信号と前記レジスタ
一致信号とが共に1゛ならばプロセッサのクロックを停
止しマイクロプログラムの実行を停止する手段とを備え
て構成される。
The firmware debugging mechanism of the present invention, in an information processing device in which a processor executes microinstructions, uses an address switch for setting a stop address, and compares the stop address set by the address switch with the execution address of the microinstruction to ensure that they are equal. means for generating an address match signal, a debug register for storing debug information, means for setting register comparison data by firmware, and a value of the debug register and register comparison data set by the firmware. Comprising means for generating a register match signal if the address match signal and the register match signal are equal, and means for stopping the processor clock and stopping the execution of the microprogram if the address match signal and the register match signal are both 1. .

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

]はハードウェアのスイッチによってストップ。] is stopped by a hardware switch.

アドレスを設定するアドレススイッチであり、操作員に
よって任意に設定される。2は実行中のマイクロ命令の
アドレスを示すマイクロ命令実行アドレスを示すマイク
ロ命令実行アドレスレジスタであり、マイクロ命令実行
アドレスレジスタ2の値はアドレススイッチ1で設定さ
れたストップアドレスマイクロプログラム実行中は常に
、アドレス比較手段3によって1の値と比較され、等し
ければアドレス比較手段3は、アドレス一致信号4をN
ANDゲート10に出力する。5はデバッグ用レジスタ
であり、デバッグ用の種々の情報が格納されている。
This is an address switch that sets the address, and is set arbitrarily by the operator. 2 is a microinstruction execution address register indicating the microinstruction execution address indicating the address of the microinstruction being executed, and the value of the microinstruction execution address register 2 is always the stop address set by the address switch 1 during execution of the microprogram. The address comparison means 3 compares the address match signal 4 with the value of 1, and if they are equal, the address comparison means 3 outputs the address match signal 4 as N.
Output to AND gate 10. 5 is a debugging register in which various information for debugging is stored.

ファームウェアのマイクロ命令により、デバッグ用レジ
スタと比較されるべきデータが、コンベアデータ設定手
段7を通して、比較用のレジスタ6にセットされる。レ
ジスタ比較手段8は、デバッグ用レジスタ5の値と比較
用レジスタ6の値を比較し等しければ、レジスタ一致信
号をNANDゲート10に出力する。イネーブル信号1
1が論理“1″のとき、アドレス一致信号4とレジスタ
一致信号9とが共に]°′であればNANDゲート10
の出力は°゛0″°になり、プロセッサクロック12は
ANDゲート13でゲートされプロセッサ14に供給さ
れなくなるのでマイクロプログラムの実行は停止する。
Data to be compared with the debugging register is set in the comparison register 6 through the conveyor data setting means 7 by a firmware microinstruction. The register comparing means 8 compares the value of the debug register 5 and the value of the comparison register 6, and if they are equal, outputs a register match signal to the NAND gate 10. enable signal 1
1 is logic "1", if address match signal 4 and register match signal 9 are both ]°', NAND gate 10
The output of the microprogram becomes 0'0', and the processor clock 12 is gated by the AND gate 13 and is no longer supplied to the processor 14, stopping the execution of the microprogram.

以上のようにして、データの採集が可能となる。In the manner described above, data can be collected.

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

以上説明したように本発明は、アドレスストップの条件
にレジスタの値とアドレスの値との両方を用いることに
よって、動作中幾度も実行されるアドレスでデバッグ用
レジスタの値を判断し、期待値と等しい場合だけマイク
ロプログラムの実行を停止することができ、さらにレジ
スタの比較値をファームウェアにより自由に設定するこ
とができるようにすることにより、種々の処理で共通に
使用されるルーチンてのアドレスストップで各々の処理
毎に比較値を変更でき、処理毎の比較値が一致したとき
のデータが採取できるという効果がある。
As explained above, the present invention uses both the register value and the address value as the address stop condition to determine the value of the debugging register based on the address that is executed many times during operation, and compares it with the expected value. By making it possible to stop the execution of the microprogram only when they are equal, and by making it possible to freely set the comparison value of the register by firmware, it is possible to stop the execution of the microprogram only when the values are equal. This has the advantage that the comparison value can be changed for each process, and data can be collected when the comparison values for each process match.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。 1・・・アドレススイッチ、2・・・マイクロ命令実行
アドレスレジスタ、3・・・アドレス比較手段、4・・
・アドレス一致信号、5・・・デバッグ用レジスタ、6
・・・比較用レジスタ、7・・・比較値設定手段、8・
・・レジスタ比較手段、9・・・レジスタ一致信号、1
o・・・NANDゲート、]1・・・イネーブル信号、
12・・・プロセッサクロック信号、13・・・AND
ゲート、14・・・プロセッサ。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Address switch, 2... Microinstruction execution address register, 3... Address comparison means, 4...
・Address match signal, 5...Debug register, 6
. . . Comparison register, 7. Comparison value setting means, 8.
...Register comparison means, 9...Register match signal, 1
o...NAND gate, ]1... Enable signal,
12...Processor clock signal, 13...AND
Gate, 14...processor.

Claims (1)

【特許請求の範囲】[Claims] プロセッサによってマイクロ命令を実行する情報処理装
置において、ストップアドレスを設定するアドレススイ
ッチと、前記アドレススイッチで設定されたストップア
ドレスとマイクロ命令の実行アドレスとを比較し等しけ
ればアドレス一致信号を生成する手段と、デバッグ用の
情報を格納するデバッグ用レジスタと、レジスタ比較デ
ータをファームウェアによって設定する手段と、前記デ
バッグ用レジスタの値とファームウェアによって設定さ
れたレジスタ比較データとを比較し等しければレジスタ
一致信号を生成する手段と、前記アドレス一致信号と前
記レジスタ一致信号とが共に“1”ならばプロセッサの
クロックを停止しマイクロプログラムの実行を停止する
手段とを備えて成ることを特徴とするファームウェアの
デバッグ機構。
In an information processing device that executes a microinstruction by a processor, an address switch for setting a stop address, and means for comparing the stop address set by the address switch and an execution address of the microinstruction and generating an address match signal if they are equal. a debugging register for storing debugging information; a means for setting register comparison data by firmware; and a means for comparing the value of the debugging register with the register comparison data set by the firmware and generating a register match signal if they are equal. and means for stopping a processor clock and stopping execution of a microprogram if both the address match signal and the register match signal are "1".
JP2160141A 1990-06-19 1990-06-19 Debugging mechanism for firmware Pending JPH0449433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2160141A JPH0449433A (en) 1990-06-19 1990-06-19 Debugging mechanism for firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2160141A JPH0449433A (en) 1990-06-19 1990-06-19 Debugging mechanism for firmware

Publications (1)

Publication Number Publication Date
JPH0449433A true JPH0449433A (en) 1992-02-18

Family

ID=15708762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2160141A Pending JPH0449433A (en) 1990-06-19 1990-06-19 Debugging mechanism for firmware

Country Status (1)

Country Link
JP (1) JPH0449433A (en)

Similar Documents

Publication Publication Date Title
EP0702297B1 (en) A data processor with breakpoint circuit
GB1097449A (en) A digital electronic computer system
GB1397617A (en) Input-output controller for a data processing system
GB936695A (en) Stored programme digital computer
JPH0449433A (en) Debugging mechanism for firmware
JPH0448344A (en) Software debug mechanism
JPS60124746A (en) data processing equipment
KR920003909B1 (en) Debugging supporting circuit
JPH03252830A (en) Debugging mechanism for information processor
JPS62145426A (en) Microprograms processing unit
JPS60198646A (en) Error producing system of control storage
JPH02181236A (en) Debug device
JPH0322146A (en) Microprogram control device
JPH0314148A (en) Program destruction detection device
JPH02242347A (en) Program debug controller
JPH03175539A (en) Debugging microprocessor
JPH03134742A (en) debug equipment
JPS62109140A (en) Tracing circuit for program processor
JPS6320637A (en) Execution history storage device
JPH05173836A (en) Debugging device
JPS6349846A (en) Arithmetic processor
JPH04310138A (en) Debugging method for data transmitter
JPH02150933A (en) Debug controller
JPS5981739A (en) Information processor
JPH02125342A (en) Information processor