JPS60193044A - Data buffer device - Google Patents

Data buffer device

Info

Publication number
JPS60193044A
JPS60193044A JP4873184A JP4873184A JPS60193044A JP S60193044 A JPS60193044 A JP S60193044A JP 4873184 A JP4873184 A JP 4873184A JP 4873184 A JP4873184 A JP 4873184A JP S60193044 A JPS60193044 A JP S60193044A
Authority
JP
Japan
Prior art keywords
buffer
data
memory
circuit
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
JP4873184A
Other languages
Japanese (ja)
Inventor
Atsushi Ishikawa
淳 石川
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
Nippon Electric 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 Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP4873184A priority Critical patent/JPS60193044A/en
Publication of JPS60193044A publication Critical patent/JPS60193044A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To always comply with read request and to improve the data transfer efficiency by storing a prescribed data number to one of both buffer memories and at the same time giving the write control to the other buffer memory. CONSTITUTION:The data given from an input line 101 are written successively to either one of buffer memories 1 and 2 with the control given from buffer control circuits 9 and 10 respectively and according to the addresses designated by buffer address counters 3 and 4. The circuit 9 monitors the value of the counter 3 via an input line 302 and discontinues a writing action when the value of the counter 3 reaches a set level and gives an indication to the circuit 10 through an output line 902 to write the data to the memory 2. The memory 1 receives a read request and reads out stored data at and after an address ''0''.

Description

【発明の詳細な説明】 〔技術分野〕 本発明はデータバッファ回路に関し、特に2個のRAM
を用いたダブルバッファ構成のデータバッファにおいて
、書込み動作を注意のアドレスで中止しこれを読出しう
るデータバッファ回路に関する。
[Detailed Description of the Invention] [Technical Field] The present invention relates to a data buffer circuit, and particularly to a data buffer circuit that uses two RAMs.
The present invention relates to a data buffer circuit that is capable of stopping a write operation at a particular address and reading it out in a data buffer having a double buffer configuration using the above.

〔従来技術〕[Prior art]

コンピュータシステムと周辺装置間の如く一般的に非同
期状態でデータの授受を行なうシステムとデバイス間に
は転送速裏紗衝用としてのデータバッファ回路が用いら
れることが多い。またこのようた場合には一般にシステ
ムバスの方かデータバスよりも高速なデータ転送が行な
われ、システムバスを介して受けたデータをいりたんデ
ータバッファにストアしたうえデバイス側に逐次送出し
たり、あるいは逆にデバイス側から受けたデータをいり
たんデータバッファにストアしてからシステムバスに逐
次送出するようにしてバスツイン相互間の転送速度の相
違をデータバッファで緩衝しつつデータの転送が実施さ
れることはよく知られている。
Data buffer circuits for controlling transfer speeds are often used between systems and devices that generally exchange data in an asynchronous manner, such as between a computer system and a peripheral device. In such cases, data transfer is generally performed using the system bus or at a higher speed than the data bus, and the data received via the system bus is stored in a data buffer and then sequentially sent to the device. Alternatively, the data received from the device side may be stored in a data buffer and then sequentially sent to the system bus, so that the data transfer is performed while buffering the difference in transfer speed between the bus twins with the data buffer. It is well known that

このような目的に利用されるデータバッファには通常F
IFO(First−In−First−Out)方式
によるバッファメモリあるいはレジスタを利用するもの
、もしくはRAMを利用するものなどがあるが、これら
のうちRAMを利用するものは構成も簡単であり形状も
比較的小型にしうる等の条件から多用されているものの
1込みと計、出しとを同時に奥行することができないた
め1(、AMを2個利用していわゆるダブルバッファ構
成とし、読出しと誉込み動作とを連立させていることが
多い。
Data buffers used for this purpose are usually F
There are methods that use buffer memory or registers based on the IFO (First-In-First-Out) method, and methods that use RAM, but among these, those that use RAM have a simple configuration and a relatively small shape. Although it is often used for reasons such as miniaturization, it is not possible to increase the depth of 1 in, total, and out at the same time. They are often combined.

しかし力から、RAMを2個使用したこのダブルバッフ
ァ構成のデータバッファ回路にありては、2個のRAM
のうちいずれか一方の几AMが完全に書込まれたあとで
ないと他方のRAMにはt込めないという制約があり、
このためRAMに対する書込みが完了しないうちに読出
し豐求を受けてもこのサービスには答えられず、特にデ
ータ転送開始時にはこの傾向が顕著なものとなるという
欠点がある。
However, due to power reasons, in this double buffer configuration data buffer circuit that uses two RAMs, the data buffer circuit uses two RAMs.
There is a restriction that data cannot be loaded into the other RAM until one of the two RAMs has been completely written.
For this reason, even if a read request is received before the writing to the RAM is completed, this service cannot be answered, and this tendency is particularly noticeable at the start of data transfer, which is a drawback.

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

不発Q’Jの目的は上述した欠点を除去し、2個のRA
Mをバッファメモリとして構成されるデータバッファ装
置において、データ転送開始時はいずれか一方のバッフ
ァメモリに予め定められたデータ数だけ格納すると、他
方に書込み制御を渡し、自らは読出し待榛状態になり、
それ以後は書込中のバッファメモリが書込み完了状態に
ならない段階でも読出し中のバッファメモリの有効デー
タが1″0#になりしだいその時点のアドレスで書込み
動作を中止し読出し動作に移行実施可能な手段を備える
ことにより、バッファメモリベの書込み中にあっても任
意のアドレスでこれを中止し読出し要求に対するサービ
スに答えることができるデータバッファ装置を提供する
ことにある。
The purpose of the misfiring Q'J is to eliminate the above-mentioned drawbacks and to
In a data buffer device configured with M as a buffer memory, at the start of data transfer, when a predetermined number of data is stored in one of the buffer memories, write control is passed to the other buffer memory, and the device itself enters a read waiting state. ,
After that, even if the buffer memory being written to does not reach the write completion state, as soon as the valid data in the buffer memory being read reaches 1″0#, the writing operation can be stopped at the address at that point and the read operation can be started. It is an object of the present invention to provide a data buffer device which can stop writing to a buffer memory at an arbitrary address and respond to a read request even if it is in the middle of writing to a buffer memory.

〔発明の構成〕[Structure of the invention]

本発明の装置杖、複数のデータ格納位置を有するメモリ
回路と、このメそり回路のデータ格納位置を指定しこれ
に対する書込みおよび読出し動作終了時に次のデータ格
納位置を指定するように内容を更新するアドレスカウン
タと、直前の書込み動作におけるアドレスカウンタ内の
データ格納位置を保持するアドレスレジスタと、読出し
動作において前記アドレスカウンタと前記アドレスレジ
スタの内容を比較し前記メモリ回路内の有効格納データ
の有無を検出する検出回路と前記メモリ回路に対する読
出し書込み動作を制御するメモリ制御回路とを有するバ
ッファ手段を2個有しデータ転送開始時にセットされ前
記メモリ制御回路のうちいずれか一方によってリセット
されるフリツプフロツプ回路を有するバッファ装置にお
いて、データ転送開始時にあっては前記フリッグ7四ツ
ブ回路がセットされると前記2個のバッファ手段のうち
のいずれか一方が書込み動作を奥行し書込み動作中の前
記アドレスカウンタが予め設定した値に達すると書込み
動作中の前記バッファ制御回路は智込み動作を停止して
前記7リツプフロツプ回路をリセットするとともに他方
のバッフ7手段に書込み動作を開始させて自らは続出し
動作を奥行に移行しそれ以後は前記2個のバッファ手段
は交互に1・込みおよび読出し動作を分担実行しつつ書
込みを実行する方のバッファ手段は読出し動作をする方
のバッファ手段の有効格納データの検出回路が有効デー
タ無しを検出した場合に前記メモリ回路のアドレスが最
高番地に達していなくとも書込み動作を停止したうえ読
出し動作に移行する仁とができるデータ書込み読出し手
段を備えて構成される。
The device of the present invention includes a memory circuit having a plurality of data storage locations, and a memory circuit that specifies the data storage location of this mesori circuit and updates the contents so as to designate the next data storage location when writing and reading operations for the memory circuit are completed. An address counter, an address register that holds the data storage position in the address counter in the previous write operation, and a read operation that compares the contents of the address counter and the address register to detect the presence or absence of valid stored data in the memory circuit. and a flip-flop circuit that is set at the start of data transfer and reset by one of the memory control circuits. In the buffer device, when the flip 7 four-tube circuit is set at the start of data transfer, either one of the two buffer means executes a write operation, and the address counter during the write operation is set in advance. When the value reached, the buffer control circuit during the write operation stops the reading operation and resets the 7 lip-flop circuits, and at the same time causes the other buffer 7 means to start the write operation and shifts the continuous write operation to the depth. After that, the two buffer means alternately carry out the writing and reading operations, while the buffer means that performs the write operation uses the effective stored data detection circuit of the buffer means that performs the read operation. The data writing/reading means is configured to be capable of stopping the writing operation and then shifting to the reading operation even if the address of the memory circuit has not reached the highest address when no data is detected.

〔実施例〕〔Example〕

次に図面を参照して本発明の詳細な説明する。 Next, the present invention will be described in detail with reference to the drawings.

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

第1図に示す実施例はそれぞれRAMを利用してダブル
バッファを構成するバッファメモIJ (1) 1およ
び(2) 2 、それぞれ相等しい機能を有するバッフ
ァアドレスカウンタα)3および(2) 4 、バッフ
ァアドレスレジスタ(1)5および(2) 6 、コン
パレータα)7およびG2)8、バラフッ制御回路(1
)9および(2)10ならびにセレクタ11およびデー
タ転送開始r指示する7リツプ7′ロップ回路12を備
えて構成される。
The embodiment shown in FIG. 1 includes buffer memories IJ (1) 1 and (2) 2 which constitute a double buffer using RAM, buffer address counters α) 3 and (2) 4 which have the same functions, respectively. Buffer address registers (1) 5 and (2) 6, comparators α) 7 and G2) 8, balance control circuit (1)
) 9 and (2) 10, a selector 11, and a 7 ripple 7' drop circuit 12 for instructing the start of data transfer.

入力ライン101を介して供給されるデータはバッファ
メモlj (1) 1もしくは(2)2のいずれかに書
込まれるが、この書込み動作紘バッファ制御回路α)9
ならびに0)10の制御を受けつつバッファアドレスカ
ウンタ(1)3もしくは(2)4から出カシイン301
もしくは401を介して指定されるアドレスに対して次
のようにして次次に実行される。
Data supplied via the input line 101 is written into either the buffer memory lj (1) 1 or (2) 2, and this write operation is performed by the buffer control circuit α) 9.
and output cash input 301 from buffer address counter (1) 3 or (2) 4 under the control of 0) 10.
Alternatively, it is executed one after another for the address specified via 401 as follows.

バッファアドレスカウンタ(1)3および(2) 4は
いずれも初期設定時におけるカウント値がすべて2値の
論理値″′0″によって構成されるオール加”に、また
バッファアドレスレジスタ(1) 5およびバッファア
ドレス7レジスタC2)6はいずれも初期設定時におけ
る登録値がオール″′1”にセットされている。これら
バッファアドレスカウンタおよびバッファアドレスレジ
スタはバックアメそすα)1およびバッファメモリ0)
2に入力データが書込まれるごとにバッファアドレスカ
ウンタは+1ずつカウントを逓増しまたバッファアドレ
スレジスタは対応するバック乙メモリに書込み中はバッ
ファアドレスカウンタのカウント値を入力してこれをモ
ニタしつつ、また読出し中は書込み最終アドレス値、す
なわちバッファアドレスカウンタの前値を保持するよう
に制御され、たとえけバッファアドレスカラン、りのカ
ウント値が3であればバッファアドレスレジスタの内容
は2に保持されるというようにしてその登録値が設定さ
れる。
Buffer address counters (1) 3 and (2) 4 all have count values at the time of initial setting that are all composed of binary logical values "'0", and buffer address registers (1) 5 and The registered values of the buffer address 7 register C2)6 are all set to ``1'' at the time of initial setting.These buffer address counters and buffer address registers are set to the buffer address α)1 and buffer memory 0).
Each time input data is written to 2, the buffer address counter increments by 1, and while writing to the corresponding back memory, the buffer address register inputs and monitors the count value of the buffer address counter. Also, during reading, it is controlled to hold the final write address value, that is, the previous value of the buffer address counter.For example, if the count value of the buffer address register is 3, the contents of the buffer address register are held at 2. The registered value is set in this way.

フリップフロップ回路12は、データ転送開始時か否か
を示すインジケータであす、データ転送開始7エーズ(
phase) では論理値″′1”を、その他の7エー
ズでは論理値10”となる1、このフリップフロップ回
路12の論理値61#へのセットはデータ転送全体をつ
かさどるプロセッサ(図示せず)から入力ライン120
1を介して行なわれ、フリップフロップ回路12の値は
出力ライン12o2からバッファ制御回路(1)9に供
給される。リセットはバッファ制御回路9から出力ライ
ン904を介して行なわれる。
The flip-flop circuit 12 is an indicator indicating whether or not it is time to start data transfer.
phase), the logic value is ``'1'', and the other 7Azes are the logic value 10''. The flip-flop circuit 12 is set to the logic value 61# by a processor (not shown) that is in charge of the entire data transfer. input line 120
1, and the value of the flip-flop circuit 12 is supplied to the buffer control circuit (1) 9 from the output line 12o2. Resetting occurs via output line 904 from buffer control circuit 9.

バッファ制御回路(1)9および(2)10は、それぞ
れバッフアメそすa)1、およびバッフアメそり(2)
2の書込み読出し制御を次の如〈実施する。
Buffer control circuits (1) 9 and (2) 10 are buffer control circuits (1) 9 and (2) 10, respectively.
The write/read control in step 2 is carried out as follows.

出力2イン901および1001を介してバッファアド
レスカウンタ0)3およびC2)4の初期設定を、また
、出力ライン903および1003を介してバッファア
ドレスレジスタ(1)5および(2)6の初期設定を行
なう。さらに、入力2イン302および402を介して
バッファアドレスカウンタ(1)3および(2)4のカ
ウント値を入手して噛込時にはバッファメモリ(1)1
もしくは(2)2のデータ格納状況を監視する。また出
力ライン701および801を介してそれぞれコンパレ
ータα)7およびコンパレータ(2)8の出力を取得し
読出し時にバッファが空(empty)であるかどうか
を判断する。さらに出力ライン901,902を介して
相互に交信出来る。
Initializes buffer address counters 0)3 and C2)4 via output 2 inputs 901 and 1001, and buffer address registers (1)5 and (2)6 via output lines 903 and 1003. Let's do it. Furthermore, the count values of the buffer address counters (1) 3 and (2) 4 are obtained through the input 2 inputs 302 and 402, and when biting, the count values of the buffer memory (1) 1 are obtained.
Or (2) monitor the data storage status in step 2. Further, the outputs of comparators α) 7 and comparators (2) 8 are obtained through output lines 701 and 801, respectively, and it is determined whether the buffer is empty at the time of reading. Furthermore, they can communicate with each other via output lines 901 and 902.

コンパレータ(1)?および(2)8はバッファアドレ
スカウンタα)3およびバッファアドレスカウンタ(2
)4と対応するバッファアドレスレジスタ(1)5トバ
ツ7アアドレスレジスタC2)6とをそれぞれ比較し両
者が一致した場合、出力ライン701および801にそ
れぞ朴論理値′″1#を送出する。
Comparator (1)? and (2) 8 is the buffer address counter α) 3 and the buffer address counter (2)
) 4 and the corresponding buffer address register (1) 5, 7, address register C2) 6, and if they match, the logic value ``''1# is sent to output lines 701 and 801, respectively.

次に本寮施91!のデータバッファ装置の具体的な動作
例を説明する。
Next is the main dormitory 91! A specific example of the operation of the data buffer device will be explained.

データ転送が起動され制御プロセッサ(図示せず)によ
り入力ライン1201を介してフリップフロップ回路1
2が論理“1#にセットされると、バッファ制御回路(
1)9は出力ライン1202から送出される信号により
データ転送開始フェーズと判断し、入力ライン101よ
り供給されるデータをバッファメモリ(1)1に書込む
。バッファアドレスカウンタ(1)3はバッフアメそり
(1)1にデータが書込まれるたびに+1される。バッ
ファ制御回路(1)9は、入力ライン302を介してバ
ッファアドレスカウンタ(1)3の仙を監視し、予め設
定した値にカウント値が達すると書込み動作を中止して
出力2イン902を介してバッファ制御回路(2)10
ヘバツ7アメモリ0)2に供給されるデータを書込むよ
うに指示し、バッファアドレスカウンタα)3をオール
@0#に初期設定するとともに、出力ライン904を介
してフリップフロップ回路12をリセットし読出し待機
状態とする。書込み停止の値はシステムとデバイスとの
間のデータ転送速度差などから予め設定される。
Data transfer is initiated by a control processor (not shown) through input line 1201 to flip-flop circuit 1.
2 is set to logic “1#”, the buffer control circuit (
1) 9 determines that it is the data transfer start phase based on the signal sent from the output line 1202, and writes the data supplied from the input line 101 to the buffer memory (1) 1. The buffer address counter (1) 3 is incremented by 1 every time data is written to the buffer address counter (1) 1. The buffer control circuit (1) 9 monitors the output of the buffer address counter (1) 3 via an input line 302, and when the count value reaches a preset value, stops the write operation and outputs the output via the output 2 input 902. Buffer control circuit (2) 10
Instructs to write the data supplied to memory 0)2, initializes buffer address counter α)3 to all @0#, resets flip-flop circuit 12 via output line 904, and reads out the data. Set to standby state. The write stop value is set in advance based on the data transfer speed difference between the system and the device.

バッファ制御回路+2)10は、出力ライン902を介
してバッファ制御回路(1)3から受ける書込み開始指
示に従い入力ライン101から供給されるデータをバッ
ファメモリ(2)2に書込ましめる。このバッファメモ
リへの書込み中止指示は、バッファ制御回路(2)10
が出力ライン402を監視し、バッファメモリ(2) 
2の最高番地までデータを徨込んだと判断した場合か、
バッファメモ1バ1)1の読出しが終了し入力ライン9
02を介してバッファ制御回路(1)1から読出し完了
の連絡を受けた場合に出される。
Buffer control circuit +2) 10 writes data supplied from input line 101 into buffer memory (2) 2 in accordance with a write start instruction received from buffer control circuit (1) 3 via output line 902. This instruction to stop writing to the buffer memory is given by the buffer control circuit (2) 10
monitors output line 402 and buffer memory (2)
If it is determined that the data has wandered to the highest address of 2,
Reading of buffer memory 1 (bar 1) 1 is completed and input line 9
It is issued when notification of read completion is received from the buffer control circuit (1) 1 via the buffer control circuit (1) 02.

バッフアメそり(1)1は読出し要求がくるとメモリの
”0#番地から格納データを読出していく。
When a read request is received, the buffer memory (1) 1 reads the stored data from address 0# of the memory.

バッファアドレスカウンタα)3のカウント値はデータ
が読出されるたびに書込み時同機+1ずつ逓増する。バ
ッファアドレスレジスタ(1)S紘書込み時と真なり出
力ライン302を介して取得した書込み最終アドレス値
を保持している。
The count value of the buffer address counter α)3 increases by +1 each time data is read. Buffer address register (1) Holds the write final address value acquired via the output line 302 when S is true when writing.

コンパレータα)7は、バッファアドレスレジスタα)
5の保持する書込み最終アドレス値と出力ライン303
を介して受けるカウント値とを比較して一致するとき、
すなわちバッファメモリα)1からの読出しが完了しバ
ッファメモリα)1の格納内容が空となったとき、論理
11”を送出する。
Comparator α)7 is buffer address register α)
Write final address value held by 5 and output line 303
When it matches the count value received via
That is, when the reading from the buffer memory α)1 is completed and the stored contents of the buffer memory α)1 become empty, the logic 11'' is sent out.

バッファ制御回路(1)3は出力2イン701を介して
この情報を受取るとバッファ制御回路G2)4に読出し
終了を通知するとと−もにバッファアドレスカウンタ(
1)3、バッファアドレスレジスタ(1)5ヲそれぞれ
出力2イン901,903を介して初期設定値のオール
″0#および11”にリセットしたうえバッファメモリ
(1)1に対する書込み動作待機状態に制御する。
When the buffer control circuit (1) 3 receives this information via the output 2 in 701, it notifies the buffer control circuit G2) 4 of the completion of reading and also starts the buffer address counter (
1) 3 and buffer address registers (1) and 5 are reset to the initial setting values of all "0# and 11" via output 2 inputs 901 and 903 respectively, and are controlled to standby state for write operation to buffer memory (1) 1. do.

バッファ制御回路(2)10は読出し終了指示を受ける
とまだバッファの最高番地に達していなくても書込みを
停止し出力ライン1003を介してバッファアドレスカ
ウンタ(2)4を初期設定のオール10#とじ艶出し動
作待機状態に制御し、計出し要求があり次第読出しのサ
ービスを行なう。動作としてはバッファ制御回路ψ)1
0による制御のもとにバッファアドレスカウンタ(2)
 ’i 、バッファアドレスレジスタ(2) 6および
コンパレータ(2)8を介して全く前述した読出し動作
と全く同様に実施される。
When the buffer control circuit (2) 10 receives the reading end instruction, it stops writing even if the highest address of the buffer has not been reached yet and sets the buffer address counter (2) 4 to the initial setting of all 10# via the output line 1003. It is controlled to be in standby state for polishing operation, and the reading service is performed as soon as a measurement request is received. In operation, the buffer control circuit ψ)1
Buffer address counter (2) under control by 0
'i, buffer address register (2) 6 and comparator (2) 8 are carried out in exactly the same way as the read operation described above.

バッファ制御回範(1)3は書込み要求がらり次第書込
みを行なう。この場合、フリップフロップ回路12がリ
セットされているため、書込み停止アドレスは他方のバ
ッファと同様、最高アドレスかバッファ(2)2のiG
’tlLが終了時に書込んだアドレスとなる。
Buffer control scheme (1) 3 performs writing as soon as a write request is received. In this case, since the flip-flop circuit 12 has been reset, the write stop address is the highest address or iG of buffer (2) 2, like the other buffer.
'tlL becomes the address written at the end.

セレクタ11は、こうしてバッファメモリ(1)1もし
くは、バッファメモリ(2)2から次次に読出されるデ
ータを次次に出力しうるように、これらバッファメモリ
の出力を選択出力し出力ライン1101を介してバッフ
ァ外に供給する。
The selector 11 selectively outputs the outputs of these buffer memories and connects them to the output line 1101 so that the data read one after another from the buffer memory (1) 1 or the buffer memory (2) 2 can be output one after another. feed out of the buffer via.

こうして、2個のRAMによって構成されるダブルバッ
ファにおいて、データ転送開始時は一方のバッファへの
書込みにおいて最高アドレスより小さい予め設定したア
ドレスまで書込むと1゛込みを停止し、他方のバッファ
へ制御を渡すとともに自らは軟lし待機となり、それ以
降はデータ書込み中の一方のRAMにおけるデータ書込
み動作が完了しない状態においても他方のバッファが読
出しを終了するとその時点のアドレスで中止しそれまで
にストアされたデータの読出し要求に応することができ
るダブルバッファが容易に形成される。
In this way, in a double buffer composed of two RAMs, when data transfer starts, when writing to one buffer reaches a preset address smaller than the highest address, the writing is stopped and control is transferred to the other buffer. When the data is written to one of the RAMs, even if the data write operation in one RAM is not completed, when the other buffer finishes reading, it will stop at the address at that point and store data until then. A double buffer is easily formed that can respond to requests for reading data.

なお、フリップフロップ回路12はバッファ制御回路α
)9ではなくバッファ制御回路Q)10に接続されてい
ても良い。この場合、データ転送開始時書込みを最初に
行なうバッファはバッファメモリC2)2になる。
Note that the flip-flop circuit 12 is a buffer control circuit α.
) 9 may be connected to the buffer control circuit Q) 10 instead. In this case, the buffer memory C2)2 is the buffer to which writing is first performed when data transfer is started.

また、第1図の実施例で示した各構成品目はこれらをす
べて包含した単一の構造として構成するとともに、また
任意の個数として構成づ°ることもWr望によって容易
に実施しりることは明らかである。
Furthermore, each of the constituent items shown in the embodiment of FIG. 1 can be constructed as a single structure that includes all of them, and it is also possible to construct an arbitrary number of components according to the writer's wishes. it is obvious.

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

以上説明した如く本発明によれは、2個のR・にMをダ
ブルバッファメモリとして構成されるデータバッファ装
置において、データ転送開始時はいずれか一方のバッフ
ァメモリに予め定められたデータ数だけ格納すると他方
に書込み制御を渡し自分は読出し待機状態となり、それ
以降は書込み動作中のバックアメモリが完全Vこ書込み
完了となってはいない状態においても読出し動作中のバ
ッフアメそりの鳴動データ数が′O”になりしだいその
時点のアドレスで書込み動作を中止してこれを読出すと
ともに他方のバックアメモリに対しては入力データの書
込みを実行せしめる手段を備えてデータの転送を図るこ
とによって、常時続出し要求に対応し得でデータ転送効
率を大幅に同上し得るデータバッファ装置が実現できる
という効果がある。
As explained above, according to the present invention, in a data buffer device configured with two R and M double buffer memories, at the start of data transfer, only a predetermined number of data is stored in one of the buffer memories. Then, the write control is passed to the other side and the other side enters the read standby state, and from then on, even if the backup memory in the process of writing is not completely completed, the number of ringing data in the buffer memory in the process of reading is '0'. ”, the write operation is stopped at the address at that point and the data is read out, and the input data is written to the other backup memory by means of which the data is transferred. This has the effect of realizing a data buffer device that can meet the demands and significantly improve data transfer efficiency.

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

第1図は本発明の一集雄側を示すプ四ツク図である。 1・・・・・・バッファメモリα)、2・・・・・・バ
ックアメモリ(2)、3・・・・・・バッファアドレス
カウンタ(1)1.4・・・・・・バッファアドレスカ
ウンタ(2)、5・・・・・・バッファアドレスレジス
タα)、6・旧・・バッファアドレスレジスタ(2)、
’y・・・・・・コンパレータ(1)、8・・・・・・
コンパレータ(2)、9・・・・・・バッファアドレス
カウンタコントローラα)、10・・・・・・バッファ
アドレスカウンタコントローラ(2)、11・・・・・
・セレクタ、12・・・・・・クリップフロップ回路。
FIG. 1 is a four-dimensional diagram showing the central part of the present invention. 1... Buffer memory α), 2... Backer memory (2), 3... Buffer address counter (1) 1.4... Buffer address counter (2), 5...Buffer address register α), 6. Old...Buffer address register (2),
'y... Comparator (1), 8...
Comparator (2), 9...Buffer address counter controller α), 10...Buffer address counter controller (2), 11...
・Selector, 12... Clip-flop circuit.

Claims (1)

【特許請求の範囲】[Claims] 複数のデータ格納位置を有するメモリ回路と、このメモ
リ回路のデータ格納位置を指定しこれに対する書込みお
よび読出し動作終了時に次のデータ格納位置を指定する
ように内容を更新するアドレスカウンタと、直前の書込
み動作におけるアドレスカウンタ内のデータ格納位置を
保持するアドレスレジスタと、耽出し動作において前記
アドレスカウンタと前記アドレスレジスタの内容を比較
し前記メそり回路内の有効格納テークの有鹸を検出する
検出回路と前記メモリ回路に対する読出し書込み動作を
制御するメモリ制御回路とを有するバッファ手段を2個
有しデータ転送開始時にセットされ前記メモリ制御回路
の−うちいずれか一方によりてリセットさ′れるツリツ
ブフロップ回路を有するバッファ装置において、データ
転送開始時にあっては前記フリップフロップ回路がセッ
トされると前記2個のバッファ手段のうちいずれか一方
が書込み動作を実行し書込動作中の距t’、アドレスカ
ウンタが予め設定した館に達すると書込み動作中の前記
バッファ制御回路tit込み1作を停止して前記ツリツ
ブフロップ回路をリセットするとともに他方のバッファ
手段に書込み動作を開始さゼて自らは読出し即1作を実
行に移行しそれ以後は前記2個のバッファ手段は交互に
1込みおよび読出し動作を分担実行しつつ書込みを実行
する方のバッファ手段は読出し動作を実行する方のバッ
ファ手段の有効格納データの検出19j路が有効データ
無しを検出した場合に前IWjメモリ回銘のアドレスが
最高番地に達していなくとも番込みト1+作を僧正した
うえ読出し動作に移行することができるデータ書込み断
出し手段を備えて成ることを特徴とするデータバッファ
装置。
A memory circuit having a plurality of data storage locations, an address counter that specifies the data storage location of this memory circuit and updates the contents to designate the next data storage location upon completion of write and read operations for this memory circuit, and the previous write. an address register that holds a data storage position in the address counter during operation; and a detection circuit that compares the contents of the address counter and the address register during the start-up operation to detect whether there is a valid storage take in the mesori circuit. a memory control circuit for controlling read/write operations for the memory circuit; and a buffer means having two buffer means each having a trigger flop circuit that is set at the start of data transfer and reset by one of the memory control circuits. In the apparatus, when the flip-flop circuit is set at the start of data transfer, one of the two buffer means executes a write operation, and the distance t' during the write operation is set in advance by the address counter. When the buffer control circuit reaches the end of the write operation, it stops the write operation of the buffer control circuit during the write operation, resets the trigger flop circuit, starts the write operation to the other buffer means, and immediately shifts to the execution of the read operation. After that, the two buffer means alternately carry out writing and reading operations, and the buffer means that performs writing detects the valid stored data of the buffer means that performs read operation. A data write interruption means is provided which can correct the number 1+ operation and shift to a read operation even if the address of the previous IWj memory memory has not reached the highest address when no valid data is detected. A data buffer device characterized by:
JP4873184A 1984-03-14 1984-03-14 Data buffer device Pending JPS60193044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4873184A JPS60193044A (en) 1984-03-14 1984-03-14 Data buffer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4873184A JPS60193044A (en) 1984-03-14 1984-03-14 Data buffer device

Publications (1)

Publication Number Publication Date
JPS60193044A true JPS60193044A (en) 1985-10-01

Family

ID=12811431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4873184A Pending JPS60193044A (en) 1984-03-14 1984-03-14 Data buffer device

Country Status (1)

Country Link
JP (1) JPS60193044A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277935A (en) * 1988-09-14 1990-03-19 Mitsubishi Electric Corp Line buffer memory
JPH0277934A (en) * 1988-09-14 1990-03-19 Mitsubishi Electric Corp Line buffer memory
JP2005078647A (en) * 2003-09-02 2005-03-24 Thomson Licensing Sa Multibank memory scheduling method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0277935A (en) * 1988-09-14 1990-03-19 Mitsubishi Electric Corp Line buffer memory
JPH0277934A (en) * 1988-09-14 1990-03-19 Mitsubishi Electric Corp Line buffer memory
JP2005078647A (en) * 2003-09-02 2005-03-24 Thomson Licensing Sa Multibank memory scheduling method
JP4707351B2 (en) * 2003-09-02 2011-06-22 トムソン ライセンシング Multi-bank memory scheduling method

Similar Documents

Publication Publication Date Title
US3789365A (en) Processor interrupt system
US4344132A (en) Serial storage interface apparatus for coupling a serial storage mechanism to a data processor input/output bus
JPS60193044A (en) Data buffer device
US3735354A (en) Multiplexed memory request interface
US5542057A (en) Method for controlling vector data execution
JPS6252342B2 (en)
JPS63180153A (en) Line-back control system for cache memory
JP3134364B2 (en) Information processing system
JPS58178454A (en) Memory controlling system
JP2531207B2 (en) Channel device
JPH07319840A (en) Multi-cpu device
JP2978626B2 (en) DMA controller
JPH0589027A (en) Write buffer provided with monitoring function
JPS61131154A (en) Data transfer control system
JPS60205647A (en) Data processor
JPS5938862A (en) Memory access system
JPS6048774B2 (en) Data file management method
JPH0429101B2 (en)
JPH01100651A (en) Data processing system
JPS61168058A (en) Storage device
JPS61131152A (en) Dma buffer control system
JPS59117653A (en) External storage controller
JPS62284451A (en) Channel device
JPH0650494B2 (en) Data transfer method in I / O controller
JPS63181050A (en) Storing access control system