JPH0448344A - Software debug mechanism - Google Patents

Software debug mechanism

Info

Publication number
JPH0448344A
JPH0448344A JP2159144A JP15914490A JPH0448344A JP H0448344 A JPH0448344 A JP H0448344A JP 2159144 A JP2159144 A JP 2159144A JP 15914490 A JP15914490 A JP 15914490A JP H0448344 A JPH0448344 A JP H0448344A
Authority
JP
Japan
Prior art keywords
address
register
execution
value
equal
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
JP2159144A
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 JP2159144A priority Critical patent/JPH0448344A/en
Publication of JPH0448344A publication Critical patent/JPH0448344A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily collect the outputs necessary for debug by providing a means which stops the clock of a processor and also stops the execution of a microprogram as long as both address and register coincidence signals are equal to ''1''. CONSTITUTION:The value of a microinstruction execution address register 6 is always compared with the value of an address latch 5 by a address comparator means 7 during the execution of a microprogram. When the coincidence is obtained between both values, the means 7outputs a coincidence signal 8 to an AND gate 9. If a register coincidience signal 4 and an address coincidence signal 8 are equal to ''1'' when an enable signal 10 is equal to ''1'', the output of the gate 9 is equal to ''O''. Then a processor clock signal 11 is prevented by an AND gate 12 and not supplied to a processor 13 any more. Thus the execution of the microprogram is discontinued. Therefore the execution of the microprogram is stopped only when the value of the register 6 is equal to the expected value and these relevant data is collected.

Description

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

〔従来の技術〕[Conventional technology]

従来、この種のプロセッサに内臓されたファームウェア
のデパック機構は、操作員によって設定されたマイクロ
命令の実行アドレスで、マイクロ命令の実行が停止する
構造になっていた。
Conventionally, a firmware depacking 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 an operator.

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

上述した従来のファームウェアのデーパツク機構では、
設定したストップアドレスで必らすマイクロ命令の実行
は止ってしまう為、動作中幾度も実行されるアドレスで
、ある条件の時だけ止めてデータを採取しデパックする
必要がある場合、必要なデータの採取が難しいという欠
点があった。
In the conventional firmware storage mechanism described above,
The execution of the necessary microinstructions will stop at the set stop address, so if the address is executed many times during operation and it is necessary to stop only under certain conditions to collect and depack the data, the necessary data will be The drawback was that it was difficult to collect.

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

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

〔実施例〕〔Example〕

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

レジスタ選択スイッチ1は、情報処理装置の有するレジ
スタ群14の中から設定されたスイッチの値に対応する
レジスタを選択し、その値を出力している。データスイ
ッチ2には、前記レジスタ群14の値と比較されるべき
値が操作員により設定されており、レジスタ比較手段3
は、レジスタ選択スイッチにより選択され出力されてい
るレジスタの値とデータスイッチ2の値とを比較し等し
ければ、レジスタ一致信号4をNANDゲート9に出力
する。5はハードウェアのスイッチによってストップア
ドレスを設定する手段すなわちアドレススイッチであり
、操作員によって任意に設定される。
The register selection switch 1 selects a register corresponding to the value of the set switch from among the register group 14 included in the information processing device, and outputs the value. A value to be compared with the value of the register group 14 is set in the data switch 2 by the operator, and the register comparison means 3
compares the value of the register selected and output by the register selection switch with the value of the data switch 2, and if they are equal, outputs a register match signal 4 to the NAND gate 9. Reference numeral 5 denotes a means for setting a stop address using a hardware switch, that is, an address switch, which is arbitrarily set by the operator.

6は、実行中のマイクロ命令のアドレスを示すマイクロ
レジスタであり、マイクロ命令実行アドレスレジスタ6
の値は、マイクロブグラム実行中は常にアドレス比較手
段7によって、アドレススイッチ5の値と比較され、等
しければアドレス比較手段7はアドレス一致信号8をN
ANDゲート9に出力する。イネーブル信号10が“1
”の時にレジスタ一致信号4と、アドレス一致信号8と
が共に1”ならNANDゲート9の出力は°“O″にな
り、プロセッサクロック信号11はANDゲート12で
阻止されプロセッサ13に供給されなくなる為マイクロ
プログラムの実行は停止する。
6 is a micro register that indicates the address of the micro instruction being executed, and is a micro instruction execution address register 6.
The value of is always compared with the value of the address switch 5 by the address comparison means 7 during execution of the microprogram, and if they are equal, the address comparison means 7 outputs the address match signal 8 to N.
Output to AND gate 9. Enable signal 10 is “1”
”, if both the register match signal 4 and the address match signal 8 are 1, the output of the NAND gate 9 becomes "O", and the processor clock signal 11 is blocked by the AND gate 12 and is no longer supplied to the processor 13. Execution of the microprogram stops.

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

以上説明したように本発明はアドレスストップの条件に
ハードウェアとしてのレジスタの値とアドレスの両方を
用いることによって、動作中に幾度も実行されるアドレ
スで任意のレジスタの値を判断し、期待値と等しい場合
だけマイクロプログラムの実行を停止しその時のデータ
を採取できるという効果がある。
As explained above, the present invention uses both the hardware register value and address as the address stop condition to determine the value of any register based on the address that is executed many times during operation, and determines the expected value. This has the effect that execution of the microprogram can be stopped only when the value is equal to , and the data at that time can be collected.

・・・NANDゲート、10・・・・・・イネーブル信
号、11・・・・・・プロセッサクロック信号、12・
・・・・・ANDゲート、13・・・・・・プロセッサ
、14・・・・・・レジスタ。
. . . NAND gate, 10 . . . Enable signal, 11 . . . Processor clock signal, 12.
...AND gate, 13...processor, 14...register.

Claims (1)

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

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2159144A JPH0448344A (en) 1990-06-18 1990-06-18 Software debug mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2159144A JPH0448344A (en) 1990-06-18 1990-06-18 Software debug mechanism

Publications (1)

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

Family

ID=15687217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2159144A Pending JPH0448344A (en) 1990-06-18 1990-06-18 Software debug mechanism

Country Status (1)

Country Link
JP (1) JPH0448344A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9433772B2 (en) 2009-12-22 2016-09-06 Teikoku Seiyaku Co., Ltd. Electrode device used in iontophoresis treatment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9433772B2 (en) 2009-12-22 2016-09-06 Teikoku Seiyaku Co., Ltd. Electrode device used in iontophoresis treatment

Similar Documents

Publication Publication Date Title
US5129079A (en) Computer system having subinstruction surveillance capability
JP3708521B2 (en) Watchpoint engine for pipelined processors
JPH0448344A (en) Software debug mechanism
JPH0449433A (en) Debugging mechanism for firmware
JPS60124746A (en) data processing equipment
JPS62145426A (en) Microprograms processing unit
KR920003909B1 (en) Debugging supporting circuit
JP2770420B2 (en) Micro program control method
JPH10240571A (en) Address tracing circuit
JPH03252830A (en) Debugging mechanism for information processor
JPS6049442A (en) Microdiagnosis system
JPH03134742A (en) debug equipment
JPS5981739A (en) Information processor
JPS62109137A (en) Data processing system
JPS63155330A (en) Microprogram controller
JPH04310138A (en) Debugging method for data transmitter
JPS61240341A (en) Microprogram controller
JPS62254236A (en) Detector for exceptional phenomenon
JPH02242347A (en) Program debug controller
JPH08263324A (en) Debug facilitation device
JPS6349846A (en) Arithmetic processor
JPS63197245A (en) Microprogram controller
JPH04157537A (en) Address trap system
JPS60209851A (en) Program sequence stop method
JPH01102653A (en) Microprogram control system