JPH0357490B2 - - Google Patents

Info

Publication number
JPH0357490B2
JPH0357490B2 JP9248385A JP9248385A JPH0357490B2 JP H0357490 B2 JPH0357490 B2 JP H0357490B2 JP 9248385 A JP9248385 A JP 9248385A JP 9248385 A JP9248385 A JP 9248385A JP H0357490 B2 JPH0357490 B2 JP H0357490B2
Authority
JP
Japan
Prior art keywords
access
request
ports
processing
block
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
Application number
JP9248385A
Other languages
Japanese (ja)
Other versions
JPS61250749A (en
Inventor
Yasuaki Ochi
Takashi Chiba
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9248385A priority Critical patent/JPS61250749A/en
Publication of JPS61250749A publication Critical patent/JPS61250749A/en
Publication of JPH0357490B2 publication Critical patent/JPH0357490B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】 〔概要〕 主記憶アクセス処理の優先順位を制御する方式
である。所定長のデータブロツクを複数回のアク
セスで読み出す、いわゆるブロツクフエツチの、
最初のアクセスを、進行中の他のブロツクフエツ
チより優先して処理することにより、最初に読み
出すデータのアクセス時間短縮を可能にする。
DETAILED DESCRIPTION OF THE INVENTION [Summary] This is a method for controlling the priority order of main memory access processing. A so-called block fetch, which reads a data block of a predetermined length in multiple accesses.
By processing the first access with priority over other block fetches in progress, it is possible to reduce the access time for the data read first.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機システムにおける主記憶アク
セス処理の優先順位を制御する方式に関する。
The present invention relates to a method for controlling the priority order of main memory access processing in a computer system.

計算機システムにおいて、主記憶装置に対する
アクセスを記憶制御装置が処理する場合に、該記
憶制御装置を介してアクセスする中央処理装置、
チヤネル処理装置等の処理装置ごとに複数のポー
トを設け、ポートにアクセス要求を保持して、主
記憶装置の並行動作能力の範囲において、それら
複数の要求を並列に処理する方式が採られる。
In the computer system, when the storage control device processes access to the main storage device, a central processing unit that accesses through the storage control device;
A method is adopted in which a plurality of ports are provided for each processing device such as a channel processing device, access requests are held in the ports, and the plurality of requests are processed in parallel within the parallel operation capability of the main storage device.

このようなシステムでも、並列処理できないア
8セス要求については、当然時間的に直列に処理
する必要があるので、通常は要求がポートに入力
された順に優先順位をつけて処理している。
Even in such a system, access requests that cannot be processed in parallel need to be processed serially in terms of time, so requests are usually processed with priority in the order in which they are input to ports.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第2図は、計算機システムの一構成例ブロツク
図である。
FIG. 2 is a block diagram of an example of the configuration of a computer system.

中央処理装置(以下において、CPUという)
1、チヤネル処理装置2等は、記憶制御装置3に
接続し、記憶制御装置3を介して主記憶装置4に
アクセスする。
Central processing unit (hereinafter referred to as CPU)
1. The channel processing device 2 and the like are connected to the storage control device 3 and access the main storage device 4 via the storage control device 3.

記憶制御装置3は、第3図に示すように、例え
ば2組のポート5,6によつて、各CPU1と接
続し、各ポート5,6にCPU1から入力される
アクセス要求を処理する。
As shown in FIG. 3, the storage control device 3 is connected to each CPU 1 through, for example, two sets of ports 5 and 6, and processes access requests input from the CPU 1 to each port 5 and 6.

公知のように、CPU1が高速バツフア(又は
キヤシユメモリ)を持つシステムにおいては、一
般に主記憶装置4からのデータの読み出しは、一
定長のデータブロツク単位で、いわゆるブロツク
フエツチとして行われる。
As is well known, in a system in which the CPU 1 has a high-speed buffer (or cache memory), data is generally read from the main memory 4 in units of data blocks of a fixed length, as so-called block fetches.

このデータブロツクは、CPU1が正にアクセ
スしたいデータ語(例えば8バイト/語)を含
む、一定長(例えば8語)の連続アドレス領域の
ブロツクであり、このように余分のデータを予め
読み出して、高速バツフアに保持しておくことに
より、その後には、実際にアクセスした語の近傍
のデータをバツフア上で直ちに利用できるように
するものである。
This data block is a continuous address area block of a certain length (for example, 8 words) that contains the data word (for example, 8 bytes/word) that the CPU 1 wants to access. By storing the data in a high-speed buffer, data in the vicinity of the actually accessed word can be immediately used on the buffer.

アクセス要求は、アクセスしたい目的のデータ
語のアドレスを指定するブロツクフエツチ要求と
して、ポート5又は6に入力されるので、、記憶
制御装置3は、指定のアドレスから始めて、語ア
ドレスの下位3ビツトのみを変化して、8回の読
み出しアクセスを行うことにより、ブロツクフエ
ツチを処理する。
Since the access request is input to port 5 or 6 as a block fetch request specifying the address of the target data word to be accessed, the storage controller 3 starts from the specified address and reads only the lower three bits of the word address. The block fetch is processed by changing the block and performing eight read accesses.

以上の制御のために、ポート5,6に対応して
カウンタ7,8を設けて、常時は例えば“0”に
リセツトし、ブロツクフエツチ要求を処理する場
合には、アクセスごとにカウンタ7又は8を+1
して、8回のアクセスを監視する。
For the above control, counters 7 and 8 are provided corresponding to ports 5 and 6, and are normally reset to "0", for example. When processing a block fetch request, counters 7 and 8 are set for each access. +1
and monitor eight accesses.

このような制御により、要求元CPU1は目的
のデータ語を最初に取得し、同じブロツクの他の
語の読み出しと並行して、処理を進めることがで
きるようにする。
Such control allows the requesting CPU 1 to obtain the target data word first and proceed with the processing in parallel with reading other words of the same block.

しかし、CPU1が、例えばポート5にブロツ
クフエツチ要求を出し、続いてポート6に他のブ
ロツクフエツチ要求を出し、両要求が並列に処理
されない場合には、例えば到達順に、ポート5の
ブロツクフエツチを処理した後、ポート6を処理
するので、ポート6のブロツクフエツチに係る目
的のデータ語の読み出しは、大幅に遅れることに
なるという問題がある。
However, if CPU 1 issues a block fetch request to port 5, for example, and then issues another block fetch request to port 6, and the requests are not processed in parallel, then after processing the block fetch of port 5, for example, in the order in which they arrive, Since port 6 is processed, there is a problem in that the reading of the target data word related to the block fetch of port 6 is significantly delayed.

この状況の一例を、第4図aに示す。ポート5
には、時刻10でブロツクフエツチを指定するコ
マンド及び記憶アドレスがセツトされる(このア
クセス要求をAとする)、アドレスの下位3ビツ
トは、その下の線11に示すように、目的のデー
タ語のアドレスとして“010”が指定されている
ものとする。
An example of this situation is shown in Figure 4a. port 5
At time 10, a command specifying a block fetch and a storage address are set (this access request is referred to as A). Assume that "010" is specified as the address.

記憶制御装置3の優先制御部9は、、アクセス
要求Aを所定の優先制御によつて、線12に示す
ように、主記憶装置4へアドレス及び所要の制御
信号を発行して、アクセス動作を起動する。
The priority control unit 9 of the storage control device 3 issues an address and a necessary control signal to the main storage device 4 to perform an access operation, as shown by a line 12, by subjecting the access request A to predetermined priority control. to start.

カウンタ7は、1回のアクセスごとに+1さ
れ、又ポート5の記憶アドレスは、下位3ビツト
の範囲で、所定の値に順次更新される。
The counter 7 is incremented by 1 for each access, and the storage address of the port 5 is sequentially updated to a predetermined value within the range of the lower three bits.

アクセス要求Aに遅れて、時刻13にポート6
へブロツクフエツチ要求(この要求をBとする)
が入力されると、優先制御部9は、アクセス要求
Aが終了していないので受け付けず、時刻14ま
で待つて、アクセス要求Bの最初の語のアクセス
が実行される。
Port 6 at time 13, delayed by access request A.
Hebrew fetch request (call this request B)
When this is input, the priority control unit 9 does not accept the access request A since it has not been completed, and waits until time 14 to access the first word of the access request B.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の構成を示すブロツク図であ
る。
FIG. 1 is a block diagram showing the configuration of the present invention.

ポート5,6及びカウンタ7,8に接続して、
ブロツクフエツチ制御部20を設け、その出力に
より、優先制御部21の優先制御を制御するよう
に構成する。
Connect to ports 5, 6 and counters 7, 8,
A block fetch control section 20 is provided, and the priority control of the priority control section 21 is controlled by the output thereof.

〔作用〕[Effect]

ブロツクフエツチ制御部20は、ポート5及び
6からの信号により、両ポートにブロツクフエツ
チ要求があることを検出すると、カウンタ7及び
8の計数値を検査し、一方が‘0'で、他方が非‘
0'であることを検出すると、値が‘0'のカウンタ
に対するポート5又は6を優先的に選択するよう
に、優先制御部21に信号を発する。
When the block fetch control unit 20 detects that there is a block fetch request on both ports based on the signals from ports 5 and 6, it checks the counts of counters 7 and 8, and one of them is '0' and the other is non-'.
When detecting that the value is 0', a signal is issued to the priority control unit 21 to preferentially select port 5 or 6 for the counter whose value is '0'.

この制御により、前記第4図aのような場合に
おける、アクセス要求Bも、最初の1語のアクセ
スは優先的に処理される。
By this control, access request B in the case shown in FIG. 4a is also processed preferentially for the first word.

〔実施例〕〔Example〕

第1図において、優先制御部21は、ブロツク
フエツチ制御部20からの、優先度を変更する信
号が割込信線22に出ない場合には、従来の優先
制御部9と同様に動作する。
In FIG. 1, the priority control section 21 operates in the same manner as the conventional priority control section 9 when the signal for changing the priority from the block fetch control section 20 is not outputted to the interrupt signal line 22.

ブロツクフエツチ制御20は、信号線23,2
4により、CPU1からポート5,6に入力され
るコマンドを監視し、両者が共にブロツクフエツ
チ要求になる場合を検出する。
Block fetch control 20 uses signal lines 23, 2
4 monitors commands input from the CPU 1 to ports 5 and 6, and detects a case where both of them result in a block fetch request.

両ポート5,6にブロツクフエツチ要求がある
ことを検出している状態において、ブロツクフエ
ツチ制御部20は、信号線25,26により、両
ポートのカウンタ7,8の計数値を検査する。
While detecting that there are block fetch requests on both ports 5 and 6, block fetch control section 20 checks the counts of counters 7 and 8 of both ports via signal lines 25 and 26.

その結果、一方のカウンタの値が非‘0'で、他
方のカウンタが‘0'の状態であつた場合には、割
込信号線22に、計数値‘0'のカウンタ7又は8
に対応するポート5又は6を指定する信号を発生
する。
As a result, if the value of one counter is non-'0' and the other counter is '0', the counter 7 or 8 with the count value '0' is sent to the interrupt signal line 22.
generates a signal specifying port 5 or 6 corresponding to port 5 or 6.

カウンタ7,8は、前記のように、常時は‘0'
にリセツトされていて、それぞれに対応するポー
ト5,6のブロツクフエツチ要求が処理される場
合に、優先制御部21による1回のアクセス受付
ごとに+1される。
As mentioned above, counters 7 and 8 are always '0'.
When the block fetch requests for the corresponding ports 5 and 6 are processed, each access reception by the priority control unit 21 is incremented by 1.

従つて、上記で割込信号線22に指定されるポ
ートは、ブロツクフエツチ要求を出して、未だ1
回もサービスされていないポートである。
Therefore, the port designated as the interrupt signal line 22 above issues a block fetch request and still has 1
The port is never serviced.

優先制御部21は、割込信号線22の信号によ
り、それまでのブロツクフエツチ処理を中断し
て、指定されたポート5又は6のブロツクフエツ
チ要求を優先処理する。
The priority control section 21 interrupts the block fetch processing up to that point in response to a signal on the interrupt signal line 22, and prioritizes processing of the block fetch request of the designated port 5 or 6.

その結果、該ポートが第1語の読み出しアクセ
スを受け付けられるとき、対応するカウンタ7又
は8は+1されて非‘0'となるので、割込信号線
22による指定は消える。
As a result, when the port receives read access for the first word, the corresponding counter 7 or 8 is incremented by 1 and becomes non-'0', so that the designation by the interrupt signal line 22 disappears.

従つて、優先制御部21は1語の読み出し処理
の後、通常の優先制御に戻り、中断した側のポー
トのブロツクフエツチ要求の処理を継続する。
Therefore, after reading one word, the priority control unit 21 returns to normal priority control and continues processing the block fetch request of the interrupted port.

以上の制御による処理の一例を、第4図bにし
めす。図は第4図aと同じく、ブロツクフエツチ
のアクセス要求Aが時刻10に出され、それより
遅れた時刻13にアクセス要求Bが出された場合
を示す。
An example of the processing under the above control is shown in FIG. 4b. The figure, like FIG. 4a, shows a case where block fetch access request A is issued at time 10, and access request B is issued at time 13 later than that.

線30に示すように、アクセス要求Aの処理
が、第4図aの場合と同様に開始されるが、その
間にブロツクフエツチ制御部20が、両ポート
5,6にブロツクフエツチ要求があり、且つカウ
ンタ8の値が‘0'であることを検出して、割込信
号線22にポート6を指定する信号(第4図bに
おいて、線31により示す)を上げる。
As shown by line 30, processing of access request A is started in the same manner as in FIG. It detects that the value of is '0' and raises a signal (indicated by line 31 in FIG. 4b) specifying port 6 on interrupt signal line 22.

優先制御部21は、この信号31により、要求
Aの1語の読み出し処理を終わつた時刻32で、
要求Aの処理を中断して、要求Bの処理の実行を
開始し、要求Bの最初の1語の読み出し処理を行
う。
In response to this signal 31, the priority control unit 21 at time 32 when the reading process for one word of request A is finished,
The processing of request A is interrupted, the processing of request B is started, and the first word of request B is read out.

この読み出し処理が終了する時刻33には、カ
ウンタ8が既に+1されたために、信号31が消
えているので、優先制御部21は通常の優先制御
によつて、時刻33から要求Aの処理に戻る。
At time 33 when this reading process ends, the counter 8 has already been incremented by 1 and the signal 31 has disappeared, so the priority control unit 21 returns to processing request A from time 33 using normal priority control. .

従つて、要求Bの第2語以後の処理は、従来と
同様に、要求Aのサービスが終了する時刻34ま
で待たされるが、第1語は前記のように、時刻3
3でCPU1へ読み出されるので、CPU1はこの
時点から、処理を進めることができ、データ待ち
による、実行効率の低下を防ぐことができる。
Therefore, the processing after the second word of request B is waited until time 34 when the service of request A ends, as in the past, but the first word is processed at time 34 as described above.
Since the data is read out to the CPU 1 at step 3, the CPU 1 can proceed with the processing from this point onwards, and a drop in execution efficiency due to data waiting can be prevented.

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

以上の説明から明らかなように、本発明によれ
ば、計算機システムの処理装置が、主記憶装置に
ブロツクフエツチを行う場合に、複数のブロツク
フエツチ要求が連続する場合の後のブロツクフエ
ツチ要求も、第1語の読み出しは早く処理される
ことになり、処理装置のデータ待ちによる実行効
率低下が減少されるので、計算機システムの性能
を改善するという著しい工業的効果がある。
As is clear from the above description, according to the present invention, when the processing unit of a computer system performs a block fetch on the main memory, the subsequent block fetch request when a plurality of consecutive block fetch requests is The reading of data is processed quickly, and the reduction in execution efficiency due to data waiting by the processing device is reduced, which has a significant industrial effect of improving the performance of the computer system.

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

第1図は本発明の実施例構成ブロツク図、第2
図は計算機システムの一構成例ブロツク図、第3
図は従来の一構成例ブロツク図、第4図はタイム
チヤート図である。 図において、1はCPU、2はチヤネル処理装
置、3は記憶制御装置、4は主記憶装置、5,6
はポート、7,8はカウンタ、9,21は優先制
御部、20はブロツクフエツチ制御部、22は割
込信号線を示す。
Fig. 1 is a block diagram of an embodiment of the present invention;
The figure is a block diagram of an example of the configuration of a computer system.
The figure is a block diagram of an example of a conventional configuration, and FIG. 4 is a time chart. In the figure, 1 is a CPU, 2 is a channel processing device, 3 is a storage control device, 4 is a main storage device, 5, 6
1 is a port, 7 and 8 are counters, 9 and 21 are priority control units, 20 is a block fetch control unit, and 22 is an interrupt signal line.

Claims (1)

【特許請求の範囲】 1 処理装置1から主記憶装置4へのアクセス要
求を保持する、複数のポート5,6を有し、該ポ
ート5,6に保持するアクセス要求を順次処理す
るようにした記憶制御装置3において、 複数回の該アクセスによつて所定長データブロ
ツクを読み出すための所定のアクセス要求が、複
数のポート5,6にある場合には、 該複数のポートにあるアクセス要求のうち、上
記複数回のアクセスのうちの最初のアクセスが実
行されていないアクセス要求を検出し20、 該最初のアクセスを優先して処理する21こと
を特徴とする主記憶アクセス制御方式。
[Claims] 1. It has a plurality of ports 5 and 6 that hold access requests from the processing device 1 to the main storage device 4, and the access requests held in the ports 5 and 6 are sequentially processed. In the storage control device 3, when a predetermined access request for reading a data block of a predetermined length by multiple accesses is made to a plurality of ports 5 and 6, among the access requests made to the plurality of ports, A main memory access control system characterized in that: detecting (20) an access request for which the first access among the plurality of accesses has not been executed; and processing the first access with priority (21).
JP9248385A 1985-04-30 1985-04-30 Main memory access control system Granted JPS61250749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9248385A JPS61250749A (en) 1985-04-30 1985-04-30 Main memory access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9248385A JPS61250749A (en) 1985-04-30 1985-04-30 Main memory access control system

Publications (2)

Publication Number Publication Date
JPS61250749A JPS61250749A (en) 1986-11-07
JPH0357490B2 true JPH0357490B2 (en) 1991-09-02

Family

ID=14055553

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9248385A Granted JPS61250749A (en) 1985-04-30 1985-04-30 Main memory access control system

Country Status (1)

Country Link
JP (1) JPS61250749A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3525070B2 (en) * 1999-01-27 2004-05-10 松下電器産業株式会社 Access control device and access method

Also Published As

Publication number Publication date
JPS61250749A (en) 1986-11-07

Similar Documents

Publication Publication Date Title
EP1646925B1 (en) Apparatus and method for direct memory access in a hub-based memory system
US6108743A (en) Technique for performing DMA including arbitration between a chained low priority DMA and high priority DMA occurring between two links in the chained low priority
KR20010007007A (en) Bus utilization optimization with read/write coherence
JPH0793216A (en) Cache memory controller
JP2002366507A (en) Multichannel dma(direct memory access) controller, and processor system
JPH0357490B2 (en)
US5369747A (en) Input/output channel apparatus
US6772311B2 (en) ATAPI device unaligned and aligned parallel I/O data transfer controller
JPH04190435A (en) Memory access order guarantee method for multiprocessor system
US5278965A (en) Direct memory access controller
JPH0727488B2 (en) Memory access control method
JPH0962633A (en) Network control unit
JP2713204B2 (en) Information processing system
JP3233073B2 (en) Disk access method
JP2594567B2 (en) Memory access control device
JP2803616B2 (en) I / O bus interface control method
JPH07160655A (en) Memory access system
JP2501393B2 (en) Direct memory access device
JPS6220041A (en) Asynchronous data transfer circuit for data processor
JPH0460257B2 (en)
US20050140799A1 (en) Memory access control unit and network camera apparatus
JPH02287661A (en) Data access system
JPS6051751B2 (en) Communication control device
JPH0746333B2 (en) Data processing device
JPS6393057A (en) Cache memory

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees