JPH04205044A - Buffer circuit - Google Patents

Buffer circuit

Info

Publication number
JPH04205044A
JPH04205044A JP32581990A JP32581990A JPH04205044A JP H04205044 A JPH04205044 A JP H04205044A JP 32581990 A JP32581990 A JP 32581990A JP 32581990 A JP32581990 A JP 32581990A JP H04205044 A JPH04205044 A JP H04205044A
Authority
JP
Japan
Prior art keywords
data
buffer
input
stored
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
JP32581990A
Other languages
Japanese (ja)
Inventor
Hajime Inoue
肇 井上
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP32581990A priority Critical patent/JPH04205044A/en
Publication of JPH04205044A publication Critical patent/JPH04205044A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To obtain a buffer circuit using a small amount of hardware by storing data to be transferred onto a predetermined bus together with addresses added to the data and data lengths in a buffer circuit, and by using a processing means to identify the data in order of storage in unit of the stored data length by the stored address. CONSTITUTION:Data from input/output unit 11 is transferred, following the first transfer when the address data length is transferred onto bus 1. To transfer data to the buffer 2, the address data length is stored as it is, followed by storing a data length of data. Likewise, data from other input/output units is transferred sequentially in buffer 2. To fetch data from buffer 2 to process, the 1st word is fetched to read the data length. Next, a data length of data is fetched to discriminate, from the address stored the 1st word from which I/O unit this data was fetched. With this, data is processed differently in accordance with an input/output unit from which data was fetched.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、計算機等のディジタル回路において、多くの
種類のデータを格納するためのバッファ回路に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a buffer circuit for storing many types of data in a digital circuit such as a computer.

(従来の技術) 計算機等のディジタル回路においては、入出力装置がバ
スにデータの転送を行なうとき、各入出力装置のバス使
用権の確保のために待ち時間が発生する。このような待
ち時間の発生によるデータ転送速度の低下を防ぐため、
入出力装置とバスとの間にバッファ回路を設けるのが一
般的である。
(Prior Art) In a digital circuit such as a computer, when an input/output device transfers data to a bus, a waiting time occurs to secure the right to use the bus for each input/output device. To prevent data transfer speed from decreasing due to such latency,
It is common to provide a buffer circuit between the input/output device and the bus.

また、これ以外にも、さまざまなディジタル回路におい
て、データを一時的に記憶するために、バッファ回路が
使用されている。
Buffer circuits are also used in various digital circuits to temporarily store data.

このようなバッファ回路には、データの種類により処理
の異なるデータが格納される場合がある。このような場
合は、以下のようにしてバッファ回路が構成されていた
Such a buffer circuit may store data that is processed differently depending on the type of data. In such a case, the buffer circuit was configured as follows.

第2図は、従来のバッファ回路の構成を示す図である。FIG. 2 is a diagram showing the configuration of a conventional buffer circuit.

図示の回路は、バス10に接続された複数のバッファ2
1〜25から成る。
The illustrated circuit includes a plurality of buffers 2 connected to a bus 10.
It consists of 1 to 25.

バッファ21〜25は、RAM (ランダム・アクセス
・メモリ)等から成り、各々種類の異なるデータD1〜
D5を格納する。即ち、バッファは、データの種類の数
だけ用意されている。つまり、第2図において、Dl、
D2、D3、D4、D5の5種類のデータがバス上で転
送されるとする。これらのデータを格納するには、デー
タDlはバッファ21に格納し、データD2はバッファ
22に格納するというようにしていた。
The buffers 21 to 25 are composed of RAM (random access memory) and the like, and each buffer has a different type of data D1 to D1.
Store D5. That is, as many buffers as there are types of data are prepared. That is, in FIG. 2, Dl,
Assume that five types of data D2, D3, D4, and D5 are transferred on the bus. In order to store these data, data Dl was stored in the buffer 21 and data D2 was stored in the buffer 22.

また、処理手段3oは、データD1〜D5を各々のバッ
ファ21〜25に振り分ける。このため、処理手段30
は、アドレスを用いて各データを識別していた。そして
、各データを対応するバッファに格納するときは、当該
データに付加されているアドレスやデータ長等は取り除
いていた。
Further, the processing means 3o distributes the data D1 to D5 to the respective buffers 21 to 25. For this reason, the processing means 30
used addresses to identify each piece of data. When each piece of data is stored in a corresponding buffer, the address, data length, etc. added to the data are removed.

そして、処理手段30は、各々のバッファ21〜25に
格納されているデータを処理することにより、データの
種類ごとの処理を行なっていた。
The processing means 30 performs processing for each type of data by processing the data stored in each of the buffers 21 to 25.

第3図は、従来の入出力用バッファ回路の構成を示す図
である。
FIG. 3 is a diagram showing the configuration of a conventional input/output buffer circuit.

図示の回路では、バス10に、入出力装置31〜35が
接続されている。
In the illustrated circuit, input/output devices 31 to 35 are connected to the bus 10.

処理手段3oにおいて、各入出力装置31〜35から出
力されるデータを順次処理するために、バッファ21〜
25を用いる。入出力装置31は、バッファ21に、入
出力装置32はハ・ソファ22にというように各入出力
装置31〜35のデータがそれぞれバッファ21〜25
に格納されるようにアドレスが割り当てられている。こ
のようにしてバッファ21〜25を用いるため、各バッ
ファは同一の構造、容量で構成されている。
In the processing means 3o, buffers 21 to 35 are used to sequentially process data output from each input/output device 31 to 35.
25 is used. The input/output device 31 is stored in the buffer 21, the input/output device 32 is stored in the sofa 22, and so on.
An address has been assigned so that it will be stored in . Since the buffers 21 to 25 are used in this manner, each buffer has the same structure and capacity.

つまり、入出力装置31〜35の数だけのハ・ソファ2
1〜25が必要になる。
In other words, there are as many sofas 2 as there are input/output devices 31 to 35.
1 to 25 are required.

(発明が解決しようとする課題) しかしながら、上述した従来の技術には、次のような問
題点があった。
(Problems to be Solved by the Invention) However, the above-described conventional technology has the following problems.

即ち、第3図に示すように、各入出力装置31〜35の
データの転送量等の差が大きい場合には、バッファの無
駄な部分が発生するという問題があった。つまり、各入
出力装置31〜35のデータの転送量の差が大きい場合
や、入出力装置31はデータ転送速度か速く、入出力装
置32はデータ転送速度が遅いというような場合には、
バッファ21はデータが格納される領域が大きいかバッ
ファ22は未使用の領域が大きいというようなことが起
こる。例えば、図示の例では、バッファ21に比較して
、バッファ22は有効に使用されていない。
That is, as shown in FIG. 3, when there is a large difference in the amount of data transferred between the input/output devices 31 to 35, there is a problem in that the buffer is wasted. In other words, if there is a large difference in the amount of data transferred between the input/output devices 31 to 35, or if the input/output device 31 has a high data transfer rate and the input/output device 32 has a low data transfer rate,
The buffer 21 may have a large area for storing data, or the buffer 22 may have a large unused area. For example, in the illustrated example, compared to buffer 21, buffer 22 is not used effectively.

第3図に示す例は、入出力装置が5つの場合であるが、
入出力装置が100個接続されるような場合では、バッ
ファ自体の容量は100倍となる。つまり、データの種
類に比例してバッファに要求される容量が増大する。
The example shown in Figure 3 is a case where there are five input/output devices, but
In a case where 100 input/output devices are connected, the capacity of the buffer itself becomes 100 times larger. In other words, the capacity required for the buffer increases in proportion to the type of data.

また、データの種類が増えるほど、データのアクセス頻
度のばらつきも大きくなり、バッファの無駄な部分(未
使用部分)も増大してしまう。
Furthermore, as the types of data increase, the variation in data access frequency also increases, and the useless portion (unused portion) of the buffer also increases.

本発明は以上の点に着目してなされたもので、多種類の
データを処理する場合に、バッファ上のデータ転送能力
に影響を与えることなく、ハードウェア量を減少させる
ようにして、効率的な使用ができるようにしたバッファ
回路を提供することを目的とするものである。
The present invention has been made with attention to the above points, and when processing many types of data, it reduces the amount of hardware without affecting the data transfer capacity on the buffer, thereby improving efficiency. It is an object of the present invention to provide a buffer circuit that can be used in various ways.

(課題を解決するための手段) 本発明のバッファ回路は、所定のバス上に転送されるデ
ータを、当該データに付加されたアドレス及びデータ長
とともに格納し、前記バスに接続された処理手段により
格納順にデータ長分ずつデータを取出し、当該取出した
データの種類を前記アドレスにより識別するようにした
ことを特徴とするものである。
(Means for Solving the Problems) A buffer circuit of the present invention stores data transferred on a predetermined bus together with an address and data length added to the data, and processes the data by processing means connected to the bus. The present invention is characterized in that data is retrieved in accordance with the data length in the order of storage, and the type of the retrieved data is identified by the address.

(作用) 本発明のバッファ回路においては、同一バス上で複数の
種類のデータの転送が行なわれる。そして、処理手段に
より、これらのデータを順次処理する場合に、複数の種
類のデータを共通のバッファに格納する。この場合、ア
ドレス及びデータ長もデータと一緒にバッファに格納す
る。そして、処理手段は、格納順にデータ長分ずつデー
タを取出し、アドレスでデータの種類を判別して、その
データを処理する。従って、少量のハードウェア量でバ
ッファ回路を実現することができる。
(Operation) In the buffer circuit of the present invention, a plurality of types of data are transferred on the same bus. When the processing means sequentially processes these data, the plurality of types of data are stored in a common buffer. In this case, the address and data length are also stored in the buffer together with the data. Then, the processing means retrieves the data by the data length in the order of storage, determines the type of data based on the address, and processes the data. Therefore, the buffer circuit can be realized with a small amount of hardware.

(実施例) 第1図は、本発明のバッファ回路の構成を示す図である
(Example) FIG. 1 is a diagram showing the configuration of a buffer circuit of the present invention.

図示の回路は、バス1に接続された単一のバッファ2か
ら成る。
The illustrated circuit consists of a single buffer 2 connected to a bus 1.

バッファ2は、RAM (ランダム・アクセス・メモリ
)等から成り、FIFO構造となっている。このバッフ
ァ2は、バス1上に転送されるデータを、当該データに
付加されたアドレス及びデータ長とともに格納する。
The buffer 2 consists of RAM (random access memory) and the like, and has a FIFO structure. This buffer 2 stores the data transferred on the bus 1 together with the address and data length added to the data.

一方、バス1には、処理手段3と、入出力装置11〜1
5が接続されている。
On the other hand, the bus 1 includes a processing means 3 and input/output devices 11 to 1.
5 is connected.

処理手段3は、CPU等から成る。この処理手段3は、
格納順にデータ長分ずつデータを取り出す。そして、処
理手段3は、取出したデータの種類をアドレスにより識
別する。
The processing means 3 consists of a CPU and the like. This processing means 3 is
Retrieve data by data length in the order of storage. Then, the processing means 3 identifies the type of retrieved data using the address.

入出力装置11〜15は、磁気ディスク装置や磁気テー
プ装置等から成る。
The input/output devices 11 to 15 are composed of magnetic disk devices, magnetic tape devices, and the like.

次に、上述した回路の動作を説明する。Next, the operation of the circuit described above will be explained.

例えば、入出力装置11からデータが転送される場合に
、バス1上には、第1図に示すように、第1転送として
アドレス、データ長が転送される。次に、第2転送以降
にデータが転送される。
For example, when data is transferred from the input/output device 11, an address and a data length are transferred onto the bus 1 as a first transfer, as shown in FIG. Next, data is transferred after the second transfer.

バス1から転送されたデータをバッファ2に格納すると
きには、図示のように、アドレス、データ長をそのまま
バッファに格納し、続いてデータ長の分だけデータを格
納する。
When data transferred from bus 1 is stored in buffer 2, as shown in the figure, the address and data length are stored in the buffer as they are, and then data corresponding to the data length is stored.

次に、入出力装置12からデータが転送される場合も、
同様にバッファ2にデータが格納される。従って、図示
のように、バッファ2内には、さまざまな入出力装置の
データが受信された順番に格納されていくことになる。
Next, when data is transferred from the input/output device 12,
Similarly, data is stored in buffer 2. Therefore, as shown in the figure, data from various input/output devices is stored in the buffer 2 in the order in which it is received.

また、バッファ2からデータを取り出して処理するとき
は、まず、1ワード目を取り出し、データ長を読み取る
。次に、データ長の分だけデータを取り出す。その次に
、lワード目に格納されているアドレスから当該データ
がどの入出力装置からのデータかを判別する。これによ
り、入出力装置に対応して、それぞれ異なった処理をす
ることも可能である。
Furthermore, when data is taken out from the buffer 2 and processed, the first word is taken out and the data length is read. Next, data is extracted for the data length. Next, it is determined from which input/output device the data comes from from the address stored in the l-th word. This makes it possible to perform different processing depending on the input/output device.

尚、上述した実施例においては、バス1に接続される装
置として磁気ディスク等の入出力装置を例にして説明し
たが、本発明はこれに限らず、主記憶装置等をバスを介
してCPU等に接続し、バッファを介在させる場合にも
適用することもできる。また、バッファ2は、単一の構
成のものとしたが、各装置で共通に使用できるようにし
ていれば、複数の部分に分割されていてもかまわない。
In the above embodiment, an input/output device such as a magnetic disk was used as an example of the device connected to the bus 1, but the present invention is not limited to this, and the main storage device etc. can be connected to the CPU via the bus. It can also be applied to cases where a buffer is interposed. Furthermore, although the buffer 2 has a single configuration, it may be divided into a plurality of parts as long as it can be used commonly by each device.

さらに、処理手段3は、CPUに限らず、CPUと別個
に設けられたDMA (ダイレクト・メモリ・アクセス
)等でもよい。
Further, the processing means 3 is not limited to the CPU, but may be a DMA (direct memory access) or the like provided separately from the CPU.

(発明の効果) 以上説明したように、本発明のバッファ回路によれば、
FIFO構造のバッファを設け、転送データの先頭にア
ドレス、データ長を付加したデータ形式を持たせるよう
にしたので、複数の種類のデータを1つの資源に格納す
ることができる。また、これにより、従来、処理の種類
の数だけバッファを用意し、回路全体としてバッファの
ハードウェア量が大きくなっていたのに対し、ハードウ
ェア量を大幅に減少させることができる。
(Effects of the Invention) As explained above, according to the buffer circuit of the present invention,
Since a FIFO-structured buffer is provided and the data format is such that the address and data length are added to the beginning of the transferred data, multiple types of data can be stored in one resource. Furthermore, as a result, the amount of hardware can be significantly reduced, whereas in the past, buffers were prepared as many as the number of types of processing, and the amount of hardware for the buffers increased for the entire circuit.

さらに、各バッファにおいて、無駄な領域があったもの
を削減することができる。従って、バッファを有効に使
用することができる。
Furthermore, it is possible to reduce wasted areas in each buffer. Therefore, the buffer can be used effectively.

以上の結果、バッファの容量は、処理手段におけるデー
タの入力と、処理手段によって処理されて出力されるデ
ータとの差によって決まるスルーブツトのみにより決定
することができる。
As a result of the above, the capacity of the buffer can be determined only by the throughput determined by the difference between data input to the processing means and data processed and output by the processing means.

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

第1図は本発明のバッファ回路の構成を示す図、第2図
は従来のバッファ回路の構成を示す図、第3図は従来の
入出力装置用バッファ回路の構成を示す図である。 1・・・バス、2・・・バッファ、3・・・処理手段、
11.12.13.14.15・・・入出力装置。 特許出願人 沖電気工業株式会社
FIG. 1 is a diagram showing the configuration of a buffer circuit of the present invention, FIG. 2 is a diagram showing the configuration of a conventional buffer circuit, and FIG. 3 is a diagram showing the configuration of a conventional buffer circuit for an input/output device. 1... Bus, 2... Buffer, 3... Processing means,
11.12.13.14.15... Input/output device. Patent applicant Oki Electric Industry Co., Ltd.

Claims (1)

【特許請求の範囲】  所定のバス上に転送されるデータを、当該データに付
加されたアドレス及びデータ長とともに格納し、 前記バスに接続された処理手段により格納順にデータ長
分ずつデータを取出し、当該取出したデータの種類を前
記アドレスにより識別するようにしたことを特徴とする
バッファ回路。
[Claims] Storing data to be transferred on a predetermined bus together with an address added to the data and a data length, and extracting data in units of the data length in the order of storage by a processing means connected to the bus, A buffer circuit characterized in that the type of the retrieved data is identified by the address.
JP32581990A 1990-11-29 1990-11-29 Buffer circuit Pending JPH04205044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32581990A JPH04205044A (en) 1990-11-29 1990-11-29 Buffer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32581990A JPH04205044A (en) 1990-11-29 1990-11-29 Buffer circuit

Publications (1)

Publication Number Publication Date
JPH04205044A true JPH04205044A (en) 1992-07-27

Family

ID=18180954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32581990A Pending JPH04205044A (en) 1990-11-29 1990-11-29 Buffer circuit

Country Status (1)

Country Link
JP (1) JPH04205044A (en)

Similar Documents

Publication Publication Date Title
US6341318B1 (en) DMA data streaming
US6275749B1 (en) Interrupt-controlled thread processing
EP0054888A2 (en) Data-processing system with main and buffer storage control
JP2684362B2 (en) Variable length data storage method
JPS60142439A (en) Store buffer device
JPH04205044A (en) Buffer circuit
EP0787326B1 (en) System and method for processing of memory data and communication system comprising such system
JPS59214977A (en) Data processing device
JP2895892B2 (en) Data processing device
JPH02143347A (en) Information processor
KR0170216B1 (en) Signal processing apparatus and method
JPH0512114A (en) Cache memory
JPS61260344A (en) Input and output processor
JPS6126998A (en) Memory device
JPS5862886A (en) Storage controlling system
JPS6285339A (en) Microcomputer
JPH04307650A (en) Data transfer system
JPH0492952A (en) Parallel processing system
JPH06295260A (en) Memory device for sequential data
JPS61217868A (en) Access control system of vector data
JPH0683580A (en) Buffer memory
JPS60218146A (en) Storage device address control system
JPH02287661A (en) Data access system
JPH02304641A (en) Data processor
JPH04160532A (en) Sort processor