JPS6155684B2 - - Google Patents
Info
- Publication number
- JPS6155684B2 JPS6155684B2 JP56102034A JP10203481A JPS6155684B2 JP S6155684 B2 JPS6155684 B2 JP S6155684B2 JP 56102034 A JP56102034 A JP 56102034A JP 10203481 A JP10203481 A JP 10203481A JP S6155684 B2 JPS6155684 B2 JP S6155684B2
- Authority
- JP
- Japan
- Prior art keywords
- tod
- clock
- cpu
- information processing
- instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
- G06F9/4825—Interrupt from clock, e.g. time of day
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Executing Machine-Instructions (AREA)
- Multi Processors (AREA)
Description
【発明の詳細な説明】
本発明はマルチプロセツサ構成の情報処理装置
におけるタイムオブデイクロツクの同期化方式関
するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a time-of-day clock synchronization method in an information processing apparatus having a multiprocessor configuration.
一般に情報処理装置には、日付と時刻を表示す
るために一貫した経過時間を示すクロツク、即
ち、タイムブデイクロツク(TOD)と呼ばれて
いる手段が内蔵されている。このクロツクは通常
64ビツトの2進カウンタの形式をとり、そのビツ
ト位置は、符号のない倍精度の固定小数点のビツ
ト位置に相当して、0〜63まで番号が付けられて
いる。時間は符号のない固定小数点演算の規則に
基づき、カウンタの値を増加させることにより得
る。基本的には、カウンタは1μ秒ごとにビツト
位置51に1を加えることによつて増加する。 Generally, an information processing device has a built-in clock that shows a consistent elapsed time in order to display the date and time, that is, a means called a time-of-day clock (TOD). This clock is usually
It takes the form of a 64-bit binary counter, whose bit positions are numbered from 0 to 63, corresponding to the bit positions of an unsigned double-precision fixed-point number. The time is obtained by incrementing the value of a counter based on the rules of unsigned fixed-point arithmetic. Basically, the counter is incremented by adding 1 to bit position 51 every 1 microsecond.
ところで、マルチプロセツサ構成時、各処理装
置が上記のようなタイムオブデイクロツク
(TOD)を持つことになるが、プログラムから見
た場合、論理的には一つのTODがあるとする必
要があり、そのため、各処理装置のTODの値は
常に同一の内容でなくてはならない。このような
場合、従来は以下に述べるような方法により
TODの同期化を行い、各処理装置のTODの内容
の一致をはかつている。 By the way, when configuring a multiprocessor, each processing unit has a time-of-day clock (TOD) as described above, but from the perspective of the program, it is logically necessary to assume that there is one TOD. Therefore, the TOD value of each processing device must always have the same content. In such cases, conventional methods such as those described below are used to
The TODs are synchronized to ensure that the TOD contents of each processing device match.
第1図はマルチプロセツサ構成の一例で、
CPU−A、CPU−BはそれぞれTODを内蔵した
処理装置、MSはCPU−A、CPU−Bで共用する
主記憶装置、SCUはCPU−A、CPU−Bからの
メモリアクセスを制御する記憶制御装置、SVPは
サービスプロセツサである。なお、第1図では
CPU−Aに接続されたSVPにクロツク
(CLOCK)を持つとしたが、このクロツクはバ
ツテリー電源を備え、CPU系の電源がオフの状
態でも動作可能なもので、システムの立上げ時
等、その内容がCPU−A内のTODに移されるも
のである。 Figure 1 shows an example of a multiprocessor configuration.
CPU-A and CPU-B are processing units each with a built-in TOD, MS is a main memory shared by CPU-A and CPU-B, and SCU is a storage controller that controls memory access from CPU-A and CPU-B. The device, SVP, is a service processor. In addition, in Figure 1
Although we assumed that the SVP connected to CPU-A has a clock (CLOCK), this clock is equipped with battery power and can operate even when the CPU system power is off, so it can be used when starting up the system, etc. The contents are moved to TOD in CPU-A.
第2図は、第1図のマルチプロセツサ構成に対
する従来のTOD同期方式を説明するためのフロ
ーチヤートである。はじめCPU−Aからイニシ
ヤルプログラムロード(IPL)動作を行つてプロ
グラムをMSにロードし、次に該プログラムに制
御を与える。このようにして、CPU−AはIPL動
作に必要ないくつかの仕事を行つた後、CPU−
Bを起動するため、SIGP(SIGNAL
PROCESSOR)命令を発行するとともに、SCK
(SET CLOCK)命令を発行する。SCK命令は
TODに値をセツトする命令で、その値は例えば
X“AAAAAAAAOOOOOOOO”で、下位32ビ
ツトはゼロにする。この時、通常オペレータは命
令抑止スイツチSWをオン状態にしており、その
ため、SCK命令は実行されず、第2図に示すよ
うに同SCK命令の空読みが何回か繰り返される
ことになる。この間、CPU−Bは各種前処理を
行つた後、同じくSCK命令を発行する。この時
の値はCPU−AのTODのビツト位置31に1を加
えたX“AAAAAAABOOOOOOOO”である
が、命令抑止スイツチSWにより本命令の実行が
抑止されるため、CPU−Aと同じく、該SCK命
令の空読みが何回か繰り返されることになる。そ
の後、オペレータの手操作により命令抑止スイツ
チSWがオフになると、CPU−AのTODにはX
“AAAAAAAAOOOOOOOO”がセツトされ、
CPU−BのTODにはX
“AAAAAAABOOOOOOOO”の値がセツトされ
る。以後、CPU−AのTODは1μsごとにビツ
ト位置51に1を加えることにより値が増加して
いく。その間、CPU−BのTODはストツプ状態
にあり停止している。そして、CPU−AのTOD
のビツト位置31にキヤリーが上がると、それに
同期してCPU−BのTODが動作状態となるた
め、CPU−AとCPU−BのTODが以後同一内容
となり、同期して更新されることになる。 FIG. 2 is a flowchart for explaining a conventional TOD synchronization method for the multiprocessor configuration shown in FIG. First, an initial program load (IPL) operation is performed from CPU-A to load a program into the MS, and then control is given to the program. In this way, after CPU-A has performed some work necessary for IPL operation, CPU-A
To start B, SIGP (SIGNAL
PROCESSOR) instruction and SCK
(SET CLOCK) instruction. The SCK instruction is
This is an instruction to set a value in TOD. For example, the value is X "AAAAAAAAAOOOOOOOO" and the lower 32 bits are set to zero. At this time, the operator normally turns on the instruction suppression switch SW, so the SCK instruction is not executed, and the idle reading of the SCK instruction is repeated several times as shown in FIG. During this time, CPU-B also issues the SCK instruction after performing various preprocessing. The value at this time is X "AAAAAAABOOOOOOOO", which is 1 added to bit position 31 of TOD of CPU-A, but since execution of this instruction is inhibited by the instruction suppression switch SW, the SCK The blank reading of the command will be repeated several times. After that, when the instruction suppression switch SW is turned off by the operator's manual operation, the TOD of CPU-A is
“AAAAAAAAAOOOOOOOO” is set,
X for TOD of CPU-B
The value “AAAAAAABOOOOOOOO” is set. Thereafter, the value of TOD of CPU-A increases by adding 1 to bit position 51 every 1 μs. During this time, the TOD of CPU-B is in a stopped state. And TOD of CPU-A
When the carry goes up to bit position 31, the TOD of CPU-B becomes active in synchronization with it, so the TOD of CPU-A and CPU-B will have the same contents from now on and will be updated synchronously. .
以上のように、従来はオペレータの手操作によ
り命令抑止スイツチをオン・オフしてTODの同
期化を行うのが一般的であつた。この従来の方式
の欠点は、手操作により命令抑止スイツチをオフ
するまで命令がループするため、その間計算機が
無駄に使用され、又、同期が完了するまでに時間
がかかることである。又、最近運用面の自動化が
進むにつれて、IPL動作を人手を介さずに自動的
に行う自動IPL機能が要求されるようになつてき
ており、従来の手操作の伴うTOD同期化方法
は、このような要求にそぐわなくなつてきてい
る。 As described above, it has conventionally been common for an operator to manually turn on and off the command suppression switch to synchronize the TOD. The disadvantage of this conventional method is that the instructions are looped until the instruction inhibit switch is manually turned off, which wastes the computer and takes a long time to complete the synchronization. In addition, as the automation of operations has progressed recently, there has been a demand for an automatic IPL function that automatically performs IPL operations without human intervention, and the conventional TOD synchronization method that required manual operations has It is becoming increasingly difficult to meet such demands.
本発明の目的は上述の如き従来の欠点を除去す
るものであり、マルチプロセツサ構成時、手操作
を介さずにプログラム上でTODの同期化を行う
ことを可能とすることにある。 An object of the present invention is to eliminate the above-mentioned conventional drawbacks, and to make it possible to perform TOD synchronization on a program without manual operation when a multiprocessor is configured.
しかして、本発明の特徴とするところは、命令
抑止スイツチの状態に関係なくTODに値をセツ
トする命令を実行せしめて、TODの同期化を行
うことである。 Therefore, a feature of the present invention is that TOD is synchronized by executing an instruction to set a value in TOD regardless of the state of the instruction inhibit switch.
以下、本発明の一実施例につき図面を用いて詳
細に説明する。 Hereinafter, one embodiment of the present invention will be described in detail using the drawings.
第3図は本発明のTODに値をセツトする条件
をハードウエアで実現した図である。第3図にお
いて、信号1は従来からあるSCK(SET
CLOCK)命令が実行されていることを示す信号
で、命令抑止スイツチの状態を示す信号2と
AND回路4によりAND条件がとられ、命令抑止
スイツチがオフになることにより、OR回路6を
通してTODセツト許可信号9が作られ、バス8
上の内容(TODにセツトする値)がTOD7にセ
ツトされる。 FIG. 3 is a diagram in which the conditions for setting a value in TOD according to the present invention are realized in hardware. In Figure 3, signal 1 is the conventional SCK (SET
CLOCK) A signal indicating that the instruction is being executed, and signal 2 indicating the state of the instruction inhibit switch.
When the AND condition is set by the AND circuit 4 and the instruction inhibit switch is turned off, the TOD set enable signal 9 is generated through the OR circuit 6, and the TOD set permission signal 9 is generated through the OR circuit 6.
The above contents (value set to TOD) are set to TOD7.
以上は従来の場合であるが、本発明ではこれに
更に、自動IPL機構が設けられていることを示す
信号3と、本発明であらたに導入した命令抑止ス
イツチの状態に関係なくTODにセツト可能な命
令が実行されることを示す信号10とがAND回
路5に入り、両信号のAND条件がとられると、
OR回路6を通してTODセツト許可信号9が作ら
れ、バス8上の内容がTOD7にセツトされるこ
とになる。 The above is the conventional case, but in the present invention, in addition to this, signal 3 indicating that an automatic IPL mechanism is provided, and the command suppression switch newly introduced in the present invention can be set to TOD regardless of the state. A signal 10 indicating that an instruction is to be executed enters the AND circuit 5, and when the AND condition of both signals is taken,
TOD set permission signal 9 is generated through OR circuit 6, and the contents on bus 8 are set to TOD 7.
次に第1図のマルチプロセツサ構成の場合を例
に本発明のTOD同期化動作を説明する。第4図
はそのためのフローチヤートである。IPL動作は
CPU−Aから行うが、この時、SVPのバツテリ
ー電源を備えたクロツク(CLOCK)から、その
内容が自動的にCPU−AのTODにセツトされ
る。CPU−AはIPL動作に必要ないくつかの動作
を行つた後、CPU−Bを起動するため、SIGP命
令を発行するとともにSTCK(STORE
CLOCK)命令を発行し、自CPU−AのTODの内
容をMSに退避する。この時の内容は例えばX
“AAAAAAAAOXXXXXXX”である。ここで、
下位28ビツトは必ずしもゼロである必要はない
が、CPU−Bが起動され、SCK命令が実行され
るまでに十分な時間が必要であることを考慮する
と、ゼロであることが望ましい。以後、CPU−
AのTODは1μsごとにビツト位置51に1を加
えることにより、その値が増加していく。 Next, the TOD synchronization operation of the present invention will be explained using the multiprocessor configuration shown in FIG. 1 as an example. Figure 4 is a flowchart for this purpose. IPL operation is
This is done from CPU-A, and at this time, the contents of the SVP's battery-powered clock (CLOCK) are automatically set to CPU-A's TOD. After CPU-A performs several operations necessary for IPL operation, CPU-A issues a SIGP instruction and STCK (STORE) to start CPU-B.
CLOCK) command and saves the contents of TOD of own CPU-A to MS. For example, the content at this time is
“AAAAAAAAAOXXXXXXX”. here,
Although the lower 28 bits do not necessarily have to be zero, it is desirable that they be zero, considering that sufficient time is required until CPU-B is started and the SCK instruction is executed. From now on, CPU−
The value of TOD of A increases by adding 1 to bit position 51 every 1 μs.
一方、CPU−BはMSに退避された値のビツト
位置31に1を加え、下位28ビツトのゼロにした
値、すなわちX“AAAAAAABOOOOOOOO”
をSCK命令により、自CPU−BのTODにセツト
する。その後、CPU−BのTODは、CPU−Aの
TODのビツト位置31にキヤリーが上がるまで
ストツプ状態にあり、停止している。CPU−A
のTODのビツト位置31にキヤリーが上がる
と、そのタイミングでCPU−BのTODが動作状
態となり、CPU−AとCPU−Bが以後同一内容
で、同期して更新されることになる。 On the other hand, CPU-B adds 1 to bit position 31 of the value saved in the MS and sets the lower 28 bits to zero, that is, X “AAAAAAABOOOOOOOO”.
is set to the TOD of own CPU-B by the SCK command. After that, the TOD of CPU-B is the same as that of CPU-A.
It is in the stop state until the carry rises to bit position 31 of TOD and is at rest. CPU-A
When the carry goes up to bit position 31 of the TOD, the TOD of the CPU-B becomes active at that timing, and the contents of the CPU-A and CPU-B are thereafter updated synchronously with the same content.
なお、実施にあたつては、従来の手操作による
方式も、SVPのバツテリー付電源が故障した場合
等では必要であり、第3図に示したように、従来
方式と本発明方式の併設が望ましい。 In addition, when implementing the method, the conventional manual method is also necessary in cases such as when the SVP's battery-equipped power supply breaks down, and as shown in Figure 3, the conventional method and the method of the present invention can be used together. desirable.
以上述べた如き構成であるから、本発明にあつ
ては次の如き効果が得られる。 With the configuration as described above, the following effects can be obtained in the present invention.
1 マルチプロセツサ構成時、手操作によらずに
各TODの同期化を行えるので、IPL動作の全自
動化を行うことができる。1. When a multiprocessor is configured, each TOD can be synchronized without manual operation, so IPL operations can be fully automated.
2 TODの同期処理時、命令がループしないた
め、同期化時間を短縮できる。2. Synchronization time can be shortened because instructions do not loop during TOD synchronization processing.
第1図はマルチプロセツサ構成の一例を示す
図、第2図は従来のTOD同期方式を説明するた
めの流れ図、第3図は本発明の一実施例のハード
ウエア構成を示す図、第4図は本発明のTOD同
期方式を説明するための流れ図である。
4,5……AND回路、6……OR回路、7……
タイムオブデイクロツク(TOD)。
FIG. 1 is a diagram showing an example of a multiprocessor configuration, FIG. 2 is a flowchart for explaining a conventional TOD synchronization method, FIG. 3 is a diagram showing a hardware configuration of an embodiment of the present invention, and FIG. The figure is a flowchart for explaining the TOD synchronization method of the present invention. 4, 5...AND circuit, 6...OR circuit, 7...
Time of Day Clocks (TOD).
Claims (1)
示すクロツク手段(タイムオブデイクロツク)を
内蔵する情報処理装置を複数台有するマルチプロ
セツサにおいて、情報処理装置は、前記クロツク
手段に初期値をセツトする命令の実行を許可ある
は抑止するため手動で操作される第1手段と、該
第1手段の状態に関係なく、前記クロツク手段に
初期値をセツトする命令の実行を可能とする第2
手段とを具備し、第1の或る情報処理装置は、前
記第2手段により命令によつて自装置のクロツク
手段に初期値をセツトすると、該クロツク手段の
歩進を開始せしめると共に、前記初期値をメモリ
にストアして他の第2の情報処理装置にクロツク
手段のセツトを指示し、該指示を受けた第2の情
報処理装置では、前記メモリの内容を読み出し、
それに所定値を加算した値を自装置のクロツク手
段にセツトし、前記第1の情報処理装置のクロツ
ク手段の内容が自装置のクロツク手段のセツト値
に一致するまで当該クロツク手段の歩進を抑止す
ることを特徴とするタイムオブデイクロツクの同
期化方式。1. In a multiprocessor that includes a plurality of information processing devices each having a built-in clock means (time-of-day clock) that continuously indicates elapsed time to display the date, time, etc., the information processing device sets an initial value to the clock means. first means manually operated to permit or inhibit the execution of an instruction to set an initial value; and second means for enabling execution of an instruction to set an initial value in said clock means, regardless of the state of said first means.
When the second means sets an initial value in the clock means of the own device according to a command, the first information processing device starts the clock means to advance, Storing the value in the memory and instructing another second information processing device to set the clock means, the second information processing device receiving the instruction reads the contents of the memory,
A value obtained by adding a predetermined value thereto is set in the clock means of the own device, and the progress of the clock means of the first information processing device is inhibited until the contents of the clock means of the first information processing device match the set value of the clock means of the own device. A time-of-day clock synchronization method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56102034A JPS583012A (en) | 1981-06-30 | 1981-06-30 | Time-of-day clock synchronization method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56102034A JPS583012A (en) | 1981-06-30 | 1981-06-30 | Time-of-day clock synchronization method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS583012A JPS583012A (en) | 1983-01-08 |
| JPS6155684B2 true JPS6155684B2 (en) | 1986-11-28 |
Family
ID=14316472
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56102034A Granted JPS583012A (en) | 1981-06-30 | 1981-06-30 | Time-of-day clock synchronization method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS583012A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7209628B2 (en) | 1992-03-23 | 2007-04-24 | 3M Innovative Properties Company | Luminaire device |
-
1981
- 1981-06-30 JP JP56102034A patent/JPS583012A/en active Granted
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7209628B2 (en) | 1992-03-23 | 2007-04-24 | 3M Innovative Properties Company | Luminaire device |
| US7418188B2 (en) | 1992-03-23 | 2008-08-26 | 3M Innovative Properties Company | Luminaire device |
| US7424197B2 (en) | 1992-03-23 | 2008-09-09 | 3M Innovative Properties Company | Luminaire device |
| US7587117B2 (en) | 1992-03-23 | 2009-09-08 | 3M Innovative Properties Company | Luminaire device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS583012A (en) | 1983-01-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS61156338A (en) | Multiprocessor system | |
| JPS5462749A (en) | Multiple information processing system | |
| EP0287295A3 (en) | Multiple i/o bus virtual broadcast of programmed i/o instructions | |
| JPS6155684B2 (en) | ||
| EP0335990A1 (en) | Processor-processor synchronization | |
| JPS6045453B2 (en) | multiprocessor | |
| JPS5925258B2 (en) | processor control system | |
| JPH0460255B2 (en) | ||
| JP3015793B1 (en) | Programmable controller | |
| JPS63816B2 (en) | ||
| JPS6347812A (en) | Sleep mode controller | |
| JPS5916054A (en) | Microprocessor | |
| CN113886039B (en) | Scheduling table synchronization method and device, electronic equipment and storage medium | |
| JPS61180310A (en) | Loading system of system control program to numerical controller | |
| JPS5965306A (en) | Sequence control device | |
| JPS59178552A (en) | Self diagnosis controlling system | |
| JPS5628593A (en) | System automatic restart system | |
| JPS61253526A (en) | Automatic executing processor for interactive program | |
| JPS5842486B2 (en) | Initial program load control method | |
| JP3231683B2 (en) | Serial data transfer method and device | |
| JPS5920059A (en) | Microprocessor | |
| JPS58168121A (en) | Processing system of power failure restoration | |
| JPH02108103A (en) | Numerical controller | |
| JPH11265264A (en) | Backup storage system and method therefor | |
| JPH0769892B2 (en) | Program load method |