JPH028941A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH028941A
JPH028941A JP63158077A JP15807788A JPH028941A JP H028941 A JPH028941 A JP H028941A JP 63158077 A JP63158077 A JP 63158077A JP 15807788 A JP15807788 A JP 15807788A JP H028941 A JPH028941 A JP H028941A
Authority
JP
Japan
Prior art keywords
circuit
input
microprocessor
internal state
output
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
JP63158077A
Other languages
Japanese (ja)
Inventor
Yoichi Kanamaru
洋一 金丸
Toshio Nakamura
敏男 中村
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63158077A priority Critical patent/JPH028941A/en
Publication of JPH028941A publication Critical patent/JPH028941A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To check the internal state of a microprocessor while the microprocessor is operated and at the same time, to eliminate the necessity of an exclusively used chip, etc., by providing an input-output terminal for outputting internal state data, instruction recognition circuit, output circuit, etc. CONSTITUTION:An instruction recognition circuit 11 recognizes and discriminates control instructions inputted from an external circuit 5 at prescribed timing through a communication line 4 and input-output terminal 3a. A readout circuit 13 reads out the internal state data from a prescribed or all registers 7 in accordance with the control signal outputted from the circuit 11. An output circuit 12 sends the internal state data read out by the circuit 13 to the circuit 5 through the terminal 3a and line 4. Namely, the terminal 3a is used in a split control when input and output cycles are alternately arranged, and when an inputted control instruction requests the report of the program status, all of the internal state data are outputted in the next output cycle. Therefore, the internal state of a microprocessor 1 can be checked and reported while the microprocessor 1 is operated.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、演算動作中にその内部状態を調べることので
きるマイクロプロセッサに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a microprocessor whose internal state can be examined during arithmetic operations.

(従来の技術) マイクロプロセッサの開発やマイクロプロセッサのプロ
グラムの開発にあたっては、その動作中に内部状態、即
ち各種レジスタの値やプログラムステータス等を知る必
要がある。
(Prior Art) When developing a microprocessor or a program for a microprocessor, it is necessary to know the internal state, ie, the values of various registers, program status, etc., during its operation.

これには、従来、次のような方法が取られていた。Conventionally, the following methods have been used for this purpose.

即ち、マイクロプロセッサがサポートするブレイクポイ
ント等の機能を用いて、所定のタイミングでシステム内
のROMやRAM上の制御プログラムを動作させる。こ
の制御プログラムが、その時点におけるマイクロプロセ
ッサの内部状態を読み出す。従って、この場合、マイク
ロプロセッサの本来の動作は停止し、その制御プログラ
ムがマイクロプロセッサを占有して、マイクロプロセッ
サによって内部状態が外部に通知される。
That is, the control program on the ROM or RAM in the system is operated at a predetermined timing using functions such as breakpoints supported by the microprocessor. This control program reads the internal state of the microprocessor at that point in time. Therefore, in this case, the original operation of the microprocessor is stopped, the control program occupies the microprocessor, and the microprocessor notifies the outside of the internal state.

又、別の方法としては、例えば、マイクロプロセッサと
同等の動作をするいわゆるインサーキットエミュレータ
を用いる。インサーキットエミュレータを、所定の制御
プログラムによって制御して内部状態を通知させるよう
にすれば、より詳細な高度な内部状態の通知が可能とな
る。例えば、マイクロプロセッサ上で実行された全ての
命令を、はぼリアルタイムに通知することができる。
Another method is to use, for example, a so-called in-circuit emulator that operates in the same manner as a microprocessor. If the in-circuit emulator is controlled by a predetermined control program to notify the internal state, it becomes possible to notify the internal state in more detail. For example, all instructions executed on a microprocessor can be reported in almost real time.

又、指定されたI10命令等の命令が実行されると、マ
イクロプロセッサが停止し、外部回路にその旨を通知す
る。
Furthermore, when a specified instruction such as the I10 instruction is executed, the microprocessor stops and notifies external circuits to that effect.

(発明が解決しようとする課題) ところが、上記のような従来の方法では、次のような問
題点があった。
(Problems to be Solved by the Invention) However, the conventional method as described above has the following problems.

先ず、ブレイクポイント等の機能を用いる方法では、内
部状態の通知に際して必ずマイクロプロセッサの動作を
停止させなければならない。従って、いわゆるリアルタ
イム性に欠けるという問題がある。
First, in the method using functions such as breakpoints, the operation of the microprocessor must be stopped when notifying the internal state. Therefore, there is a problem in that it lacks so-called real-time performance.

一方、インサーキットエミュレータを用いる方法におい
ては、マイクロプロセッサの動作をエミュレートするた
めの特別なハードウェアを必要とし、基板への専用のチ
ップの搭載等、煩雑な手数を必要とする。又、搭載スペ
ース上の問題も残されている。
On the other hand, the method using an in-circuit emulator requires special hardware to emulate the operation of a microprocessor, and requires complicated steps such as mounting a dedicated chip on a board. In addition, there remains the problem of mounting space.

本発明は以上の点に着目してなされたもので、マイクロ
プロセッサを動作させながらその内部状態を調べること
ができ、又、専用のチップ等を必要としないマイクロプ
ロセッサを提供することを目的とするものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide a microprocessor that can check the internal state of the microprocessor while it is operating, and that does not require a dedicated chip or the like. It is something.

(課題を解決するための手段) 本発明のマイクロプロセッサは、通常の演算処理データ
用入出力端子とは別に設けられ、前記通常の演算処理動
作中に、外部回路から制御命令を入力し、その制御命令
に応答して、内部状態データを出力するための入出力端
子と、所定の入力サイクルに、前記外部回路より発信さ
れた前記制御命令を、前記入出力端子を通じて認識する
命令認識回路と、前記制御命令に応じて、内部回路の内
部状態データを読み出す読出し回路と、前記入力サイク
ルに続く所定の出力サイクルに、前記内部状態データを
、前記入出力端子を通じて出力する出力回路とを備えた
ことを特徴とするものである。
(Means for Solving the Problems) The microprocessor of the present invention is provided separately from input/output terminals for normal arithmetic processing data, and inputs control commands from an external circuit during the normal arithmetic processing operations. an input/output terminal for outputting internal state data in response to a control command; a command recognition circuit that recognizes, through the input/output terminal, the control command transmitted from the external circuit in a predetermined input cycle; The device further comprises: a readout circuit that reads internal state data of the internal circuit in response to the control command; and an output circuit that outputs the internal state data through the input/output terminal in a predetermined output cycle following the input cycle. It is characterized by:

(作用) 以上のマイクロプロセッサは、内部状態データを出力す
るための入出力端子を特別に設ける。マイクロプロセッ
サの内部では、その入出力端子を通じて受は入れた外部
回路からの制御命令を命令認識回路で認識する。そして
、この命令に従って、必要な内部状態を読出し回路が読
出し、出力回路を通じて入出力端子にその内部状態が出
力される。
(Function) The above microprocessor is specially provided with an input/output terminal for outputting internal state data. Inside the microprocessor, a command recognition circuit recognizes control commands received from an external circuit through its input/output terminals. Then, in accordance with this command, the readout circuit reads out the necessary internal state, and the internal state is outputted to the input/output terminal through the output circuit.

尚、この場合、入出力端子は双方向の通信に使用される
ため、時分割的に、入力サイクルと出力サイクルを予め
一定の周期で設定しておく。入力サイクルの場合には制
御命令を、出力サイクルの場合には内部状態データを、
入出力端子を通じて転送する。これによって、マイクロ
プロセッサに設けられた一部の端子を用いて、マイクロ
プロセッサの内部状態データを、マイクロプロセッサの
動作を妨げることなく任意に通知することができる。
In this case, since the input/output terminal is used for bidirectional communication, the input cycle and the output cycle are set in advance at a constant period in a time-sharing manner. Control instructions for input cycles, internal state data for output cycles,
Transfer through input/output terminals. As a result, the internal state data of the microprocessor can be arbitrarily notified using some of the terminals provided in the microprocessor without interfering with the operation of the microprocessor.

(実施例) 以下、本発明を図の実施例を用いて詳細に説明する。(Example) Hereinafter, the present invention will be explained in detail using embodiments shown in the drawings.

第1図は、本発明に関わるマイクロプロセッサのブロッ
ク図である。
FIG. 1 is a block diagram of a microprocessor related to the present invention.

図において、マイクロプロセッサ1の基板2には多数の
端子3が設けられている。この端子3の内、従来、この
マイクロプロセッサの動作に使用されていなかった右下
の1つの端子を、内部状態の通知のための入出力端子3
aに選定する。この入出力端子3aには、通信線4を通
じて外部回路5が接続されている。又、外部回路5には
、通信線4を通じて通知されたマイクロプロセッサの内
部状態を表示する表示装置6が接続されている。
In the figure, a large number of terminals 3 are provided on a substrate 2 of a microprocessor 1. Among these terminals 3, one terminal on the lower right, which was not conventionally used for the operation of this microprocessor, is used as an input/output terminal for notification of internal status.
Select a. An external circuit 5 is connected to this input/output terminal 3a through a communication line 4. Further, a display device 6 is connected to the external circuit 5 and displays the internal state of the microprocessor notified through the communication line 4.

一方、このマイクロプロセッサには、従来のものと同様
に、マイクロプロセッサの動作のために使用されている
多数のレジスタ7が設けられている。このレジスタ7の
内容等が、このマイクロプロセッサ1の内部状態に相当
する訳であるが、その内部状態データを読み出すために
、命令認識回路11と、出力回路12と、読出し回路1
3とが設けられている。
On the other hand, this microprocessor is provided with a large number of registers 7, which are used for the operation of the microprocessor, as in the conventional one. The contents of this register 7 correspond to the internal state of this microprocessor 1, and in order to read the internal state data, an instruction recognition circuit 11, an output circuit 12, and a readout circuit 1 are required.
3 are provided.

命令認識回路11は、所定のタイミングで、外部回路5
から通信線4及び入出力端子3aを通じて入力する制御
命令を認識判別する回路である。
The command recognition circuit 11 recognizes the external circuit 5 at a predetermined timing.
This is a circuit that recognizes and discriminates control commands input from the communication line 4 and the input/output terminal 3a.

この回路は、入出力端子3aを通じて入力する信号に含
まれる同期信号を基準にして制御命令を読出し、これに
よって読出し回路13を制御するための制御信号を得る
ゲート回路等から構成される。
This circuit is comprised of a gate circuit, etc., which reads a control command based on a synchronization signal included in a signal inputted through the input/output terminal 3a, and thereby obtains a control signal for controlling the readout circuit 13.

又、読出し回路13は、命令認識回路11の出力した制
御信号に応じて、所定のレジスタ7あるいは全てのレジ
スタ7から、その内部状態データを読み出す回路である
。この回路は、制御命令に応じていずれかのレジスタに
読出し制御信号を出力し、読み出された信号を受は入れ
るゲート回路等から構成される。
Further, the read circuit 13 is a circuit that reads internal state data from a predetermined register 7 or all registers 7 in accordance with a control signal output from the instruction recognition circuit 11. This circuit is composed of a gate circuit, etc., which outputs a read control signal to one of the registers in response to a control command, and receives and receives the read signal.

出力回路12は、読出し回路13によって読み出された
内部状態データを、入出力端子3aから通信線4を通じ
て外部回路5に送り出すための回路である。この回路は
、読出し回路13によって読み出された内部状態データ
を受は入れると共に、通信線4に対し、同期信号を基準
にシリアルに内部状態データを出力するタイミング制御
回路やゲート回路等から構成される。
The output circuit 12 is a circuit for sending the internal state data read by the readout circuit 13 from the input/output terminal 3a to the external circuit 5 through the communication line 4. This circuit is composed of a timing control circuit, a gate circuit, etc., which receives the internal state data read out by the readout circuit 13, and serially outputs the internal state data to the communication line 4 based on a synchronization signal. Ru.

又、外部回路5は、例えばオペレータが操作するパネル
等からなり、所定のタイミングで通信線4に対し制御命
令を入力し、通信線4を介して内部状態データを受は入
れるために使用される。
Further, the external circuit 5 is composed of, for example, a panel operated by an operator, and is used to input control commands to the communication line 4 at a predetermined timing and to receive internal status data via the communication line 4. .

第2図は、本発明のマイクロプロセッサから内部状態の
通知を受ける場合の、通信線4上の入力サイクルと出力
サイクルの説明図である。
FIG. 2 is an explanatory diagram of input cycles and output cycles on the communication line 4 when notification of internal status is received from the microprocessor of the present invention.

本発明のマイクロプロセッサは、図のように、入出力端
子3a(第1図)を入力サイクルと出力サイクルを交互
に配置した時分割制御により使用する。即ち、例えば図
のように、第1番目の入力サイクル■1に、外部回路5
(第1図)から制御命令が入出力端子3a(第1図)を
通じて入力する。この制御命令が、プログラムステータ
スの通知を要求するものである場合、次の出力サイクル
01においては、全ての内部状態データが入出力端子3
a(第1図)を通じて外部回路5(第1図)に通知され
る。尚、この場合、1回の出力サイクルでレジスタ1個
分の内部状態データを出力するようにしてもよいし、出
力サイクルを十分長く取り、例えば、レジスタ7(第1
図)から読み出された内部状態データを、適当な区切り
符合を付加しながら一挙に順にシリアルに出力してもよ
い。
As shown in the figure, the microprocessor of the present invention uses the input/output terminal 3a (FIG. 1) under time division control in which input cycles and output cycles are alternately arranged. That is, for example, as shown in the figure, in the first input cycle (1), the external circuit 5
(FIG. 1), control commands are input through the input/output terminal 3a (FIG. 1). If this control instruction requests notification of the program status, all internal status data will be transferred to the input/output terminal 3 in the next output cycle 01.
a (FIG. 1) to the external circuit 5 (FIG. 1). In this case, the internal state data for one register may be output in one output cycle, or the output cycle may be set sufficiently long so that, for example, register 7 (first
The internal state data read out from FIG.

次の入力サイクルエ2において、再び外部回路5(第1
図)から制御命令が入力する。これが、特定のレジスタ
の内部状態の通知を要求するものであれば、出力サイク
ル02において特定のレジスタの内部状態データが出力
される。以下、同様のことが、オペレータの外部回路5
の操作によって繰り返され、いわゆる対話的にマイクロ
プロセッサ1から内部状態が通知される。この場合、マ
イクロプロセッサ1は、この内部状態の通知動作とは全
く別に、通常の演算処理動作を並行して実行している。
In the next input cycle E2, the external circuit 5 (first
Control commands are input from (Fig.). If this requests notification of the internal state of a specific register, the internal state data of the specific register is output in output cycle 02. Below, the same thing applies to the operator's external circuit 5.
The internal state is notified from the microprocessor 1 in a so-called interactive manner. In this case, the microprocessor 1 executes normal arithmetic processing operations in parallel, completely apart from this internal state notification operation.

この第2図に示したように、一定の周期で入力サイクル
と出力サイクルとを設け、これによって制御命令の入力
と内部状態データの出力とを時分割的に行なうようにす
れば、1本の入出力端子のみによってこの処理を実行す
ることができ、又、制御命令の認識や内部状態データの
出力タイミングの制御が容易となる。
As shown in Fig. 2, if an input cycle and an output cycle are provided at regular intervals, and thereby the input of control commands and the output of internal state data are performed in a time-sharing manner, one This process can be executed using only input/output terminals, and it is also easy to recognize control commands and control the output timing of internal state data.

即ち、第1図に示した回路は、先ず、入力サイクルにお
いて外部回路5から制御命令が命令認識回路11に入力
すると、この命令認識回路11は、その制御命令を例え
ばプログラムステータスを通知する旨の命令と認識する
。その認識結果に基づいて制御信号が読出し回路13に
通知され、読出し回路13は内部状態データを読み出す
べきレジスタ7を順に切り替えて、その内部状態を出力
回路12に転送する。出力回路12は、出力サイクルの
開始にタイミングを合わせて、読み出された内部状態デ
ータを入出力端子3aに向けて出力する。
That is, in the circuit shown in FIG. 1, first, in an input cycle, when a control command is input from the external circuit 5 to the command recognition circuit 11, the command recognition circuit 11 recognizes the control command as, for example, notifying the program status. Recognize it as a command. A control signal is sent to the readout circuit 13 based on the recognition result, and the readout circuit 13 sequentially switches registers 7 from which internal state data should be read, and transfers the internal state to the output circuit 12. The output circuit 12 outputs the read internal state data to the input/output terminal 3a in time with the start of the output cycle.

尚、本発明に関わるマイクロプロセッサは、内部状態デ
ータの読出し機能のみならず、マイクロプロセッサ自体
の動作制御や内部状態の変更等も行なう機能も備えるこ
とが可能である。
Note that the microprocessor according to the present invention can have not only the function of reading internal state data but also the function of controlling the operation of the microprocessor itself, changing the internal state, etc.

以下、外部回路5からマイクロプロセッサ1に対して入
力される制御命令を、例を挙げて具体的に説明する。
Hereinafter, the control commands input from the external circuit 5 to the microprocessor 1 will be specifically explained using an example.

第3図は、このマイクロプロセッサの機能と入出力サイ
クルの関係を示す一覧表である。
FIG. 3 is a list showing the relationship between the functions of this microprocessor and input/output cycles.

先ず、CPU停止機能を実行する場合、例えば入力サイ
クルにおいて制御命令“O○゛°が入力される。この場
合、マイクロプロセッサlは通常の演算動作を直ちに停
止し、出力サイクルには何も出力されない。
First, when executing the CPU stop function, for example, a control command "O○゛°" is input in the input cycle. In this case, the microprocessor l immediately stops normal arithmetic operations, and nothing is output in the output cycle. .

次の、CPUリセット機能においては、制御命令が例え
ば′01”とされ、これが入力するとマイクロプロセッ
サは初期化される。勿論、この場合も、出力サイクルに
は何も出力されない。
In the next CPU reset function, the control command is set to, for example, '01', and when this is input, the microprocessor is initialized. Of course, in this case as well, nothing is output in the output cycle.

次に、レジスタ制御機能において、読出し機能が実行さ
れる場合、入力サイクルにおいては制御命令が例えば’
IOH”とされ、次の入力サイクルでレジスタ番号が入
力される。これに応じて、マイクロプロセッサは、出力
サイクルでそのレジスタの内容を出力する。
Next, in the register control function, when a read function is executed, the control command is e.g.
IOH" and the register number is input in the next input cycle. In response, the microprocessor outputs the contents of that register in the output cycle.

次に、レジスタ制御機能において、書き込み機能を実行
する場合、入力サイクルにおいて制御命令が例えば“”
IIH”とされ、その次の入力サイクルにおいてレジス
タ番号が入力される。そして、更に、次の入力サイクル
においてレジスタ値が入力されると、これが先に指定さ
れたレジスタ番号のレジスタに入力される。この場合、
出力サイクルには何も出力されない。このようにして、
マイクロプロセッサ内部のレジスタの内容の書き換えも
行なわれる。
Next, in the register control function, when executing the write function, the control command in the input cycle is, for example, “”
IIH", and the register number is input in the next input cycle. Then, when a register value is input in the next input cycle, it is input to the register with the previously designated register number. in this case,
Nothing is output during the output cycle. In this way,
The contents of registers inside the microprocessor are also rewritten.

次に、メモリ内容制御機能においては、その読出し機能
を実行する場合、制御命令を例えば“20H”と入力し
、次の入力サイクルでメモリアドレスが入力し、更に次
の入力サイクルでバイト数が入力する。その結果、出力
サイクルにおいてはマイクロプロセッサからメモリ内容
が出力される。即ち、この場合、マイクロプロセッサが
、そのマイクロプロセッサに接続されたメモリの内容を
読出して、外部回路に通知するといった処理を実行する
ことができる。
Next, in the memory content control function, when executing the read function, the control command is inputted as, for example, "20H", the memory address is inputted in the next input cycle, and the number of bytes is inputted in the next input cycle. do. As a result, the memory contents are output from the microprocessor during the output cycle. That is, in this case, the microprocessor can execute processing such as reading the contents of a memory connected to the microprocessor and notifying an external circuit.

次に、メモリ内制御機能における書き込み機能において
は、制御命令を例えば“’21H”と入力し、次の入力
サイクルでメモリアドレスを入力し、更に次の入力サイ
クルでバイト数を入力し、最後の入力サイクルでメモリ
設定値を入力する。
Next, in the write function of the in-memory control function, input the control command, for example, "'21H", input the memory address in the next input cycle, input the number of bytes in the next input cycle, and input the last Input the memory setting value in the input cycle.

これによって、該当するメモリに対し、メモリ設定値が
書き込まれる。この場合、出力サイクルには何も出力さ
れない。このように、この実施例では、制御命令は、そ
れぞれ1つあるいは複数の入力サイクルを使用して、組
み合された一群の命令となってマイクロプロセッサに入
力する。マイクロプロセッサ1の側では、第1図の命令
認識回路11が、既知の命令解読処理を行なって、この
命令を認識しそれに対応した動作を実行する。
As a result, the memory setting value is written to the corresponding memory. In this case, nothing is output during the output cycle. Thus, in this embodiment, control instructions are input to the microprocessor in a combined set of instructions, each using one or more input cycles. On the microprocessor 1 side, the instruction recognition circuit 11 shown in FIG. 1 performs a known instruction decoding process, recognizes this instruction, and executes an operation corresponding to the instruction.

次に、I10ボート制御機能については、その読出し機
能を実行する場合、制御命令を例えば“30 H” と
し、次の入力サイクルでI10ボートを指定し、更に次
の入力サイクルでアドレスを指定し、その次の入力サイ
クルでバイト数を指定する。これによって、マイクロプ
ロセッサがアクセスする各種のI10ボートの内部状態
データが出力サイクルに出力される。
Next, regarding the I10 boat control function, when executing its read function, the control command is set to, for example, "30H", the I10 boat is specified in the next input cycle, and the address is specified in the next input cycle, Specify the number of bytes on the next input cycle. This causes the internal state data of the various I10 ports accessed by the microprocessor to be output in the output cycle.

又、I10ボート制御機能における書き込み機能の場合
には、制御命令を例えば31H″′とし、その次の入力
サイクルでI10ボートを指定し、次の入力サイクルで
アドレスを指定し、次の入力サイクルでバイト数を指定
し、最後の入力サイクルでボート値を指定する。これに
よって、所定のI10ボートに対しボート値が書き込ま
れる。この場合、出力サイクルには何も出力されない。
In addition, in the case of the write function in the I10 boat control function, the control command is, for example, 31H''', the I10 boat is specified in the next input cycle, the address is specified in the next input cycle, and the address is specified in the next input cycle. Specify the number of bytes and specify the vote value on the last input cycle.This will write the vote value for the given I10 vote.In this case, nothing will be output on the output cycle.

次に、実行命令通知機能の場合、実行中の命令通知機能
においては、制御命令を’40H”と入力する。この場
合、実行中のアドレスとその命令の内容が出力サイクル
に出力される。
Next, in the case of the execution command notification function, the control command is input as '40H' in the execution command notification function.In this case, the address being executed and the contents of the command are output in the output cycle.

又、実行命令通知機能において、アクセス中のデータ通
知機能については、制御命令が例えば”41H”と入力
される。この場合、出力サイクルにおいて、アクセス中
のアドレスと、リードライト種別と、そのアクセス値が
出力される。
Furthermore, in the execution command notification function, for the data notification function that is being accessed, a control command, for example, "41H" is input. In this case, in the output cycle, the address being accessed, the read/write type, and its access value are output.

尚、この実行命令通知については、出力される内部状態
データが多いため、出力サイクルを2回から3回以上繰
り返し使用することになる。
In addition, regarding this execution command notification, since a large amount of internal state data is outputted, the output cycle is repeatedly used two to three times or more.

最後(二全ステータス読出し機能については、入力サイ
クルは何もない。即ち、例えばこの実施例のマイクロプ
ロセッサの場合、入力サイクルにおいて何の指示もしな
い場合には、出力サイクルに常にマイクロプロセッサの
全ての内部状態データが所定の順に出力されるといった
構成をとった。こうした機能を用いれば、単なる内部状
態の通知に留まらず、必要に応じてレジスタ等の内容を
書き換えあるいはマイクロプロセッサの動作自体を制御
し、極めて複雑な制御が可能となる。
For the final status read function, there are no input cycles. That is, for example, in the case of the microprocessor of this embodiment, if no instruction is given in the input cycle, all of the microprocessor's The system has a configuration in which internal state data is output in a predetermined order.Using these functions, it is possible to not only notify the internal state, but also rewrite the contents of registers, etc., or control the operation of the microprocessor itself, as necessary. , extremely complex control becomes possible.

本発明は以上の実施例に限定されない。The present invention is not limited to the above embodiments.

実施例においては、マイクロプロセッサの1つの端子を
用いて、制御命令の入力と内部状態データの出力とを行
なう例を示したが、若し、端子数に余裕があれば、2以
上の端子を用いてこれを行なうようにしても差し支えな
い。又、マイクロプロセッサ内部に付加する上記の回路
構成は、同様の機能を持つ種々の回路に置き換えて差し
支えない。
In the embodiment, an example was shown in which one terminal of the microprocessor is used to input control commands and output internal state data, but if there is sufficient number of terminals, two or more terminals can be used. There is no problem if you use it to do this. Further, the above circuit configuration added inside the microprocessor may be replaced with various circuits having similar functions.

(発明の効果) 以上説明した本発明のマイクロプロセッサは、その内部
に内部状態を通知するための回路を組み込んだため、内
部状態通知の際にエミュレータ等の専用のチップを外付
けする等の必要性がない。
(Effects of the Invention) Since the microprocessor of the present invention described above incorporates a circuit for notifying the internal state, it is not necessary to externally attach a dedicated chip such as an emulator when notifying the internal state. There is no sex.

又、マイクロプロセッサの内部状態の通知を、マイクロ
プロセッサの通常の演算処理と平行して行なえるように
したので、マイクロプロセッサの動作に影響なくリアル
タイムな内部状態の通知が可能となる。
Furthermore, since notification of the internal state of the microprocessor can be performed in parallel with the normal arithmetic processing of the microprocessor, real-time notification of the internal state is possible without affecting the operation of the microprocessor.

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

第1図は本発明に関わるマイクロプロセッサの実施例を
示すブロック図、第2図はその入力サイクルと出力サイ
クルの説明図、第3図は本発明のマイクロプロセッサの
機能と入出力サイクルの例を示す一覧表である。 l・・・マイクロプロセッサ、2・・・基板、3・・・
端子、3a・・・入出力端子、4・・・通信線、5・・
・外部回路、6・・・表示装置、7・・・レジスタ、1
1・・・命令認識回路、12・・・出力回路、13・・
・読出し回路。 特許出願人 沖電気工業株式会社
Fig. 1 is a block diagram showing an embodiment of the microprocessor according to the present invention, Fig. 2 is an explanatory diagram of its input cycle and output cycle, and Fig. 3 is an example of the functions and input/output cycle of the microprocessor of the present invention. This is a list showing. l...microprocessor, 2...board, 3...
Terminal, 3a... Input/output terminal, 4... Communication line, 5...
・External circuit, 6... Display device, 7... Register, 1
1... Command recognition circuit, 12... Output circuit, 13...
・Readout circuit. Patent applicant Oki Electric Industry Co., Ltd.

Claims (1)

【特許請求の範囲】 通常の演算処理データ用入出力端子とは別に設けられ、
前記通常の演算処理動作中に、外部回路から制御命令を
入力し、その制御命令に応答して、内部状態データを出
力するための入出力端子と、 所定の入力サイクルに、前記外部回路より発信された前
記制御命令を、前記入出力端子を通じて認識する命令認
識回路と、 前記制御命令に応じて、内部回路の内部状態データを読
み出す読出し回路と、 前記入力サイクルに続く所定の出力サイクルに、前記内
部状態データを、前記入出力端子を通じて出力する出力
回路とを備えたことを特徴とするマイクロプロセッサ。
[Claims] Provided separately from normal arithmetic processing data input/output terminals,
an input/output terminal for inputting a control command from an external circuit during the normal arithmetic processing operation and outputting internal state data in response to the control command; a command recognition circuit that recognizes the input control command through the input/output terminal; a readout circuit that reads internal state data of the internal circuit in accordance with the control command; A microprocessor comprising: an output circuit that outputs internal state data through the input/output terminal.
JP63158077A 1988-06-28 1988-06-28 Microprocessor Pending JPH028941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63158077A JPH028941A (en) 1988-06-28 1988-06-28 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63158077A JPH028941A (en) 1988-06-28 1988-06-28 Microprocessor

Publications (1)

Publication Number Publication Date
JPH028941A true JPH028941A (en) 1990-01-12

Family

ID=15663794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63158077A Pending JPH028941A (en) 1988-06-28 1988-06-28 Microprocessor

Country Status (1)

Country Link
JP (1) JPH028941A (en)

Similar Documents

Publication Publication Date Title
US4780819A (en) Emulator system utilizing a program counter and a latch coupled to an emulator memory for reducing fletch line of instructions stored in the emulator memory
KR100233188B1 (en) Computer systems and methods for obtaining status data without interrupting program execution
US5872954A (en) Method of monitoring registers during emulation
JPH028941A (en) Microprocessor
JPH0550016B2 (en)
JP2808757B2 (en) Microprocessor for debugging
JP2520158B2 (en) Debugging method of digital signal processor
JPH0373011B2 (en)
JPS62205444A (en) Development supporting device
JPS59202546A (en) Debugging device
JPH07113900B2 (en) Emulation chip
JPH0368037A (en) Program developing device
KR920004966A (en) Emulation microcomputer
JPS61239345A (en) I/o simulator
JPH0566961A (en) Software debug system for information processor
JPS6235947A (en) Controller
JPH03113659A (en) Cache memory testing method
JPH01142948A (en) Symbolic debugger for microcomputer
JPS61239335A (en) I/o simulator
JPH04350733A (en) Trace circuit
JPH06175874A (en) In-circuit emulator device
JPS62248043A (en) Memory switching circuit for fetching microcomputer instruction
JPS6111856A (en) Operating method of digital control device
JPS62254243A (en) Information processor
JPH0659934A (en) Program evaluating microcomputer