JPH0680498B2 - Shared memory access control method - Google Patents
Shared memory access control methodInfo
- Publication number
- JPH0680498B2 JPH0680498B2 JP57147648A JP14764882A JPH0680498B2 JP H0680498 B2 JPH0680498 B2 JP H0680498B2 JP 57147648 A JP57147648 A JP 57147648A JP 14764882 A JP14764882 A JP 14764882A JP H0680498 B2 JPH0680498 B2 JP H0680498B2
- Authority
- JP
- Japan
- Prior art keywords
- address
- processing device
- mode
- online
- shared memory
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Multi Processors (AREA)
- Memory System (AREA)
Description
【発明の詳細な説明】 本発明は、1台のグローバルメモリ(共有メモリ)を中
心に複数台の処理装置を結合するように構成されている
マルチシステムに係り、特に、複数の処理装置でプログ
ラムのデバツグを並行して行なう場合に好適な共有メモ
リの制御方法に関する。Description: TECHNICAL FIELD The present invention relates to a multi-system configured to couple a plurality of processing devices around a single global memory (shared memory), and in particular, to a program in the plurality of processing devices. The present invention relates to a shared memory control method suitable for parallel debugging.
従来のマルチシステムは、プラント制御に必要な情報を
集約したグローバルデータを中心として、複数の処理装
置で業務を分担し並列に処理するプラントデータベース
システム、業務を分割して処理するN台の処理装置に対
して、1台のバツクアツプ用処理装置を備えた高信頼化
システムの実現をねらつている。A conventional multi-system is a plant database system in which a plurality of processing devices share the work and process them in parallel, and N processing devices that divide the work, centering on global data that aggregates information necessary for plant control. On the other hand, the aim is to realize a highly reliable system equipped with a single backup device.
第1図に従来のマルチシステムのハードウエア構成例を
示す。1から3は処理装置、10は複数の処理装置間で共
有するメモリ(グローバルメモリ)、20は各処理装置間
の相互連絡用のバス機構、21から22は入出力装置(30,3
1)を、23から24はフアイル装置(40,41)を複数の処理
装置間で共有するための制御機構である。FIG. 1 shows a hardware configuration example of a conventional multi-system. 1 to 3 are processing devices, 10 is a memory (global memory) shared by a plurality of processing devices, 20 is a bus mechanism for mutual communication between the processing devices, and 21 to 22 are input / output devices (30,3).
1), 23 to 24 are control mechanisms for sharing the file device (40, 41) among a plurality of processing devices.
複数の処理装置から命令語でアクセスできるグローバル
メモリ10に、プラント制御情報およびシステム管理情報
を格納する。グローバルメモリ10の障害はシステムダウ
ンとなるため、二重化構成となつている。The plant control information and the system management information are stored in a global memory 10 that can be accessed from a plurality of processing devices by an instruction word. Since the failure of the global memory 10 causes the system to go down, it has a dual configuration.
各処理装置は、グローバルメモリ10と処理装置間相互連
絡用バス機構20を使つて、互いに同期をとりながらプラ
ント制御を遂行していく。Each processing device uses the global memory 10 and the bus mechanism 20 for interconnecting processing devices to perform plant control in synchronization with each other.
オンライン制御系の処理と並行に、待機予備系の処理装
置を使つて、プログラムをデバツクしようとする場合、
このプログラムはグローバルメモリ内のプラント制御情
報をアクセスし、その情報を破壊してしまい、その結果
としてオンライン制御系のシステムダウンを引き起す。When trying to debug the program by using the processing device of the standby standby system in parallel with the processing of the online control system,
This program accesses the plant control information in the global memory and destroys the information, resulting in the system down of the online control system.
オンライン制御系をシステムダウンさせないためには、
デバツグ系をオンライン制御系から分離独立させなけれ
ばならない。In order not to bring down the system of the online control system,
The debugging system must be separated from the online control system.
このために、グローバルメモリが二重化構成となつてい
ることに注目し、一台の処理装置でプログラムのデバツ
グを行なう場合、グローバルメモリの二重化を一重化構
成に変更し、片方をオンライン系、他方をデバツグ系か
らだけアクセスできるように制御する方法がある。しか
し、この方法では3台系以上のマルチシステムに不適当
であるという欠点を有する。For this reason, paying attention to the fact that the global memory has a redundant configuration, and when performing program debugging with one processing unit, change the global memory duplication to a single configuration, with one online system and the other There is a method of controlling so that it can be accessed only from the debugging system. However, this method has a drawback that it is not suitable for a multi-system including three or more systems.
本発明の目的は、複数の処理装置でプログラムのデバツ
グを並行に行なえ、あるいは、オンライン制御系の処理
に並行して、複数の処理装置でのデバツグを行なえるグ
ローバルメモリアクセス制御方式を提供することにあ
る。It is an object of the present invention to provide a global memory access control system capable of performing program debugging on a plurality of processing devices in parallel, or debugging on a plurality of processing devices in parallel with processing of an online control system. It is in.
ある処理装置でプログラムのデバツグを行なう場合、デ
バツグ系をオンライン系から分離独立させる。When a program is debugged by a processor, the debug system is separated from the online system.
このとき、グローバルメモリを分離し、デバツグ系とオ
ンライン系の処理装置はそれぞれ論理的には同一アドレ
スであつても、物理的には別々のデータをアクセスでき
るようにする。At this time, the global memory is separated so that the debugging and online processors can physically access different data even if they have the same logical addresses.
ところで、グローバルメモリには、プラント制御情報、
およびシステム管理情報が格納されている。システム管
理情報に関しては、マルチシステムを維持するために、
デバツグ系とオンライン制御系とで、同一情報を共有し
なければならないので、システム管理情報エリアは分離
しない。一方プラント制御情報に関しては、デバツグ系
とオンライン制御系とで相互に干渉しないように、その
格納エリアを全面的に分離する。By the way, the global memory contains plant control information,
And system management information is stored. For system management information, to maintain multi-system,
Since the debugging system and the online control system must share the same information, the system management information area is not separated. On the other hand, regarding the plant control information, the storage area is completely separated so that the debugging system and the online control system do not interfere with each other.
以下、本発明の一実施例を第2図に示す。この実施例
は、仮想メモリ制御におけるアドレス変換機構を利用す
るものに関する。An embodiment of the present invention will be shown below in FIG. This embodiment relates to one utilizing an address translation mechanism in virtual memory control.
各処理装置毎にアドレス変換機構101(201)を備える。
アドレス変換機構101(201)は、仮想メモリ102(202)
上の論理アドレスを主メモリ103(203)上あるいはクロ
ーバルメモリ10上の物理アドレスに変換する。An address translation mechanism 101 (201) is provided for each processing device.
The address translation mechanism 101 (201) is a virtual memory 102 (202).
The above logical address is converted into a physical address on the main memory 103 (203) or on the global memory 10.
グローバルメモリ10上にはシステム管理情報エリア10
S、ブラント制御情報エリア10Aが配置されている。同様
に、仮想メモリ102(202)上にもシステム管理情報エリ
ア102S(202S)、プラント制御情報エリア102A(202A)
が配置されている。System management information area 10 in global memory 10
S and a brand control information area 10A are arranged. Similarly, the system management information area 102S (202S) and plant control information area 102A (202A) are also stored on the virtual memory 102 (202).
Are arranged.
オンラインモードの場合には、各処理装置の仮想メモリ
上の102S(202S)をグローバルメモリ上の10Sに対応づ
ける。および102A(202A)を10Aに対応づける。このと
き、グローバルメモリ10は共有メモリとしての機能を果
たすことになる。In the online mode, 102S (202S) on the virtual memory of each processing device is associated with 10S on the global memory. And associate 102A (202A) with 10A. At this time, the global memory 10 functions as a shared memory.
ここで、処理装置2の運転モードをデバツグモードに変
更したとする。Here, it is assumed that the operation mode of the processing device 2 is changed to the debugging mode.
デバツグモードの場合、グローバルメモリ10上の空エリ
アに、疑似プラント制御情報エリア10Bを配置する。そ
して、処理装置2の仮想メモリ202上のプラント制御情
報エリア202Aとグローバルメモリ10との対応関係を、10
Aから10Bへ変更する。このとき、プラント制御情報エリ
アは、オンライン制御系とデバツグ系とで分離されたこ
とになる。In the debugging mode, the pseudo plant control information area 10B is arranged in the empty area on the global memory 10. Then, the correspondence between the plant control information area 202A on the virtual memory 202 of the processing device 2 and the global memory 10 is
Change from A to 10B. At this time, the plant control information area is separated by the online control system and the debugging system.
第2図では、処理装置が2台の場合の実施例を示した
が、3台以上の場合も同様である。Although FIG. 2 shows an embodiment in which the number of processing apparatuses is two, the same applies to the case of three or more processing apparatuses.
第3図に、運転モードによる物理アドレスの切換え機構
を示す。FIG. 3 shows a physical address switching mechanism depending on the operation mode.
各処理装置にMODEレジスタ205を備え、当該処理装置の
運転モードを管理する。MODE=0はオンラインモード、
MODE=1はデバツグモードを表わす。Each processing device is equipped with a MODE register 205 to manage the operation mode of the processing device. MODE = 0 is online mode,
MODE = 1 represents the debugging mode.
アドレス変換機構201は論理アドレス206を物理アドレス
207に変換する。論理アドレス206は複数本の信号からな
るが、これを2つに分割し、一方を論理ページアドレス
2061、他方をページ内アドレス2062と称する。論理ペー
ジアドレス2061を物理ページアドレス2064に変換し、物
理ページアドレス2064とページ内アドレス2062を合せ
て、物理アドレス207とする。The address translation mechanism 201 uses the logical address 206 as the physical address.
Convert to 207. The logical address 206 consists of multiple signals, but it is divided into two and one is the logical page address.
2061, and the other is called an in-page address 2062. The logical page address 2061 is converted into a physical page address 2064, and the physical page address 2064 and the in-page address 2062 are combined to form a physical address 207.
全ての論理ページアドレス2061に対応して物理ページア
ドレスを記憶する2つのページテーブル2012と2014を備
え、それらを格納するメモリ2016を有する。および、ペ
ージテーブル2012の先頭アドレスを記憶するレジスタ20
11と、ページテーブル2014の先頭アドレスを記憶するレ
ジスタ2013を備える。It has two page tables 2012 and 2014 for storing physical page addresses corresponding to all the logical page addresses 2061 and a memory 2016 for storing them. Also, the register 20 that stores the start address of the page table 2012
11 and a register 2013 that stores the start address of the page table 2014.
ページテーブル2012はオンラインモード時の物理ページ
アドレスを記憶し、ページテーブル2014はデバツグモー
ド時の物理ページアドレスを記憶する。The page table 2012 stores the physical page address in the online mode, and the page table 2014 stores the physical page address in the debugging mode.
任意の論理ページアドレス2061に対して、ページテーブ
ルの先頭アドレス2065を加えてメモリ2016のアドレス20
63とし、当該論理ページアドレスに対応して、ページテ
ーブル2012あるいは2014の一方から物理ページアドレス
を読み出し2064に出力する。Add the start address 2065 of the page table to the arbitrary logical page address 2061 and add the address 20 in the memory 2016.
The physical page address is read out from one of the page tables 2012 or 2014 and output to 2064 corresponding to the logical page address.
MODEレジスタ205とページテーブル先頭アドレス・セレ
クタ回路2015が、2つのページテーブル2012,2014の一
方を選択する。The MODE register 205 and the page table top address selector circuit 2015 select one of the two page tables 2012 and 2014.
すなわち、MODEレジスタ205がオンラインモードの場合
には、ページテーブル2012の先頭アドレス2011を2065に
出力し、任意の論理ページアドレス2061に対応して、ペ
ージテーブル2012からオンラインモード時の物理アドレ
スを読み出し2064に出力する。That is, when the MODE register 205 is in the online mode, the start address 2011 of the page table 2012 is output to 2065, and the physical address in the online mode is read from the page table 2012 corresponding to an arbitrary logical page address 2061 2064. Output to.
MODEレジスタ205がデバツグモードの場合には、ページ
テーブル2014の先頭アドレス2013を2065に出力し、任意
の論理ページアドレス2061に対応して、ページテーブル
2014からデバツグモード時の物理アドレスを読み出し20
64に出力する。When the MODE register 205 is in debugging mode, the start address 2013 of the page table 2014 is output to 2065, and the page table corresponding to any logical page address 2061 is output.
Read the physical address in debugging mode from 2014 20
Output to 64.
メモリ2016、レジスタ2011,2013の内容はプログラムに
より初期設定および途中変更可能な書き換え手段を有す
る。The contents of the memory 2016 and the registers 2011 and 2013 have a rewriting means that can be initialized and changed on the way by a program.
任意の処理装置を立上げるとき、オペレータの指示に従
つてMODEレジスタ205に運転モード(オンラインあるい
はデバツグモード)を設定する。および、オンライン用
変換情報2011,2012とデバツグ用変換情報2013,2014を設
定し、アドレス変換機構をイニシヤライズする。When starting an arbitrary processing device, the operation mode (online or debugging mode) is set in the MODE register 205 according to the instruction of the operator. Also, the conversion information for online 2011 and 2012 and the conversion information for debugging 2013 and 2014 are set, and the address conversion mechanism is initialized.
任意の処理装置をオンラインモードからデバツグモード
へ移行する場合、一担オンラインモードから停止モード
に移行し、オンライン処理を完全に停止したのちに、デ
バツグモードとして立上げる。デバツグモードからオン
ラインモードへ移行する場合も同様である。When shifting an arbitrary processing device from the online mode to the debugging mode, the one-sided online mode is shifted to the stop mode, the online processing is completely stopped, and then the debugging mode is started. The same applies when shifting from the debugging mode to the online mode.
また、2011,2012,2013,2014のアドレス変換情報は、処
理装置の障害を備え、フアイル装置にコピーを保持して
おく。Further, the address conversion information of 2011, 2012, 2013, 2014 has a failure of the processing device, and a copy is held in the file device.
以上説明したごとく本発明によれば、仮想メモリ制御の
アドレス変換機構を利用して、簡単にグローバルメモリ
を分離し、それぞれの処理装置用の専用エリアを作り出
すことができるので、複数の処理装置で相互に影響する
ことなくプログラムのデバツグを並行に行なえるように
なる。As described above, according to the present invention, it is possible to easily separate the global memory and create the dedicated area for each processing device by using the address conversion mechanism of the virtual memory control. You will be able to debug your programs in parallel without affecting each other.
またオンライン制御中に他の処理装置でプログラムのデ
バツグを行なつても、デバツグ系がオンライン制御系の
情報を破壊することがなくなるので、それが原因するシ
ステムダウン事故がなくなる。Further, even if the program is debugged by another processing device during the online control, the debugging system does not destroy the information of the online control system, so that the system down accident caused by it does not occur.
第1図はマルチシステムのハードウエア構成図、第2図
は仮想メモリ制御のアドレス変換機構を利用したグロー
バルメモリの分離方式の説明図、第3図は運転モードに
よる物理アドレスの切換え機構のブロツク図である。FIG. 1 is a hardware configuration diagram of a multi-system, FIG. 2 is an explanatory diagram of a global memory separation method using an address translation mechanism of virtual memory control, and FIG. 3 is a block diagram of a physical address switching mechanism according to an operation mode. Is.
Claims (1)
するように構成されているマルチシステムにおいて、そ
れぞれの処理装置に、該共有メモリに対する論理アドレ
スを物理アドレスに変換するアドレス変換装置を備え、
各処理装置が通常動作をするときには各処理装置の該ア
ドレス変換装置に、各処理装置が該共有メモリの共有エ
リアをアクセスするためのアドレス変換情報を設定して
おき、ある処理装置がプログラムのデバツグを行なう場
合には、当該処理装置とが該共有エリア以外の専用エリ
アをアクセスするためのアドレス変換情報を当該処理装
置のアドレス変換装置にセツトすることを特徴とする共
有メモリのアクセス制御方式。1. In a multi-system, wherein a plurality of processing devices are configured to be coupled via a shared memory, each processing device is provided with an address translation device for converting a logical address for the shared memory into a physical address. ,
When each processing device operates normally, address conversion information for each processing device to access the shared area of the shared memory is set in the address conversion device of each processing device, and a certain processing device debugs the program. An access control method for a shared memory, characterized in that the address translation information for accessing the dedicated area other than the shared area is set to the address translation device of the processing device when performing the above.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57147648A JPH0680498B2 (en) | 1982-08-27 | 1982-08-27 | Shared memory access control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57147648A JPH0680498B2 (en) | 1982-08-27 | 1982-08-27 | Shared memory access control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5938863A JPS5938863A (en) | 1984-03-02 |
| JPH0680498B2 true JPH0680498B2 (en) | 1994-10-12 |
Family
ID=15435094
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57147648A Expired - Lifetime JPH0680498B2 (en) | 1982-08-27 | 1982-08-27 | Shared memory access control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0680498B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE4212531C1 (en) * | 1992-04-15 | 1993-10-21 | Vaw Ver Aluminium Werke Ag | Gas and release agent supply and distribution system for a continuous casting device |
-
1982
- 1982-08-27 JP JP57147648A patent/JPH0680498B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5938863A (en) | 1984-03-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0447736B1 (en) | Multiprocessor system having distributed shared resources and dynamic and selective global data replication and method therefor | |
| US4386402A (en) | Computer with dual vat buffers for accessing a common memory shared by a cache and a processor interrupt stack | |
| US5765198A (en) | Transparent relocation of real memory addresses in the main memory of a data processor | |
| Liskov | The design of the Venus operating system | |
| US3858182A (en) | Computer program protection means | |
| Glaser et al. | System design of a computer for time sharing applications | |
| EP0099125B1 (en) | Multicomputer system having dual common memories | |
| JPS6027964A (en) | Memory access control circuit | |
| US5291605A (en) | Arrangement and a method for handling interrupt requests in a data processing system in a virtual machine mode | |
| JPH0326414B2 (en) | ||
| CA1323445C (en) | Multi-processor system | |
| JPH0680498B2 (en) | Shared memory access control method | |
| JPS6145272B2 (en) | ||
| JPH07503565A (en) | computer system | |
| JPS6220034A (en) | Program status word switching control system | |
| JPS6259825B2 (en) | ||
| JPS6041766B2 (en) | microprogram controller | |
| SU1541623A1 (en) | Device for interfacing computer with peripheral device | |
| JPS6327740B2 (en) | ||
| JPS5935262A (en) | Storage device | |
| JPS6020779B2 (en) | Composite computer system | |
| JPS63180171A (en) | Information processor | |
| JPS6036615B2 (en) | Memory control method | |
| CN121455600A (en) | Method and equipment for improving real-time interrupt processing of virtual machine | |
| JPS5918787B2 (en) | TLB partition method |