JPS5960623A - Buffer controller - Google Patents

Buffer controller

Info

Publication number
JPS5960623A
JPS5960623A JP17171382A JP17171382A JPS5960623A JP S5960623 A JPS5960623 A JP S5960623A JP 17171382 A JP17171382 A JP 17171382A JP 17171382 A JP17171382 A JP 17171382A JP S5960623 A JPS5960623 A JP S5960623A
Authority
JP
Japan
Prior art keywords
buffer memory
data
input
condition
flop
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
JP17171382A
Other languages
Japanese (ja)
Inventor
Koichi Kanamaru
金丸 孝一
Tatsuo Ishikawa
達夫 石川
Yasuo Kaneko
金子 泰郎
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
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP17171382A priority Critical patent/JPS5960623A/en
Publication of JPS5960623A publication Critical patent/JPS5960623A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To perform careful buffer control to use a buffer memory area at its maximum, by setting an empty flag and making the used condition of the buffer memory area detectable. CONSTITUTION:When a flip-flop 8 is set upon the write request of a CPU, a data controlling circuit 7 compares the contents of the 1st and 2nd pointer registers 2 and 3 with each other at a conveyor circuit 4. When they are equal to each other, the data controlling circuit 7 checks the set or reset condition of the empty flag flip-flop 8 and judges whether a buffer memory 6 is in the full condition or empty condition. On the other hand, a data request signal DREQ1 from the CPU is kept waiting in accordance with the condition of the buffer memory 6. Namely, the signal DREQ1 is kept waiting to an input-output when the buffer memory 6 is full in the case of writing, but the signal DREQ1 is kept waiting when the memory 6 is empty in the case of reading out.

Description

【発明の詳細な説明】 〔発明の分野〕 本発明はバッファ制御装置に係り、特に情報処理システ
ムにおいてデータ処理能力の向上を図るに好適なバッフ
ァ制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a buffer control device, and more particularly to a buffer control device suitable for improving data processing capacity in an information processing system.

〔発明の背景技術と問題点〕[Background technology and problems of the invention]

情報処理システムにおいて、入出力制御装置と中央処理
装置の間に設けられているバッファメモリの制御は、デ
ータを1ブロック分(例えばディスク装置等の場合は1
セクタ分)先取りするような方法が従来から用いられて
来た。
In an information processing system, the buffer memory provided between the input/output control unit and the central processing unit is controlled by storing one block of data (for example, one block in the case of a disk device, etc.).
Conventionally, a method of pre-fetching (by sector) has been used.

しかしながら、かかる方法は、データをブロック単位で
制御することになるので、初期状態における時間の損失
があり、またバッファメモリのフル(1!’1111)
/エンプティ(EMPTY)  の管理が細かく出来な
い等の問題があり、システム性能の向上に障害となって
いた。
However, since this method controls data in block units, there is a loss of time in the initial state, and when the buffer memory is full (1!'1111)
/EMPTY There were problems such as not being able to manage detailed information, which was an obstacle to improving system performance.

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

本発明の目的は上記従来技術の欠点をなくし、データ処
理能力を高め、システム性能を向上させることを可能な
らしめたバッファ制御装置を提供するにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a buffer control device that eliminates the drawbacks of the prior art described above, increases data processing ability, and makes it possible to improve system performance.

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

以下、図面に従って本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例に係るバッファ制御装置のブ
ロック図である。図中1はデータ転送のψ数を記憶する
レングスレジスタである。2は中央処理装[1つからの
データ要求に対するバッファメモリ6のアドレスを示す
笛1のポインタレジスタである。3は入出力装置からの
データ要求に対するバッファメモリ6のアドレスを示す
第2のポインタレジスタである。4は第1、笛2のポイ
ンタレジスタ2,3の内容な比較する比較回路である。
FIG. 1 is a block diagram of a buffer control device according to an embodiment of the present invention. In the figure, 1 is a length register that stores the number of data transfers. 2 is a pointer register of the whistle 1 that indicates the address of the buffer memory 6 in response to a data request from the central processing unit [1]. A second pointer register 3 indicates the address of the buffer memory 6 in response to a data request from an input/output device. Reference numeral 4 is a comparison circuit that compares the contents of pointer registers 2 and 3 of the first whistle 2.

5は第1、第2のポインタレジスタ2,3のいずれか一
方の内容を選択するセレクタである。6はバッファメモ
リである。7は優先度回路な含むデータ制御回路である
。8はバッファメモリ6の状態を示すエンプティ1MP
TY)フラグフリップフロップである。次にデータ制御
回路70入出力信号について説明ずろ。J)I(l!:
Qlは図示しない中火処理装置6:からのデータ要求信
号である。DREQ2は入出力装置からのデータ要求信
号である。
5 is a selector for selecting the contents of either the first or second pointer registers 2 or 3; 6 is a buffer memory. 7 is a data control circuit including a priority circuit. 8 is empty 1MP indicating the status of buffer memory 6
TY) is a flag flip-flop. Next, the input/output signals of the data control circuit 70 will be explained. J)I(l!:
Ql is a data request signal from a medium heat processing device 6 (not shown). DREQ2 is a data request signal from the input/output device.

DRQAIはデータ要求信号DREQIが受は付けられ
たことを中央処理装置に通知する信号である。
DRQAI is a signal that notifies the central processing unit that the data request signal DREQI has been accepted.

DRQA2はデータ要求信号i) REQ 2が受は付
けられたことを入出力装置に通知する信号である。
DRQA2 is a signal that notifies the input/output device that the data request signal i) REQ2 has been accepted.

DXFRlはバッファメモリ6と中央処理装置間との間
でデータ転送が行なわれていることを示す信号である。
DXFRl is a signal indicating that data is being transferred between the buffer memory 6 and the central processing unit.

DXFR2はバッファメモリ6と入出力装置間との間で
データ転送か行なわれていることを示す信号である。ま
たl(、P T I Cは第1のポインタレジスタ2の
キャリー信号である。RP’l”2Cは第2のポインタ
レジスタ3のキャリー信号である。
DXFR2 is a signal indicating that data transfer is being performed between the buffer memory 6 and the input/output device. Further, l(, P T I C is a carry signal of the first pointer register 2. RP'l''2C is a carry signal of the second pointer register 3.

なお、以下の説明において、信号名については記号のみ
で記載するものとする。
In the following description, signal names will be described using only symbols.

また、第2図は第1図に示したバッファ制御装置と中央
部j里装置、入出力装置間のインターフェースを説明す
るための系統図で、同図中CPUは中央処理装置、1/
10は入出力装置をそれぞれ示す。
FIG. 2 is a system diagram for explaining the interface between the buffer control device shown in FIG. 1, the central device, and the input/output device.
10 indicates input/output devices, respectively.

以下、上記のように構成した本発明動作を説明する。The operation of the present invention configured as described above will be explained below.

先ず、第1、第2のポインタレジスタ2,3、レングス
レジスタ1、およびエンプティフラグフリップフロップ
8が初期設定される。すなわち、第1、第2のポインタ
レジスタ2および3にはオール+1011が入力され、
またレングスレジスタ1には所定の転送語数が入力され
る。ここで、エンプティフラグフリツブフロツブ8の初
期設定であるが、CPUが入出力装置W 110に対し
て書き込みを行うときはセット状態とし、その逆に、読
み出しを行うときはリセット状態とする。
First, the first and second pointer registers 2, 3, length register 1, and empty flag flip-flop 8 are initialized. That is, all +1011 is input to the first and second pointer registers 2 and 3,
Further, a predetermined number of transfer words is input to the length register 1. Here, the initial setting of the empty flag flipflop 8 is set to a set state when the CPU writes to the input/output device W110, and vice versa, to a reset state when read.

次にデータ制御回路7はフリップフロップ8がセットさ
れるとI)XFRI信号なCPUへ出力し、この結果C
PtJからデータ制御回路7へDILEQIか出力され
ろ。またフリップフロップ8がリセットされるとデータ
制御回路7から入出力装置110へDXI!”R2信号
か出力され、その結果入出力装置■ろからデータ制御回
路7へI)REQ2が出力される。このDJtl)Ql
信号、DREQ2信号の出力に際し、データ制御回路7
では以下の様な動作が行なわれろ。
Next, when the flip-flop 8 is set, the data control circuit 7 outputs the I) XFRI signal to the CPU, and as a result, C
Output DILEQI from PtJ to data control circuit 7. Furthermore, when the flip-flop 8 is reset, the data control circuit 7 sends DXI! to the input/output device 110! "The R2 signal is output, and as a result, I) REQ2 is output from the input/output device to the data control circuit 7. This DJtl) Ql
When outputting the signal and DREQ2 signal, the data control circuit 7
Then, perform the following actions.

まず、CPUの書き込み要求に応じてフリップフロップ
8がセットされると、データ制御回路7は第1、第2の
ポインタレジスタ2,3の内容をコンベア回路4にて比
較する。この比較結果が等しいと、データ制御回路7は
エンブテイフラグフリツズフロツプ80セット又はリセ
ット状態を調べ、バッファメモリ6がフルの状態か又は
エンプティの状態かを判断する。
First, when the flip-flop 8 is set in response to a write request from the CPU, the data control circuit 7 compares the contents of the first and second pointer registers 2 and 3 using the conveyor circuit 4. If the comparison results are equal, the data control circuit 7 checks the set or reset state of the empty flag flipflop 80 and determines whether the buffer memory 6 is full or empty.

一方、中央処理装置CP Uからの要求信号D RE 
Q 1をバッファメモリ6の状態に応じて待たせる。即
ち、入出力装置110に対して、書き込みの時はバッフ
ァメモリ6がフルの時に待たせ、逆K flj5み出し
の時はバッファメモリ6がエンプティの時に待たせる。
On the other hand, the request signal D RE from the central processing unit CPU
Q1 is made to wait depending on the state of the buffer memory 6. That is, the input/output device 110 is made to wait when the buffer memory 6 is full when writing, and is made to wait when the buffer memory 6 is empty when writing reverse K flj5.

なお、一般に入出力装置1/10からの要求信号D I
Q 2は一定周期で来るので、そのデータ転送が出来た
かどうかを検出する必要がある。この方法としては、バ
ッファメモリ6の状態判定によって行う。すなわち、入
出力装置[¥I、/6に対して1き込みを行うときは、
バッファメモリ6がエンプテイの時に転送エラーを発生
し、逆に読み出しの時はバッファメモリ6がフルの時に
転送エラーを発生する。
In addition, in general, the request signal D I from the input/output device 1/10
Q2 comes at regular intervals, so it is necessary to detect whether the data transfer was successful. This method is performed by determining the state of the buffer memory 6. In other words, when writing 1 to the input/output device [\I, /6,
A transfer error occurs when the buffer memory 6 is empty, and conversely, a transfer error occurs when the buffer memory 6 is full during reading.

さて、以上の検出方法を具体的に記述すると以下の様に
なる。その詳細は第3図、第4図のフローチャートを参
照する。
Now, the above detection method will be specifically described as follows. For details, refer to the flowcharts in FIGS. 3 and 4.

1)要求信号[) It I(Q 1が待たされる条件
第1、第2のポインタレジスタ2,3の内容が一致して
、エンプティフラッグフリップフロツブ8がセットされ
ているとき。
1) Request signal [) It I (Q 1 is made to wait) When the contents of the first and second pointer registers 2 and 3 match and the empty flag flip-flop 8 is set.

2)要求信号Dll、EQ2が来たとき転送エラーとな
る条件 第1、第2のポインタレジスタ2,3の内容が一致して
、エンプティフラッグフリップフロップ8がリセットの
とき。
2) Conditions in which a transfer error occurs when the request signals Dll and EQ2 arrive: When the contents of the first and second pointer registers 2 and 3 match and the empty flag flip-flop 8 is reset.

ちなみに、エンプティフラッグフリップフロップ8は第
1のポインタレジスタ2からR,PTICが出ろとセラ
)・シ、第2のポインタレジスタ3からRPT2Cが出
ろとリセットするものである。
Incidentally, the empty flag flip-flop 8 is reset to indicate that R and PTIC are output from the first pointer register 2 and RPT2C is output from the second pointer register 3.

以上述べた如き処理を通じて、システム全体としてのデ
ータ処理能力は、入出力装置110に対して中央処理装
置CPUを待たせることにより、一時的なサービス低下
を伴うものの、バッファメモリ60作用により大幅に向
上し得るものである。
Through the processing described above, the data processing capacity of the entire system is significantly improved by the action of the buffer memory 60, although there is a temporary drop in service due to making the central processing unit CPU wait for the input/output device 110. It is possible.

すなわち、マイクロプログラム方式を用いたコンピュー
タシステム等においては、データ処理のためにハードウ
ェアを独立的に持たせることにより、ソフトウェアに与
える影響が少な(なり、マイクロプログラムの簡略化の
上で効果的である。
In other words, in computer systems using the microprogram method, having independent hardware for data processing has less impact on the software (and is effective in simplifying the microprogram). be.

一方、入出力装置からのデータの読み出し、書き込みに
おけるデータ処理能力を大幅に向上し、特に読み出した
データを即時に処理することが可能となる。
On the other hand, data processing ability in reading and writing data from input/output devices is greatly improved, and in particular, it becomes possible to immediately process read data.

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

以上述べた如く、本発明によればバッファメモリの領域
が最大限に使用可能となり、エンプティフラッグの初期
設定によりデータ方向に無関係にバッファの状態を検出
し得るため、データ処理能力が大幅に向上し、きめ細か
なバッファ制御を可能ならしめた新規のバッファ制御装
置を得ろことが出来ろものである。
As described above, according to the present invention, the area of the buffer memory can be used to the maximum extent, and the buffer status can be detected regardless of the data direction by initial setting of the empty flag, so that the data processing capacity can be greatly improved. Therefore, it is possible to obtain a new buffer control device that enables fine-grained buffer control.

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

第1図は本発明の一実施例に係るバッファ制御装置のブ
ロック図。 第2図は第1図に示したバッファ制御装置と中央処理装
置、入出力装置間のインターフェースを説明するための
系統図。 第3図、第4図は第1図の構成の動作を説明するフロー
チャートである。 1・・・l/ングスレジスタ、2・・・第1のポインタ
レジスタ、3・・・g2のポインタレジスタ、4・・・
コンベア回路、6・・・バッファメモリ、8・・・エン
プティフラッグフ1)ツブフロップ。 1111′1人代浬人  猪  股    清=11
FIG. 1 is a block diagram of a buffer control device according to an embodiment of the present invention. FIG. 2 is a system diagram for explaining the interface between the buffer control device, central processing unit, and input/output device shown in FIG. FIGS. 3 and 4 are flowcharts for explaining the operation of the configuration shown in FIG. 1... l/ngs register, 2... first pointer register, 3... g2 pointer register, 4...
Conveyor circuit, 6... Buffer memory, 8... Empty flag 1) Tube flop. 1111' 1st person Kiyoshi Inomata = 11

Claims (1)

【特許請求の範囲】[Claims] 中央処理装置と入出力装置間に介挿されるノくラフアメ
モリと、前記中央処理装置からのデータ要求に対する前
記バッファメモリのアドレスを指定する第1のポインタ
レジスタと、前記入出力装置からのデータ要求に対する
前記バッファメモリのアドレスを指定する第2のポイン
タレジスタと、前記第1、第2のポインタレジスタのキ
ャリーによってセットまたはリセットされろフリップフ
ロップと、前記第1、第2のポインタレジスタの内容を
比較する比較回路と、前記フリップフロップと比較回路
との出力に基いて、データ要求に対する待ちを指定する
制御回路とを備えることを特徴とするバッファ制御装置
a buffer memory interposed between a central processing unit and an input/output device; a first pointer register for specifying an address of the buffer memory in response to a data request from the central processing unit; and a first pointer register in response to a data request from the input/output device; A second pointer register that specifies the address of the buffer memory, a flip-flop that is set or reset by carry of the first and second pointer registers, and the contents of the first and second pointer registers are compared. A buffer control device comprising: a comparison circuit; and a control circuit that specifies waiting for a data request based on outputs from the flip-flop and the comparison circuit.
JP17171382A 1982-09-30 1982-09-30 Buffer controller Pending JPS5960623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17171382A JPS5960623A (en) 1982-09-30 1982-09-30 Buffer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17171382A JPS5960623A (en) 1982-09-30 1982-09-30 Buffer controller

Publications (1)

Publication Number Publication Date
JPS5960623A true JPS5960623A (en) 1984-04-06

Family

ID=15928293

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17171382A Pending JPS5960623A (en) 1982-09-30 1982-09-30 Buffer controller

Country Status (1)

Country Link
JP (1) JPS5960623A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60192040U (en) * 1984-05-25 1985-12-20 沖電気工業株式会社 Control processing unit for input/output devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60192040U (en) * 1984-05-25 1985-12-20 沖電気工業株式会社 Control processing unit for input/output devices

Similar Documents

Publication Publication Date Title
JP4560646B2 (en) Apparatus and method for direct memory access in a hub-based memory system
US6636927B1 (en) Bridge device for transferring data using master-specific prefetch sizes
US5038275A (en) Status transfer structure within a data processing system with status read indication
US5127088A (en) Disk control apparatus
JP3442932B2 (en) Information processing system
JPH0728758A (en) And device for dynamic time loop arbitration
US20030172229A1 (en) Systems and methods for detecting and compensating for runt block data transfers
US6801954B1 (en) Method and apparatus to concurrently operate on multiple data movement transactions in a disk array subsystem
US5875458A (en) Disk storage device
JPS5960623A (en) Buffer controller
US7003637B2 (en) Disk array device with utilization of a dual-bus architecture dependent on data length of cache access requests
JPS623361A (en) Status report system
KR20020019437A (en) Systems and Methods for a Disk Controller Memory Architecture
JPS60116061A (en) Input/output processing system
US20060106957A1 (en) Method and system for performance enhancement in a polled data storage environment
JPS6252342B2 (en)
JPS585824A (en) Data transferring system between channels
JPH07210446A (en) Priority discrimination device
JPH0581165A (en) Data transfer circuit
JPH04373054A (en) Filing device controller
EP0321555A1 (en) Fast-tag transfer improvement
JPS616746A (en) Partial writing control system
JPH02136951A (en) Dma transfer system
JPS6145343A (en) Swapping control system
JPH07210471A (en) Information processor