JPS6334496B2 - - Google Patents
Info
- Publication number
- JPS6334496B2 JPS6334496B2 JP58166910A JP16691083A JPS6334496B2 JP S6334496 B2 JPS6334496 B2 JP S6334496B2 JP 58166910 A JP58166910 A JP 58166910A JP 16691083 A JP16691083 A JP 16691083A JP S6334496 B2 JPS6334496 B2 JP S6334496B2
- Authority
- JP
- Japan
- Prior art keywords
- channel
- data
- main memory
- chb
- access
- 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.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/122—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】
(a) 発明の技術分野
本発明は、主記憶制御部にチヤネルバツフアを
内蔵するデータ処理システムにおける、チヤネル
バツフア制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a channel buffer control method in a data processing system that includes a channel buffer in a main memory control section.
(b) 技術の背景
最近のデータ処理システムの大型化、高速化動
向に伴つて、該データ処理システムに接続される
入出力装置も高速化されつつある。(b) Background of the Technology As data processing systems have recently become larger and faster, input/output devices connected to the data processing systems have also become faster.
こうした、入出力装置の高速化傾向に対処する
為に(即ち、チヤネルにおけるスループツトの向
上、入出力装置におけるオーバランの防止)、主
記憶装置とチヤネルとの間に位置する主記憶制御
部にチヤネルバツフアを設け、チヤネルから見た
メモリアクセス速度を高速化する方法が知られて
いる。 In order to cope with the trend toward faster speeds of input/output devices (i.e., to improve channel throughput and prevent overruns in input/output devices), channel buffers are installed in the main memory control section located between the main memory device and the channel. There is a known method for increasing the memory access speed seen from the channel.
然して、チヤネルには、主として低速度の入出
力装置が接続される。マルチプレクサ−チヤネル
と、主として高速度の入出力装置が接続されるブ
ロツクマルチプレクサ−チヤネル、セレクタチヤ
ネルがあり、例えば8バイト単位でしかデータ転
送を行わないマルチプレクサ−チヤネルに対して
は、上記チヤネルバツフアの機能が充分生かされ
ない問題があり、上記3種類のチヤネルに適合し
たチヤネルバツフア制御方式の検討が望まれてい
た。 However, mainly low speed input/output devices are connected to the channel. There are multiplexer channels, block multiplexer channels to which high-speed input/output devices are connected, and selector channels. For example, for multiplexer channels that transfer data only in 8-byte units, the channel buffer function described above is There is a problem in that the channels are not fully utilized, and it has been desired to study a channel buffer control system that is suitable for the three types of channels mentioned above.
(c) 従来技術と問題点
一般に、チヤネルにはブロツクマルチプレクサ
−チヤネル(以下BMCという)と、セレクタチ
ヤネル(以下SLCという)と、マルチプレクサ−
チヤネル(以下MXCという)の3種類がある。(c) Prior art and problems In general, channels include a block multiplexer channel (hereinafter referred to as BMC), a selector channel (hereinafter referred to as SLC), and a multiplexer channel (hereinafter referred to as SLC).
There are three types of channels (hereinafter referred to as MXC).
そして、主記憶制御部(以下MCUという)か
ら見ると、BMC,SLCの場合は、リード又はラ
イト動作の時、リードデータ、ライトデータがま
とまつた単位で転送されてくる特徴がある。
MXCの場合はリード、ライト動作が混在して、
且つ8バイト単位で転送されてくる特徴がある。 From the perspective of the main memory control unit (hereinafter referred to as MCU), BMC and SLC have the characteristic that read data and write data are transferred in a unit during a read or write operation.
In the case of MXC, read and write operations are mixed,
It also has the characteristic that it is transferred in units of 8 bytes.
上記MCUにチヤネルバツフア(以下CHBとい
う)を内蔵しているデータ処理システムにおい
て、CHBの特質上、前記3種類のチヤネルから
の転送データを同等に処理することは、「CHBの
効率的使用」上、次の問題点がある。即ち:
CHBの使用効率の低下:
MXCからのメモリアクセスにおいては、リ
ードとライトが混在しており、且つアドレスも
連続ではなく、8バイト単位のアクセスである
ので、CHBを使用した場合、MXCからメモリ
アクセス要求に対して、CHBに当該データが
存在せず、主記憶装置(以下MSUという)か
ら64バイトの1ブロツクを用意しても、上記8
バイトしか利用されず、残りの56バイトは、殆
どの場合捨てられてしまうことになる。 In a data processing system in which the above MCU has a built-in channel buffer (hereinafter referred to as CHB), due to the characteristics of CHB, it is difficult to process the transfer data from the three types of channels equally for the sake of "efficient use of CHB". There are the following problems. In other words: Decreased usage efficiency of CHB: In memory access from MXC, read and write are mixed, and addresses are not continuous, but are accessed in units of 8 bytes, so when CHB is used, In response to a memory access request, even if the relevant data does not exist in the CHB and one block of 64 bytes is prepared from the main storage unit (hereinafter referred to as MSU), the above 8
Only one byte will be used, and the remaining 56 bytes will most likely be discarded.
中央処理装置からのメモリアクセスの効率の
低下:
MXCからCHBをアクセスして、CHBに当
該データブロツクが存在せず、MSUをアクセ
スして転送を行う場合、本来ならば8バイトア
クセスであるところを、64バイトのブロツク単
位でアクセスされるので、該64バイトに対応し
ているMSUのインタリーブ単位が、MSUのア
クセスタイムの間、余分にアクセスビジーとな
り、アクセスできなくなるので、中央処理装置
からのメモリアクセスの効率を悪くする問題が
あつた。 Decreased efficiency of memory access from the central processing unit: When accessing CHB from MXC and the relevant data block does not exist in CHB, when accessing MSU and transferring, what would normally be an 8-byte access is , are accessed in blocks of 64 bytes, so the interleaving unit of the MSU corresponding to the 64 bytes becomes busy and cannot be accessed during the access time of the MSU, so the memory from the central processing unit is There was a problem that made access less efficient.
(d) 発明の目的
本発明は上記従来の欠点に鑑み、主記憶制御部
にチヤネルバツフアを内蔵するデータ処理システ
ムにおいて、チヤネルプロセツサーから主記憶制
御部にメモリアクセスを行う場合、そのアクセス
要求信号の中に、該メモリアクセスの種類を指定
するフラグを追加して、メモリアクセスを行い、
主記憶制御部が該フラグにより、メモリアクセス
を行つているチヤネルの種類を識別して、上記チ
ヤネルバツフアを制御する方法を提供することを
目的とするものである。(d) Purpose of the Invention In view of the above-mentioned drawbacks of the conventional art, the present invention provides that, in a data processing system in which a channel buffer is built in the main memory control unit, when a channel processor performs memory access to the main memory control unit, the access request signal is Add a flag specifying the type of memory access in , perform memory access,
It is an object of the present invention to provide a method in which a main memory control unit identifies, using the flag, the type of channel that is accessing the memory, and controls the channel buffer.
(e) 発明の構成
そしてこの目的は、本発明によれば、主記憶装
置と、該主記憶装置とデータ転送を行う中央処理
装置及びチヤネルプロセツサと、該主記憶装置と
中央処理装置及びチヤネルプロセツサの間のデー
タ転送を制御する主記憶制御部と、該主記憶制御
部内に設けられ、該チヤネルプロセツサと該主記
憶装置との間で転送されるデータを一時格納する
チヤネルバツフアとを備えたシステムにおいて、
該主記憶制御部の該チヤネルプロセツサに対する
インタフエースに、転送データ量と該主記憶装置
に対するアクセスの優先度を示すフラグをセツト
する記憶手段を設け、該記憶手段に該チヤネルプ
ロセツサがセツトしたフラグが示す転送データ量
から、該主記憶制御部が該主記憶装置をアクセス
したチヤネルプロセツサの種類を認識することに
より、該主記憶装置に対するリードとライトが混
在し、且つ少量のデータを転送するチヤネルプロ
セツサを選別して、該チヤネルバツフアに対する
データのライトを禁止すると共に、該フラグが示
す優先度から該主記憶装置に対するアクセスの優
先度を、他のチヤネルプロセツサの優先度より低
くする方法を提供することによつて達成され、マ
ルチプレクサ−チヤネルからのメモリアクセスの
場合、上記チヤネルバツフアを使用しないように
制御されるので、効率の良いチヤネルバツフアの
制御ができる利点がある。(e) Structure of the Invention According to the present invention, a main storage device, a central processing unit and a channel processor that perform data transfer with the main storage device, and a main storage device, a central processing unit, and a channel processor that perform data transfer with the main storage device. A main memory control unit that controls data transfer between processors, and a channel buffer provided within the main memory control unit that temporarily stores data transferred between the channel processor and the main memory device. In a system that
The interface of the main memory control unit to the channel processor is provided with a storage means for setting a flag indicating the amount of data to be transferred and the priority of access to the main memory, and the channel processor sets a flag in the storage means. The main memory control unit recognizes the type of channel processor that accessed the main memory device from the amount of transferred data indicated by the flag, so that read and write to the main memory device are mixed and a small amount of data is transferred. A method of selecting a channel processor to perform a main storage, prohibiting writing of data to the channel buffer, and setting the priority of access to the main storage device lower than the priority of other channel processors based on the priority indicated by the flag. In the case of memory access from a multiplexer channel, the channel buffer is controlled not to be used, so there is an advantage that the channel buffer can be efficiently controlled.
(f) 発明の実施例
先ず、本発明の主旨を要約すると、本発明にお
いては、主記憶制御部にチヤネルバツフアを内蔵
するデータ処理システムにおいて、チヤネルプロ
セツサーから主記憶制御部にメモリアクセスを行
う場合、そのアクセス要求信号の中に、該メモリ
アクセスを行うチヤネルの種類を指定するフラグ
を追加して、メモリアクセスを行い、主記憶制御
部が該フラグにより、メモリアクセスを行うチヤ
ネルの種類を識別して、上記チヤネルバツフアを
制御するもので、例えば該フラグがマルチプレク
サ−チヤネル(MXC)からのメモリアクセスを
示していると、フエツチ要求の場合は、8バイト
のメモリフエツチを行い、チヤネルバツフアには
登録しないで直接チヤネルプロセツサーに該フエ
ツチデータを転送するように制御され、ストア要
求の場合も、チヤネルバツフアへの書き込みを行
わないで、直接主記憶装置へ8バイトデータを書
き込むように制御されるのである。(f) Embodiments of the Invention First, to summarize the gist of the present invention, in the present invention, in a data processing system that includes a channel buffer in the main memory control unit, memory access is performed from the channel processor to the main memory control unit. In this case, the memory access is performed by adding a flag specifying the type of channel for the memory access to the access request signal, and the main memory control unit uses the flag to identify the type of channel for the memory access. For example, if the flag indicates a memory access from a multiplexer channel (MXC), in the case of a fetch request, an 8-byte memory fetch is performed and it is not registered in the channel buffer. The fetch data is directly transferred to the channel processor, and even in the case of a store request, the 8-byte data is written directly to the main memory without writing to the channel buffer.
以下本発明の実施例を図面によつて詳述する。
第1図は本発明を適用したデータ処理システムの
構成例を示した図であり、第2図はチヤネルバツ
フア(CHB)の構成例をブロツク図で示した図
であり、第3図はチヤネルバツフア(CHB)の
タグ部の構成例を示す図である。 Embodiments of the present invention will be described in detail below with reference to the drawings.
FIG. 1 is a diagram showing an example of the configuration of a data processing system to which the present invention is applied, FIG. 2 is a block diagram showing an example of the configuration of a channel buffer (CHB), and FIG. ) is a diagram showing an example of the configuration of a tag section.
第1図において、1は主記憶装置(MSU)、2
は中央処理装置(以下CPUという)、3はチヤネ
ルプロセツサー(以下CHPという)で1台の
CHPには16台のチヤネルが接続されている。4
は主記憶制御部(MCU)で、チヤネルバツフア
(CHB)41を内蔵している。そして該CHBは
2ウエイ(64バイト/ウエイ)からなり、チヤネ
ル毎に2ウエイが割り付けられている。 In Figure 1, 1 is the main storage unit (MSU), 2
is a central processing unit (hereinafter referred to as CPU), and 3 is a channel processor (hereinafter referred to as CHP).
There are 16 channels connected to the CHP. 4
is the main memory control unit (MCU), which has a built-in channel buffer (CHB) 41. The CHB consists of 2 ways (64 bytes/way), and 2 ways are allocated to each channel.
先ず、CHB41に対する一般的な動作を説明
する前に、第3図によつて、CHB41のタグ部
について説明する。 First, before explaining the general operation of the CHB 41, the tag section of the CHB 41 will be explained with reference to FIG.
本発明に関連するCHB41のタグ部は制御部
(CTRL)とアドレス部(ADDR)とからなつて
いる。 The tag section of the CHB 41 related to the present invention consists of a control section (CTRL) and an address section (ADDR).
アドレス部(ADDR)は、CHB41に対する
転送単位が64バイトであるので、アドレス1〜25
ビツトと、そのパリテイーP0〜P3とからなつ
ている。 Since the transfer unit for CHB41 is 64 bytes, the address part (ADDR) is for addresses 1 to 25.
It consists of bits and their parities P0 to P3.
制御部(CTRL)については、以下に示す要素
から構成されている。即ち:
V:当該ブロツクの有効性を示すバリツドビツ
トである。 The control unit (CTRL) is composed of the elements shown below. That is: V: Valid bit indicating the validity of the block.
F:当該ブロツクの新、旧を示すFIRST IN
ビツトである。そして:
F=1:新(最近に登録されたことを示す)。
F=0:旧で、ムーブアウト/リプレイスの対象
となる。通常10に変わる時点で、後述のC=
1ならムーブアウトキユーに入れる。 F: FIRST IN indicating whether the block is new or old
It's bit. and: F=1: New (indicating recently registered).
F=0: Old, subject to move-out/replacement. Normally, at the point when it changes to 10, C=
If it is 1, put it in the move out queue.
C:当該ブロツクにCHP3からストアされて
いることを示す。論理上は、後述のBM0〜BM
7の論理和信号である。 C: Indicates that the block is stored from CHP3. Logically, BM0~BM described later
This is a logical sum signal of 7.
Pv:上記V,F,Cビツトに対するパリテイ
ービツトである。 Pv: Parity bit for the above V, F, and C bits.
BM0〜BM7:64バイトブロツクの各8バイ
トに対するバイトマークであり、各ビツトがオン
であると、それぞれに対応する8バイトの総てに
書き込みが行われていることを示す。 BM0 to BM7: Byte marks for each 8 bytes of a 64-byte block. When each bit is on, it indicates that all of the corresponding 8 bytes have been written.
PB:BM0〜BM7に対するパリテイービツト
である。 PB: Parity bit for BM0 to BM7.
該タグ部は、本実施例においては、CHP0/
1,3対応で、且つ各チヤネル対応に、1ウエイ
当たり32ライン(即ち、16チヤネル×2CHP分)
の2ウエイで構成されている。 In this embodiment, the tag part is CHP0/
1 and 3, and 32 lines per way for each channel (i.e. 16 channels x 2 CHP)
It consists of two ways.
従つて、該CHB41はCHP番号と、チヤネル
番号とでアクセスされる。 Therefore, the CHB 41 is accessed using the CHP number and channel number.
以下第1図、第2図、第3図によつて、CHP
3からのメモリアクセス動作の概略を説明する。 Based on Figures 1, 2, and 3 below, CHP
An outline of the memory access operation from 3 will be explained.
第2図において、5はCHPアドレスレジスタ
(CHPAR)、51は本発明の実施に必要なチヤネ
ルの種類を同定するフラグレジスタ(F)、6は
チヤネル識別レジスタ(CHIDR)、61はCHP
番号識別部、62は+1回路でチヤネルバツフア
のタグ部(CHB TAG)及びチヤネルバツフア
のデータ部(CHB、DATA)を初期化する為に
使用される。70,71はチヤネルバツフアタグ
部(以下CHB TAGという)で、それぞれウエ
イ0、ウエイ1を示している。80,81は各ウ
エイ対応に設けられている比較回路(C)で、
CHPアドレスレジスタ(CHPAR)5の内容と
CHB TAG70,71のアドレス部(ADDR)
とがビツト対応で比較され、一致すると一致信号
MCH0,1を出力する。9は変換器で、一致信
号MCH0の時は論理“1”を出力し、一致出力
MCH1の時は論理“0”を出力する。10は
CHBアドレスレジスタ(CHBAR)、101は一
致ウエイ番号レジスタ(CWNR)で、上記変換
器9の出力がセツトされる。11はチヤネルバツ
フアのデータ部(以下CHB DATAという)、1
2はCHBデータレジスタ(CHBDR)、13は
CHPストアデータレジスタ(CHPSTDR)、1
4,15、CHPフエツチデータレジスタ
(CHPFCHDR)である。 In FIG. 2, 5 is a CHP address register (CHPAR), 51 is a flag register (F) that identifies the type of channel necessary for implementing the present invention, 6 is a channel identification register (CHIDR), and 61 is a CHP
The number identification section 62 is a +1 circuit and is used to initialize the channel buffer tag section (CHB TAG) and the channel buffer data section (CHB, DATA). Reference numerals 70 and 71 are channel buffer tag sections (hereinafter referred to as CHB TAG), which indicate way 0 and way 1, respectively. 80 and 81 are comparison circuits (C) provided for each way;
The contents of CHP address register (CHPAR) 5 and
CHB TAG70, 71 address section (ADDR)
are compared bitwise, and if they match, a match signal is generated.
Output MCH0,1. 9 is a converter, which outputs logic “1” when the match signal is MCH0, and outputs a match output.
When it is MCH1, it outputs logic "0". 10 is
The CHB address register (CHBAR) 101 is a match way number register (CWNR) to which the output of the converter 9 is set. 11 is the data section of the channel buffer (hereinafter referred to as CHB DATA), 1
2 is CHB data register (CHBDR), 13 is
CHP store data register (CHPSTDR), 1
4, 15, CHP fetch data register (CHPFCHDR).
今、CHP3からMSU1に対してメモリアクセ
スが行われると、CHPアドレスレジスタ
(CHPAR)5にメモリアドレスがセツトされ、
チヤネル識別レジスタ(CHIDR)6には、該メ
モリアクセスを行つたチヤネル番号が、CHP番
号識別部61には該チヤネルが接続されている
BHP番号がセツトされる。 Now, when memory access is performed from CHP3 to MSU1, the memory address is set in the CHP address register (CHPAR)5,
The channel identification register (CHIDR) 6 has the channel number to which the memory was accessed, and the CHP number identification section 61 has the channel connected to it.
BHP number is set.
そして、チヤネル識別レジスタ(CHIDR)6
及びCHP番号識別部61の内容をアドレスとし
て、CHB TAG70,71がアクセスされ、そ
のアドレス部(ADDR)が読み出されて、比較
回路(C)80,81において、CHPアドレス
レジスタ(CHPAR)5の内容とが比較される。 and channel identification register (CHIDR) 6
CHB TAGs 70 and 71 are accessed using the contents of the CHP number identification section 61 as an address, the address section (ADDR) is read out, and the comparison circuit (C) 80 and 81 reads the contents of the CHP address register (CHPAR) 5. The contents are compared.
上記比較結果に従つて、以下のように制御され
る。即ち:
CHPからのフエツチアクセスの場合:
1 一致出力MCH0,1のいずれかが得られた
場合、その出力信号が変換器9で1/0に変換
され、一致ウエイ番号レジスタ(CWNR)1
01にセツトされると共に、チヤネル識別レジ
スタ(CHIDR)6及びCHP番号識別部61の
内容が、CHBアドレスレジスタ(CHBAR)
10にセツトされ、CHBアドレスレジスタ
(CHBAR)10の内容と一致ウエイ番号レジ
スタ(CWNR)101の内容とをアドレスと
して、CHB41のCHB DATA11がアクセ
スされ、その読み出し出力データがCHPフエ
ツチデータレジスタ(CHPFCHDR)14,1
5のいずれかにセツトされて、当該CHP3に
該フエツチデータが送出される。 According to the above comparison results, control is performed as follows. That is: In the case of fetch access from CHP: 1 If either the match output MCH0 or 1 is obtained, the output signal is converted to 1/0 by the converter 9, and the match way number register (CWNR) 1
01, and the contents of the channel identification register (CHIDR) 6 and CHP number identification section 61 are set to CHB address register (CHBAR).
10, CHB DATA11 of CHB41 is accessed using the contents of CHB address register (CHBAR) 10 and the contents of match way number register (CWNR) 101 as an address, and the read output data is stored in the CHP fetch data register (CHPFCHDR). )14,1
5, and the fetch data is sent to the CHP 3.
2 不一致の場合:
CHB41にはフエツチすべきデータがなか
つたことになるので、MSU1からCHB41に
ムーブインする必要がある。然して、CHB
TAGの制御部(CTRL)の内容によつてムー
ブイン動作が異なる。「V=1,1でC=1,
1の場合」
この場合は、ウエイ0,1共に、V=1で、
且つC=1であるので、F=0(即ち、旧デー
タの方)側のウエイの当該データを、MSU1
にムーブアウトした後、同じウエイにMSU1
から当該アドレスのデータブロツクがムーブイ
ンされると共に、ムーブインデータはバイパス
(但し、最初の8バイトデータのみ)され、当
該CHP3に送出される。(以下バイパスの意味
は同じとする)
「V=1,1でC≠1,1の場合」
この場合は、Vビツトはウエイ0,1に共に
1であるが、Cビツトについては、ウエイ0,
1のいずれかが0であるので、C=0側のウエ
イに対してムーブインし、該ムーブインデータ
はバイパスされて、当該CHP3に送出される。2 In case of mismatch: Since there is no data to be fetched in CHB41, it is necessary to move in from MSU1 to CHB41. However, CHB
The move-in operation differs depending on the contents of the TAG control section (CTRL). “V=1,1 and C=1,
1” In this case, both ways 0 and 1 are V=1,
In addition, since C=1, the data in the way on the F=0 (that is, old data) side is transferred to MSU1.
After moving out to MSU1 in the same way
The data block at the address is moved in from the CHP 3, and the move-in data is bypassed (however, only the first 8 bytes) and sent to the CHP 3. (Hereinafter, the meaning of bypass is the same.) "When V = 1, 1 and C ≠ 1, 1" In this case, the V bit is 1 in both ways 0 and 1, but the C bit is 1 in way 0. ,
Since one of the 1's is 0, the move-in data is moved in to the way on the C=0 side, and the move-in data is bypassed and sent to the CHP 3.
「V≠1,1の場合」
この場合は、いずれかのウエイのVビツトが
0でるので、V=0側のウエイにムーブインす
ると共に、ムーブインデータはバイパスされ、
当該CHP3に送出される。"When V≠1,1" In this case, the V bit of one of the ways is 0, so the move-in is performed to the way on the V=0 side, and the move-in data is bypassed.
It is sent to the relevant CHP3.
フエツチデータが、コマンドアドレス語
(CAW)、チヤネルコマンド語(CCW)等、純
データでない場合は、最優先度でフエツチアク
セスを行い、該フエツチデータ(8バイトデー
タ)は、バイパスされて、直接CHP3に送出
される。即ち、CHB41に対するムーブイン
動作は行われない。 If the fetch data is not pure data such as command address word (CAW) or channel command word (CCW), fetch access is performed with the highest priority, and the fetch data (8-byte data) is bypassed and directly sent to CHP3. Sent out. That is, no move-in operation is performed for CHB 41.
尚、CHB TAG70の御部(CTRL)のF
ビツトについては、ムーブイン時に更新され
る。 In addition, F of the control part (CTRL) of CHB TAG70
Bits are updated upon move-in.
CHPからのストアアクセスの場合:
1 一致出力が得られた場合:
C=0のウエイに対しては、チヤネル識別レ
ジスタ(CHIDR)6及びCHP番号識別部61
の内容をアドレスとして、CHB TAG70,
71をアクセスして、C=1とすると共に、予
めCHBデータレジスタ(CHBDR)12にセ
ツトされているストアデータを、フエツチアク
セスの時に説明した方法で得られたCHBアド
レスレジスタ(CHBAR)10と一致ウエイ番
号レジスタ(CWNR)101の内容をアドレ
スとして、CHB41のCHB DATA11をア
クセスし、当該ブロツクにストアする。 In the case of store access from CHP: 1 If a matching output is obtained: For the way with C=0, the channel identification register (CHIDR) 6 and the CHP number identification unit 61
CHB TAG70,
71 to set C=1, and store data previously set in the CHB data register (CHBDR) 12 with the CHB address register (CHBAR) 10 obtained by the method explained at the time of fetch access. Using the contents of the matching way number register (CWNR) 101 as an address, CHB DATA 11 of the CHB 41 is accessed and stored in the corresponding block.
C=1のウエイに対しては、その侭当該ブロ
ツクにストアデータをストアする。 For the way C=1, the store data is then stored in the corresponding block.
2 不一致の場合:
「V=1,1で、C=1,1の場合」
F=0側のウエイのデータをCHPストアデ
ータレジスタ(CHPSTDR)13に読み出し、
MSU1にムーブアウトした後、同じウエイに
ストアデータを書き込む。2 In case of mismatch: "When V = 1, 1 and C = 1, 1" Read the data of the way on the F = 0 side to the CHP store data register (CHPSTDR) 13,
After moving out to MSU1, write store data to the same way.
この時、当該ウエイのFビツトを論理“1”
とし、他方のウエイのFビツトを論理“0”と
する。即ち、Fビツトの更新を行う。 At this time, the F bit of the corresponding way is set to logic “1”.
The F bit of the other way is set to logic "0". That is, the F bit is updated.
「V=1,1でC≠1,1の場合」
C=0である、いずれか一方のウエイにスト
アデータを書き込み、当該ウエイのFビツトを
論理“1”として、他方を論理“0”とする。“When V=1,1 and C≠1,1” Write store data to one of the ways where C=0, set the F bit of that way to logic “1”, and set the other way to logic “0”. shall be.
「V≠1,1でC=0の場合」
V=0側のウエイにストアデータを書き込
む。C=1側のデータはムーブアウトキユーに
登録し、Fビツトの更新を行う。“When V≠1,1 and C=0” Write store data to the way on the V=0 side. The data on the C=1 side is registered in the moveout queue, and the F bit is updated.
「V≠1,1でC=0の場合」
V=0側のウエイにストアデータを書き込
み、Fビツトの更新を行う。"When V≠1,1 and C=0" Store data is written to the way on the V=0 side and the F bit is updated.
以上、CHP3からのメモリアクセスの動作を説
明したが、本発明を実施した場合においては、
CHP3からMCU4に対するインタフエースに、
DATA(以下Dという)とPRIORITY(以下Pと
いう)の2つのフラグビツトを設け、MCU4は
該D,Pという2つのフラグビツトを見てCHP
3からメモリアクセスを行つているチヤネルの種
類を識別し、その種類に対応したメモリアクセス
動作を行うように制御される。 The operation of memory access from CHP3 has been explained above, but when the present invention is implemented,
For the interface from CHP3 to MCU4,
Two flag bits, DATA (hereinafter referred to as D) and PRIORITY (hereinafter referred to as P), are provided, and the MCU 4 reads the two flag bits D and P and determines the CHP.
3, the type of channel that is accessing the memory is identified, and the memory access operation corresponding to the type is controlled.
以下において、本発明を実施した場合のCHP
3からのCHB41に対する動作を説明する。 In the following, CHP when implementing the present invention
The operation for CHB 41 from 3 will be explained.
先ず、上記フラグビツトD,Pが示す基本的な
意味を説明する。 First, the basic meanings of the flag bits D and P will be explained.
D=1:連続したデータの転送を示す。 D=1: Indicates continuous data transfer.
D=0:8バイト単位のデータの転送を示し、
コマンドアドレス語(以下CAWという)、チヤネ
ルコマンド語(以下CCWという)、動的アドレス
変換(以下DATという)テーブルのフエツチと
か、チヤネルステータス語(以下CSWという)
ストア、そして、本発明に関連するMXCからの
メモリアクセス(フエツチ、ストア)が該当す
る。 D=0: indicates data transfer in units of 8 bytes,
Command address word (hereinafter referred to as CAW), channel command word (hereinafter referred to as CCW), dynamic address translation (hereinafter referred to as DAT) table fetch, channel status word (hereinafter referred to as CSW)
This applies to stores and memory accesses (fetch, store) from MXC related to the present invention.
P=1:主記憶装置1に対して最優先でアクセ
ス要求を出すことを示す。 P=1: Indicates that an access request is issued to the main storage device 1 with the highest priority.
P=0:主記憶装置1に対して通常の優先度で
アクセス要求を出すことを示す。 P=0: Indicates that an access request is issued to the main storage device 1 with normal priority.
本発明においては、上記のD,Pの2ビツトを
組み合わせて、以下に示す状態を定義する。 In the present invention, the following states are defined by combining the above two bits D and P.
(1) 「D,P=0,0の場合」
MXCからのデータ部のメモリアクセスである
ことを示す。。(1) "When D, P = 0, 0" Indicates that the data section memory access is from MXC. .
(2) 「D,P=0,1の場合」
CAW,CCW,DATテーブルのフエツチ、
CSWストアによるメモリアクセス(MXC,
BMC,SIC)であることを示す。(2) "When D, P = 0, 1" CAW, CCW, DAT table fetch,
Memory access via CSW store (MXC,
BMC, SIC).
(3) 「D,P=1,0の場合」
MXC以外(即ち、BMC,SLC)からのデータ
部のメモリアクセスであることを示す。(3) "When D, P = 1, 0" Indicates that the data section memory access is from a source other than MXC (ie, BMC, SLC).
(4) 「D,P=1,1の場合」 未使用フラグとする。(4) “When D, P = 1, 1” Mark as an unused flag.
以下、フエツチアクセスはデータ部からのフエ
ツチアクセスであるとして説明する。 Hereinafter, the fetch access will be explained assuming that it is a fetch access from the data section.
上記のケースの内、(3)のケースは、従来の
CHB41に対するメモリアクセスのケースと同
じであり、前述のCHB41に対するフエツチ動
作及びストア動作を行うように制御される。 Among the above cases, case (3) is the conventional
This is the same as the case of memory access to CHB 41, and control is performed to perform the aforementioned fetch and store operations for CHB 41.
(1),(2)のケースは、(2)のケースがMSU1に対
して最優先でメモリアクセス要求を出す以外は同
じ制御が行われる。 In cases (1) and (2), the same control is performed except that case (2) issues a memory access request to MSU 1 with the highest priority.
そして、1のケースが、本発明を実施した場合
の動作であつて、以下にその詳細を説明する。 Case 1 is the operation when the present invention is implemented, and its details will be explained below.
「フエツチアクセスの場合」
CHP番号、チヤネル番号で、CHB TAG70
を参照し、その参照結果から、次の制御を行う。"For Fettu Access" CHP number, channel number, CHB TAG70
, and perform the following control based on the reference result.
アドレス不一致の場合:
MXCからのフエツチアクセスでは、大部分
がこのケースに該当する。 Case of address mismatch: This case applies to most fetch accesses from MXC.
この場合、MSU1に対して、8バイトのフ
エツチアクセスを起動する。MSU1からのフ
エツチデータは、CHB41に登録しないで、
直接CHP3に送出するだけで、本フエツチア
クセスを終了する。 In this case, 8-byte fetch access is activated for MSU1. Do not register fetish data from MSU1 to CHB41,
Simply sending it directly to CHP3 ends this fetch access.
アドレス一致の場合:
CHB41における、CHB DATA11から
読み出したデータを、CHPフエツチデータレ
ジスタ(CHPFCHDR)14,15のいずれか
にセツトした後、CHP3に送出するだけで、
本処理を終了させる。 In the case of address match: Simply set the data read from CHB DATA 11 in CHB 41 to either CHP fetch data register (CHPFCHDR) 14 or 15, and then send it to CHP 3.
This process ends.
「ストアアクセスの場合」
CHP番号、チヤネル番号で、CHB TAG70,
71を参照し、その参照結果から、次の制御を行
う。"For store access" CHP number, channel number, CHB TAG70,
71 and performs the following control based on the reference result.
アドレス不一致の場合:
MXCからのストアアクセスでは、大部分が
このケースに該当する。 Case of address mismatch: This case applies to most store accesses from MXC.
この場合、MSU1に対して、8バイトのス
トアアクセスを起動する。そして、CHB41
への書き込みは行わないように制御される。 In this case, 8-byte store access is activated for MSU1. And CHB41
It is controlled not to write to.
アドレス一致で、C=0の場合:
CHB41の当該ブロツクを無効化(V=0
とする)した後、MSU1に対して8バイトの
ストアアクセスを行うが、CHB41への書き
込みは行わない。 If the address matches and C=0: Invalidate the corresponding block of CHB41 (V=0
After that, an 8-byte store access is made to MSU1, but no write is performed to CHB41.
アドレス一致で、C=1の場合:
CHB41の当該ブロツクを、MSU1にムー
ブアウトし、そのブロツクを無効化(V=0と
する)した後、MSU1に対して8バイトのス
トアアクセスを行うが、CHB41への書き込
みは行わない。 When the address matches and C=1: After moving out the relevant block of CHB41 to MSU1 and invalidating that block (setting V=0), an 8-byte store access is performed to MSU1, but Writing to CHB41 is not performed.
以上、本発明に実施した場合の動作を説明して
きたが、本発明においては、CHP3からMCU4
にメモリアクセスを行う場合、メモリアドレスと
共に、該メモリアクセスを行うチヤネルの種類を
示すフラグ(D,P)を送出し、該フラグが
MXCからのメモリアクセスを示していると、フ
エツチ要求の場合には、8バイトのメモリフエツ
チを行い、CHB41には登録しないで直接CHP
3に該フエツチデータを転送するように制御さ
れ、ストア要求の場合も、CHB41への書き込
みを行わないで、直接MSU1へ8バイトデータ
を書き込むように制御される所にポイントがあ
る。 The operation when implemented in the present invention has been explained above, but in the present invention, from CHP3 to MCU4
When accessing a memory, a flag (D, P) indicating the type of channel for accessing the memory is sent along with the memory address, and if the flag is
Indicating memory access from MXC, in the case of a fetch request, an 8-byte memory fetch is performed and the CHP is directly accessed without registering in CHB41.
3, and in the case of a store request, the key point is that it is controlled to write 8-byte data directly to the MSU 1 without writing to the CHB 41 even in the case of a store request.
(g) 発明の効果
以上、詳細に説明したように、本発明のチヤネ
ルバツフア制御方式は、主記憶制御部にチヤネル
バツフアを内蔵するデータ処理システムにおい
て、チヤネルプロセツサーからの上記主記憶制御
部に対するインタフエースにフラグを設け、該フ
ラグを主記憶制御部が認識して、メモリアクセス
を行うチヤネルの種類を識別し、そのチヤネルの
種類によつて、上記チヤネルバツフアに対する制
御を変更し、マルチプレクサ−チヤネルからのメ
モリアクセスの場合には、フエツチ、ストアいず
れの場合にも、チヤネルバツフアに登録、書き込
みを行わないように制御されるので、効率の良い
チヤネルバツフアの制御ができる効果がある。(g) Effects of the Invention As explained in detail above, the channel buffer control method of the present invention provides a data processing system with a built-in channel buffer in the main memory control unit, in which an interface from a channel processor to the main memory control unit is controlled. A flag is provided in the ACE, and the main memory control unit recognizes the flag to identify the type of channel that accesses the memory, changes the control for the channel buffer according to the type of channel, and controls the access from the multiplexer channel. In the case of memory access, both fetch and store operations are controlled so that no registration or writing is performed in the channel buffer, resulting in efficient channel buffer control.
第1図は本発明を適用したデータ処理システム
の構成例を示した図、第2図はチヤネルバツフア
(CHB)の構成例を示した図、第3図はチヤネル
バツフア(CHB)のタグ部の構成例を示した図
である。
図面において、1は主記憶装置(MSU)、2は
中央処理装置(CPU)、3はチヤネルプロセツサ
ー(CHP)、4は主記憶制御部(MCU)、41は
チヤネルバツフア(CHB)、5はCHPアドレス
レジスタ(CHPAR)、51はフラグレジスタ
(F)、6はチヤネル識別レジスタ(CHIDR)、6
1はCHP番号識別部、70,71はチヤネルバ
ツフアのタグ部(CHB TAG)、80,81は比
較回路(C)、10はCHBアドレスレジスタ
(CHBAR)、101は一致ウエイ番号レジスタ
(CWNR)、11はチヤネルバツフアのデータ部
(CHB DATA)、12はCHBデータレジスタ
(CHBDR)、13はCHPストアデータレジスタ
(CHPSTDR)、14,15はCHPフエツチデー
タレジスタ(CHPFCHDR)、をそれぞれ示す。
Figure 1 is a diagram showing an example of the configuration of a data processing system to which the present invention is applied, Figure 2 is a diagram showing an example of the configuration of a channel buffer (CHB), and Figure 3 is an example of the configuration of the tag section of the channel buffer (CHB). FIG. In the drawing, 1 is a main storage unit (MSU), 2 is a central processing unit (CPU), 3 is a channel processor (CHP), 4 is a main memory control unit (MCU), 41 is a channel buffer (CHB), and 5 is a CHP address register (CHPAR), 51 is flag register (F), 6 is channel identification register (CHIDR), 6
1 is a CHP number identification section, 70 and 71 are channel buffer tag sections (CHB TAG), 80 and 81 are comparison circuits (C), 10 is a CHB address register (CHBAR), 101 is a matching way number register (CWNR), 11 12 indicates a channel buffer data section (CHB DATA), 12 indicates a CHB data register (CHBDR), 13 indicates a CHP store data register (CHPSTDR), and 14 and 15 indicate a CHP fetch data register (CHPFCHDR), respectively.
Claims (1)
送を行う中央処理装置2及びチヤネルプロセツサ
3と、該主記憶装置1と中央処理装置2及びチヤ
ネルプロセツサ3の間のデータ転送を制御する主
記憶制御部4と、該主記憶制御部4内に設けら
れ、該チヤネルプロセツサ3と該主記憶装置1と
の間で転送されるデータを一時格納するチヤネル
バツフア41とを備えたシステムにおいて、 該主記憶制御部4の該チヤネルプロセツサ3に
対するインタフエースに、転送データ量と該主記
憶装置1に対するアクセスの優先度を示すフラグ
をセツトする記憶手段51を設け、 該記憶手段51に該チヤネルプロセツサ3がセ
ツトしたフラグが示す転送データ量から、該主記
憶制御部4が該主記憶装置1をアクセスしたチヤ
ネルプロセツサ3の種類を認識することにより、
該主記憶装置4に対するリードとライトが混在
し、且つ少量のデータを転送するチヤネルプロセ
ツサを選別して、該チヤネルバツフア41に対す
るデータのライトを禁止すると共に、該フラグが
示す優先度から該主記憶装置1に対するアクセス
の優先度を、他のチヤネルプロセツサの優先度よ
り低くすることを特徴とするチヤネルバツフア制
御方式。[Scope of Claims] 1 A main storage device 1, a central processing unit 2 and a channel processor 3 that perform data transfer with the main storage device 1, and a main storage device 1, a central processing unit 2 and a channel processor 3 that perform data transfer with the main storage device 1, a main memory control section 4 that controls data transfer between the channel processor 3 and the main memory device 1; and a channel buffer 41 provided within the main memory control section 4 that temporarily stores data transferred between the channel processor 3 and the main memory device 1. In the system, a storage means 51 is provided at the interface of the main memory control unit 4 to the channel processor 3 for setting a flag indicating the amount of data to be transferred and the priority of access to the main memory 1, The main memory control unit 4 recognizes the type of channel processor 3 that accessed the main memory device 1 from the amount of transferred data indicated by the flag set by the channel processor 3 in the storage means 51.
A channel processor that performs read and write operations on the main memory device 4 at the same time and transfers a small amount of data is selected, and is prohibited from writing data to the channel buffer 41, and is selected based on the priority indicated by the flag. A channel buffer control method characterized in that the priority of access to device 1 is set lower than the priority of other channel processors.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58166910A JPS6063652A (en) | 1983-09-10 | 1983-09-10 | Channel buffer control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58166910A JPS6063652A (en) | 1983-09-10 | 1983-09-10 | Channel buffer control system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6063652A JPS6063652A (en) | 1985-04-12 |
| JPS6334496B2 true JPS6334496B2 (en) | 1988-07-11 |
Family
ID=15839903
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58166910A Granted JPS6063652A (en) | 1983-09-10 | 1983-09-10 | Channel buffer control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6063652A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3561670B2 (en) * | 1999-12-17 | 2004-09-02 | 三洋電機株式会社 | Memory control circuit |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5242032A (en) * | 1975-09-29 | 1977-04-01 | Hitachi Ltd | Data processing unit |
| JPS5720588A (en) * | 1980-07-10 | 1982-02-03 | Matsushita Seiko Co Ltd | Head oscillator for electrical fan |
-
1983
- 1983-09-10 JP JP58166910A patent/JPS6063652A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6063652A (en) | 1985-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5247648A (en) | Maintaining data coherency between a central cache, an I/O cache and a memory | |
| US4736293A (en) | Interleaved set-associative memory | |
| US5263142A (en) | Input/output cache with mapped pages allocated for caching direct (virtual) memory access input/output data based on type of I/O devices | |
| US5522065A (en) | Method for performing write operations in a parity fault tolerant disk array | |
| US5249284A (en) | Method and system for maintaining data coherency between main and cache memories | |
| CA1187198A (en) | System for controlling access to channel buffers | |
| JPS6015760A (en) | Staging of dasd cash information | |
| EP0533427B1 (en) | Computer memory control system | |
| US6026032A (en) | High speed data buffer using a virtual first-in-first-out register | |
| JPS6334496B2 (en) | ||
| JP2580263B2 (en) | Buffer storage device | |
| KR100251784B1 (en) | Method and apparatus for providing a readable and writable cache tag memory | |
| JPS6329297B2 (en) | ||
| JPS59218692A (en) | Control system of logical buffer memory | |
| JPS6055859B2 (en) | Channel buffer control method | |
| JPS6045872A (en) | High-speed buffer memory | |
| CA2036372C (en) | An input/output cache for caching direct (virtual) memory access data | |
| JPS6022777B2 (en) | Data transfer method | |
| JP2963257B2 (en) | Processing equipment | |
| JPH0211931B2 (en) | ||
| JPS61173355A (en) | Disk cash installing system | |
| JP2001229074A (en) | Memory controller and information processor and memory control chip | |
| JPS6055459A (en) | Block data transfer storage control method | |
| CA2030888C (en) | Cache data consistency mechanism for workstations and servers with an i/o cache | |
| JPS60140444A (en) | How to control partial writing to shared memory |