JPH05241985A - Input/output controller - Google Patents

Input/output controller

Info

Publication number
JPH05241985A
JPH05241985A JP4045387A JP4538792A JPH05241985A JP H05241985 A JPH05241985 A JP H05241985A JP 4045387 A JP4045387 A JP 4045387A JP 4538792 A JP4538792 A JP 4538792A JP H05241985 A JPH05241985 A JP H05241985A
Authority
JP
Japan
Prior art keywords
input
data
error
output
fifo memory
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
JP4045387A
Other languages
Japanese (ja)
Inventor
Katsuhito Takatori
功人 鷹取
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4045387A priority Critical patent/JPH05241985A/en
Publication of JPH05241985A publication Critical patent/JPH05241985A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an input/output controller to delete only block data in which an error occurs as the input/output controller which controls plural input/ output devices. CONSTITUTION:This controller is provided with an error detection circuit 7 which detects an error in reception, FIFO memory 4 which buffets received data and an output bit from the error detection circuit 7 simultaneously, and a means which decides the effectiveness/ineffectiveness of data by the value of each output bit when the data is read out from the FIFO memory 4. Thereby, only the block data in which the error occurs can be deleted even when plural pieces of block data are stored in one FIFO memory 4, and another block data can be processed, which prevents one error from being affected on another data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、パケットのようなブ
ロックデータを用いて入出力装置を制御する入出力制御
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output control device for controlling an input / output device using block data such as packets.

【0002】[0002]

【従来の技術】図3は従来の入出力制御装置を示すブロ
ック図であり、図において、1は入出力制御装置全体を
示す。2は入出力制御装置1が制御する入出力装置(複
数台がバスで接続されるが、図では1台のみを示す)、
3は入出力バス、4aは入出力装置2から受信するデー
タを格納するFIFO(ファースト・イン・ファースト
・アウト)メモリ、5は受信データの流れ、6は受信デ
ータ5の書き込み信号、7は受信データ5のエラーチェ
ックを行う誤り検出回路、8aは誤り検出回路7でエラ
ーが検出されると出力されるエラー信号、9はFIFO
メモリ4aのEmpty信号、10はFIFOメモリ4
aから読み出されたデータ、11はFIFOメモリ4a
へのデータ読み出し信号、12は全体を制御するマイク
ロプロセッサである。
2. Description of the Related Art FIG. 3 is a block diagram showing a conventional input / output control device. In the figure, reference numeral 1 denotes the entire input / output control device. Reference numeral 2 denotes an input / output device controlled by the input / output control device 1 (a plurality of devices are connected by a bus, but only one is shown in the figure),
Reference numeral 3 is an input / output bus, 4a is a FIFO (first in first out) memory for storing data received from the input / output device 2, 5 is a flow of received data, 6 is a write signal of received data 5, and 7 is received. An error detection circuit for performing an error check of the data 5, 8a is an error signal output when an error is detected by the error detection circuit 7, and 9 is a FIFO.
Empty signal of memory 4a, 10 is FIFO memory 4
Data read from a, 11 is the FIFO memory 4a
A data read signal to, 12 is a microprocessor for controlling the whole.

【0003】次に動作について説明する。入出力装置2
は任意のタイミングでパケットの転送を開始する。この
パケットの転送は、書き込み信号6に単位データ5を同
期させて入出力バス3へ送出することによりパケットの
容量分行う。一方、入出力制御装置1内のFIFOメモ
リ4aは、書き込み信号6が出力されると無条件にその
時のデータ5を書き込む。また、これと同時に、誤り検
出回路7はその時のデータ5の正当性をチェックする。
そして、誤りが検出されるとエラー信号8aを出力す
る。
Next, the operation will be described. I / O device 2
Starts packet transfer at an arbitrary timing. This packet transfer is performed by synchronizing the unit data 5 with the write signal 6 and sending it to the input / output bus 3 for the capacity of the packet. On the other hand, the FIFO memory 4a in the input / output control device 1 unconditionally writes the data 5 at that time when the write signal 6 is output. At the same time, the error detection circuit 7 checks the validity of the data 5 at that time.
When an error is detected, the error signal 8a is output.

【0004】然しながら、入出力装置2はバースト的に
データを転送するので、エラー信号8aが出力されても
引続きFIFOメモリ4aへの書き込みが継続される。
そして1つのパケットの送出を終えると、入出力装置2
は任意のタイミングで新たなパケットを転送する。従っ
て、FIFOメモリ4aには複数のパケットが格納され
得る。これにより、FIFOメモリ4aの中には正常受
信したパケットとエラーが発生したパケットが混在して
格納されることになる。
However, since the input / output device 2 transfers data in bursts, writing to the FIFO memory 4a continues even if the error signal 8a is output.
When the transmission of one packet is completed, the input / output device 2
Transfers a new packet at an arbitrary timing. Therefore, a plurality of packets can be stored in the FIFO memory 4a. As a result, the normally received packet and the packet in which the error has occurred are mixedly stored in the FIFO memory 4a.

【0005】一方、マイクロプロセッサ12は、定期的
にFIFOメモリ4aの状態を監視し、FIFOメモリ
4aに1つ以上のパケットが受信されていることが分か
ると、1パケットづつ読み出してその処理を行う。然し
ながら、誤り検出回路7からエラー信号8aが出力され
ている場合、FIFOメモリ4aからの読み出しを行わ
ず、FIFOメモリ4aに格納されたデータを全て破棄
する。この理由は、FIFOメモリ4aに格納されたデ
ータのうち、どこまでが正常受信されたデータであるか
否かが判断できないからである。
On the other hand, the microprocessor 12 periodically monitors the state of the FIFO memory 4a, and if it finds that one or more packets are received in the FIFO memory 4a, it reads the packets one by one and performs the processing. . However, when the error signal 8a is output from the error detection circuit 7, reading from the FIFO memory 4a is not performed and all the data stored in the FIFO memory 4a is discarded. The reason for this is that it is not possible to determine how much of the data stored in the FIFO memory 4a is normally received data.

【0006】[0006]

【発明が解決しようとする課題】上記のような従来の入
出力制御装置は以上のように構成され動作するので、1
つのパケットの受信にエラーが発生するとFIFOメモ
リ内の全てのパケットを破棄しなければならず、複数の
パケットでエラー処理をすることが必要で、また、1つ
のパケットに関するエラーが他のパケットのエラーを引
き起こす原因になる等の問題点があった。
Since the conventional input / output control device as described above is constructed and operates as described above,
When an error occurs in the reception of one packet, all the packets in the FIFO memory must be discarded, and it is necessary to handle the error with a plurality of packets. Also, the error related to one packet is the error of the other packet. There were problems such as causing the

【0007】この発明はかかる問題点を解決するために
なされたものであり、エラーの発生したパケットだけを
破棄し、エラーの発生していないパケットは正常に処理
できる入出力制御装置を提供することを目的としてい
る。
The present invention has been made in order to solve such a problem, and provides an input / output control device capable of discarding only a packet in which an error has occurred and normally processing a packet in which no error has occurred. It is an object.

【0008】[0008]

【課題を解決するための手段】この発明に係る入出力制
御装置は、パケットを受信しFIFOメモリに書き込む
際、誤り検出回路からのエラー信号も同時にFIFOメ
モリに書き込むこととした。なお、本願発明に多少関連
ある先行技術としては、特開昭62−206657号公
報「プロセッサ間データ転送方式」がある。
In the input / output control device according to the present invention, when a packet is received and written in the FIFO memory, the error signal from the error detection circuit is also written in the FIFO memory at the same time. As a prior art somewhat related to the present invention, there is an interprocessor data transfer system disclosed in Japanese Patent Laid-Open No. 62-206657.

【0009】[0009]

【作用】この発明においては、受信したパケットをFI
FOメモリから読み出し、エラー信号に相当するビット
をチェックすることにより、データの正当性を判断で
き、パケットの有効,無効の区別が行える。
In the present invention, the received packet is FI
By reading from the FO memory and checking the bit corresponding to the error signal, it is possible to judge the validity of the data and distinguish whether the packet is valid or invalid.

【0010】[0010]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図面について説
明する。図1はこの発明の一実施例を示すブロック図で
あり、図において、1は入出力制御装置全体を示す。2
は入出力制御装置1が制御する入出力装置(複数台がバ
スで接続されるが、図では1台のみを示す)、3は入出
力制御装置1と入出力装置2とを接続している入出力バ
ス、4は入出力装置2から受信するデータを格納するF
IFO(ファースト・イン・ファースト・アウト)メモ
リ、5は受信データの流れ、6は受信データ5の書き込
み信号、7は受信データ5のエラーチェックを行う誤り
検出回路、8は誤り検出回路7でエラーが検出されると
出力されるエラー信号、9はFIFOメモリ4の状態を
示すEmpty信号、10はFIFOメモリ4から読み
出されたデータ、11はFIFOメモリ4へのデータ読
み出し信号、12は全体を制御するマイクロプロセッサ
である。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 shows the entire input / output control device. Two
Is an input / output device controlled by the input / output control device 1 (a plurality of devices are connected by a bus, but only one is shown in the figure). 3 is a connection between the input / output control device 1 and the input / output device 2. The input / output bus 4 is an F for storing data received from the input / output device 2.
IFO (first in first out) memory, 5 is a flow of received data, 6 is a write signal of the received data 5, 7 is an error detection circuit for performing an error check of the received data 5, and 8 is an error in the error detection circuit 7. Error signal output when is detected, 9 is an Empty signal indicating the state of the FIFO memory 4, 10 is data read from the FIFO memory 4, 11 is a data read signal to the FIFO memory 4, and 12 is the whole It is a controlling microprocessor.

【0011】図2は、図1に示すFIFOメモリ4のパ
ケット格納状態を示す図で、図において、41は格納さ
れたパケットのエラー発生の有無を表すエラーチェック
・ビットである。
FIG. 2 is a diagram showing a packet storage state of the FIFO memory 4 shown in FIG. 1. In the figure, 41 is an error check bit indicating whether or not an error has occurred in the stored packet.

【0012】次に動作について説明する。入出力装置2
は任意のタイミングでパケットの転送を開始する。この
パケットの転送は、書き込み信号6に単位データ5を同
期させて入出力バス3へ送出することによりパケットの
容量分行う。一方、入出力制御装置1内のFIFOメモ
リ4は、書き込み信号6が出力されると無条件にその時
のデータ5を書き込む。また、これと同時に、誤り検出
回路7はその時のデータ5の正当性をチェックする。そ
して、誤りが検出されるとエラー信号8を出力する。
Next, the operation will be described. I / O device 2
Starts packet transfer at an arbitrary timing. This packet transfer is performed by synchronizing the unit data 5 with the write signal 6 and sending it to the input / output bus 3 for the capacity of the packet. On the other hand, the FIFO memory 4 in the input / output control device 1 unconditionally writes the data 5 at that time when the write signal 6 is output. At the same time, the error detection circuit 7 checks the validity of the data 5 at that time. When an error is detected, the error signal 8 is output.

【0013】このエラー信号8は、FIFOメモリ4の
入力データに接続されており、書き込み信号6により上
述のデータ5と同様にしてFIFOメモリ4のエラーチ
ェック・ビット41へ書き込まれる。また、入出力装置
2はバースト的にデータを転送するので、エラーが発生
してもFIFOメモリ4への書き込みはエラー信号8の
書き込みと共に継続して行われる。
This error signal 8 is connected to the input data of the FIFO memory 4, and is written in the error check bit 41 of the FIFO memory 4 by the write signal 6 in the same manner as the above-mentioned data 5. Further, since the input / output device 2 transfers the data in a burst, even if an error occurs, the writing to the FIFO memory 4 is continued with the writing of the error signal 8.

【0014】そして、1つのパケットを送出を終える
と、入出力装置2は任意のタイミングで新たなパケット
を転送する。従って、FIFOメモリ4には複数のパケ
ットとその時のエラー信号8とが格納され得る。これに
より、FIFOメモリ4の中には正常受信したパケット
とエラーが発生したパケットとが混在して格納されるこ
とになる。
When transmission of one packet is completed, the input / output device 2 transfers a new packet at an arbitrary timing. Therefore, the FIFO memory 4 can store a plurality of packets and the error signal 8 at that time. As a result, the normally received packet and the packet in which the error has occurred are mixedly stored in the FIFO memory 4.

【0015】一方、マイクロプロセッサ12は、定期的
にFIFOメモリ4のEmpty信号9を監視し、FI
FOメモリ4に1つ以上のパケットが格納されているこ
とが分かると、1パケットづつ読み出してその処理を行
う。然しながら、読み出したデータ10のエラーチェッ
ク・ビット41が有意になっている場合、そのパケット
分のデータは破棄する。そして、FIFOメモリ4内に
まだパケットが有れば、順次読み出して、データのエラ
ー信号に相当するエラーチェック・ビット41をチェッ
クし、これが有意でなければ正常パケットとして順次処
理する。
On the other hand, the microprocessor 12 periodically monitors the Empty signal 9 of the FIFO memory 4,
When it is found that one or more packets are stored in the FO memory 4, the packets are read one by one and the processing is performed. However, if the error check bit 41 of the read data 10 is significant, the data for that packet is discarded. If there are still packets in the FIFO memory 4, the packets are sequentially read and the error check bit 41 corresponding to the error signal of the data is checked. If this is not significant, the packets are sequentially processed as normal packets.

【0016】[0016]

【発明の効果】この発明は以上説明したように、エラー
が発生したパケットと正常なパケットを区別して処理で
き、エラーの及ぼす範囲を最小限にとどめることが可能
で、信頼性の高い装置が得られるという効果がある。
As described above, according to the present invention, a packet in which an error has occurred and a normal packet can be distinguished and processed, and the range of the error can be minimized, and a highly reliable device can be obtained. There is an effect that is.

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

【図1】この発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示すFIFOメモリ4のパケット格納状
態を示す図である。
FIG. 2 is a diagram showing a packet storage state of the FIFO memory 4 shown in FIG.

【図3】従来の装置を示すブロック図である。FIG. 3 is a block diagram showing a conventional device.

【符号の説明】[Explanation of symbols]

1 入出力制御装置 2 入出力装置 3 入出力バス 4 FIFOメモリ 7 誤り検出回路 8 エラー信号 41 エラーチェック・ビット 1 I / O control device 2 I / O device 3 I / O bus 4 FIFO memory 7 Error detection circuit 8 Error signal 41 Error check bit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数台の入出力装置を制御する入出力制
御装置において、 上記入出力装置から送信されるデータを受信する受信回
路、 受信時のエラーを検出する誤り検出回路、 受信したデータおよび上記誤り検出回路からの出力ビッ
トを同時にバッファするFIFO(ファースト・イン・
ファースト・アウト)メモリ、 このFIFOメモリからデータを読み出す際には上記各
出力ビットの値で上記各データの有効無効を判定する手
段、 を備えた入出力制御装置。
1. An input / output control device for controlling a plurality of input / output devices, a receiving circuit for receiving data transmitted from the input / output device, an error detection circuit for detecting an error during reception, received data, and A FIFO (first-in-first-out) that simultaneously buffers output bits from the error detection circuit
First out) memory, and an input / output control device comprising means for judging validity / invalidity of each of the data by the value of each output bit when reading data from the FIFO memory.
JP4045387A 1992-03-03 1992-03-03 Input/output controller Pending JPH05241985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4045387A JPH05241985A (en) 1992-03-03 1992-03-03 Input/output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4045387A JPH05241985A (en) 1992-03-03 1992-03-03 Input/output controller

Publications (1)

Publication Number Publication Date
JPH05241985A true JPH05241985A (en) 1993-09-21

Family

ID=12717862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4045387A Pending JPH05241985A (en) 1992-03-03 1992-03-03 Input/output controller

Country Status (1)

Country Link
JP (1) JPH05241985A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001237864A (en) * 2000-02-25 2001-08-31 Toyo Commun Equip Co Ltd Data transmitter and method
JP2003524225A (en) * 1999-09-30 2003-08-12 シリコン グラフィックス インコーポレイテッド Method and apparatus for handling computer system errors

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003524225A (en) * 1999-09-30 2003-08-12 シリコン グラフィックス インコーポレイテッド Method and apparatus for handling computer system errors
JP2001237864A (en) * 2000-02-25 2001-08-31 Toyo Commun Equip Co Ltd Data transmitter and method

Similar Documents

Publication Publication Date Title
US4494190A (en) FIFO buffer to cache memory
JP2654369B2 (en) Adapter device provided between processor channel and switching mechanism
EP0525736B1 (en) Data storing system for a communication control circuit
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JPH05241985A (en) Input/output controller
JPH07262151A (en) Parallel processor system and packet abandoning method adapted to this system
JPH0744567B2 (en) Communication interface device
US4639860A (en) Wrap-around logic for interprocessor communications
JP3190214B2 (en) Data transmission / reception system
JPH096725A (en) Asynchronous data transfer receiver
JPH0683715A (en) Memory data copying system
KR0182707B1 (en) Method and apparatus for monitoring communication message between processors in switching system
JPS61234149A (en) Receiving buffer device
JP3082577B2 (en) First in first out memory device
JP2630077B2 (en) Clock synchronous serial interface
JPH0934831A (en) Data transfer system for bus adaptor
JP2803616B2 (en) I / O bus interface control method
JP2002007312A (en) Information input/output device
JP2933039B2 (en) Communication controller
KR100211960B1 (en) Frame discriminating method by parity scheme
JPS63219248A (en) Packet relay and transfer equipment
JPS6180350A (en) Reception processor
JPH086870A (en) Data transfer device
JPH0444157A (en) Data transfer method
JPH11175312A (en) Data transfer control unit