JPH05108698A - Vector processor - Google Patents

Vector processor

Info

Publication number
JPH05108698A
JPH05108698A JP26807191A JP26807191A JPH05108698A JP H05108698 A JPH05108698 A JP H05108698A JP 26807191 A JP26807191 A JP 26807191A JP 26807191 A JP26807191 A JP 26807191A JP H05108698 A JPH05108698 A JP H05108698A
Authority
JP
Japan
Prior art keywords
interlock
unit
data
mask
vector
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
JP26807191A
Other languages
Japanese (ja)
Inventor
Yuji Kawazu
裕治 河津
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 JP26807191A priority Critical patent/JPH05108698A/en
Publication of JPH05108698A publication Critical patent/JPH05108698A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Complex Calculations (AREA)

Abstract

(57)【要約】 【目的】ベクトルレジスタに対しロードアクセス部とデ
ータ使用部が連鎖処理を行う際に発生するインターロッ
クを検証する機能を備えたベクトル処理装置に関し、簡
単な構成でテストプログラムの実行時に複雑なパターン
のインターロックを発生して連携処理を早期に検証する
ことを目的とする。 【構成】ベクトルレジスタ2に対するロードアクセス部
1とデータ使用部3との連鎖処理、及びロートドアクセ
ス部1からベクトルレジスタ2へのデータ供給の有無と
は無関係に、外部よりデータ使用部3をインターロック
させるインターロック発生部5を設け、インターロック
させる期間及びインターロックを解除する期間を動的に
変化させる。インターロックは設定した複数のマスクデ
ータと内部信号群との複数の論理積の論理和等をとって
発生する。
(57) [Abstract] [Purpose] A vector processing device having a function of verifying an interlock that occurs when a load access unit and a data use unit perform chain processing on a vector register. The purpose is to generate an interlock of a complicated pattern at the time of execution and verify the cooperation process early. [Structure] Regardless of whether the load access unit 1 and the data use unit 3 are chained to the vector register 2 and whether the data is supplied from the loaded access unit 1 to the vector register 2, the data use unit 3 is externally connected. The interlock generating unit 5 for locking is provided, and the interlock period and the interlock releasing period are dynamically changed. The interlock is generated by taking a logical sum of a plurality of logical products of a plurality of set mask data and an internal signal group.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ベクトルレジスタに対
しロードアクセス部とデータ使用部が連鎖処理を行う際
に発生するインターロックを検証する機能を備えたベク
トル処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vector processing device having a function of verifying an interlock generated when a load access part and a data use part perform chain processing on a vector register.

【0002】[0002]

【従来の技術】図4は従来のベクトル処理装置の説明図
であり、主記憶装置(MSU)8に対しロードアクセス
部1、ベクトルレジスタ2、ストアアクセス部6と演算
部7を備えたデータ使用部3が設けられる。ここでデー
タ使用部3の特に演算部7は、ロードアクセス部1によ
り主記憶装置8からベクトルレジスタ2にロードされた
データを連続して読出するように構成されている。また
ストアアクセス部6も主記憶装置8でのアクセスの競合
による干渉がなければ、ベクトルレジスタ2上のデータ
を連続して読み出すように構成されている。
2. Description of the Related Art FIG. 4 is an explanatory view of a conventional vector processing apparatus, which uses a main memory unit (MSU) 8 including a load access unit 1, a vector register 2, a store access unit 6 and an arithmetic unit 7. A section 3 is provided. Here, especially the arithmetic unit 7 of the data use unit 3 is configured to continuously read the data loaded from the main memory 8 into the vector register 2 by the load access unit 1. The store access unit 6 is also configured to continuously read the data in the vector register 2 if there is no interference due to access competition in the main memory 8.

【0003】しかし、ロードアクセス部1は、主記憶ア
クセスの競合等により、ベクトルレジスタ2へのデータ
供給を必ずしも連続させているわけではなく、後続する
命令が連続してベクトルレジスタ2からデータを読み出
せるとは限らない。このため、ベクトルレジスタ2に対
しロードアクセス部1とデータ使用部3が連鎖して動作
する場合には、後続するデータ使用部3が先行するロー
ドアクセス部3によるベクトルレジスタ2へのデータ供
給を追い越してデータ読み出しを行わないようにインタ
ーロック検出回路4で監視し、ベクトルレジスタ2上か
ら読み出すデータが途絶えた時点でデータ使用部3をイ
ンターロックさせている。
However, the load access unit 1 does not always make the data supply to the vector register 2 continuous due to the competition of the main memory access or the like, and subsequent instructions continuously read the data from the vector register 2. It's not always possible. Therefore, when the load access unit 1 and the data use unit 3 operate in a chain with respect to the vector register 2, the subsequent data use unit 3 overtakes the data supply to the vector register 2 by the preceding load access unit 3. The interlock detection circuit 4 monitors so as not to read the data, and the data use unit 3 is interlocked when the data read from the vector register 2 is interrupted.

【0004】このようなロードアクセス部1とデータ使
用部3との連鎖動作においてインターロック制御を行う
インターロック検出回路4、データ使用部3のインター
ロック処理回路の回路量は非常に多く複雑になってい
る。一方、ベクトル計算機のテスト処理にあっては、ロ
ードアクセス部1とデータ使用部3が連鎖処理している
状態で正常に動作しているか否かの検証が行われる。
The interlock detection circuit 4 for performing interlock control in the chain operation of the load access unit 1 and the data use unit 3 and the interlock processing circuit of the data use unit 3 are very large and complicated. ing. On the other hand, in the test process of the vector computer, it is verified whether or not the load access unit 1 and the data use unit 3 are operating normally in a chained state.

【0005】この検証を行うためには、ベクトル処理装
置が連鎖して動作するような命令列を投入する必要があ
る。更に連鎖処理を行っているベクトル処理装置にイン
ターロック条件を発生させるためには、ロードアクセス
部1が連続してベクトルレジスタ2へデータを供給する
ことができない条件を強制的に作り出す必要がある。こ
の手法としては、 CPUやIOプロセッサ等の他の処理装置に主記憶ア
クセスを行わせ、主記憶アクセスの競合によりロードア
クセス部1の処理を持たせたり、 ロードアクセス部1が主記憶装置8から連続してデー
タを読み出せないような記憶域にデータを配置したりし
ている。
In order to perform this verification, it is necessary to input an instruction sequence that causes the vector processing devices to operate in a chain. Further, in order to generate the interlock condition in the vector processing device that is performing the chain processing, it is necessary to forcibly create the condition that the load access unit 1 cannot continuously supply the data to the vector register 2. As this method, another processing device such as a CPU or an IO processor is made to access the main memory, and the load access unit 1 is caused to perform the processing by the contention of the main memory access. Data is placed in a storage area where data cannot be read continuously.

【0006】また、ベクトル処理装置にNビットのカウ
ンタ等を設け、定期的な期間で強制的にインターロック
させ、これとテストプログラムと組み合わせてインター
ロック時の正常動作を検証しているものもある。
There is also a vector processing apparatus provided with an N-bit counter or the like, forcibly interlocked at a regular period, and combined with this and a test program to verify the normal operation at the time of interlocking. ..

【0007】[0007]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の検証方法では、ベクトル処理装置のロードア
クセス部とデータ使用部を連鎖して動作させ、且つイン
ターロック条件を発生させるためには、複雑に様々な命
令を組み合わせることが必要であり、そのためのテスト
プログラムの開発に多大な時間を費やしている。
However, in such a conventional verification method, in order to operate the load access part and the data use part of the vector processing device in a chain and generate the interlock condition, it is complicated. It is necessary to combine various instructions in, and a great deal of time is spent developing the test program for that.

【0008】また、ベクトル処理装置自身で強制的にイ
ンターロック発生する場合、Nサイクルに1度、周期的
にインターロックが発生或いは解除されるだけであるた
め、インターロックのパターンが一意的であり、実際に
プログラムを実行した際に発生する複雑なインターロッ
クの発生パターンとはかけ離れており、十分な検証がで
きないという問題があった。
In the case where the vector processing device itself forcibly generates the interlock, the interlock pattern is unique because the interlock is generated or released only once every N cycles. However, there is a problem that it cannot be sufficiently verified because it is far from the complicated interlock generation pattern that occurs when the program is actually executed.

【0009】本発明は、このような従来の問題点に鑑み
てなされたもので、簡単な構成でプログラム実行時に生
ずる複雑なパターンと同様なインターロックをテストプ
ログラムの走行時に発生してロードアクセス部とデータ
使用部の連携処理を早期に検証できるベクトル処理装置
を提供することを目的とする。
The present invention has been made in view of the above conventional problems, and an interlock similar to a complicated pattern generated at the time of program execution with a simple structure is generated during the running of a test program to cause a load access unit. It is an object of the present invention to provide a vector processing device capable of early verifying the cooperative processing of the data use unit and the data use unit.

【0010】[0010]

【課題を解決するための手段】図1は本発明の原理説明
図である。まず本発明は、ベクトルレジスタ2と、ベク
トルレジスタ2へ主記憶装置8からのデータ転送を行う
ロードアクセス部1と、ベクトルレジスタ2からデータ
を読み出して処理を行うデータ使用部3とを備え、ロー
ドアクセス部1が実行中であるベクトルレジスタ2への
ロード命令の終了を待たずに、ロードアクセス部1がベ
クトルレジスタ2へ書き込んでいるデータをデータ使用
部3が使用して処理を行う連鎖処理が可能であり、ロー
ドアクセス部1からベクトルレジスタ2へデータの供給
が途絶えてベクトルレジスタ2からデータ使用部3へ読
み出されるデータが無くなってしまった際に、データ使
用部3をインターロックさせるインターロック検出部4
を備えたベクトル処理装置を対象とする。
FIG. 1 illustrates the principle of the present invention. First, the present invention comprises a vector register 2, a load access unit 1 for transferring data from the main storage device 8 to the vector register 2, and a data use unit 3 for reading data from the vector register 2 for processing. A chain process is performed in which the data using unit 3 uses the data written in the vector register 2 by the load access unit 1 without waiting for the end of the load instruction to the vector register 2 being executed by the access unit 1. It is possible, and when the supply of data from the load access unit 1 to the vector register 2 is interrupted and there is no more data to be read from the vector register 2 to the data use unit 3, an interlock detection for interlocking the data use unit 3 is performed. Part 4
The target is a vector processing device equipped with.

【0011】このようなベクトル処理装置につき本発明
にあっては、ベクトルレジスタ2に対するロードアクセ
ス部1とデータ使用部3との連鎖処理、及びロードアク
セス部1からベクトルレジスタ2へのデータ供給の有無
とは無関係に、外部よりデータ使用部3をインターロッ
クさせるインターロック発生部5を設け、インターロッ
クさせる期間及びインターロックを解除する期間を動的
に変化させることを特徴とする。
In the present invention for such a vector processing device, the chain processing of the load access unit 1 and the data use unit 3 for the vector register 2 and the presence / absence of data supply from the load access unit 1 to the vector register 2 Regardless of the above, an interlock generation unit 5 for interlocking the data use unit 3 from the outside is provided, and the interlock period and the interlock release period are dynamically changed.

【0012】ここでインターロック発生部5は、インタ
ーロックの設定部として、所定のマクスデータを格納し
たインターロック発生用の第1マスクレジスタ群11
と、第1マスクレジスタ群11の各マスク出力とベクト
ル処理装置自身の内部信号群A 0 〜An との論理積の論
理和をとってラッチ17をセットするインターロック設
定条件検出回路13とを備える。
Here, the interlock generating unit 5 is
-As a lock setting part, it stores predetermined max data.
First mask register group 11 for generating interlock
And the mask output and vector of the first mask register group 11
Internal signal group A of the processor 0 ~ An The theory of conjunction with
Interlock device to set the latch 17 in a reasonable manner
The constant condition detection circuit 13 is provided.

【0013】またインターロック解除部として、所定の
マスクデータを格納したインタロック解除用の第2マス
クレジスタ群12と、第2マスクレジスタ群12の各マ
スク出力とベクトル処理装置自身の他の内部信号群B0
〜Bn との論理積出力の論理和をとってラッチ17をリ
セットするインターロック解除条件検出回路14とを備
える。
As an interlock releasing unit, a second mask register group 12 for releasing interlock storing predetermined mask data, each mask output of the second mask register group 12 and other internal signals of the vector processing device itself. Group B 0
.About.B n, and an AND output of the logical product output and the interlock release condition detection circuit 14 for resetting the latch 17.

【0014】また、インターロックの設定部に設けたイ
ンターロック発生用の第1マスクレジスタ群11に設定
したマスクデータを、インターロックラッチがセットさ
れる毎に予め定めた数Nだけインクリメントした値に更
新するマスクレジスタ更新手段としての第1の+N回路
15と、インターロックの設定解除部に設けたインター
ロック解除用の第2マスクレジスタ群12に設定したマ
スクデータを、ラッチ17がリセットされる毎に予め定
めた数Nだけインクリメントした値に更新するマスクレ
ジスタ更新手段としての第2の+N回路16とを設け、
マスクデータについても動的に変更できるようにする。
Further, the mask data set in the first mask register group 11 for interlock generation provided in the interlock setting section is incremented by a predetermined number N every time the interlock latch is set to a value. Every time the latch 17 is reset, the mask data set in the first + N circuit 15 as a mask register updating unit to be updated and the second mask register group 12 for interlock release provided in the interlock setting release unit is reset. And a second + N circuit 16 as a mask register updating means for updating to a value incremented by a predetermined number N,
The mask data can also be changed dynamically.

【0015】更に、マスクレジスタ更新手段としては、
+N回路15,16に代えて、シフト回路若しくは乱数
回路を用いるようにしてもよい。一方、インターロック
発生部5のインターロックの設定部としては、ベクトル
処理装置自身の内部信号群A0 〜An のみの論理条件
(任意の論理)を直接とってラッチ17をセットするイ
ンターロック設定条件検出回路13を設け、またインタ
ーロック解除部としては、ベクトル処理装置自身の他の
内部信号群B0 〜B n のみの論理条件(任意の論理)を
直接とってラッチ17をリセットするインターロック解
除条件検出回路14とを設けるようにしてもよい。この
場合にはマスクレジスタ群11,12は必ずしも必要で
はない。
Further, as the mask register updating means,
A shift circuit or a random number instead of the + N circuits 15 and 16
A circuit may be used. Meanwhile, interlock
The interlock setting part of the generator 5 is a vector
Internal signal group A of the processor itself0 ~ An Only logical conditions
Set the latch 17 by directly taking (arbitrary logic).
An interlock setting condition detection circuit 13 is provided, and
-As an unlocking unit, other than the vector processing device itself
Internal signal group B0 ~ B n Only logical conditions (arbitrary logic)
Interlock solution that directly resets latch 17
The removal condition detection circuit 14 may be provided. this
In this case, the mask register groups 11 and 12 are not always necessary.
There is no.

【0016】[0016]

【作用】このような構成を備えた本発明のベクトル処理
装置によれば、複数のマスクデータとベクトル処理装置
の内部信号群との複数の論理積の論理和をとってインタ
ーロックの設定と解除を行い、且つマスクデータもセッ
ト、リセット毎にインクリメントして変化させることで
動的(ダイナミック)にインターロック条件を作成す
る。
According to the vector processing device of the present invention having such a configuration, the interlock is set and released by taking the logical sum of the logical products of the plurality of mask data and the internal signal group of the vector processing device. And the mask data is also incremented and changed each time the mask data is set or reset to dynamically create an interlock condition.

【0017】このためプログラム走行時にロードアクセ
ス部とデータ使用部とが連鎖している時に発生すると同
等な複雑なパターンをもつインターロックを、テストプ
ログラムの走行によるロード命令の有無及び連鎖状態と
は無関係に擬似的に発生することができ、インターロッ
クの制御を行っている回路部の検証を速かに行うことが
できる。
Therefore, an interlock having a complicated pattern equivalent to that which occurs when the load access unit and the data use unit are chained during program running is irrelevant to the presence or absence of a load instruction and chained state due to running of the test program. Can be generated in a pseudo manner, and the verification of the circuit unit that controls the interlock can be performed quickly.

【0018】[0018]

【実施例】図2は本発明の全体構成を示した実施例構成
図である。図2において、1はロードアクセス部であ
り、主記憶装置(MSU)8からデータをロードしベク
トルレジスタ2へ書き込む。3はベクトルレジスタ2の
内容を使用するデータ使用部であり、演算部7およびス
トアアクセス部6等で構成される。データ使用部3の演
算部7は、ベクトルレジスタ2からデータを読み出して
演算を行った後、再びベクトルレジスタ2へ結果を格納
する。またデータ使用部3のストアアクセス部6は、ベ
クトルレジスタ2から読み出したデータを主記憶装置8
へストアする。
FIG. 2 is a block diagram of an embodiment showing the overall structure of the present invention. In FIG. 2, a load access unit 1 loads data from the main memory (MSU) 8 and writes it in the vector register 2. A data use unit 3 uses the contents of the vector register 2, and is composed of an arithmetic unit 7, a store access unit 6, and the like. The calculation unit 7 of the data use unit 3 reads the data from the vector register 2 and performs the calculation, and then stores the result in the vector register 2 again. Further, the store access unit 6 of the data use unit 3 stores the data read from the vector register 2 in the main storage device 8.
Store to.

【0019】4はインターロック検出回路であり、ロー
ドアクセス部1とデータ使用部3との連鎖状態を認識
し、ロードアクセス部1がベクトルレジスタ2へ書き込
んだデータの数DN1と、データ使用部3が読み出した
データ数DN2を計数し、インターロックを検出する。
即ち、読出データ数DN2が書込データ数DN1に一致
してベクトルレジスタ2が空になった時に、インターロ
ックの設定を検出し、その後に書込データ数DN1が読
出データ数DN2を越えるとインターロックの解除を検
出する。
Reference numeral 4 denotes an interlock detection circuit, which recognizes the chain state of the load access unit 1 and the data use unit 3, and the number DN1 of data written to the vector register 2 by the load access unit 1 and the data use unit 3 The number of read data DN2 is counted and the interlock is detected.
That is, when the number of read data DN2 matches the number of write data DN1 and the vector register 2 becomes empty, the interlock setting is detected. Detects unlocking.

【0020】更に、5は本発明により新たに設けた強制
的にインターロックの設定と解除を行うインターロック
発生部である。図3は図2に示したインターロック発生
部5の実施例構成図である。図3において、まずインタ
ーロックの設定回路部を説明すると、11はインターロ
ック発生用の第1マスクレジスタ群であり、複数のマス
クラッチ110 〜11n を備え、強制的にインターロッ
クを発生させるためのnビットのマスクデータをn個の
マスクラッチ110 〜11n に予め設定している。
Further, 5 is an interlock generating unit for forcibly setting and releasing the interlock, which is newly provided according to the present invention. FIG. 3 is a block diagram of an embodiment of the interlock generator 5 shown in FIG. 3, when initially describing the setting circuit of the interlock, 11 denotes a first mask register group for interlocking generating comprises a plurality of mask latch 11 0 to 11 n, forcibly generate an interlock It is previously set n of bits of the mask data into n mask latch 11 0 to 11 n for.

【0021】第1マスクレジスタ群11のマスク出力は
強制的なインターロック設定条件を検出するインターロ
ック設定条件検出回路13へ与えられる。またインター
ロック設定検出回路13にはベクトル処理装置自身の内
部信号群A0 〜An も接続されている。従ってインター
ロック設定条件検出回路13は第1マスクレジスタ群1
1からの各マスク出力と内部信号群A0 〜An との各論
理積の論理和によってインターロック設定条件を検出
し、ラッチ17をインターロック設定状態にセットす
る。
The mask output of the first mask register group 11 is given to an interlock setting condition detection circuit 13 which detects a compulsory interlock setting condition. Further, the internal signal groups A 0 to A n of the vector processing device itself are also connected to the interlock setting detection circuit 13. Therefore, the interlock setting condition detection circuit 13 operates in the first mask register group 1
The interlock setting condition is detected by the logical sum of the logical products of the mask outputs from 1 and the internal signal groups A 0 to A n, and the latch 17 is set to the interlock setting state.

【0022】また第1マスクレジスタ群11の各マスク
出力は+1回路15に入力され、+1回路15はインタ
ーロック設定条件検出回路13から検出出力を受けた際
に各マスク出力を+1した値を新たなマスクデータと
し、第1マスクレジスタ群11の各マスクラッチ110
〜11n に与えてマスクデータを更新させる。更に、イ
ンターロック設定条件検出回路13にはラッチ17をリ
セットした際に1となる反転出力が帰還されており、イ
ンターロック17がリセット状態にあることを条件に検
出出力を行ってセット動作を行わせる。
Further, each mask output of the first mask register group 11 is input to the +1 circuit 15, and when the +1 circuit 15 receives the detection output from the interlock setting condition detection circuit 13, the value obtained by adding +1 to each mask output is newly added. Mask data of each mask latch 11 0 of the first mask register group 11
To 11 n to update the mask data. Further, the inverted output that becomes 1 when the latch 17 is reset is fed back to the interlock setting condition detection circuit 13, and the detection output is performed under the condition that the interlock 17 is in the reset state to perform the set operation. Let

【0023】次に図3のインターロックの解除回路部を
説明すると、12はインターロック解除用の第2マスク
レジスタ群であり、複数のマスクラッチ120 〜12n
を備え、強制的にインターロックを解除させるためのn
ビットのマスクデータをn個のマスクラッチ120 〜1
n に予め設定している。第2マスクレジスタ群12の
マスク出力は強制的なインターロック解除条件を検出す
るインターロック解除条件検出回路14へ与えられる。
またインターロック設定検出回路14にはベクトル処理
装置自身の他の内部信号群B0 〜Bn が接続されてい
る。
Next, the interlock release circuit section of FIG. 3 will be described. Reference numeral 12 is a second mask register group for interlock release, and a plurality of mask latches 12 0 to 12 n.
And n for forcibly releasing the interlock
The mask data of bit is n mask latches 12 0 to 1
It is preset to 2 n . The mask output of the second mask register group 12 is applied to the interlock release condition detection circuit 14 which detects a forced interlock release condition.
Further, the interlock setting detection circuit 14 is connected to other internal signal groups B 0 to B n of the vector processing device itself.

【0024】従ってインターロック解除条件検出回路1
4は第2マスクレジスタ群12からの各マスク出力と内
部信号群B0 〜Bn との各論理積の論理和によってイン
ターロック解除条件を検出し、ラッチ17をインターロ
ック解除状態にリセットする。また第2マスクレジスタ
群12の各マスク出力は+1回路16に入力され、+1
回路16はインターロック解除条件検出回路14から検
出出力を受けた際に各マスク出力に+1した値を新たな
マスクデータとし、第2マスクレジスタ群12の各マス
クラッチ120 〜12n に与えてマスクデータを更新さ
せる。
Therefore, the interlock release condition detection circuit 1
Reference numeral 4 detects the interlock release condition by the logical sum of the logical products of the mask outputs from the second mask register group 12 and the internal signal groups B 0 to B n, and resets the latch 17 to the interlock released state. Further, each mask output of the second mask register group 12 is input to the +1 circuit 16 and +1
When the circuit 16 receives the detection output from the interlock release condition detection circuit 14, the value obtained by adding +1 to each mask output is set as new mask data, and is given to each mask latch 12 0 to 12 n of the second mask register group 12. Update the mask data.

【0025】更に、インターロック解除条件検出回路1
4にはラッチ17をセットした際に1となる出力が帰還
されており、インターロック17がセット状態にあるこ
とを条件に検出出力を行ってリセット動作を行わせる。
ベクトル処理装置の内部信号群A0 〜An は動作状態に
よって刻々と変化している。インターロック設定条件検
出回路13は内部信号群A0〜An と、内部信号A0
n のそれぞれに対応する第1マスクレジスタ群11の
各マスクラッチ110 〜11n からマスク信号との複数
の論理積の論理和をとることによってインターロック条
件を発生させる。
Further, the interlock release condition detection circuit 1
An output that becomes 1 when the latch 17 is set is fed back to 4, and the detection output is performed on condition that the interlock 17 is in the set state, and the reset operation is performed.
The internal signal groups A 0 to A n of the vector processing device are changing every moment depending on the operating state. The interlock setting condition detection circuit 13 includes the internal signal groups A 0 to A n and the internal signals A 0 to A n.
Generating an interlock condition by taking the logical sum of a plurality of logical product of the mask latch 11 0 to 11 n mask signal from the first mask register group 11 corresponding to each of the A n.

【0026】インターロック設定条件検出回路13が設
定条件を検出して出力を生ずると、ラッチ17がセット
され、図2のデータ使用部3に対してインターロックを
通知する。尚、インターロック設定条件検出回路3はラ
ッチ17の反転出力を入力していることで、ラッチ17
がリセット状態の時のみインターロックを成立させる。
When the interlock setting condition detection circuit 13 detects the setting condition and produces an output, the latch 17 is set and notifies the data use unit 3 of FIG. 2 of the interlock. Since the interlock setting condition detection circuit 3 receives the inverted output of the latch 17,
The interlock is established only when is reset.

【0027】一方、インターロック設定条件検出回路1
3でインターロックが検出されると、第1マスクレジス
タ群11に設けたマスクラッチ110〜11n からのマ
スク出力は+1回路15によって+1され、マスクラッ
チ110 〜11n にセットすることでマスクデータを更
新させ、新たなインターロックの設定条件を作り出す。
On the other hand, the interlock setting condition detection circuit 1
When the interlock is detected in 3, the mask output from the mask latches 11 0 to 11 n provided in the first mask register group 11 is incremented by +1 by the +1 circuit 15 and set in the mask latches 11 0 to 11 n. The mask data is updated and a new interlock setting condition is created.

【0028】一方、インターロック解除条件検出回路1
4は、インターロック設定条件検出回路13と同様に、
第2マスクレジスタ群12のマスクラッチ120 〜12
n の各マスク出力とベクトル処理装置で発生している他
の内部信号群B0 〜Bn の複数の論理積の論理和をとっ
て強制的なインターロックを解除するタイミングを検出
する。
On the other hand, the interlock release condition detection circuit 1
4 is similar to the interlock setting condition detection circuit 13,
The mask latches 12 0 to 12 of the second mask register group 12
The timing of releasing the compulsory interlock is detected by taking the logical sum of the logical outputs of the respective mask outputs of n and the other internal signal groups B 0 to B n generated in the vector processing device.

【0029】インターロック解除条件検出回路4の出力
によってインターロックラッチ7がリセットされ、デー
タ使用部3のインターロックは解除される。またインタ
ーロック解除条件検出回路14はラッチ17がセット状
態の時のみ解除条件を成立させる。更にインターロック
が解除されると、第2マスクレジスタ群12のマスクラ
ッチ120 〜12n からの出力は+1回路16によって
+1され、マスクラッチ120 〜12n にセットしてマ
スクデータを更新する。
The interlock latch 7 is reset by the output of the interlock release condition detection circuit 4, and the interlock of the data use unit 3 is released. The interlock release condition detection circuit 14 establishes the release condition only when the latch 17 is in the set state. When the interlock is further released, the outputs from the mask latches 12 0 to 12 n of the second mask register group 12 are incremented by +1 by the +1 circuit 16 and set in the mask latches 12 0 to 12 n to update the mask data. ..

【0030】このようなインターロック発生部5の処理
によって、ロード命令の有無、およびロードアクセス部
とデータ使用部が連鎖して動作しているか否かに関わら
ず、非定期的(ランダム的)にインターロックを発生す
ることができる。次に図2を参照して全体的な動作を説
明する。通常はインターロック検出部4が、先行ロード
命令と、先行ロード命令のデータを使用する後続命令と
の間での連鎖状態を認識する。インターロック検出部4
が連鎖動作を認識すると、先行ロード命令がベクトルレ
ジスタ2へ書き込んだデータの数DN1と、後続命令が
ベクトルレジスタ2から読み出したデータの数DN2を
計数し、後続命令が読み出せるデータがベクトルレジス
タ2上に存在しなくなった時点(DN1=DN2の時
点)でインターロックを検出し、ベクトルレジスタ2の
読み出し処理の停止と、データ使用部3の演算部7もし
くはストアアクセス部6に処理の停止を通知する。
By the processing of the interlock generating unit 5 as described above, regardless of the presence / absence of a load instruction, and whether the load access unit and the data use unit are operating in a chained manner, it is aperiodic (random). Interlocks can be generated. Next, the overall operation will be described with reference to FIG. Normally, the interlock detector 4 recognizes a chained state between the preceding load instruction and the succeeding instruction that uses the data of the preceding load instruction. Interlock detector 4
When the chain operation is recognized, the number of data DN1 written to the vector register 2 by the preceding load instruction and the number DN2 of data read by the subsequent instruction from the vector register 2 are counted, and the data read by the subsequent instruction is the vector register 2 An interlock is detected at the time when it no longer exists (at the time when DN1 = DN2), and the stop of the read process of the vector register 2 and the stop of the process to the arithmetic unit 7 or the store access unit 6 of the data use unit 3 are notified. To do.

【0031】一方、テストプログラムを走行して検証の
ためにインターロック発生回路5が有効になると、図3
の実施例に示したように、非定期的にインターロックを
発生し、インターロック検出部4へ通知する。インター
ロック検出部4では、インターロック発生回路5からの
信号によってロードアクセス部1によるベクトルレジス
タへの書き込みの有無、あるいはロード命令そのものの
有無とは無関係に、また連鎖状態とも何ら関係なくベク
トルレジスタ2及びデータ使用部3にインターロックを
発生する。
On the other hand, when the interlock generation circuit 5 becomes effective for the verification by running the test program, as shown in FIG.
As shown in the embodiment, the interlock is generated irregularly and the interlock detector 4 is notified. The interlock detector 4 receives the signal from the interlock generator 5 regardless of whether or not the load access unit 1 writes to the vector register, or whether or not the load instruction itself exists, and has no relation to the chain state. And an interlock is generated in the data use unit 3.

【0032】尚、図3の実施例にあっては、インターロ
ックの設定と解除にマスクデータをラッチするマスクレ
ジスタ群11,12を使用しているが、マスクデータを
使用せずに内部信号群A0 〜An 、B0〜Bn を直接に
インターロック設定条件検出回路13、インターロック
解除条件検出回路14に与えて任意の論理条件、例えば
論理和をとるようにしてもよい。
In the embodiment of FIG. 3, the mask register groups 11 and 12 for latching mask data are used for setting and releasing the interlock, but the internal signal group is used without using the mask data. A 0 to A n and B 0 to B n may be directly applied to the interlock setting condition detecting circuit 13 and the interlock releasing condition detecting circuit 14 to take an arbitrary logical condition, for example, a logical sum.

【0033】またマスクレジスタ更新手段として、マス
クレジスタ群11,12にセットしたマスクデータを+
1回路15,16で更新しているが、インクリメント数
Nを任意に設定した+N回路を使用して更新するように
してもよい。更に、マスクレジスタ更新手段としては、
+N回路15,16の代わりに、シフト回路や乱数回路
を使用しても同様の働きが得られる。
Further, as the mask register updating means, the mask data set in the mask register groups 11 and 12 is +
Although it is updated by one circuit 15 and 16, it may be updated by using a + N circuit in which the increment number N is arbitrarily set. Further, as the mask register updating means,
A similar function can be obtained by using a shift circuit or a random number circuit instead of the + N circuits 15 and 16.

【0034】[0034]

【発明の効果】以上説明したように本発明によれば、ベ
クトル処理装置において、プログラムの実行によりロー
ドアクセス部とデータ使用部とが連鎖している時に発生
するインターロックと同様な複雑なタイミングをもつイ
ンターロックを、テストプログラムの走行によるロード
命令の有無および連鎖状態とは無関係に擬似的に発生さ
せることが可能となり、インターロックの制御を行って
いる回路を早期に検証でき、検証の信頼性を向上するこ
とができる。
As described above, according to the present invention, in the vector processing device, a complicated timing similar to the interlock that occurs when the load access part and the data use part are chained by the execution of the program is provided. It is possible to generate a pseudo interlock regardless of the presence or absence of load instructions and chain status due to the running of the test program, and the circuit that controls the interlock can be verified early and the reliability of verification can be improved. Can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理説明図FIG. 1 is an explanatory diagram of the principle of the present invention.

【図2】本発明の全体構成を示した実施例構成図FIG. 2 is a configuration diagram of an embodiment showing the overall configuration of the present invention.

【図3】図2のインターロック発生部の実施例構成図FIG. 3 is a block diagram of an embodiment of an interlock generator of FIG.

【図4】従来装置の説明図FIG. 4 is an explanatory diagram of a conventional device.

【符号の説明】[Explanation of symbols]

1:ロードアクセス部 2:ベクトルレジスタ 3:データ使用部 4:インターロック検出部 5:インターロック発生部 6:ストアアクセス部 7:演算部 8:主記憶装置(MSU) 11:インターロック発生用の第1マスクレジスタ群 12:インターロック解除用の第2マスクレジスタ群 110 〜11n ,120 〜12n :マスクラッチ 13:インターロック設定条件検出回路 14:インターロック解除条件検出回路 15,16:+1回路 17:インターロックラッチ1: load access unit 2: vector register 3: data use unit 4: interlock detection unit 5: interlock generation unit 6: store access unit 7: operation unit 8: main memory unit (MSU) 11: for interlock generation First mask register group 12: Second mask register group for releasing interlock 11 0 to 11 n , 12 0 to 12 n : Mask latch 13: Interlock setting condition detecting circuit 14: Interlock releasing condition detecting circuit 15, 16 : +1 circuit 17: Interlock latch

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ベクトルレジスタ(2)と、該ベクトルレ
ジスタ(2)へ主記憶装置(8)からのデータ転送を行
うロードアクセス部(1)と、前記ベクトルレジスタ
(2)からデータを読み出して処理を行うデータ使用部
(3)とを備え、 前記ロードアクセス部(1)が実行中であるベクトルレ
ジスタ(2)へのロード命令の終了を待たずに、該ロー
ドアクセス部(1)がベクトルレジスタ(2)へ書き込
んでいるデータを使用して前記データ使用部(3)が処
理を行う連鎖処理が可能であり、 更に前記ロードアクセス部(1)からベクトルレジスタ
(2)へデータの供給が途絶えてベクトルレジスタ
(2)から前記データ使用部(3)へ読み出されるデー
タが無くなってしまった際に、前記データ使用部(3)
をインターロックさせるインターロック検出部(4)を
備えたベクトル処理装置に於いて、 前記ベクトルレジスタ(2)に対するロードアクセス部
(1)とデータ使用部(3)との連鎖処理、及び前記ロ
ードアクセス部(1)からベクトルレジスタ(2)への
データ供給の有無とは無関係に、外部より前記データ使
用部(3)をインターロックさせるインターロック発生
部(5)を設け、インターロックさせる期間及びインタ
ーロックを解除する期間を動的に変化させることを特徴
とするベクトル処理装置。
1. A vector register (2), a load access unit (1) for transferring data from a main memory (8) to the vector register (2), and reading data from the vector register (2). And a data use unit (3) for performing processing, wherein the load access unit (1) executes a vector operation without waiting for completion of a load instruction to the vector register (2) being executed by the load access unit (1). It is possible to perform a chain process in which the data use unit (3) performs processing using the data written in the register (2), and further, data can be supplied from the load access unit (1) to the vector register (2). When the data read from the vector register (2) to the data use unit (3) is lost, the data use unit (3) is lost.
In a vector processing device provided with an interlock detection unit (4) for interlocking a memory, a chain process of a load access unit (1) and a data use unit (3) for the vector register (2), and the load access Regardless of whether or not data is supplied from the unit (1) to the vector register (2), an interlock generation unit (5) for interlocking the data use unit (3) from the outside is provided, and an interlock period and an interlock period are provided. A vector processing device characterized by dynamically changing a lock release period.
【請求項2】請求項1記載のベクトル処理装置に於い
て、 前記インターロック発生部(5)は、 インターロックの設定部として、所定のマスクデータを
格納したインターロック発生用の第1マスクレジスタ群
(11)と、該第1マスクレジスタ群(11)の各マス
ク出力とベクトル処理装置自身の内部信号群(A0 〜A
n )との論理積の論理和をとってラッチ(17)をセッ
トするインターロック設定条件検出回路(13)とを備
え、 インターロック解除部として、所定のマスクデータを格
納したインターロック解除用の第2マスクレジスタ群
(12)と、該第2マスクレジスタ群(12)の各マス
ク出力とベクトル処理装置自身の他の内部信号群(B0
〜Bn )との論理積出力の論理和をとってラッチ(1
7)をリセットするインターロック解除条件検出回路
(14)とを備えたことを特徴とするベクトル処理装
置。
2. The vector processing device according to claim 1, wherein the interlock generation unit (5) is a first mask register for interlock generation, which stores predetermined mask data, as an interlock setting unit. Group (11), each mask output of the first mask register group (11) and the internal signal group (A 0 to A) of the vector processing device itself.
n ) and an interlock setting condition detection circuit (13) for setting a latch (17) by taking the logical sum of the logical product with n ), and as an interlock releasing section, an interlock releasing section for storing predetermined mask data is provided. A second mask register group (12), each mask output of the second mask register group (12), and another internal signal group (B 0 of the vector processing device itself).
~ B n ) and the logical sum of the logical product output and the latch (1
7. A vector processing device comprising an interlock release condition detection circuit (14) for resetting 7).
【請求項3】請求項2記載のベクトル処理装置に於い
て、 前記インターロックの設定部に設けたインターロック発
生用の第1マスクレジスタ群(11)に設定したマスク
データを更新するマスクレジスタ更新手段として、前記
インターロックラッチがセットされる毎に予め定めた数
Nだけインクリメントした値に更新する第1の+N回路
(15)、シフト回路又は乱数回路を設け、 また前記インターロックの設定解除部に設けたインター
ロック解除用の第2マスクレジスタ群(12)に設定し
たマスクデータを更新するマスクレジスタ更新手段とし
て、前記ラッチ(17)がリセットされる毎に予め定め
た数Nだけインクリメントした値に更新する第2の+N
回路(16)、シフト回路又は乱数回路を設けたことを
特徴とするベクトル処理装置。
3. The vector processing device according to claim 2, wherein a mask register update for updating the mask data set in the first mask register group (11) for interlock generation provided in the interlock setting unit. As means, there is provided a first + N circuit (15), a shift circuit or a random number circuit for updating to a value incremented by a predetermined number N each time the interlock latch is set, and the interlock setting canceling section. As a mask register updating means for updating the mask data set in the second mask register group (12) for releasing the interlock provided in, the value incremented by a predetermined number N every time the latch (17) is reset. Second + N to update to
A vector processing device comprising a circuit (16), a shift circuit or a random number circuit.
【請求項4】請求項1記載のベクトル処理装置に於い
て、 前記インターロック発生部(5)は、 インターロックの設定部として、ベクトル処理装置自身
の内部信号群(A0 〜An )の任意の論理をとってラッ
チ(17)をセットするインターロック設定条件検出回
路(13)を備え、 またインターロック解除部として、ベクトル処理装置自
身の他の内部信号群(B0 〜Bn )の任意の論理をとっ
てラッチ(17)をリセットするインターロック解除条
件検出回路(14)とを備えたことを特徴とするベクト
ル処理装置。
4. The vector processing device according to claim 1, wherein the interlock generating unit (5) serves as an interlock setting unit for the internal signal group (A 0 to A n ) of the vector processing device itself. An interlock setting condition detection circuit (13) for setting the latch (17) by taking an arbitrary logic is provided, and as an interlock release unit, another internal signal group (B 0 to B n ) of the vector processing device itself is provided. An interlock release condition detection circuit (14) for resetting a latch (17) by taking an arbitrary logic, and a vector processing device.
JP26807191A 1991-10-17 1991-10-17 Vector processor Pending JPH05108698A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26807191A JPH05108698A (en) 1991-10-17 1991-10-17 Vector processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26807191A JPH05108698A (en) 1991-10-17 1991-10-17 Vector processor

Publications (1)

Publication Number Publication Date
JPH05108698A true JPH05108698A (en) 1993-04-30

Family

ID=17453483

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26807191A Pending JPH05108698A (en) 1991-10-17 1991-10-17 Vector processor

Country Status (1)

Country Link
JP (1) JPH05108698A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60243770A (en) * 1984-05-17 1985-12-03 Fujitsu Ltd Pipe-line control circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60243770A (en) * 1984-05-17 1985-12-03 Fujitsu Ltd Pipe-line control circuit

Similar Documents

Publication Publication Date Title
US5283896A (en) Method and system for controlling mutually exclusive resources using a modified Petri net process control graph
US5928334A (en) Hardware verification tool for multiprocessors
CN1316372C (en) step by step
US5499356A (en) Method and apparatus for a multiprocessor resource lockout instruction
US5440750A (en) Information processing system capable of executing a single instruction for watching and waiting for writing of information for synchronization by another processor
US5640508A (en) Fault detecting apparatus for a microprocessor system
EP0207506A2 (en) Vector processing apparatus
KR890702145A (en) Method and apparatus for implementing multi-lock indicator in multiprocessor computer system
US4251859A (en) Data processing system with an enhanced pipeline control
US5363506A (en) Information processor with delayed interrupt device
JP3797570B2 (en) Apparatus and method using semaphore buffer for semaphore instructions
US5280616A (en) Logic circuit for task processing
EP0305639A2 (en) Vector computer
Lusk et al. Use of monitors in FORTRAN: a tutorial on the barrier, self-scheduling DO-loop, and askfor monitors
JPH053032B2 (en)
US4891773A (en) Logic simulation
JP2000501541A (en) Unpredictable microprocessor or microcomputer
JP3738128B2 (en) Data-driven information processing device
JPH03209569A (en) Logical simulation method
JP3112000B2 (en) Adder circuit
CA1271259A (en) Simulation system
JP3004670B2 (en) Logic simulator
GB2218832A (en) Instruction chaining and data hazard resolution system
JP2755646B2 (en) Data driven data processor
US5644745A (en) Apparatus for replacing data availability information for an instruction subsequent to a branch with previous availability information upon branch prediction failure

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19980303