JPH02156363A - State change detecting method for cache memory - Google Patents

State change detecting method for cache memory

Info

Publication number
JPH02156363A
JPH02156363A JP31040188A JP31040188A JPH02156363A JP H02156363 A JPH02156363 A JP H02156363A JP 31040188 A JP31040188 A JP 31040188A JP 31040188 A JP31040188 A JP 31040188A JP H02156363 A JPH02156363 A JP H02156363A
Authority
JP
Japan
Prior art keywords
data
application program
state change
state
change
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
JP31040188A
Other languages
Japanese (ja)
Inventor
Norio Hirai
平井 規雄
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP31040188A priority Critical patent/JPH02156363A/en
Publication of JPH02156363A publication Critical patent/JPH02156363A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To supervise a continuous state change by supervising the contents of a data are area necessary for the processing of a cache memory itself, and successively storing the changed data into a prescribed buffer area possessed by the memory itself whenever the contents change. CONSTITUTION:In the internal program of an information processor DT, a table concerning the supervisory objective address of a cache memory CM designated by an application program is prepared, and the state change is supervised. When the data are exchanged at the section of the other DT, and the state change is generated in the address concerned, a result is notified to the application program. The changed data are successively stored into a buffer BF at the time when the state change has been generated. When the notification request of the change data is received from the application program again, whether the address of the request is the same as the last one is checked, and when they corresponds, the state changed data of the address held in the state buffer BF is notified to the application program, and the newest data can be notified.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明はそれぞれ共通メモリを備えた複数の情報処理装
置からなるシステムであって、前記の各共通メモリは該
メモリに共通の伝送バスを介して結合され、かつこの伝
送バスの専有権を与えられた前記情報処理装置によって
書き換えら得るものであるようなデータ伝送システムに
おける、前記共通メモリの状態変化を検出する方法に関
する。
The present invention is a system comprising a plurality of information processing devices each having a common memory, wherein each of the common memories is coupled to the memory via a common transmission bus, and is given exclusive rights to the transmission bus. The present invention relates to a method for detecting a change in the state of the common memory in a data transmission system that can be rewritten by the information processing device.

【従来の技術】[Conventional technology]

第1図は本発明の一実施例としてのシステム構成図であ
るが、以下この図を流用して従来の技術を説明する。な
お従来システムにおいては同図の状変バッファBP (
BFI〜BFn)は設けられていない。 この例はいわゆるトークンバス方式のデータ転置内のC
PU 、 M(Ml〜Mn)は同じ(固有メモリで、こ
の固有メモリ門はそれぞれ対応するCPLIに専有され
ている。CM (CMI〜CMn)は同じく共通メモリ
、IB(IBI〜IBn)は同じく内部バスである。C
Bは各共通メモリCMI〜CMnを結合する共通の伝送
バス、2は伝送CPUである。B(Bl〜Bn)は各共
通メモリCM内に設けられたブロック(領域)でこの例
ではブロックB1はCPUIIによって書換え可能な領
域であり、同様にしてブロックB2.・・・Bnはそれ
ぞれCPU12、・・・1nによって書換え可能な領域
であるものとする。 ただし各CPUIは必要に応じ対応する共通メモリCM
の内容をどこでも読出すことができるが、一方、共通メ
モリ側への書込み(または書換え)については、当該の
CPUIがトークン(つまり伝送バスCBを専有する権
利で、回線専有権ともいう)を受取ったときにのみ、対
応する共通メモリCMの、対応するブロックB内を書換
えることができる。このように共通メモリCMのいずれ
かに書込み(または書換え)が行われると、伝送CPU
2はその書込み(書換え)データを他の共通メモリ鉗の
全てに送って各共通メモリCMI〜CMnにおける各ブ
ロックB1=Bnの内容が同一となるようにする。この
ようにして各情報処理装置DT間にデータ伝送が行われ
る。 第3図はこの従来システムの要部動作を説明するための
タイムチャートである。同図の実線の折れ線カーブは成
る情報処理装置DTにおけるアプリケーションプログラ
ムの流れを示し、同図(1)はこのアプリケーションプ
ログラムの共通メモリ監視以外の処理のタイミングを、
(2)は当該のCPUIが当該の共通メモリCMの状態
変化(データ内容の変化)を監視するタイミングを、(
3)は他の情報処理装置DTが(伝送CPU2を介して
)当該の共通メモリ囲の内容を書換えるタイミングをそ
れぞれ示す。 この種のデータ伝送方式としては、従来、第3図の期間
TI、T2のように、アプリケーションプログラムから
の要求があった時だけ、当該のCPUIによって当該の
共通メモリC?Iの状態変化監視が行われ、−度状態変
化があると、再度アプリケーションプログラムからの要
求があるまで、状態変化監視は行わないというものであ
った。 即ち第3図において当該のCPUIはアプリケーション
プログラムの要求により、同図(2)の期間T1のよう
に当該の共通メモリ囲の状態変化監視を行う。 そしてこの状態で他の情報処理装置DTによって当該の
共通メモリCMが書換えられ状態変化aが生ずると、当
該のCPUIはこの変化データを用いて、同図(1)の
期間T2に処理を行う。同様に次のプログラム要求によ
って同図(2)の期間T3の間、共通メモリの監視が行
われ、状態変化Cの変化データが捉えられて同図(1)
の期間T4に処理が行われる。
FIG. 1 is a system configuration diagram as an embodiment of the present invention, and the conventional technology will be explained below using this diagram. In addition, in the conventional system, the state change buffer BP (
BFI to BFn) are not provided. This example shows C in the data transposition of the so-called token bus method.
PU, M (Ml to Mn) are the same (specific memory, and this specific memory is exclusive to each corresponding CPLI. CM (CMI to CMn) is also common memory, and IB (IBI to IBn) is also internal memory. It is a bus.C
B is a common transmission bus that connects the common memories CMI to CMn, and 2 is a transmission CPU. B (Bl to Bn) are blocks (areas) provided in each common memory CM, and in this example, block B1 is an area that can be rewritten by the CPU II, and blocks B2 . . . Bn are areas that can be rewritten by the CPUs 12, . . . 1n, respectively. However, each CPUI uses the corresponding common memory CM as necessary.
The contents can be read anywhere, but when writing (or rewriting) to the common memory side, the CPU in question receives a token (that is, the right to exclusively use the transmission bus CB, also called line exclusive right). Only then can the corresponding block B of the corresponding common memory CM be rewritten. When writing (or rewriting) to any of the common memories CM is performed in this way, the transmission CPU
2 sends the write (rewrite) data to all other common memories so that the contents of each block B1=Bn in each common memory CMI to CMn become the same. In this way, data transmission is performed between each information processing device DT. FIG. 3 is a time chart for explaining the operation of the main parts of this conventional system. The solid line curve in the figure shows the flow of the application program in the information processing device DT, and (1) in the figure shows the timing of processing other than common memory monitoring of the application program.
(2) indicates the timing at which the CPUI monitors the state change (change in data content) of the common memory CM.
3) indicates the timing at which another information processing device DT rewrites the contents of the corresponding common memory (via the transmission CPU 2). Conventionally, in this type of data transmission method, as in periods TI and T2 in FIG. 3, only when there is a request from an application program, the corresponding CPU sends the corresponding common memory C? I was monitored for changes in the state, and if there was a - degree change in state, the state change monitoring was not performed until there was a request from the application program again. That is, in FIG. 3, the CPU in question monitors changes in the state of the common memory as in period T1 in FIG. 3 (2) at the request of the application program. Then, in this state, when the common memory CM is rewritten by another information processing device DT and a state change a occurs, the CPU in question uses this change data to perform processing in period T2 in FIG. 1 (1). Similarly, the common memory is monitored during period T3 in (2) in the same figure according to the next program request, and the change data of the state change C is captured and shown in (1) in the same figure.
The process is performed during period T4.

【発明が解決しようとする課題】[Problem to be solved by the invention]

しかしながら前記のような方式では共通メモリCMの特
定のアドレスを継続的に監視する場合、アプリケーショ
ンプログラムより当該のCPUIに監視要求を出してか
ら、状態変化が成立して、その結果をアプリケーション
プログラムへ通知したのち、再度アプリケーションプロ
グラムからの要求を受は付けるまでの間、例えば第3図
の期間T1とT3との間に間隔があり、この間、つまり
第3図の期間T2に生じたbのような状態変化をとり込
めないという問題があった。 そこでこの発明は、前記問題を解決するため、情報処理
装置において、共通メモリにおけるアプリケーションプ
ログラムから受付けた状態変化対象アドレスのデータ変
化の内容を順次バッファに蓄積し記憶させておくことに
より、アプリケーションプログラムへの状態変化通知後
も、当該の情報処理装置内部で引きつづいて共通メモリ
内の状態変化を監視し2、アプリケーションプログラム
の負担を軽くすることを課題とする。
However, in the above method, when continuously monitoring a specific address of the common memory CM, the application program issues a monitoring request to the relevant CPUI, and then, when a state change occurs, the result is notified to the application program. After that, there is a gap between the periods T1 and T3 in FIG. 3 until a request from the application program is accepted again, and during this period, in other words, something like b that occurred during period T2 in FIG. There was a problem that state changes could not be taken into account. In order to solve the above-mentioned problem, the present invention allows an information processing device to sequentially accumulate and store in a buffer the contents of data changes of status change target addresses accepted from application programs in a common memory, so that data changes can be transferred to application programs. An object of the present invention is to continue to monitor state changes in a common memory within the information processing device 2 even after notification of a state change, thereby reducing the burden on an application program.

【課題を解決するための手段】[Means to solve the problem]

前記の課題を解決するために本発明の方法は、rそれぞ
れ共通メモリ(CMなど)を備えた複数の情報処理装置
(DTなど)からなるシステムであって、前記の各共通
メモリは該メモリに共通の伝送バス(CBなど)を介し
て結合され、かつこの伝送バスの専有権を与えられた前
記情報処理装置によって書換えられ得るものであるよう
なシステムにおいて、 前記の各情報処理装置は常時自身に対応する前記共通メ
モリにおける自らの処理に必要なデータ領域の内容を監
視し、この内容の変化のつど、順次この変化データを自
身が専有する所定のバッファ(BPなどの)領域に格納
すると共に、自らの処理に必要となるつど、少なくとも
このバッファ領域における該当データを参照してその処
理を行うように1するものとする。
In order to solve the above problems, the method of the present invention provides a system consisting of a plurality of information processing devices (DT, etc.), each of which is provided with a common memory (CM, etc.), and each of the common memories is connected to the memory. In a system that is connected via a common transmission bus (such as CB) and can be rewritten by the information processing devices that are given exclusive rights to this transmission bus, each of the information processing devices always uses its own information. monitors the contents of the data area necessary for its own processing in the common memory corresponding to the data area, and each time the contents change, it sequentially stores the changed data in a predetermined buffer (such as BP) area that it owns, and , each time it becomes necessary for its own processing, at least refers to the corresponding data in this buffer area and performs the processing.

【作 用】[For use]

アプリケーションプログラムから受付けた共通メモリ内
の状態変化監視対象アドレスの変化データを状態変化発
生後も引き続いてバッファに蓄積記憶して監視を続け、
再度アプリケーションプログラムより呼出された場合、
それまでに発生した状態変化の情報をアプリケーション
プログラムに通知する。
The change data of the state change monitoring target address in the common memory received from the application program is continuously stored in the buffer and monitored even after the state change occurs.
When called again from the application program,
Information on state changes that have occurred up to that point is notified to the application program.

【実施例】【Example】

次に第1図および第2図に基づいた本発明の詳細な説明
する。第1図においては各情報処理装置DTI〜DTn
の固有メモリM1〜Mn内に前述の状変バッファBF 
(BPI〜BFn)が設けられ、このバッファBFにそ
れぞれ対応する共通メモリC旧〜CMnの(当該のアプ
リケーションプログラムによって指定された)所定領域
の状態変化(データ変化)が順次格納される。 第2図は第1図の要部動作を示すタイムチャートで第3
図に対応するものである。第2図において(1)、 (
2)の実線の折線カーブはアプリケーションプログラム
の処理を示し、同図(2)の破線部は内部プログラム(
つまりオペレーティングシステム)による処理を示す。 本発明では同図(2)のように共通メモリの監視処理が
アプリケーションプログラムによって行われるほか、ア
プリケーションプログラムの他の処理と併行して内部プ
ログラムによっても行われる。即ち第2図において■で
アプリケーションプログラムから、当該のCPUIへ当
該の共通メモリ鉗に対する状態変化監視が依願される。 当該の情報処理装置DTの内部プログラム(オペレーテ
ィングシステム)では、アプリケーションプログラムに
より指定された共通メモリCMの監視対象アドレスにつ
いてのテーブルが作られ、このテーブルに基づいて、該
アドレスに対する状態変化監視が行われる。■で他の情
報処理装置DTとのデータ交換で、当該のアドレスに状
態変化が発生すると、その結果がアプリケーションプロ
グラムへ通知される。 その後も当該の情報処理装置DTの内部プログラム(オ
ペレーティングシステム)では、先に作られた前記監視
対象アドレスのテーブルに基づいて、状態変化の監視が
行われ、状態変化が発生した■の時点で順次その変化デ
ータは、当該の状態バッファBFに格納される。■で再
度アプリケーションプログラムから変化データの通知要
求を受けると、その要求についてのアドレスが、前回の
指定アドレスと同一であるかチエツクを行い、同一であ
れば、状態バッファBPに保存しておいた当該アドレス
の状態変化データをアプリケーションプログラムへ通知
する。 なお状態変化データを格納するバッファをリングバッフ
ァ(即ち経時的に順次状態変化データが格納されるバッ
ファ領域のアドレスが環状連鎖状に連なっているような
バッファ)としてお(ことにより、長い時間アプリケー
ションプログラムからの再依願が無くても、最も新しい
データを通知することができる。 【発明の効果] この発明によれば共通メモリの状態変化の内容を情報処
理装置内部のバッファに順次蓄積記憶するようにしたの
で、アプリケーションプログラムからの状態変化データ
要求が出されていなくても、状態変化を監視することが
でき、同一条件で継続的な状態変化監視を行うことがで
きる。
Next, the present invention will be explained in detail based on FIGS. 1 and 2. In FIG. 1, each information processing device DTI to DTn
The above-mentioned state change buffer BF is stored in the unique memories M1 to Mn of
(BPI to BFn) are provided, and state changes (data changes) in predetermined areas (designated by the relevant application program) of the common memories Cold to CMn (designated by the relevant application program) are sequentially stored in the buffers BF. Figure 2 is a time chart showing the main operations of Figure 1.
This corresponds to the figure. In Figure 2, (1), (
The solid broken line curve in 2) shows the processing of the application program, and the broken line part in 2) shows the internal program (
In other words, it shows the processing by the operating system). In the present invention, the common memory monitoring process is performed by an application program as shown in FIG. 2 (2), and also by an internal program in parallel with other processes of the application program. That is, in FIG. 2, the application program requests the CPU to monitor the status change of the common memory. In the internal program (operating system) of the information processing device DT, a table is created for the monitored address of the common memory CM specified by the application program, and state change monitoring for the address is performed based on this table. . When a state change occurs at the address in data exchange with another information processing device DT in (2), the result is notified to the application program. Thereafter, the internal program (operating system) of the information processing device DT continues to monitor status changes based on the previously created table of monitoring target addresses, and at the point in time when a status change occurs, The change data is stored in the relevant state buffer BF. When a notification request for change data is received from the application program again in step (3), it is checked whether the address for the request is the same as the previously specified address, and if it is, the corresponding address stored in the state buffer BP is checked. Notify the application program of address state change data. Note that the buffer that stores state change data is a ring buffer (i.e., a buffer in which the addresses of the buffer area where state change data is stored sequentially over time are connected in a circular chain). The latest data can be notified without a re-request from the information processing device. [Effects of the Invention] According to the present invention, the contents of the state change of the common memory are sequentially accumulated and stored in the buffer inside the information processing device. Therefore, even if no state change data request is issued from the application program, state changes can be monitored, and state change monitoring can be performed continuously under the same conditions.

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

第1図は本発明の一実施例としてのシステム構成図、第
2図は第1図の要部動作を説明するためのタイムチャー
ト、第3図は第2図に対応する従来のタイムチャートで
ある。
Fig. 1 is a system configuration diagram as an embodiment of the present invention, Fig. 2 is a time chart for explaining the operation of the main parts of Fig. 1, and Fig. 3 is a conventional time chart corresponding to Fig. 2. be.

Claims (1)

【特許請求の範囲】 1)それぞれ共通メモリを備えた複数の情報処理装置か
らなるシステムであって、前記の各共通メモリは該メモ
リに共通の伝送バスを介して結合され、かつこの伝送バ
スの専有権を与えられた前記情報処理装置によって書き
換えられ得るものであるようなシステムにおいて、 前記の各情報処理装置は常時自身に対応する前記共通メ
モリにおける自らの処理に必要なデータ領域の内容を監
視し、この内容の変化のつど、順次この変化データを自
身が専有する所定のバッファ領域に格納すると共に、自
らの処理に必要となるつど、少なくともこのバッファ領
域における該当データを参照してその処理を行うように
したことを特徴とする共通のメモリの状態変化検出方法
[Scope of Claims] 1) A system consisting of a plurality of information processing devices each having a common memory, wherein each of the common memories is coupled to the memory via a common transmission bus, and the transmission bus is In a system that can be rewritten by the information processing device to which exclusive rights have been given, each of the information processing devices constantly monitors the contents of the data area necessary for its own processing in the common memory corresponding to itself. Each time this content changes, it sequentially stores this changed data in a predetermined buffer area that it owns, and whenever it needs it for its own processing, it at least refers to the corresponding data in this buffer area and performs the processing. A common memory state change detection method characterized by:
JP31040188A 1988-12-08 1988-12-08 State change detecting method for cache memory Pending JPH02156363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31040188A JPH02156363A (en) 1988-12-08 1988-12-08 State change detecting method for cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31040188A JPH02156363A (en) 1988-12-08 1988-12-08 State change detecting method for cache memory

Publications (1)

Publication Number Publication Date
JPH02156363A true JPH02156363A (en) 1990-06-15

Family

ID=18004817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31040188A Pending JPH02156363A (en) 1988-12-08 1988-12-08 State change detecting method for cache memory

Country Status (1)

Country Link
JP (1) JPH02156363A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013168258A1 (en) * 2012-05-10 2013-11-14 三菱電機株式会社 Standby dual redundant system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013168258A1 (en) * 2012-05-10 2013-11-14 三菱電機株式会社 Standby dual redundant system
JPWO2013168258A1 (en) * 2012-05-10 2015-12-24 三菱電機株式会社 Standby redundant unit

Similar Documents

Publication Publication Date Title
JP3236287B2 (en) Multiprocessor system
JPH09223118A (en) Snoop cache memory control system
JPH01269142A (en) Buffer memory control system
JP3092566B2 (en) Memory control method using pipelined bus
JPH02156363A (en) State change detecting method for cache memory
JP3516326B2 (en) Memory controller having shared cache memory and computer system having the same
JPH03147157A (en) Information processor
US7089387B2 (en) Methods and apparatus for maintaining coherency in a multi-processor system
JPH04305746A (en) Cache memory control device
JP3145765B2 (en) Information processing device
JP2522412B2 (en) Communication method between programmable controller and input / output device
JPH10222423A (en) Cache memory control system
JP2024030316A (en) Processing device, processing program, and processing method
JPS6242247A (en) Cache memory control system
JP2625351B2 (en) Cache memory synchronization method
KR0152398B1 (en) Device for delayed snooping on a multi-cache system
JPH0415496B2 (en)
JPH06161891A (en) Computer system and cache control method for cache control means
JP2825589B2 (en) Bus control method
JP4856373B2 (en) Memory system, control method thereof, and method of maintaining data coherency
JPH01298453A (en) Cache error processing system
JPH0471051A (en) Data protection system
JPH02301837A (en) Multiple system processing system
JPS62237558A (en) Initialization control system for shared memory
JPH02234247A (en) Cache memory system