JPS61147337A - Microprogram control system - Google Patents

Microprogram control system

Info

Publication number
JPS61147337A
JPS61147337A JP26925484A JP26925484A JPS61147337A JP S61147337 A JPS61147337 A JP S61147337A JP 26925484 A JP26925484 A JP 26925484A JP 26925484 A JP26925484 A JP 26925484A JP S61147337 A JPS61147337 A JP S61147337A
Authority
JP
Japan
Prior art keywords
microprogram
address
channel
processing
trap
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
JP26925484A
Other languages
Japanese (ja)
Inventor
Shigeru Miyajima
茂 宮島
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 JP26925484A priority Critical patent/JPS61147337A/en
Publication of JPS61147337A publication Critical patent/JPS61147337A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/262Arrangements for next microinstruction selection
    • G06F9/268Microinstruction selection not based on processing results, e.g. interrupt, patch, first cycle store, diagnostic programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To attain high speed trap processing by providing a trap address register and saving a microprogram address for the processing executed next at generation of response waiting. CONSTITUTION:When a response wait is generated, a microprogram issues a link return order to save a microprogram address for the processing executed next set to a CSAR13 to a CS address area of the entry of corresponding channel of a trap address register (TAR) 16 via a gate G4. When a response comes from an external device, a channel trap is generated and its channel number is set to a CHNR17. The TAR16 is searched according to the number, and when a bad bit of the entry coincident to the channel number is set, a CS address of the CS address area of the entry is read and set to the CSAR13 through a gate G6.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、トラップが発生したときのマイクロプログラ
ム制御方式、より詳細には、マイクロプログラム処理実
行中に外部装置の応答待ちが発生したときは、他のチャ
ネルへマイクロプログラムの制御を移し、外部装置から
の応答が来てトラップが発生したときは、直ちに元の処
理ルーチンに戻ってそれを実行させるマイクロプログラ
ム制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a microprogram control method when a trap occurs, and more specifically, a microprogram control method when a trap occurs, and more specifically, when a response wait from an external device occurs during microprogram processing. , relates to a microprogram control method in which control of a microprogram is transferred to another channel, and when a response is received from an external device and a trap is generated, the original processing routine is immediately returned to and executed.

〔従来の技術〕[Conventional technology]

マイクロプログラムでチャネル系の処理を行っていると
き、例えば外部装置の応答が遅いとマイクロプログラム
が一時中断するが、応答待ちが発生してから、外部装置
よりの応答が来るまでの待ち時間を利用して、他のチャ
ネルへマイクロプログラムの制御を移し、複数のチャネ
ルが同時に動作できるようにすることが行われている。
When a microprogram is processing a channel system, for example, if the response from an external device is slow, the microprogram will be temporarily interrupted, but the waiting time from the time the response wait occurs until the response from the external device is received can be used. In this way, control of the microprogram is transferred to other channels so that multiple channels can operate simultaneously.

その場合、外部装置から応答が来たときに、直ちに元の
処理ルーチンに戻れるようにすることが必要である。
In that case, it is necessary to be able to immediately return to the original processing routine when a response is received from the external device.

トラップが発生したとき、トラップ・アドレスのpi類
を多数設けることが困難なため、トランプした後どのよ
うな処理を行うかの判別ルーチンを設けて、各チャネル
に処理を割り当てている。しかしながら、チャネルが多
数接続されていて、同時に動作するチャネル台数が多く
なると、トラップ回数も多くなリオーバヘ7ドが大きく
なって、判別ルーチンの時間が長くなる。この結果、外
部装置から応答が来てから元の処理ルーチンに戻る時間
が遅くなり、また戻っても実際に処理を行える時間が少
なくなるため、オーバランが発生してしまう危険がある
When a trap occurs, it is difficult to provide a large number of trap address pis, so a routine is provided to determine what processing to do after playing a card, and processing is assigned to each channel. However, when a large number of channels are connected and the number of channels that operate simultaneously increases, the number of traps increases and the reoverhead becomes large, resulting in a long determination routine time. As a result, the time required to return to the original processing routine after receiving a response from the external device is delayed, and even if the routine returns, there is less time to actually perform the processing, so there is a risk that an overrun may occur.

そこで、一方において、このようなオーバランが発生し
ないようにするため、外部装置の応答待ちによりトラッ
プが発生したとき、他のチャネルへ処理を移さないで、
マイクロプログラム自身で応答待ち処理を行う方式のも
のがある。このようにすれば、オーバヘッドが少くなり
オーバランが発生する恐れはなくなるが、反面、同時に
動作でできるチャネル台数が少なくなるという結果を生
じる。
Therefore, on the one hand, in order to prevent such an overrun from occurring, when a trap is generated due to waiting for a response from an external device, processing is not moved to another channel.
There is a method in which the microprogram itself performs response waiting processing. This reduces overhead and eliminates the risk of overrun, but on the other hand, the number of channels that can be operated simultaneously decreases.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のマイクロプログラム制御方式は、前述のように、
トラップ発生時に他のチャネルに処理を移行する方式の
ものは、チャネル台数の多い場合にオーバランが発生す
るという問題があり、他のチャネルに処理を移行させな
い方式のものは、オーバランは発生しなくなるが、同時
に動作できるチャネル台数が少なくなるという問題があ
った。
As mentioned above, the conventional microprogram control method
Methods that shift processing to other channels when a trap occurs have the problem of overruns occurring when there are a large number of channels; methods that do not shift processing to other channels do not cause overruns, but However, there was a problem in that the number of channels that could operate simultaneously was reduced.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、従来のマイクロプログラム制御方式における
前述の問題点を解消し、トラップ発生時に同時動作可能
なチャネル台数を減少させず、且つ、オーバランのない
高速なトラップ処理が可能なマイクロプログラム制御方
式を提供するもので、そのための手段として、チャネル
がマイクロプログラム処理実行中に外部装置の応答待ち
が発生した場合は、マイクロプログラムの制御を他のチ
ャネルに移行し、外部装置より応答が来たときは再び元
のチャネル処理の実行を再開するマイクロプログラム制
御方式において、マイクロプログラム・アドレスを各チ
ャネル毎に格納するトラップアドレス・レジスタと、応
答待ちが発生した場合は、その時実行中の処理の次の処
理のマイクロプログラム・アドレスをトラップアドレス
・レジスタにセーブする手段と、外部装置から応答が来
たときは、トラップアドレス・レジスタから応答の来た
チャネルのマイクロプログラム・アドレスを取り出して
元のチャネル処理を行うマイクロプログラム・アドレス
とする手段を設けるようにしたものである。
The present invention solves the above-mentioned problems in the conventional microprogram control method, and provides a microprogram control method that does not reduce the number of channels that can operate simultaneously when a trap occurs and can perform high-speed trap processing without overrun. As a means to achieve this, if a channel is waiting for a response from an external device while executing microprogram processing, control of the microprogram is transferred to another channel, and when a response is received from the external device, the channel waits for a response from an external device. In a microprogram control method that resumes execution of the original channel processing, a trap address register is used to store the microprogram address for each channel, and when a response wait occurs, the next processing of the processing currently being executed is used. means to save the microprogram address of the channel in the trap address register, and when a response is received from an external device, the microprogram address of the channel that received the response is retrieved from the trap address register and the original channel processing is performed. A means for making it a microprogram address is provided.

〔作用〕[Effect]

チャネルがマイクロプログラム処理実行中に外部装置の
応答待ちが発生した場合は、その時実行中の次の処理の
マイクロプログラム・アドレスをトラップアドレス・レ
ジスタにセーブする。それとともに、他のチャネルにマ
イクロプログラムの制御を移行し、そのチャネルの処理
を実行させる。
If a response wait from an external device occurs while the channel is executing a microprogram process, the microprogram address of the next process currently being executed is saved in the trap address register. At the same time, control of the microprogram is transferred to another channel and the processing of that channel is executed.

外部装置から応答が来たときは、トラップアドレス・レ
ジスタから応答の来たチャネルのマイクロフロクラム・
アドレスを取り出して元のチャネル処理の実行を再開す
る。
When a response is received from an external device, the trap address register is used to store the microflocram of the channel from which the response was received.
Fetch the address and resume execution of the original channel process.

〔実施例〕〔Example〕

本発明の実施例を図面を参照して詳細に説明する。 Embodiments of the present invention will be described in detail with reference to the drawings.

図面は、本発明の一実施例をブロック図で説明したもの
である。
The drawings illustrate one embodiment of the present invention using a block diagram.

図において、11はコントロール・ストレージ(C3)
で、各チャネルを制御する制御情報が格納される。12
はcsデータ・レジスタ(C3DR)で、C3lIから
読み出された制御情報がセントされる。13はCSアド
レス・レジスタ(C3AR)で、C3lIにアクセスす
るマイクロプログラム・アドレス、すなわちチャネル・
アドレスとそのチャネルにおいて次に実行すべき処理の
アドレスがセットされる。14は処理要求ルーチン・C
Sアドレス・レジスタ(P RCS A R)で、トラ
ップ発生時に処理の判別を行うC3lIに対するマイク
ロプログラム・アドレスが格納される。
In the figure, 11 is control storage (C3)
Control information for controlling each channel is stored therein. 12
is a cs data register (C3DR) into which control information read from C3lI is sent. 13 is the CS address register (C3AR), which is the microprogram address that accesses C3lI, that is, the channel address register.
The address and the address of the next process to be executed in that channel are set. 14 is a processing request routine・C
The S address register (PRCSAR) stores the microprogram address for C3lI, which determines processing when a trap occurs.

15はリンク・レジスタ及びセーブ・レジスタ(LR−
3R)で、トラップ発生時に実行中の制御情報が格納さ
れ、リターンオーダが来たときに元に戻す。
15 is a link register and save register (LR-
3R), the control information being executed when a trap occurs is stored and restored when a return order arrives.

16はトラップアドレス・レジスタ(TAR)で、各チ
ャネル(CHo =CH,)に対応したエントリ (E
o”Er1)を有し、応答待ち発生時に実行中の処理の
次の処理に対するマイクロプログラム・アドレスが格納
される。各エントリには、CSアドレス領域と有効ビッ
トが設けられており、CSアドレス領域に前記法の処理
に対するマイクロプログラム・アドレスが格納されたと
き有効ビットがONにセットされる。
16 is a trap address register (TAR) with an entry (E
o"Er1), and stores the microprogram address for the next process of the process being executed when a response wait occurs. Each entry is provided with a CS address area and a valid bit. The valid bit is set ON when the microprogram address for processing the law is stored in .

17はチャネルナンバ・レジスタ(CHN R)で、ト
ラップの発生したチャネルナンバが格納される。61〜
GGはゲートである。
Reference numeral 17 denotes a channel number register (CHNR) in which the channel number in which a trap occurs is stored. 61~
GG is a gate.

次に、図面の動作について説明する。Next, the operation of the drawings will be explained.

トラップ発生前のノーマルなチャネル処理の状態におい
ては、C3AR13のマイクロプログラム・アドレスに
従ってC811より所定チャネルの制御情報が読み出さ
れ、C3DR12にセットされる。C3DR12にセッ
トされた制御情報は、図示しない所定の処理部に転送さ
れる。C5AR13から読み出されたマイクロプログラ
ム・アドレス中そのチャネル・アドレスはゲートG1に
より再びC3AR13に戻されて、次に実行する処理の
チャネル・アドレスとなる。一方、そのチャネルにおけ
る次に実行する処理のアドレスは、C5DR12からゲ
ートG2を経由してC5ARI3にセットされる。この
ようにして生成されたマイクロプログラム・アドレスに
より、C3lIより次に実行する処理の制御情報の読み
出しが行われる。
In the state of normal channel processing before a trap occurs, control information for a predetermined channel is read from the C811 according to the microprogram address of the C3AR13 and set in the C3DR12. The control information set in the C3DR 12 is transferred to a predetermined processing unit (not shown). The channel address in the microprogram address read from C5AR13 is returned to C3AR13 by gate G1 and becomes the channel address for the next process to be executed. On the other hand, the address of the next process to be executed in that channel is set in C5ARI3 from C5DR12 via gate G2. Using the microprogram address thus generated, control information for the next process to be executed is read from C3lI.

以下、前述の動作が繰り返されて、そのチャネルにおけ
る所望の一連の処理が実行される。このチャネルの処理
実行中に、サブルーチン処理が割込まれると、C3AR
13のマイクロプログラム・アドレスや実行中の制御情
報はLR−SR15にセーブされ、サブルーチン処理が
終了すると、ゲ−) G 3を経由してC5AR13に
マイクロプログラム・アドレスがリターンされて、元の
チャネル処理が再開される。これらノーマルなチャネル
処、理動作は、従来のマイクロプログラム制御方式にお
けるチャネル処理動作と同様である。
Thereafter, the above-described operations are repeated to execute a desired series of processing on that channel. If subroutine processing is interrupted during execution of processing for this channel, C3AR
The microprogram address of 13 and the control information being executed are saved in the LR-SR15, and when the subroutine processing is completed, the microprogram address is returned to the C5AR13 via the G3 and the original channel processing resumes. will be resumed. These normal channel processing operations are similar to those in the conventional microprogram control system.

所で、チャネルの処理が高速で実行されるのに対し、外
部袋W(図示せず)の処理はチャネルの処理に比べては
るかに遅いため、外部装置に指令を出してから応答が来
るまでの間マイクロプログラムの実行が中断され、応答
待ちが発生する。
By the way, while the channel processing is executed at high speed, the processing of the external bag W (not shown) is much slower than the channel processing, so it takes a long time from issuing a command to the external device until receiving a response. During this time, the microprogram execution is interrupted and a response wait occurs.

応答待ちが発生すると、マイクロプログラムは、リンク
リターンオーダを出して、C5AR13にセントされて
いる次に実行する処理のマイクロプログラム・アドレス
をゲートG、を経由してTAR16の当該チャネルのエ
ントリのCSアドレス領域にセーブする。この時、その
エントリのバリッドビットをONにセットする。更に、
C3AR工3はリンクリターンオーダにより各種制御情
報を、LR−3R15からゲートG3を通してセットさ
れる。
When a response wait occurs, the microprogram issues a link return order and sends the microprogram address of the next process to be executed, which is sent to C5AR13, to the CS address of the entry of the corresponding channel in TAR16 via gate G. Save to area. At this time, the valid bit of that entry is set to ON. Furthermore,
C3AR engineer 3 has various control information set by link return order from LR-3R15 through gate G3.

この処理が終ると、他のチャネルへ処理が移される。こ
のC3AR13のマイクロプログラム・アドレスに従っ
てC3lIから制御情報が読み出されて、そのチャネル
に対する処理が実行される。
When this processing is completed, processing is transferred to another channel. Control information is read from C3lI according to the microprogram address of C3AR13, and processing for that channel is executed.

外部装置より応答が来るとチャネルトラップが発生し、
CHNRl 7にそのチャネルナンバがセットされる。
When a response is received from an external device, a channel trap is generated.
The channel number is set in CHNRl 7.

このチャネルナンバに従ってTAR16が捜査され、こ
のチャネルナンバに一致したエントリのパッドビットが
ONのとき、そのエントリのCSアドレス領域のCSア
ドレスが読み出され、ゲー・トGeを通ってC5AR1
3にセットされる。このときのCSアドレスは、元のチ
ャネルが次に実行する処理のマイクロプログラム・アド
レスであるので、このマイクロプログラム・アドレスに
従って、元のチャネルが次に実行する処理の制御情報が
C3lIより読み出され、元のチャネルの処理が再開さ
れる。
The TAR16 is searched according to this channel number, and when the pad bit of an entry that matches this channel number is ON, the CS address in the CS address area of that entry is read out and passed through the gate Ge to the C5AR1.
Set to 3. The CS address at this time is the microprogram address of the process to be executed next by the original channel, so the control information for the process to be executed next by the original channel is read from C3lI according to this microprogram address. , processing of the original channel is resumed.

もし、TAR16においてCHNR17にセットされた
チャネルナンバに当るエントリのバリッドビットがOF
Fのときは、前記チャネルトラップは元のチャネルに対
するものではないので、従来方式と同様に処理要求判別
ルーチンのアドレス、PRC3AR14とゲー)Gsに
より、トラップを発生したチャネルの処理が実行される
。トラップ前に処理中のCSアドレスは、LR−3R1
5に格納される。
If the valid bit of the entry corresponding to the channel number set in CHNR17 in TAR16 is
In the case of F, since the channel trap is not for the original channel, processing of the channel that generated the trap is executed using the address of the processing request determination routine, PRC3AR14, and Gs, as in the conventional system. The CS address being processed before the trap is LR-3R1.
It is stored in 5.

この様にして、チャネル処理中に外部装置の応答待ちが
発生したときでも、他のチャネルへマイクロプログラム
の制御を移行することができ、外部装置から応答が来た
ときは、直ちに元のチャネルの処理ルーチンを再開する
ことができる。
In this way, even when waiting for a response from an external device occurs during channel processing, microprogram control can be transferred to another channel, and when a response comes from the external device, the control of the original channel can be transferred immediately. The processing routine can be restarted.

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

以上説明したように、本発明によれば、トラップアドレ
ス・レジスタを設け、応答待ち発生時に次に実行する処
理のマイクロプログラム・アドレスをセーブするように
したので、外部装置から応答が来たときは直ちに元の処
理に戻って実行でき、オーバランのない高速なトラップ
処理が可能となる。また、応答待ちが発生した時は直ち
に他のチャネルへマイクロプログラム制御を移行できる
ので、同時に複数のチャネルを動作させることができる
As explained above, according to the present invention, a trap address register is provided to save the microprogram address of the next process to be executed when a response wait occurs, so when a response is received from an external device, It is possible to immediately return to the original process and perform high-speed trap processing without overruns. Furthermore, when a response wait occurs, microprogram control can be immediately transferred to another channel, so a plurality of channels can be operated at the same time.

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

図面は、本発明の一実施例の説明図である。 図中、11はコントロール・ストレージ(CS)、12
はCSデータ・レジスタ(C5DR) 、13はCSア
ドレス・レジスタ(CSAR) 、14は処理要求ルー
チン・CSアドレス・レジスタ(PRC3AR) 、1
5はリンク・レジスタ及びセーブレジスタ(LR−3R
) 、16はトラップアドレス・レジスタ(TAR) 
、17はチャネルナンバ・レジスタ(CHAR) 、G
l〜G6はゲートを、それぞれ示す。
The drawings are explanatory diagrams of one embodiment of the present invention. In the figure, 11 is control storage (CS), 12
is the CS data register (C5DR), 13 is the CS address register (CSAR), 14 is the processing request routine CS address register (PRC3AR), 1
5 is the link register and save register (LR-3R
), 16 is the trap address register (TAR)
, 17 is a channel number register (CHAR), G
1 to G6 indicate gates, respectively.

Claims (1)

【特許請求の範囲】[Claims] チャネルがマイクロプログラム処理実行中に外部装置の
応答待ちが発生した場合は、マイクロプログラムの制御
を他のチャネルに移行し、外部装置より応答が来たとき
は再び元のチャネル処理の実行を再開するマイクロプロ
グラム制御方式において、マイクロプログラム・アドレ
スを各チャネル毎に格納するトラップアドレス・レジス
タと、応答待ちが発生した場合は、その時実行中の処理
の次の処理のマイクロプログラム・アドレスをトラップ
アドレス・レジスタにセーブする手段と、外部装置から
応答が来たときは、トラップアドレス・レジスタから応
答の来たチャネルのマイクロプログラム・アドレスを取
り出して元のチャネル処理を行うマイクロプログラム・
アドレスとする手段を備えたことを特徴とするマイクロ
プログラム制御方式。
If a channel is waiting for a response from an external device while executing microprogram processing, control of the microprogram is transferred to another channel, and when a response is received from the external device, execution of the original channel processing is resumed. In the microprogram control method, there is a trap address register that stores the microprogram address for each channel, and a trap address register that stores the microprogram address of the next process after the process currently being executed when a response wait occurs. When a response is received from an external device, a microprogram that retrieves the microprogram address of the channel from which the response came from the trap address register and performs the original channel processing.
A microprogram control system characterized by having a means for making an address.
JP26925484A 1984-12-20 1984-12-20 Microprogram control system Pending JPS61147337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26925484A JPS61147337A (en) 1984-12-20 1984-12-20 Microprogram control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26925484A JPS61147337A (en) 1984-12-20 1984-12-20 Microprogram control system

Publications (1)

Publication Number Publication Date
JPS61147337A true JPS61147337A (en) 1986-07-05

Family

ID=17469791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26925484A Pending JPS61147337A (en) 1984-12-20 1984-12-20 Microprogram control system

Country Status (1)

Country Link
JP (1) JPS61147337A (en)

Similar Documents

Publication Publication Date Title
JPS62243044A (en) Control system for disk cache memory
JPS58225443A (en) High-speed data processor
JPH05233422A (en) Memory reference request processing system
JPS61147337A (en) Microprogram control system
JPH08272608A (en) Pipeline processor
JPS59214977A (en) Data processing device
JP2644857B2 (en) Data transfer method
JPS6218932B2 (en)
JP2511012B2 (en) Task termination method
JPS60159958A (en) Data transfer controlling circuit
JPH041373B2 (en)
JPH09146769A (en) Pipeline processor
JPS61101864A (en) Program control system
JPH02217924A (en) Storing processing system for data processor
JPS60215250A (en) Data processor
JPS61117651A (en) Interface device
JPH05113888A (en) Microprocessor unit
JPH04107634A (en) Memory data bypass control system
JPS59172187A (en) System for converting and control dynamic address
JPS60214058A (en) Memory access control circuit
JPS6019267A (en) Data processing system
JPH03158943A (en) Buffer storage/transfer system
JPS62180448A (en) Increment system for input and output working speed
JPH05324864A (en) Microcontrol unit
JPS62126441A (en) Microprogram control system