JPH05120217A - Data communication device - Google Patents

Data communication device

Info

Publication number
JPH05120217A
JPH05120217A JP27938291A JP27938291A JPH05120217A JP H05120217 A JPH05120217 A JP H05120217A JP 27938291 A JP27938291 A JP 27938291A JP 27938291 A JP27938291 A JP 27938291A JP H05120217 A JPH05120217 A JP H05120217A
Authority
JP
Japan
Prior art keywords
data
memory cell
signal
memory cells
read
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
JP27938291A
Other languages
Japanese (ja)
Inventor
Tetsuya Sera
哲也 世良
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP27938291A priority Critical patent/JPH05120217A/en
Publication of JPH05120217A publication Critical patent/JPH05120217A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To improve the operation efficiency of a transmission-side host processor. CONSTITUTION:In FIFO, this data communication device is equipped with plural memory cells 5-1-5-n corresponding to plural stages of buffers, a write counter 4 which generates and outputs a signal specifying a memory cell to be written among the memory cells 5-1-5-n and a write signal for the specified memory cell, a flip-flop 6 which holds information showing that transfer data are written in the memory cells 5-1-5-n in order until the transfer data are written in the final memory cell. A readout counter 7 which generates and outputs a signal specifying a memory cell to be read among the memory cells 5-1-5-n and a readout signal for the specified memory cell, and a flip-flop 8 which holds information showing that the all memory cells 5-1-5-n can be read.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ通信装置に関し、
特に、FIFOを介して行われるホストプロセッサ間の
データ通信装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication device,
In particular, it relates to a data communication device between host processors performed via a FIFO.

【0002】[0002]

【従来の技術】従来の、この種のデータ通信装置におい
ては、図3に示されるように、送信側のホストプロセッ
サA9と、受信側のホストプロセッサB11との間にF
IFO10が設けられており、内部バスA204および
内部バスB205を介してデータの授受が行われてい
る。図3において、送信側のホストプロセッサA9より
受信側のホストプロセッサB11に対してデータが転送
される場合には、内部バスA204を経由して、送信デ
ータ113が、書込み用アドレスポインタ・リセット信
号115、および書込み信号116を介してFIFO1
0に書込まれ、受信データ114が、読出し用アドレス
ポインタ・リセット信号117、および読出し信号11
8を介して、内部バス205を経由してホストプロセッ
サB11に受信される。ホストプロセッサB11におい
ては、受信されたデータの誤りの有無が検出され、その
誤り検出信号119が送信側のホストプロセッサA9に
送られる。
2. Description of the Related Art In a conventional data communication apparatus of this type, as shown in FIG. 3, an F-channel is provided between a host processor A9 on the transmitting side and a host processor B11 on the receiving side.
An IFO 10 is provided, and data is exchanged via the internal bus A204 and the internal bus B205. In FIG. 3, when data is transferred from the host processor A9 on the transmission side to the host processor B11 on the reception side, the transmission data 113 is transmitted via the internal bus A204 and the write address pointer / reset signal 115 is transmitted. , And FIFO1 via write signal 116
0, and the received data 114 is read address pointer reset signal 117 and read signal 11
8 via the internal bus 205, and is received by the host processor B11. The host processor B11 detects the presence or absence of an error in the received data, and sends the error detection signal 119 to the host processor A9 on the transmitting side.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
通信装置においては、送信側のホストプロセッサA9よ
り受信側のホストプロセッサB11に対してデータ転送
が行われている定常状態においては、FIFO10に対
応する書込み側と読出し側の動作は非同期にて行われて
おり、書込み時にセットされ、読出し時にリセットされ
る情報をデータに追加することにより、同期がとられて
いる。従って、一般的には、書込みが全て終了した直後
において、読出し動作も完了してしまうのが実情であ
る。そこで、若しも、ハードウェアの不具合等により、
誤ったデータがFIFO10に書込まれ、受信側に伝達
された場合には、受信側より、逐一、誤り検出信号を送
信側に送出せざるを得ない状態となり、送信側のホスト
プロセッサA9においては、この誤り検出信号を受け
て、逐一当該誤り検出信号をサンプリングして、再転送
するより方法がない状況となる。
In the conventional data communication apparatus described above, the FIFO 10 is supported in the steady state in which the data is transferred from the host processor A9 on the transmitting side to the host processor B11 on the receiving side. The operations on the write side and the read side are performed asynchronously, and are synchronized by adding information that is set at the time of writing and reset at the time of reading to the data. Therefore, in general, the read operation is also completed immediately after all the writing is completed. So, even if you have a hardware problem,
When erroneous data is written in the FIFO 10 and transmitted to the receiving side, the receiving side is forced to send an error detection signal to the transmitting side, and the host processor A9 on the transmitting side receives In this situation, there is no way to receive this error detection signal, sample the error detection signal one by one, and retransmit the signal.

【0004】このために、送信側のホストプロセッサA
9におけるデータ転送プログラムが煩雑になるばかりで
なく、データ転送ならびに再転送の増大に伴なってオー
バヘッド時間が多大となり、本来の処理能力が著しく低
下してしまうという欠点がある。
To this end, the host processor A on the transmitting side
Not only is the data transfer program in No. 9 complicated, but the overhead time increases with the increase in data transfer and retransfer, and the original processing capacity is significantly reduced.

【0005】[0005]

【課題を解決するための手段】本発明のデータ通信装置
は、FIFOを介してデータ転送を行うデータ通信装置
において、前記FIFO内部に、複数段のバッファに対
応する複数のメモリセルと、送信側より出力されるデー
タ書込み信号に対応して、前記複数のメモリセルの内の
書込み対象のメモリセルを指定する信号と、指定された
当該メモリセルに対する書込み信号とを生成して出力す
る書込みカウンタと、前記複数のメモリセルに順次転送
データが書込まれてゆき、最終のメモリセルにも転送デ
ータが書込まれたことを示す情報を保持する第1の情報
保持手段と、受信側より出力されるデータ読出し信号に
対応して、前記複数のメモリセルの内の読出し対象のメ
モリセルを指定する信号と、指定された当該メモリセル
に対する読出し信号とを生成して出力する読出しカウン
タと、前記複数のメモリセルが全て読出し可能であるか
否かを示す情報を保持する第2の情報保持手段と、を備
えて構成される。
A data communication apparatus according to the present invention is a data communication apparatus for transferring data via a FIFO, wherein a plurality of memory cells corresponding to a plurality of stages of buffers are provided inside the FIFO, and a transmission side. A write counter that generates and outputs a signal designating a memory cell to be programmed among the plurality of memory cells and a write signal to the designated memory cell in response to a data write signal output from the memory cell. , The transfer data is sequentially written into the plurality of memory cells, and first information holding means for holding information indicating that the transfer data has been written into the final memory cell, and output from the receiving side. A signal for designating a memory cell to be read out of the plurality of memory cells and a read signal for the designated memory cell. Configured to include a read counter for generating and outputting the door, and a second information holding means for said plurality of memory cell holds information indicating whether all is readable, the.

【0006】なお、前記第1および第2の情報保持手段
は、それぞれフリップフロップにより形成してもよい。
The first and second information holding means may be formed by flip-flops.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例を示すブロック図
である。図1に示されるように、本実施例は、送信側に
おけるデータ授受に関与する内部バスA201、および
受信側におけるデータ授受に関与する内部バスB202
に対応して、送信側のホストプロセッサA1と、FIF
O2と、受信側のホストプロセッサB3とを備えて構成
される。また、図2は、図1におけるFIFO2の内部
構成を示すブロック図であり、図2に示されるように、
FIFO2は、内部バスA201に対応して、書込み対
象のメモリセルを指定する信号ならびに書込みパルスを
発生する書込みカウンタ4と、n(正整数)段のバッフ
ァに対応するn個のメモリセル5−1〜5−nと、最終
メモリが書込まれた情報を保持するフリップフロップ6
と、読出し対象となるメモリセルを指定する信号ならび
に読出しパルスを発生する読出しカウンタ7と、全メモ
リセルが読出し可能であるか否かを示す情報を保持する
フリップフロップ8とを備えて構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. As shown in FIG. 1, in this embodiment, an internal bus A201 involved in data exchange on the transmission side and an internal bus B202 involved in data exchange on the reception side.
Corresponding to, the host processor A1 on the transmission side and the FIF
It comprises O2 and a host processor B3 on the receiving side. 2 is a block diagram showing the internal configuration of the FIFO 2 shown in FIG. 1. As shown in FIG.
The FIFO 2 corresponds to the internal bus A201, and a write counter 4 for generating a signal designating a memory cell to be written and a write pulse, and n memory cells 5-1 corresponding to a buffer of n (positive integer) stages. ~ 5-n and the flip-flop 6 which holds the information written in the final memory
A read counter 7 for generating a signal for designating a memory cell to be read and a read pulse; and a flip-flop 8 for holding information indicating whether or not all memory cells can be read. .

【0009】以下、図1および図2を参照して、送信側
のホストプロセッサA1より、データがFIFO2に書
込まれる処理手順について説明する。
A processing procedure for writing data in the FIFO2 from the host processor A1 on the transmitting side will be described below with reference to FIGS. 1 and 2.

【0010】先ず、送信側においては、内部バスA20
1を経由して入力されるメモリフル信号108がリセッ
ト状態、即ち全メモリセルが読出し不可の状態にあるか
否かが確認され、然る後、書込み用アドレスポインタ・
リセット信号103が出力する。FIFO2において
は、書込み用アドレスポインタ・リセット信号103を
受けて書込みカウンタ4がクリアされる。次いで、内部
バスA201を経由して書込み信号104が書込みカウ
ンタ4に入力され、n個のメモリセル5−1〜5−nに
順次転送データが書込まれる。これらの各メモリセルに
対しては、書込み信号104が1回入力されるごとに書
込みカウンタ4がインクリメント(+1)され、順次メ
モリセル5−1〜5−nが指定されてゆく。最終的に、
最後のメモリセルにデータが書込まれると、フリップフ
ロップ6における状態ビットがリセットされ、このフリ
ップフロップ6より出力されるキャリー信号111
(0)の入力を介してフリップフロップ8がセットさ
れ、当該フリップフロップ8からは、メモリフルの状態
を示すメモリフル信号108が出力されて、内部バスA
201を経由して送信側に送出される。送信側において
は、このメモリフル信号108を受けて、データ転送が
不可能な状態にあることが確認され、以後のデータ転送
は中断される。
First, on the transmitting side, the internal bus A20 is used.
It is confirmed whether the memory full signal 108 input via 1 is in the reset state, that is, whether all the memory cells are in the unreadable state. After that, the write address pointer
The reset signal 103 is output. In the FIFO 2, the write counter 4 is cleared in response to the write address pointer / reset signal 103. Then, the write signal 104 is input to the write counter 4 via the internal bus A201, and the transfer data is sequentially written to the n memory cells 5-1 to 5-n. For each of these memory cells, the write counter 4 is incremented (+1) every time the write signal 104 is input, and the memory cells 5-1 to 5-n are sequentially designated. Finally,
When the data is written in the last memory cell, the status bit in the flip-flop 6 is reset, and the carry signal 111 output from the flip-flop 6 is reset.
The flip-flop 8 is set via the input of (0), and the flip-flop 8 outputs the memory full signal 108 indicating the memory full state, and the internal bus A
It is sent to the transmission side via 201. On the transmitting side, upon receiving this memory full signal 108, it is confirmed that data transfer is impossible, and the subsequent data transfer is interrupted.

【0011】他方、受信側においては、先ず、読出し用
アドレスポインタ・リセット信号105が、内部バスB
202を経由してFIFO2に対して出力される。FI
FO2においては、読出し用アドレスポインタ・リセッ
ト信号105を受けて、読出しカウンタ7がリセットさ
れ、これによりフリップフロップ6における状態ビット
がセットされて、見掛上のメモリフル状態が設定され
る。次いで受信側より入力される読出し完了信号107
を受けて、フリップフロップ8がリセットされ、メモリ
フル信号108が反転されて出力されて、全メモリセル
が読出し不可、即ち送信可の状態にあることが送信側に
伝達される。以後、受信側より入力される読出し信号1
06を介して、メモリセル5−1〜5−nのデータが逐
次読出され、読出しカウンタ7においては、当該読出し
信号106が1回入力されるごとにインクリメントさ
れ、順次メモリセルが指定されてゆく。そして最後のメ
モリセルのデータが読出されると、フリップフロップ6
における状態ビットがリセットされ、キャリー信号11
1としては0が出力されてフリップフロップ8に入力さ
れる。これによりフリップフロップ8はセットされ、フ
リップフロップ8より出力されるメモリフル信号108
は1(メモリフルの状態)となり、送信側に送出され
る。この状態において読出しを終了する場合には、受信
側より入力される読出し用アドレスポインタ・リセット
信号105を介してフリップフロップ6がリセットさ
れ、受信側より入力される読出し完了信号107の入力
を受けて、フリップフロップ8がリセットされて、メモ
リフル信号108は0、即ち、読出し不可の状態を示す
情報が出力される。また、逆に、メモリセルより再度デ
ータを読出す場合には、読出し用アドレスポインタ・リ
セット信号105の入力を受けて、上述の動作手順が最
初から繰返して行われる。
On the other hand, on the receiving side, first, the read address pointer / reset signal 105 is transferred to the internal bus B.
It is output to the FIFO 2 via 202. FI
In FO2, in response to the read address pointer reset signal 105, the read counter 7 is reset, whereby the status bit in the flip-flop 6 is set and the apparent memory full status is set. Next, a read completion signal 107 input from the receiving side
In response to this, the flip-flop 8 is reset, the memory full signal 108 is inverted and output, and it is transmitted to the transmitting side that all the memory cells are in the unreadable state, that is, the transmittable state. After that, the read signal 1 input from the receiving side
The data of the memory cells 5-1 to 5-n are sequentially read out via 06, and the read counter 7 is incremented each time the read signal 106 is input once, and the memory cells are sequentially designated. . When the data of the last memory cell is read, the flip-flop 6
The status bit at is reset and the carry signal 11
0 is output as 1 and is input to the flip-flop 8. As a result, the flip-flop 8 is set and the memory full signal 108 output from the flip-flop 8 is set.
Is 1 (memory full state) and is sent to the transmitting side. When the reading is completed in this state, the flip-flop 6 is reset via the read address pointer / reset signal 105 input from the receiving side, and the read completion signal 107 input from the receiving side is received. The flip-flop 8 is reset, and the memory full signal 108 is 0, that is, the information indicating the unreadable state is output. On the contrary, when the data is read again from the memory cell, the above-mentioned operation procedure is repeated from the beginning upon receiving the read address pointer / reset signal 105.

【0012】[0012]

【発明の効果】以上説明したように、本発明は、送信側
において、FIFOにおけるデータ格納量が限界値の状
態にあることを認識し、受信側において、最終的に読出
し完了信号を発信するまではデータ転送が中断されるた
めに、この間においては、受信側において何度でも再読
出しをすることが可能となり、ハードウェアによるデー
タ転送に不測の事態が発生した場合においても、送信側
の制御作用を介することなく受信側において対応策を講
ずることが可能となり、送信側のホストプロセッサの稼
働効率を改善することができるという効果がある。
As described above, according to the present invention, the transmitting side recognizes that the amount of data stored in the FIFO is in the limit value state, and the receiving side finally transmits the read completion signal. Since the data transfer is interrupted, the receiving side can reread the data any number of times during this period, and even if an unexpected situation occurs in the data transfer by the hardware, the control action of the sending side can be performed. Therefore, it is possible to take countermeasures on the receiving side without going through, and it is possible to improve the operating efficiency of the host processor on the transmitting side.

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

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

【図2】本実施例におけるFIFOの内部構成を示すブ
ロック図である。
FIG. 2 is a block diagram showing an internal configuration of a FIFO in this embodiment.

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

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

1、9 ホストプロセッサA 2、10 FIFO 3、11 ホストプロセッサB 4 書込みカウンタ 5−1〜5−n メモリセル 6、8 フリップフロップ 7 読出しカウンタ 1, 9 Host processor A 2, 10 FIFO 3, 11 Host processor B 4 Write counter 5-1 to 5-n Memory cell 6, 8 Flip-flop 7 Read counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 FIFOを介してデータ転送が行われる
データ通信装置において、前記FIFO内部に、 複数段のバッファに対応する複数のメモリセルと、 送信側より出力されるデータ書込み信号に対応して、前
記複数のメモリセルの内の書込み対象のメモリセルを指
定する信号と、指定された当該メモリセルに対する書込
み信号とを生成して出力する書込みカウンタと、 前記複数のメモリセルに順次転送データが書込まれてゆ
き、最終のメモリセルにも転送データが書込まれたこと
を示す情報を保持する第1の情報保持手段と、 受信側より出力されるデータ読出し信号に対応して、前
記複数のメモリセルの内の読出し対象のメモリセルを指
定する信号と、指定された当該メモリセルに対する読出
し信号とを生成して出力する読出しカウンタと、 前記複数のメモリセルが全て読出し可能であるか否かを
示す情報を保持する第2の情報保持手段と、 を備えることを特徴とするデータ通信装置。
1. A data communication device in which data is transferred via a FIFO, wherein a plurality of memory cells corresponding to a plurality of stages of buffers and a data write signal output from a transmission side are provided inside the FIFO. A write counter for generating and outputting a signal designating a memory cell to be written in the plurality of memory cells and a write signal for the designated memory cell, and sequentially transferring data to the plurality of memory cells. As the data is written, the first information holding means for holding the information indicating that the transfer data has been written in the final memory cell, and the plurality of the plurality of data corresponding to the data read signal output from the receiving side. Read counter that generates and outputs a signal designating a memory cell to be read out of the memory cells of and the read signal to the designated memory cell. If data communication apparatus characterized by comprising a second information holding means for holding information of the plurality of memory cells indicating whether all is readable.
【請求項2】 前記第1および第2の情報保持手段が、
それぞれフリップフロップにより形成される請求項1記
載のデータ通信装置。
2. The first and second information holding means,
The data communication device according to claim 1, each of which is formed by a flip-flop.
JP27938291A 1991-10-25 1991-10-25 Data communication device Pending JPH05120217A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27938291A JPH05120217A (en) 1991-10-25 1991-10-25 Data communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27938291A JPH05120217A (en) 1991-10-25 1991-10-25 Data communication device

Publications (1)

Publication Number Publication Date
JPH05120217A true JPH05120217A (en) 1993-05-18

Family

ID=17610366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27938291A Pending JPH05120217A (en) 1991-10-25 1991-10-25 Data communication device

Country Status (1)

Country Link
JP (1) JPH05120217A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004509532A (en) * 2000-09-15 2004-03-25 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Signal processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004509532A (en) * 2000-09-15 2004-03-25 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Signal processing device

Similar Documents

Publication Publication Date Title
US5374926A (en) Communications circuit having an interface for external address decoding
JPH01147647A (en) Data processor
JPH02227765A (en) Data transfer apparatus for digital computer
US4736368A (en) Priority token protocol circuit for a token ring local area network adaptor
JPS5940310A (en) Simulation for magnetic tape memory device
US5228129A (en) Synchronous communication interface for reducing the effect of data processor latency
JPH0685852A (en) Buffer device with re-transmission function
JPH05120217A (en) Data communication device
JPS6019821B2 (en) Serial data reception method
JP3190214B2 (en) Data transmission / reception system
JPH05334230A (en) Dual port memory access control circuit
JPH05114925A (en) Serial data transmission interface
JPH0115100B2 (en)
JP2933039B2 (en) Communication controller
JP3068545B2 (en) INFORMATION PROCESSING APPARATUS, RETRY CONTROL METHOD THEREOF, AND RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE METHOD
JPS63136851A (en) Data communication equipment
JPH05241985A (en) I / O controller
JPS60167052A (en) Data transfer method
JPH04232504A (en) data transmission equipment
JPS6113845A (en) Communication control equipment
JPS63219248A (en) Packet relay and transfer equipment
JPH05298133A (en) Data transfer device
JPH01103755A (en) Device for transferring data
JPS6256545B2 (en)
JPS6165649A (en) Communication control system