JPS63155351A - Multi-processor system - Google Patents
Multi-processor systemInfo
- Publication number
- JPS63155351A JPS63155351A JP30173386A JP30173386A JPS63155351A JP S63155351 A JPS63155351 A JP S63155351A JP 30173386 A JP30173386 A JP 30173386A JP 30173386 A JP30173386 A JP 30173386A JP S63155351 A JPS63155351 A JP S63155351A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- cpu
- system program
- flop
- flip
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/163—Interprocessor communication
- G06F15/167—Interprocessor communication using a common memory, e.g. mailbox
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、複数のCPUが共有ハスと共有メモリを打し
、該共有メモリ上に少なくとも一個のCPUがそのシス
テムプログラムエリアをイ1−シていて、その他のCP
Uによりシステムプログラムエリアにシステムプログラ
ムか書込まれるマルチプロセッサに関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention provides a system in which a plurality of CPUs access a shared memory and a shared memory, and at least one CPU programs its system program area on the shared memory. and other CP
This invention relates to a multiprocessor in which a system program is written into a system program area by U.
従来、この種のマルチプロセッサシステムにおいては、
共有メモリにシステムプログラムがロードされた場合、
他のCPUのアクセスにより該システムプログラムが破
壊されるおそれがあった。Conventionally, in this type of multiprocessor system,
When a system program is loaded into shared memory,
There was a risk that the system program would be destroyed by access by other CPUs.
本発明の目的は、共有メモリ上のシステムプログラムの
保護を図り、システムの信頼性を図ったマルチプロセッ
サシステムを提供することである。An object of the present invention is to provide a multiprocessor system that protects system programs on a shared memory and improves system reliability.
本発明のマルチプロセッサシステムは、システムをリセ
ットするリセット信号によりセットされてイネーブル信
号を出力し、共有メモリ上の前記システムプログラムエ
リアにシステムプログラムを書込んだCPUの出力した
クリア信号によりリセットされてイネーブル信号の出力
を停止するフリップフロップと、共有ハスに接続され、
フリップフロップからイネーブル信号が出力されている
とき、システムプログラムエリアを有するCPUにホー
ルド要求信号を出力し、該ホールド要求信号に応答する
CPUからの応答信号と、前記その他のCPUからの共
有メモリに対するアクセスを要求するリクエスト信号を
入力したとき、共有バスから入力されたシステムプログ
ラムエリアをアクセスするアドレスに対応するシステム
プログラムエリアのチップを選択する選択信号のみを出
力し、フリップフロップからイネーブル信号が出力され
ていないときは、前記リクエスト信号を入力したとき前
記ホールド要求信号を出力し、この信号に応答する前記
応答信号を入力したとき、入力されたシステムプログラ
ムエリア以外のエリアをアクセスするアドレスに対応す
るシステムプログラムエリア以外のチップを選択する選
択信号のみを出力するデコーダとを存している。The multiprocessor system of the present invention is set by a reset signal that resets the system and outputs an enable signal, and is reset and enabled by a clear signal output by a CPU that writes a system program in the system program area on a shared memory. A flip-flop that stops outputting the signal and is connected to the shared hash,
When the enable signal is output from the flip-flop, a hold request signal is output to the CPU having the system program area, a response signal from the CPU in response to the hold request signal, and an access to the shared memory from the other CPUs. When a request signal requesting a system program area is input, only a selection signal is output to select the chip in the system program area corresponding to the address input from the shared bus to access the system program area, and an enable signal is not output from the flip-flop. If not, when the request signal is input, the hold request signal is output, and when the response signal that responds to this signal is input, the system program corresponding to the address accesses an area other than the input system program area. The decoder outputs only a selection signal for selecting a chip other than the area.
(作用)
したがって、共有メモリ内のシステムプログラムエリア
内に、該エリアを有するCPUのシステムプログラムが
ロードされた後はその他のcPUから該エリアへのアク
セスは一切禁止され、システムプログラムが破壊される
のを防ぐことができる。(Function) Therefore, after the system program of the CPU that has the area is loaded into the system program area in the shared memory, any access to the area from other cPUs is prohibited, and the system program may be destroyed. can be prevented.
(実施例)
次に、本発明の実施例について図面を参照して説明する
。(Example) Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明のマルチプロセッサシステムの一実施例
の構成を示すブロック図、第2図は本実施例の動作を示
すフローチャートである。FIG. 1 is a block diagram showing the configuration of an embodiment of a multiprocessor system according to the present invention, and FIG. 2 is a flowchart showing the operation of this embodiment.
CPU 1とCPU5はハy 772を介しテcpUハ
ス11と共有バス3で結合されている。共有メモリ9は
CPU5のプログラムメモリ6と、cPUlとCPU5
の間の通信のために用いられるデータメモリ7とから構
成されており、デコーダ8の出力する選択信号SEL、
、5EL2でそれぞれのチップか選択される。CPUメ
モリ4はCPUIの専用メモリで、したかって、CPU
Iは、CPUメモリ4と共有メモリ9をアクセスでき、
CPU5は、共有メモリ9のみをアクセスできる。The CPU 1 and the CPU 5 are connected to the CPU bus 11 via the high bus 772 and the shared bus 3. The shared memory 9 includes the program memory 6 of the CPU 5, cPUl and the CPU 5.
and a data memory 7 used for communication between the decoder 8 and the selection signal SEL output from the decoder 8
, 5EL2 selects each chip. CPU memory 4 is dedicated memory for the CPUI, so if you want to
I can access CPU memory 4 and shared memory 9,
The CPU 5 can only access the shared memory 9.
バッファ2はCPU5から出力されたホールド状態にあ
ることを示す応答信号^CKを入力したときオンとされ
て、これによりCPUバスIIと共有バス3の間が導通
する。フリップフロップ10は、CPUIとCPU5を
リセットするリセット信号R5Tがオンとされたときセ
ットされてイネーブル信号ENBをデコーダ8に出力し
、CPUIからのクリアイ言号CLRがオンになるとリ
セットされてイネーブル信号ENBの出力を停止する。The buffer 2 is turned on when it receives a response signal CK output from the CPU 5 indicating that it is in a hold state, thereby establishing conduction between the CPU bus II and the shared bus 3. The flip-flop 10 is set when the reset signal R5T that resets the CPUI and the CPU 5 is turned on and outputs the enable signal ENB to the decoder 8, and is reset when the clear enable signal CLR from the CPUI is turned on and outputs the enable signal ENB. Stop outputting.
デコーダ8は共有メモリ9のプログラムメモリ6とデー
タメモリ7を選択する回路で、フリップフロップ!0か
らイネーブル信号ENBを入力したときCPU5にホー
ルドをかけるホールド要求信号l0LDを出力し、CP
UIから共有メモリ9に対するアクセスを要求するリク
エスト信号nEQとCPU5からの応答信号へGKを入
力したとき、共有バス3から入力されたアドレスに応じ
て選択信号SEL、を出力し、イネーブル信号ENBか
オフのときは、リクエスト信号REQが入力されたとき
ホールド要求信号HOLDを出力し、応答信号へCにが
入力したとき、共有バス3から入力されたアドレスに応
じて選択信号SEL、を出力する。The decoder 8 is a circuit that selects the program memory 6 and data memory 7 of the shared memory 9, and is a flip-flop! When the enable signal ENB is input from 0, it outputs a hold request signal l0LD that applies a hold to the CPU5, and
When GK is input to the request signal nEQ requesting access to the shared memory 9 from the UI and the response signal from the CPU 5, the selection signal SEL is output according to the address input from the shared bus 3, and the enable signal ENB is turned off. In this case, when the request signal REQ is input, a hold request signal HOLD is output, and when the response signal C is input, a selection signal SEL is output according to the address input from the shared bus 3.
次に、本実施例の動作を第2図のフローチャートを参照
して説明する。Next, the operation of this embodiment will be explained with reference to the flowchart of FIG.
電源が投入されるとシステムは初期状態となり、リセッ
ト信号R5Tかオンとされ、CPLIIおよびcpus
がリセット状態となる。フリップフロップ10はセット
されイネーブル信号ENBがオンとなり、デコーダ8は
、CPU5にホールド要求信号+10LI)を出力する
(ステップ21)。リセット信号R5Tかオフに戻ると
cpusはリセット状態からホールド状態となり、ホー
ルド状態を示す応答信号へCKを出力する(ステップ2
2)。When the power is turned on, the system enters the initial state, the reset signal R5T is turned on, and the CPLII and CPU
is in the reset state. The flip-flop 10 is set and the enable signal ENB is turned on, and the decoder 8 outputs a hold request signal +10LI) to the CPU 5 (step 21). When the reset signal R5T returns to OFF, the CPU changes from the reset state to the hold state, and outputs CK to the response signal indicating the hold state (step 2
2).
次に、CPUIはCPU5のプログラムをプログラムメ
モリ6に書込む(ステップ23)。書込みの手順は、ま
ずCPU1がリクエスト信号REQをオンにし、デコー
ダ8に共有メモリ9のアクセス要求を行なう。このとき
CPU5はすでにホールド状態にあり、バスバッファ2
は応答信号ACにによりオンとされているのでCPUバ
ス11の信号(アドレス、データ等)が共有バス3に出
力される。デコーダ8は、イネーブル信号ENBが出力
されているので共有バス3上のアドレスをデコードしプ
ログラムメモリ6の選択信号SEL、をオンにし、共有
バス3上のデータをプログラムメモリ6に書込む。書込
みが終了すると、CPU1はリクエスト信号REQをオ
フにしアクセスを終了する。Next, the CPUI writes the program for the CPU 5 into the program memory 6 (step 23). In the write procedure, first, the CPU 1 turns on the request signal REQ and requests the decoder 8 to access the shared memory 9. At this time, the CPU 5 is already in a hold state, and the bus buffer 2
is turned on by the response signal AC, so the signals (address, data, etc.) on the CPU bus 11 are output to the shared bus 3. Since the enable signal ENB is output, the decoder 8 decodes the address on the shared bus 3, turns on the selection signal SEL of the program memory 6, and writes the data on the shared bus 3 into the program memory 6. When the writing is completed, the CPU 1 turns off the request signal REQ and ends the access.
すべてのプログラムの書込みが終了すると、CPU1は
クリア信号CLRをオンにしてフリップフロップ10を
リセットし、こわによりイネーブル信号ENBの出力が
停止されるのでデコーダ8からの選択信号SEL、によ
るプログラムメモリ6へのCPU lからのアクセスが
禁止される(ステップ24)。イネーブル信号ENBか
オフになると、デコーダ8は初期状態から保持していた
ホールト要求信号HOLDをオフにするので、CPUI
5はホールド状態が解除されてラン状態になり(ステッ
プ25)、CPU1がロードしたプログラム上を走る(
ステップ26)。When writing of all programs is completed, the CPU 1 turns on the clear signal CLR to reset the flip-flop 10, and since the output of the enable signal ENB is stopped due to stiffness, the output of the enable signal ENB is stopped, so the selection signal SEL from the decoder 8 is sent to the program memory 6. Access from CPU 1 is prohibited (step 24). When the enable signal ENB turns off, the decoder 8 turns off the halt request signal HOLD held from the initial state, so the CPU
5 is released from the hold state and enters the run state (step 25), and runs on the program loaded by CPU1 (
Step 26).
次に、CPU5がラン状態のときのcputの共有メモ
リ9に対するアクセスを説明する。Next, the access to the shared memory 9 by cput when the CPU 5 is in the running state will be explained.
CPUIがリクエスト信号REQをオンにすると、デコ
ーダ8はホールド要求信号HOLDをオンにする。cp
usがホールド状態になるとCPU5は応答信号へCに
をオンにする。応答信号へCにがオンになるとパスバッ
ファ2が開き、CPUバスIIトのデータが共有バス3
上に出力される。デコーダ8は、応答信号ACHのオン
状態を認めると共有ハス3上のアドレスをデコートし、
CPU 1が共有メモリ9のいずれのメモリをアクセス
要求しているかを見て、プログラムメモリ6への要求で
あわば、このときイネーブル信号ENBがオフになって
いるので選択信号S E L 、はオフのま)としてC
PU 1のアクセスを禁止し、データメモリ7への要求
であれば選択信号5EL2をオンにしてCPU1に対し
てメモリアクセスを行わせる。CPU1はリクエスト信
号REQをオフとし、アクセスを終了する。デコーダ8
はリクエスト信号REQのオフ状態を認めてホールト要
求信号+10Lflをオフにする。これによりcpus
はホールド状態からラン状態になり、応答(3qA(1
:Kをオフにする。When the CPUI turns on the request signal REQ, the decoder 8 turns on the hold request signal HOLD. cp
When us enters the hold state, the CPU 5 turns on the response signal C. When the response signal C is turned on, path buffer 2 is opened and the data on CPU bus II is transferred to shared bus 3.
is output above. When the decoder 8 recognizes the ON state of the response signal ACH, it decodes the address on the shared lotus 3,
Checking which memory in the shared memory 9 the CPU 1 is requesting to access, the request is made to the program memory 6, and since the enable signal ENB is off at this time, the selection signal SEL is turned off. (noma) as C
Access by the PU 1 is prohibited, and if the request is to the data memory 7, the selection signal 5EL2 is turned on to cause the CPU 1 to access the memory. The CPU 1 turns off the request signal REQ and ends the access. Decoder 8
recognizes the off state of the request signal REQ and turns off the halt request signal +10Lfl. This will cause cpus
changes from the hold state to the run state, and the response (3qA(1
: Turn off K.
以上述べたように、CPU5がラン状態になるとフリッ
プフロップlOによってCPUIからプログラムメモリ
6へのアクセスが禁止され、プログラムメモリ6の内容
が保護される。As described above, when the CPU 5 enters the run state, the flip-flop IO prohibits access from the CPU I to the program memory 6, and the contents of the program memory 6 are protected.
以上説明したように本発明は、共有メモリ内にシステム
プログラムエリアを有するCP[Jのシステムプログラ
ムを、他のCPUにより書き込んだ後は、該エリアに対
する他のCPUからのアクセスを禁止する信号を出力す
るフリップフロップおよびデコーダを設けることにより
、共有メモリ上に設定されたシステムプログラムの保護
を容易に実現することができて、システムの信頼性を向
上できる効果がある。As explained above, in the present invention, after a system program of a CP [J having a system program area in a shared memory is written by another CPU, a signal is output that prohibits access from the other CPU to the area. By providing a flip-flop and a decoder, it is possible to easily protect the system program set on the shared memory, which has the effect of improving the reliability of the system.
第1図は本発明のマルチプロセッサシステムの一実施例
を示すブロック図、第2図は本実施例の動作を示すフロ
ーチャートである。
1・・・cpu、 2・・・バッファ、3・・
・共有バス、 4・・−CPUメモリ、5・・・
CPU、 6・・・プログラムメモリ、7・・
・データメモリ、 8・・・デコーダ、9・・・共有
メモリ、 IO・・・フリップフロップ、11・・
・CPUバス、
RS T ・・・リセット信号、 GLR・・・クリ
ア信号、ENB・・・イネーブル信号、 REQ・・・
リクエスト信号、+10LD ・・・ホールド要求信号
、SEL、、 5EL2・・・通釈信号、AGK・・・
応答信号。FIG. 1 is a block diagram showing an embodiment of the multiprocessor system of the present invention, and FIG. 2 is a flowchart showing the operation of this embodiment. 1... CPU, 2... Buffer, 3...
・Shared bus, 4...-CPU memory, 5...
CPU, 6...Program memory, 7...
・Data memory, 8...Decoder, 9...Shared memory, IO...Flip-flop, 11...
・CPU bus, RST...Reset signal, GLR...Clear signal, ENB...Enable signal, REQ...
Request signal, +10LD...Hold request signal, SEL, 5EL2...Interpretation signal, AGK...
response signal.
Claims (1)
モリ上に少なくとも一個のCPUがそのシステムプログ
ラムエリアを有していて、その他のCPUによりシステ
ムプログラムエリアにシステムプログラムが書込まれる
マルチプロセッサにおいて、 システムをリセットするリセット信号によりセットされ
てイネーブル信号を出力し、共有メモリ上の前記システ
ムプログラムエリアにシステムプログラムを書込んだC
PUの出力したクリア信号によりリセットされてイネー
ブル信号の出力を停止するフリップフロップと、 共有バスに接続され、フリップフロップからイネーブル
信号が出力されているとき、システムプログラムエリア
を有するCPUにホールド要求信号を出力し、該ホール
ド要求信号に応答するCPUからの応答信号と、前記そ
の他のCPUからの共有メモリに対するアクセスを要求
するリクエスト信号を入力したとき、共有バスから入力
されたシステムプログラムエリアをアクセスするアドレ
スに対応するシステムプログラムエリアのチップを選択
する選択信号のみを出力し、フリップフロップからイネ
ーブル信号が出力されていないときは、前記リクエスト
信号を入力したとき前記ホールド要求信号を出力し、こ
の信号に応答する前記応答信号を入力したとき、入力さ
れたシステムプログラムエリア以外のエリアをアクセス
するアドレスに対応するシステムプログラムエリア以外
のチップを選択する選択信号のみを出力するデコーダと
を有することを特徴とするマルチプロセッサシステム。[Claims] A plurality of CPUs have a shared bus and a shared memory, at least one CPU has its system program area on the shared memory, and the other CPUs have a system program in the system program area. In the multiprocessor to be written, a C that is set by a reset signal that resets the system, outputs an enable signal, and writes the system program into the system program area on the shared memory.
A flip-flop that is reset by the clear signal output by the PU and stops outputting the enable signal, and a flip-flop that is connected to a shared bus and sends a hold request signal to the CPU that has the system program area when the enable signal is output from the flip-flop. An address for accessing the system program area input from the shared bus when a response signal from the CPU that responds to the hold request signal and a request signal requesting access to the shared memory from the other CPU are input. outputs only a selection signal for selecting a chip in the system program area corresponding to the flip-flop, and when the enable signal is not output from the flip-flop, outputs the hold request signal when the request signal is input, and responds to this signal. and a decoder that outputs only a selection signal for selecting a chip other than the system program area corresponding to the input address for accessing an area other than the system program area when the response signal is input. processor system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30173386A JPS63155351A (en) | 1986-12-19 | 1986-12-19 | Multi-processor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP30173386A JPS63155351A (en) | 1986-12-19 | 1986-12-19 | Multi-processor system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS63155351A true JPS63155351A (en) | 1988-06-28 |
Family
ID=17900504
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP30173386A Pending JPS63155351A (en) | 1986-12-19 | 1986-12-19 | Multi-processor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS63155351A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2497525A (en) * | 2011-12-12 | 2013-06-19 | St Microelectronics Ltd | Controlling shared memory data flow |
-
1986
- 1986-12-19 JP JP30173386A patent/JPS63155351A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2497525A (en) * | 2011-12-12 | 2013-06-19 | St Microelectronics Ltd | Controlling shared memory data flow |
| US9448951B2 (en) | 2011-12-12 | 2016-09-20 | Stmicroelectronics (Research & Development) Limited | Processor communications |
| US9842067B2 (en) | 2011-12-12 | 2017-12-12 | STMicroelectronics (R&D) Ltd. | Processor communications |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4282572A (en) | Multiprocessor memory access system | |
| JPS5812611B2 (en) | Data Tensou Seigiyohoushiki | |
| JPS61166652A (en) | Interruption generating system using exceptional memory protection | |
| JPH01263737A (en) | Emulation device | |
| JPS60173655A (en) | Memory system of multiprocessor | |
| JPS63310060A (en) | multiprocessor system | |
| JPH09311812A (en) | Microcomputer | |
| JP2946561B2 (en) | Multiprocessor system | |
| KR100604569B1 (en) | Multi-processor data communication device and mobile communication terminal including the device | |
| JPH02101560A (en) | Bus interface device | |
| JP3219422B2 (en) | Cache memory control method | |
| JPH0216667A (en) | Processor system | |
| JPS5840216B2 (en) | Test and set method | |
| JPH01310466A (en) | Multiprocessor system | |
| JPH0410159A (en) | Multi-cpu system | |
| KR20000025263A (en) | Bus control circuit | |
| JP2007328539A (en) | Bus system, bus slave and bus control method | |
| JPS60243763A (en) | Dual port memory control circuit | |
| JPH01300365A (en) | Exclusive control system for multi-processor system | |
| JPS63298555A (en) | Shared memory control system | |
| JPH0528090A (en) | Memory controller | |
| EP0472754A1 (en) | Multiprocessor system having selective global data replication | |
| JPS61206066A (en) | Memory address setting method | |
| JPH03131955A (en) | memory controller device | |
| JPS6298453A (en) | Shared memory control method |