JPH04131954A - Peripheral device - Google Patents

Peripheral device

Info

Publication number
JPH04131954A
JPH04131954A JP25443990A JP25443990A JPH04131954A JP H04131954 A JPH04131954 A JP H04131954A JP 25443990 A JP25443990 A JP 25443990A JP 25443990 A JP25443990 A JP 25443990A JP H04131954 A JPH04131954 A JP H04131954A
Authority
JP
Japan
Prior art keywords
instructions
instruction
register
peripheral device
host device
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
JP25443990A
Other languages
Japanese (ja)
Inventor
Sadao Yoshioka
吉岡 節生
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP25443990A priority Critical patent/JPH04131954A/en
Publication of JPH04131954A publication Critical patent/JPH04131954A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the control efficiency and the processing ability by providing an interface which controls the instructions received from a host device as a series of instructions, a holding register which holds and outputs successively a series of instructions, and an existing latch which takes the instructions out of the holding register and sends the executed instructions to a control part. CONSTITUTION:An interface 1 receives an instruction 11 from a host device and sends it to a holding register 2 as an instruction 13. When the first instruction is outputted from the register 2 as an instruction 14, an existing latch 3 fetches the instruction 14 and sends it to a control part 4 as an instruction 15. The latch 3 keeps its present state until an answer 18 is received from the part 4. The part 4 sends a control signal 16 to an operating part 17 and controls the signal 16 by reference to the operating information 17 showing the state sent from the part 5 to complete the operation prescribed by the instruction 15. Thus it is possible to reduce the necessity for intervention of the host device for control of a peripheral device and to improve the control efficiency and the processing ability.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、上位装置から動作命令を受けて指定された動
作を行う周辺装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a peripheral device that receives an operation command from a host device and performs a specified operation.

〔従来の技術〕[Conventional technology]

上位装置から動作命令を受けて指定された動作を行う従
来の周辺装置は、上位装置からの命令と動作情報を受け
て制御信号を発生する制御部と、その制御信号に従って
動作し、その動作状態を示す動作情報を送出する動作部
とを備えている。
A conventional peripheral device that receives an operation command from a host device and performs a specified operation has a control unit that receives commands and operation information from the host device and generates a control signal, and operates according to the control signal and determines its operating state. and an operation section that sends out operation information indicating the operation.

(第1図および第2の制御部4および動作部5(参照符
号A)がこれに該当する。) このような周辺装置は、命令を受けてそれを実行し、そ
の動作状態に対応した応答信号を返送して命令に対する
動作を終了する。このとき制御部は、受けた命令を解読
して該当する動作を指示する制御信号を発生する。動作
部は、その制御信号の指示に従って動作し、そのときの
動作状態を示す動作情報を制御部に返送する。制御部は
、この返送された動作情報を参照してその動作に対応し
た応答信号を発生し、その動作情報を制御情報としてそ
れに対応した制御信号を動作部に送る。
(The control unit 4 and operation unit 5 (reference numeral A) in FIG. 1 and the second correspond to this.) Such peripheral devices receive and execute instructions, and respond in accordance with their operating state. A signal is sent back to complete the operation for the command. At this time, the control unit decodes the received command and generates a control signal instructing the corresponding operation. The operating section operates according to the instructions of the control signal, and returns operating information indicating the operating state at that time to the control section. The control section refers to the returned operation information, generates a response signal corresponding to the operation, and sends a corresponding control signal to the operation section using the operation information as control information.

このように、従来の周辺装置は、命令毎にそれによって
指定された動作を行い、その応答信号を返送している。
In this way, conventional peripheral devices perform the operation specified by each command and send back a response signal.

従って、このような周辺装置を制御する上位装置は、命
令毎にそれに対する応答信号を待たなければならない。
Therefore, a host device that controls such a peripheral device must wait for a response signal for each command.

また、このような周辺装置は、機能毎にそれを動作させ
る命令が決められており、多種の機能を有する周辺装置
は、それらに対応する多数の命令が設定されている。
Further, for such peripheral devices, commands for operating the peripheral devices are determined for each function, and for peripheral devices having a variety of functions, a large number of commands corresponding to the peripheral devices are set.

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

上述したように、従来の周辺装置は、命令毎にそれによ
って指定された動作を行ってその応答信号を返送してい
るため、それを制御する上位装置の負担が多く、特に、
多数の周辺装置を制御する上位装置の効率を低下させる
要因となっている。
As mentioned above, conventional peripheral devices perform the operation specified by each command and return a response signal, which places a heavy burden on the host device that controls it.
This is a factor that reduces the efficiency of a host device that controls a large number of peripheral devices.

多数の命令の中には、瞬時に情報を交換する必要がある
命令があり、これについは上位装置と周辺装置の同調が
必要であるが、動作を指定するだけでその実行は周辺装
置に任せることができる命令もあり、また、瞬時に情報
を交換する必要がある命令ではあるが、周辺装置に動作
を指定する命令を送るために、周辺装置の状態の変化状
況を探知するための命令もある。従来は、これらのすべ
ての命令に対して上位装置が関与している。く周辺装置
に動作の実行を任せることができる命令であっても、そ
の命令が正常に実行されたか否かは確認する必要がある
。) 多くの機能を有する周辺装置は、多数の命令コードを区
別するため、その情報量(ビット数)が多くなり、従っ
て伝達経路や識別論理回路等のハードウェアの負担も増
大する。
Among the large number of instructions, there are some instructions that require instantaneous exchange of information, which requires synchronization between the host device and the peripheral device, but simply specifying the operation and leaving the execution to the peripheral device. There are also commands that require instantaneous exchange of information, but there are also commands that detect changes in the state of peripheral devices in order to send commands that specify actions to peripheral devices. be. Conventionally, a host device is involved in all of these instructions. Even if an instruction can be entrusted to a peripheral device, it is necessary to check whether the instruction has been executed normally. ) Peripheral devices having many functions distinguish between many instruction codes, so the amount of information (number of bits) increases, and the burden on hardware such as transmission paths and identification logic circuits also increases.

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

本発明の周辺装置は、上位装置から動作を規定する命令
を受けて動作を開始し、動作の経過と動作の状況と動作
の結果に応じてそれらに関する情報を送出しながら受け
た命令を実行する周辺装置において、前記上位装置から
受ける命令を一連の命令として管理するインタフェース
と、前記一連の命令を保持して順次に出力する待機レジ
スタと、前記待機レジスタから命令を取出して実行命令
を制御部に送出する現行う・ソチとを備えている。
The peripheral device of the present invention starts its operation upon receiving an instruction specifying its operation from a host device, and executes the received instruction while transmitting information about the progress of the operation, the status of the operation, and the result of the operation. The peripheral device includes an interface that manages instructions received from the host device as a series of instructions, a standby register that holds and sequentially outputs the series of instructions, and a standby register that takes out instructions from the standby register and sends execution instructions to a control unit. It is equipped with the current plan to send to Sochi.

本発明の周辺装置は、また、上位装置から動作を規定す
る命令を受けて動作を開始し、動作の経過と動作の状況
と動作の結果に応じてそれらに関する情報を送出しなが
ら受けた命令を実行する周辺装置において、前記上位装
置から受ける命令を一連の命令として管理するインタフ
ェースと、前記一連の命令を保持して順次に出力する待
機レジスタと、前記待機レジスタから命令を取出して実
行命令を制御部に送出する現行ラッチと、前記待機レジ
スタおよび前記現行ラッチの出力信号と前記制御部から
の応答信号および動作部からの動作情報とを入力して命
令の実行を制限する制御信号を前記待機レジスタおよび
前記現行ラッチおよび前記制御部に出力する判定論理部
とを備えている。
The peripheral device of the present invention also starts its operation upon receiving a command specifying its operation from a host device, and transmits information about the progress of the operation, the status of the operation, and the result of the operation while executing the received command. In a peripheral device to be executed, an interface that manages instructions received from the host device as a series of instructions, a standby register that holds and sequentially outputs the series of instructions, and a control unit that extracts instructions from the standby register and controls execution instructions. The current latch to be sent to the standby register, the output signals of the standby register and the current latch, the response signal from the control unit, and the operation information from the operation unit are inputted to the standby register to send a control signal to limit execution of the instruction. and a decision logic unit outputting to the current latch and the control unit.

〔実施例〕 次に本発明の実施例について図面を参照して説明する。〔Example〕 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の第一の実施例を示すプロ・ツク図であ
る。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

第1図において、インタフェース1は、上位装置から命
令11を受けてそれを命令13として待機レジスタ2に
送る。待機レジスタ2は、インタフェース1が送出する
命令13を順次に保持し、それらを入力した順序に送出
する。また、命令の保持の有無を示す動作情報19をイ
ンタフェース1に送出する。待機レジスタ2から最初の
命令が命令14として出力されると、現行ラッチ3は、
それを取込んで命令1うとして制御部4に送出し、制御
部4からそれに対する応答18がくるまでその状態を保
持する。制御部4は、動作部5に対して制御信号16を
送り、動作部5から送られてくるその状態を示す動作情
報17を参照しながら制御信号16を制御して命令15
に規定された動作を完了させる。所定の動作が終了した
ことを検出すると、応答18を送出してそのことを知ら
せる。
In FIG. 1, an interface 1 receives an instruction 11 from a host device and sends it as an instruction 13 to a standby register 2. The standby register 2 sequentially holds the instructions 13 sent out by the interface 1 and sends them out in the order in which they were input. Further, operation information 19 indicating whether or not the instruction is held is sent to the interface 1. When the first instruction is output from the wait register 2 as instruction 14, the current latch 3 is
It takes it in and sends it to the control unit 4 as a command 1, and holds that state until a response 18 to it is received from the control unit 4. The control unit 4 sends a control signal 16 to the operation unit 5, and controls the control signal 16 while referring to operation information 17 indicating the state sent from the operation unit 5 to issue the command 15.
complete the specified operations. When it is detected that a predetermined operation has been completed, a response 18 is sent to notify this fact.

インタフェース1は、制御部4から応答18を入力する
と、待機レジスタ2の状態を示す動作情報19を参照し
、保持命令が存在していれば上位装置に対する応答12
を発生せず、内部に有する命令の情報管理のみを行う。
When the interface 1 receives the response 18 from the control unit 4, it refers to the operation information 19 indicating the state of the standby register 2, and if there is a hold command, sends the response 12 to the host device.
It only manages the information of internal instructions without generating any commands.

応答18は、待機レジスタ2および現行ラッチ3にも入
力してそれらを更新し、待機レジスタ2および現行ラッ
チ3は、次の命令を制御部4に送る。この次の命令に対
しても上述と同様な動作が行われ、以下順次命令が実行
される。
The response 18 also enters and updates the wait register 2 and current latch 3, which sends the next instruction to the controller 4. The same operation as described above is performed for the next instruction, and the subsequent instructions are sequentially executed.

待機レジスタ2に保持している命令がなくなると、その
情報が動作情報19に示される。このとき応答18によ
って動作完了が知らされると、連の動作がすべて修了し
たことになるため、インタフェース1は、応答12を発
生して上位装置に対して動作終了を知らせる。このとき
、インタフェース1は、命令の情報管理を初期の状態に
戻しそれを終了情報として応答12に送出する。
When there are no more instructions held in the standby register 2, that information is shown in the operation information 19. At this time, when the completion of the operation is notified by response 18, it means that all the series of operations have been completed, so the interface 1 generates response 12 to notify the host device of the completion of the operation. At this time, the interface 1 returns the information management of the command to the initial state and sends it as the end information as the response 12.

上述の動作の過程において異常が生じたときは、制御部
4からの応答18によって異常発生を知らせ、インタフ
ェースlは、それによってその時点で応答12によって
上位装置に対して動作中断を知らせる。このとき同時に
、命令の情報管理状態を応答12によって送出して命令
の実行状態を上位装置に知らせる。
When an abnormality occurs in the process of the above-mentioned operation, a response 18 from the control unit 4 notifies the occurrence of the abnormality, and the interface 1 accordingly notifies the host device of the suspension of the operation by a response 12 at that point. At the same time, the information management status of the command is sent in response 12 to notify the higher-level device of the execution status of the command.

異常状態は、異常解除命令のみによって解除され、それ
まではその状態が保持されて残っている命令は実行され
ない。異常解除命令によってインタフェース1の命令の
情報管理と待機レジスタ2は初期化され、新たに命令を
受けられる状態となる。
The abnormal state is canceled only by an abnormality release command, and until then, the state is maintained and the remaining commands are not executed. The instruction information management and standby register 2 of the interface 1 is initialized by the abnormality release instruction, and becomes ready to receive new instructions.

第3図は、第1図の実施例のインタフェースおよび待機
レジスタおよび現行ラッチの詳細を示す回路図である。
FIG. 3 is a circuit diagram showing details of the interface and wait registers and current latches of the embodiment of FIG.

第3図において、待機レジスタ2に送られる命令13は
、上位装置からインタフェース1に送られる命令11を
そのまま伝達しているが、必要があれば、コードの変換
を行ってもよい。
In FIG. 3, the instruction 13 sent to the standby register 2 is the same as the instruction 11 sent from the host device to the interface 1, but the code may be converted if necessary.

デコーダ101は、命令11から異常解除命令を識別し
て異常解除命令13Cを送出する。この異常解除命令1
3cは、アップダウンカウンタ102およびフリップフ
ロ・ソ1104およびFrFOレジスタ201をリセッ
トし、それらを初期状態に戻す。アップダウンカウンタ
102は、異常解除命令13Cでリセットし、命令11
のストローブ信号11Bでカウントアツプし、動作終了
の応答(終了応答)18Aでカウントダウンし、そのカ
ウント値が命令の実行状態を示す。
The decoder 101 identifies the abnormality clearing command from the instructions 11 and sends out the abnormality clearing command 13C. This abnormality cancellation command 1
3c resets the up/down counter 102, flip-flop counter 1104, and FrFO register 201, returning them to their initial states. The up/down counter 102 is reset by the abnormality release command 13C, and the up/down counter 102 is reset by the command 11C.
It counts up in response to the strobe signal 11B, and counts down in response to the operation completion response (completion response) 18A, and the count value indicates the execution state of the instruction.

すなわち、カウント値は、未処理の命令がいくつ残って
いるかを示し、異常が発生して処理を中断したとき、ど
こまで命令を実行したかを判断するための命令管理情報
となる。命令を完全に終了したときは、カウント値は0
に戻っている。
That is, the count value indicates how many unprocessed instructions remain, and serves as instruction management information for determining how far the instructions have been executed when an abnormality occurs and processing is interrupted. When the instruction is completely completed, the count value is 0.
is back.

FIF○レジスタ201は、ストローブ信号11Bがく
る度にそのときの命令13を取込む。
The FIF○ register 201 takes in the current instruction 13 every time the strobe signal 11B is received.

取込んだ命令は、順次に命令14として送出されるが、
後の命令は、先の命令が送出されるまで待機させられる
。命令14の送出は、命令実行開始時に、終了応答18
Aが切れるときに行う0、終了応答18Aがあって次の
命令の起動がかかり、終了応答18Aが切れる度に行い
、待機させていた命令を順次に送出する。
The captured instructions are sequentially sent out as instructions 14,
The later instruction is made to wait until the earlier instruction is sent. The instruction 14 is sent when the end response 18 is sent at the start of instruction execution.
When A expires, there is a termination response 18A, which activates the next command, and each time the termination response 18A expires, the commands that have been on standby are sequentially sent out.

Dタイブラーフチ301は、終了応答18Aがきたとき
、FIFOレジスタ201が出力する命令14を読込み
、命令の起動がかかつて終了応答18Aが切れる読込ん
でいる命令を保持してそれを命令15として命令が実行
されている聞出力を保っている。
When the end response 18A arrives, the D typer edge 301 reads the instruction 14 output from the FIFO register 201, holds the read instruction until the end response 18A expires as soon as the instruction starts, and executes the instruction as instruction 15. It maintains the current listening output.

アンドゲート103は、終了応答18AとFIFOレジ
スタ201のEMP出力端子から出力するFIFOレジ
スタ201内に命令がなくなったことを示す動作情報1
9とを入力し、両方の条件が揃ったとき、すなわち次に
実行する命令がなくかつ前の命令の終了の応答があった
とき応答(終了応答)12Aを発生してそのことを上位
装置に通知する。
The AND gate 103 outputs the end response 18A and the operation information 1 indicating that there are no more instructions in the FIFO register 201, which is output from the EMP output terminal of the FIFO register 201.
9 is input, and when both conditions are met, that is, when there is no command to be executed next and there is a response indicating the completion of the previous command, a response (completion response) 12A is generated and this is sent to the host device. Notice.

フリップフロツズ104は、異常の応答く異常応答)1
8Bを入力したときにセットされて応答(異常応答)1
2Bを発生してそのことを上位装置に通知してその状態
を保ち、異常解除会合13Cを入力したときにリセット
されて異常応答18Bの送出を停止する。このとき同時
に他の回路も初期化される。
Flip flops 104 responds abnormally (abnormal response) 1
Set when inputting 8B and responds (abnormal response) 1
2B, notifies the host device of this fact and maintains that state, and when the abnormality release meeting 13C is input, it is reset and stops sending out the abnormality response 18B. At this time, other circuits are also initialized.

以上のような動作により、入力した一連の命令を順次に
実行し、それらをすべて終了したとき上位装置に終了の
応答を送出する。また、実行の途中で異常があったとき
は、その時点で異常の応答を送出すると同時に一連の命
令の実行状況を報告する。
Through the operations described above, a series of input commands are executed in sequence, and when all of them are completed, a completion response is sent to the host device. Furthermore, if an abnormality occurs during execution, a response to the abnormality is sent at that point, and at the same time, the execution status of the series of instructions is reported.

第2図は本発明の第二の実施例を示すブロック図である
FIG. 2 is a block diagram showing a second embodiment of the present invention.

本実施例は、第一の実施例に判定論理部6を追加して設
けたものである。判定論理部6は命令14および15と
応答18と動作情報17とを入力し、その出力の制御信
号20は、待機レジスタ2および現行ラッチ3および制
御部4に入力してそれらの起動条件となる。その他の構
成および動作は第一の実施例と同じである。
In this embodiment, a determination logic section 6 is added to the first embodiment. The decision logic unit 6 inputs the instructions 14 and 15, the response 18, and the operation information 17, and its output control signal 20 is input to the standby register 2, the current latch 3, and the control unit 4 and serves as their activation condition. . Other configurations and operations are the same as in the first embodiment.

判定論理部6は、待機レジスタ2が出力する次に実行す
べき命令14と、現行ラッチ3が出力する実行中または
実行を終了した命令15と、制御部4が出力する応答1
8と、動作部5か出力する動作情報17とを入力し、さ
れらの組合わせが所定の条件を満たしたときにその出力
条件を変え、その出力の制御信号20は、次に実行する
命令の起動条件となる。
The determination logic unit 6 determines the next instruction to be executed 14 outputted by the standby register 2, the instruction 15 that is being executed or has finished execution outputted by the current latch 3, and the response 1 outputted by the control unit 4.
8 and the operation information 17 output from the operation unit 5, and when the combination thereof satisfies a predetermined condition, the output condition is changed, and the output control signal 20 is a command to be executed next. This is the activation condition.

制御部4は、命令を起動するとき、制御信号20にその
命令実行の動作条件が整っていることが示されていると
きは、直ちに命令の実行を指示する制御信号16を送出
して制御動作を開始するが、そうでないときは、制御信
号20にそれが示されるのを待って動作を開始する。こ
の信号によって、現行ラッチ3は出力状態を保持し、待
機レジスタ2は出力信号を更新する。
When activating an instruction, if the control signal 20 indicates that the operating conditions for executing the instruction are met, the control section 4 immediately sends out a control signal 16 instructing execution of the instruction and performs the control operation. If not, it waits for the control signal 20 to indicate this and then starts the operation. This signal causes the current latch 3 to hold its output state and the wait register 2 to update its output signal.

第4図は、第2図の実施例の判定論理部の詳細を示す回
路図である。
FIG. 4 is a circuit diagram showing details of the decision logic section of the embodiment of FIG. 2.

第4図において、組合わせ論理回路601は、次の命令
14と現在の命令15と動作情報17と応答18とを入
力する論理回路である。これらの入力信号の組合わせが
所定の条件のとき、それに対応する出力信号を送出する
。通常の動作のときは応答18に対応させ、応答18か
あるときは0UTI端子から信号を出力してフリップフ
ロラ1602をセットし、応答18か切れると0UT1
端子からの信号の出力を停止し、OUT2gJ子から信
号を出力してフリップフロ・・lプロ02をリセットす
る。
In FIG. 4, a combinational logic circuit 601 is a logic circuit into which a next instruction 14, a current instruction 15, operation information 17, and a response 18 are input. When a combination of these input signals meets a predetermined condition, a corresponding output signal is sent out. During normal operation, it corresponds to response 18, and when response 18 is present, a signal is output from the 0UTI terminal to set the flip flora 1602, and when response 18 is cut off, it becomes 0UT1.
Stop the output of the signal from the terminal, output the signal from the OUT2gJ child, and reset the flip-flop .l pro 02.

フリップ70ツ1602は、組合わせ論理回路601の
0UT1端子および0UT2端子からの出力信号によっ
てそれぞれセット動作およびリセット動作を行って制御
信号20を出力する。通常の動作のときは、制御信号2
0は応答18と同じ信号となり、第一の実施例と同じ動
作が行われる。
The flip 70 1602 performs a set operation and a reset operation based on the output signals from the 0UT1 terminal and the 0UT2 terminal of the combinational logic circuit 601, respectively, and outputs the control signal 20. During normal operation, control signal 2
0 becomes the same signal as response 18, and the same operation as in the first embodiment is performed.

命令14の実行に制限があって前の命令または装置の動
作状態の制約を受けるときは、組合わせ論理回路601
は、入力信号の組合わせが制約を解除する条件となった
ときに○UTI端子および0UT2端子から出力信号を
送出し、ブリップフロツア602は、それに対応して動
作する。従って制御信号20は、命令の実行条件が満た
されるのに追従して変化し、実行条件が満たされるまで
待って命令の実行をかける。
When the execution of the instruction 14 is restricted by the previous instruction or the operating state of the device, the combinational logic circuit 601
sends an output signal from the ○UTI terminal and the 0UT2 terminal when the combination of input signals satisfies the condition for releasing the constraint, and the flip floor 602 operates accordingly. Therefore, the control signal 20 changes in accordance with the satisfaction of the execution conditions for the command, and waits until the execution conditions are met before executing the command.

従来は、上位装置が命令を送出するとき、周辺装置の動
作状態を探知し、周辺装置が動作可能状態であることを
確認することが必要であり、そのために上位装置が介入
していた。また、実行のタイミングに制限があるときは
、常に上位装置が介入する必要があったが、本実施例は
、このような上位装置の制御動作と同じ制御動作を周辺
装置が単独で行うことを可能としたものである。
Conventionally, when a host device sends a command, it is necessary to detect the operating state of the peripheral device and confirm that the peripheral device is in an operable state, and the host device intervenes for this purpose. Furthermore, when there is a restriction on the timing of execution, it has always been necessary for a higher-level device to intervene, but this embodiment makes it possible for a peripheral device to independently perform the same control operations as those of a higher-level device. This made it possible.

次に、上述の第一の実施例および第二の実施例において
有効な制御命令の形式について説明する。
Next, the format of control commands effective in the first and second embodiments described above will be explained.

周辺装置内のレジスタ間のデータの転送を想定したとき
、8個のレジスタR8〜R7があるとすると、それらの
レジスタ間でデータの転送を行わせる命令は、従来は、
レジスタR8からレジスタR1に転送する命令(RO→
Rt)やレジスタRoからレジスタR2に転送する命令
(RO−R2)のように、8個のレジスタR6〜R7の
組合わせに対応する56種の命令が用いられていた。
Assuming data transfer between registers in a peripheral device, assuming that there are eight registers R8 to R7, the command to transfer data between these registers is conventionally as follows:
Instruction to transfer from register R8 to register R1 (RO→
56 types of instructions corresponding to combinations of eight registers R6 to R7 were used, such as an instruction (RO-R2) for transferring data from register Ro to register R2.

この転送動作をバッファレジスタR,を介する2段階の
動作で行うとすると、まずレジスタR8〜R7の中の一
つのレジスタR1からバッファレジスタRBに転送し、
続いてバッファレジスタRBからレジスタR8〜R7の
中の他の一つのレジスタR,,に転送すればよく、この
ための命令は、命令(Ro 〜R7−Re )と命令(
R8−Ro〜R7)との16種の単位命令を設定し、そ
れらを組合わせて実行命令とすればよい。このため、命
令の長さは、従来は6ビツトか必要であったのに対し、
この場合は4ビツトで充分である。
Assuming that this transfer operation is performed in two steps via buffer register R, first transfer from one register R1 among registers R8 to R7 to buffer register RB,
Subsequently, it is sufficient to transfer from the buffer register RB to another register R,, among registers R8 to R7, and the instructions for this are instructions (Ro to R7-Re) and instructions (
It is sufficient to set 16 types of unit instructions (R8-Ro to R7) and combine them to form an execution instruction. For this reason, the length of the instruction used to be 6 bits, but
In this case, 4 bits is sufficient.

この命令形式において、単位命令の実行に時間を要する
場合でも、第一または第二の実施例の構成を備えている
と、実行単位毎に命令を先に受けておいて動作すること
ができる。
In this instruction format, even if it takes time to execute a unit instruction, if the configuration of the first or second embodiment is provided, the instruction can be received in advance for each execution unit and then operated.

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

以上説明したように、本発明の周辺装置は、連の命令を
まとめて受取り、それらを連続して実行してその終了後
に応答を返すようにし、また実行の開始を周辺装置が単
独で判断するようにすることにより、周辺装置の制御に
おける上位装置の介入の必要性を軽減して制御効率の向
上と処理能力の増大とを図ることができるという効果が
ある。
As explained above, the peripheral device of the present invention receives a series of instructions all at once, executes them consecutively, and returns a response after they are completed, and the peripheral device independently determines the start of execution. By doing so, it is possible to reduce the need for intervention by a host device in controlling peripheral devices, thereby improving control efficiency and processing capacity.

また、周辺装置内のレジスタ間でデータの転送を行うと
き、バッファレジスタを仲介とする転送を行うことによ
り、転送命令のビット長を短くすることができるため、
ハードウェアの負担を軽減することができるという効果
がある。
Also, when transferring data between registers in a peripheral device, the bit length of the transfer instruction can be shortened by using a buffer register as an intermediary.
This has the effect of reducing the burden on hardware.

■・・・・−・インタフェース、2・・・・・・待機レ
ジスタ、3・・・・・・現行ラッチ、4・・・・・・制
御部、5・・・・・・動作部、6・・・・・・判定論理
部、101・・・・・・デコーダ、102・・・・・・
アップダウンカウンタ、103・・・・・・アンドゲー
ト、104・602・・・・・・フリップフロップ、2
01・・・・・・FIFOレジスタ、301・・・−・
・Dタイプラッチ、601・・・・・・組合わせ論理回
路。
■...Interface, 2...Waiting register, 3...Current latch, 4...Control unit, 5...Operation unit, 6 ...Judgment logic unit, 101...Decoder, 102...
Up/down counter, 103...and gate, 104/602...flip-flop, 2
01...FIFO register, 301...-
・D type latch, 601... Combinational logic circuit.

Claims (1)

【特許請求の範囲】 1、上位装置から動作を規定する命令を受けて動作を開
始し、動作の経過と動作の状況と動作の結果に応じてそ
れらに関する情報を送出しながら受けた命令を実行する
周辺装置において、前記上位装置から受ける命令を一連
の命令として管理するインタフェースと、前記一連の命
令を保持して順次に出力する待機レジスタと、前記待機
レジスタから命令を取出して実行命令を制御部に送出す
る現行ラッチとを備えることを特徴とする周辺装置。 2、内部のレジスタ間でデータの転送を行うためのバッ
ファレジスタを設けたことを特徴とする請求項第1項記
載の周辺装置。 3、上位装置から動作を規定する命令を受けて動作を開
始し、動作の経過と動作の状況と動作の結果に応じてそ
れらに関する情報を送出しながら受けた命令を実行する
周辺装置において、前記上位装置から受ける命令を一連
の命令として管理するインタフェースと、前記一連の命
令を保持して順次に出力する待機レジスタと、前記待機
レジスタから命令を取出して実行命令を制御部に送出す
る現行ラッチと、前記待機レジスタおよび前記現行ラッ
チの出力信号と前記制御部からの応答信号および動作部
からの動作情報とを入力して命令の実行を制限する制御
信号を前記待機レジスタおよび前記現行ラッチおよび前
記制御部に出力する判定論理部とを備えることを特徴と
する周辺装置。 4、内部のレジスタ間でデータの転送を行うためのバッ
ファレジスタを設けたことを特徴とする請求項第3項記
載の周辺装置。
[Scope of Claims] 1. Starts the operation upon receiving an instruction specifying the operation from the host device, and executes the received instruction while transmitting information regarding the progress of the operation, the status of the operation, and the result of the operation. In a peripheral device, the peripheral device includes: an interface that manages instructions received from the host device as a series of instructions; a standby register that holds the series of instructions and sequentially outputs them; and a control unit that takes out instructions from the standby register and executes the instructions. A peripheral device comprising: a current latch that sends a signal to a current latch; 2. The peripheral device according to claim 1, further comprising a buffer register for transferring data between internal registers. 3. A peripheral device that starts an operation upon receiving an instruction specifying an operation from a host device, and executes the received instruction while transmitting information regarding the progress of the operation, the status of the operation, and the result of the operation. an interface that manages instructions received from a host device as a series of instructions; a standby register that holds the series of instructions and sequentially outputs them; and a current latch that takes out instructions from the standby register and sends execution instructions to a control unit. , the output signals of the standby register and the current latch, the response signal from the control unit, and the operation information from the operation unit are inputted, and a control signal for limiting execution of an instruction is input to the standby register, the current latch, and the control unit. A peripheral device comprising: a determination logic section that outputs an output to the section. 4. The peripheral device according to claim 3, further comprising a buffer register for transferring data between internal registers.
JP25443990A 1990-09-25 1990-09-25 Peripheral device Pending JPH04131954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25443990A JPH04131954A (en) 1990-09-25 1990-09-25 Peripheral device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25443990A JPH04131954A (en) 1990-09-25 1990-09-25 Peripheral device

Publications (1)

Publication Number Publication Date
JPH04131954A true JPH04131954A (en) 1992-05-06

Family

ID=17265017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25443990A Pending JPH04131954A (en) 1990-09-25 1990-09-25 Peripheral device

Country Status (1)

Country Link
JP (1) JPH04131954A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802345A (en) * 1994-03-28 1998-09-01 Matsunami; Naoto Computer system with a reduced number of command end interrupts from auxiliary memory unit and method of reducing the number of command end interrupts

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802345A (en) * 1994-03-28 1998-09-01 Matsunami; Naoto Computer system with a reduced number of command end interrupts from auxiliary memory unit and method of reducing the number of command end interrupts

Similar Documents

Publication Publication Date Title
JPH04131954A (en) Peripheral device
CN114328357A (en) Interconnection communication method and system for bare chip and integrated package chip
JPH01246602A (en) Special function unit for programmable controller
JP2706390B2 (en) Vector unit usage right switching control method using multiple scalar units
JP2718690B2 (en) Communication control system
JPS61213932A (en) Decentralized duplex computer system and its control method
JPH1165623A (en) Programmable controller
US5125079A (en) Method for controlling the data transmission of a central unit interfacing control circuit and circuit arrangement for the implementation of the method
JPH0546535A (en) Data transfer interface device
JPS63305450A (en) Inter-processor communication system
JP3298018B2 (en) Programmable controller
JP2000347712A (en) Programmable controller
JPH03265054A (en) Data bus controller
JPS63153635A (en) Specification system for data transfer speed
JPS6055433A (en) Floppy disk controller
JP2006119982A (en) Computer system
JPH0228747A (en) Method for controlling bus
JPH0693226B2 (en) Interrupt reporting device
JPH0232645B2 (en)
JPS5941944A (en) Processing device of power failure of data transmission system
JPH05158723A (en) Abnormality diagnostic device for decentralized processing type controller
JPH04139556A (en) Retry control system
JPS5918733B2 (en) Data transmission/reception control device
JPH05181780A (en) Input/output control device and its method
JPH03121639A (en) Monitoring timer control system