JPH07160655A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPH07160655A
JPH07160655A JP31021293A JP31021293A JPH07160655A JP H07160655 A JPH07160655 A JP H07160655A JP 31021293 A JP31021293 A JP 31021293A JP 31021293 A JP31021293 A JP 31021293A JP H07160655 A JPH07160655 A JP H07160655A
Authority
JP
Japan
Prior art keywords
memory
access
shared
request
control unit
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
JP31021293A
Other languages
Japanese (ja)
Inventor
Masahiro Takano
雅弘 高野
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP31021293A priority Critical patent/JPH07160655A/en
Publication of JPH07160655A publication Critical patent/JPH07160655A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To provide a memory access technique capable of reducing access standby and suppressing the frequency increase of the access standby especially for the enlargement of a shared area while maintaining the identity of data for respective processors as a shared memory. CONSTITUTION:In an information processor for which symmetrically constituted controllers 1 and 2 provided with the shared memories 8 and 8A provided with 2-port memories 12 and 12A and memory control parts 11 and '11A, host processors 6 and 6A and device processors 7 and 7A mutually access the shared memories 8A and 8 of each other through an inter-memory interface 9 composed of a data bus line 13 and a control line 14 and maintain the identity of the contents of the shared memories 8 and 8A at all times, access requests generated in the respective memory control parts 11 and 11A and the memory addresses are transferred between the memory control parts 11 and 11A and access to the other addresses is processed independently by the respective memory control parts 11 and 11A.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリアクセス技術に
関し、特に、複数の処理装置でメモリを共有する構成の
情報処理装置に適用して有効な技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory access technique, and more particularly to a technique effective when applied to an information processing device having a structure in which a plurality of processing devices share a memory.

【0002】[0002]

【従来の技術】複数の処理装置でメモリ内のデータを共
有する場合には、共有するデータの、それぞれの装置に
対する同一性を保証するため、処理装置からのアクセス
に対して排他制御を行う必要がある。しかしながら、こ
の排他制御に伴い発生するアクセス待ちが、各処理装置
の処理速度を劣化させ、システム全体の効率を低下させ
ることになる。
2. Description of the Related Art When a plurality of processing devices share data in a memory, it is necessary to perform exclusive control for access from the processing devices in order to guarantee the sameness of the shared data with each device. There is. However, the access wait that occurs due to this exclusive control deteriorates the processing speed of each processing device and reduces the efficiency of the entire system.

【0003】このようなアクセス待ちを最少にするた
め、種々の方法が提案されているが、その一方法とし
て、特開昭61−138359号公報に開示される技術
では、処理装置毎にメモリを配した上、さらにこれを共
有領域と非共有領域に分け、共有領域に対する書込みの
み排他制御を用いて全メモリに同時に書込みを行い、そ
れ以外のアクセスはそれぞれ独立して行う方法を提案し
ている。
Various methods have been proposed in order to minimize such an access wait. As one method, the technique disclosed in Japanese Patent Laid-Open No. 61-138359 discloses that a memory is provided for each processing device. After allocating it, it is further divided into a shared area and a non-shared area, and only the write to the shared area is simultaneously written to all the memory by using exclusive control, and other access is proposed independently. .

【0004】[0004]

【発明が解決しようとする課題】このような従来技術の
方法は、排他制御を必要とするアクセスを限定すること
で、アクセス待ちの頻度を減らすことに有効であるが、
この場合でも、各処理装置が共有領域にアクセスを行う
度にアクセス待ちが発生することになり、システムの大
規模化に伴う共有領域の拡大と処理装置の台数の増加に
よりアクセス待ちの頻度が増加し、特に共有領域の増加
に対して効率低下が顕著となる。
Although such a prior art method is effective in reducing the frequency of waiting for access by limiting the access requiring exclusive control,
Even in this case, an access wait occurs each time each processing device accesses the shared area, and the frequency of the access wait increases due to the expansion of the shared area and the increase in the number of processing devices as the system grows in size. However, the efficiency decrease becomes remarkable as the shared area increases.

【0005】本発明の目的は、共有メモリとして、各処
理装置に対してデータの同一性を保ったまま、アクセス
待ちを減らし、特に、共有領域の拡大に対し、アクセス
待ちの頻度増加を抑制することが可能なメモリアクセス
技術を提供することにある。
An object of the present invention is to reduce access wait while maintaining the sameness of data to each processing device as a shared memory, and particularly to suppress increase in access wait frequency as the shared area is expanded. It is to provide a memory access technology capable of performing the above.

【0006】本発明の他の目的は、一般に共有メモリを
使用する際に、各処理装置に必要とされるメモリ占有状
態において、その占有領域を最小限に抑え、他の処理装
置からのアクセス待ちを減らすことが可能なメモリアク
セス技術を提供することにある。
Another object of the present invention is to generally minimize the occupied area in a memory occupied state required for each processing unit when using a shared memory and wait for access from another processing unit. It is to provide a memory access technology capable of reducing the number of times.

【0007】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述および添付図面から明らかに
なるであろう。
The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

【0008】[0008]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
以下のとおりである。
Of the inventions disclosed in the present application, a representative one will be briefly described below.
It is as follows.

【0009】すなわち、本発明は、複数のメモリと、こ
の各々のメモリに対してアクセスを行う複数の処理装
置、および各々のメモリ毎にアクセスを制御する複数の
メモリ制御部を含み、複数のメモリの内容を常に一致さ
せておくことでメモリ内の情報を全ての処理装置で共有
可能にした情報処理装置において、メモリ制御部間で、
アクセス要求と、当該アクセス要求のメモリアドレスの
受け渡しを行い、それ以外のアドレスに対するアクセス
は各々のメモリ制御部が単独で処理するものである。
That is, the present invention includes a plurality of memories, a plurality of processing devices that access the memories, and a plurality of memory control units that control the access for each of the memories. In the information processing device in which the information in the memory can be shared by all the processing devices by always matching the contents of the
The access request and the memory address of the access request are passed, and accesses to other addresses are processed by each memory control unit independently.

【0010】たとえば、複数の処理装置によって共有さ
れる前記メモリは、複数のポートを備え、各々のポート
からのアクセスが可能なマルチポートメモリを用いるこ
とができる。また、前記メモリに対する書込みおよび占
有をアドレス毎に制御することができる。
For example, the memory shared by a plurality of processing devices may be a multi-port memory that has a plurality of ports and is accessible from each port. Further, writing and occupation of the memory can be controlled for each address.

【0011】[0011]

【作用】上記した本発明のメモリアクセス方式では、メ
モリとして、たとえば、マルチポートを使用し、これを
処理装置毎に配する。このメモリは、複数ポートからの
読み書きを同時に実行可能であるが、同一アドレスに対
して複数のポートから同時に書込みを行うとその内容は
保証されない。
In the memory access method of the present invention described above, for example, a multiport is used as the memory, and this is arranged for each processing device. This memory can simultaneously read and write from a plurality of ports, but its contents are not guaranteed if the same address is simultaneously written to from a plurality of ports.

【0012】ある処理装置で書込み或いはメモリの占有
要求が発生した場合、それに対応するメモリ制御は他の
メモリ制御部に対して書込み或いは占有要求とともにそ
のアドレスを送出する。他のメモリ制御部では、受け取
ったアドレスが自らの処理装置から読み書き中又は占有
中でなければ、要求許可を要求元へ返す。要求元はこの
許可が返るまで待ち、許可を受け取ると、書込み時は自
らのメモリのデータを書き込むと同時に、他のメモリ制
御部へそのデータを送り、占有時は、処理装置に対し、
占有完了を報告する。要求許可を返した制御部は、要求
元からの書込みデータを待つと共に、要求が無くなるま
で、このアドレスに対する自らの処理装置からのアクセ
ス要求を保留する。この時、要求許可したアドレス以外
の領域に対するアクセスは全て実行される。
When a write or memory occupancy request is generated in a certain processing device, the corresponding memory control sends the address together with the write or occupancy request to another memory control unit. The other memory control unit returns a request permission to the request source unless the received address is being read / written or occupied by its own processing device. The request source waits until this permission is returned, and when it receives the permission, it writes the data in its own memory at the same time as writing, and at the same time sends the data to another memory control unit, and when occupying it, it sends it to the processing device.
Report occupancy complete. The control unit that has returned the request permission waits for the write data from the request source and also holds the access request from its own processing device to this address until there is no request. At this time, all access to the area other than the request-permitted address is executed.

【0013】これにより、メモリの書込みに対しては、
全てのメモリに常に同時にデータが書き込まれるため、
共有メモリとして、全ての処理装置に対するデータの同
一性が保証される。また、アクセス待ちは同一アドレス
に対する書込みまたは占有時のみ発生するため、共有領
域の拡大により、アクセス待ちの頻度が増加することも
ない。
Thus, for writing to the memory,
Since data is always written to all memories at the same time,
As a shared memory, the identity of data to all processing devices is guaranteed. Moreover, since the access wait occurs only when writing or occupying the same address, the access wait frequency does not increase due to the expansion of the shared area.

【0014】[0014]

【実施例】以下、本発明の実施例を図面に基づいて詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0015】図1は、本発明の一実施例であるメモリア
クセス方式が実施される情報処理装置の要部の構成の一
例を示すブロック図であり、図2は、その全体構成の一
例を示すブロック図である。
FIG. 1 is a block diagram showing an example of the configuration of a main part of an information processing apparatus in which a memory access system according to an embodiment of the present invention is implemented, and FIG. 2 shows an example of the overall configuration. It is a block diagram.

【0016】本実施例では、情報処理装置の一例とし
て、外部記憶装置の制御装置に適用した例について説明
する。ここでいう外部記憶装置とは、たとえば磁気ディ
スク装置や磁気テープ装置等のコンピュータ周辺機器を
指し、制御装置はこの外部記憶装置を制御する。
In this embodiment, as an example of an information processing apparatus, an example applied to a control device of an external storage device will be described. The external storage device mentioned here refers to a computer peripheral device such as a magnetic disk device or a magnetic tape device, and the control device controls the external storage device.

【0017】図2に例示されるように、相互に全く等価
な構成を有する複数の制御装置1および制御装置2は、
記憶装置10と、図示しない上位装置との間に介在して
いる。
As illustrated in FIG. 2, a plurality of control devices 1 and 2 having completely equivalent configurations to each other are
It is interposed between the storage device 10 and a host device (not shown).

【0018】制御装置1は、次の各部分から構成され
る。ホストインターフェイス3は、上位装置とのインタ
ーフェイスを制御する部分で、プロトコル制御の他、デ
ータ転送も制御する。デバイスインターフェイス4は、
記憶装置10とのインターフェイスを制御する部分で、
ホストインターフェイス3と同様、プロトコル制御とデ
ータ転送を制御する。ホストインターフェイス3とデバ
イスインターフェイス4間は直接データ転送もできる
が、キャッシュメモリ5を介して転送することも可能で
ある。キャッシュメモリ5を介する際には、ホスト側の
データ転送とデバイス側のデータ転送は非同期となるた
め、これらを二つのホストプロセッサ6およびデバイス
プロセッサ7がそれぞれ独立して制御する。すなわち、
ホストプロセッサ6はホストインターフェイス3を制御
し、デバイスプロセッサ7はデバイスインターフェイス
4を制御する。
The control device 1 is composed of the following parts. The host interface 3 is a part that controls an interface with a higher-level device, and also controls data transfer in addition to protocol control. The device interface 4 is
In the part that controls the interface with the storage device 10,
Like the host interface 3, it controls protocol control and data transfer. Data can be directly transferred between the host interface 3 and the device interface 4, but can also be transferred via the cache memory 5. When passing through the cache memory 5, the data transfer on the host side and the data transfer on the device side are asynchronous, so that these are independently controlled by the two host processors 6 and the device processors 7. That is,
The host processor 6 controls the host interface 3, and the device processor 7 controls the device interface 4.

【0019】共有メモリ8は、ホストプロセッサ6とデ
バイスプロセッサ7が共通して必要とする制御情報を格
納する共有メモリで、ホストプロセッサ6およびデバイ
スプロセッサ7の双方からの書込みが可能であると同時
に、特定のアドレスを一方のプロセッサが占有し、他方
からの読み書きを抑止する機能も有する。
The shared memory 8 is a shared memory for storing control information commonly required by the host processor 6 and the device processor 7. The shared memory 8 is writable by both the host processor 6 and the device processor 7, and at the same time, One processor occupies a specific address and also has a function of inhibiting reading and writing from the other.

【0020】制御装置2は、制御装置1と同一で、その
内部は制御装置1と完全に対称の構成を有する。なお、
以下の説明では、制御装置2において制御装置1と等価
な構成要素には、制御装置1側の構成要素の符号に英大
文字“A”を付加することとする。
The control device 2 is the same as the control device 1, and the inside of the control device 2 is completely symmetrical to the control device 1. In addition,
In the following description, an uppercase letter "A" is added to the reference numeral of a component on the control device 1 side for a component equivalent to the control device 1 in the control device 2.

【0021】制御装置1の共有メモリ8と、制御装置2
の共有メモリ8Aは、メモリ間インターフェイス9で接
続され、これにより、二つの共有メモリ8および8A
は、論理的に一つの共有メモリとして動作する。即ち、
制御装置1の二つのプロセッサと制御装置2の二つのプ
ロセッサからのデータの共有と、いずれか一つのプロセ
ッサからの占有とが可能である。
The shared memory 8 of the controller 1 and the controller 2
Shared memory 8A is connected by a memory-to-memory interface 9, whereby two shared memories 8 and 8A are connected.
Operates logically as one shared memory. That is,
It is possible to share the data from the two processors of the control device 1 and the two processors of the control device 2 and to occupy the data from any one of the processors.

【0022】次に、図1を用いて二つの共有メモリ8お
よび8Aの動作について説明する。
Next, the operation of the two shared memories 8 and 8A will be described with reference to FIG.

【0023】図1は、制御装置1および2の各々におけ
る共有メモリ8および8Aを抜き出し、その内部構成を
示したブロック図である。
FIG. 1 is a block diagram showing the internal structure of the shared memories 8 and 8A extracted from each of the control devices 1 and 2.

【0024】2ポートメモリ12は、二つのポートから
独立して読み書きができるメモリで、データは、データ
バス線17およびデータバス線13により、それぞれの
ポートに対して入出力される。
The 2-port memory 12 is a memory which can be read and written independently from the two ports, and data is input to and output from the respective ports by the data bus line 17 and the data bus line 13.

【0025】メモリ制御部11は、2ポートメモリ12
に対するアクセスを制御する部分で、制御線18および
制御線19によって、メモリアドレス、書込み/読出し
の切り替え、書込みのタイミングをそれぞれポートへ指
示する。同時に、メモリ制御部11は、制御線14によ
ってもう一方の制御装置2のメモリ制御部11Aに接続
され、それぞれの2ポートメモリ12および2ポートメ
モリ12Aを合わせて一つのメモリに見せる制御を行
う。
The memory control unit 11 includes a 2-port memory 12
The control line 18 and the control line 19 instruct the memory address, write / read switching, and write timing to the port. At the same time, the memory control unit 11 is connected to the memory control unit 11A of the other control device 2 by the control line 14, and controls the two-port memory 12 and the two-port memory 12A to be displayed as one memory together.

【0026】次に、メモリ制御部11を中心とした共有
メモリ全体の動作について説明する。
Next, the operation of the entire shared memory centering on the memory control unit 11 will be described.

【0027】ホストプロセッサ6(デバイスプロセッサ
7)からの共有メモリ8に対するアクセスは、制御線1
5(制御線16)とデータバス線17によって行う。制
御線15(制御線16)には、ホストプロセッサ6(デ
バイスプロセッサ7)からメモリ制御部11への読み書
き要求、占有要求、占有解除要求、およびメモリアドレ
スと、メモリ制御部11からホストプロセッサ6(デバ
イスプロセッサ7)への読み書き要求および占有許可が
含まれる。
Access to the shared memory 8 from the host processor 6 (device processor 7) is performed by the control line 1
5 (control line 16) and data bus line 17. The control line 15 (control line 16) includes a read / write request, an occupancy request, an occupancy release request, and a memory address from the host processor 6 (device processor 7) to the memory control unit 11, and the memory control unit 11 to the host processor 6 ( A read / write request to the device processor 7) and an occupancy permission are included.

【0028】ホストプロセッサ6は、共有メモリ8から
読み出しを行うときは、制御線15により読み出しアド
レスと読み出し要求をメモリ制御部11へ送る。メモリ
制御部11は、読み出し要求を受け取ると、デバイスプ
ロセッサ7からのアクセス要求がなく、指示されたメモ
リアドレスが他の部分から占有状態および他方の制御装
置2から書き込み中でないことを確認の上、制御線19
を用いてメモリアドレスと読み出しを指示したのち、ホ
ストプロセッサ6に対し、読み出し許可を返す。この許
可を受け取ったホストプロセッサ6はデータバス線17
上の読み出しデータを取り込み、要求を解除する。
When reading from the shared memory 8, the host processor 6 sends a read address and a read request to the memory control unit 11 through the control line 15. Upon receiving the read request, the memory control unit 11 confirms that there is no access request from the device processor 7, the specified memory address is occupied by another portion, and that the other control device 2 is not writing data. Control line 19
After instructing the memory address and the read using, the read permission is returned to the host processor 6. The host processor 6 that has received this permission receives the data bus line 17
Read the above read data and cancel the request.

【0029】もし、デバイスプロセッサ7からのアクセ
ス要求、指示されたメモリに対する占有状態、または他
方のプロセッサからの書き込み要求のいずれかが存在す
る場合には、ホストプロセッサ6からの読み出し要求
は、上記が終了するまで実行保留となる。
If there is either an access request from the device processor 7, an occupied state for the designated memory, or a write request from the other processor, the read request from the host processor 6 is as described above. Execution is suspended until the end.

【0030】ホストプロセッサ6から共有メモリ8に書
き込みを行う場合には、制御線15により、書き込みア
ドレスと書き込み要求をメモリ制御部11へ送る。メモ
リ制御部11は、書き込み要求を受け取ると、デバイス
プロセッサ7からのアクセス要求がなく、指示されたメ
モリアドレスが他の部分から占有状態または、他方の制
御装置2から書き込み中のいずれでもないことを確認の
上、制御線14を介して、他方の制御装置2のメモリ制
御部11Aへ書き込みアドレスと、書き込み要求を送
る。
When writing from the host processor 6 to the shared memory 8, a write address and a write request are sent to the memory control unit 11 via the control line 15. Upon receiving the write request, the memory control unit 11 confirms that there is no access request from the device processor 7, and the instructed memory address is neither occupied by another portion nor being written by the other control device 2. After confirmation, the write address and the write request are sent to the memory control unit 11A of the other control device 2 through the control line 14.

【0031】他方の制御装置2のメモリ制御部11A
は、同一装置内のホストプロセッサ6Aおよびデバイス
プロセッサ7Aから指示されたアドレスへ書き込み要求
が無ければ、制御装置1のメモリ制御部11に要求許可
を送る。要求許可を受け取った制御装置1側のメモリ制
御部11は、制御線19を用いて、2ポートメモリ12
にアドレスを指示するとともに、制御線15を介してホ
ストプロセッサ6へ要求許可を送る。この要求許可を受
け取ったホストプロセッサ6は、データバス線17へ書
き込みデータを送出するとともに、書き込み要求を解除
する。メモリ制御部11は、書き込み要求解除直前のデ
ータバス線17のデータを2ポートメモリ12に書き込
むように制御するとともに、データバス線13へこのデ
ータを乗せ、他方の制御装置2のメモリ制御部11Aへ
の書き込み要求を解除する。他方の制御装置2のメモリ
制御部11Aは、要求解除直前のデータバス線13の内
容を、メモリの指示されたアドレスへ書き込む。
Memory controller 11A of the other controller 2
Sends a request permission to the memory control unit 11 of the control device 1 if there is no write request to the address designated by the host processor 6A and the device processor 7A in the same device. Upon receiving the request permission, the memory control unit 11 on the side of the control device 1 uses the control line 19 to operate the 2-port memory 12
Address to the host processor 6 and send a request permission to the host processor 6 via the control line 15. Upon receiving this request permission, the host processor 6 sends write data to the data bus line 17 and cancels the write request. The memory control unit 11 controls so that the data on the data bus line 17 immediately before the cancellation of the write request is written to the 2-port memory 12, puts this data on the data bus line 13, and the memory control unit 11A of the other control device 2 is controlled. Release write request to. The memory control unit 11A of the other control device 2 writes the contents of the data bus line 13 immediately before the request is released to the designated address of the memory.

【0032】この時、メモリ制御部11において、デバ
イスプロセッサ7からのアクセス要求、指示されたアド
レスに対する他の部分からの占有状態または他方の制御
装置2からの書き込み要求のいずれかが存在する場合に
は、ホストプロセッサ6の書き込み要求は、上記が終了
するまで保留となる。
At this time, in the memory control unit 11, when there is either an access request from the device processor 7, an occupied state from another portion for the designated address, or a write request from the other control unit 2. The write request from the host processor 6 is suspended until the above is completed.

【0033】ホストプロセッサ6が共有メモリ8の占有
を行う時には、制御線15により、占有したいアドレス
と占有要求をメモリ制御部11へ送る。
When the host processor 6 occupies the shared memory 8, the address to be occupied and the occupancy request are sent to the memory control unit 11 via the control line 15.

【0034】メモリ制御部11は、占有要求を受け取る
と、指示されたアドレスが他の部分から占有状態および
書き込み中のいずれでもないことを確認の上、他方の制
御装置2のメモリ制御部11Aへ制御線14を介し、占
有したいアドレスと占有要求を送る。
When the memory control unit 11 receives the occupation request, it confirms that the instructed address is neither occupied nor being written from another portion, and then the memory control unit 11A of the other control unit 2 is notified. An address to be occupied and an occupation request are sent via the control line 14.

【0035】他方の制御装置2のメモリ制御部11Aは
同一装置内のホストプロセッサ6Aおよびデバイスプロ
セッサ7Aから読み出し中でなければ、制御装置1のメ
モリ制御部11へ、占有許可を返すとともに、そのアド
レスに対する制御装置1から占有状態として保持する。
この占有許可を受け取った制御装置1のメモリ制御部1
1は、指示されたアドレスがホストプロセッサ6から占
有状態であることを保持するとともに、ホストプロセッ
サ6に対し、制御線15を介して、占有許可を返す。占
有許可を受け取ったホストプロセッサ6は占有要求を解
除する。
If the memory control unit 11A of the other control unit 2 is not reading from the host processor 6A and the device processor 7A in the same device, the memory control unit 11A of the control unit 1 returns the occupancy permission and its address. It is held as an occupied state from the control device 1 for.
The memory control unit 1 of the control device 1 that has received this occupation permission
1 holds that the designated address is in the occupied state from the host processor 6, and returns the occupation permission to the host processor 6 via the control line 15. The host processor 6 which has received the occupation permission cancels the occupation request.

【0036】もし、指示されたアドレスが制御装置1内
で占有状態または書き込み中か、制御装置2内で読み出
し中のいずれかの時は、占有要求の実行は保留される。
If the designated address is either occupied or written in the control device 1 or is being read in the control device 2, execution of the occupancy request is suspended.

【0037】占有解除を行う時は、ホストプロセッサ6
は、制御線15を介し、メモリ制御部11へ占有解除要
求を送る。メモリ制御部11は、占有解除要求を受け取
ると、ホストプロセッサ6から占有状態にあることと、
他の制御装置2のメモリ制御部11Aからのアクセスが
無いことを確認の上、他方の制御装置2のメモリ制御部
11Aへ制御線14を介して占有解除要求と解除すべき
メモリアドレスを送る。
When the exclusive release is performed, the host processor 6
Sends an occupancy release request to the memory control unit 11 via the control line 15. When the memory control unit 11 receives the occupancy cancellation request, it is in the occupancy state from the host processor 6,
After confirming that there is no access from the memory control unit 11A of the other control device 2, the exclusive release request and the memory address to be released are sent to the memory control unit 11A of the other control device 2 via the control line 14.

【0038】他方の制御装置2のメモリ制御部11A
は、占有解除要求を受け取ると、制御装置1から該当ア
ドレスが占有状態であることを確認の上、その占有状態
を解除するとともに、制御装置1のメモリ制御部11へ
占有解除許可を送る。占有許可を受け取ったメモリ制御
部11は、ホストプロセッサ6からの占有状態を解除
し、制御線15を介して、占有解除許可をホストプロセ
ッサ6に送る。ホストプロセッサ6は、占有解除許可に
より、占有解除要求を解除する。
Memory controller 11A of the other controller 2
When the exclusive release request is received, the controller 1 confirms that the corresponding address is in the exclusive state, releases the exclusive state, and sends an exclusive release permission to the memory control unit 11 of the controller 1. The memory control unit 11, which has received the occupation permission, releases the occupation state from the host processor 6 and sends the occupation release permission to the host processor 6 through the control line 15. The host processor 6 releases the exclusive release request by the exclusive release permission.

【0039】もし、メモリ制御部11が、他方の制御装
置2からアクセスを受けている時には、それが終了する
までは、占有解除は保留される。
If the memory control unit 11 is being accessed by the other control unit 2, the occupancy release is suspended until the end.

【0040】以上は、ホストプロセッサ6から共有メモ
リをアクセスする場合を説明したが、デバイスプロセッ
サ7からのアクセスや、他方の制御装置2におけるホス
トプロセッサ6Aおよびデバイスプロセッサ7Aのアク
セスについても同様に動作する。
Although the case where the shared memory is accessed from the host processor 6 has been described above, the access from the device processor 7 and the access to the host processor 6A and the device processor 7A in the other control unit 2 operate similarly. .

【0041】尚、制御装置1のメモリ制御部11と、制
御装置2のメモリ制御部11Aで、それぞれ同時に、相
手のメモリ制御部11A(11)に対する要求が発生し
た場合の競合回避については、時分割に制御する等、既
知の手段で実現可能である。
The memory control unit 11 of the control device 1 and the memory control unit 11A of the control device 2 simultaneously avoid the conflict when a request to the other memory control unit 11A (11) occurs. It can be realized by a known means such as controlling division.

【0042】本実施例によれば、書き込みおよび占有状
態が特定アドレスに限定可能なため、その他のアドレス
に対するアクセスを自由に行うことができ、共有メモリ
へのアクセスの競合に伴うアクセス待ちの回数、時間を
減らすことが可能となる。
According to the present embodiment, since the writing and occupation states can be limited to a specific address, it is possible to freely access other addresses, and the number of times of waiting for access due to competition for access to the shared memory, It is possible to reduce the time.

【0043】また、2ポートメモリ12を使用すること
により、自制御装置内のメモリアクセスと、接続されて
いる他方の制御装置からのアクセスを独立して制御可能
であり、さらなる競合回避が可能である。
Further, by using the 2-port memory 12, the memory access in the own control device and the access from the other connected control device can be independently controlled, and further conflict avoidance is possible. is there.

【0044】以上本発明者によってなされた発明を実施
例に基づき具体的に説明したが、本発明は前記実施例に
限定されるものではなく、その要旨を逸脱しない範囲で
種々変更可能であることはいうまでもない。
Although the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Needless to say.

【0045】[0045]

【発明の効果】本願において開示される発明のうち、代
表的なものによって得られる効果を簡単に説明すれば、
以下のとおりである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.
It is as follows.

【0046】本発明のメモリアクセス方式によれば、メ
モリ制御部間で、アドレス並びにアクセス要求を受け渡
すことにより、排他制御を特定のアドレスに限定するこ
とができ、メモリのアクセス待ちを減らすことができ
る、という効果が得られる。
According to the memory access method of the present invention, by exchanging the address and the access request between the memory control units, the exclusive control can be limited to a specific address, and the memory access waiting time can be reduced. You can get the effect.

【0047】また、メモリとしてマルチポートメモリを
用いることにより、さらにアクセス待ちを減らすことが
できる、という効果が得られる。
Further, by using a multi-port memory as the memory, it is possible to further reduce the waiting time for access.

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

【図1】本発明の一実施例であるメモリアクセス方式が
実施される情報処理装置の要部の構成の一例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an example of a configuration of a main part of an information processing device in which a memory access method according to an embodiment of the present invention is implemented.

【図2】その全体構成の一例を示すブロック図である。FIG. 2 is a block diagram showing an example of the overall configuration.

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

1 制御装置 2 制御装置 3 ホストインターフェイス 4 デバイスインターフェイス 5 キャッシュメモリ 6 ホストプロセッサ 6A ホストプロセッサ 7 デバイスプロセッサ 7A デバイスプロセッサ 8 共有メモリ 8A 共有メモリ 9 メモリ間インターフェイス 10 記憶装置 11 メモリ制御部 11A メモリ制御部 12 2ポートメモリ 12A 2ポートメモリ 13 データバス線 14 制御線 15 制御線 15A 制御線 16 制御線 16A 制御線 17 データバス線 17A データバス線 18 制御線 18A 制御線 19 制御線 19A 制御線 1 Control Device 2 Control Device 3 Host Interface 4 Device Interface 5 Cache Memory 6 Host Processor 6A Host Processor 7 Device Processor 7A Device Processor 8 Shared Memory 8A Shared Memory 9 Memory Interface 10 Storage Device 11 Memory Control Unit 11A Memory Control Unit 12 2 Port memory 12A 2 Port memory 13 Data bus line 14 Control line 15 Control line 15A Control line 16 Control line 16A Control line 17 Data bus line 17A Data bus line 18 Control line 18A Control line 19 Control line 19A Control line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のメモリと、この各々のメモリに対
してアクセスを行う複数の処理装置、および各々の前記
メモリ毎にアクセスを制御する複数のメモリ制御部を含
み、複数の前記メモリの内容を常に一致させておくこと
で前記メモリ内の情報を全ての前記処理装置で共有可能
にした情報処理装置において、前記メモリ制御部間で、
アクセス要求と、当該アクセス要求のメモリアドレスの
受け渡しを行い、それ以外のアドレスに対するアクセス
は各々のメモリ制御部が単独で処理することを特徴とす
るメモリアクセス方式。
1. A plurality of memories, a plurality of processing devices for accessing the respective memories, and a plurality of memory control units for controlling the access for each of the memories, the contents of the plurality of memories. In the information processing device in which the information in the memory can be shared by all the processing devices by always matching the above, between the memory control units,
A memory access method in which an access request and a memory address of the access request are passed, and accesses to other addresses are individually processed by each memory control unit.
JP31021293A 1993-12-10 1993-12-10 Memory access system Pending JPH07160655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31021293A JPH07160655A (en) 1993-12-10 1993-12-10 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31021293A JPH07160655A (en) 1993-12-10 1993-12-10 Memory access system

Publications (1)

Publication Number Publication Date
JPH07160655A true JPH07160655A (en) 1995-06-23

Family

ID=18002549

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31021293A Pending JPH07160655A (en) 1993-12-10 1993-12-10 Memory access system

Country Status (1)

Country Link
JP (1) JPH07160655A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055440A (en) * 2008-08-29 2010-03-11 Nec Electronics Corp Distributed shared memory multiprocessor and data processing method
US20110047311A1 (en) * 2009-08-24 2011-02-24 Micron Technology, Inc. Multi-port memory and operation
US20160266802A1 (en) * 2015-03-10 2016-09-15 Kabushiki Kaisha Toshiba Storage device, memory system and method of managing data

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010055440A (en) * 2008-08-29 2010-03-11 Nec Electronics Corp Distributed shared memory multiprocessor and data processing method
US8458411B2 (en) 2008-08-29 2013-06-04 Renesas Electronics Corporation Distributed shared memory multiprocessor and data processing method
US20110047311A1 (en) * 2009-08-24 2011-02-24 Micron Technology, Inc. Multi-port memory and operation
KR101327665B1 (en) * 2009-08-24 2013-11-12 마이크론 테크놀로지, 인크. Multi-port memory and operation
US8769213B2 (en) * 2009-08-24 2014-07-01 Micron Technology, Inc. Multi-port memory and operation
TWI456584B (en) * 2009-08-24 2014-10-11 Micron Technology Inc Multi-port memory and operation
US8930643B2 (en) 2009-08-24 2015-01-06 Micron Technology, Inc. Multi-port memory and operation
US20160266802A1 (en) * 2015-03-10 2016-09-15 Kabushiki Kaisha Toshiba Storage device, memory system and method of managing data

Similar Documents

Publication Publication Date Title
EP1646925B1 (en) Apparatus and method for direct memory access in a hub-based memory system
KR970029014A (en) Data Processing System and Method
US20060047887A1 (en) Memory system and method having unidirectional data buses
JPH07160655A (en) Memory access system
JPH0546527A (en) Dual port memory circuit
JPH0553902A (en) Memory control circuit
JP2000227895A (en) Device and method for transferring image data
JPH0341856B2 (en)
JPH0351943A (en) Sharing system for high/low speed bus lines
JPH05242009A (en) Direct memory access device
JPH01293456A (en) Shared memory
JPH04117697A (en) Multiport memory circuit
JP3331943B2 (en) Information processing device and input / output control device
JPH0375959A (en) Data transfer device for multiprocessor
JPS63217444A (en) Multiple port memory
JPH0652101A (en) Multiport memory for data buffer
JPS60253083A (en) Storage device controlling system
JPS63217460A (en) Buffer control circuit
JPH04154346A (en) Circuit controller
JPH0322073A (en) Data transfer controller
JPH0391191A (en) Multiport memory
JPS62186344A (en) Address mapped register
JPS635460A (en) Parallel computer
JPH04294440A (en) Inter-processor data transfer system
JPH0247751A (en) Channel control system