JPS59100966A - Shared bus control system of multiprocessor system - Google Patents

Shared bus control system of multiprocessor system

Info

Publication number
JPS59100966A
JPS59100966A JP57211147A JP21114782A JPS59100966A JP S59100966 A JPS59100966 A JP S59100966A JP 57211147 A JP57211147 A JP 57211147A JP 21114782 A JP21114782 A JP 21114782A JP S59100966 A JPS59100966 A JP S59100966A
Authority
JP
Japan
Prior art keywords
bus
processor
clock
bus control
control circuit
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
JP57211147A
Other languages
Japanese (ja)
Inventor
Kenji Kato
謙治 加藤
Kikuma Kondou
近藤 喜久馬
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP57211147A priority Critical patent/JPS59100966A/en
Publication of JPS59100966A publication Critical patent/JPS59100966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/368Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To attain a detailed analysis of a system operation or a debug in a lock mode by invalidating forcibly the holding function of bus control right in a mode where the clocks are produced discretely with step operations. CONSTITUTION:Just a clock *PCLK is produced from a clock control circuit 16 when another processor writes a command for generation of a single clock to a register within a processor control circuit 12. Thus a processor system 1 has its state advanced by an amount equivalent to a clock. In this case, a bus control right holding request signal *LOCK is never delivered to a bus control circuit 13 although the bus control right holding request *LOCK RQ is delivered from a processor circuit 11 since the bus control right holding invalid signal *STEP is supplied to a bus control right holding control circuit 14. Therefore other processors can use a shared bus after an instruction for use of the shared bus is executed.

Description

【発明の詳細な説明】 発明の技術分野 本発明は、共有バスに複数個のプロセッサシステムが接
続されたマルチプロセッサシステムにおける共有バス支
配権の保持機能の制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a control method for a shared bus dominance holding function in a multiprocessor system in which a plurality of processor systems are connected to a shared bus.

従来技術と問題点 マルチプロセッサシステムには、あるプロセッサシステ
ムか共有バスを介して共有メモリをリード(読取り)し
たとき続いてライ1〜(書込み)し終るまで共有ハスを
独占する機能を持たせたものかある。この機能はハスの
支配権保持機能と呼ばれ、例えばフラグのテスl−とセ
ットを連続的に実行するときに有用である(ハス支配権
の放棄がテストとセントの間に入ってこの間に他のプロ
センサシステムが割り込み、該フラグを書換えたりする
恐れかなくて済む)。このハス支配権保持機能(ロック
機能)は当該機能を使用するプロセッサ自体が制御して
おり、他のプロセッサが介入することはできない。
Prior Art and Problems A multiprocessor system has a function that monopolizes the shared memory when a certain processor system reads the shared memory via the shared bus until the next write is completed. There are things. This function is called the lotus control retention function, and is useful, for example, when executing flag test l- and set consecutively (hasu control relinquishment occurs between test and cent, and other There is no need to worry about the processor's processor system interrupting and rewriting the flag). This lotus control right holding function (lock function) is controlled by the processor itself that uses the function, and other processors cannot intervene.

ところで、クロックを離散的に与えるステップ動作は例
えばプログラムのデバッグに用いられ、−命令実行され
る毎に別のプロセッサが当該(被デハソグ)プロセッサ
システムの状態を調べてディスプレイなどに表示するが
、このとき被デハソグプロセソザがバス支配権保持機能
を一度有効にしてしまうと上記別のプロセッサはバスを
使うことができず、パス支配権保持機能が解除されるま
では当該プロセッサシステムの状態を調べることができ
ず、シングルステップ毎の状態取込み(モニタ)は不可
能になる。
By the way, the step operation that provides a clock discretely is used, for example, to debug a program, and each time an instruction is executed, another processor checks the status of the processor system in question (to be debugged) and displays it on a display. Once the bus mastership retaining function is enabled by the processor being deactivated, the other processor cannot use the bus and cannot control the state of the processor system until the path mastership retaining function is released. This makes it impossible to monitor the status for each single step.

発明の目的 上述したようにバス支配権保持機能はフラグのテストア
ンドセントのようにリードしたのちライトし、この間の
他のプロセッサシステムの介入を排除する目的には有用
であるが、デバッグ等には有害である。そこで本発明で
は後者の場合に強制的にハス支配権保持機能を無効にし
ようとするものである。
Purpose of the Invention As mentioned above, the bus mastership retaining function is useful for reading and writing flags like test-and-sent, and eliminating interference from other processor systems during this time, but it is useful for debugging etc. Harmful. Therefore, the present invention attempts to forcibly disable the lotus control right holding function in the latter case.

発明の構成 本発明は、複数のプロセッサシステムで同じノλスを共
有し、そして該プロセッサシステムが複数命令の実行に
亘ってパスを独占するバス支配権保持機能を有するマル
チプロセッサシステムの共通ノ\ス制御方式において、
プロセッサシステムがクロックを離散的に発生してステ
ップ動作するモードでは該ハス支配権保持機能を強制的
に無効とされることを特徴とするが、以下図示の実施例
を参照しながらこれを詳細に説明する。
Composition of the Invention The present invention provides a common node for a multiprocessor system in which a plurality of processor systems share the same bus, and the processor system has a function of retaining bus dominance to monopolize the path over the execution of multiple instructions. In the control method,
In a mode in which the processor system generates clocks discretely and operates in steps, the feature is that the lotus control holding function is forcibly disabled, and this will be explained in detail below with reference to the illustrated embodiment. explain.

発明の実施例 第1図はマルチプロセッサシステムの一例で、第1のプ
ロセッサシステム1、第2のプロセッサシステム2、I
10制御システム3、共有メモリ4か共有ハス5で接続
されている。共有ハス5を複数のシステム1.2か同時
に使おうとした場合には、予め各システムに割付けられ
たハス支配優先順位に従い、高順位のものがハスを獲得
するのが一般的である。通當はハスを使う命令の実行が
終了すると、一旦ハスの支配権を放棄し、次にハスを使
う命令の実行の際に改めてハス支配権要求を発行する。
Embodiment of the Invention FIG. 1 shows an example of a multiprocessor system, in which a first processor system 1, a second processor system 2,
10 control systems 3 and shared memory 4 or shared lotus 5 are connected to each other. When a plurality of systems 1.2 try to use the shared lotus 5 at the same time, the lotus control priority assigned to each system in advance is generally followed, and the system with a higher rank acquires the lotus. When the execution of the command to use the lotus is completed, the master relinquishes control of the lotus, and issues a new request for control of the lotus when the next command to use the lotus is executed.

しかしながら、例えは各プロセッサ1゜2に共通のフラ
グをメモリ4内に設げておき、そのフラグの状態により
他のプロセッサの状態を知るような機構になっている場
合、フラグを読んで判断した結果を同じフラグに書込む
ことがある。
However, for example, if a common flag is set in the memory 4 for each processor 1 and 2, and the state of the other processors is known from the state of that flag, it is possible to make a decision by reading the flag. Results may be written to the same flag.

このような場合、読んだ段階でハス5を解放してしまう
と他のプロセッサが割込んでこのフラグを変更してしま
う可能性があり、読出した時点と書込む時点ではフラグ
の内容が異なり、他のプロセッサの状態を誤って認識し
てしまう恐れがある。
In such a case, if you release Has5 at the stage of reading, there is a possibility that another processor will interrupt and change this flag, and the contents of the flag will be different between the time of reading and the time of writing. There is a risk of erroneously recognizing the status of other processors.

このような場合には前述のパス支配権保持機構を利用し
て、フラグを読んでから書込むまでの間はたとえ優先順
位の高いハス要求が発生してもハス支配権を放棄しない
ようにする。
In such a case, use the above-mentioned path ownership retention mechanism to ensure that the path ownership is not relinquished even if a higher-priority lotus request occurs between the time the flag is read and the flag is written. .

ところが、プロセッサクロックを連続的ではなく、離散
的に与えるステップモードにおいて、クロック毎に他の
プロセッサがこのプロセッサの状態を調べてプログラム
の実行結果をチェックする場合には以下に述べる不都合
が生じる。ずなわしこのステップモードは例えばプログ
ラムのデバッグ時に用いられるが、デバッグの際には1
命令実行毎に実行結果が調べられることが必要である。
However, in the step mode in which the processor clock is applied not continuously but discretely, when another processor checks the state of this processor every clock to check the execution result of the program, the following disadvantages occur. This step mode is used, for example, when debugging a program;
It is necessary to check the execution result every time an instruction is executed.

しかるに、従来の方式では一旦バス支配権保持機構を有
効にしてしまうと他のプロセッサはハスが使えないので
、ハス支配権保持機構が無効にされるまでは共有パスを
用いたチェックが実行できない。つまり、ステップモー
ドを用いてもデバッグに必要な情報が得られないという
欠点がある。
However, in the conventional method, once the bus mastership holding mechanism is enabled, other processors cannot use the bus, so a check using a shared path cannot be executed until the bus mastership holding mechanism is disabled. In other words, even if step mode is used, information necessary for debugging cannot be obtained.

第2図は本発明の一実施例を示すフロック図である。本
例のプロセッサシステム1ばプロセッサ回路11.プロ
センサ制御回路12.ハス制御回路13.ハス支配権保
持制御回路14.クロック発生回路15.クロック制御
回路16等により構成されている。ステップモードにす
るには他のプロセッサくプロセッサシステム2とする)
かプロセッサ制御回路12内のレジスタにステップモー
ドを指示するコマンドを書込む。レジスタからの出力(
NORM/ * 5TEP)はクロ・7り制御回路16
及びハス支配権保持回路14に接続されており、そのう
ち* 5TEPはプロセッサクロック(* PCLK)
を停止し、且つハス支配権保持信号(* LOCK)を
無効とする。他のプロセッサがプロセッサ制j〕11回
路12内のレジスタにシングルクロック発生を指示する
コマ二/トを書込むとクロック制御回路1Gからクロッ
ク* PCLKが一発のみ発生され、プロセッサシステ
ム1は1クロック分状憇が進行する。この際にプロセッ
サ回路11よりハス支配権保持要求(* LOCK R
Q )が発行されても、前述のようにバス支配権保持制
御回路14にバス支配権保持無効信号(* 5TEP)
が入力されている為、バス制御回路13にハス支配権保
持要求信号(* LOCK)が発行されることはない。
FIG. 2 is a block diagram showing one embodiment of the present invention. The processor system 1 of this example has a processor circuit 11. Prosensor control circuit 12. Lotus control circuit 13. Hass dominance retention control circuit 14. Clock generation circuit 15. It is composed of a clock control circuit 16 and the like. To enter step mode, use another processor (processor system 2)
or writes a command instructing the step mode to a register in the processor control circuit 12. Output from register (
NORM/*5TEP) is the black/7ri control circuit 16
and the Hass control right holding circuit 14, of which *5 TEP are processor clocks (*PCLK).
and invalidates the lotus control right holding signal (*LOCK). When another processor writes a command to instruct the generation of a single clock to the register in the processor system 11 circuit 12, only one clock * PCLK is generated from the clock control circuit 1G, and the processor system 1 receives one clock. The disease progresses. At this time, the processor circuit 11 issues a request to retain control of the lotus (* LOCK R
Q) is issued, the bus mastership retaining invalid signal (*5TEP) is sent to the bus mastership retaining control circuit 14 as described above.
is input, the lotus control right holding request signal (*LOCK) is not issued to the bus control circuit 13.

従って共有バスを使用する命令の実行が終了するとバス
は解放され、他のプロセッサが共有ハスを使うことがで
き、必要な情報を読すことが可能となる。
Therefore, when the execution of an instruction using the shared bus is completed, the bus is released, allowing other processors to use the shared bus and read necessary information.

第3図はハス支配権保持制御回路14の詳細である。1
41,142は非同期信号を同期化する為のフリップフ
ロップで、プロセッサ制御回路12内のレジスタからの
出力の中のステップモードを指示する信号(* 5TE
P :これはクロックに非同期)を当該プロセッサ用の
クロックのうち停止させられることのないクロック(O
PC)で同期化する。143はナントゲートでプロセッ
サ回路11からのバス支配権保持要求信号(* LOI
IJ RQ )にゲートをかけ、ステップモード時はこ
れを無効とするものである。第4図にタイミングを示す
FIG. 3 shows details of the lotus dominance holding control circuit 14. 1
41 and 142 are flip-flops for synchronizing asynchronous signals, and a signal (*5TE
P: This is a clock asynchronous to the clock) and a clock for the processor that cannot be stopped (O
PC). 143 is a Nant gate that receives a bus mastership holding request signal (*LOI) from the processor circuit 11;
IJ RQ ) and is disabled in step mode. Figure 4 shows the timing.

opcはクロック発生回路15で発生する同期用のクロ
ックである。プロセッサ制御回路12の出力NORM/
 * 5TEPがL(ロー)レベルになると、第3図に
示すフリップフロップ142の出力NORMは2クロツ
ク遅れてLになる。即ちNORM/ * 5TE)’が
Lレベルになった後の最初のクロックOPCの立上りで
該Lレベルはフリップフロップ141に取込まれてその
Q出力をLにし、次のクロックOPCの立上りで該Q出
力のLレベルがフリップフロップ142に取込まれてそ
のQ出力NORMをLにする。NORM=Lはステップ
モードを示し、ゲー1−143を閉してプロセッサ回路
11からのハス支配権保持要求LOCK RQを無効に
する。つまり、*LOCRをH(ハイ)レベルにする。
opc is a synchronization clock generated by the clock generation circuit 15. Output NORM/ of processor control circuit 12
* When 5TEP goes to L (low) level, the output NORM of flip-flop 142 shown in FIG. 3 goes to L with a delay of two clocks. That is, at the first rise of the clock OPC after NORM/*5TE)' becomes L level, the L level is taken into the flip-flop 141 and its Q output becomes L, and at the next rise of the clock OPC, the Q output becomes L. The L level of the output is taken into the flip-flop 142 and its Q output NORM is set to L. NORM=L indicates step mode, closes the gate 1-143, and invalidates the lotus control holding request LOCK RQ from the processor circuit 11. In other words, *LOCR is set to H (high) level.

この* LOCKはバス制御回路13を通して共有ハス
の適所に接続されたハスプライオリティ−のエンコーダ
に与えられ、該エンコーダは* LOCK= Lであれ
ばそれを出したプロセッサシステム1に共有バス5を独
占させるが、* LOCK= Hならバスロックはない
ものと判断し、通常の優先順位に従ってハス使用リクエ
ストを処理する。こうして* 5TEPがLつまりデバ
ッグモードならバス支配権保持機能は強制的に解除され
る。このロック解除機構は被デバソグプロセソサシステ
ムに持たせ、デバソグプロセソサシステムには持たせな
くてもよい。
This *LOCK is given through the bus control circuit 13 to a lotus priority encoder connected to a suitable location on the shared bus, and if the encoder *LOCK=L, it allows the processor system 1 that issued it to monopolize the shared bus 5. However, if *LOCK=H, it is determined that there is no bus lock, and the lotus use request is processed according to the normal priority order. In this way, if *5TEP is L, that is, in debug mode, the bus mastership holding function is forcibly canceled. This lock release mechanism may be provided in the debugging processor system, but not in the debugging processor system.

発明の効果 以上述べたように本発明によれば、ステップ動作時には
バス支配権保持機能を無効にすることができるのでプロ
セッサシステムの動作を細かく解析でき、ロックされて
いてもデバッグができる利点がある。
Effects of the Invention As described above, according to the present invention, the bus mastership holding function can be disabled during step operation, so the operation of the processor system can be analyzed in detail, and there is an advantage that debugging can be performed even when the system is locked. .

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

第1図は一般的なマルチプロセッサシステムの構成を示
すブロック図、第2図は本発明の一実施例を示すブロッ
ク図、第3”図は本発明に係るハス支配権保持制御回路
の詳細図、第4図はタイミング図である。 図中、■、2はプロセッサシステム、5は共有ハス、1
4はバス支配権保持制御回路である。 出願人 富士通株式会社 代理人弁理士  青  柳    稔
Fig. 1 is a block diagram showing the configuration of a general multiprocessor system, Fig. 2 is a block diagram showing an embodiment of the present invention, and Fig. 3 is a detailed diagram of the lotus dominance holding control circuit according to the present invention. , Figure 4 is a timing diagram. In the figure, ■, 2 is a processor system, 5 is a shared hash, 1
4 is a bus mastership holding control circuit. Applicant Fujitsu Limited Representative Patent Attorney Minoru Aoyagi

Claims (1)

【特許請求の範囲】[Claims] 複数のプロセッサシステムで同じバスを共有し、そして
該プロセッサシステムが複数命令の実行に亘ってハスを
独占するバス支配権保持機能を有するマルチプロセッサ
システムの共通バス制御方式において、プロセッサシス
テムがクロックを離散的に発生してステップ動作するモ
ードでは該ハス支配権保持機能を強制的に無効とされる
ことを特徴とするマルチプロセッサシステムの共有バス
制御方式。
In a common bus control method for a multiprocessor system in which multiple processor systems share the same bus and the processor system has a function of retaining bus mastery to monopolize the bus over the execution of multiple instructions, the processor system uses a discrete clock. 1. A shared bus control method for a multiprocessor system, characterized in that in a mode in which a step operation occurs in a step mode, the lotus control right holding function is forcibly disabled.
JP57211147A 1982-12-01 1982-12-01 Shared bus control system of multiprocessor system Pending JPS59100966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57211147A JPS59100966A (en) 1982-12-01 1982-12-01 Shared bus control system of multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57211147A JPS59100966A (en) 1982-12-01 1982-12-01 Shared bus control system of multiprocessor system

Publications (1)

Publication Number Publication Date
JPS59100966A true JPS59100966A (en) 1984-06-11

Family

ID=16601153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57211147A Pending JPS59100966A (en) 1982-12-01 1982-12-01 Shared bus control system of multiprocessor system

Country Status (1)

Country Link
JP (1) JPS59100966A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0315949A (en) * 1989-06-13 1991-01-24 Nec Corp Debugging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0315949A (en) * 1989-06-13 1991-01-24 Nec Corp Debugging system

Similar Documents

Publication Publication Date Title
EP0537309B1 (en) System and method for preserving source instruction atomicity in translated program code
US5138713A (en) Multiprocessing computer system with exit logic and method for maintaining resource integrity
JPH02133834A (en) In-circuit emulator
EP0242879B1 (en) Data processor with wait control allowing high speed access
EP0194185A2 (en) Computer system having instruction surveillance configuration
US6263425B1 (en) Circuit that implements semaphores in a multiprocessor environment without reliance on atomic test and set operations of the processor cores
JPS59100966A (en) Shared bus control system of multiprocessor system
EP0297895A2 (en) Apparatus and method using lockout for synchronization of access to main memory signal groups in a multiprocessor data processing system
JPH01125633A (en) System for debugging multi-processing system
JPS62200449A (en) Semaphore control system
JP2587468B2 (en) Lock data setting device
JPH0355657A (en) Shared memory access method for multi-task/multi-processor system
JPH0365751A (en) Multiple processor system
JPH03232051A (en) Semaphore access control method
JPS62219058A (en) Exclusive control system for shared memory
JPH02210515A (en) System resetting system
KR950005523B1 (en) Step-run processing method of programmable logic controller
JPS5834856B2 (en) Kiokuseigiyosouchi
JP2547329B2 (en) Lock data setting device
JP3299361B2 (en) Multiprocessor system with shared memory
JPS63149737A (en) Multiprogramming processing system
JPH0365753A (en) Multiple processor system
JPH0467226B2 (en)
JPS6152763A (en) Data processing device
JPS59223873A (en) Control method of multi-processor