JPH01211159A - Clock matching device for computer - Google Patents

Clock matching device for computer

Info

Publication number
JPH01211159A
JPH01211159A JP63037927A JP3792788A JPH01211159A JP H01211159 A JPH01211159 A JP H01211159A JP 63037927 A JP63037927 A JP 63037927A JP 3792788 A JP3792788 A JP 3792788A JP H01211159 A JPH01211159 A JP H01211159A
Authority
JP
Japan
Prior art keywords
time data
time
clock
interrupt signal
processing unit
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
JP63037927A
Other languages
Japanese (ja)
Inventor
Akiko Tachibana
橘 昭子
Toshifumi Morii
森井 利文
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63037927A priority Critical patent/JPH01211159A/en
Publication of JPH01211159A publication Critical patent/JPH01211159A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To highly-accurately match the clock of a computer in a short processing time by correcting a time with the use of time data received from a master CPU and the data operated from the delay time of receipt with a slave CPU. CONSTITUTION:When a push button switch 7 is operated, and an interrupting signal to match the clock is generated, a master CPU 5 reads the time data when an interruption processing part 8 receives the signal from a clock mechanism 2, and accumulates them to a buffer 9. Next, a transmission processing part 10 transmits the accumulated clock data to respective slave CPUs 6. When the CPU 6 receives the interrupting signal, it reads the time data with the use of the clock mechanism 2, and accumulates them to a buffer 12. When the time data are sent from the processing part 10, a reception part 13 receives them, accumulates them to a buffer 14, and simultaneously informs a delay detecting part 11 of the reception. The detecting part 11 reads the received time from the mechanism 2, obtains the difference of the data in the buffer 12, obtains the delay time, adds it to the time data in the buffer 14, and obtains the correct time data.

Description

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

この発明は、複数の中央処理装置(以下CPUという)
をネットワークによって接続した計算機分散システムの
、各CPUに内蔵されている時計機構の時刻合わせを行
う計算機の時計合わせ装置に関するものである。
This invention provides a plurality of central processing units (hereinafter referred to as CPUs)
This invention relates to a computer clock adjustment device that adjusts the time of a clock mechanism built into each CPU in a computer distributed system in which CPUs are connected via a network.

【従来の技術】[Conventional technology]

第4図は従来の計算機の時計合わせ装置を示すブロック
図であり、図において、1は分散配置された複数のCP
U、2はこれら各CPUIが内蔵する時計機構、3はこ
れら各CPUIに接続されたコンソール、4はこれら各
CPUIを接続して計算機分散システムを形成するネッ
トワークである。 ここで、時刻のデータは状態の変化の順序を示すキーと
して最もポピユラーなものであり、かっ、時間という量
的なタイミングも表せるといった機能を持ちあわせてい
ることから、イベントの発生、デバイスのアクセス、デ
ータの送受信、タスクのラン/ウェイトのトレース等に
多(利用されている。従って、分散配置された各CPU
Iはそれぞれが、図示のごとく時計機構2を内蔵してい
る。 次に動作について説明する。ここで、計算機分散システ
ムにおいては、各CPU1間のデータ送受信時の時刻が
動作の順番を表す重要なキーであり、各CPUIの時計
機構2が正確に合っていることは絶対条件となる。従っ
て、伝送遅れが無視できない場合、ネットワーク4上で
時刻データを送受信し、時計機構2の時刻合わせを行う
ことは不可能であるため、計算機のオペレータがそれぞ
れのCPU 1に接続されたコンソール3より時刻デー
タを入力することによって、各時計機構2の時刻合わせ
を個別に行っていた。
FIG. 4 is a block diagram showing a conventional computer clock adjustment device. In the figure, 1 indicates a plurality of distributed CPs.
2 is a clock mechanism built into each of these CPUIs, 3 is a console connected to each of these CPUIs, and 4 is a network that connects these CPUIs to form a computer distributed system. Here, time data is the most popular key that indicates the order of state changes, and it also has the function of expressing quantitative timing such as time, so it is important to understand the occurrence of events and device access. , data transmission/reception, task run/wait tracing, etc. Therefore, each distributed CPU
Each of I has a built-in clock mechanism 2 as shown. Next, the operation will be explained. Here, in a computer distributed system, the time at which data is transmitted and received between each CPU 1 is an important key that indicates the order of operations, and it is an absolute requirement that the clock mechanism 2 of each CPU I is accurately matched. Therefore, if the transmission delay cannot be ignored, it is impossible to send and receive time data over the network 4 and adjust the time of the clock mechanism 2. By inputting time data, the time of each clock mechanism 2 was individually adjusted.

【発明が解決しようとする課題] 従来の計算機の時計合わせ装置は以上のように構成されているので、時計合わせには人手が介在し、打鍵ミス等による時刻データの不具合を完全になくすことはできず、また、分散配置されたCPUIの数が多い場合、時計合わせのために多大な時間を要するなどの問題点があった。 この発明は上記のような問題点を解消するためになされたもので、人手を介することなく、短時間で時計台わせを行うことのできる計算機の時計合わせ装置を得ることを目的とする。 【課題を解決するための手段】[Problem to be solved by the invention] Conventional computer clock adjustment devices are configured as described above, so manual intervention is required to adjust the clock, and it is not possible to completely eliminate errors in time data due to keystroke errors, etc.; When the number of CPUIs is large, there are problems such as a large amount of time required to adjust the clock. This invention was made to solve the above-mentioned problems, and an object of the present invention is to provide a computer clock adjustment device that can adjust the clock tower in a short time without human intervention. [Means to solve the problem]

この発明に係る計算機の時計合わせ装置は、時計合わせ
用の割り込み信号を主CPUと従CPTJとに与える割
り込み信号発生器を用意し、主CPUに、前記割り込み
信号発生時の時刻データを読み取る割り込み処理部と、
その時刻データを従CPUへ送信する送信処理部を持た
せ、従CPUに、その時刻データを受信する時刻データ
受信部と、前記割り込み信号の受信時刻より前記時刻デ
ータの受信時刻までの遅延時間を検出する遅延検出部と
、この遅延時間と前記時刻データより算出した時刻デー
タを時計機構へ出力する演算部とを持たせたものである
A computer clock adjustment device according to the present invention includes an interrupt signal generator that provides an interrupt signal for clock adjustment to a main CPU and a slave CPTJ, and causes the main CPU to perform an interrupt process for reading time data at the time when the interrupt signal is generated. Department and
The slave CPU is provided with a transmission processing unit that transmits the time data to the slave CPU, and the slave CPU includes a time data receiver unit that receives the time data, and a delay time from the reception time of the interrupt signal to the reception time of the time data. This device includes a delay detection section that detects the delay time, and a calculation section that outputs time data calculated from the delay time and the time data to the clock mechanism.

【作 用】[For use]

この発明における計算機の時計合わせ装置は、割り込み
信号発生器より割り込み信号が発生した時点で、主CP
Uはこの割り込み信号発生時点の時計機構の時刻データ
を読み取って従CPUへ送信し、従CPUは、前記割り
込み信号が発生してから前記時刻データを受信するまで
の遅延時間を検出して、この遅延時間と受信した時刻デ
ータに基づいて演算した時刻データを用いて時計機構の
時刻を補正することにより、計算機の時計合わせから人
手を排除して打鍵ミス等による時刻データの不具合の発
生を防止し、処理時間を短縮する。
The computer clock adjustment device according to the present invention controls the main CPU when an interrupt signal is generated from the interrupt signal generator.
The U reads the time data of the clock mechanism at the time when this interrupt signal is generated and sends it to the slave CPU, and the slave CPU detects the delay time from when the interrupt signal is generated until it receives the time data, and By correcting the time of the clock mechanism using the time data calculated based on the delay time and the received time data, it eliminates human intervention from setting the computer clock and prevents errors in time data due to keystroke mistakes etc. , reducing processing time.

【実施例】【Example】

以下、この発明の一実施例を図について説明する。第1
図において、2は時計機構、3はコンソール、4はネッ
トワークであり、第4図に同一符号を付した従来のそれ
らと同一、あるいは相当部分であるため詳細な説明は省
略する。また、5は時計合わせのための時刻データを送
出する主cPU、6は主CPU5からの時刻データをも
とに内蔵する時計機構2の時刻合わせを行う従CPU、
7はこの主CPU5と従CPU6に、時計合わせのため
の割り込み信号を与える割り込み信号発生器としての押
ボタンスイッチである。 さらに、第2図は前記上CPU5の要部を示すブロック
図、第3図は前記従CPU6の要部を示すブロック図で
あり、両図において、2は前記時計機構、7は前記押ボ
タンスイッチである。また、第2図において、8は前記
押ボタンスイッチ7の発生する割り込み信号を受けて時
計機構2の時刻データを読み取る割り込み処理部、9は
割り込み処理部8が読み取った時刻データを蓄積するバ
ッファ、10はこのバッファ9に蓄積された時刻データ
を従CPU6へ送信する送信処理部であり、第3図にお
いて、11は前記押ボタンスイッチ7からの割り込み信
号を受信してから前記送信処理部10からの時刻データ
を受信するまでの遅延時間を検出する遅延検出部、12
はこの遅延検出部11が出力するデータが−■1蓄積さ
れるバッファ、13は前記送信処理部10からの時刻デ
ータを受信する時刻データ受信部、14は前記時刻デー
タ受信部13で受信した時刻データとを蓄積する受信デ
ータバッファ、15はこの受信データバッファ14に蓄
積された時刻データと前記遅延検出部11で検出されて
バッファ12に蓄積された遅延時間をもとに演算した時
刻データを前記時計機構2へ出力する演算部である。 次に動作について説明する。押ボタンスイッチ7が操作
されて時計合わせのための割り込み信号が発生すると、
主CPU5において、その割り込み信号を受信した割り
込み処理部8が、その時の時刻データを時計機構2より
読み取り、それをバッファ9へ蓄積する。その後、送信
処理部10が起動されて、このバッファ9に蓄積された
時刻データを各従CPU6へ送信する。 一方、従CPU6においては、遅延検出部11が前記割
り込み信号を受信すると、その時の時刻データを時計機
構2より読み取ってそれをバッファ12へ一旦蓄積する
。その後、主CPU5の送信処理部10より時刻データ
が送られてくると、それを時刻データ受信部13にて受
信し、それを受信データバッファ14へ蓄積する。この
時刻データ受信部13はそれと同時に、この時刻データ
を受信したことを前記遅延検出部IIに知らせる。 知らせを受けた遅延検出部11は、その時刻データの受
信時刻を前記時計機構2より読み取り、その時刻データ
とバッファ工2に蓄積しておいた時刻データとの差分を
とり、それを遅延時間としてバッファ12へ再度蓄積す
る。ここで、この遅延時間は、時計合わせのための割り
込み信号が発生してから時刻データを受信するまでの時
間、即ち、主CPU5から当該従CPU6までのデータ
伝送時間に対応している。従って、演算部15によって
、前記受信データバッファ14に蓄積されている時刻デ
ータに、このバッファに蓄積された遅延時間を加算し、
その加算結果の時刻データを時計機構2にプリセットす
ることによって、当該従CPU6の時計機構2の時刻デ
ータは、主CPU5の時計機構2の時刻データに正確に
一致し、時計合わせが終了する。 なお、上記実施例では、割り込み信号発生器として押ボ
タンスイッチを使用した場合について説明したが、他に
時計の精度が無視できる程度のイベントが検出できるも
のであれば押ボタンスイッチ以外のものであってもよく
、上記実施例と同様の効果を奏する。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, 2 is a clock mechanism, 3 is a console, and 4 is a network, which are the same or equivalent parts to those in the conventional system denoted by the same reference numerals in FIG. 4, and detailed explanations thereof will be omitted. Further, 5 is a main cPU that sends time data for clock adjustment, 6 is a slave CPU that adjusts the time of the built-in clock mechanism 2 based on the time data from the main CPU 5,
Reference numeral 7 designates a push button switch as an interrupt signal generator that provides an interrupt signal for clock adjustment to the main CPU 5 and slave CPU 6. Furthermore, FIG. 2 is a block diagram showing the main parts of the upper CPU 5, and FIG. 3 is a block diagram showing the main parts of the slave CPU 6. In both figures, 2 is the clock mechanism, and 7 is the push button switch. It is. Further, in FIG. 2, reference numeral 8 denotes an interrupt processing unit that receives an interrupt signal generated by the pushbutton switch 7 and reads time data of the clock mechanism 2, and 9 a buffer that stores the time data read by the interrupt processing unit 8. Reference numeral 10 denotes a transmission processing section that transmits the time data accumulated in this buffer 9 to the slave CPU 6, and in FIG. a delay detection unit for detecting a delay time until receiving time data of 12;
13 is a time data receiving unit that receives the time data from the transmission processing unit 10; 14 is the time received by the time data receiving unit 13; A reception data buffer 15 stores the time data calculated based on the time data stored in the reception data buffer 14 and the delay time detected by the delay detection section 11 and stored in the buffer 12. This is a calculation unit that outputs to the clock mechanism 2. Next, the operation will be explained. When the pushbutton switch 7 is operated and an interrupt signal for clock adjustment is generated,
In the main CPU 5, the interrupt processing unit 8 that receives the interrupt signal reads the current time data from the clock mechanism 2 and stores it in the buffer 9. Thereafter, the transmission processing section 10 is activated and transmits the time data accumulated in the buffer 9 to each slave CPU 6. On the other hand, in the slave CPU 6, when the delay detection section 11 receives the interrupt signal, it reads the current time data from the clock mechanism 2 and temporarily stores it in the buffer 12. Thereafter, when time data is sent from the transmission processing section 10 of the main CPU 5, the time data reception section 13 receives it and stores it in the reception data buffer 14. At the same time, this time data receiving section 13 notifies the delay detecting section II that this time data has been received. Upon receiving the notification, the delay detection unit 11 reads the reception time of the time data from the clock mechanism 2, calculates the difference between the time data and the time data stored in the buffer mechanism 2, and calculates the difference as the delay time. It is stored again in the buffer 12. Here, this delay time corresponds to the time from when an interrupt signal for clock adjustment is generated until the time data is received, that is, the data transmission time from the main CPU 5 to the slave CPU 6. Therefore, the calculation unit 15 adds the delay time stored in the received data buffer 14 to the time data stored in the received data buffer 14,
By presetting the time data of the addition result in the clock mechanism 2, the time data of the clock mechanism 2 of the slave CPU 6 accurately matches the time data of the clock mechanism 2 of the main CPU 5, and the clock adjustment is completed. In the above embodiment, a pushbutton switch was used as the interrupt signal generator, but any other device other than the pushbutton switch may be used as long as it can detect events for which the accuracy of the clock is negligible. However, the same effect as in the above embodiment can be obtained.

【発明の効果】【Effect of the invention】

以上のように、この発明によれば、時計合わせ用の割り
込み信号を発生する割り込み信号発生器を用意し、主C
PUはこの割り込み信号発生器より割り込み信号が発生
した時点の時計機構の時刻データを読み取って従CPU
へ送信し、従CPUは前記割り込み信号が発生してから
この時刻データを受信するまでの遅延時間を検出して、
その遅延時間と受信した時刻データに基づいて演算した
時刻データによって時計機構の時刻を補正するように構
成したので、計算機の時計合わせから人手が排除されて
打鍵ミス等による時刻データを不具合が発生するような
ことはなく、精度が高(処理時間の短かい計算機の時計
合わせ装置が得られる効果がある。
As described above, according to the present invention, an interrupt signal generator that generates an interrupt signal for clock adjustment is provided, and the main
The PU reads the time data of the clock mechanism at the time when the interrupt signal is generated from this interrupt signal generator and sends it to the slave CPU.
The slave CPU detects the delay time from when the interrupt signal is generated until it receives this time data,
Since the time of the clock mechanism is corrected by the time data calculated based on the delay time and the received time data, human labor is removed from setting the computer clock, and errors in time data due to keystroke errors etc. can occur. This has the effect of providing a computer clock adjustment device with high accuracy (short processing time).

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

第1図はこの発明の一実施例による計算機の時計合わせ
装置を示すブロック図、第2図はその主CPUの要部を
示すブロック図、第3図はその従CPUの要部を示すブ
ロック図、第4図は従来の計算機の時計合わせ装置を示
すブロック図である。 2は時計機構、4はネットワーク、5は主CPυ、6は
従CPU、7は割り込み信号発生器(押ボタンスイッチ
)、8は割り込み処理部、10は送信処理部、11は遅
延検出部、13は時刻データ受信部、15は演算部。 なお、図中、同一符号は同一、又は相当部分を示す。 第3回 15  演$告や
FIG. 1 is a block diagram showing a computer clock adjustment device according to an embodiment of the present invention, FIG. 2 is a block diagram showing the main parts of its main CPU, and FIG. 3 is a block diagram showing the main parts of its slave CPU. , FIG. 4 is a block diagram showing a conventional computer clock adjustment device. 2 is a clock mechanism, 4 is a network, 5 is a main CPUυ, 6 is a slave CPU, 7 is an interrupt signal generator (push button switch), 8 is an interrupt processing section, 10 is a transmission processing section, 11 is a delay detection section, 13 15 is a time data receiving section, and 15 is a calculation section. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. 3rd 15th performance

Claims (1)

【特許請求の範囲】[Claims] 各々が時計機構を備えた複数の中央処理装置をネットワ
ークによって接続した計算機分散システムにおける、前
記各中央処理装置の前記時計機構の時刻合わせを行う計
算機の時計合わせ装置において、前記中央処理装置の1
つを主中央処理装置、他を従中央処理装置とし、前記主
中央処理装置及び従中央処理装置に時計合わせ用の割り
込み信号を与える割り込み信号発生器を用意し、前記主
中央処理装置に、前記割り込み信号発生器より割り込み
信号が発生した時点の時刻データを前記時計機構より読
み取る割り込み処理部と、読み取った前記時刻データを
前記従中央処理装置へ送信する送信処理部とを持たせ、
前記従中央処理装置に、前記送信処理部からの時刻デー
タを受信する時刻データ受信部と、前記割り込み信号発
生器からの割り込み信号を受信してから前記時刻データ
受信部で時刻データを受信するまでの遅延時間を検出す
る遅延検出部と、前記時刻データ受信部で受信した時刻
データと前記遅延検出部で検出した遅延時間に基づいて
演算した時刻データを前記時計機構へ出力する演算部と
を持たせたことを特徴とする計算機の時計合わせ装置。
In a computer distributed system in which a plurality of central processing units each having a clock mechanism are connected via a network, a computer clock adjustment device that adjusts the time of the clock mechanism of each central processing unit, wherein one of the central processing units
One is a main central processing unit and the other is a slave central processing unit, an interrupt signal generator is provided which gives an interrupt signal for clock adjustment to the main central processing unit and the slave central processor, and the main central processing unit is connected to the an interrupt processing unit that reads time data from the clock mechanism at the time when an interrupt signal is generated from an interrupt signal generator; and a transmission processing unit that transmits the read time data to the slave central processing unit;
The slave central processing unit includes a time data receiving section that receives the time data from the transmission processing section, and a period from receiving the interrupt signal from the interrupt signal generator to receiving the time data at the time data receiving section. a delay detection unit that detects the delay time of the clock mechanism; and a calculation unit that outputs time data calculated based on the time data received by the time data reception unit and the delay time detected by the delay detection unit to the clock mechanism. A computer clock adjustment device that is characterized by a
JP63037927A 1988-02-19 1988-02-19 Clock matching device for computer Pending JPH01211159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63037927A JPH01211159A (en) 1988-02-19 1988-02-19 Clock matching device for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63037927A JPH01211159A (en) 1988-02-19 1988-02-19 Clock matching device for computer

Publications (1)

Publication Number Publication Date
JPH01211159A true JPH01211159A (en) 1989-08-24

Family

ID=12511187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63037927A Pending JPH01211159A (en) 1988-02-19 1988-02-19 Clock matching device for computer

Country Status (1)

Country Link
JP (1) JPH01211159A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07306836A (en) * 1994-05-10 1995-11-21 Nec Corp Time synchronization device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07306836A (en) * 1994-05-10 1995-11-21 Nec Corp Time synchronization device

Similar Documents

Publication Publication Date Title
US6098178A (en) Time synchronization algorithm for massively parallel processor systems
JPH0863254A (en) Method for correcting time of transmission equipment and transmission device utilizing the same
JPH01211159A (en) Clock matching device for computer
JP3516152B2 (en) Synchronization establishing device
JPS6356755A (en) Abnormality supervising system for slave processor
JP2588290B2 (en) Data input / output system
JPS6225284A (en) Time correcting system
JP2513032B2 (en) Microcomputer input control circuit
JP2749994B2 (en) Numerical control unit
JPS5461846A (en) Data input processing system
JPH0898263A (en) Remote supervisory and control equipment and time synchronizing device
KR100427789B1 (en) Data input / output method
JPH0449918B2 (en)
JP2858493B2 (en) Failure information storage method
JPH02212911A (en) Timing method for digital time unit
JPH03181244A (en) Synchronizing communication controller
JPH0580873A (en) Clock omission detecting circuit system
JPH01161472A (en) Multiprocessor
JPH04165415A (en) Key input control part
JPH08179816A (en) Distributed control system
JPH0330044A (en) Interruption control method
JPH03225408A (en) Keyboard entry data fetch device
JPH01211112A (en) Keyboard input device
JPS6110343A (en) Error generating device
JPH04199255A (en) Timer control method for multiprocessor system