JPH05257856A - Channel device - Google Patents

Channel device

Info

Publication number
JPH05257856A
JPH05257856A JP5312592A JP5312592A JPH05257856A JP H05257856 A JPH05257856 A JP H05257856A JP 5312592 A JP5312592 A JP 5312592A JP 5312592 A JP5312592 A JP 5312592A JP H05257856 A JPH05257856 A JP H05257856A
Authority
JP
Japan
Prior art keywords
data
input
circuit
channel
output device
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
JP5312592A
Other languages
Japanese (ja)
Inventor
Kunio Nakase
邦夫 中瀬
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
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 filed Critical NEC Corp
Priority to JP5312592A priority Critical patent/JPH05257856A/en
Publication of JPH05257856A publication Critical patent/JPH05257856A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease conflicts on a data bus and improve the efficiency by gaining no access to a main storage device with performance higher than required. CONSTITUTION:This channel device 20 controls data transfer between the main storage device 109 and an input/output device 30 and data to be transferred from the main storage device 10 to the input/output device are prefetched by a data prefetch circuit 23 and stored in a data buffer 21 temporarily. The amount of data in the data buffer 21 is monitored to decide whether the amount of data is larger than a previously set value, and consequently variation in the prefetch period is indicated to the prefetch circuit 23. Main storage access from a channel is made fast by a certain starting amount at the start of the transfer by the channel device 20 and then data are fetched thereafter corresponding to the amount of data sent out to the input/output device 30.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はチャネル装置に関し、特
に主記憶装置と入出力装置とのデータ転送を制御するチ
ャネル装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a channel device, and more particularly to a channel device for controlling data transfer between a main memory device and an input / output device.

【0002】[0002]

【従来の技術】従来、主記憶装置と入出力装置とのデー
タ転送を制御するチャネル装置においては、入出力装置
との間で円滑にデータ転送を実施するため、主記憶装置
から読み出したデータを一旦、大容量のデータバッファ
に格納した後、入出力装置からの要求によりこれを取り
出して利用することが一般的である。
2. Description of the Related Art Conventionally, in a channel device for controlling data transfer between a main memory device and an input / output device, data read from the main memory device is stored in order to smoothly perform data transfer with the input / output device. It is general that the data is once stored in a large-capacity data buffer and then retrieved and used according to a request from the input / output device.

【0003】このようなチャネル装置では、データ転送
中は、入出力装置の状態にかかわらず、データバッファ
に空きがある限り主記憶装置からデータをフェッチする
よう構成される。
In such a channel device, during data transfer, regardless of the state of the input / output device, data is fetched from the main memory as long as there is a free space in the data buffer.

【0004】また、多数の入出力装置とのデータ転送を
可能にするため、主記憶装置に多数のチャネル装置を接
続し、これらを独立に制御することも一般的におこなわ
れている。
Further, in order to enable data transfer with a large number of input / output devices, it is a common practice to connect a large number of channel devices to the main storage device and control them independently.

【0005】[0005]

【発明が解決しようとする課題】このため、多数のチャ
ネル装置が一斉に起動された場合には、起動された全て
のチャネル装置が、データバッファがいっぱいになるま
で主記憶装置へのデータフェッチ要求を連続して発生す
ることになり、主記憶装置に要求が一時的に集中するこ
とになる。
Therefore, when a large number of channel devices are simultaneously activated, all of the activated channel devices request data fetch to the main storage device until the data buffer becomes full. Are continuously generated, and the requests are temporarily concentrated in the main storage device.

【0006】これにより、各チャネル間でデータフェッ
チ動作に競合が発生することになり、互いに影響を及ぼ
し合うことになった。同様に、それまで動作していた、
他のチャネルのデータフェッチ動作にも影響を与えるこ
とがあった。
As a result, competition occurs in the data fetch operation between the channels, which influence each other. Similarly, it was working until then,
It may have affected the data fetch operation of other channels.

【0007】また、この動作は、チャネル装置の種別
(高速/低速)に関わらず実施され、それほど先取りデ
ータが必要で無い低速のチャネルにおいても多量のデー
タが先取りされ、高速のチャネルの動作を邪魔すること
になった。
Further, this operation is carried out regardless of the type of channel device (high speed / low speed), and a large amount of data is prefetched even in a low speed channel which does not require prefetch data, which disturbs the operation of the high speed channel. I decided to do it.

【0008】[0008]

【課題を解決するための手段】本発明のチャネル装置
は、主記憶装置から入出力装置に転送するデータをあら
かじめフェッチするデータ先取り回路と、フェッチした
データを一時格納するデータバッファと、データバッフ
ァ中のデータを入出力装置に送出する手段と、データバ
ッファ中のデータ量を監視し、データ量があらかじめ設
定された値より大きいか否かを判定する比較回路とを有
している。
A channel device of the present invention comprises a data prefetch circuit for prefetching data to be transferred from a main memory device to an input / output device, a data buffer for temporarily storing the fetched data, and a data buffer Means for sending the data to the input / output device, and a comparison circuit for monitoring the data amount in the data buffer and determining whether or not the data amount is larger than a preset value.

【0009】更に本発明の他のチャネル装置は、主記憶
装置と入出力装置とのデータ転送を制御するチャネル装
置において、主記憶装置から入出力装置に転送するデー
タをあらかじめフェッチするデータ先取り回路と、フェ
ッチしたデータを一時格納するデータバッファと、デー
タバッファ中のデータを入出力装置に送出する手段と、
チャネル装置の種別を保持する手段と、チャネル装置の
種別に応じた規定値を生成する手段と、データバッファ
中のデータ量を監視し、データ量が前記規定値より大き
いか否かを判定する比較回路とを有している。
Another channel device of the present invention is a channel device for controlling data transfer between a main memory device and an input / output device, and a data prefetch circuit for prefetching data to be transferred from the main memory device to the input / output device. , A data buffer for temporarily storing the fetched data, and means for sending the data in the data buffer to the input / output device,
Comparison for holding the type of channel device, means for generating a specified value according to the type of channel device, and monitoring the amount of data in the data buffer and determining whether the amount of data is greater than the specified value And a circuit.

【0010】[0010]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0011】図1に本発明の第1の実施例を示す。図1
において本発明の第1の実施例は主記憶装置10を入出
力装置30との間に設けられていて、主記憶装置10と
入出力装置30とのデータ転送を制御するチャネル装置
20で、主記憶装置10から入出力装置30に転送する
データをあらかじめフェッチするデータ先取り回路23
と、フェッチしたデータを一時格納するデータバッファ
21と、データバッファ21中のデータを入出力装置3
0に送出する転送回路25と、データバッファ21中の
データ量を監視し、データ量があらかじめ設定された値
より大きいか否かを判定する比較回路22とを含んでい
る。
FIG. 1 shows a first embodiment of the present invention. Figure 1
In the first embodiment of the present invention, the main storage device 10 is provided between the main storage device 10 and the input / output device 30, and the main storage device 10 and the input / output device 30 control data transfer. A data prefetch circuit 23 that fetches data to be transferred from the storage device 10 to the input / output device 30 in advance.
And a data buffer 21 for temporarily storing the fetched data and the input / output device 3 for storing the data in the data buffer 21.
It includes a transfer circuit 25 for sending data to 0 and a comparison circuit 22 for monitoring the amount of data in the data buffer 21 and determining whether the amount of data is larger than a preset value.

【0012】なお、チャネル装置20は比較回路22の
指示によりデータ先取り回路23に対し、先取り周期の
変更を指示する手段を有している。
The channel device 20 has means for instructing the data prefetch circuit 23 to change the prefetch cycle in response to an instruction from the comparison circuit 22.

【0013】チャネル装置20は、一般に、主記憶装置
10から入出力装置30へのデータ転送及び入出力装置
30から主記憶装置10への双方向の転送を制御するが
本実施例では、本記憶装置10から入出力装置30への
データの転送について説明する。
The channel device 20 generally controls the data transfer from the main memory device 10 to the input / output device 30 and the bidirectional transfer from the input / output device 30 to the main memory device 10. Data transfer from the device 10 to the input / output device 30 will be described.

【0014】チャネル装置20は、データバス101,
102を介して主記憶装置10に接続される。ここで、
データバス101,102は、一般的な優先論理により
管理される。
The channel device 20 includes a data bus 101,
It is connected to the main storage device 10 via 102. here,
The data buses 101 and 102 are managed by general priority logic.

【0015】チャネル装置20のデータ先取り回路23
は、データバス101を介して主記憶装置10に入出力
装置30への転送データの読み出しを要求する回路であ
り、データバッファ21は主記憶装置10より読み出し
たデータをデータバス102を介して受信し、これを格
納するバッファである。転送回路25はデータバッファ
21に格納されたデータを読み出し、これを入出力装置
30に送出する回路である。規定値レジスタ24は、あ
らかじめ定められた値(データバッファ21の容量より
小さい値)を保持する比較回路22はデータバッファ2
1に格納されたデータ量と規定値レジスタ24の値を比
較する回路である。
Data prefetch circuit 23 of channel device 20
Is a circuit that requests the main storage device 10 to read the transfer data to the input / output device 30 via the data bus 101. The data buffer 21 receives the data read from the main storage device 10 via the data bus 102. And a buffer that stores this. The transfer circuit 25 is a circuit that reads out the data stored in the data buffer 21 and sends it to the input / output device 30. The comparison circuit 22 that holds a predetermined value (a value smaller than the capacity of the data buffer 21) in the specified value register 24 is the data buffer 2
This is a circuit for comparing the data amount stored in 1 with the value of the specified value register 24.

【0016】これらの回路の動作を図2に示す。The operation of these circuits is shown in FIG.

【0017】図2において、チャネル装置20はデータ
転送の開始要求に対しデータバッファ21の状態の空き
エリアがある場合、比較回路22はデータバッファ21
に格納されたデータ量と規定値レジスタの値を比較し、
その結果を信号線221によりデータ先取り回路23に
表示する。
In FIG. 2, when the channel device 20 has an empty area in the state of the data buffer 21 in response to a data transfer start request, the comparison circuit 22 causes the data buffer 21 to operate.
Compare the amount of data stored in and the value of the specified value register,
The result is displayed on the data prefetch circuit 23 through the signal line 221.

【0018】データ先取り回路23では、比較回路22
に比較結果がデータバッファ21のデータ量の方が小さ
い場合に、データバス101を介して主記憶装置10に
転送データの読み出しを要求し、また比較回路22の比
較結果がデータバッファ21のデータ量の方が大きい場
合には一定時間待ち合わせ後、主記憶装置10に転送デ
ータを読み出しを要求する。
In the data prefetch circuit 23, the comparison circuit 22
When the comparison result shows that the data amount of the data buffer 21 is smaller, the main memory device 10 is requested to read the transfer data via the data bus 101, and the comparison result of the comparison circuit 22 indicates the data amount of the data buffer 21. If is larger, after waiting for a certain period of time, the main memory device 10 is requested to read the transfer data.

【0019】主記憶装置10は、データバス101から
の読み出し要求に対して、転送データを読み出し、デー
タバスを介して、このデータをデータバッファ21に送
出する。データバッファ21はデータバス102を介し
て転送データを受信し、それを格納する。転送回路25
はデータバッファ21に格納されたデータを読み出し、
これを入出力装置30に出力する。
In response to a read request from the data bus 101, the main memory 10 reads the transfer data and sends this data to the data buffer 21 via the data bus. The data buffer 21 receives the transfer data via the data bus 102 and stores it. Transfer circuit 25
Reads the data stored in the data buffer 21,
This is output to the input / output device 30.

【0020】このようにチャネル装置20は転送開始
時、チャネルからの主記憶アクセスをはじめの一定量は
高速に、それ以降は入出力装置30へのデータの送出量
に応じてフェッチする。
In this way, the channel device 20 fetches at a high speed at the beginning of transfer, such as main memory access from the channel, and thereafter fetches data in accordance with the amount of data sent to the input / output device 30.

【0021】図3に本発明の第2の実施例を示す。図3
において、本発明の第2の実施例であるチャネル装置2
0aは主記憶装置10から入出力装置30に転送するデ
ータをあらかじめフェッチするデータ先取り回路23
と、フェッチしたデータを一時格納するデータバッファ
21と、データバッファ中のデータを入出力装置30に
送出する転送回路25と、チャネル装置20aの種別を
保持するチャネル種別レジスタ26と、チャネル装置2
0aの種別に応じた規定値を生成する規定値生成回路2
7と、データバッファ中のデータ量を監視し、データ量
が前記規定値より大きいか否かを判定する比較回路22
とを有している。
FIG. 3 shows a second embodiment of the present invention. Figure 3
In, the channel device 2 which is the second embodiment of the present invention
Reference numeral 0a denotes a data prefetch circuit 23 for prefetching data to be transferred from the main memory device 10 to the input / output device 30.
A data buffer 21 for temporarily storing the fetched data, a transfer circuit 25 for sending the data in the data buffer to the input / output device 30, a channel type register 26 for holding the type of the channel device 20a, and a channel device 2
A specified value generation circuit 2 that generates a specified value according to the type of 0a
7 and a comparison circuit 22 that monitors the amount of data in the data buffer and determines whether the amount of data is greater than the specified value.
And have.

【0022】なお、チャネル装置20aは比較回路22
の指示によりデータ先取り回路23い対し、先取り周期
の変更を指示する手段を有している。
The channel device 20a includes a comparison circuit 22.
The data prefetch circuit 23 is instructed to change the prefetch cycle.

【0023】チャネル装置20aは、データバス10
1,102を介して主記憶装置10に接続される。ここ
で、データバス101,102は、一般的に優先論理に
より管理される。
The channel device 20a includes the data bus 10
1, 102 are connected to the main storage device 10. Here, the data buses 101 and 102 are generally managed by priority logic.

【0024】チャネル装置20のデータ先取り回路23
は、データバス101を介して主記憶装置10に入出力
装置30への転送データの読み出しを要求する回路であ
り、データバッファ21は主記憶装置10より読み出し
たデータをデータバス102を介して受信し、これを格
納するバッファである。転送回路25はデータバッファ
21に格納されたデータを読み出し、これを入出力装置
に送出する回路である。チャネル種別レジスタ26はチ
ャネル装置のチャネル種別を保持するレジスタで、規定
値生成回路27はチャネル種別レジスタの内容から、規
定値を生成する回路である。比較回路22はデータバッ
ファ21に格納されたデータ量と規定値生成回路27の
生成値を比較する回路である。
Data prefetch circuit 23 of channel device 20
Is a circuit that requests the main storage device 10 to read the transfer data to the input / output device 30 via the data bus 101. The data buffer 21 receives the data read from the main storage device 10 via the data bus 102. And a buffer that stores this. The transfer circuit 25 is a circuit that reads out the data stored in the data buffer 21 and sends it to the input / output device. The channel type register 26 is a register that holds the channel type of the channel device, and the specified value generation circuit 27 is a circuit that generates a specified value from the contents of the channel type register. The comparison circuit 22 is a circuit that compares the amount of data stored in the data buffer 21 with the generated value of the specified value generation circuit 27.

【0025】本実施例においては、図2に示す動作と同
じ動作をするので省略するが、規定値生成回路27にて
生成された規定値は、チャネル種別レジスタ26に保持
されたチャネル種別が高速チャネルを示すものであれ
ば、低速チャネルを示す場合に比べて、大きい値が設定
される。
In this embodiment, the same operation as that shown in FIG. 2 is performed, so that the description thereof is omitted. However, the specified value generated by the specified value generation circuit 27 is high in the channel type held in the channel type register 26. If it indicates a channel, a larger value is set as compared to the case of indicating a low speed channel.

【0026】比較回路22はバッファのデータ量と設定
された規定値とを比較し、この結果によりデータ先取り
回路23に対し先取り周期の変更を指示する。
The comparison circuit 22 compares the amount of data in the buffer with the set specified value, and instructs the data prefetch circuit 23 to change the prefetch cycle based on the result.

【0027】[0027]

【発明の効果】以上説明したように、本発明はチャネル
装置の転送開始時、チャネルからの主記憶アクセスをは
じめの一定量は高速に、それ以降は入出力装置へのデー
タの送出量に応じてフェッチすることにより、必要以上
の性能で主記憶装置へのアクセスを発生しないようにす
ることができ、データバスの競合を減らし、効率の良い
装置が得られる。
As described above, according to the present invention, at the time of starting the transfer of the channel device, a fixed amount such as the main memory access from the channel is fast, and thereafter, according to the amount of data sent to the input / output device. By fetching the data in the memory, it is possible to prevent the main memory device from being accessed with an unnecessarily high performance, reduce contention on the data bus, and obtain an efficient device.

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

【図1】本発明の第1の実施例を示す図である。FIG. 1 is a diagram showing a first embodiment of the present invention.

【図2】各回路の動作を示す図である。FIG. 2 is a diagram showing an operation of each circuit.

【図3】本発明の第2の実施例を示す図である。FIG. 3 is a diagram showing a second embodiment of the present invention.

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

10 主記憶装置 20 チャネル装置 30 入出力装置 101,102,201,211,212,221,2
61,271 信号線 201 入出力インタフェース 21 データバッファ 22 比較回路 23 データ先取り回路 24 規定値レジスタ 25 転送回路 26 チャネル種別レジスタ 27 規定値生成回路
10 main storage device 20 channel device 30 input / output device 101, 102, 201, 211, 212, 221, 2
61, 271 Signal line 201 Input / output interface 21 Data buffer 22 Comparison circuit 23 Data prefetch circuit 24 Specified value register 25 Transfer circuit 26 Channel type register 27 Specified value generation circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 主記憶装置と入出力装置とのデータ転送
を制御するチャネル装置において、主記憶装置から入出
力装置に転送するデータをあらかじめフェッチするデー
タ先取り回路と、フェッチしたデータを一時格納するデ
ータバッファと、データバッファ中のデータを入出力装
置に送出する手段と、データハッファ中のデータ量を監
視し、データ量があらかじめ設定された値より大きいか
否かを判定する比較回路と含み、比較回路の指示によ
り、前記データ先取り回路に対し、先取り周期の変更を
指示することを特徴とする。
1. A channel device for controlling data transfer between a main memory device and an input / output device, a data prefetch circuit for prefetching data to be transferred from the main memory device to the input / output device, and temporarily storing the fetched data. Includes a data buffer, means for sending the data in the data buffer to the input / output device, and a comparator circuit for monitoring the amount of data in the data buffer and determining whether the amount of data is greater than a preset value. The data prefetching circuit is instructed to change the prefetching cycle by an instruction from the comparison circuit.
【請求項2】 主記憶装置と入出力装置とのデータ転送
を制御するチャネル装置において、主記憶装置から入出
力装置に転送するデータをあらかじめフェッチするデー
タ先取り回路と、フェッチしたデータを一時格納するデ
ータバッファと、データバッファ中のデータを入出力装
置に送出する手段と、チャネル装置の種別を保持する手
段と、チャネル装置の種別に応じた規定値を生成する手
段と、データバッファ中のデータ量を監視し、データ量
が前記規定値より大きいか否かを判定する比較回路とを
含み、比較回路の指示により、前記データ先取り回路に
対し、先取り周期の変更を指示することを特徴とするチ
ャネル装置。
2. A channel device for controlling data transfer between a main memory device and an input / output device, a data prefetch circuit for previously fetching data to be transferred from the main memory device to the input / output device, and temporarily storing the fetched data. A data buffer, a means for sending the data in the data buffer to the input / output device, a means for holding the type of the channel device, a means for generating a specified value according to the type of the channel device, and an amount of data in the data buffer And a comparison circuit for determining whether or not the data amount is larger than the specified value, and instructing the data prefetch circuit to change the prefetch cycle by an instruction of the comparison circuit. apparatus.
JP5312592A 1992-03-12 1992-03-12 Channel device Pending JPH05257856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5312592A JPH05257856A (en) 1992-03-12 1992-03-12 Channel device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5312592A JPH05257856A (en) 1992-03-12 1992-03-12 Channel device

Publications (1)

Publication Number Publication Date
JPH05257856A true JPH05257856A (en) 1993-10-08

Family

ID=12934090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5312592A Pending JPH05257856A (en) 1992-03-12 1992-03-12 Channel device

Country Status (1)

Country Link
JP (1) JPH05257856A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438634B1 (en) * 1998-07-27 2002-08-20 Hitachi, Ltd. Data processing system including apparatuses connected via a bidirectional bus to each other and data transfer method for use with the same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254354A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Data transfer control system
JPH02129746A (en) * 1988-11-09 1990-05-17 Mitsubishi Electric Corp Input/output channel equipment
JPH03142549A (en) * 1989-10-27 1991-06-18 Nec Eng Ltd Data processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60254354A (en) * 1984-05-31 1985-12-16 Fujitsu Ltd Data transfer control system
JPH02129746A (en) * 1988-11-09 1990-05-17 Mitsubishi Electric Corp Input/output channel equipment
JPH03142549A (en) * 1989-10-27 1991-06-18 Nec Eng Ltd Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6438634B1 (en) * 1998-07-27 2002-08-20 Hitachi, Ltd. Data processing system including apparatuses connected via a bidirectional bus to each other and data transfer method for use with the same

Similar Documents

Publication Publication Date Title
US6324597B2 (en) Host controller interface descriptor fetching unit
US8516163B2 (en) Hardware-based concurrent direct memory access (DMA) engines on serial rapid input/output SRIO interface
US7299341B2 (en) Embedded system with instruction prefetching device, and method for fetching instructions in embedded systems
JPH05257856A (en) Channel device
KR960007833B1 (en) Method and apparatus for fast page mode selection
GB2394574A (en) An architecture and method for accessing data and instructions of an external memory using store and forward
US6880066B2 (en) Central processing unit and system having a prefetch queue and a command cache to perform an efficient information reading operation
JPH05173933A (en) Direct memory access transfer system
US20090031101A1 (en) Data processing system
JP3509981B2 (en) Image display control method and device
JPH07210454A (en) High-speed processor
JP2002222115A (en) Memory system
JPH06274415A (en) Shared memory system
JPH06202982A (en) Method and device for bus control and information processor
JP2000242507A (en) Processor
JPH05257859A (en) Information processor
JPH04306747A (en) Block transfer controller
JPH01315858A (en) Data transfer control method and device
JP2000330866A (en) Method and system for controlling memory
JPH1055303A (en) Memory system
JPH06161868A (en) Memory controller
JPH0736785A (en) Memory controller
JPH05158792A (en) Batch reading system for cache buffer
JPH05165705A (en) Memory controller
JPH04160459A (en) Data transfer device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980623