JPS595931B2 - Address stop method for arithmetic processing system - Google Patents

Address stop method for arithmetic processing system

Info

Publication number
JPS595931B2
JPS595931B2 JP54083190A JP8319079A JPS595931B2 JP S595931 B2 JPS595931 B2 JP S595931B2 JP 54083190 A JP54083190 A JP 54083190A JP 8319079 A JP8319079 A JP 8319079A JP S595931 B2 JPS595931 B2 JP S595931B2
Authority
JP
Japan
Prior art keywords
address
circuit
stop
arithmetic processing
instruction
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
JP54083190A
Other languages
Japanese (ja)
Other versions
JPS567152A (en
Inventor
央 橋本
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
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP54083190A priority Critical patent/JPS595931B2/en
Publication of JPS567152A publication Critical patent/JPS567152A/en
Publication of JPS595931B2 publication Critical patent/JPS595931B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は命令先取り回路を有する演算処理システムにお
いてその演算処理部のアドレスを任意に停止させる演算
処理システムのアドレス停止方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an address stop method for an arithmetic processing system that arbitrarily stops the address of an arithmetic processing unit in an arithmetic processing system having an instruction prefetch circuit.

演算処理システムでは、処理能力の向上を図るために演
算処理部と、この演算処理部と独立して動作するバスコ
ントロール回路とを備え、さらに命令先取り回路を設け
ている。
In order to improve processing performance, an arithmetic processing system includes an arithmetic processing unit, a bus control circuit that operates independently of the arithmetic processing unit, and an instruction prefetch circuit.

ところで、演算処理部は通常次のような動作を行なう。By the way, the arithmetic processing unit normally performs the following operations.

1先ず、命令語を読取る。1 First, read the command word.

2読取つた命令語をデコードする。2. Decode the read instruction word.

3デコードした命令語の内容に従つてアドレスを操作す
る。
3. Manipulate the address according to the contents of the decoded instruction word.

4アドレスの内容を予め定めたレジスタ、メモリあるい
は外部へ出力する。
4. Output the contents of the address to a predetermined register, memory, or external device.

3次の命令語を読取つて動作する。It operates by reading the tertiary command word.

ところで、以上のような演算処理システムでは、2〜4
の動作の時に外部バスを使用せず、この期間中にバスコ
ントロール回路を動作させて外部バスにアドレスを出力
し将来演算処理部で実行する命令を先取りして命令先取
り回路に貯えておく。これにより、演算処理部は命令先
取り回路の中に入つている先取り命令を使用することで
高速処理を可能にしている。しかし、このような演算処
理システムは、演算処理部の実施しているアドレスと、
外部バスをアクセスしているアドレスとが異なつている
ので、実際に演算処理部でどのアドレスの命令を実行し
ているかが判明できない。
By the way, in the above-mentioned arithmetic processing system, 2 to 4
During this operation, the external bus is not used, and the bus control circuit is operated during this period to output an address to the external bus, and an instruction to be executed by the arithmetic processing section in the future is preempted and stored in the instruction prefetch circuit. This allows the arithmetic processing unit to perform high-speed processing by using the prefetch instructions stored in the instruction prefetch circuit. However, such an arithmetic processing system requires the address where the arithmetic processing unit is executed,
Since the address used to access the external bus is different, it is not possible to determine which address the instruction is actually executed in the arithmetic processing unit.

このため、プログラムの誤りを発見して任意のアドレス
で演算処理部を停止して訂正しようとする場合、以上の
システムでは、演算処理部より外部バスに出力されるア
ドレスと、停止したいアドレスとを比較し、一致した時
に演算処理部に停止信号を送る方式をとつている。
Therefore, when you discover an error in a program and try to correct it by stopping the arithmetic processing unit at an arbitrary address, in the above system, the address output from the arithmetic processing unit to the external bus and the address you want to stop are A method is used to compare them and, when they match, send a stop signal to the arithmetic processing unit.

しかし、命令先取り回路を持つ演算処理部では、外部バ
スに出力するアドレスは命令先取り回路に入るためのア
ドレスであり、現在演算処理部で実施しているアドレス
より先(又は後)のものである可能性がある。
However, in an arithmetic processing unit that has an instruction prefetch circuit, the address output to the external bus is an address for entering the instruction prefetch circuit, and is earlier (or later) than the address currently being executed in the arithmetic processing unit. there is a possibility.

従つて、そのまま外部バスに出てくるアドレスと停止し
たいアドレスとを比較し、一致した時に演算処理部へ停
止信号を送るようにした場合、実際に止めたいアドレス
より前のアドレスで停止することになつて不都合である
。そこで、従来、任意のアドレスで停止する手段として
、プログラム自身で監視を取る方式のものがある。その
1つは、被監視プログラム(停止したいアドレスを含む
)の命令語を1語ずつ監視プログラムに読み出してその
命令の実行とアドレスの確認を行ない、停止したいアド
レスか否かを確認していく方式である。他のもう1つの
方式は、被監視プログラムの停止したいアドレスの命令
語を、強制的に停止する命令に書き換えてからアドレス
を停止するものである。
Therefore, if you compare the address that appears on the external bus with the address you want to stop at and send a stop signal to the arithmetic processing unit when they match, you will end up stopping at an address before the address you actually want to stop. It's getting old and inconvenient. Therefore, conventionally, as a means for stopping at an arbitrary address, there is a method in which the program itself monitors it. One method is to read out the command words of the monitored program (including the address you want to stop) word by word to the monitoring program, execute the command, check the address, and check whether it is the address you want to stop. It is. Another method is to rewrite the instruction word of the address of the monitored program to be stopped with a command to forcibly stop the program, and then stop the address.

しかし、前者の方式は、1つの命令語ごとに読出して処
理していくために通常の動作より遅くなり、また後者は
命令語が読出し専用メモリに書かれている場合に命令語
の書き換えができない欠点がある。
However, the former method is slower than normal operation because it reads and processes each instruction word at a time, and the latter method cannot rewrite the instruction words if they are written in read-only memory. There are drawbacks.

本発明は上記実情にかんがみてなされたものであつて、
予め外部の比較回路で停止アドレスの一致をとつてその
命令語に代えて符号をアドレス出力回路に収納し、演算
処理の過程で停止アドレスに達したときに停止命令を実
行することにより、従来の種々の不都合を除去する演算
処理システムのアドレス停止方式を提供するものである
The present invention has been made in view of the above circumstances, and includes:
By matching the stop addresses in advance with an external comparison circuit, storing a code in place of the command word in the address output circuit, and executing the stop command when the stop address is reached in the process of arithmetic processing, the conventional The present invention provides an address stop method for an arithmetic processing system that eliminates various inconveniences.

以下、本発明の実施例について図面を参照して説明する
。図において10はアドレスに従つてデータを演算処理
する中央演算処理部であつて、これはアドレス出力回路
11、命令先取り回路12および演算部13からなつて
いる。即ち、このアドレス出力回路11は外部メモリを
アクセスするアドレス信号を出力するものであつて、こ
こから出たアドレスは一括して後述する外部のラツチ回
路に保持される。命令先取り回路12はデータバスの使
用していない時にアドレス出力回路11から勝手にアド
レスデータを取込んで将来演算部13で実行できるよう
にしている。この演算部13は外部データバスからアド
レス出力回路11を経て命令先取り回路12に入る命令
語に基づいて演算を行なうものである。20は外部のバ
スコントロール回路である。
Embodiments of the present invention will be described below with reference to the drawings. In the figure, reference numeral 10 denotes a central processing unit for processing data according to addresses, and this is composed of an address output circuit 11, an instruction prefetch circuit 12, and a calculation unit 13. That is, this address output circuit 11 outputs an address signal for accessing an external memory, and the addresses output from this circuit are collectively held in an external latch circuit, which will be described later. The instruction prefetch circuit 12 automatically takes in address data from the address output circuit 11 when the data bus is not in use, so that it can be executed by the arithmetic unit 13 in the future. This arithmetic unit 13 performs arithmetic operations based on an instruction word that enters the instruction prefetch circuit 12 from the external data bus via the address output circuit 11. 20 is an external bus control circuit.

このバスコントローラ回路20は比較回路21を有し、
これはアドレスラツチ回路22でラツチされたアドレス
出力回路11のアドレスと、予め設定された停止アドレ
ス設定回路23のアドレスとを比較し、アドレスの一致
か不一致かを判断する。24はアドレスの不一致の時に
アドレスラツチ回路22に保持されているアドレスを取
込んでデコードするアドレスデコーダ、25はメモリで
あつてアドレスデコーダ24の信号で所定アドレスのデ
ータ内容をデータバス26に出力する。
This bus controller circuit 20 has a comparison circuit 21,
This compares the address of the address output circuit 11 latched by the address latch circuit 22 with the preset address of the stop address setting circuit 23 to determine whether the addresses match or do not match. 24 is an address decoder that takes in and decodes the address held in the address latch circuit 22 when the addresses do not match; 25 is a memory that outputs the data contents of a predetermined address to the data bus 26 in response to a signal from the address decoder 24; .

27は比較回路21においてアドレスの一致があつた時
アドレスに代えて停止命令コードをデータバス26に出
力する停止命令コード出力回路である。
27 is a stop instruction code output circuit that outputs a stop instruction code to the data bus 26 in place of the address when the addresses match in the comparison circuit 21.

次に、本発明方式の一連の動作を説明する。先ず、演算
部13のバス不使用時、命令先取り回路12はアドレス
出力回路11のアドレスの命令語を取込んで演算部13
の実行可能な状態を作る。従つて、演算部13は命令先
取り回路12に命令語が入つていればそれを取込んで演
算の実効を行なう。而して、アドレス出力回路11から
アドレスが出ると、このアドレスは一括して外部のアド
レスラツチ回路22に保持される。
Next, a series of operations of the method of the present invention will be explained. First, when the bus of the arithmetic unit 13 is not used, the instruction prefetch circuit 12 takes in the instruction word at the address of the address output circuit 11 and sends it to the arithmetic unit 13.
create an executable state. Therefore, if the instruction word is stored in the instruction prefetch circuit 12, the arithmetic section 13 fetches it and executes the operation. When an address is output from the address output circuit 11, this address is collectively held in an external address latch circuit 22.

このアドレスラツチ回路22で保持したアドレスは比較
回路21に入るが、この比較回路21には停止アドレス
設定回路23からもアドレスが入つている。従つて、ラ
ツチ回路22のアドレスと予め設定した停止アドレスは
比較回路21で比較され、不一致の場合はアドレスラツ
チ回路22に保持されているアドレスがアドレスデコー
ダ24を介してメモリ25を選択指定する。この結果、
選択されたメモリ25からデータがでると、このデータ
はデータバス26を経由してアドレス出力回路11を介
して命令先取り回路12に格納される。
The address held by the address latch circuit 22 is input to a comparison circuit 21, which also contains an address from the stop address setting circuit 23. Therefore, the address of the latch circuit 22 and the preset stop address are compared in the comparison circuit 21, and if they do not match, the address held in the address latch circuit 22 is used to select and designate the memory 25 via the address decoder 24. As a result,
When data is output from the selected memory 25, this data is stored in the instruction prefetch circuit 12 via the data bus 26 and the address output circuit 11.

一方、アドレス出力回路11からでたアドレスが比較回
路21で停止アドレス設定回路23のアドレスと一致し
た時、アドレス出力回路11から指定されるアドレスの
内容の代りに停止命令コード出力回路27から停止命令
コードを出力する。
On the other hand, when the address output from the address output circuit 11 matches the address of the stop address setting circuit 23 in the comparison circuit 21, a stop command is issued from the stop command code output circuit 27 instead of the contents of the address specified from the address output circuit 11. Output the code.

従つて、この場合も停止命令コードがデータバス26を
経由してアドレス出力回路11を介して命令先取り回路
12に取り込まれる。演算部13では、命令先取り回路
12に入つている内容を順次処理していき、停止アドレ
スの時に到達するとその停止命令を実行することにより
停止する。
Therefore, in this case as well, the stop instruction code is taken into the instruction prefetch circuit 12 via the data bus 26 and the address output circuit 11. The arithmetic unit 13 sequentially processes the contents entered in the instruction prefetch circuit 12, and when the stop address is reached, the process stops by executing the stop instruction.

このように、外部で停止アドレスが一致した時、その時
点で停止信号を中央演算処理部10に送つて停止させる
ものでなく、一致した時に命令語を変えて命令先取り回
路に読込ませることにより、命令先取り回路を持つた中
央演算処理部でも確実に指定するアドレスで停止させる
ようにしたものである。
In this way, when the stop addresses match externally, instead of sending a stop signal to the central processing unit 10 to stop it at that point, by changing the command word and reading it into the command prefetch circuit when they match, Even a central processing unit having an instruction prefetch circuit can be reliably stopped at a specified address.

なお、上記実施例で述べた停止命令の代りに「ジアップ
命令」であつてもよい。
Note that a "zip-up command" may be used instead of the stop command described in the above embodiment.

このときは、指定アドレスとなつた場合、任意のプログ
ラム番地に飛ばすことが可能である。さらに、中央演算
処理部10より命令先取り回路12に入れるアドレスか
、または演算器13の処理を目的とするアドレスかの区
別が中央演算処理部10からでているものにあつては、
命令先取り回路に入れるものに関しては前述の方式でア
ドレスを停止でき、また演算部13の目的アドレスで一
致した場合はそのまま停止信号を送る方式でアドレスを
停止させることができる。以上詳記したように本発明に
よれば、外部で停止アドレスが一致した時に停止信号を
演算処理部に送つて停止させるものではなく、一致した
時に命令語を変えて命令先取り回路に格納し演算部で命
令先取り回路の内容を処理していく過程で停止アドレス
に到達した時に停止命令を実行するようにしたもので、
命令先取り回路を持つ中央演算処理部で確実に指定する
アドレスで停止させることができる。
At this time, if the specified address is reached, it is possible to jump to any program address. Furthermore, if the central processing unit 10 determines whether the address is input from the central processing unit 10 to the instruction prefetch circuit 12 or the address is intended for processing by the arithmetic unit 13,
As for what is input into the instruction prefetch circuit, the address can be stopped using the above-mentioned method, and when a match is found in the target address of the arithmetic unit 13, the address can be stopped by directly sending a stop signal. As described in detail above, according to the present invention, when a stop address matches externally, a stop signal is not sent to the arithmetic processing unit to stop it, but when a match occurs, the instruction word is changed and stored in the instruction prefetch circuit, and the operation is executed. The stop command is executed when the stop address is reached in the process of processing the contents of the instruction prefetch circuit.
A central processing unit with an instruction prefetch circuit can reliably stop at a specified address.

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

図は本発明に係る演算処理システムのアドレス停止方式
を適用した一実施例を示すブロツク図である。 10・・・・・・中央演算処理部、11・・・・・・ア
ドレス出力回路、12・・・・・・命令先取り回路、1
3・・・・゜゜演算部、30・・・・・・バスコントロ
ール回路、21・・・・・・比較回路、22・・・・・
・アドレスラツチ回路、23・・・・・・停止アドレス
設定回路、24・・・・・・アドレスデコーダ、25・
・・・・・メモリ、26・・・・・・データバス、27
・・・・・・停止命令コード出力回路。
The figure is a block diagram showing an embodiment to which the address stop method of the arithmetic processing system according to the present invention is applied. 10...Central processing unit, 11...Address output circuit, 12...Instruction prefetch circuit, 1
3...゜゜operating section, 30...bus control circuit, 21...comparison circuit, 22...
・Address latch circuit, 23...Stop address setting circuit, 24...Address decoder, 25.
...Memory, 26...Data bus, 27
...Stop command code output circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 アドレス出力回路のアドレスを命令先取り回路で取
込んで演算を行なう演算処理システムにおいて、前記ア
ドレス出力回路の指定アドレスと予め設定した停止アド
レス設定回路の停止アドレスとを比較し、両アドレスの
不一致の時に前記指定アドレスでメモリを選択してメモ
リからのデータを前記命令先取り回路に入れ、また両ア
ドレスの一致の時にアドレスで示すメモリからのデータ
の代りに停止命令コードを出して前記命令先取り回路に
入れ、演算処理の過程で停止命令コードに到達したとき
停止を行なうようにした演算処理システムのアドレス停
止方式。
1. In an arithmetic processing system in which an instruction prefetch circuit fetches the address of an address output circuit and performs arithmetic operations, the designated address of the address output circuit is compared with a preset stop address of a stop address setting circuit, and the difference between the two addresses is determined. When the memory is selected at the designated address and data from the memory is input to the instruction prefetch circuit, and when both addresses match, a stop instruction code is output to the instruction prefetch circuit in place of the data from the memory indicated by the address. An address stop method for an arithmetic processing system that stops when a stop command code is reached in the process of arithmetic processing.
JP54083190A 1979-06-30 1979-06-30 Address stop method for arithmetic processing system Expired JPS595931B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54083190A JPS595931B2 (en) 1979-06-30 1979-06-30 Address stop method for arithmetic processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54083190A JPS595931B2 (en) 1979-06-30 1979-06-30 Address stop method for arithmetic processing system

Publications (2)

Publication Number Publication Date
JPS567152A JPS567152A (en) 1981-01-24
JPS595931B2 true JPS595931B2 (en) 1984-02-08

Family

ID=13795396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54083190A Expired JPS595931B2 (en) 1979-06-30 1979-06-30 Address stop method for arithmetic processing system

Country Status (1)

Country Link
JP (1) JPS595931B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01161731U (en) * 1988-04-30 1989-11-10

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04350735A (en) * 1991-05-29 1992-12-04 Nec Corp Microprocessor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01161731U (en) * 1988-04-30 1989-11-10

Also Published As

Publication number Publication date
JPS567152A (en) 1981-01-24

Similar Documents

Publication Publication Date Title
JP2526688B2 (en) Programmable controller and partial execution method of sequence program
JPH0130161B2 (en)
US5600807A (en) Programmable controller capable of updating a user program during operation by switching between user program memories
JPS6055849B2 (en) Command control method
JPS595931B2 (en) Address stop method for arithmetic processing system
JP2859048B2 (en) Microcomputer
JP3190945B2 (en) Micro program control circuit
KR100294655B1 (en) How to Control a My Programmable Controller That Performs a Multitask Function
JP3024719B2 (en) Arithmetic processing method of programmable controller
JPS5835648A (en) Program execution controlling system
JP3331599B2 (en) Micro program controller
JPH1011320A (en) Rom program monitor device of processor of computer or the like
JPS6020769B2 (en) Microprogram control method
JPS5822765B2 (en) Program loading method in electronic computer system
JPH03246602A (en) Programmable controller
JPS616704A (en) Programmable controller
JPS63126007A (en) Programmable controller
JPS6156820B2 (en)
JPH0454531A (en) Program reading circuit
JPH05241853A (en) Programmable controller
JPH03164945A (en) Data processor
JPS6220582B2 (en)
JPH02263243A (en) Runaway processor for computer
JPH0578052B2 (en)
JP2001350508A (en) Programmable controller