JP2950875B2 - Synchronous control device - Google Patents
Synchronous control deviceInfo
- Publication number
- JP2950875B2 JP2950875B2 JP691190A JP691190A JP2950875B2 JP 2950875 B2 JP2950875 B2 JP 2950875B2 JP 691190 A JP691190 A JP 691190A JP 691190 A JP691190 A JP 691190A JP 2950875 B2 JP2950875 B2 JP 2950875B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- dsp
- processing
- control device
- synchronization
- 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 - Fee Related
Links
- 230000001360 synchronised effect Effects 0.000 title claims description 26
- 238000000034 method Methods 0.000 claims description 70
- 230000008569 process Effects 0.000 claims description 70
- 238000012790 confirmation Methods 0.000 claims description 63
- 235000019800 disodium phosphate Nutrition 0.000 description 97
- 238000010586 diagram Methods 0.000 description 9
- 230000001419 dependent effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101150115013 DSP1 gene Proteins 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Multi Processors (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、複数のプロセッサ、特にディジタル・シグ
ナル・プロセッサ(以下、単にDSPという)が共同して
処理を行う場合に、各DSPにおける処理の同期を取るた
めに用いられる同期制御装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Industrial application field) The present invention relates to a processing method in each DSP when a plurality of processors, particularly a digital signal processor (hereinafter, simply referred to as a DSP) jointly perform processing. The present invention relates to a synchronization control device used for synchronization.
(従来の技術) 最近、信号処理の分野でDSPが多用されている、DSP
は、プログラムによりソフト的にその動作を自由に変化
させることが可能である。その自由度から、より高速な
処理が必要な分野においてもDSPを使用したという要求
もある。この要求に答えてDSPは、パイプライン処理等
を行い、処理の高速化を図っている。しかしながら、単
一のDSPの能力は、それを構成する素子の高速化に限界
があることから、飛躍的な能力向上が望めない。このた
め、高速な処理を必要とする分野においては、複数のDS
Pが共同して処理を行うマルチプロセッサ処理が一般化
している。マルチプロセッサ処理を矛盾なく行うために
は各DSPにおける処理の同期を取る必要がある。(Prior Art) Recently, DSPs are frequently used in the field of signal processing.
Can freely change its operation by software using a program. Due to the degree of freedom, there is also a demand for using DSP even in fields that require faster processing. In response to this request, the DSP performs a pipeline process or the like to speed up the process. However, the performance of a single DSP cannot be expected to increase dramatically because the speed of the elements constituting the DSP is limited. Therefore, in fields requiring high-speed processing, multiple DS
Multiprocessor processing in which Ps work together is becoming common. In order to perform multiprocessor processing without contradiction, it is necessary to synchronize processing in each DSP.
従来、各DSPにおける処理の同期を取るために、割り
込み命令が使用されていたが、プログラムが複雑になる
ことから、最近、DSPにおいても処理の同期を取るため
の命令及び信号端子を備えるようになっている。Conventionally, interrupt instructions have been used to synchronize processing in each DSP.However, due to the complexity of the program, DSPs have recently provided instructions and signal terminals for synchronizing processing. Has become.
従来、このような分野の技術しては、「Third−Gener
ation TMS321 User's Guide(サード・ジェネレイシ
ョン ティエムエス320 ユーザーズガイド)」(1988
−8)テキサス・インスツルメンツ社(米)P.8−12に
記載されるものがあった。以下、その構成を図を用いて
説明する。Conventionally, as a technology in such a field, "Third-Gener
ation TMS321 User's Guide ”(1988)
-8) There was one described in Texas Instruments, Inc. (USA) P.8-12. Hereinafter, the configuration will be described with reference to the drawings.
第2図は、従来における2個のDSPの同期制御を行う
ための一接続例を示す図である。FIG. 2 is a diagram showing an example of a conventional connection for performing synchronous control of two DSPs.
第2図に示すように、DSP1,2は、それぞれ同期要求端
子F1−1,F2−1及び同期許可端子F1−2,F2−2を備えて
いる。さらに、同期要求端子F1−1と同期要求端子F2−
1とが接続されると共に、同期許可端子F1−2と同期許
可端子F2−2とが、接続されている。As shown in FIG. 2, the DSPs 1 and 2 have synchronization request terminals F1-1 and F2-1 and synchronization permission terminals F1-2 and F2-2, respectively. Further, a synchronization request terminal F1-1 and a synchronization request terminal F2-
1 are connected, and the synchronization permission terminals F1-2 and F2-2 are connected.
例えば、DSP1において、所定の同期命令が実行される
と、同期要求端子F1−1が論理“0"(活性状態)とな
る。この時、DSP1は同期許可端子F1−2が“0"となるま
で待ち状態となる。そして、同期要求端子F1−1を“1"
として前記同期命令を終了とする。For example, when a predetermined synchronization command is executed in the DSP 1, the synchronization request terminal F1-1 becomes logic "0" (active state). At this time, DSP1 is in a waiting state until the synchronization permission terminal F1-2 becomes "0". Then, the synchronization request terminal F1-1 is set to "1".
To terminate the synchronization command.
このように、一方のDSPの同期要求端子を他方のDSPの
同期許可端子に接続することで2個のDSPの同期を簡単
に取ることができる。In this way, by connecting the synchronization request terminal of one DSP to the synchronization permission terminal of the other DSP, the two DSPs can be easily synchronized.
しかしながら、3個以上のDSPの同期を取るために
は、例えば、第3図に示すような同期制御装置を設ける
必要がある。However, in order to synchronize three or more DSPs, it is necessary to provide, for example, a synchronization control device as shown in FIG.
第3図は、従来の同期制御装置10の一構成例を示す構
成ブロック図である。FIG. 3 is a configuration block diagram showing one configuration example of the conventional synchronization control device 10. As shown in FIG.
この同期制御装置10は、確認データP1〜P3用の入力端
子11,14,17、状態データQ1〜Q3用の入力端子12,15,18、
及び同期要求信号R1,R2,R3入力用の入力端子13,16,19を
有している。確認データP1〜P3及び状態データQ1〜Q3
は、図示しない例えば3個のDSPにそれぞれ設けられた
確認レジスタ及び状態レジスタのレジスタ値である。こ
こで、確認データP1〜P3は待ち状態にあるDSPが動作状
態に入るためにセットされるデータであり、状態データ
Q1〜Q3はDSPにより一意に定められる値、つまり、状態
データを見ることによりDSPが、どのような処理を行っ
ているかが分かるように設定されている。The synchronization control device 10 includes input terminals 11, 14, 17 for confirmation data P1 to P3, input terminals 12, 15, 18, for state data Q1 to Q3,
And input terminals 13, 16, and 19 for inputting synchronization request signals R1, R2, and R3. Confirmation data P1 to P3 and status data Q1 to Q3
Are register values of a confirmation register and a status register provided in, for example, three DSPs (not shown). Here, the confirmation data P1 to P3 are data set for the DSP in the waiting state to enter the operation state, and the state data
Q1 to Q3 are set to values uniquely determined by the DSP, that is, to see what processing the DSP is performing by looking at the state data.
さらに、確認データP1〜P3及び状態データQ1〜Q3の論
理の一致、不一致を取る一致回路20〜25が設けられると
共に、ANDゲート26,28,30及びORゲート27,29,31が設け
られている。そして、そのORゲート27,29,31のそれぞれ
の出力側には、同期許可信号S1,S2,S3用の出力端子32,3
3,34がそれぞれ接続されている。Further, coincidence circuits 20 to 25 for matching the logic of the confirmation data P1 to P3 and the logic of the status data Q1 to Q3 are provided, and AND gates 26, 28, 30 and OR gates 27, 29, 31 are provided. I have. The output terminals of the OR gates 27, 29, 31 have output terminals 32, 3 for the synchronization enable signals S1, S2, S3.
3,34 are connected respectively.
第4図は、第3図中の例えば一致回路20の内部回路図
である。FIG. 4 is an internal circuit diagram of, for example, the matching circuit 20 in FIG.
この一致回路20は、6ビット確認データP1入力用の入
力端子P1−0〜P1−5及び6ビット状態データQ1入力用
の入力端子Q1−0〜Q1−5を有している。さらに、それ
ら入力端子Q1−0〜Q1−5、P1〜0〜P1−5を介して確
認データP1と状態データQ1との論理の一致、不一致を取
る排他的論理ゲート20−1〜20−6が設けられている。
そして、排他的論理ゲート20−1〜20−6の各出力が多
入力ORゲート20−7に接続され、その他入力ORゲート20
−7が出力端子20−8に接続されている。The matching circuit 20 has input terminals P1-0 to P1-5 for inputting 6-bit confirmation data P1 and input terminals Q1-0 to Q1-5 for inputting 6-bit status data Q1. Further, exclusive logic gates 20-1 to 20-6 for determining whether the logic of the confirmation data P1 matches the status data Q1 via the input terminals Q1-0 to Q1-5 and P1 to 0 to P1-5. Is provided.
Each output of the exclusive logic gates 20-1 to 20-6 is connected to a multi-input OR gate 20-7, and the other input OR gates 20-7 are connected.
-7 is connected to the output terminal 20-8.
以上のように構成される同期制御装置は、次のように
動作する。The synchronous control device configured as described above operates as follows.
例えば、同期要求信号R1が活性化されると、確認デー
タP1と他のDSPの状態データQ2,Q3とが一致回路21,20で
それぞれ比較される。この時、状態データQ2,Q3の内、
1つでも確認データと等しいものが存在するならば、同
期許可端子32から同期許可信号S1が出力される。For example, when the synchronization request signal R1 is activated, the coincidence circuits 21 and 20 compare the confirmation data P1 with the status data Q2 and Q3 of other DSPs, respectively. At this time, of the status data Q2 and Q3,
If at least one of the confirmation data is equal to the confirmation data, a synchronization permission signal S1 is output from the synchronization permission terminal 32.
このように、3個以上のDSPを使用する場合でも、各D
SPにおける処理の同期を取ることができる。Thus, even when three or more DSPs are used, each D
The processing in the SP can be synchronized.
(発明が解決しようとする課題) しかしながら、上記構成の同期制御装置では、複数の
DSPの従属関係にある処理において、その各処理の必要
処理時間が大きく異なり、しかも1つの処理について実
際の処理時間が一定でないとき、無駄時間が発生し、各
DSPの持つ能力を最大限発揮できないという問題があっ
た。以下、図を用いて説明する。(Problems to be solved by the invention) However, in the synchronous control device having the above configuration, a plurality of
In the processing dependent on the DSP, when the required processing time of each processing is greatly different, and when the actual processing time is not constant for one processing, a dead time is generated.
There was a problem that the ability of DSP could not be fully utilized. Hereinafter, description will be made with reference to the drawings.
第5図(a),(b)は、最適な同期制御装置を用い
た場合のDSPの処理状態を示すタイムチャートであり、
同図(a)は処理b1の処理時間=2の場合、同図(b)
は処理b1の処理時間=8の場合、また第6図(a),
(b)は従来の同期制御装置を用いた場合のDSPの処理
状態を示すタイムチャートであり、同図(a)は処理b1
の処理時間=2の場合、同図(b)は処理b1の処理時間
=8の場合である。なお、説明を簡単にするために、前
記同期制御装置は、2個のDSPの同期を取るものとす
る。また、第5図及び第6図において、プロセッサAは
処理a1〜a3を順次行い、プロセッサAの状態レジスタ
は、初期状態4、処理a1終了時に5、処理a2終了時に6
処理a3終了時に7がセットされ、必要な処理時間は、処
理a1=8、処理a2=4、処理a3=3であるとする。さら
に、プロセッサBは処理b1〜b3を行い、プロセッサBの
状態レジスタは、初期状態が0、処理b1終了時に1、処
理b2終了時に2、処理b3終了時に3がセットされ、必要
な処理時間は、処理b1=2〜8、処理b2=2、処理b3=
4とする。処理b1は処理a1の結果を使用し、同様に処理
b2は処理a2の結果を、処理b3は処理a3の結果を使用する
ものとする。FIGS. 5 (a) and 5 (b) are time charts showing the processing states of the DSP when the optimal synchronization control device is used,
FIG. 11A shows the case where the processing time of the process b1 = 2.
Is the case where the processing time of the process b1 = 8, and FIG. 6 (a),
(B) is a time chart showing the processing state of the DSP when the conventional synchronous control device is used, and FIG.
FIG. 4B shows the case where the processing time of the process b1 = 2, and FIG. For the sake of simplicity, it is assumed that the synchronization control device synchronizes two DSPs. 5 and 6, the processor A sequentially performs the processes a1 to a3, and the status register of the processor A has the initial state 4, 5 at the end of the process a1, and 6 at the end of the process a2.
It is assumed that 7 is set at the end of the processing a3, and the required processing time is processing a1 = 8, processing a2 = 4, and processing a3 = 3. Further, the processor B performs the processes b1 to b3, and the status register of the processor B is set to 0 in the initial state, 1 at the end of the process b1, 2 at the end of the process b2, and 3 at the end of the process b3. , Processing b1 = 2 to 8, processing b2 = 2, processing b3 =
4 is assumed. Process b1 uses the result of process a1, and
b2 uses the result of process a2, and process b3 uses the result of process a3.
まず、最適な同期制御装置を利用した場合、処理b1の
処理時間が2のときは、第5図(a)に示される処理が
最適である。処理b1の処理時間が8のときは、第5図
(b)に示される処理が最適である。First, when the optimal synchronization control device is used, when the processing time of the processing b1 is 2, the processing shown in FIG. 5A is optimal. When the processing time of the processing b1 is 8, the processing shown in FIG. 5B is optimal.
ここで、従来の同期制御装置を利用すると、プロセッ
サA、Bの2個からなる装置は次のように動作する。Here, when the conventional synchronous control device is used, the device including the two processors A and B operates as follows.
先ず、処理b1の処理時間が2の場合について説明す
る。First, a case where the processing time of the process b1 is 2 will be described.
第6図(a)に示すように、プロセッサAにより処理
a1が開始されると、プロセッサBは確認データを例えば
“101"とセットして、同期要求信号を出力して待機状態
に入る。この時、プロセッサAの状態データとプロセッ
サBの確認データとが異なるので、同期制御装置は、プ
ロセッサBに対して同期許可信号を発せず動作許可を与
えない。As shown in FIG.
When a1 is started, the processor B sets confirmation data to, for example, "101", outputs a synchronization request signal, and enters a standby state. At this time, since the state data of the processor A is different from the confirmation data of the processor B, the synchronization control device does not issue a synchronization permission signal to the processor B and does not give an operation permission.
処理a1の終了時において、プロセッサAにより、状態
データが“101"とセットされ、処理a2が開始される。こ
の時、プロセッサAの状態データとプロセッサBの状態
データとが一致したので、同期制御装置はプロセッサB
に対して動作許可を与える。この動作許可を受けてプロ
セッサBは処理b1を実行する。At the end of the process a1, the processor A sets the status data to “101”, and the process a2 is started. At this time, since the status data of the processor A and the status data of the processor B match, the synchronization control device
Operation permission. Upon receiving the operation permission, the processor B executes the process b1.
処理b1の終了時において、プロセッサBにより状態デ
ータが“001"、確認データが“101"とセットされ、プロ
セッサBは同期要求信号を出力して待機状態に入る。こ
の時、同期制御装置は、プロセッサBに対して動作許可
を与えない。At the end of the process b1, the state data is set to "001" and the confirmation data is set to "101" by the processor B, and the processor B outputs a synchronization request signal and enters a standby state. At this time, the synchronization control device does not give the operation permission to the processor B.
処理a2の終了時において、プロセッサAにより、状態
データが“110"、確認データが“010"とセットされ、プ
ロセッサAは同期要求信号を出力して待機状態に入る。
同期制御装置はプロセッサBに対して動作許可を与え
る。この動作許可を受けてプロセッサBは処理b2を実行
する。At the end of the process a2, the processor A sets the status data to "110" and the confirmation data to "010", and the processor A outputs a synchronization request signal and enters a standby state.
The synchronous control device gives an operation permission to the processor B. Upon receiving the operation permission, the processor B executes the process b2.
処理b2の終了時において、プロセッサBにより状態デ
ータが“010"、確認データが“111"とセットされ、プロ
セッサBは同期要求信号を出力して待機状態に入る。こ
の時、同期制御装置は、プロセッサAに対して動作許可
を与え、プロセッサBに対して動作許可を与えない。At the end of the process b2, the state data is set to "010" and the confirmation data is set to "111" by the processor B, and the processor B outputs a synchronization request signal and enters a standby state. At this time, the synchronous control device gives an operation permission to the processor A and does not give an operation permission to the processor B.
処理a3の終了時において、プロセッサAにより、状態
データが“111"とセットされる。同期制御装置はプロセ
ッサBに対して動作許可を与える。この動作許可を受け
てプロセッサBは処理b3を実行する。At the end of the process a3, the processor A sets the status data to “111”. The synchronous control device gives an operation permission to the processor B. Upon receiving the operation permission, the processor B executes the process b3.
第5図(a)と第6図(b)とを比較して明白である
ように、従来の同期制御装置を用いた場合の処理b3終了
時が、最適な同期制御装置を用いた場合よりも時刻2の
分だけ増加している。As is apparent from a comparison between FIG. 5 (a) and FIG. 6 (b), the end of the process b3 in the case of using the conventional synchronous control device is shorter than in the case of using the optimal synchronous control device. Is also increased by time 2.
処理b1の処理時間=8の場合についても同様に、第5
図(b)と第6図(b)とから明白であるように、従来
の同期制御装置を用いた場合の処理b3終了時が、時刻3
の分だけ増加している。Similarly, when the processing time of the processing b1 is 8, the fifth
As is clear from FIG. 6B and FIG. 6B, the end of the process b3 in the case of using the conventional synchronous control device is the time 3
The amount has increased.
本発明は前記従来技術が持っていた課題として、無駄
時間が発生するという点について解決した同期制御装置
を提供するものである。An object of the present invention is to provide a synchronization control device which solves the problem of the prior art that a dead time occurs.
(課題を解決するための手段) 本発明では、前記課題を解決するために、共同して所
定の処理を行う複数のプロセッサの各処理状態を表す状
態データと該各プロセッサが動作状態に入るための確認
データとの論理の一致、不一致をそれぞれ取る複数の一
致回路を有し、該一致回路を用いて前記各プロセッサの
同期を取る同期制御装置において、次のような手段を講
じたものである。(Means for Solving the Problems) According to the present invention, in order to solve the above-described problems, state data representing each processing state of a plurality of processors that jointly perform a predetermined process and each of the processors enters an operation state. In a synchronization control device that has a plurality of matching circuits for respectively obtaining the coincidence and non-coincidence of the logic with the confirmation data, and using the coincidence circuits to synchronize the respective processors, the following means are taken. .
前記確認データの一部に制御データを設けると共に、
前記各一致回路に、前記制御データを用いて前記確認デ
ータに対して一致する前記状態データの範囲を変化させ
る制御手段をそれぞれ設けたものである。Along with providing control data as part of the confirmation data,
Each of the matching circuits is provided with control means for changing a range of the status data that matches the confirmation data using the control data.
(作 用) 本発明によれば、以上のように同期制御装置を構成し
たので、制御手段は、制御データを用いて状態データと
確認データとの論理の一致、不一致をそれぞれ取り、状
態データと確認データが不完全一致状態(データのすべ
てが必ずしも一致していない状態)であっても一致状態
とみなすように働く。これにより、確認データに対して
一致する状態データの範囲を変化させることができ、必
要処理時間の比が大きく、しかも処理時間が一定でない
従属関係にある処理においても、無駄時間を省くことが
できる。(Operation) According to the present invention, since the synchronous control device is configured as described above, the control means uses the control data to determine whether the logic of the status data and the confirmation data match or not, respectively, Even if the confirmation data is in an incompletely matched state (a state in which all of the data does not always match), the confirmation data is regarded as a matched state. As a result, the range of the state data that matches the confirmation data can be changed, and the waste time can be reduced even in the processing in which the ratio of the required processing time is large and the processing time is dependent on each other. .
したがって前記課題を解決できるのである。 Therefore, the above problem can be solved.
(実施例) 第1図は、本発明の実施例に係る同期制御装置の要部
を示す一致回路の回路図、及び第7図はDSPと同期制御
装置との接続関係図である。(Embodiment) FIG. 1 is a circuit diagram of a coincidence circuit showing a main part of a synchronization control device according to an embodiment of the present invention, and FIG. 7 is a connection relationship diagram between a DSP and a synchronization control device.
先ず、第1図について説明する。第1図の一致回路は
第3図中の一致回路に代えて用いるものであり、第3図
と共通の要素には同一の符号が付されている。なお、説
明を簡単にするため、例えば第3図中の一致回路20に代
えて用いるものとする。First, FIG. 1 will be described. The matching circuit in FIG. 1 is used in place of the matching circuit in FIG. 3, and the same elements as those in FIG. 3 are denoted by the same reference numerals. It is to be noted that, for simplicity of description, it will be used, for example, instead of the matching circuit 20 in FIG.
この一致回路は、第1ビットから第8ビットまでの確
認データP1をそれぞれ入力するための入力端子61〜68、
及び第1ビットから第6ビットまでの状態データQ1をそ
れぞれ入力するための入力端子69〜74を有している。入
力端子61,69は排他的論理ゲート75に、入力端子62,70は
排他的論理ゲート76に、入力端子63,71は排他的論理ゲ
ート77に、入力端子64,72は排他的論理ゲート78に、入
力端子65,73は排他的論理ゲート79に、入力端子66,74は
排他的論理ゲート80に、それぞれ接続されている。The matching circuit includes input terminals 61 to 68 for inputting confirmation data P1 from the first bit to the eighth bit, respectively.
And input terminals 69 to 74 for inputting status data Q1 of the first bit to the sixth bit, respectively. The input terminals 61 and 69 are to an exclusive logic gate 75, the input terminals 62 and 70 are to an exclusive logic gate 76, the input terminals 63 and 71 are to an exclusive logic gate 77, and the input terminals 64 and 72 are to an exclusive logic gate 78. The input terminals 65 and 73 are connected to an exclusive logic gate 79, and the input terminals 66 and 74 are connected to an exclusive logic gate 80.
入力端子67、68に入力される確認データP1の第7及び
第8ビットは、確認データP1中の制御データC1,C2とし
て設けられている。この制御データC1,C2用の入力端子6
7、68は、確認データP1に対して一致する状態データQ1
の範囲を変化させる制御手段81の構成要素であるANDゲ
ート81−1,81−2の入力側の一方にそれぞれ接続されて
いる。さらに、ANDゲート81−1,81−2の入力側の他方
は、排他的論理ゲート76,75の出力側にそれぞれ接続さ
れている。排他的論理ゲート77〜80の出力側、及びAND
ゲート81−1,81−2の出力側が多入力ORゲート82の入力
側にそれぞれ接続され、そのORゲート82の出力側が出力
端子83に接続されている。The seventh and eighth bits of the confirmation data P1 input to the input terminals 67 and 68 are provided as control data C1 and C2 in the confirmation data P1. Input terminal 6 for these control data C1 and C2
7 and 68 are the status data Q1 that matches the confirmation data P1.
Are connected to one of the input sides of AND gates 81-1 and 81-2, which are components of the control means 81 for changing the range. Further, the other of the input sides of the AND gates 81-1 and 81-2 are connected to the output sides of the exclusive logic gates 76 and 75, respectively. Exclusive logic gates 77-80 output and AND
The output sides of the gates 81-1 and 81-2 are connected to the input side of the multi-input OR gate 82, respectively, and the output side of the OR gate 82 is connected to the output terminal 83.
上記構成の一致回路は次のような動作をする。 The matching circuit having the above configuration operates as follows.
確認データP1の第7及び第8ビットが論理“1"である
場合、確認データP1と状態データQ1のそれぞれの第1ビ
ットから第6ビットまでがすべて等しいとき、出力端子
83には“0"が出力され、それ以外は“1"が出力される。
確認データの第8ビットが“1"であり、かつ第7ビット
“0"であるならば、確認データP1と状態データQ1のそれ
ぞれの第1ビットから第6ビットまでがすべて等しいと
き、出力端子83には“0"が出力され、それ以外は“1"が
出力される。When the seventh and eighth bits of the confirmation data P1 are logic "1", when the first to sixth bits of the confirmation data P1 and the status data Q1 are all equal, the output terminal
“0” is output to 83, and “1” is output otherwise.
If the eighth bit of the confirmation data is "1" and the seventh bit is "0", when the first to sixth bits of the confirmation data P1 and the status data Q1 are all equal, the output terminal “0” is output to 83, and “1” is output otherwise.
確認データの第7及び第8ビットが“0"であるなら
ば、確認データP1と状態データQ1のそれぞれの第1ビッ
トから第6ビットまでがすべて等しいとき、出力端子83
には“0"が出力され、それ以外は“1"が出力される。If the seventh and eighth bits of the acknowledgment data are "0", when the first to sixth bits of the acknowledgment data P1 and the status data Q1 are all equal, the output terminal 83
Outputs “0”, and otherwise outputs “1”.
次に、第7図において、共同して所定の処理を行う
(マルチプロセッサ処理)複数のDSPの内、例えばDSP90
は、第3図中の同期制御装置10の同期許可信号S1用出力
端子32及び同期要求信号R1用入力端子13に接続されると
共に、データバス91を介して確認レジスタ92及び状態レ
ジスタ93に接続されている。確認レジスタ92は、他のDS
Pの処理状態を確認し、DSP90が動作状態に入るための確
認データP1を一時格納するレジスタであり、状態レジス
タ93は、従来と同様の状態レジスタ93を見ることにより
DSP90がどのような処理を行っているかが判別できるよ
うな状態データQ1を一時格納するレジスタである。Next, in FIG. 7, among a plurality of DSPs that perform predetermined processing in cooperation (multiprocessor processing), for example, DSP90
Is connected to the output terminal 32 for the synchronization permission signal S1 and the input terminal 13 for the synchronization request signal R1 of the synchronization control device 10 in FIG. 3, and to the confirmation register 92 and the status register 93 via the data bus 91. Have been. The confirmation register 92 is
P is a register for confirming the processing state of P and temporarily storing confirmation data P1 for the DSP 90 to enter the operation state.
This is a register for temporarily storing status data Q1 that can determine what kind of processing the DSP 90 is performing.
また、確認レジスタ92及び状態レジスタ93とDSP90と
の間には、確認レジスタ92及び状態レジスタ93を制御す
るためのレジスタ制御回路94が接続され、さらに確認レ
ジスタ92及び状態レジスタ93の出力側が同期制御装置10
の入力端子11,12に接続されている。Further, a register control circuit 94 for controlling the confirmation register 92 and the status register 93 is connected between the confirmation register 92 and the status register 93 and the DSP 90, and the output side of the confirmation register 92 and the status register 93 is controlled synchronously. Device 10
Are connected to the input terminals 11 and 12.
同様に、DSP90−1、確認レジスタ92−1、状態レジ
スタ93−1、及びレジスタ制御回路94−1が、第7図に
示すように同期制御装置10に接続されている。Similarly, the DSP 90-1, the confirmation register 92-1, the status register 93-1 and the register control circuit 94-1 are connected to the synchronization control device 10 as shown in FIG.
次に動作を説明する。なお、説明を簡単にするため
に、本実施例の同期制御装置は、2個のDSPの同期を取
るものとする。Next, the operation will be described. For the sake of simplicity, it is assumed that the synchronization control device of this embodiment synchronizes two DSPs.
DSP90は、例えば処理a1〜a3を順次行い、状態レジス
タ93は、初期状態が4、処理a1終了時に5、処理a終了
時に6、処理a3終了時に7がセットされ、必要な処理時
間は、処理a1=8、処理a2=4、処理a3=3であるとす
る。さらに、DSP90−1は処理b1〜b3を行い、状態レジ
スタ93−1は、処理状態が0、処理b1に終了時に1、処
理b2終了時に2、処理b3終了時に3がセットされ、必要
な処理時間は、処理b1=2〜8、処理b2=2、処理b2=
4とする。処理b1は処理a1の結果を使用し、同様に処理
b2は処理a2の結果を、処理b3は処理a3の結果を使用する
ものとする。ここで、確認データの“#”印は制御デー
タC1,C2により無条件一致となっていることを表す。The DSP 90 sequentially performs, for example, processes a1 to a3. The initial value of the status register 93 is 4, the process a1 is completed 5, the process a is completed 6, the process a3 is completed, and the process a3 is completed. It is assumed that a1 = 8, processing a2 = 4, and processing a3 = 3. Further, the DSP 90-1 performs the processes b1 to b3, and the status register 93-1 is set to a process status of 0, 1 at the end of the process b1, 2 at the end of the process b2, and 3 at the end of the process b3. The time is as follows: processing b1 = 2 to 8, processing b2 = 2, processing b2 =
4 is assumed. Process b1 uses the result of process a1, and
b2 uses the result of process a2, and process b3 uses the result of process a3. Here, the “#” mark of the confirmation data indicates that the control data C1 and C2 are unconditionally matched.
(イ)処理b1の処理時間=2である時 先ず、DSP90により処理a1が開始されると、DSP90−1
は確認データP2を例えば“101"とセットして、同期要求
信号R2を出力して待機状態に入る。この時、DSP90の状
態データQ1とDSP90−1の確認データP2とが異なるの
で、同期制御装置10は、DSP90−1に対して同期許可信
号S2を発せず動作許可を与えない。(A) When the processing time of the process b1 is 2 First, when the process a1 is started by the DSP 90, the DSP 90-1
Sets the confirmation data P2 to, for example, "101", outputs the synchronization request signal R2, and enters a standby state. At this time, since the state data Q1 of the DSP 90 and the confirmation data P2 of the DSP 90-1 are different, the synchronization control device 10 does not issue the synchronization permission signal S2 to the DSP 90-1 and does not give the operation permission.
処理a1の終了時において、DSP90により、状態データ
Qが“101"とセットされ、処理a2が開始される。この
時、DSP90の状態データQ1とDSP90−1の確認データP2と
が一致したので、同期制御装置10はDSP90−1に対して
動作許可を与える。この動作許可を受けてDSP90−1は
処理b1を実行する。At the end of the process a1, the DSP 90 sets the state data Q to “101”, and the process a2 is started. At this time, since the state data Q1 of the DSP 90 matches the confirmation data P2 of the DSP 90-1, the synchronization control device 10 gives the DSP 90-1 an operation permission. Upon receiving the operation permission, the DSP 90-1 executes the process b1.
処理b1の終了時において、DSP90−1により確認デー
タP2が“11#”とセットされ、DSP90−1は同期要求信
号R2を出力して待機状態に入る。この時、DSP90の状態
データQ1とDSP90−1の確認データP2とが異なるので、
同期制御装置10は、DSP90−1に対して同期許可信号S2
を発せず動作許可を与えない。At the end of the process b1, the confirmation data P2 is set to "11 #" by the DSP 90-1, and the DSP 90-1 outputs the synchronization request signal R2 and enters a standby state. At this time, since the state data Q1 of the DSP90 and the confirmation data P2 of the DSP90-1 are different,
The synchronization control device 10 sends a synchronization permission signal S2 to the DSP 90-1.
Do not emit and do not give operation permission.
処理a2の終了時において、DSP90により、状態データQ
1が“110"とセットされ、処理a3が開始される。この
時、DSP90の状態データQ1とDSP90−1の確認データP2と
が一致したので、同期制御装置10はDSP90−1に対して
動作許可を与える。この動作許可を受けてDSP90−1は
処理b2を実行する。At the end of the process a2, the DSP 90 sets the state data Q
1 is set to "110", and the process a3 is started. At this time, since the state data Q1 of the DSP 90 matches the confirmation data P2 of the DSP 90-1, the synchronization control device 10 gives the DSP 90-1 an operation permission. Upon receiving the operation permission, the DSP 90-1 executes the process b2.
処理b2の終了時において、DSP90−1により確認デー
タP2が“111"とセットされ、DSP90−1は同期要求信号
Rを出力して待機状態に入る。この時、DSP90の状態デ
ータQ1とDSP90−1の確認データP2とが異なるので、同
期制御装置10は、DSP90−1に対して同期許可信号S2を
発せず動作許可を与えない。At the end of the process b2, the confirmation data P2 is set to "111" by the DSP 90-1, and the DSP 90-1 outputs the synchronization request signal R and enters a standby state. At this time, since the state data Q1 of the DSP 90 and the confirmation data P2 of the DSP 90-1 are different, the synchronization control device 10 does not issue the synchronization permission signal S2 to the DSP 90-1 and does not give the operation permission.
処理a3の終了時において、DSP90により、状態データ
が“111"とセットされる。この時、DSP90の状態データQ
1とDSP90−1の確認データP2とが一致したので、同期制
御装置10はDSP90−1に対して動作許可を与える。この
動作許可を受けてDSP90−1は処理b3を実行する。At the end of the process a3, the DSP 90 sets the state data to “111”. At this time, the DSP90 status data Q
Since 1 and the confirmation data P2 of the DSP 90-1 match, the synchronization control device 10 gives the DSP 90-1 an operation permission. Upon receiving the operation permission, the DSP 90-1 executes the process b3.
以上の動作は、第5図(a)に示す最適な同期処理と
等しい。The above operation is equivalent to the optimal synchronization processing shown in FIG.
(ロ)処理b1の処理時間=8である時 先ず、DSP90により処理a1が開始されると、DSP90−1
は確認データP2を例えば“101"とセットして、同期要求
信号R2を出力して待機状態に入る。この時、DSP90の状
態データQ1とDSP90−1の確認データP2とが異なるの
で、同期制御装置10は、DSP90−1に対して同期許可信
号S2を発せず動作許可を与えない。(B) When the processing time of the process b1 = 8 First, when the process a1 is started by the DSP 90, the DSP 90-1
Sets the confirmation data P2 to, for example, "101", outputs the synchronization request signal R2, and enters a standby state. At this time, since the state data Q1 of the DSP 90 and the confirmation data P2 of the DSP 90-1 are different, the synchronization control device 10 does not issue the synchronization permission signal S2 to the DSP 90-1 and does not give the operation permission.
処理a1の終了時において、DSP90により、状態データQ
1が“101"セットされ、処理a2が開始される。この時、D
SP90の状態データQ1とDSP90−1の確認データP2とが一
致したので、同期制御装置10はDSP90−1に対して動作
許可を与える。この動作許可を受けてDSP90−1は処理b
1を実行する。At the end of the processing a1, the DSP 90 outputs the status data Q
1 is set to "101", and the process a2 is started. At this time, D
Since the state data Q1 of the SP90 matches the confirmation data P2 of the DSP 90-1, the synchronization control device 10 gives an operation permission to the DSP 90-1. Upon receiving the operation permission, the DSP 90-1 performs the processing b.
Execute 1.
処理a2の終了時において、DSP90により、状態データQ
1が“110"とセットされ、処理a3が開始される。この
時、DSP90−1は処理b1を実行中である。At the end of the process a2, the DSP 90 sets the state data Q
1 is set to "110", and the process a3 is started. At this time, the DSP 90-1 is executing the process b1.
処理a3の終了時において、DSP90により、状態データQ
1が“111"とセットされる。この時、DSP90−1は処理b1
を実行中である。At the end of the processing a3, the DSP 90 sets the state data Q
1 is set to "111". At this time, the DSP 90-1 performs processing b1
Is running.
処理b1の終了時において、DSP90−1により確認デー
タP2が“11#”とセットされ、DSP90−1は同期要求信
号R2を出力する。この時、DSP90の状態データQ1とDSP90
−1の確認データP2とが一致したので、同期制御装置10
はDSP90−1に対して動作許可を与える。この動作許可
を受けてDSP90−1は処理b2を実行する。At the end of the process b1, the confirmation data P2 is set to "11 #" by the DSP 90-1, and the DSP 90-1 outputs the synchronization request signal R2. At this time, the DSP90 status data Q1 and DSP90
Since the confirmation data P2 of -1 matches, the synchronization control device 10
Gives an operation permission to the DSP 90-1. Upon receiving the operation permission, the DSP 90-1 executes the process b2.
処理b2の終了時において、DSP90−1により確認デー
タP2が“111"とセットされ、DSP90−1は同期要求信号R
2を出力する。この時、DSP90の状態データQ1とDSP90−
1の確認データP2とが一致したので、同期制御装置10は
DSP90−1に対して動作許可を与える。この動作許可を
受けてDSP90−1は処理b3を実行する。At the end of the process b2, the confirmation data P2 is set to "111" by the DSP 90-1, and the DSP 90-1 sends the synchronization request signal R
Outputs 2. At this time, the DSP90 status data Q1 and DSP90-
Since the confirmation data P2 of No. 1 matches, the synchronization control device 10
An operation permission is given to DSP 90-1. Upon receiving the operation permission, the DSP 90-1 executes the process b3.
以上の動作は、第5図(b)に示す最適な同期処理と
等しい。The above operation is equivalent to the optimal synchronization processing shown in FIG.
このように、本実施例による同期制御装置により、最
適な同期を行った時と等しい同期が行われる。As described above, the synchronization control device according to the present embodiment performs the same synchronization as when the optimum synchronization is performed.
本実施例は、次のような利点を有している。 This embodiment has the following advantages.
(a)例えば、DSP90−1の同期要求信号R1が活性化状
態になったとき、同期制御回路10では、DSP90−1の確
認データP2と他のDSP90の状態データQ2とが一致してい
るとき、DSP90−1に対して同期許可信号S2を出力す
る。ここで、“一致している”という状態について従来
では、状態データと確認データが不完全一致状態(デー
タのすべてが必ずしも一致していない状態)まで一致状
態に含まなかった。(A) For example, when the synchronization request signal R1 of the DSP 90-1 is activated, when the confirmation data P2 of the DSP 90-1 matches the state data Q2 of another DSP 90, the synchronization control circuit 10 , And outputs a synchronization permission signal S2 to the DSP 90-1. Here, regarding the state of “matching”, conventionally, the state data and the confirmation data were not included in the matching state until an incomplete matching state (a state in which all of the data did not always match).
しかし、本実施例では、確認データに制御データC1,C
2を設けることにより、完全一致(データのすべてが一
致)状態だけでなく、不完全一致も扱える柔軟な同期回
路となっている、これにより、第5図に示される処理の
例においては、従来の同期制御装置に比較して約90%の
時間で同一の処理を行える。このような従来の同期制御
装置に対する優位性は、各DSPの処理が必要とする時間
が一定値でないとき、特に顕著である。However, in this embodiment, the control data C1, C
By providing 2, a flexible synchronous circuit that can handle not only a perfect match (all data matches) but also an incomplete match is provided. In the example of the processing shown in FIG. The same processing can be performed in about 90% of the time in comparison with the synchronous control device. Such an advantage over the conventional synchronous control device is particularly remarkable when the time required for processing of each DSP is not a fixed value.
なお、本発明は図示の実施例に限定されず、種々の変
形が可能である。例えば、その変形例として次のような
ものがある。Note that the present invention is not limited to the illustrated embodiment, and various modifications are possible. For example, there are the following modifications.
(I)上記実施例では、2個のDSPの同期を取るものと
したが、2個以上のDSPの同期を取ることも可能であ
る。(I) In the above embodiment, two DSPs are synchronized, but two or more DSPs can be synchronized.
(II)上記実施例の制御データC1,C2は確認データ中の
第7及び第8ビットで構成したが、他のビットで構成す
ることも可能である。(II) Although the control data C1 and C2 in the above embodiment are composed of the seventh and eighth bits in the confirmation data, they may be composed of other bits.
(発明の効果) 以上詳細に説明したように、本発明によれば、確認デ
ータの一部に制御データを設けると共に、制御データを
用いて確認データに対して一致する状態データの範囲を
変化させる制御手段を設けたので、従来では困難であっ
た必要処理時間の比が大きく、しかも処理時間が一定で
ない従属関係にある処理においても、無駄時間を省くこ
とができ、各DSPの持つ能力を最大限に発揮させること
ができる。しかも、従来の同期制御装置の能力を包含す
るため、従来型の同期制御装置として使用することも可
能である。(Effects of the Invention) As described above in detail, according to the present invention, control data is provided as part of confirmation data, and the range of state data that matches the confirmation data is changed using the control data. With the control means, the ratio of required processing time, which was difficult in the past, is large, and even in the processing dependent on the processing time is not fixed, it is possible to reduce the wasted time and maximize the performance of each DSP. Can be demonstrated to the maximum extent. In addition, since it includes the capability of the conventional synchronous control device, it can be used as a conventional synchronous control device.
第1図は本発明の実施例を示す同期制御装置における一
致回路の回路図、第2図は従来における2個のDSPの同
期制御を行うための一接続例を示す図、第3図は従来の
同期制御装置の構成ブロック図、第4図は第3図中の一
致回路の内部回路図、第5図(a),(b)は、最適な
同期制御装置を用いた場合のDSPのタイムチャートであ
り、同図(a)は処理b1の処理時間=2の場合及び同図
(b)は処理b1の処理時間=8の場合、第6図(a),
(b)は従来の同期制御装置を用いた場合のDSPのタイ
ムチャートであり、同図(a)は処理b1の処理時間=2
の場合及び同図(b)は処理b1の処理時間=8の場合、
第7図はDSPと同期制御装置の接続関係図である。 20〜20……一致回路、81……制御手段、90,91−1……D
SP、P1〜P3……確認データ、Q1〜Q3……状態データ、C
1,C2……制御データ。FIG. 1 is a circuit diagram of a coincidence circuit in a synchronous control device according to an embodiment of the present invention, FIG. 2 is a diagram showing one connection example for performing synchronous control of two conventional DSPs, and FIG. FIG. 4 is an internal circuit diagram of the coincidence circuit in FIG. 3, and FIGS. 5 (a) and (b) are DSP time charts when an optimal synchronization control device is used. 6A is a chart, FIG. 6A shows a case where the processing time of the process b1 = 2, and FIG. 6B shows a case where the processing time of the process b1 = 8.
(B) is a time chart of the DSP when the conventional synchronous control device is used, and (a) is a processing time of processing b1 = 2.
In the case of (b) and (b) of FIG.
FIG. 7 is a connection relationship diagram between the DSP and the synchronization control device. 20 to 20: matching circuit, 81: control means, 90, 91-1 D
SP, P1 to P3 ... confirmation data, Q1 to Q3 ... status data, C
1, C2 ... Control data.
フロントページの続き (72)発明者 安藤 博美 東京都港区虎ノ門1丁目7番12号 沖電 気工業株式会社内 (56)参考文献 特開 昭60−263255(JP,A) 特開 平1−303561(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 15/177 Continuation of the front page (72) Inventor Hiromi Ando 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd. (56) References JP-A-60-263255 (JP, A) JP-A-1- 303561 (JP, A) (58) Field surveyed (Int. Cl. 6 , DB name) G06F 15/177
Claims (1)
サの各処理状態を表す状態データと該各プロセッサが動
作状態に入るための確認データとの論理の一致、不一致
をそれぞれ取る複数の一致回路を有し、該一致回路を用
いて前記各プロセッサの同期を取る同期制御装置におい
て、 前記確認データの一部に制御データを設けると共に、 前記各一致回路に、 前記制御データを用いて前記確認データに対して一致す
る前記状態データの範囲を変化させる制御手段をそれぞ
れ設けることを特徴とする同期制御装置。1. A plurality of coincidences for determining whether the logic of a state data representing each processing state of a plurality of processors that jointly perform a predetermined process and confirmation data for the respective processors to enter an operation state match or disagree with each other. A synchronization control device that synchronizes the processors by using the matching circuit, wherein control data is provided in a part of the confirmation data, and the confirmation is performed by using the control data in each of the matching circuits. Synchronous control devices each provided with control means for changing a range of the status data that matches data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP691190A JP2950875B2 (en) | 1990-01-16 | 1990-01-16 | Synchronous control device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP691190A JP2950875B2 (en) | 1990-01-16 | 1990-01-16 | Synchronous control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03210653A JPH03210653A (en) | 1991-09-13 |
| JP2950875B2 true JP2950875B2 (en) | 1999-09-20 |
Family
ID=11651425
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP691190A Expired - Fee Related JP2950875B2 (en) | 1990-01-16 | 1990-01-16 | Synchronous control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2950875B2 (en) |
-
1990
- 1990-01-16 JP JP691190A patent/JP2950875B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03210653A (en) | 1991-09-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6789183B1 (en) | Apparatus and method for activation of a digital signal processor in an idle mode for interprocessor transfer of signal groups in a digital signal processing unit | |
| JPH0556085A (en) | Interface circuit | |
| JP2950875B2 (en) | Synchronous control device | |
| JP2780623B2 (en) | Information processing device | |
| JPH0736720A (en) | Redundant computer equipment | |
| JP2706390B2 (en) | Vector unit usage right switching control method using multiple scalar units | |
| JPS62160564A (en) | Pipeline control system | |
| JP2634919B2 (en) | Multiprocessor device | |
| JPH04229354A (en) | Data tramsfer in dma mode between wake-up phases of microprocessor in interrupt waiting state for saving power consuption | |
| JPS59114665A (en) | Parallel computer system | |
| JPH07239798A (en) | Computer fault tolerant method | |
| JP2526835B2 (en) | Duplex synchronous control system of programmable controller | |
| JPS63271635A (en) | High-speed arithmetic processor | |
| SU1365086A1 (en) | Device for checking control units | |
| JP3348177B2 (en) | Programmable controller | |
| JP2772713B2 (en) | Fault-tolerant multiprocessor system | |
| JPS59176860A (en) | Data transfer system | |
| SU328457A1 (en) | LIOTEKA ILOB for | |
| JPH01310448A (en) | Control system for processor | |
| JPS60168240A (en) | Interrupt processing circuit | |
| JPH01245336A (en) | Interruption control system for external common bus | |
| JP2504535B2 (en) | Bus unit configuration method | |
| JPH07146846A (en) | Multiprocessor system | |
| JP2000155698A (en) | Computer fault tolerant method | |
| JPH02109130A (en) | Arithmetic circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080709 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |