JPS60179837A - Buffer circuit of receiving data - Google Patents

Buffer circuit of receiving data

Info

Publication number
JPS60179837A
JPS60179837A JP59035162A JP3516284A JPS60179837A JP S60179837 A JPS60179837 A JP S60179837A JP 59035162 A JP59035162 A JP 59035162A JP 3516284 A JP3516284 A JP 3516284A JP S60179837 A JPS60179837 A JP S60179837A
Authority
JP
Japan
Prior art keywords
data
buffer memory
read
buffer
address
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
JP59035162A
Other languages
Japanese (ja)
Inventor
Osamu Miyazaki
修 宮崎
Juichi Takashima
高島 重一
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.)
Toshiba Corp
Toshiba AVE Co Ltd
Original Assignee
Toshiba Corp
Toshiba Audio Video Engineering 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 Toshiba Corp, Toshiba Audio Video Engineering Co Ltd filed Critical Toshiba Corp
Priority to JP59035162A priority Critical patent/JPS60179837A/en
Publication of JPS60179837A publication Critical patent/JPS60179837A/en
Pending legal-status Critical Current

Links

Landscapes

  • Communication Control (AREA)

Abstract

PURPOSE:To prevent a receiving side from the reduction of data processing efficiency by requesting the stop of transmission of data to a transmitting side before the fullness of a buffer memory for temporarily storing receiving data. CONSTITUTION:Outputs from a write address counter 1 and a read address counter 2 are switched by an address selector 5 synchronously with a timing pulse TP2 and supplied to an address of the buffer memory 8. The received data is read out from a read buffer 10 in the writing order in a write buffer 9 and an output from a data counter 3 shows the number of data left in the buffer memory 8. The output of the data counter 3 is inputted to a data counting value detecting circuit 4 and a data existence DTE, a data full signal FULL and signals S1, S2 indicating the existence of excess of a threshold are obtained from the circuit 4. On the basis of these signals, data transmission stop or data transmission restart are designated to the transmitting side.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、データ受信システムにおいて、受信したデー
タを一時格納するデータバッファのデータ量の監視を容
易に行なえるようにした受信データバッファ回路に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a reception data buffer circuit that makes it possible to easily monitor the amount of data in a data buffer that temporarily stores received data in a data reception system.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

データ受信システムでは、伝送されるデータの伝送速度
が受信システムの処理スピードに比べて速い場合、ある
いは遅延時間をおいてから伝送されたデータの処理をす
る場0合等がある。このとき、受信システムでは処理を
保留しておか々ければならず、受信データを一時格納し
ておくためのデータバッファメモリが必要となる。これ
には、データを入力した順に読み出しが行なえるFIF
O(ファーストイン・ファーストアウト)メモリを用い
ることが有効である。
In a data receiving system, there are cases where the transmission speed of transmitted data is faster than the processing speed of the receiving system, or where the transmitted data is processed after a delay time. At this time, the receiving system must suspend processing, and a data buffer memory is required to temporarily store the received data. This includes a FIF that allows data to be read in the order in which it was input.
It is effective to use O (first-in, first-out) memory.

しかし、従来のFIFOメモリを用いたバッファは、バ
ッファ内のデータの有無とバッファが満ばいになったか
どうかを判別する信号しか持っていない。このためFI
FOメモ゛りを受信バッファとして用いた場合、バッフ
ァが満ばいになってからデータ送信側へデータの停止を
知らせても1時間的ずれが生じてしまい、なおデータが
送信されるのでデータを取シ逃してしまう。従って、そ
れ以後に受信するデータを別に格納して置くことのでき
るバッファが必要となるといった問題を有する。
However, conventional buffers using FIFO memory only have signals for determining the presence or absence of data in the buffer and whether the buffer is full. For this reason, FI
If FO memory is used as a reception buffer, even if the buffer is full and the data sending side is notified to stop data, there will be a one-hour lag, and the data will still be sent, so it will not be possible to retrieve the data. I miss it. Therefore, there is a problem in that a buffer that can separately store data to be received thereafter is required.

また、一旦停止を指示した後に送信側へのデータの送信
再開を指示するタイミングにおいても。
Also, at the timing of instructing the sending side to resume data transmission after once instructing to stop.

バッファの有無を知らせる信号を用いたのでは。I guess they used a signal to notify the presence or absence of a buffer.

バッファが一度空になってから再開を指示するため、こ
の間受信システムとしては処理するデータが無くなるこ
とになる。従って時間的な無駄が生じ、データの受信が
円滑に行なえず、データ処理の効率が悪いといった欠点
があった。
Since restart is instructed after the buffer is once empty, the receiving system has no data to process during this time. Therefore, there are disadvantages in that time is wasted, data cannot be received smoothly, and data processing is inefficient.

〔発明の目的〕[Purpose of the invention]

本発明は、受信データを一時格納するデータバッファが
満たされる前にデータの送信停止、さらに上記バッファ
にデータが無くなる前にデータの送信再開の信号を送信
側へ出すタイミングが得られる受信データバッファ回路
を提供することを目的とする。
The present invention provides a reception data buffer circuit that can stop data transmission before a data buffer that temporarily stores reception data is filled, and can obtain timing to issue a signal to the transmission side to resume data transmission before the buffer runs out of data. The purpose is to provide

〔発明の概要〕[Summary of the invention]

この発明では、受信データを一時的に格納しておくバッ
ファメモリに対するデータのアクセスアドレスの指定を
書き込みアドレス設定手段及び読み出しアドレス設定手
段で行なうと共に、データカウント手段によシ上記バッ
ファメモリ内のデータ数を計数してデータ量の監視を行
なう。さらに。
In this invention, the write address setting means and the read address setting means specify the data access address for the buffer memory that temporarily stores received data, and the data count means specifies the number of data in the buffer memory. The amount of data is monitored by counting the amount of data. moreover.

上記バッファメモリの容量に対する上限及び下限のしき
い値を設定し、上記データカウント手段の計数値が上限
のしきい値を超えたときはデータ送信側にデータの送信
停止を要求し、また上記データカウンタの計数値が下限
のしきい値未満になったときはデータ送信側にデータの
送信再開を要求することによって上記目的を達成してい
る。
Upper and lower thresholds are set for the capacity of the buffer memory, and when the count value of the data counting means exceeds the upper threshold, the data sending side is requested to stop transmitting data, and the data The above objective is achieved by requesting the data transmitting side to resume data transmission when the count value of the counter becomes less than the lower threshold.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照して本発明の受信データ量くツファ回
路に係る一実施例について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a received data quantity filter circuit according to the present invention will be described below with reference to the drawings.

本実施例の概要を示す第1図において、(8)はデータ
を一時格納するだめのバッファメモ’Jul)はバッフ
ァメモリ(8)にデータを書き込むアドレスを指定する
だめのライトアドレスカウンタ、(2)はノ(ソファメ
モリ(8)から格納されたデータを読み出すアドレスを
指定するためのリードアドレスカウンタ、(3)はバラ
スアメモリ(8)に格納されているデータ数をカウント
するデータカウンタ、(4)はデータカウンタ(3)の
出力するデータ数からデータの;汀無DTE 、満ばい
FULL、Lきい値超過の有無SI等を検出するデータ
カウント値検出回路、(5)はノくソファメモ1月8)
の書き込みと読み出しのアドレスを択一的に切り換える
だめのアドレスセレクタ、(9)はバッファメモリ(8
)に格納するデータを一時記憶させるだめのライトバッ
ファ、00)はバッファメモリ(8)から読み出したデ
ータを一時記憶させるためのり(8)へ書き込むための
タイミングパルスであり、かつライトアドレスカウンタ
(1)とデータカウンタ(3)をカウントアツプさせる
ためのタイミングパルスであるライトタイミングパルス
WPを発生するライトタイミングパルス発生回路、(力
は上記バッファメモリ(8)から次に読み出すべきデー
タをリードバッファ(10)へ記憶させるだめのタイミ
ングパルスであシ、かつリードアドレスカウンタ(2)
をカウントアツプさせるだめのタイミングパルスである
リードタイミングパルスBPを発生するリードタイミン
グパルス発生回路、 (11)は上記データカウンタ(
3)をカウントダウンさせるためのカウントダウンパル
スDPを発生するカウントダウンパルス発生回路である
In FIG. 1 showing the outline of this embodiment, (8) is a buffer memory 'Jul) for temporarily storing data, a write address counter (2) for specifying an address to write data to the buffer memory (8), and (2) ) is a read address counter for specifying the address to read data stored in the sofa memory (8), (3) is a data counter that counts the number of data stored in the balance memory (8), (4) (5) is a data count value detection circuit that detects the data from the number of data output by the data counter (3); no DTE, full FULL, presence or absence of SI exceeding the L threshold, etc. (5) )
The address selector (9) is used to selectively switch the write and read addresses of the buffer memory (8
00) is a timing pulse for writing data read from the buffer memory (8) to the glue (8) for temporary storage, and the write address counter (1 ) and a write timing pulse generation circuit that generates a write timing pulse WP which is a timing pulse for counting up the data counter (3). ) and the read address counter (2).
(11) is a read timing pulse generation circuit that generates a read timing pulse BP which is a timing pulse for counting up the data counter (11).
3) is a countdown pulse generation circuit that generates a countdown pulse DP for counting down.

以下、上記構成の本実施例の動作について説明する。バ
ッファメモリ(8)はバッファを必要とするデータの量
によって任意のものを使用できる。ここでは説明を簡単
にするため、データ綜8ピット。
The operation of this embodiment having the above configuration will be described below. Any buffer memory (8) can be used depending on the amount of data that requires buffering. Here, to simplify the explanation, the data is 8 pits.

アドレス線10ビツトの容量IKバイトのメモリを仮定
する。
Assume a memory with a capacity of IK bytes and a 10-bit address line.

ライトアドレスカウンタ(1)とリードアドレス力1/
1(2)l’i、初期状態において同一のアドレスをア
クセスするために同一のカウント値を示しておく必要が
あシ、本実施例ではリセットパルスR8Tによって′0
”にリセットする。このとき、バッファメモリ(8)内
のデータ数をカウントすると同時にデータカウンタ(3
)も0”にリセットする。この状態において、データカ
ウント値検出回路(4)ではデータカウンタ(3)の各
出力のO几をとシ、バッファメモリ(8)内のデータの
有無を示す信号DTE (第2図i)に、・データ無し
の状態を出力する。ライトアドレスカウンタ(1)とリ
ードアドレスカウンタ(2)の出力は、アドレスセレク
タ(5)によシタイミングパルスTP2 (第2図b)
に同期して切シ換えてバッファメモリ(8)のアドレス
へ供給している。これによシ、バッファメモリ(8)に
対するデータの書き込み及び読み出し要求が同時に生じ
ても、バッファメモ1月8)に対するアクセスは択一的
に行表われるので、データの衝突を防ぐことができる。
Write address counter (1) and read address force 1/
1 (2) l'i, it is necessary to indicate the same count value in order to access the same address in the initial state, and in this embodiment, the reset pulse R8T
At this time, the number of data in the buffer memory (8) is counted and the data counter (3) is reset at the same time.
) is also reset to 0". In this state, the data count value detection circuit (4) detects the output of each output of the data counter (3) and outputs the signal DTE indicating the presence or absence of data in the buffer memory (8). (Fig. 2 i): - Outputs the state of no data. The outputs of the write address counter (1) and read address counter (2) are outputted by the address selector (5) to the timing pulse TP2 (Fig. 2 b). )
The data is switched in synchronization with the data and supplied to the address of the buffer memory (8). As a result, even if data write and read requests to the buffer memory (8) occur at the same time, access to the buffer memory (January 8) is performed selectively, and data collisions can be prevented.

先ず、受信データはデータ入力バスDIから8ビツトで
入力し、ライトパルスWR(第2図、C)にょシライト
バッファ(9)ヘラッチされる。ライトバッファ(9)
の出力は3ステートでコントロールし、第2図中)に示
すタイミングパルスTP2がH″の期間であるライト期
間でのみバッファメモリ(8)へ通じる内部バスI−B
USにデータを供給するようにしている。
First, received data is input in 8 bits from the data input bus DI, and is latched into the write buffer (9) by the write pulse WR (FIG. 2, C). Write buffer (9)
The output of is controlled in three states, and the internal bus I-B is connected to the buffer memory (8) only during the write period when the timing pulse TP2 shown in Fig. 2 is H''.
We are trying to supply data to the US.

ライトパルス剋は、また、ライトタイミングパルス発生
回路(6)へ供給される。さらに、ここには常にタイミ
ングパルスTPI(第2図a )、!:TP2(第2図
b)が供給される。このライトタイミング発生回路(6
)は、このタイミングパルスTPt、TP2を使って、
ライトパルス■が入力してから次のライト期間であるタ
イミングパルスTP2がH”のときにのみライトタイミ
ングパルスWP (第2図d)が発生する構成となって
いる。とのライトタイミングパルスWPによシバソファ
メモ1月8)には、ライトアドレスカウンタ(1)によ
って指示されるアドレスにライトバッファ(9)のデー
タが書き込まれる。
The write pulse is also supplied to a write timing pulse generation circuit (6). Furthermore, there is always a timing pulse TPI (Fig. 2a), ! :TP2 (FIG. 2b) is supplied. This write timing generation circuit (6
) uses these timing pulses TPt and TP2,
The structure is such that the write timing pulse WP (Fig. 2 d) is generated only when the timing pulse TP2, which is the next write period after the write pulse ■ is input, is H''. In the Yoshiba Sofa Memo January 8), data in the write buffer (9) is written to the address indicated by the write address counter (1).

このライトタイミングパルス発生回路(6)の詳細を第
3図に示して説明するに、ライトパルスWRをフリップ
フロップ(61)のトリガパルスとして用いる。
The details of this write timing pulse generation circuit (6) will be explained with reference to FIG. 3. The write pulse WR is used as a trigger pulse for the flip-flop (61).

そして、この7リツプフロツプ(61ンの出力をフリッ
プフロップ(62)においてタイミングパルスTP2で
ラッチし、この出力をナントゲート(63)においてタ
イミングパルスTP1でゲートすることによってライト
タイミングパルスWPを発生している。
Then, the output of these 7 lip-flops (61) is latched with a timing pulse TP2 in a flip-flop (62), and this output is gated with a timing pulse TP1 in a Nant gate (63), thereby generating a write timing pulse WP. .

ライトタイミングパルスWPはライトアドレスカウンタ
(1)とデータカウンタ(3)へも同時に供給される。
The write timing pulse WP is also supplied to the write address counter (1) and data counter (3) at the same time.

これによシライトアドレスカウンタ(1)は第2図<y
>のようにカウントアツプされ、次のデータが書き込ま
れるときのバッファメモ1月8)のアドレスを示す。デ
ータカウンタ(3)も同様にカウントアツプされる。こ
のようにライトバッファ(9)へデータを次々と入力す
ることによシライトアドレスカウンタ(1)はカウント
アツプして0.1.2.3.・・・(10進)を出力す
る。そしてこのカウント値の指定するバッファメモリ(
8)のアドレスに順次ライトバッファ(9)に格納され
たデータは書き込まれる。なお、このライトアドレスカ
ウンタ(1)では1023の次のカウント値は0となシ
、サイクリックにカウントする。又、データカウンタ(
3)も同様にしてライトタイミングパルスWPによシ順
次カウントアツプされ。
As a result, the light address counter (1) is
> is counted up and indicates the address of the buffer memo 8) when the next data is written. The data counter (3) is also counted up in the same way. By inputting data one after another to the write buffer (9) in this way, the write address counter (1) counts up to 0.1.2.3. ...(decimal) is output. And the buffer memory specified by this count value (
The data stored in the write buffer (9) is sequentially written to the address 8). Note that this write address counter (1) counts cyclically, with the next count value after 1023 being 0. Also, data counter (
3) is similarly counted up sequentially by the write timing pulse WP.

バッファメモリ(8)に格納されたデータ数を示す。Indicates the number of data stored in the buffer memory (8).

バッファメモリ(8)にデータが書き込まれると、デー
タカウント値検出回路(4)から出力されるデータの有
無を示す信号DTEは、第2図(i)のようにデータカ
ウンタ(3)の出力に同期して変化する。この信号DT
Eは、データカウンタ(3)の値が0″に戻るまで変化
しない。
When data is written to the buffer memory (8), the signal DTE indicating the presence or absence of data output from the data count value detection circuit (4) is sent to the output of the data counter (3) as shown in Figure 2 (i). change in sync. This signal DT
E does not change until the value of the data counter (3) returns to 0''.

バッファメモリ(8)に格納されたデータの読み出しは
、リードバッファ00)にリードパルスRD(第2図e
)を入力することによシ3ステートの出力を開いて行な
っている。但し、このリードパルスRDの入力前に、こ
のリードバッファ顛にはバッファメモリ(8)から読み
出すべきデータをラッチしておかなければならない。し
かし、リードパルスRDを入力してから次に読み出すべ
きデータがバッファメモリ(8)からリードバッファα
Qにラッチされるため、前処理なしでは最初に読み取っ
たデータは無意味なものとなシ、それ以後のデータは1
つずつずれた形で読み出されることになる。従って、上
述の問題が生じないように、バッファメモリ(8)内の
データ数が零の時に書き込まれたデータは、読み出し要
求がある前、即ちリードパルスR,Dが入力する前にリ
ードバッファa〔ヘラッチし、かつリードアドレスカウ
ンタ(2)の値を1つ先へ進めておく必要がある。
To read the data stored in the buffer memory (8), a read pulse RD (Fig. 2 e) is applied to the read buffer 00).
) is used to open the output of the 3-state. However, before inputting this read pulse RD, data to be read from the buffer memory (8) must be latched in this read buffer. However, after inputting the read pulse RD, the next data to be read is from the read buffer α from the buffer memory (8).
Since it is latched to Q, the first data read is meaningless without preprocessing, and subsequent data is 1
They will be read out in a shifted format. Therefore, in order to avoid the above-mentioned problem, the data written when the number of data in the buffer memory (8) is zero is stored in the read buffer a before there is a read request, that is, before read pulses R and D are input. [It is necessary to latch and advance the value of the read address counter (2) by one.

そこで次に、上述した如くデータカウンタ(3)の値が
10”のときにバッファメモリ(8)にデータが書き込
まれると1次のタイミングパルスTP2がL”の期間、
即ち次のリード期間に上記書き込まれたデータをバッフ
ァメモリ(8)からリードバッファa〔ヘラッチすると
ともに、リードアドレスカウンタ(2)をカウントアツ
プするリードタイミングパルスRPを発生するリードタ
イミングパルス発生回路(7)について、第4図を参照
して説明する。
Therefore, as described above, when data is written to the buffer memory (8) when the value of the data counter (3) is 10'', the period when the primary timing pulse TP2 is L'',
That is, in the next read period, the written data is latched from the buffer memory (8) to the read buffer a, and the read timing pulse generation circuit (7) generates a read timing pulse RP that counts up the read address counter (2). ) will be explained with reference to FIG.

このリードタイミングパルス発生回路(7)は、オアゲ
ート(70及びアンドゲート(72)によシリードパル
スRDだけでなく、データカウンタ(3)の値が10″
のときのライトタイミングパルスWPをトリガパルスと
してタイミングパルスRPを作シ出している。即ち、バ
ッファメモ1月8)内にデータが存在するときは信号D
TEは”H”であるからアンドゲート(72)の出力は
リードパルスRDに依存し、リードパルスRDがトリガ
パルスとなシ、一方データが存在しないときは信号DT
Eは″L″、リーードパルスRDは1H”であるのでア
ンドゲート(72)の出力線ライトタイミングパルスW
Pに依存し、ライトタイミングパルスWPがトリガパル
スと寿る。従りて、このリードタイミング/</l/ス
発生回路σ)は、バッファメモリ(8)内にデータが存
在しない状態においてライトタイミングパルスWPが入
力したとき及びリードパルスFLDが入力したときの次
のリード、期間に、第2図(f)で示すリードタイミン
グパルスRPを作シ出し、リードバッファ(10)及び
リードアドレスカウンタ(2)へ供給している。
This read timing pulse generation circuit (7) not only generates a serial read pulse RD through an OR gate (70) and an AND gate (72), but also generates a data counter (3) whose value is 10''.
The timing pulse RP is generated using the write timing pulse WP at the time as a trigger pulse. That is, when data exists in the buffer memo 8), the signal D is output.
Since TE is "H", the output of the AND gate (72) depends on the read pulse RD, and the read pulse RD is not a trigger pulse.On the other hand, when there is no data, the output of the AND gate (72) is the trigger pulse.
Since E is "L" and the read pulse RD is 1H", the output line write timing pulse W of the AND gate (72)
Depending on P, the write timing pulse WP serves as the trigger pulse. Therefore, this read timing/</l/s generation circuit σ) is configured to generate the next timing when the write timing pulse WP is input and when the read pulse FLD is input in a state where no data exists in the buffer memory (8). During the read period, a read timing pulse RP shown in FIG. 2(f) is generated and supplied to the read buffer (10) and read address counter (2).

このリードタイミングパルスRPによって、このときの
リードアドレスカウンタ(2)の示す値即ち。
This read timing pulse RP causes the value indicated by the read address counter (2) at this time, ie.

次に読み出すべきデータのアドレスによってバッフ7メ
裕り(8)から読み出されたデータを、3ステートの出
力を開くことによシリードバッファ(1〔ヘラッチして
いる。リードタイミングパルスRPは同時に、リードア
ドレスカウンタ(2)に入力してリードアドレスカウン
タ(2)をカウントアツプさせている。従って、リード
バラフッQ0からデータを読み出す毎にリードアドレス
カウンタ(2)はカウントアツプし、0,1,2.3・
・・(10進)のアドレスで示されるバッファメモリ(
8)に格納されたデータが順次読み出されることになる
The data read from the buffer 7 margin (8) according to the address of the data to be read next is latched to the serial read buffer (1) by opening the 3-state output.The read timing pulse RP is simultaneously , is input to the read address counter (2) to cause the read address counter (2) to count up.Therefore, every time data is read from the read balance buffer Q0, the read address counter (2) counts up, and 0, 1, 2. .3・
...The buffer memory indicated by the address (in decimal) (
8) will be sequentially read out.

また、リードパルスRDはカウントダウンパルス発生回
路αυに入力され、データカラン/(3)のカウントダ
ウンクロックとして用いている。このカウントダウンパ
ルス発生回路(11)の詳細を第5図に示すが、このカ
ウントダウンパルス発生回路Iは上述したライトタイミ
ングパルス発生回路(6)と同一構成であシ、入力信号
をリードパルスRD、タイミングパルスTPI、 TP
2に変えることによってカウントダウンパルスDPを得
ているので、説明を省略する。このカウントダウンパル
ス発生回路(11)によシ。
Further, the read pulse RD is input to the countdown pulse generation circuit αυ, and is used as a countdown clock for the data callan/(3). The details of this countdown pulse generation circuit (11) are shown in FIG. 5. This countdown pulse generation circuit I has the same configuration as the above-mentioned write timing pulse generation circuit (6). Pulse TPI, TP
Since the countdown pulse DP is obtained by changing to 2, the explanation will be omitted. This countdown pulse generation circuit (11) is used.

データカウンタ(3)のカウント値はデータを読み出し
た数だけカウントダウンされ、バッファメモリ(8)に
残っているデータ数を示すことになる。このようにして
受i言したデータはライトバッフ丁(9)に書き込まれ
た順にリードバッファ(10)から読み出すことができ
、データカウンタ(3)の出力はバッファメモリ(8)
に残っているデータ数を示す。
The count value of the data counter (3) is counted down by the number of data read out, and indicates the number of data remaining in the buffer memory (8). The data received in this way can be read from the read buffer (10) in the order written to the write buffer (9), and the output of the data counter (3) is sent to the buffer memory (8).
Indicates the number of data remaining.

このデータカウンタ(3)の出力をデータカウント値検
出回路(4)に入力してデータの有無DTE、データの
満ばいFULL、Lきい値超越の有無s1. s2等の
信号を得ている。次にこのデータカウント値検出回路(
4)の詳細を第6図に示して、その説明をする。図中(
41)はデータの有無DTEを検出するORゲート、0
4はデータバッファの満ばいFULI、を検出するAN
Dゲートである。ここでは、簡単のためしきい値を51
2バイトと256バイトに設定し512バイトを越える
タイミングを81の立ち上がり、陳た256バイトを下
回るタイミングを82の立ち上がシでとらえている。デ
ータ有無の信号DTEは(41)のORゲートによシデ
ータカウンタ(3)の出力が全て′″0”となる場合を
検出して得ている。また、データの満ばいの信号FUL
Lは(4りのANDゲートにょシデータカウンタ(3)
の出力が全て1”となる場合を検出して得ている。(4
3と(44)はバッファメモリ(8)のデータ数が51
2バイトを越える時を検出するものである。データカウ
ンタ(3)が512バイトすなわち最上位ビットQ、以
外が全て”1”となる時1次の513バイト目の書き込
みが行なわれるとライトタイミングパルスVVPO幅だ
けのパルスが(43のANDゲートの出力に現われる。
The output of this data counter (3) is inputted to the data count value detection circuit (4) to determine the presence or absence of data DTE, the presence or absence of data FULL, and the presence or absence of exceeding the L threshold s1. Signals such as s2 are obtained. Next, this data count value detection circuit (
The details of 4) are shown in FIG. 6 and will be explained. In the figure (
41) is an OR gate that detects the presence or absence of data DTE, 0
4 is AN that detects FULI when the data buffer is full.
This is the D gate. Here, for simplicity, we set the threshold to 51.
Setting the data to 2 bytes and 256 bytes, the timing of exceeding 512 bytes is captured at the rising edge of 81, and the timing of falling below 256 bytes is captured at the rising edge of 82. The data presence/absence signal DTE is obtained by detecting the case where the outputs of the data counter (3) are all ``0'' using the OR gate (41). In addition, the data full signal FUL
L is (4 AND gate data counter (3)
It is obtained by detecting the case where all the outputs of are 1". (4
3 and (44), the number of data in buffer memory (8) is 51
This detects when the number exceeds 2 bytes. When the data counter (3) is 512 bytes, that is, all the bits except the most significant bit Q are "1", when the 513th byte of the first order is written, a pulse equal to the width of the write timing pulse VVPO is generated (of the AND gate of 43). Appears in the output.

そこで、0滲のノリツブフロップ−をパルスCLRによ
ってリセットして出力Qを予め@0”にしておけば、こ
のパルスによって(11→〕出カは′θ″から″1”に
変化する。この出方信号s1にょシデータの送信停止を
送信側に指示するタイミングを得ている。ここでG3へ
の入力信号にはライトタイミングパルスWPを用いてい
るため、512バイトを越えた状態から512バイト以
下にアドレスカウンタ(3)が変化する時にはアンドゲ
ート(4りの出力は変化せず、したがって信号S1も変
わらない。このように、信号S1はバッファメモリ(8
)のデータ数が512バイトを越える場合だけ変化する
。0■、06)は同様にして、しきい値を256バイト
に設定しである。但し、ここではANDゲート(4Qの
入力にライトタイミングパルスWPを使わずカウントダ
ウンパルスDPを用いている。このため、256バイト
のところではデータ数が256バイトを横切って下回る
時だけ信号S2は変化する。この信号S2で送信側にデ
ータの送信再開を指示するタイミングを得ている。また
、フリップフロップG14)、(4G)に入力している
信号CLRは、一旦変化した信号81.82をリセット
してONの状態に戻すための信号である。このようにし
て、データ数が512バイトを越える時と256バイト
を下回る時のタイミングを得ることによって1通常バッ
ファメモリ(8)のデータ数を管理することなく、容易
にデータの送信停止及び再開を送信側指示するタイミン
グを得ている。
Therefore, if the 0-bit Noritsubu flop is reset by the pulse CLR and the output Q is set to @0'' in advance, the output (11→) changes from ``θ'' to ``1'' by this pulse. The output signal s1 has obtained the timing to instruct the transmitting side to stop transmitting the data.Here, since the write timing pulse WP is used as the input signal to G3, it changes from the state exceeding 512 bytes to below 512 bytes. When the address counter (3) changes, the output of the AND gate (4) does not change, so the signal S1 also does not change.
) changes only when the number of data exceeds 512 bytes. 0■, 06), the threshold value is set to 256 bytes in the same way. However, here, the countdown pulse DP is used instead of the write timing pulse WP for the input of the AND gate (4Q). Therefore, at 256 bytes, the signal S2 changes only when the number of data crosses 256 bytes and falls below. This signal S2 provides the timing to instruct the transmitting side to resume data transmission.In addition, the signal CLR input to the flip-flops G14) and (4G) resets the once changed signals 81 and 82. This is a signal for returning to the ON state. In this way, by obtaining the timing when the number of data exceeds 512 bytes and when it falls below 256 bytes, it is possible to easily stop and restart data transmission without having to manage the number of data in one normal buffer memory (8). The sender has obtained the timing to give instructions.

以上説明した如く1本実施例によればバッファメモリ(
8)の容量の半分の512バイトを上限のしきい値に設
定し、バッファメモリ(8)内のデータ数がこの上限の
しきい値を超えると送信側にデータの送信停止を要求で
きるので、バッファメモリ(8)が満ばいとなることが
なく予備のバッファメモリを必要としない。まだ、25
6バイトを下限のしきい値に設定し、バッファメモリ(
8)内のデータ数がとの下限のしきい値を下回ると送信
側にデータの送信再開を要求できるので、バッファメモ
リ(8)が空になることがなく受信側のデータ処理効率
は低下することがない。さらに、上述のデータ送信停止
及び送信再開の要求によって送信側の制御をすることに
より、バッファメモリ(8)内のデータ数の監視が容易
にできる。
As explained above, according to this embodiment, the buffer memory (
The upper threshold is set to 512 bytes, which is half of the capacity of buffer memory (8), and when the number of data in the buffer memory (8) exceeds this upper threshold, the sending side can be requested to stop sending data. The buffer memory (8) never becomes full and no spare buffer memory is required. Still 25
Set 6 bytes as the lower threshold and use the buffer memory (
If the number of data in 8) falls below the lower threshold, the sending side can be requested to resume data transmission, so the buffer memory (8) will not become empty and the data processing efficiency on the receiving side will decrease. Never. Furthermore, by controlling the transmitting side using the above-mentioned request to stop and restart data transmission, the number of data in the buffer memory (8) can be easily monitored.

なお、ここではデータ量のしきい値を512バイトと2
56バイトに設定しであるが、アンドゲート儲及びGツ
の入力にデータカウンタ(3)の出力Q、−Q。
Note that here we set the data amount threshold to 512 bytes and 2
Although it is set to 56 bytes, the outputs Q and -Q of the data counter (3) are input to the AND gate and G.

の反転が非反転の信号のどちらかを選択することによシ
、しきい値を任意に変えられるのは明らかで゛ある。
It is clear that the threshold value can be changed arbitrarily by selecting either the inverted or non-inverted signal.

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

本発明によれば、受信データを一時格納するバッファメ
モリが満ばいになる以前に送信側にデータの送信停止を
要求できるので、上記バッファメモリが満ばいとなるこ
とがなく、予備のバックアメモリは不要である。また、
バッファメモリが空になる以前に送信側にデータの送信
再開を要求できるので上記バッファメモリが空となるこ
とがなく、受信側のデータ処理効率が低下することはな
い。
According to the present invention, it is possible to request the sending side to stop transmitting data before the buffer memory that temporarily stores received data is full, so the buffer memory does not become full and the spare backup memory is Not necessary. Also,
Since the sending side can be requested to resume data transmission before the buffer memory becomes empty, the buffer memory never becomes empty and data processing efficiency on the receiving side does not deteriorate.

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

第1図は本発明の受信データバッファ回路に係る一実施
例を示すブロック図、第2図は第1図に詳細を示す回路
図である。 1・・・ライトアドレスカウンタ 2・・・リードアドレスカウンタ 3・・・データカウンタ 4・・・データカウント値検出回路 5・・・アドレスセレクタ 6・・・ライトタイミングパルス発生回路7・・・リー
ドタイミングパルス発生回路8・・・バッファメモリ 9・・・ライトバッファ 10・・・リードバッファ 11・・・カウントダウンパルス発生回路代理人 弁理
士 則 近 憲 佑 (ほか1名) 第2図 (1)D丁E 第311’?1 し−−−−−−−J 隼4図
FIG. 1 is a block diagram showing an embodiment of the received data buffer circuit of the present invention, and FIG. 2 is a circuit diagram showing the details of FIG. 1. 1... Write address counter 2... Read address counter 3... Data counter 4... Data count value detection circuit 5... Address selector 6... Write timing pulse generation circuit 7... Read timing Pulse generation circuit 8...Buffer memory 9...Write buffer 10...Read buffer 11...Countdown pulse generation circuit Agent Patent attorney Noriyuki Chika (and 1 other person) Figure 2 (1) D-dou E 311'? 1 Shi------J Hayabusa figure 4

Claims (1)

【特許請求の範囲】 データ送信側から送信されたデータを一時格納しておく
バッファメモリと。 このバッファメモリに格納すべきデータを該バッファメ
モリに書き込む書き込み手段と、このデータ書き込み手
段によシ前記バッファメモリにデータを書き込むアドレ
スを設定する書き込みアドレス設定手段と、 前記バッファメモリに格納されたデータを該バッファメ
モリから読み出すデータ読み出し手段と。 このデータ読み出し手段によシ前記バッファメモリから
データを読み出すアドレスを設定する読み出しアドレス
設定手段と。 前記バッファメモリに前記データ書き込み手段によって
データが書き込まれたときは加算計数し。 一方該バツクアメモリから前記データ読み出し手段によ
ってデータが読み出されたときは減算計数して、該バッ
ファメモリに格納されているデータ数を計数するデータ
カウント手段と。 とのデータカウント手段の計数値が前記バッファメモリ
の容量に対する所定の上限のしきい値を超えたときは前
記データ送信側に対しデータの送信停止信号を出力し、
一方該データカウント手段の計数値が所定の下限のしき
い値未満となったときは該データ送信側に対しデータの
送信再開信号を出力するデータカウント値検出手段とを
具備したことを特徴とする受信データバッファ回路。
[Claims] A buffer memory that temporarily stores data sent from a data sending side. writing means for writing data to be stored in the buffer memory into the buffer memory; write address setting means for setting an address at which the data writing means writes data into the buffer memory; and data stored in the buffer memory. data reading means for reading out the data from the buffer memory; read address setting means for setting an address from which data is read from the buffer memory by the data reading means; When data is written into the buffer memory by the data writing means, addition is performed. and data counting means for counting the number of data stored in the buffer memory by subtracting the data when the data is read from the buffer memory by the data reading means. When the counted value of the data counting means exceeds a predetermined upper threshold for the capacity of the buffer memory, outputting a data transmission stop signal to the data transmitting side;
On the other hand, the data count value detecting means outputs a data transmission restart signal to the data transmitting side when the counted value of the data counting means becomes less than a predetermined lower limit threshold. Receive data buffer circuit.
JP59035162A 1984-02-28 1984-02-28 Buffer circuit of receiving data Pending JPS60179837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59035162A JPS60179837A (en) 1984-02-28 1984-02-28 Buffer circuit of receiving data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59035162A JPS60179837A (en) 1984-02-28 1984-02-28 Buffer circuit of receiving data

Publications (1)

Publication Number Publication Date
JPS60179837A true JPS60179837A (en) 1985-09-13

Family

ID=12434174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59035162A Pending JPS60179837A (en) 1984-02-28 1984-02-28 Buffer circuit of receiving data

Country Status (1)

Country Link
JP (1) JPS60179837A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62189550A (en) * 1985-12-16 1987-08-19 エイ・ティ・アンド・ティ・コーポレーション Processor access controller for multiprocessor system
JPS6361323A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6361324A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6361325A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6365733A (en) * 1986-09-05 1988-03-24 Nec Corp Packet exchange data transfer system
JPS6373324A (en) * 1986-09-05 1988-04-02 Fujitsu Ltd Memory control system for bar code reader
JPS6429925A (en) * 1987-07-24 1989-01-31 Matsushita Electric Ind Co Ltd Fifo circuit
JPS6454547A (en) * 1987-08-25 1989-03-02 Nec Corp Information processor with program trace function
JPH01204168A (en) * 1988-02-09 1989-08-16 Nec Corp Data processor
JPH01273159A (en) * 1988-04-25 1989-11-01 Nec Corp Dma transfer control system
JPH0217557A (en) * 1988-07-06 1990-01-22 Nec Corp Channel device
JPH0235251U (en) * 1988-08-26 1990-03-07
JPH02192253A (en) * 1989-01-20 1990-07-30 Hitachi Ltd Communication control processor
JPH04315234A (en) * 1991-04-15 1992-11-06 Mitsubishi Electric Corp Memory system
JP2015188163A (en) * 2014-03-26 2015-10-29 富士通株式会社 Data reception device, control method for data reception device, and data transmission/reception system having data transmission device and data reception device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62189550A (en) * 1985-12-16 1987-08-19 エイ・ティ・アンド・ティ・コーポレーション Processor access controller for multiprocessor system
JPS6361323A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6361324A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6361325A (en) * 1986-09-02 1988-03-17 Canon Inc Data input/output memory
JPS6365733A (en) * 1986-09-05 1988-03-24 Nec Corp Packet exchange data transfer system
JPS6373324A (en) * 1986-09-05 1988-04-02 Fujitsu Ltd Memory control system for bar code reader
JPS6429925A (en) * 1987-07-24 1989-01-31 Matsushita Electric Ind Co Ltd Fifo circuit
JPS6454547A (en) * 1987-08-25 1989-03-02 Nec Corp Information processor with program trace function
JPH01204168A (en) * 1988-02-09 1989-08-16 Nec Corp Data processor
JPH01273159A (en) * 1988-04-25 1989-11-01 Nec Corp Dma transfer control system
JPH0217557A (en) * 1988-07-06 1990-01-22 Nec Corp Channel device
JPH0235251U (en) * 1988-08-26 1990-03-07
JPH02192253A (en) * 1989-01-20 1990-07-30 Hitachi Ltd Communication control processor
JPH04315234A (en) * 1991-04-15 1992-11-06 Mitsubishi Electric Corp Memory system
JP2015188163A (en) * 2014-03-26 2015-10-29 富士通株式会社 Data reception device, control method for data reception device, and data transmission/reception system having data transmission device and data reception device

Similar Documents

Publication Publication Date Title
JPS60179837A (en) Buffer circuit of receiving data
US4829475A (en) Method and apparatus for simultaneous address increment and memory write operations
US5884099A (en) Control circuit for a buffer memory to transfer data between systems operating at different speeds
JPS58225432A (en) Request buffer device
JPH06259225A (en) Synchronizer of data transfer
US5434892A (en) Throttling circuit for a data transfer system
US6816504B1 (en) Method and apparatus for transferring deterministic latency packets in a ringlet
JP3765547B2 (en) FIFO status indicator
KR20010013137A (en) Communication DMA Device
JP2597040B2 (en) FIFO memory device
US6445635B1 (en) High speed asynchronous and programmable state machine for generating almost empty synchronous flags in a synchronous FIFO
JP3871424B2 (en) Memory control device
US6421351B1 (en) Cell phase control device applicable to data of size exceeding fixed length defined in advance with respect to cell length of write pulse signal or read pulse
JPS63267060A (en) Control method for picture information buffer
JPH06187123A (en) Data input/output device
JPH07253920A (en) Fifo ram controller
JPH04306755A (en) Fifo buffer device
JP3193155B2 (en) DMA control method
JPH01284950A (en) Input/output channel system
JPH03100851A (en) Fifo storage device
JPS6019023B2 (en) data processing equipment
JPS63114369A (en) Picture signal processing device
CN115586974A (en) Memory controller, system, device and electronic equipment
JPH0430643A (en) Buffer control system
JPS58151647A (en) Input controlling system in console panel