JPH01255932A - Instruction processor - Google Patents

Instruction processor

Info

Publication number
JPH01255932A
JPH01255932A JP63083758A JP8375888A JPH01255932A JP H01255932 A JPH01255932 A JP H01255932A JP 63083758 A JP63083758 A JP 63083758A JP 8375888 A JP8375888 A JP 8375888A JP H01255932 A JPH01255932 A JP H01255932A
Authority
JP
Japan
Prior art keywords
instruction
processing
input
data
prediction
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
JP63083758A
Other languages
Japanese (ja)
Inventor
Yoshihisa Ogawa
小川 義久
Toshiyuki Odakawa
小田川 敏之
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 JP63083758A priority Critical patent/JPH01255932A/en
Publication of JPH01255932A publication Critical patent/JPH01255932A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To shorten instruction processing time by predicting an introduced instruction, executing a precedence processing, and when the prediction is wrong, executing the processing in accordance with the introduced instruction. CONSTITUTION:A first processing means to execute the processing in accordance with a prescribed instruction introduced successively executes the precedence processing in accordance with the predictive result. A deciding means 131 decides whether or not the prediction by a predictive means 111 is right and the decided result is supplied to a second processing means 141. When the predictive result by the predictive means 111 is wrong, the second processing means 141 executes the processing in accordance with the introduced instruction. Thus, since the instruction introduced is predicted and the precedence processing is executed, instruction processing time can be shortened.

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 作用 実施例 ■、実施例と第1図との対応関係 ■、実施例の構成 ■、実施例の動作 (i)入出力命令 (ii )起動検出割込み発生時の動作(iii)デー
タ/ステータス転送完了割込み発生時の動作 ■、実施例のまとめ ■8発明の変形態様 発明の効果 〔概 要〕 順次導入される命令に応じた処理を実行するようにした
命令処理装置に関し、 命令処理時間を短縮することを目的とし、命令の導入順
序に関する情報を保持し、次に導入される命令の予測を
行なう予測手段と、予測手段による予測結果に応じて先
行処理を実行する第1処理手段と、命令が導入されたと
きに、予測手段による予測が的中したか否かの判定を行
なう判定手段と、判定手段における判定結果が導入され
、予測手段による予測が的中しなかったときに、導入さ
れた命令に応じた処理を実行する第2処理手段とを備え
るように構成する。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Action Examples ■, Correspondence between the Examples and FIG. 1 ■ , Structure of the embodiment ■, Operation of the embodiment (i) Input/output command (ii) Operation when a startup detection interrupt occurs (iii) Operation when a data/status transfer completion interrupt occurs ■, Summary of the embodiment ■ 8. Effects of the invention in modified form [Summary] Regarding an instruction processing device configured to execute processing according to instructions introduced sequentially, the purpose of the invention is to reduce instruction processing time by retaining information regarding the order of instruction introduction, A prediction means for predicting an instruction to be introduced next; a first processing means for executing advance processing according to a prediction result by the prediction means; A second processing means that executes a process according to the introduced instruction when the judgment result of the judgment means is introduced and the prediction by the prediction means is not correct. Configure it as follows.

〔産業上の利用分野〕[Industrial application field]

本発明は、命令処理装置に関し、特に、順次導入される
命令に応じた処理を実行するようにした命令処理装置に
関するものである。
The present invention relates to an instruction processing device, and more particularly to an instruction processing device that executes processing according to instructions that are sequentially introduced.

〔従来の技術〕[Conventional technology]

通常の命令処理装置は、装置の簡略化、柔軟性等の理由
により、導入される命令に対してプログラム処理を行な
うものが一般的である。
A normal instruction processing device generally performs program processing on introduced instructions for reasons such as device simplification and flexibility.

例えば、命令処理装置の一例として、回線とホストコン
ピュータ等との間のデータのやりとりを制御する通信制
御処理装置に内蔵されたチャネル接続アダプタを考える
For example, as an example of an instruction processing device, consider a channel connection adapter built into a communication control processing device that controls data exchange between a line and a host computer or the like.

第4図に、通信制御処理装置を用いた通信システムの構
成を示す。
FIG. 4 shows the configuration of a communication system using the communication control processing device.

図において、ホストコンピュータ411は、チャネル装
置413を介して通信制御処理装置421に接続されて
おり、更に外部の回線に接続されている。
In the figure, a host computer 411 is connected to a communication control processing device 421 via a channel device 413, and is further connected to an external line.

この通信制御処理装置421は、通信制御処理装置42
1の全体の制御を行なう中央処理部(CCU)441と
、CCU441が実行する制御プログラム、データ等を
格納する主記憶部(MSU)443と、ホストコンピュ
ータ411側とのデータのやりとりを制御するチャネル
接続アダプタ431と、複数本の回線を収容するライン
ユニット453と、ラインユニット453を介した回線
側とのデータのやりとりを制御する回線制御アダプタ4
51とを備えている。
This communication control processing device 421 is a communication control processing device 42
1, a main storage unit (MSU) 443 that stores control programs executed by the CCU 441, data, etc., and a channel that controls data exchange with the host computer 411 side. A connection adapter 431, a line unit 453 that accommodates multiple lines, and a line control adapter 4 that controls data exchange with the line side via the line unit 453.
51.

CCU441はチャネル接続アダプタ431あるいは回
線制御アダプタ451に対して各種の入出力命令を供給
する。チャネル接続アダプタ431、回線制御アダプタ
451は、マイクロプログラムを実行することにより、
供給された命令に応じた処理を実行する。
The CCU 441 supplies various input/output commands to the channel connection adapter 431 or the line control adapter 451. The channel connection adapter 431 and line control adapter 451 execute microprograms to
Executes processing according to the supplied instructions.

例えば、ホストコンピュータ411側からチャネル接続
アダプタ431に対して割込み(通信を開始するための
起動割込みやデータ送出が終了したときの完了割込み等
)が発生すると、チャネル接続アダプタ431は所定の
データ(割込みの種類や割込みの供給元のアドレス等)
を作成する。
For example, when an interrupt is generated from the host computer 411 to the channel connection adapter 431 (such as a startup interrupt to start communication or a completion interrupt when data transmission is finished), the channel connection adapter 431 interrupts the channel connection adapter 431 with predetermined data (interrupt (type of interrupt, address of interrupt source, etc.)
Create.

次に、CCU441は入力命令を順次チャネル接続アダ
プタ431に送り、チャネル接続アダプタ431は受は
取った入力命令に対応した応答データをCCU441に
供給する。
Next, the CCU 441 sequentially sends the input commands to the channel connection adapter 431, and the channel connection adapter 431 supplies response data corresponding to the received input commands to the CCU 441.

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

ところで、上述したチャネル接続アダプタ431にあっ
ては、CCU441から命令を受は取ると、マイクロプ
ログラムがその都度命令に対処していたため、命令処理
時間が長くなるという問題点があった。
By the way, the above-mentioned channel connection adapter 431 has a problem in that the microprogram deals with the instruction each time it receives an instruction from the CCU 441, which increases the instruction processing time.

チャネル接続アダプタ431による処理をハードウェア
化することによって処理時間を短縮することは可能では
あるが、柔軟性に欠けることになる。また、柔軟性を考
慮してハードウェア化を行なうことも可能ではあるが、
回路が複雑になると共にコストアップにつながることに
なる。
Although it is possible to shorten the processing time by implementing the processing by the channel connection adapter 431 in hardware, it lacks flexibility. Also, although it is possible to implement hardware in consideration of flexibility,
This increases the complexity of the circuit and increases the cost.

従って、柔軟性を維持すると共に、比較的簡単な回路構
成で処理時間の短縮が可能な方式が望まれていた。
Therefore, there has been a desire for a system that can maintain flexibility and shorten processing time with a relatively simple circuit configuration.

本発明は、このような点にかんがみて創作されたもので
あり、命令処理時間を短縮するようにした命令処理装置
を提供することを目的としている。
The present invention was created in view of the above points, and an object of the present invention is to provide an instruction processing device that reduces instruction processing time.

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

第1図は、本発明の命令処理装置の原理ブロック図であ
る。
FIG. 1 is a block diagram of the principle of an instruction processing device according to the present invention.

図において、順次導入される所定の命令に応じて処理を
行なう命令処理装置における予測手段111は、命令の
導入順序に関する情報を保持し、次に導入される命令の
予測を行なう。
In the figure, a prediction unit 111 in an instruction processing device that performs processing according to predetermined instructions that are sequentially introduced holds information regarding the instruction introduction order and predicts the next instruction to be introduced.

第1処理手段121は、予測手段111による予測結果
に応じて先行処理を実行する。
The first processing means 121 executes advance processing according to the prediction result by the prediction means 111.

判定手段131は、命令が導入されたときに、予測手段
111による予測が的中したか否かの判定を行なう。
The determining means 131 determines whether the prediction by the predicting means 111 is correct when the instruction is introduced.

第2処理手段141は、判定手段131における判定結
果が導入され、予測手段111による予測が的中しなか
ったときに、導入された命令に応じた処理を実行する。
The second processing means 141 receives the judgment result from the judgment means 131 and executes processing according to the introduced instruction when the prediction by the prediction means 111 is not correct.

従って、全体として、導入される命令を予測して第1処
理手段121による先行処理を実行すると共に、予測が
外れたときに第2処理手段141による処理を実行する
ように構成されている。
Therefore, the overall configuration is such that the first processing means 121 executes the preliminary processing by predicting the command to be introduced, and when the prediction is incorrect, the second processing means 141 executes the processing.

〔作 用〕[For production]

予測手段111は次に導入される命令を予測し、第1処
理手段121はその予測結果に応じた先行処理を実行す
る。また、判定手段131は、予測手段111による予
測が的中したか否かを判定し、その判定結果は第2処理
手段141に供給される。
The prediction means 111 predicts the next instruction to be introduced, and the first processing means 121 executes advance processing according to the prediction result. Further, the determining means 131 determines whether or not the prediction by the predicting means 111 is correct, and the determination result is supplied to the second processing means 141.

予測手段111による予測結果が外れると、第2処理手
段141は導入された命令に応じた処理を実行する。
If the prediction result by the prediction means 111 is incorrect, the second processing means 141 executes processing according to the introduced command.

本発明にあっては、導入される命令を予測して先行処理
を実行し、予測が外れた場合に、導入された命令に応じ
た処理を実行することにより、命令処理時間を短縮する
ことができる。
According to the present invention, the instruction processing time can be shortened by predicting the instruction to be introduced and performing advance processing, and when the prediction is incorrect, executing processing according to the introduced instruction. can.

〔実施例〕〔Example〕

以下、図面に基づいて本発明の実施例について詳細に説
明する。
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第2図は、本発明の命令処理装置を適用した一実施例の
構成を示す。
FIG. 2 shows the configuration of an embodiment to which the instruction processing device of the present invention is applied.

゛の・・1 ここで、本発明の実施例と第1図との対応関係を示して
おく。
1. Here, the correspondence between the embodiment of the present invention and FIG. 1 will be shown.

予測手段111は、アドレスRAM211.アドレスレ
ジスタ213に相当する。
The prediction means 111 uses the address RAM 211. Corresponds to the address register 213.

第1処理手段121は、入力データバッファ(IDB)
223.記憶領域321に相当する。
The first processing means 121 is an input data buffer (IDB)
223. This corresponds to the storage area 321.

判定手段131は、入力データ読出し制御部231、命
令デコーダ2411割込み制御部243に相当する。
The determining means 131 corresponds to the input data read control section 231, the instruction decoder 2411, and the interrupt control section 243.

第2処理手段141は、記憶領域321.ALU341
に相当する。
The second processing means 141 includes a storage area 321. ALU341
corresponds to

以上のような対応関係があるものとして、以下本発明の
実施例について説明する。
Examples of the present invention will be described below assuming that the correspondence relationship as described above exists.

ニー実衡汎勿揚威 第2図において、通信制御処理装置内のチャネル接続ア
ダプタ200及びCeO241はバス接続されている(
通信制御処理装置の全体構成は、第4図に示したものと
同じものとする)。
In Figure 2, the channel connection adapter 200 and CeO 241 in the communication control processing device are connected by a bus (
The overall configuration of the communication control processing device is assumed to be the same as that shown in FIG. 4).

チャネル接続アダプタ200は、チャネル接続アダプタ
200の全体の制御を行なうチャネル制御プロセッサ3
10と、チャネル制御プロセッサ310が実行する制御
プログラムを格納する制御記憶520と、チャネル制御
プロセッサ310とチャネル装置(図示せず)との間の
データや指示のやりとりを制御するためのチャネルイン
タフェース制御部530と、チャネル制御プロセッサ3
1OとCeO241との間のデータや指示のやりとりを
制御するためのバスインタフェース制御部210とを備
えている。
The channel connection adapter 200 includes a channel control processor 3 that controls the entire channel connection adapter 200.
10, a control memory 520 that stores a control program executed by the channel control processor 310, and a channel interface control unit for controlling the exchange of data and instructions between the channel control processor 310 and a channel device (not shown). 530 and channel control processor 3
It includes a bus interface control unit 210 for controlling the exchange of data and instructions between the CeO 1O and the CeO 241.

また、バスインタフェース制御部210は、次に導入さ
れる命令に関する情報を保持するアドレスRAM211
と、導入される入力命令を保持するアドレスレジスタ2
13と、命令をデコードする命令デコーダ241と、チ
ャネル制御プロセッサ310への割込み信号の出力を制
御する割込み制御部243と、予測した命令と実際に導
入された命令とが一致したか否かの判定を行なう入力デ
ータ読出し制御部231と、命令に対応する応答データ
を一時保持する入力データバッファ223と、マルチプ
レクサ(MPX)225.  レシーバ251、ドライ
バ253とを備えている。
The bus interface control unit 210 also stores an address RAM 211 that holds information regarding the next instruction to be introduced.
and an address register 2 that holds the input instruction to be introduced.
13, an instruction decoder 241 that decodes the instruction, an interrupt control unit 243 that controls the output of an interrupt signal to the channel control processor 310, and a determination as to whether or not the predicted instruction matches the actually introduced instruction. an input data read control unit 231 that performs the above operations, an input data buffer 223 that temporarily holds response data corresponding to commands, and a multiplexer (MPX) 225 . It includes a receiver 251 and a driver 253.

更に、チャネル制御プロセッサ310は、制御記憶52
0に格納されたマイクロプログラムに応じた処理を実行
するALU341と、命令に対応する応答データを格納
する記憶領域321と、2つのMPX331,333と
を備えている。
Additionally, channel control processor 310 includes control memory 52
0, a storage area 321 for storing response data corresponding to commands, and two MPXs 331 and 333.

CCl241からバスインタフェース制御部210に供
給された命令は、レシーバ251を介して、ALU34
1.命令デコーダ241.アドレスレジスタ213及び
アドレスRAM211のデータ端子に供給される。命令
デコーダ241の出力端は割込み制御部243に接続さ
れており、更に割込み制御部243はALU341及び
入力データ読出し制御部231に接続されている。アド
レスレジスタ213の出力端はアドレスRAM211の
アドレス端子に接続されており、アドレスRAM211
のデータ端子(出力側)は入力データ読出し制御部23
1及びMPX331の一方の入力端に接続されている。
The commands supplied from the CCl 241 to the bus interface control unit 210 are sent to the ALU 34 via the receiver 251.
1. Instruction decoder 241. It is supplied to the data terminals of the address register 213 and address RAM 211. The output terminal of the instruction decoder 241 is connected to an interrupt control section 243, and the interrupt control section 243 is further connected to the ALU 341 and the input data read control section 231. The output terminal of the address register 213 is connected to the address terminal of the address RAM 211.
The data terminal (output side) is the input data read control section 23
1 and one input end of MPX331.

MPX331の他方の入力端はALU341に接続され
ており、MPX331の出力端は記憶領域321のアド
レス端子に接続されている。記憶領域321の入力側デ
ータ端子はALU341に接続されており、記憶領域3
21の出力側データ端子はMPX333の一方の入力端
に接続されている。
The other input end of MPX 331 is connected to ALU 341, and the output end of MPX 331 is connected to the address terminal of storage area 321. The input side data terminal of the storage area 321 is connected to the ALU 341, and the input side data terminal of the storage area 321 is connected to the ALU 341.
The output side data terminal of 21 is connected to one input terminal of MPX333.

MPX333の他方の入力端はALU341に接続され
ており、MPX333の出力端はMPX225の一方の
入力端及び入力データバッファ223を介してMPX2
25の他方の入力端に接続されている。
The other input end of MPX333 is connected to ALU341, and the output end of MPX333 is connected to MPX2 through one input end of MPX225 and input data buffer 223.
25.

MPX225の出力端から出力されるデータは、ドライ
バ253を介してCCl241に送られる。
Data output from the output end of the MPX 225 is sent to the CCl 241 via the driver 253.

また、ALU341はアドレスレジスタ213及びCC
l241に接続されており、これらの接続線を介して、
ALU341から出力される割込み信号の供給が行なわ
れる。
In addition, the ALU 341 is connected to the address register 213 and the CC
l241, and through these connection lines,
An interrupt signal output from the ALU 341 is supplied.

I−」1血ヨj■が1 次に、上述した本発明実施例の動作を説明する。I-” 1 blood yoj■ is 1 Next, the operation of the embodiment of the present invention described above will be explained.

いま、チャネル装置側からの要求に応じて、チャネル制
御プロセッサ321内のALU341からCCl241
に対して割込みが出力された場合を考える。
Now, in response to a request from the channel device side, the CCl 241 from the ALU 341 in the channel control processor 321
Consider the case where an interrupt is output for .

ALU341からの割込みを受は取ったCCU441は
、チャネル接続アダプタ200に対して各種の命令を出
力し、チャネル接続アダプタ200は命令に対応した処
理を実行する。
The CCU 441 that receives the interrupt from the ALU 341 outputs various commands to the channel connection adapter 200, and the channel connection adapter 200 executes processing corresponding to the commands.

尚、ALU341からCCl241に出力される割込み
としては、ホストコンピュータ等からこの通信制御処理
装置に対する起動がかかったときに出力される■起動検
出側込みと、ホストコンピュータ等からのデ・−夕やス
テータス(指示信号等)の出力が終了したときに出力さ
れる■データ/ステータス転送完了側込みの2つを考え
る。
Note that the interrupts output from the ALU 341 to the CCl 241 include the activation detection side input that is output when the communication control processing device is activated from the host computer, etc., and data and status from the host computer, etc. Consider two cases: (1) data/status transfer completion side, which is output when the output of (indication signal, etc.) is completed.

−〇〇−心州か命皇 最初に、CCl241からチャネル接続アダプタ200
に送られる入出力命令について説明する。
-〇〇- Shinshu or Mikou First, from CCl241 to channel connection adapter 200
We will explain the input/output commands sent to.

第1表に、入力命令の一例を示す(例えば、10種類の
入力命令があるものとし、その内の一部を示す)a 表において、「アドレス」は、CCl241が入力命令
を出力してデータの読込みを行なうための外部レジスタ
(仮想のレジスタ)のアドレス(以後命令アドレスと称
する)であり、実際に読み込むデータは、記憶領域32
1のこの命令アドレスに対応する領域に保持されている
Table 1 shows an example of an input command (for example, it is assumed that there are 10 types of input commands, and some of them are shown). This is the address (hereinafter referred to as instruction address) of an external register (virtual register) for reading the data, and the data to be actually read is stored in the storage area 32.
1 is held in the area corresponding to this instruction address.

また、第2表に、出力命令の一例を示す(例えば、10
種類の入力命令があるものとし、その内の一部を示す)
Table 2 also shows an example of output commands (for example, 10
Assume that there are several types of input commands, some of which are shown below)
.

第2表 次に、チャネル装置側から起動がかかり、ALU341
から起動検出割込みが出力された場合の詳細動作を説明
する。
Table 2 Next, the channel device side starts up, and the ALU341
The detailed operation when a startup detection interrupt is output will be explained.

第3図に、起動検出割込みがCeO241に供給された
ときの動作タイミングを示す。図において、「命令レジ
スタ」は、CeO241が入力命令を出力したときに応
答データを読み込むための仮想の外部レジスタを、「命
令デコード」は命令デコーダ241によるデコード動作
を、rWE。
FIG. 3 shows the operation timing when the activation detection interrupt is supplied to the CeO 241. In the figure, "instruction register" is a virtual external register for reading response data when the CeO 241 outputs an input command, and "instruction decode" is the decoding operation by the instruction decoder 241, rWE.

はアドレスRAM211に供給されるライトイネーブル
信号をそれぞれ示している。
indicate write enable signals supplied to the address RAM 211, respectively.

また、「アドレスレジスタ」はアドレスレジスタ213
の下位4ビツトに格納されるアドレスデータを、「アド
レスRAMJはアドレスRAM211から出力されるデ
ータを、「入力データバッファJは入力データバッファ
223に格納されるデータをそれぞれ示している。
Also, the "address register" is the address register 213
The address data stored in the lower 4 bits of ``address RAMJ'' indicates the data output from the address RAM 211, and ``input data buffer J indicates the data stored in the input data buffer 223,'' respectively.

ALU341から起動検出割込みが出力され、その割込
みに応じてCeO441が出力する一連の入出力命令は
、通常以下のような順序となる。
A startup detection interrupt is output from the ALU 341, and a series of input/output instructions output by the CeO 441 in response to the interrupt are normally in the following order.

■INPUT (5) ■INPUT (0) ■INPUT (1) ■0UTPUT (0) ここで、INPUT (X)は命令アドレスXに対応し
た入力命令を、0UTPUT (Y)は命令アドレスY
に対応した出力命令をそれぞれ表している。
■INPUT (5) ■INPUT (0) ■INPUT (1) ■0UTPUT (0) Here, INPUT (X) is the input instruction corresponding to instruction address X, and 0UTPUT (Y) is the instruction address Y.
Each represents an output command corresponding to .

また、ALU341から起動検出割込みを出力するとチ
ャネル接続アダプタ200では、バスインタフェース制
御部210のアドレスレジスタ213の上位2ビツトに
“’01”を格納すると共に、起動時のデータ(上述の
■〜■の入力命令に応じてCeO241に返送するデー
タ)を作成して記憶領域321に格納する。
Furthermore, when a startup detection interrupt is output from the ALU 341, the channel connection adapter 200 stores "'01" in the upper two bits of the address register 213 of the bus interface control unit 210, and also stores the startup data (the above-mentioned (data to be sent back to the CeO 241 in response to an input command) is created and stored in the storage area 321.

先ず、起動検出割込みを受は取ったCeO241は、入
力命令INPUT (5)をチャネル接続アダプタ20
0に送る。
First, the CeO 241 that received the startup detection interrupt sends the input command INPUT (5) to the channel connection adapter 20.
Send to 0.

この命令はレシーバ251を介して命令デコーダ241
に供給されると共に、この命令アドレスデータ“”5”
(4ビツトデータ“’0101″゛)がアドレスレジス
タ213の下位4ビツトに格納される。
This instruction is sent to the instruction decoder 241 via the receiver 251.
At the same time, this instruction address data ""5"
(4-bit data “'0101”) is stored in the lower 4 bits of the address register 213.

命令デコーダ241は、入力命令INPUT(5)をデ
コードし、割込み制御部243はそのデコード結果に応
じて、ALU341に割込み信号を送る。
The instruction decoder 241 decodes the input instruction INPUT (5), and the interrupt control unit 243 sends an interrupt signal to the ALU 341 according to the decoding result.

割込み制御部243からの割込みを受は取るとALU3
41は、INPUT (5)に対応したデータ(CeO
441に供給した割込みが起動検出割込みであるかデー
タ/ステータス転送完了割込みであるか、及びどのチャ
ネル接続アダプタ200がCeO241に割込みを送っ
たかを示すデータ)を記憶領域321から読み出し、M
PX333.225及びドライバ253を介してCeO
44工に送出する。
When the interrupt from the interrupt control unit 243 is received, the ALU3
41 is the data (CeO
441 is a startup detection interrupt or a data/status transfer completion interrupt, and which channel connection adapter 200 sent the interrupt to the CeO 241) from the storage area 321,
CeO via PX333.225 and driver 253
Send to 44th engineer.

また、このとき、アドレスレジスタ213からアドレス
RAM211のアドレス端子にデーダ゛010101”
が供給される。アドレスRAM211の該当する領域に
は、次に入力が予測される入力命令INPUT (0)
の命令アドレスデータII OI+が格納されており、
この命令アドレスデータ゛0゛を入力データ読出し制御
部231及びMPX331を介して記憶領域321のア
ドレス端子に供給する。
Also, at this time, the data “010101” is transferred from the address register 213 to the address terminal of the address RAM 211.
is supplied. The corresponding area of the address RAM 211 contains an input command INPUT (0) that is expected to be input next.
The instruction address data II OI+ of is stored,
This command address data "0" is supplied to the address terminal of the storage area 321 via the input data read control section 231 and MPX 331.

記憶領域321では、アドレスRAM211からの命令
アドレスデータ゛°0゛で指定される領域に格納されて
いる入力命令INPUT (0)の応答データを出力し
、この応答データはMPX333を介して入力データバ
ッファ223に保持される。
The storage area 321 outputs the response data of the input command INPUT (0) stored in the area specified by the command address data ゛°0゛ from the address RAM 211, and this response data is sent to the input data buffer 223 via the MPX 333. is maintained.

次に、CeO241からチャネル接続アダプタ200に
入力命令INPUT (0)が出力されると、命令デコ
ーダ241はこの命令をデコードし、割込み制御部24
3はデコード結果を入力データ読出し制御部231に供
給する。
Next, when the input command INPUT (0) is output from the CeO 241 to the channel connection adapter 200, the command decoder 241 decodes this command and interrupts the interrupt controller 24.
3 supplies the decoding result to the input data read control section 231.

入力データ読出し制御部231では、先にアドレスRA
M211から入力されている入力命令INPUT(0)
の命令アドレスデータ“0”と、割込み制御部243か
ら入力された入力命令INPUT(,0)のデコード結
果とに基づいて、予測が的中したか否かを判定する。予
測が的中したときは、MPX225に切替え指示を送り
、入力データバッファ223に保持されている応答デー
タをCCU441に送出する。
The input data read control unit 231 first reads the address RA.
Input command INPUT (0) input from M211
Based on the instruction address data "0" of , and the decoding result of the input instruction INPUT(,0) input from the interrupt control unit 243, it is determined whether the prediction is correct. When the prediction is correct, a switching instruction is sent to the MPX 225, and the response data held in the input data buffer 223 is sent to the CCU 441.

CCU441への応答データの送出が終了すると、同様
にして、次に入力が予測される入力命令INPUT (
1)の応答データが入力データバッファ223に保持さ
れる。次に入力命令INPUT(1)が導入され、予測
が一致すると、この入力データバッファ223に格納さ
れた応答データがCCU441に送出される。
When the sending of the response data to the CCU 441 is completed, the input command INPUT (
The response data of 1) is held in the input data buffer 223. Next, an input command INPUT (1) is introduced, and if the predictions match, the response data stored in this input data buffer 223 is sent to the CCU 441.

また、入力データ読出し制御部231による予測が的中
しなかったときには、その旨の判定結果が入力データ読
出し制御部231から割込み制御部243に供給される
。割込み制御部243は、この判定結果を受は取ると、
ALU341に対して割込み信号を送り、以後ALU3
41によるプログラム処理が行なわれる。
Further, when the prediction by the input data read control section 231 is not correct, a determination result to that effect is supplied from the input data read control section 231 to the interrupt control section 243. When the interrupt control unit 243 receives this determination result,
Sends an interrupt signal to ALU341, and thereafter ALU3
Program processing according to 41 is performed.

また、このとき(予測が的中しなかったとき)、アドレ
スRAM211へのデータの書込みが有効となり(例え
ば割込み制御部243からアドレスRAM211にライ
トイネーブル信号が送られる)、CCU441から供給
されている命令アドレスデータをアドレスRAM211
に書き込む。これによって、アドレスRAM211に格
納された予測データがその都度更新される。
Also, at this time (when the prediction is not correct), writing of data to the address RAM 211 is enabled (for example, a write enable signal is sent from the interrupt control unit 243 to the address RAM 211), and the command supplied from the CCU 441 Address data to address RAM211
write to. As a result, the prediction data stored in the address RAM 211 is updated each time.

以後、同様にして、各入力命令に対応した先行処理を行
なう。
Thereafter, advance processing corresponding to each input command is performed in the same manner.

次に、チャネル装置側からのデータ転送あるいはステー
タス転送が終了し、ALU341からCCU441に対
してデータ/ステータス転送完了割込みが出力された場
合の動作を説明する。
Next, the operation when data transfer or status transfer from the channel device side is completed and a data/status transfer completion interrupt is output from the ALU 341 to the CCU 441 will be described.

このとき、CCU441から出力される命令は、以下の
ような順序になる。
At this time, the instructions output from the CCU 441 are in the following order.

■INPUT (5) ■INPUT (2) ■INPUT (3) ■INPUT (4) ■0UTPUT (′、) ALU341からデータ/ステータス転送完了割込みを
出力するとチャネル接続アダプタ200は、バスインタ
フェース制御部210のアドレスレジスタ213の上位
2ビツトに“10°′を格納すると共に、データ(ステ
ータス)転送に必要な所定のデータを作成して記憶領域
321に格納する。
■INPUT (5) ■INPUT (2) ■INPUT (3) ■INPUT (4) ■0UTPUT (',) When the ALU 341 outputs a data/status transfer completion interrupt, the channel connection adapter 200 outputs the address of the bus interface control unit 210. “10°” is stored in the upper two bits of the register 213, and predetermined data necessary for data (status) transfer is created and stored in the storage area 321.

以後、上述したr(ii)起動検出割込み発生時の動作
」と同様にして、各入力命令に対応した先行処理を行な
う。
Thereafter, the preceding processing corresponding to each input command is performed in the same manner as in the above-mentioned "r(ii) Operation at the time of activation detection interrupt occurrence".

■、−1のまとめ このように、CCU441からチャネル接続アダプタ2
00に各種の入力命令が送られると、次に受は取る入力
命令の命令アドレスデータがアドレスRAM211から
読み出される。そして、この命令アドレスデータに基づ
いて応答データを記憶領域321から読み出し、入力デ
ータバンファ223に保持する。
■Summary of -1 In this way, from CCU441 to channel connection adapter 2
When various input commands are sent to 00, the command address data of the next input command to be received is read from the address RAM 211. Then, response data is read from the storage area 321 based on this command address data and held in the input data buffer 223.

次の入力命令がCCU441からチャネル接続アダプタ
200に入力され、予測が的中すると、入力データバッ
ファ223に保持しておいた応答データをCCU441
に供給する。また、予測が的中しなかったときは、AL
U341に割込み信号を送り、ALU341によるプロ
グラム処理を実行する。
When the next input command is input from the CCU 441 to the channel connection adapter 200 and the prediction is correct, the response data held in the input data buffer 223 is transferred to the CCU 441.
supply to. Also, if the prediction is not correct, AL
An interrupt signal is sent to U341, and program processing by ALU341 is executed.

従って、導入される命令を予測して応答データを用意し
ておくことにより、命令処理時間を短縮することができ
る。
Therefore, by predicting the command to be introduced and preparing response data, the command processing time can be shortened.

V、0の・ン″l誼、 なお、上述した本発明の実施例にあっては、先行処理と
して、入力命令の応答データを用意するようにしたが、
先行処理が可能なもの(応答データを用意でき、あるい
は応答データが不要であり、更に処理の分岐が頻繁でな
い場合)であれば何でもよい。
Note that in the embodiment of the present invention described above, the response data of the input command is prepared as a preliminary process.
Any method may be used as long as advance processing is possible (response data can be prepared or response data is not required, and processing branches are infrequent).

また、実施例では、通信制御処理装置内のチャネル接続
アダプタ200における処理を考えたが、他にもプログ
ラム処理を行なう処理装置に本発明を通用することがで
きる。
Further, in the embodiment, the processing in the channel connection adapter 200 in the communication control processing device was considered, but the present invention can be applied to other processing devices that perform program processing.

更に、「1.実施例と第1図との対応関係」において、
本発明と実施例との対応関係を説明しておいたが、これ
に限られることはなく、本発明には各種の変形態様があ
ることは当業者であれば容易に推考できるであろう。
Furthermore, in "1. Correspondence between Examples and FIG. 1",
Although the correspondence between the present invention and the embodiments has been described, those skilled in the art will easily assume that the present invention is not limited to this and that there are various modifications.

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

上述したように、本発明によれば、導入される命令を予
測して先行処理を実行し、予測が外れた場合に、導入さ
れた命令に応じた処理を実行することにより、命令処理
時間を短縮することができるので、実用的には極めて有
用である。
As described above, according to the present invention, the instruction processing time is reduced by predicting the instruction to be introduced and performing advance processing, and when the prediction is incorrect, executing the processing according to the introduced instruction. Since it can be shortened, it is extremely useful in practice.

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

第1図は本発明の命令処理装置の原理ブロック図、第2
図は本発明の命令処理装置を適用した一実施例の構成図
、 第3図は実施例の動作タイミング図、 第4図は通信システムの構成図である。 図において、 111は予測手段、 121は第1処理手段、 131は判定手段、 141は第2処理手段、 200.431はチャネル接続アダプタ、210はバス
インタフェース制御部、 211はアドレスRAM。 213はアドレスレジスタ、 223は入力データバッファ、 225.331,333はMPX、 231は入力データ読出し制御部1 、241は命令デコーダ、 243は割込み制御部、 251はレシーバ、 253はドライバ、 310はチャネル制御プロセッサ、 321は記憶領域、 341はALU。 520は制御記憶、 530はチャネルインタフェース制御部である。 7本、層さ〇目G■す■フ゛D、7フグ第1図 SもLステム碍構筬口 第4図
FIG. 1 is a principle block diagram of the instruction processing device of the present invention, and FIG.
The figure is a configuration diagram of an embodiment to which the instruction processing device of the present invention is applied, FIG. 3 is an operation timing diagram of the embodiment, and FIG. 4 is a configuration diagram of a communication system. In the figure, 111 is a prediction means, 121 is a first processing means, 131 is a determination means, 141 is a second processing means, 200.431 is a channel connection adapter, 210 is a bus interface control unit, and 211 is an address RAM. 213 is an address register, 223 is an input data buffer, 225, 331, 333 is an MPX, 231 is an input data read control unit 1, 241 is an instruction decoder, 243 is an interrupt control unit, 251 is a receiver, 253 is a driver, 310 is a channel A control processor, 321 a storage area, and 341 an ALU. 520 is a control memory, and 530 is a channel interface control unit. 7 pieces, layer 〇 G■゛゛D, 7 blowfish Fig. 1 S also L stem structure reed mouth Fig. 4

Claims (1)

【特許請求の範囲】[Claims] (1)順次導入される所定の命令に応じて処理を行なう
命令処理装置において、 命令の導入順序に関する情報を保持し、次に導入される
命令の予測を行なう予測手段(111)と、 前記予測手段(111)による予測結果に応じて先行処
理を実行する第1処理手段(121)と、命令が導入さ
れたときに、前記予測手段(111)による予測が的中
したか否かの判定を行なう判定手段(131)と、 前記判定手段(131)における判定結果が導入され、
前記予測手段(111)による予測が的中しなかったと
きに、導入された前記命令に応じた処理を実行する第2
処理手段(141)と、を備えるように構成したことを
特徴とする命令処理装置。
(1) In an instruction processing device that performs processing in accordance with predetermined instructions that are sequentially introduced, a prediction means (111) that holds information regarding the instruction introduction order and predicts the next instruction to be introduced; and the prediction unit. a first processing means (121) for executing a preceding process according to a prediction result by the means (111); and a first processing means (121) for determining whether or not the prediction by the prediction means (111) is correct when an instruction is introduced. A determination means (131) for performing the determination, and a determination result in the determination means (131) are introduced,
a second unit that executes processing according to the introduced instruction when the prediction by the prediction means (111) is not correct;
An instruction processing device comprising: processing means (141).
JP63083758A 1988-04-05 1988-04-05 Instruction processor Pending JPH01255932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63083758A JPH01255932A (en) 1988-04-05 1988-04-05 Instruction processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63083758A JPH01255932A (en) 1988-04-05 1988-04-05 Instruction processor

Publications (1)

Publication Number Publication Date
JPH01255932A true JPH01255932A (en) 1989-10-12

Family

ID=13811462

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63083758A Pending JPH01255932A (en) 1988-04-05 1988-04-05 Instruction processor

Country Status (1)

Country Link
JP (1) JPH01255932A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998011484A1 (en) * 1996-09-13 1998-03-19 Hitachi, Ltd. Command processor having history memory

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998011484A1 (en) * 1996-09-13 1998-03-19 Hitachi, Ltd. Command processor having history memory

Similar Documents

Publication Publication Date Title
JP2829091B2 (en) Data processing system
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US5228127A (en) Clustered multiprocessor system with global controller connected to each cluster memory control unit for directing order from processor to different cluster processors
JPH01263760A (en) Data transfer control method and its circuit for coprocessor
JP2504512B2 (en) DMA controller
GB2351820A (en) Fault resilient booting in a multiprocessor environment
JPH0332818B2 (en)
US4467454A (en) High-speed external memory system
US4967339A (en) Operation control apparatus for a processor having a plurality of arithmetic devices
US4884195A (en) Multiprocessor system for loading microprograms into a RAM control store of a bus controller
JPH0420496B2 (en)
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
US5455918A (en) Data transfer accelerating apparatus and method
EP0376003A2 (en) Multiprocessing system with interprocessor communications facility
JPS599928B2 (en) Channel control method
JPH06250965A (en) I / O controller
JPS6379162A (en) Control system for transferring processor data
JPH03136177A (en) Microcomputer
JPS63132362A (en) Command operation control system
JPS63201713A (en) Dual type file subsystem
JPH08161253A (en) Dma control method and dma controller
JPH01111250A (en) Data processing system
JPS62190544A (en) Higher link unit for programmable controller
JPS62204354A (en) Control system for input/output instruction
JPH0431418B2 (en)