JPS6211745B2 - - Google Patents

Info

Publication number
JPS6211745B2
JPS6211745B2 JP55186154A JP18615480A JPS6211745B2 JP S6211745 B2 JPS6211745 B2 JP S6211745B2 JP 55186154 A JP55186154 A JP 55186154A JP 18615480 A JP18615480 A JP 18615480A JP S6211745 B2 JPS6211745 B2 JP S6211745B2
Authority
JP
Japan
Prior art keywords
address
microprocessor
microcomputer
control memory
interrupt
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.)
Expired
Application number
JP55186154A
Other languages
Japanese (ja)
Other versions
JPS57109058A (en
Inventor
Masami Wakabayashi
Toyokazu Nagahara
Hiroyuki Tsujita
Kazuhiko Momoi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP55186154A priority Critical patent/JPS57109058A/en
Publication of JPS57109058A publication Critical patent/JPS57109058A/en
Publication of JPS6211745B2 publication Critical patent/JPS6211745B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 本発明は、マイクロプロセツサ特に1チツプ・
マイクロ・プロセツサの内部状態を読出り得るよ
うになつたマイクロコンピユーのステツプ方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a microprocessor, particularly a one-chip
This invention relates to a microcomputer step system that allows the internal state of a microprocessor to be read.

従来、1チツプ・マイクロプロセツサの内部レ
ジスタ、例えばアキユムレータやインデツクス・
レジスタ、スタツク・ポインタ、コンデイシヨ
ン・コード・レジスタの状態はプログラム実行中
に監視することが出来なかつた。また、プログラ
ムのデバツク時又は障害のチエツク時などにおい
て行われる。1命令毎のプログラムをステツプさ
せてマイクロプロセツサの処理を停止させる方式
においては、命令の実行アドレスの監視しか行わ
れず、内部レジスタの状態を把握することが困難
であり、障害や試験間に支障をきたしていた。
Traditionally, the internal registers of a single-chip microprocessor, such as the accumulator and index
The status of registers, stack pointers, and condition code registers could not be monitored during program execution. It is also performed when debugging a program or checking for failures. In the method of stopping microprocessor processing by stepping through the program for each instruction, only the execution address of the instruction is monitored, making it difficult to grasp the state of internal registers, which can lead to failures or problems between tests. It was causing a problem.

本発明は、上記の考察に基づくものであつて、
マイクロプロセツサの命令ステツプ時に、命令の
実行アドレスおよび内部レジスタの状態を読取り
得るようにしたマイクロコンピユータのステツプ
方式を提供することを目的としている。そしてそ
のため、本発明のマイクロコンピユータのステツ
プ方式は、 マイクロプロセツサと制御記憶とを備え、アド
レス一致割込みを受付けたとき上記マイクロプロ
セツサの内部状態を上記制御記憶の所定領域に格
納し、その後に自分自身を停止し、動作状態とさ
れた後にアドレス一致のための設定アドレスを変
更し、割込み状態から正常状態に復帰するように
構成されたマイクロコンピユータと、 〓〓〓〓〓
設定アドレスと上記マイクロコンピユータの実
行アドレスを比較し、両者が一致したときに上記
マイクロプロセツサに割込み信号を送出するアド
レス一致検出部と、 上記マイクロコンピユータが停止したとき上記
制御記憶の所定領域のデータを読出して他の処理
装置に送ると共に、読出し終了後に上記マイクロ
コンピユータを動作態にせしめるアダプタと、 該アダプタから送られて来たデータを表示する
他の処理装置と を具備することを特徴とするものである。以下、
本発明を図面を参照しつつ説明する。
The present invention is based on the above considerations, and includes:
It is an object of the present invention to provide a microcomputer stepping method that allows the execution address of an instruction and the state of an internal register to be read when the microprocessor steps an instruction. Therefore, the microcomputer step system of the present invention includes a microprocessor and a control memory, stores the internal state of the microprocessor in a predetermined area of the control memory when an address match interrupt is received, and then A microcomputer configured to stop itself, change the set address for address matching after being put into an operating state, and return to a normal state from an interrupt state;
an address match detection unit that compares the set address and the execution address of the microcomputer and sends an interrupt signal to the microprocessor when the two match; The microcomputer is characterized by comprising an adapter that reads and sends the data to another processing device and puts the microcomputer into operation after the reading is completed, and another processing device that displays the data sent from the adapter. It is something. below,
The present invention will be explained with reference to the drawings.

第1図は本発明の1実施例のハードウエア構成
を示す図、第2図はアドレス一致検出部の1実施
例を示す図、第3図は本発明におけるプログラム
の構成を示す図である。
FIG. 1 is a diagram showing a hardware configuration of one embodiment of the present invention, FIG. 2 is a diagram showing one embodiment of an address match detection section, and FIG. 3 is a diagram showing a program configuration in the present invention.

図において、1はマイクロプロセツサ、2は制
御記憶、3はアダプタ、4はアドレス一致検出
部、5はアドレス・バスおよびデータ・バスを含
むバス、6は制御線、7は設定アドレス・レジス
タ、8はアドレス比較回路、9は割込み回路をそ
れぞれ示している。制御記憶2はRAMから構成
され、この中には各種のプログラムが格納されて
いる。また、割込みが受付けられたとき、マイク
ロプロセツサ1の命令実行アドレスおよび内部レ
ジスタ(アキユムレーダやインデツクス・レジス
タ、スタツク・ポインタ、コンデイシヨン・コー
ド・レジスタ)の状態が制御記憶の所定領域と格
納される。アダプタ3は、ホールド(Halt)信号
がオンとなつたことを検出すると、上記制御記憶
の所定領域のデータを読取つてサービス・プロセ
ツサSVP(図示せず)に送り、データを読取つた
あと、ホールド信号を解除する。アドレス一致検
出部4は第2図に示すように、設定アドレス・レ
ジスタと設定アドレス・レジスタの内容とアドレ
ス・バス上のアドレスを比較するアドレス比較回
路と、アドレス比較回路8が一致を出力したとき
マイクロプロセツサ1に対して割込み信号を送出
する割込み回路9とを有している。設定アドレ
ス・レジスタ7の内容は、マイクロプロセツサ1
によつて書替えられる。
In the figure, 1 is a microprocessor, 2 is a control memory, 3 is an adapter, 4 is an address match detector, 5 is a bus including an address bus and a data bus, 6 is a control line, 7 is a setting address register, Reference numeral 8 indicates an address comparison circuit, and reference numeral 9 indicates an interrupt circuit. The control memory 2 is composed of a RAM, in which various programs are stored. Further, when an interrupt is accepted, the instruction execution address of the microprocessor 1 and the status of internal registers (amount radar, index register, stack pointer, condition code register) are stored in a predetermined area of the control memory. When the adapter 3 detects that the hold signal is turned on, it reads the data in the predetermined area of the control memory and sends it to the service processor SVP (not shown), and after reading the data, it outputs the hold signal. Release. As shown in FIG. 2, the address match detection unit 4 includes a set address register, an address comparison circuit that compares the contents of the set address register and the address on the address bus, and when the address comparison circuit 8 outputs a match. The interrupt circuit 9 includes an interrupt circuit 9 that sends an interrupt signal to the microprocessor 1. The contents of setting address register 7 are
Rewritten by.

第3図は本発明におけるプログラムの構成を示
すものである。ステツプ処理ルーチンは、割込み
回路9からの割込み信号が受付けられたときに実
行させるものであつて、マイクロプロセツサ1の
内部状態を制御記憶2の所定領域にスタツクする
命令系列と、ホールド信号をオンとする命令と、
設定アドレス・レジスタ7に次のアドレスをセツ
トする命令と、リターン命令とを有している。
FIG. 3 shows the configuration of a program in the present invention. The step processing routine is executed when an interrupt signal from the interrupt circuit 9 is accepted, and includes a series of instructions for stacking the internal state of the microprocessor 1 in a predetermined area of the control memory 2 and a hold signal turned on. and an instruction to
It has an instruction to set the next address in the setting address register 7 and a return instruction.

次に本発明の実施例を説明する。いま第3図の
LDA(ロード・アキユムレーダ)命令に対応す
るアドレスが設定アドレス・レジスタ7にセツト
されているとする。LDA命令が実行されると、
割込み回路9は割込み信号を送出する。このアド
レス一致の割込みが受付けられると、ステツプ処
理ルーチンの実行が開始される。このステツプ処
理ルーチンの実行によつて、マイクロプロセツサ
1の内部状態が制御記憶2の所定領域に保存さ
れ、しかる後に、マイクロプロセツサが停止せし
められ、ホールト信号がアクテイブとされる。ホ
ールド信号がアクテイブになると、アダプタ3
は、制御記憶の所定領域に保存されているマイク
ロプロセツサ1の内部状態情報を読出し、これを
サービス・プロセツサSVPに送り、サービス・プ
ロセツサSVPはこれを表示する。なお、第1図の
装置は入出力制御装置の一部を構成しているもの
である。アダプタ2は、制御記憶2の所定領域の
データの全てを読出し、これをサービス・プロセ
ツサSVPに送ると、ホールト信号をノン・アクテ
イブな値にする。これにより、ステツプ処理ルー
チンの実行が再開され、設定アドレス・レジスタ
7に次のアドレス、例えば+1されたアドレスが
設定され、しかる後にリターン命令が発行され
る。このリターン命令によつて、正常の実行ルー
チンに戻り、次のアドレスの命令(図示の例では
STA命令)が実行される。STA命令のアドレス
が設定アドレス・レジスタの内容と一致すると、
再びステツプ処理ルーチンが実行される。
Next, examples of the present invention will be described. Now in Figure 3
Assume that an address corresponding to an LDA (load accumulation radar) instruction is set in the setting address register 7. When the LDA instruction is executed,
Interrupt circuit 9 sends out an interrupt signal. When this address match interrupt is accepted, execution of the step processing routine is started. By executing this step processing routine, the internal state of the microprocessor 1 is saved in a predetermined area of the control memory 2, and then the microprocessor is stopped and the halt signal is made active. When the hold signal becomes active, adapter 3
reads the internal state information of the microprocessor 1 stored in a predetermined area of the control memory, sends it to the service processor SVP, and the service processor SVP displays it. The device shown in FIG. 1 constitutes a part of an input/output control device. The adapter 2 reads all data in a predetermined area of the control memory 2, sends it to the service processor SVP, and then sets the halt signal to a non-active value. As a result, execution of the step processing routine is restarted, the next address, for example, an address incremented by 1, is set in the setting address register 7, and a return instruction is then issued. This return instruction returns to the normal execution routine and returns to the instruction at the next address (in the example shown).
STA instruction) is executed. When the address of the STA instruction matches the contents of the configuration address register,
The step processing routine is executed again.

以上の説明から明らかなように、本発明によれ
ば、各ステツプ毎の実行アドレスおよび各内部レ
ジスタの状態を把握することが出来る。
As is clear from the above description, according to the present invention, it is possible to grasp the execution address and the state of each internal register for each step.

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

第1図は本発明の1実施例のハードウエア構成
を示す図、第2図はアドレス一致検出部の1実施
例を示す図、第3図は本発明におけるプログラム
の構成を示す図である。 1……マイクロプロセツサ、2……制御記憶、
3……アダプタ、4……アドレス一致検出部、5
〓〓〓〓〓
……アドレス・バスおよびデータ・バスを含むバ
ス、6……制御線、7……設定アドレス・レジス
タ、8……アドレス比較回路、9……割込み回
路。 〓〓〓〓〓
FIG. 1 is a diagram showing a hardware configuration of one embodiment of the present invention, FIG. 2 is a diagram showing one embodiment of an address match detection section, and FIG. 3 is a diagram showing a program configuration in the present invention. 1...Microprocessor, 2...Control memory,
3...Adapter, 4...Address match detection section, 5
〓〓〓〓〓
...Bus including address bus and data bus, 6...Control line, 7...Setting address register, 8...Address comparison circuit, 9...Interrupt circuit. 〓〓〓〓〓

Claims (1)

【特許請求の範囲】 1 マイクロプロセツサと制御記憶とを備え、ア
ドレス一致割込みを受付けたとき上記マイクロプ
ロセツサの内部状態を上記制御記憶の所定領域に
格納し、その後に自分自身を停止し、動作状態と
された後にアドレス一致のための設定アドレスを
変更し、割込み状態から正常状態に復帰するよう
に構成されたマイクロコンピユータと、 設定アドレスと上記マイクロコンピユータの実
行アドレスを比較し、両者が一致したときに上記
マイクロプロセツサに割込み信号を送出するアド
レス一致検出部と、 上記マイクロコンピユータが停止したとき上記
制御記憶の所定領域のデータを読出して他の処理
装置に送ると共に、読出し終了後に上記マイクロ
コンピユータを動作状態にせしめるアダプタと、 該アダプタから送られて来たデータを表示する
他の処理装置と を具備することを特徴とするマイクロコンピユー
タのステツプ方式。
[Scope of Claims] 1. A microprocessor comprising a microprocessor and a control memory, and upon receiving an address match interrupt, stores the internal state of the microprocessor in a predetermined area of the control memory, and then stops itself; A microcomputer configured to return from an interrupt state to a normal state by changing the set address for address matching after being put into an operating state, and comparing the set address with the execution address of the above microcomputer and determining whether the two match. an address match detection unit that sends an interrupt signal to the microprocessor when the microcomputer stops; and an address match detection unit that reads data in a predetermined area of the control memory and sends it to another processing device when the microcomputer stops; A step system for a microcomputer characterized by comprising an adapter for putting the computer into operation and another processing device for displaying data sent from the adapter.
JP55186154A 1980-12-26 1980-12-26 Step system of microcomputer Granted JPS57109058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55186154A JPS57109058A (en) 1980-12-26 1980-12-26 Step system of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55186154A JPS57109058A (en) 1980-12-26 1980-12-26 Step system of microcomputer

Publications (2)

Publication Number Publication Date
JPS57109058A JPS57109058A (en) 1982-07-07
JPS6211745B2 true JPS6211745B2 (en) 1987-03-14

Family

ID=16183320

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55186154A Granted JPS57109058A (en) 1980-12-26 1980-12-26 Step system of microcomputer

Country Status (1)

Country Link
JP (1) JPS57109058A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6128144A (en) * 1984-07-18 1986-02-07 Matsushita Electric Ind Co Ltd Executing device of tracing
JP3489277B2 (en) 1995-07-17 2004-01-19 トヨタ自動車株式会社 Vehicle braking system
US6918318B2 (en) 2001-01-10 2005-07-19 Ksr Industrial Corporation Brake pedal assembly with variable ratio

Also Published As

Publication number Publication date
JPS57109058A (en) 1982-07-07

Similar Documents

Publication Publication Date Title
JPH02202642A (en) Device for supervising program action
US5257269A (en) Error controller for use in debugging microprocessor
JP2001318807A (en) Method and device for controlling task switching
JPS6211745B2 (en)
JPH0126086B2 (en)
EP0778524A1 (en) Method and device for evaluating a program
JPS6118045A (en) Detecting system of program runaway
JPH0581087A (en) Processor monitoring system
JPH03208132A (en) Single chip microcomputer
JPH074669Y2 (en) Interrupt request processing circuit
JPS5822765B2 (en) Program loading method in electronic computer system
JPS59112494A (en) Memory testing system
KR960011685A (en) Data processing device and method for handling interrupt request
JPS63155330A (en) Microprogram controller
JPH0259492B2 (en)
JPH0149975B2 (en)
JPH0554137B2 (en)
JPS6314381B2 (en)
JPS6146535A (en) Pseudo error setting control system
JPH02183342A (en) Interruption controller
JPS63138437A (en) Program control system
JPH0335696B2 (en)
JP2002251299A (en) Program tracing device
JPH1124962A (en) Microcomputer device
JPS6111867A (en) Processing method of abnormality in interface control