JPH03109660A - Memory access control system for dual bus system - Google Patents
Memory access control system for dual bus systemInfo
- Publication number
- JPH03109660A JPH03109660A JP24700689A JP24700689A JPH03109660A JP H03109660 A JPH03109660 A JP H03109660A JP 24700689 A JP24700689 A JP 24700689A JP 24700689 A JP24700689 A JP 24700689A JP H03109660 A JPH03109660 A JP H03109660A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- bus
- access
- accessed
- shared
- 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
Links
- 230000009977 dual effect Effects 0.000 title claims description 9
- 238000000034 method Methods 0.000 claims description 3
- 239000007858 starting material Substances 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はバスを二重化したデュアルバスシステムに関し
、特に、デュアルバスシステムに於いて共通メモリへの
アクセスを制御するデュアルバスシステムに於けるメモ
リアクセス制御方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a dual bus system in which buses are duplicated, and in particular, to memory access in a dual bus system that controls access to a common memory in the dual bus system. Regarding control method.
バスを二重化し、二重化したバスの各々にマイクロプロ
セッサ等からなる複数のバスマスタ、共通メモリ、入出
力装置等を接続したデュアルバスシステムは従来より提
案されている。このように、バスを二重化しておくこと
により、複数のバスマスタの内の何れかが一方のバスを
用いて例えば共通メモリをアクセスしている時に他のバ
スマスタが他方のバスを用いて入出力装置等の他の資源
をアクセスすることが可能になる。また、上述したよ、
うな従来のデュアルバスシステムに於いては、成るバス
マスタが共通メモリをアクセスしようとした場合、他の
バスマスタが共通メモリをアクセスしていないことを条
件にしてアクセスを許可するようにしている。Dual bus systems have been proposed in the past, in which buses are duplicated and a plurality of bus masters such as microprocessors, a common memory, input/output devices, etc. are connected to each of the duplicated buses. By duplicating the buses in this way, when one of the multiple bus masters uses one bus to access, for example, common memory, the other bus masters use the other bus to access input/output devices. It becomes possible to access other resources such as Also, as mentioned above,
In such a conventional dual bus system, when a bus master attempts to access a common memory, the access is permitted on the condition that no other bus master is accessing the common memory.
上述した従来例では成るバスマスタが共通メモリをアク
セスしようとした場合、他のバスマスタが共通メモリを
アクセスしていると、共通メモリをアクセスすることが
できず、バスが二重化されているにもかかわらず、1台
のバスマスタしか共通メモリをアクセスすることができ
ないという問題があった。In the conventional example described above, if a bus master tries to access the common memory, if another bus master is accessing the common memory, the common memory cannot be accessed, and even though the bus is duplicated, , there was a problem in that only one bus master could access the common memory.
本発明の目的は2台のバスマスタが同時に共通メモリを
アクセスできるようにすることにある。An object of the present invention is to enable two bus masters to access a common memory at the same time.
本発明は上記目的を達成するため、
2つの共有バスと、
該2つの共有バスの各々に接続された共通メモリと、
前記2つの共有バスの各々を介して前記共通メモリをア
クセス可能な複数のバスマスタとを含むデュアルバスシ
ステムに於いて、
前記共通メモリのメモリ空間を複数のメモリ領域に分割
すると共に、
前記各メモリ領域と前記2つの共有バスとの接続を制御
するゲート回路と、
該ゲート回路を制御するメモリアクセス制御回路と、
前記各メモリ領域が使用中か否かを示す情報が格納され
るメモリ使用許可テーブルとを含み、前記メモリアクセ
ス制御回路は前記共有バスを介して前記共通メモリがア
クセスされた場合、前記メモリ使用許可テーブルを参照
し、アクセスされたアドレスを含むメモリ領域が未使用
中であると判断することにより、前記ゲート回路を制御
してアクセスされたアドレスを含むメモリ領域とアクセ
スの行なわれた共有バスとを接続し、更にアクセス元の
バスマスタにメモリ使用許可を与えると共に前記メモリ
使用許可テーブルのアクセスの行なわれたアドレスを含
むメモリ領域対応の内容を使用中に変更し、アクセスが
終了することにより前記ゲート回路を制御してアクセス
の終了したアドレスを含むメモリ領域とアクセスの行な
われた共有バスとを切り離し、更に前記メモリ使用許可
テーブルのアクセスの終了したアドレスを含むメモリ領
域対応の内容を未使用中とする。In order to achieve the above object, the present invention includes two shared buses, a common memory connected to each of the two shared buses, and a plurality of memory devices that can access the common memory via each of the two shared buses. In a dual bus system including a bus master, the gate circuit divides the memory space of the common memory into a plurality of memory areas and controls the connection between each of the memory areas and the two shared buses, and the gate circuit a memory access control circuit that controls the common memory via the shared bus, and a memory use permission table that stores information indicating whether each of the memory areas is in use. When accessed, the memory area including the accessed address is controlled by referring to the memory usage permission table and determining that the memory area including the accessed address is unused. connecting the accessed shared bus to the accessed shared bus, further granting memory usage permission to the accessing bus master, and changing the contents of the memory usage permission table corresponding to the memory area including the accessed address while in use; Upon completion of the access, the gate circuit is controlled to separate the memory area containing the accessed address from the accessed shared bus, and further the memory area containing the accessed address in the memory use permission table is controlled. The content of the correspondence is marked as unused.
共通メモリのメモリ空間は複数のメモリ領域に分割され
、各メモリ領域と2つの共有バスとはゲート回路により
接続が制御される。メモリアクセス制御回路は共有バス
を介して共通メモリがアクセスされると、アクセスされ
たアドレスを含むメモリ領域が使用中であるか否かをメ
モリ使用許可テーブルを参照して判断する。そして、未
使用中であると判断すると、ゲート回路を制御してアク
セスされたアドレスを含むメモリ領域と2つの共有バス
の内のアクセスの行なわれた共有バスとを接続し、更に
アクセス元のバスマスタにメモリ使用許可を与えると共
にメモリ使用許可テーブルのアクセスの行なわれたアド
レスを含む領域対応の内容を使用中に変更し、他の共有
バスを介して上記メモリ領域がアクセスされないように
する。また、メモリアクセス制御回路は共通メモリに対
するアクセスが終了すると、ゲート回路を制御してアク
セスの終了したアドレスを含むメモリ領域とアクセスの
行なわれた共有バスとを切り離し、更にメモリ使用許可
テーブルのアクセスの終了したアドレスを含むメモリ領
域の内容を未使用中に変更し、上記メモリ領域をアクセ
ス可能な状態にする。The memory space of the common memory is divided into a plurality of memory areas, and the connection between each memory area and the two shared buses is controlled by a gate circuit. When the common memory is accessed via the shared bus, the memory access control circuit determines whether or not the memory area including the accessed address is in use by referring to the memory use permission table. If it is determined that the memory area is not in use, it controls the gate circuit to connect the memory area containing the accessed address to the accessed shared bus of the two shared buses, and connects the accessed bus master. At the same time, the content of the memory use permission table corresponding to the area including the accessed address is changed to be in use, and the memory area is prevented from being accessed via another shared bus. Furthermore, when the access to the common memory is completed, the memory access control circuit controls the gate circuit to separate the memory area containing the accessed address from the accessed shared bus, and further controls the access to the memory usage permission table. The contents of the memory area including the completed address are changed to unused, and the memory area is made accessible.
次に本発明の実施例について図面を参照して詳細に説明
する。Next, embodiments of the present invention will be described in detail with reference to the drawings.
第1図は本発明の実施例のブロック図であり、2つの共
有バス2−1.2−2と、各々の共有バス2−1.2−
2をアクセス可能なN個のバスマスタ6−1〜6−Nと
、各々の共有バス2−1゜2−2に接続された共通メモ
リ1とから構成されている。共通メモリ1は、そのメモ
リ空間をM分割したM個のメモリ領域5−1〜5−Mと
、各メモリ領域5−1〜5−M対応に設けられ、各メモ
リ領域5−1〜5−Mと共有バス2−1.2−2との接
続を制御するゲート回路4−1〜4−Mと、ゲート回路
4−1〜4−Mを制御するメモリアクセス制御回路3と
を含んでいる。また、メモリアクセス制御回路3は各メ
モリ領域5−1〜5−Mが使用中であるか否かを示す情
報が格納されるメモリ使用許可テーブル31を含んでい
る。FIG. 1 is a block diagram of an embodiment of the invention, showing two shared buses 2-1.2-2 and a respective shared bus 2-1.2-2.
2, and a common memory 1 connected to each of the shared buses 2-1 and 2-2. The common memory 1 is provided with M memory areas 5-1 to 5-M obtained by dividing the memory space into M, and is provided corresponding to each memory area 5-1 to 5-M. It includes gate circuits 4-1 to 4-M that control the connection between M and the shared bus 2-1.2-2, and a memory access control circuit 3 that controls the gate circuits 4-1 to 4-M. . Further, the memory access control circuit 3 includes a memory use permission table 31 in which information indicating whether each memory area 5-1 to 5-M is in use is stored.
今、例えば、バスマスタ6−1が共有バス2−1にメモ
リ領域5−i中のアドレスを出力して共通メモリ1をア
クセスしたとする。尚、バスマスタ6−1は共有バス2
−1を介して共通メモリ1をアクセスする場合、共有バ
ス2−1が使用されていないことを確認した後、アドレ
スを出力するものである。For example, assume that the bus master 6-1 accesses the common memory 1 by outputting an address in the memory area 5-i to the shared bus 2-1. Note that the bus master 6-1 is connected to the shared bus 2.
When accessing the common memory 1 via the bus 2-1, the address is output after confirming that the shared bus 2-1 is not in use.
共通メモリ1内のメモリアクセス制御回路3は共有バス
2−1を介してバスマスタ6−1から共通メモリ1に対
するアクセスがあると、共有バス2−1に出力されたア
ドレスに基づいてメモリ領域5−1〜5−Mの内の何れ
がアクセスされたのかを判断する。この例ではメモリ領
域5−iがアクセスされたと判断される。その後、メモ
リアクセス制御回路3はメモリ使用許可テーブル31を
参照し、メモリ領域5−1が使用中となっているか否か
を判断する。When the common memory 1 is accessed from the bus master 6-1 via the shared bus 2-1, the memory access control circuit 3 in the common memory 1 accesses the memory area 5-1 based on the address output to the shared bus 2-1. It is determined which one of 1 to 5-M has been accessed. In this example, it is determined that memory area 5-i has been accessed. Thereafter, the memory access control circuit 3 refers to the memory use permission table 31 and determines whether the memory area 5-1 is in use.
そして、メモリ領域5−iが未使用中になっていると判
断した場合は、メモリアクセス制御回路3はゲート回路
4−iを制御してメモリ領域5−1と共有バス2−1と
を接続し、更にアクセス元のバスマスタ6−1にメモリ
使用許可を与えると共に、メモリ使用許可テーブル31
のメモリ領域5−i対応の内容を使用中に変更する。バ
スマスタ6−1はメモリアクセス制御回路3からメモリ
使用許可が与えられると、リード信号、ライト信号、デ
ータ等を共有バス2−1に出力する。メモリアクセス制
御回路3は上述した処理を行なった後、アクセスの終了
を検出すると、ゲート回路4−iを制御してメモリ領域
5−iと共有バス2−1とを切り離すと共に、メモリ使
用許可テーブル3.1のメモリ領域5−i対応の内容を
未使用中に変更する。If it is determined that the memory area 5-i is unused, the memory access control circuit 3 controls the gate circuit 4-i to connect the memory area 5-1 and the shared bus 2-1. Furthermore, the access source bus master 6-1 is granted memory usage permission, and the memory usage permission table 31 is
The contents corresponding to memory area 5-i are changed during use. When the bus master 6-1 is given permission to use the memory by the memory access control circuit 3, it outputs read signals, write signals, data, etc. to the shared bus 2-1. After performing the above processing, when the memory access control circuit 3 detects the end of the access, it controls the gate circuit 4-i to disconnect the memory area 5-i from the shared bus 2-1, and also updates the memory use permission table. 3. Change the contents corresponding to memory area 5-i in 1 to unused.
また、メモリ領域5−iが使用中になっていると判断し
た場合、即ち共有バス2−2を介してメモリ領域5−1
がアクセスされている場合は、メモリアクセス制御回路
3は共有バス2−2を介してのアクセスが終了するのを
、即ちメモリ使用許可テーブル31のメモリ領域5−i
対応の内容が未使用中になるのを待ち、前述したと同様
の処理を行なう。In addition, if it is determined that the memory area 5-i is in use, that is, the memory area 5-i is
is being accessed, the memory access control circuit 3 waits until the access via the shared bus 2-2 is completed, that is, the memory area 5-i of the memory use permission table 31 is accessed.
Wait until the corresponding content becomes unused, and perform the same process as described above.
また、上述したようにして、バスマスタ6−1が共有バ
ス2−1を介してメモリ領域5−1をアクセスしている
時に、バスマスタ6−Nが共有バス2−2を介してメモ
リ領域5−jをアクセスしたとすると、メモリ使用許可
テーブル31のメモリ領域5−j対応の内容が未使用中
になっていれば、前述したと同様にして共有バス2−2
とメモリ領域5−jとがゲート回路4−3を介して接続
され、バスマスタ6−Nにより共有バス2−2を介して
メモリ領域5−jがアクセスされる。Further, as described above, while the bus master 6-1 is accessing the memory area 5-1 via the shared bus 2-1, the bus master 6-N is accessing the memory area 5-1 via the shared bus 2-2. If the memory area 5-j is accessed in the memory use permission table 31, if the contents corresponding to the memory area 5-j are unused, the shared bus 2-2 is accessed in the same manner as described above.
and memory area 5-j are connected via gate circuit 4-3, and memory area 5-j is accessed via shared bus 2-2 by bus master 6-N.
以上説明したように、本発明は、共通メモリのメモリ空
間を複数のメモリ領域に分割すると共に、各メモリ領域
と共有バスとの接続を制御するゲート回路を設け、アク
セスされたアドレスを含むメモリ領域が使用中でない場
合のみ、ゲート回路を制御してアクセスされたアドレス
を含むメモリ領域とアクセスの行なわれた共有バスとを
接続するようにしたものであるので、2台のバスマスタ
が同時に共通メモリをアクセスすることができる効果が
ある。As explained above, the present invention divides the memory space of a common memory into a plurality of memory areas, provides a gate circuit for controlling the connection between each memory area and the shared bus, and provides a memory area including an accessed address. The gate circuit is controlled to connect the memory area containing the accessed address to the accessed shared bus only when the bus master is not in use, so two bus masters can connect the common memory at the same time. There are effects that can be accessed.
第1図は本発明の実施例のブロック図である。
図に於いて、1・・・共通メモリ、2−1.2−2・・
・共有バス、3・・・メモリアクセス制御回路、4−1
〜4−M・・・ゲート回路、5−1〜5−M・・・メモ
リ領域、6−1〜6−N・・・バスマスタ、31・・・
メモリ使用許可テーブル。FIG. 1 is a block diagram of an embodiment of the invention. In the figure, 1... common memory, 2-1.2-2...
・Shared bus, 3...Memory access control circuit, 4-1
~4-M...Gate circuit, 5-1~5-M...Memory area, 6-1~6-N...Bus master, 31...
Memory usage grant table.
Claims (1)
クセス可能な複数のバスマスタとを含むデュアルバスシ
ステムに於いて、 前記共通メモリのメモリ空間を複数のメモリ領域に分割
すると共に、 前記各メモリ領域と前記2つの共有バスとの接続を制御
するゲート回路と、 該ゲート回路を制御するメモリアクセス制御回路と、 前記各メモリ領域が使用中か否かを示す情報が格納され
るメモリ使用許可テーブルとを含み、前記メモリアクセ
ス制御回路は前記共有バスを介して前記共通メモリがア
クセスされた場合、前記メモリ使用許可テーブルを参照
し、アクセスされたアドレスを含むメモリ領域が未使用
中であると判断することにより、前記ゲート回路を制御
してアクセスされたアドレスを含むメモリ領域とアクセ
スの行なわれた共有バスとを接続し、更にアクセス元の
バスマスタにメモリ使用許可を与えると共に前記メモリ
使用許可テーブルのアクセスの行なわれたアドレスを含
むメモリ領域対応の内容を使用中に変更し、アクセスが
終了することにより前記ゲート回路を制御してアクセス
の終了したアドレスを含むメモリ領域とアクセスの行な
われた共有バスとを切り離し、更に前記メモリ使用許可
テーブルのアクセスの終了したアドレスを含むメモリ領
域対応の内容を未使用中とすることを特徴とするデュア
ルバスシステムに於けるメモリアクセス制御方式。[Scope of Claims] Two shared buses; a common memory connected to each of the two shared buses; and a plurality of bus masters that can access the common memory via each of the two shared buses. In a dual bus system, the gate circuit divides the memory space of the common memory into a plurality of memory areas and controls the connection between each memory area and the two shared buses, and the memory controls the gate circuit. The memory access control circuit includes an access control circuit and a memory use permission table that stores information indicating whether each of the memory areas is in use, and the memory access control circuit controls when the common memory is accessed via the shared bus. , refers to the memory use permission table and determines that the memory area including the accessed address is unused, thereby controlling the gate circuit to determine the memory area including the accessed address and the access. Furthermore, the access source bus master is granted permission to use the memory, and the contents of the memory area corresponding to the accessed address in the memory use permission table are changed to in use, and the access is completed. By controlling the gate circuit, the memory area including the accessed address is separated from the accessed shared bus, and the contents of the memory use permission table corresponding to the memory area including the accessed address are read. A memory access control method in a dual bus system that is characterized by being unused.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24700689A JPH03109660A (en) | 1989-09-22 | 1989-09-22 | Memory access control system for dual bus system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24700689A JPH03109660A (en) | 1989-09-22 | 1989-09-22 | Memory access control system for dual bus system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03109660A true JPH03109660A (en) | 1991-05-09 |
Family
ID=17156984
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24700689A Pending JPH03109660A (en) | 1989-09-22 | 1989-09-22 | Memory access control system for dual bus system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03109660A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04354048A (en) * | 1991-05-31 | 1992-12-08 | Mitsubishi Electric Corp | Backup system for arithmetic unit |
-
1989
- 1989-09-22 JP JP24700689A patent/JPH03109660A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04354048A (en) * | 1991-05-31 | 1992-12-08 | Mitsubishi Electric Corp | Backup system for arithmetic unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5837585B2 (en) | Keisan Kisouchi | |
US5408612A (en) | Microprocessor system for selectively accessing a processor internal register when the processor has control of the bus and partial address identifying the register | |
JPH03109660A (en) | Memory access control system for dual bus system | |
JPS61114362A (en) | Access control system for share memory | |
KR100362061B1 (en) | Device for controlling local bus | |
JPS61210469A (en) | Common memory control system | |
JPS6029139B2 (en) | Connection method between processing units | |
JPH0348305A (en) | Robot control device | |
JP3019323B2 (en) | Direct access to image memory | |
JPS635456A (en) | Microprocessor system | |
JPS63236153A (en) | Storage device | |
JPS5921062B2 (en) | Memory contention control method | |
JPS61234447A (en) | Bus acuisition controller | |
JPH03240859A (en) | Multiprocessor shared resource control system | |
JPS63314664A (en) | Memory system | |
KR19990058860A (en) | Method of Time Division Defiram Communication between 1: N Processors Using Interrupts | |
JPH04236651A (en) | Bus control system | |
JPH04654A (en) | Bus control system | |
JPS62272352A (en) | Memory control circuit | |
JPH05324541A (en) | Bus interface device | |
JPS63191398A (en) | Information processor | |
JPS60112162A (en) | Control system of dual port memory | |
JPH0351017B2 (en) | ||
JPS63148365A (en) | Managing device for shared resources of multiplex computer | |
JPS62174844A (en) | Switching system for memory priority |