JPH02216574A - Multiprocessor system - Google Patents

Multiprocessor system

Info

Publication number
JPH02216574A
JPH02216574A JP1036353A JP3635389A JPH02216574A JP H02216574 A JPH02216574 A JP H02216574A JP 1036353 A JP1036353 A JP 1036353A JP 3635389 A JP3635389 A JP 3635389A JP H02216574 A JPH02216574 A JP H02216574A
Authority
JP
Japan
Prior art keywords
time
processor
cpu
processors
signal
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
JP1036353A
Other languages
Japanese (ja)
Inventor
Takahiro Nishikawa
西川 隆博
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 JP1036353A priority Critical patent/JPH02216574A/en
Publication of JPH02216574A publication Critical patent/JPH02216574A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To allow each processor to possess common high-speed accessible time by inputting a time signal generated by means of a time counter to a CPU on the processor, or switching the time signal and inputting it to the other CPU. CONSTITUTION:Processors 1A, 1B and 1C respectively are constituted of a clock generating circuit 2, a time counter 3, a switching circuit 4 to switch the time signal, and a CPU 6. For example, when the time counter 3 of the processor 1A generates a count-up output, the signal from the time counter 3 of the processor 1a is interrupted by the switching circuit 4. Contact points A and B of the switching circuit of the processor 1A are separated, only contact points B and C are connected, and a time updating signal sent from the other processors 1B and 1C through a time updating transmission signal line 7 is inputted to the NMI terminal of the CPU. Thus the common high-speed accessible time by means of the multiprocessor can be obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、複数のプロセッサが1つの共通バスを共有
するマルチプロセッサシステムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a multiprocessor system in which a plurality of processors share one common bus.

〔従来の技術〕[Conventional technology]

第4図は従来のマルチプロセッサシステムを示すブロッ
ク接続図であり、図において、ID、IE、IFはプロ
セッサで、これらが1つの共通バス8に接続されている
。また、これらの各プロセッサID〜IFは、第5図に
示すように、クロック発生回路2、このクロック発生回
路2がらのクロックをカウントして時刻信号を出力する
タイムカウンタ3、およびこのタイムカウンタ3のカウ
ントアツプ出力にもとづいて中央処理装置(以下、CP
Uという)6に割込みをかける割込コントローラ5から
構成されている。
FIG. 4 is a block connection diagram showing a conventional multiprocessor system. In the figure, ID, IE, and IF are processors, and these are connected to one common bus 8. Furthermore, as shown in FIG. 5, each of these processors ID to IF includes a clock generation circuit 2, a time counter 3 that counts the clock from this clock generation circuit 2 and outputs a time signal, and this time counter 3. Based on the count-up output of the central processing unit (hereinafter referred to as CP),
It consists of an interrupt controller 5 that issues an interrupt to a computer (referred to as U) 6.

次に動作について説明する。まず、クロック発生回路2
で発生されたクロックはタイムカウンタ3に入力される
。タイムカウンタ3はCPU6が制御信号9を用いてあ
らかじめ設定していた値のクロック発生をカウントする
と1割込コントローラ5に対して信号を出す、このため
割込コントローラ5はこのカウント、結果の信号をCP
U6の割込入力線に入力し、CPU6はこの入力を受け
て割込駆動され、主メモリに保存した時刻を更新する。
Next, the operation will be explained. First, clock generation circuit 2
The clock generated in is input to the time counter 3. The time counter 3 outputs a signal to the 1-interrupt controller 5 when the CPU 6 counts the clock generation of a preset value using the control signal 9. Therefore, the interrupt controller 5 receives this count and the resulting signal. C.P.
This is input to the interrupt input line of U6, and upon receiving this input, the CPU 6 is driven to interrupt and updates the time stored in the main memory.

この様にして、CPU6が任意に高速で参照できる時刻
値を、上記主メモリ上に設定している。
In this way, a time value that can be arbitrarily referenced by the CPU 6 at high speed is set in the main memory.

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

従来のマルチプロセッサシステムは以上のように構成さ
れているので、各プロセッサID〜IFで実行されるプ
ログラムの負荷が異なると、CPU6のタイムカウンタ
3に対するプログラム実行が、各プロセッサID〜IF
で時間的ずれを生じ。
Since the conventional multiprocessor system is configured as described above, if the load of the program executed by each processor ID to IF is different, the program execution for the time counter 3 of the CPU 6 is different from each processor ID to IF.
This causes a time lag.

結果的に各プロセッサID〜IFにおいて、CPU6が
主メモリに保持している時刻値が異なってしまうなどの
問題点があった。
As a result, there were problems such as the time values held in the main memory of the CPU 6 being different for each processor ID to IF.

一方、これに対し、1つのプロセッサのみが時刻を管理
し、他のプロセッサが時刻を必要とするとき、上記の時
刻管理をするプロセッサにアクセスして、共通時刻を得
ることも考えられるが、この方法では、低速アクセスし
かできないため、高速に時刻を得る必要があるものには
適用できないなどの問題点があった。この発明は上記の
ような問題点を解消するためになされたもので、各プロ
セッサが共通バスを通して高速アクセス可能な共通の時
刻を持つことができるマルチプロセッサシステムを得る
ことを目的とする。
On the other hand, when only one processor manages time and other processors need time, it is possible to access the processor that manages time and obtain a common time. This method has problems, such as that it can only be accessed at low speeds, so it cannot be applied to applications that require fast time acquisition. The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a multiprocessor system in which each processor can have a common time that can be accessed at high speed through a common bus.

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

この発明に係るマルチプロセッサシステムは、1つのプ
ロセッサ上のクロック発生回路からのクロックをカウン
トするタイムカウンタが発生する時刻信号を、切替回路
を用いることによって、そのプロセッサ上のCPUに入
力すると同時に、共通バス上に設けた専用の信号線に出
力したり、自己のプロセッサ上のタイムカウンタから発
生する時刻信号を無視し、他のプロセッサからの共通バ
スにおける専用信号線上の時刻信号のみをCPUに入力
したりするように切替えて、全プロセッサを同時に時刻
更新するようにしたものである。
A multiprocessor system according to the present invention uses a switching circuit to input a time signal generated by a time counter that counts clocks from a clock generation circuit on one processor to a CPU on that processor, and at the same time Output to a dedicated signal line provided on the bus or ignore the time signal generated from the time counter on your own processor, and input only the time signal on the dedicated signal line on the common bus from other processors to the CPU. The time is updated on all processors at the same time.

〔作用〕[Effect]

この発明における切替回路は、共通バスを用いたマルチ
プロセッサの中のただ1つのプロセッサが発生する時刻
信号を、全てのプロセッサに、共通バスにおける1本の
信号線を通して伝達することで、全プロセッサに同時に
時刻更新を行わせるように動作する。
The switching circuit in this invention transmits a time signal generated by only one processor in a multiprocessor using a common bus to all processors through one signal line on the common bus. It operates to update the time at the same time.

〔発明の実施例〕[Embodiments of the invention]

以下、この発明の一実施例を図について説明する。第1
図において、IAはプロセッサであり。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, IA is a processor.

こ、れがクロック発生回路2、タイムカウンタ3、この
タイムカウンタ3が出力する時刻信号をCPU6および
共通バス8に同時供給したり、共通バス8から得られる
他のプロセッサの時刻信号をCPU6に取り込んだりす
るように切り替えられる切替回路4および上記CPU6
から構成されている。
These are the clock generation circuit 2, the time counter 3, and the time signals output by the time counter 3 are simultaneously supplied to the CPU 6 and the common bus 8, and the time signals of other processors obtained from the common bus 8 are taken into the CPU 6. The switching circuit 4 and the CPU 6 that can be switched to
It consists of

第2図は上記プロセッサIAのほかに、同様の内部構成
を有するプロセッサIB、ICを設け。
In FIG. 2, in addition to the processor IA, a processor IB and an IC having a similar internal configuration are provided.

これらを一つの共通バス8に接続したこの発明のマルチ
プロセッサシステムを示すブロック接続図である。この
第2図では、各プロセッサIA〜ICにおける切替回路
4を、3つのスイッチ接点A。
2 is a block connection diagram showing a multiprocessor system of the present invention in which these are connected to one common bus 8. FIG. In FIG. 2, the switching circuit 4 in each of the processors IA to IC is connected to three switch contacts A.

B、Cとスイッチ接片りとによって概念的に示しである
It is conceptually illustrated by B, C and a switch contact piece.

次に動作について説明する。まず、切替回路4の接片り
が接点A、B、Cの全部に接続されているとき、タイム
カウンタ3のカウントアツプ出力がCPU6のノンマス
カブルインタラブド(以下、NMIという)端子に入力
される1例えば、プロセッサIAのクロック発生回路2
で発生したクロックをカウントしているタイムカウンタ
3が、カウントアツプ出力を発生したとき、このカウン
トアツプによる時刻更新信号は、切替回路4によってC
PU6のNMI端子に入力さ村ると同時に、時刻更新伝
達信号線7を介して共通バス8にも伝えられる。一方、
CPU6に入力される信号はCPU6のNMI端子に入
力されるため、CPU6がどの様な動作を行っていても
、必ずCPU6によって検出され、プロセッサIAの時
刻更新が行われる。
Next, the operation will be explained. First, when the contact piece of the switching circuit 4 is connected to all contacts A, B, and C, the count-up output of the time counter 3 is input to the non-maskable interconnected (hereinafter referred to as NMI) terminal of the CPU 6. For example, clock generation circuit 2 of processor IA
When the time counter 3 that counts the clock generated in
At the same time as being input to the NMI terminal of the PU 6, it is also transmitted to the common bus 8 via the time update transmission signal line 7. on the other hand,
Since the signal input to the CPU 6 is input to the NMI terminal of the CPU 6, no matter what operation the CPU 6 is performing, it is always detected by the CPU 6 and the time of the processor IA is updated.

一方、切替回路4によってプロセッサIAのタイムカウ
ンタ3からの信号がしゃ断されると、このプロセッサI
Aのタイムカウンタ3がたとえクロックのカウントアツ
プ出力を発生したとしても、このプロセッサIAの切替
回路の接点A、Bは切り離され、接点B、Cのみが接続
され、この信号は無視されてしまう、この場合、共通バ
ス8を介して他のプロセッサIB、ICから時刻更新伝
達信号線7を介して送られてきた時刻更新信号のみが、
CPU6のNMI端子に入力される。
On the other hand, when the signal from the time counter 3 of the processor IA is cut off by the switching circuit 4, this processor IA
Even if the time counter 3 of A generates a clock count-up output, contacts A and B of the switching circuit of this processor IA are disconnected, only contacts B and C are connected, and this signal is ignored. In this case, only the time update signal sent via the time update transmission signal line 7 from the other processors IB and IC via the common bus 8 is
It is input to the NMI terminal of the CPU 6.

第2図の構成でわかるように、プロセッサIAのタイム
カウンタ3がカウントアツプしたとき。
As can be seen from the configuration in FIG. 2, when the time counter 3 of the processor IA counts up.

時刻更新信号はプロセッサIAのCPU6とともに、プ
ロセッサIB、ICの各CPU6にも同時に伝達される
。そして、あとは、最初の時刻更新信号を全プロセッサ
IA〜ICが同時に受信するようにすれば、マルチプロ
セッサでの時刻の同期を取ることができる。第3図はか
かる時刻の同期およびシステムスタート処理の手順を示
すフロー図であり、これについて説明すると、次の通り
である。まず、マルチプロセッサシステムの電源オン又
は全プロセッサIA〜ICのリセットによって、各プロ
セッサIA〜ICで実行されるべき制御指令を出す、各
プロセッサIA〜ICは自己のプロセッサのオンボード
初期化を行い(ステップ5TI)、全プロセッサIA〜
ICの初期化が完了するまでの時間、ループする1次に
、各プロセッサIA〜ICは自己のタイムカウンタ3を
初期化して、タイムカウンタ3にカウント動作を開始さ
せる(ステップ5T2)、続いて、第1回目のNMI割
込みが発生するのを待つ(ステップ5T3)、こうして
、タイムカウンタ3がカウントアツプしたときで、切替
回路4の接点A、Cが接続されているとき、又は共通バ
ス8の時刻更新伝達信号線7を通して1時刻更新信号が
入力されると。
The time update signal is simultaneously transmitted to the CPU 6 of the processor IA as well as to each CPU 6 of the processors IB and IC. Then, by making all the processors IA to IC simultaneously receive the first time update signal, time synchronization among the multiprocessors can be achieved. FIG. 3 is a flowchart showing the procedure for time synchronization and system start processing, which will be explained as follows. First, by powering on the multiprocessor system or resetting all processors IA-IC, each processor IA-IC issues a control command to be executed by each processor IA-IC, and each processor IA-IC performs onboard initialization of its own processor ( Step 5TI), all processors IA~
The time until the initialization of the IC is completed is a loop. Next, each processor IA to IC initializes its own time counter 3 and causes the time counter 3 to start counting operation (step 5T2), and then, Wait for the first NMI interrupt to occur (step 5T3). In this way, when the time counter 3 counts up and contacts A and C of the switching circuit 4 are connected, or when the time of the common bus 8 When a 1-time update signal is input through the update transmission signal line 7.

ステップST3のループを抜け、通常のシステムソフト
ウェアの動作を開始する(ステップ5T4)。
The loop of step ST3 is exited, and normal system software operation is started (step 5T4).

これによって、全てのプロセッサIA〜ICはスタート
が同じ全ボード共通の時刻を待つことになる。
As a result, all the processors IA to IC wait for the common start time for all boards.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、タイムカウンタのカ
ウントアツプ信号を共通バス及びオンボード上のCPU
に出力するか、又は二〇〇PUへのカウントアツプ信号
は共通バスから入力するかを切り替える切替回路を設け
、共通バス上の信号線を通して、カウントアツプ信号を
他のプロセッサに同時に伝達するように構成したので、
従来と同様に、プロセッサの主メモリに時刻を保持する
ことができるとともに、マルチプロセッサで高速にアク
セスできる共通の時刻を持つことができるものが得られ
る効果がある。
As described above, according to the present invention, the count-up signal of the time counter is transmitted to the common bus and the on-board CPU.
A switching circuit is provided to switch between outputting the count-up signal to the 200 PU, or inputting the count-up signal to the 200 PU from the common bus, so that the count-up signal is simultaneously transmitted to other processors through the signal line on the common bus. Since I configured it,
As in the past, the time can be held in the main memory of the processor, and the advantage is that it is possible to have a common time that can be accessed quickly by multiple processors.

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

第1図はこの発明の一実施例によるマルチプロセッサシ
ステムのプロセッサを示すブロック接続図、第2図はこ
の発明のマルチプロセッサ、システムの全体を示すブロ
ック接続図、第3図はこの発明による時刻の同期処理の
手順を示すフロー図、第4図は従来のマルチプロセッサ
システムを示すブロック接続図、第5図は従来のプロセ
ッサを示すブロック接続図である。 LA、IB、ICはプロセッサ、2はクロック発生回路
、3はタイムカウンタ、4は切替回路、6は中央処理袋
! (CPU) 、8は共通バス。 なお、図中、同一符号は同一、又は相当部分を示す。 特許出願人  三菱電機株式会社 1Aニア0でツ″づ″ 第 図 第 図 1B。IC−7口t、、”i 第 図
FIG. 1 is a block connection diagram showing a processor of a multiprocessor system according to an embodiment of the invention, FIG. 2 is a block connection diagram showing the entire multiprocessor system of the invention, and FIG. FIG. 4 is a flowchart showing the procedure of synchronization processing, FIG. 4 is a block connection diagram showing a conventional multiprocessor system, and FIG. 5 is a block connection diagram showing a conventional processor. LA, IB, and IC are processors, 2 is a clock generation circuit, 3 is a time counter, 4 is a switching circuit, and 6 is a central processing bag! (CPU), 8 is a common bus. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Patent Applicant: Mitsubishi Electric Corporation 1A Near 0 "Tsu" Figure Figure 1B. IC-7 t,,”i Fig.

Claims (1)

【特許請求の範囲】[Claims] 1つの共通バスに接続された複数のプロセッサと、これ
らの各プロセッサに設けられてクロックを発生するクロ
ック発生回路と、上記各プロセッサに設けられて、上記
クロック発生回路からのクロックをカウントするタイム
カウンタと、上記各プロセッサに設けられて、上記タイ
ムカウンタからの時刻信号を受けて時刻更新を行う中央
処理装置と、上記タイムカウンタからの時刻信号を上記
中央処理装置に入力するとともに、上記共通バス上に設
けた専用信号線に出力したり、または他のプロセッサの
タイムカウンタから上記共通バスの専用信号線に出力さ
れた時刻信号のみを、自己プロセッサの中央処理装置に
入力したりするように切り替えられる切替回路とを備え
たマルチプロセッサシステム。
A plurality of processors connected to one common bus, a clock generation circuit provided in each of these processors to generate a clock, and a time counter provided in each of the processors to count the clock from the clock generation circuit. and a central processing unit provided in each of the processors, which receives a time signal from the time counter and updates the time; and a central processing unit that inputs the time signal from the time counter to the central processing unit, and a It can be switched to output to the dedicated signal line provided on the common bus, or to input only the time signal output from the time counter of another processor to the dedicated signal line of the common bus to the central processing unit of the own processor. A multiprocessor system equipped with a switching circuit.
JP1036353A 1989-02-17 1989-02-17 Multiprocessor system Pending JPH02216574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1036353A JPH02216574A (en) 1989-02-17 1989-02-17 Multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1036353A JPH02216574A (en) 1989-02-17 1989-02-17 Multiprocessor system

Publications (1)

Publication Number Publication Date
JPH02216574A true JPH02216574A (en) 1990-08-29

Family

ID=12467474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1036353A Pending JPH02216574A (en) 1989-02-17 1989-02-17 Multiprocessor system

Country Status (1)

Country Link
JP (1) JPH02216574A (en)

Similar Documents

Publication Publication Date Title
JP2676966B2 (en) Single chip microcomputer
KR100301720B1 (en) Clock control device and method
EP0619055B1 (en) Apparatus for generating and sending a serial data packet for controlling a network of single point i/o devices
JPH08123520A (en) Driving control commanding device, system and method for controlling synchronism between plural driving control commanders
JPH02216574A (en) Multiprocessor system
JP2573297B2 (en) Digital controller for power control
US6823413B2 (en) Interrupt signal processing apparatus
JPH076155A (en) Single chip microcomputer
KR20010049380A (en) Microcomputer
JPH0876822A (en) Drive control command device and synchronization control system and method for plural drive control command devices
EP0175748B1 (en) Parallel synchronous operation
JP2706390B2 (en) Vector unit usage right switching control method using multiple scalar units
JPH06187066A (en) Microprocessor with plural cpu
JPS6198426A (en) Microcomputer containing clock frequency switching function
JPH04167043A (en) Portable electronic equipment
JPH02162457A (en) Multiprocessor system
JPS61131057A (en) Serial i/o system
JPH07146846A (en) Multiprocessor system
KR0180643B1 (en) Interrupt control circuit
JP2948873B2 (en) Bus control method
JPH01161472A (en) Multiprocessor
KR0126579B1 (en) State control method for interrupting requester on hipit bus
JPS63227149A (en) Communication control method in loop communication system
JPH06291768A (en) Signal transmission controller
JP2000330702A (en) Input device sharing system