JPH0287258A - Memory access system - Google Patents

Memory access system

Info

Publication number
JPH0287258A
JPH0287258A JP23823888A JP23823888A JPH0287258A JP H0287258 A JPH0287258 A JP H0287258A JP 23823888 A JP23823888 A JP 23823888A JP 23823888 A JP23823888 A JP 23823888A JP H0287258 A JPH0287258 A JP H0287258A
Authority
JP
Japan
Prior art keywords
memory
memories
access
data
memory 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.)
Pending
Application number
JP23823888A
Other languages
Japanese (ja)
Inventor
Tatsuro Hashiguchi
橋口 達郎
Atsushi Takahashi
淳 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP23823888A priority Critical patent/JPH0287258A/en
Publication of JPH0287258A publication Critical patent/JPH0287258A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simultaneously write same data to plural memories by providing an access destination instructing means in each memory of a CPU, which respectively has the memories to have a shared space, and executing memory access according to the contents of this instructing means. CONSTITUTION:A competition control part 3 refers flags 1A and 2A, and executes the decision and control of a memory access competition condition with a CPUB. When the access right of a CPUA to memories (a) and (b) is obtained, the instruction of the memory access is generated to a memory access part 4A. The memory access part 4A makes both a data effective signal 10A and a memory enable signal 11A effective and the writing data and address of a register 5A are respectively sent to the memories (a) and (b). Since both AND gates 8A and 9A output the memory enable signal at such a time, both the memories (a) and (b) are in an enable condition. Thus, the same data can be written from the CPUA to the same addresses of the memories (a) and (b).

Description

【発明の詳細な説明】 皮丘上1 本発明はメモリアクセス方式に関し、特に複数の情報処
理装置と、これ等情報処理装置の各々から夫々がアクセ
ス可1mとされた複数のメモリとを含む情報処理システ
ムにおけるメモリアクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory access method, and in particular to a method for accessing information including a plurality of information processing devices and a plurality of memories each of which can be accessed 1 m from each of these information processing devices. Related to memory access methods in processing systems.

延産孜止 従来、この種のメモリアクセス方式では、同時書込みモ
ードによりメモリアクセス制御を切換える方式がある0
通常のメモリアクセスでは、ある情報処理装置は1つの
メモリに対して書込みを実行するが、動作モードを同時
書込みモードとすることにより、複数のメモリに対して
同時に同一データを書込むことが出来るものである。情
報処理装置が同時書込みモードに設定されると、複数個
あるメモリ全てのアクセス権を取りにいき、アクセス権
の獲得に成功したことを認識して、全メモリへの同一デ
ータ書込みを実行する。
Previously, in this type of memory access method, there was a method to switch memory access control based on simultaneous write mode.
In normal memory access, an information processing device writes to one memory, but by setting the operation mode to simultaneous write mode, it is possible to write the same data to multiple memories at the same time. It is. When the information processing device is set to the simultaneous write mode, it attempts to obtain access rights to all of the plurality of memories, recognizes that the access rights have been successfully obtained, and executes writing of the same data to all memories.

この同時出店みモードでは、書込みを実行する情報処理
装置は配下のメモリが1つにしか見えない、第3図は情
報処理装置が2台の例であり、各々か1台ずづのメモリ
を配下に持つ場合である。
In this simultaneous store opening mode, the information processing device that executes the write only sees one memory under it. Figure 3 shows an example of two information processing devices, each with one memory. This is the case when you have it under your control.

情報処理装置CPUAが同時書込みモードに設定され、
メモリaとCPUB配下のメモリbに対して同一データ
を書込む場合、CPUAからはメモリbの存在が認識さ
れず、メモリaとして同時に同一データが書込まれるよ
うにハードウェア制御される。
The information processing device CPUA is set to simultaneous write mode,
When writing the same data to memory a and memory b under the CPUB, the existence of memory b is not recognized by the CPUA, and hardware control is performed so that the same data is written to memory a at the same time.

一般にメモリチップの故障率は制御回路に比べて高く、
メモリに格納されているデータのうち、そのデータが破
壊されると情報処理装置にとって致命的であり、システ
ムタウンをもまねくような、重要なデータの安全性の確
保は従来から問題にされてきた。
In general, the failure rate of memory chips is higher than that of control circuits.
Ensuring the safety of important data has long been an issue, as any destruction of data stored in memory would be fatal to information processing equipment, leading to system breakdowns. .

上述の従来技術はこのデータの安全性確保を実現した例
であり、同一データを、複数メモリに保持することによ
り、あるメモリのデータが破壊されても、正常なメモリ
に格納されたデータで処理を実行しようというものであ
る。但し、この種のメモリアクセス方式では、システム
が複数のメモリから構成されているにもかかわらず、メ
モリ1台分の空間しか使えないという欠点があり、また
ソフトウェアが認識して複数のメモリに対してデータを
書分けることができず、重要データを格納する共有メモ
リ領域以外の領域を各情報処理装置ごとに個別で使用す
ることが出来ないという欠点がある。
The above-mentioned conventional technology is an example of ensuring the safety of this data; by storing the same data in multiple memories, even if data in one memory is destroyed, it can be processed with data stored in the normal memory. The idea is to carry out the following. However, this type of memory access method has the disadvantage that even though the system is composed of multiple memories, it can only use the space for one memory, and the software recognizes and accesses multiple memories. However, there are disadvantages in that data cannot be written separately, and areas other than the shared memory area for storing important data cannot be used individually for each information processing device.

1班ム旦」 本発明の目的は、重要なデータは複数メモリに同一に書
込み、それ以外のデータは配下のメモリに個別に書込む
ことが可能なメモリアクセス31式を提供することであ
る。
An object of the present invention is to provide a memory access system 31 that allows important data to be written to multiple memories simultaneously and other data to be written individually to subordinate memories.

九哩五旦羞 本発明によれば、複数の=+i報処理装置と、これ等情
報処理装置の各々から夫々がアクセス可能とされた複数
のメモリとを含む情報処理システムにおけるメモリアク
セス方式であって、前記情報処理装置の各々において、
前記メモリ対応に設けられアクセスをなすメモリを表示
するアクセス先メモリ指示手段と、自装置のみならず他
装置の前記アクセス先メモリ指示手段により示されたア
クセス対象のメモリを判断して当該メモリに対するアク
セス権の調停制御をなす競合制御手段とを設け、この競
合制御手段によりアクセス権が獲得されたメモリに対し
てアクセスをなすようにしたことを特徴とするメモリア
クセス方式が得られる。
According to the present invention, there is provided a memory access method in an information processing system including a plurality of =+i information processing devices and a plurality of memories each of which can be accessed from each of these information processing devices. In each of the information processing devices,
Access target memory indicating means provided corresponding to the memory and displaying the memory to be accessed; and determining the memory to be accessed indicated by the access target memory indicating means of not only the own device but also other devices and accessing the memory. There is provided a memory access method characterized in that a contention control means for arbitrating rights is provided, and a memory for which access rights have been acquired is accessed by the contention control means.

実施例 以下に本発明の実施例を図面を参j!41 しつつ説明
する。
Examples Please refer to the drawings for examples of the present invention below! 41 I will explain.

第1図は本発明の実施例のシステムを示す回路ブロック
図であり、2個のCPUA、Bと2個のメモリa、bと
を有し、両CPUから両メモリへ自在にアクセスが可能
であるものとする0両CPUA、I’3は共に同−構成
であり、よってCPUAについてのみその構成を示す。
FIG. 1 is a circuit block diagram showing a system according to an embodiment of the present invention, which has two CPUs A and B and two memories a and b, and both CPUs can freely access both memories. Both CPUA 0 and I'3 have the same configuration, so only the configuration of CPUA is shown.

フラグIA、2Aはメモリa、bに夫々対応して設けら
れており、例えばメモリaに対して書込みアクセスをな
す場合には、対応するフラグIAに“1″が設定され、
両メモリa、bに対して書込みアクセスをなす場合には
、両フラグIA、2A共に“1”が設定される。競合制
御(CNFL) 3AはフラグIA、2Aの内容を参照
し、まな他の=+W報処理装置13から得られる書込み
アクセス対象のメモリを知り、メモリアクセス競合を調
停制御する。
Flags IA and 2A are provided corresponding to memories a and b, respectively. For example, when writing access is made to memory a, the corresponding flag IA is set to "1",
When write access is made to both memories a and b, both flags IA and 2A are set to "1". Conflict control (CNFL) 3A refers to the contents of flags IA and 2A, learns the memory to be accessed for write access obtained from Mana et al.'s =+W information processing device 13, and arbitrates and controls memory access conflicts.

メモリアクセス制御部(H[HCNT ) 4 Aは競
合制御部3Aにより調停されてアクセス権か1−;られ
ると2つの制御信号10A、11Aを発生ずる。
The memory access control unit (H[HCNT) 4A generates two control signals 10A and 11A when the access right is determined by arbitration by the contention control unit 3A.

制御信号10Aはアンドゲート群(レジスタ5のデータ
及びアドレスピッl−数分のアントゲ−1・からなる)
6A、7Aの1人力となり、制御信号11Aはアントゲ
−)−8A、9Aの1人力となる。
The control signal 10A is a group of AND gates (consisting of the data of register 5 and the number of address pins)
6A and 7A are made by one person, and the control signal 11A is made by one person from 8A and 9A.

データレジスタ5Aは書込みデータ及びアドレスを格納
するものであり、ゲート群6A、7Aの1入力となって
いる。このゲー)−群6A、7Aの他人力にはフラグI
A、2Aが夫々印加されており、当該フラグLA、2A
はまたゲート群8A。
The data register 5A stores write data and addresses, and serves as one input to the gate groups 6A and 7A. This game)-Flag I for the power of others in groups 6A and 7A
A and 2A are applied, respectively, and the corresponding flags LA and 2A
Also gate group 8A.

9Aの各他人力となっている。Each member of 9A is a source of strength.

ゲート群6AはフラグIAが°″1”でかつ制御信号1
0(データ有効信号)が有効を示すときにオンとなり、
レジスタ5Aの書込みデータ及びアドレスをスイッチ1
2Aを介してメモリaへ供給する。ゲート群7Aはフラ
グ2Aが°゛1′でかつデータ有効信号10が有効を示
すときにオンとなり、レジスタ5Aの書込みデータ及び
アドレスをスナツチ12[1を介してメモリbへ供給す
る。
In the gate group 6A, the flag IA is ``1'' and the control signal is 1.
Turns on when 0 (data valid signal) indicates valid,
Write data and address of register 5A to switch 1
2A to memory a. Gate group 7A is turned on when flag 2A is 01' and data valid signal 10 is valid, and supplies the write data and address of register 5A to memory b via snatch 12[1.

ゲー1−8 Aは制御信号11A(メモリイネーブル信
号)が有効でかつフラグIAが°″1”のとき、オアゲ
ート13を介してメモリaをイネーブル状態とする。ゲ
ート9Aはメモリイネーブル信号が有効でかつフラグ2
Aが°゛1′°のとき、オアゲート13[3を介してメ
モリbをイネーブル状態とする。
The gate 1-8A enables the memory a via the OR gate 13 when the control signal 11A (memory enable signal) is valid and the flag IA is "1". Gate 9A has a valid memory enable signal and flag 2.
When A is 1', memory b is enabled via OR gate 13[3.

かかる+1.1成において、CP Uが両メモリa、b
に同一データを同時に書込む場合について説明する。C
PUAを制御するソフトウェアは、先ず書込みデータ及
びアドレスをレジスタ5Aに設定し、同時にフラグLA
、2Aを共に°“1パとする。
In this +1.1 configuration, the CPU uses both memories a and b.
The case where the same data is written simultaneously to both will be explained. C
The software that controls the PUA first sets the write data and address in register 5A, and at the same time sets the flag LA.
, 2A are both considered to be 1 Pa.

競合制御部3Aは両フラグIA、2Aを参照して、CP
tJBとのメモリアクセス競合状態を判定制御し、当該
CPUAのメモリa、bへのアクセス権を獲得すると、
メモリアクセス部4 Aに対してメモリアクセスの指示
を発生ずる。
The contention control unit 3A refers to both flags IA and 2A, and determines the CP
After determining and controlling the memory access conflict state with tJB and acquiring access rights to memories a and b of the CPUA,
Memory access unit 4 Generates a memory access instruction to A.

メモリアクセス部4Aはこれに応答してデータ有効信号
10Aとメモリイネーブル18号11Aを共に有効とす
る。よって、アンドゲート群6A。
In response, the memory access unit 4A makes both the data valid signal 10A and the memory enable signal 18 11A valid. Therefore, AND gate group 6A.

7Aが共にオンとなって、レジスタ5Aの書込みデータ
及びアドレスをスイッチ!2A、12Bを介して、両メ
モリa、bへ夫々送出する。
Both 7A turn on and switch the write data and address of register 5A! It is sent to both memories a and b via 2A and 12B, respectively.

このとき、アンドゲート8A、9A#J共にメモリイネ
ーブル信号を出力しているので、両メモリa、b共にイ
ネーブル状態となっている。よって両メモリa、bにC
P U Aから同一データを同一アドレスに書込むこと
が可能となるのである。
At this time, since AND gates 8A and 9A#J are both outputting memory enable signals, both memories a and b are in an enabled state. Therefore, C in both memories a and b
This makes it possible to write the same data from PUA to the same address.

いずれか一方のメモリに対してデータを占込む場合には
、フラグIA、2Aの対応する方を“1”とすることに
より可能となる。また、CP U Bからも全く同一の
アクセス制御ができることは明白である。
If data is to be allocated to either one of the memories, this is possible by setting the corresponding one of the flags IA and 2A to "1". Furthermore, it is clear that the same access control can be performed from CPU B as well.

第2図は第1IfAの実施例において、メモリabのア
ドレス空間を示したものであり、共にCPU個別の空間
と共有空間とを有するものと考えることができる。
FIG. 2 shows the address space of memory ab in the first IfA embodiment, and both can be considered to have a CPU-individual space and a shared space.

発明の効果 叙上の如く、本発明によれば、互いに共有空間を有する
メモリを各々有するCPUに、各メモリ毎にアクセス先
指示手段を設け、このアクセス先指示手段の内容に従っ
て、メモリアクセスを行うことにより、重要データの安
全性確保を目的として複数メモリに同一データの同時書
込みが可能となり、また他のデータは個別のメモリに書
込みが可能となって、メモリの有効利用か図れるという
効果がある。
Effects of the Invention As described above, according to the present invention, an access destination instruction means is provided for each memory in the CPUs each having memories having mutually shared space, and memory access is performed according to the contents of the access destination instruction means. This allows the same data to be written to multiple memories at the same time to ensure the safety of important data, while other data can be written to individual memories, which has the effect of making effective use of memory. .

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

第1図は本発明の実施例のシステムブロック図、第2図
は本発明の実施例におりるメモリのアドレス空間をイメ
ージした図、第3図は従来のメモリアクセス方式を説明
する図である。 主要部分の符号の説明 A、B・・・・・・CPLI a、b・・・・・・メモリ 1 人 1B、2A 3A。 4A。 A 2B・・・・・・フラグ 3B・・・・・・競合制御部 4B・・・・・・メモリアクセス部 5B・・・・・・データレジスタ
FIG. 1 is a system block diagram of an embodiment of the present invention, FIG. 2 is a diagram illustrating a memory address space in an embodiment of the present invention, and FIG. 3 is a diagram explaining a conventional memory access method. . Description of symbols of main parts A, B...CPLI a, b...Memory 1 person 1B, 2A 3A. 4A. A 2B...Flag 3B...Conflict control section 4B...Memory access section 5B...Data register

Claims (1)

【特許請求の範囲】[Claims] (1)複数の情報処理装置と、これ等情報処理装置の各
々から夫々がアクセス可能とされた複数のメモリとを含
む情報処理システムにおけるメモリアクセス方式であっ
て、前記情報処理装置の各々において、前記メモリ対応
に設けられアクセスをなすメモリを表示するアクセス先
メモリ指示手段と、自装置のみならず他装置の前記アク
セス先メモリ指示手段により示されたアクセス対象のメ
モリを判断して当該メモリに対するアクセス権の調停制
御をなす競合制御手段とを設け、この競合制御手段によ
りアクセス権が獲得されたメモリに対してアクセスをな
すようにしたことを特徴とするメモリアクセス方式。
(1) A memory access method in an information processing system including a plurality of information processing devices and a plurality of memories each of which is accessible from each of the information processing devices, wherein each of the information processing devices includes: Access target memory indicating means provided corresponding to the memory and displaying the memory to be accessed; and determining the memory to be accessed indicated by the access target memory indicating means of not only the own device but also other devices and accessing the memory. 1. A memory access method, comprising: a contention control means for arbitrating rights, and access is made to a memory for which access rights have been acquired by the contention control means.
JP23823888A 1988-09-22 1988-09-22 Memory access system Pending JPH0287258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23823888A JPH0287258A (en) 1988-09-22 1988-09-22 Memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23823888A JPH0287258A (en) 1988-09-22 1988-09-22 Memory access system

Publications (1)

Publication Number Publication Date
JPH0287258A true JPH0287258A (en) 1990-03-28

Family

ID=17027199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23823888A Pending JPH0287258A (en) 1988-09-22 1988-09-22 Memory access system

Country Status (1)

Country Link
JP (1) JPH0287258A (en)

Similar Documents

Publication Publication Date Title
EP0972251B1 (en) A method and apparatus for providing concurrent acces by a plurality of agents to a shared memory
US6643746B1 (en) Optimal multi-channel memory controller system
US6308244B1 (en) Information processing apparatus with improved multiple memory access and control
KR100353448B1 (en) Apparatus and method for controlling shared memory
JPS6242306B2 (en)
JPH0287258A (en) Memory access system
JP3767921B2 (en) MEMORY CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAMMABLE CONTROLLER
US5212799A (en) Method and apparatus for storing a data block in multiple memory banks within a computer
JPS645341B2 (en)
JPH0358163A (en) Loosely coupled multiprocessor system
JPH10254767A (en) Memory controller and memory system by the controller
JPS62272352A (en) Memory control circuit
JPH11203253A (en) Exclusive access control method for shared resource
KR960007835B1 (en) Common memory access device for multi-processor
JPS6119059B2 (en)
JPH04298B2 (en)
JPH01230163A (en) Information processor
JPS63217444A (en) Multiple port memory
JPS61234447A (en) Bus acuisition controller
JPS63236153A (en) Storage device
JPS62186344A (en) Address mapped register
JPH01154272A (en) Multiprocessor device
JPS5921062B2 (en) Memory contention control method
JPH04116750A (en) Dma memory transfer device
JPS61237158A (en) Shared memory device