JP3001545B1 - Vector data processing device - Google Patents

Vector data processing device

Info

Publication number
JP3001545B1
JP3001545B1 JP32730698A JP32730698A JP3001545B1 JP 3001545 B1 JP3001545 B1 JP 3001545B1 JP 32730698 A JP32730698 A JP 32730698A JP 32730698 A JP32730698 A JP 32730698A JP 3001545 B1 JP3001545 B1 JP 3001545B1
Authority
JP
Japan
Prior art keywords
vector
mask
register
data
transfer
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 - Lifetime
Application number
JP32730698A
Other languages
Japanese (ja)
Other versions
JP2000148729A (en
Inventor
雅人 赤池
Original Assignee
甲府日本電気株式会社
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 甲府日本電気株式会社 filed Critical 甲府日本電気株式会社
Priority to JP32730698A priority Critical patent/JP3001545B1/en
Application granted granted Critical
Publication of JP3001545B1 publication Critical patent/JP3001545B1/en
Publication of JP2000148729A publication Critical patent/JP2000148729A/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

【要約】 【課題】 ベクトルデータ制御装置において、ベクトル
レジスタ間でのベクトルデータ移送命令を実行する際、
移送後のベクトルデータのマスク情報の生成とマスクレ
ジスタへの格納を高速に行う。 【解決手段】 ベクトルレジスタ10及びベクトルレジ
スタ20間のデータ移送命令が命令制御部70より発行
されたとき、マスクレジスタ部60内のVCR61から
データの移送にともない順次読みだされ、移送先のベク
トルレジスタ20へのデータの書き込み制御に使用され
るマスクビットを移送後のベクトルデータのマスク情報
として、データ移送処理と並行し、マスクレジスタ部6
0内のVCR61またはVMR62への書き込みを行
う。
In a vector data control device, when a vector data transfer instruction between vector registers is executed,
Generation of mask information of vector data after transfer and storage in a mask register are performed at high speed. SOLUTION: When a data transfer instruction between a vector register 10 and a vector register 20 is issued from an instruction control unit 70, the data is sequentially read from a VCR 61 in a mask register unit 60 in accordance with data transfer, and is transferred to a vector register of a transfer destination. In parallel with the data transfer processing, a mask bit used to control the writing of data to the mask register 20 is used as mask information of the vector data after transfer.
Writing to the VCR 61 or VMR 62 within 0 is performed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ベクトルデータ処
理装置に関し、特にベクトルレジスタ間のベクトルデー
タ移送命令において、移送後のベクトルデータのマスク
情報を高速に生成し、マスクレジスタに格納することの
できるベクトルデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vector data processing apparatus, and more particularly, to a vector data transfer instruction between vector registers, which can generate mask information of vector data after transfer at high speed and store the mask information in a mask register. The present invention relates to a vector data processing device.

【0002】[0002]

【従来の技術】図4は、ベクトルデータ処理装置の従来
例を示す図である。説明を簡略化するためベクトル処理
部Rを1個、ベクトルデータを格納するベクトルレジス
タを2個とする。また、演算部はここでは省略してい
る。
2. Description of the Related Art FIG. 4 is a diagram showing a conventional example of a vector data processing device. For simplicity of explanation, one vector processing unit R and two vector registers for storing vector data are used. The calculation unit is omitted here.

【0003】ベクトルレジスタ10はベクトルレジスタ
番号0(V0)、ベクトルレジスタ20はベクトルレジ
スタ番号1(V1)として、異なるベクトルレジスタ番号
が付与され、それぞれ要素番号0からn−1の合計n
(nは自然数)個の要素を格納できる。読み出しアドレ
スレジスタ11、21および書き込みアドレスレジスタ
12、22は、ベクトルレジスタ制御部40により、読
み出し/書き込みアドレスが設定され、それぞれカウン
ト+1機能を有する。
The vector register 10 is assigned a different vector register number as a vector register number 0 (V0), and the vector register 20 is assigned a different vector register number as a vector register number 1 (V1).
(N is a natural number) elements can be stored. The read / write addresses are set in the read address registers 11 and 21 and the write address registers 12 and 22 by the vector register control unit 40, and each has a count + 1 function.

【0004】また、カウントアップによりアドレスが最
大アドレスを示すと次にアドレス0にもどりカウントア
ップを続ける。マスク生成部80は、命令制御部70か
らマスク生成命令を受け取るとベクトルレジスタ10、
20に格納されているベクトルデータの各要素に対応す
るマスク情報を生成する。これらのマスク情報はマスク
書き込み命令によりマスクレジスタ部60内のベクトル
データ毎に割り当てられたエリアに格納される。
When the address indicates the maximum address by counting up, the process returns to address 0 and continues counting up. When receiving the mask generation instruction from the instruction control unit 70, the mask generation unit 80
The mask information corresponding to each element of the vector data stored in 20 is generated. These pieces of mask information are stored in an area assigned to each vector data in the mask register section 60 by a mask write command.

【0005】マスクレジスタ部60は、ベクトル処理を
実行するとき、処理対象となるベクトルデータのマスク
情報を格納しておくマスクレジスタ(VCR)と、マス
クレジスタの待避用に使用される複数の待避エリア(V
MR)とから構成される。ベクトル処理が行われる際に
は処理対象となるベクトルデータのマスク情報は一旦V
CRにセットされてから使用される。
When performing vector processing, the mask register section 60 stores a mask register (VCR) for storing mask information of vector data to be processed, and a plurality of save areas used for saving the mask register. (V
MR). When vector processing is performed, the mask information of the vector data to be processed is once V
Used after being set to CR.

【0006】ここでベクトルレジスタV0からベクトル
レジスタV1へのベクトルデータ移送命令( V0→V
1 )が発行されると、命令制御部70からマスクレジ
スタ制御部30とベクトルレジスタ制御部40に命令制
御情報として、命令コード、移送元ベクトルレジスタ番
号、移送先ベクトルレジスタ番号、移送開始アドレス、
ベクトル長等の情報が渡される。
Here, a vector data transfer instruction from the vector register V0 to the vector register V1 (V0 → V
When 1) is issued, the instruction code, the transfer source vector register number, the transfer destination vector register number, the transfer start address, and the instruction code are transmitted from the instruction control unit 70 to the mask register control unit 30 and the vector register control unit 40 as instruction control information.
Information such as vector length is passed.

【0007】マスクレジスタ制御部30は移送元のベク
トルレジスタの移送対象ベクトルデータのマスク情報を
マスクレジスタ部60内のVCRにセットすると、移送
開始アドレスで示される要素に対応するマスクビットか
ら順次1ビット単位に読み出し、ベクトルレジスタ制御
部40へ送出する。
When the mask information of the vector data to be transferred of the transfer source vector register is set in the VCR in the mask register unit 60, the mask register control unit 30 sequentially shifts one bit from the mask bit corresponding to the element indicated by the transfer start address. It is read out in units and sent to the vector register control unit 40.

【0008】ベクトルレジスタ制御部40は、移送元ベ
クトルレジスタV0の読み出しアドレスレジスタ11に
移送開始アドレスをセットすると同時に移送先ベクトル
レジスタV1の書き込みアドレスレジスタ22に書き込
み開始アドレスをセットする。移送命令では書き込み開
始アドレスは通常0が指定される。
The vector register control unit 40 sets the transfer start address in the read address register 11 of the transfer source vector register V0 and sets the write start address in the write address register 22 of the transfer destination vector register V1. In the transfer instruction, 0 is usually designated as the write start address.

【0009】アドレスレジスタはカウント+1機能を有
し、セットされた移送開始アドレスからカウントアップ
が行われる。これにともないベクトルレジスタV0から
ベクトル長で指定される要素分のベクトルデータが順次
読み出され、ベクトルデータ選択部90を介して移送先
ベクトルレジスタV1に送られる。
The address register has a count + 1 function, and counts up from the set transfer start address. Along with this, the vector data for the element specified by the vector length is sequentially read from the vector register V0, and sent to the transfer destination vector register V1 via the vector data selection unit 90.

【0010】ここでベクトルレジスタV1へのベクトル
データの書き込みは、書き込みアドレスレジスタ22に
セットされたアドレスからカウントアップに伴い順次行
われていくが、マスクレジスタ部60内のVCRからベ
クトルレジスタ制御部40へ読み出されたマスク情報を
参照し、マスクビットが”1”の要素のベクトルデータ
に関してのみ書き込みを行い、マスクビットが”0”の
要素のベクトルデータは書き込みを行わない。この処理
をベクトル長で指定される要素分行うことで、データの
移送処理が完了する。
Here, the writing of vector data to the vector register V1 is performed sequentially from the address set in the write address register 22 in accordance with the count-up, but from the VCR in the mask register section 60 to the vector register control section 40. With reference to the read mask information, only the vector data of the element whose mask bit is "1" is written, and the vector data of the element whose mask bit is "0" is not written. By performing this processing for the elements specified by the vector length, the data transfer processing is completed.

【0011】ベクトルデータの移送が完了すると次に移
送後のベクトルデータのマスク情報の書き換えを行うた
めにマスク生成命令が発行される。マスク生成命令が発
行されるとスカラ処理部Qのマスク生成部80で、移送
後のベクトルデータのマスク情報が生成され、続くマス
ク情報書き込み命令により、マスクレジスタ部60内の
VCRまたはVMRの所定のエリアにマスク情報の書き
込みが行われる。
When the transfer of the vector data is completed, a mask generation instruction is issued to rewrite the mask information of the vector data after the transfer. When the mask generation instruction is issued, the mask generation unit 80 of the scalar processing unit Q generates the mask information of the vector data after the transfer, and the subsequent mask information write instruction issues a predetermined VCR or VMR in the mask register unit 60. Writing of mask information is performed in the area.

【0012】[0012]

【発明が解決しようとする課題】上述した従来のベクト
ルデータ処理装置では、ベクトルレジスタ間のベクトル
データ移送命令が実行されると、ベクトルデータの移送
処理が終了した後に移送後のベクトルデータのマスク情
報を生成するために、マスク生成命令とマスク書き込み
命令が発行さており、マスク生成はスカラ処理部Qで行
われるため、生成されたマスク情報がベクトル処理部R
のマスクレジスタに書き込まれるまでに時間が掛かって
しまっていた。
In the above-described conventional vector data processing apparatus, when a vector data transfer instruction between vector registers is executed, after the vector data transfer processing is completed, the mask information of the transferred vector data is obtained. In order to generate the mask, a mask generation instruction and a mask write instruction are issued, and the mask generation is performed by the scalar processing unit Q.
It took a long time before it was written to the mask register.

【0013】しかも、後続の命令が、上記処理の結果を
使用する命令である場合には命令の発行が待たされるこ
とになり、ベクトル処理の性能を低下させてしまうとい
う問題点があった。
In addition, when the subsequent instruction is an instruction that uses the result of the above processing, the issue of the instruction is waited, and the performance of vector processing is reduced.

【0014】本発明の目的は、このような背景の下にな
されたもので、ベクトルレジスタ間のベクトルデータ移
送命令において、移送後のベクトルデータのマスク情報
の作成とマスクレジスタへの書き込みを、ベクトルデー
タの移送処理と並行して高速に行うようにしたベクトル
データ処理装置を提供することにある。
The object of the present invention has been made under such a background. In a vector data transfer instruction between vector registers, generation of mask information of vector data after transfer and writing to the mask register are performed by vector control. It is an object of the present invention to provide a vector data processing device that performs high-speed processing in parallel with data transfer processing.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明は、
ベクトルデータ処理装置において、ベクトルデータを保
持する複数のベクトルレジスタと、前記ベクトルレジス
タに保持されるベクトルデータの各要素の有効、無効を
示すマスク情報を格納する複数のマスクレジスタと、前
記ベクトルレジスタから読み出したベクトルデータを処
理する複数の演算器とを具備し、前記ベクトルレジスタ
間でベクトルデータ移送命令を行う場合、前記マスクレ
ジスタから移送元のベクトルデータの各要素に対応して
読み出され、移送先のベクトルレジスタへのベクトルデ
ータの書き込み制御に使用されるマスクビットを、移送
後のベクトルデータのマスク情報としてベクトルデータ
の移送処理に並行してマスクレジスタに書き込むことを
特徴とする。
According to the first aspect of the present invention,
In the vector data processing device, a plurality of vector registers for holding vector data, a plurality of mask registers for storing mask information indicating validity / invalidity of each element of the vector data held in the vector register, and A plurality of operation units for processing the read vector data , wherein the vector register
When performing a vector data transfer instruction between
For each element of the vector data of the transfer source from the register
The vector data is read out and stored in the destination vector register.
Transfers mask bits used for data write control
Vector data as mask information of subsequent vector data
And writing to the mask register in parallel with the transfer processing .

【0016】[0016]

【0017】本発明は、ベクトルデータを保持する複数
のベクトルレジスタと前記ベクトルレジスタに保持され
るベクトルデータの各要素の有効、無効を示すマスク情
報を格納するマスクレジスタと前記ベクトルレジスタか
ら読み出したベクトルデータを処理する演算器を複数備
えるベクトルデータ処理装置において、前記ベクトルレ
ジスタ間でベクトルデータ移送命令が発行されたとき、
移送命令の有効を示す移送命令有効フラグと、マスクレ
ジスタ制御部から移送ベクトルデータの各要素に対応し
てベクトルレジスタ制御部に読み出され、移送先のベク
トルレジスタへのデータの書き込み制御に使用されるマ
スクビットをマスクレジスタ制御部に戻すパスと、該パ
スからのマスク情報と、マスク生成部からのマスク情報
とを入力し、前記移送命令有効フラグにより、どちらか
一方を選択し、マスクレジスタ部へマスク情報を送出す
るセレクタとを有する。
According to the present invention, there are provided a plurality of vector registers for holding vector data, a mask register for storing mask information indicating validity / invalidity of each element of the vector data held in the vector register, and a vector read from the vector register. In a vector data processing device including a plurality of arithmetic units for processing data, when a vector data transfer instruction is issued between the vector registers,
The transfer instruction valid flag indicating the validity of the transfer instruction, and read from the mask register control unit to the vector register control unit corresponding to each element of the transfer vector data, and are used for controlling the writing of data to the transfer destination vector register. A mask bit from the mask generation unit, and a mask instruction from the mask generation unit. And a selector for transmitting the mask information to the selector.

【0018】本発明は、ベクトルデータ処理装置におい
て、ベクトルレジスタ間でベクトルデータ移送命令が発
行されると、移送命令有効フラグに”1”がセットされ
る。ベクトルデータの移送に伴い、ベクトルデータの各
要素に対応したマスクビットがマスクレジスタ部のVC
Rからベクトルレジスタ制御部へ順次読み出され、移送
先のベクトルレジスタへのデータの書き込み制御に使用
される。このマスクビットは、移送後のベクトルデータ
のマスク情報として、読み出された順番で随時マスクレ
ジスタ制御部に戻され、移送命令有効フラグが”1”に
より、セレクタ回路で選択され、マスクレジスタ部内の
VCRおよび移送後のベクトルデータに割り当てられた
VMRへ書き込まれていく。
According to the present invention, in a vector data processing apparatus, when a vector data transfer instruction is issued between vector registers, a transfer instruction valid flag is set to "1". With the transfer of the vector data, the mask bits corresponding to each element of the vector data are stored in the VC of the mask register section.
The data is sequentially read from R to the vector register control unit, and is used for controlling writing of data to the destination vector register. This mask bit is returned to the mask register control unit at any time in the read order as mask information of the vector data after the transfer, and the transfer instruction valid flag is selected by the selector circuit by "1", and the mask instruction in the mask register unit The data is written to the VCR and the VMR assigned to the vector data after the transfer.

【0019】[0019]

【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。図1は、本発明の一実施形態によ
るベクトルデータ処理装置の構成を示すブロック図であ
る。図2は、図1におけるマスクレジスタ制御部30の
構成を示すブロック図である。図3は、ベクトル移送命
令におけるデータとマスクビットとの関係を示す図であ
る。
Next, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a vector data processing device according to an embodiment of the present invention. FIG. 2 is a block diagram showing a configuration of the mask register control unit 30 in FIG. FIG. 3 is a diagram showing a relationship between data and mask bits in a vector transfer instruction.

【0020】説明を簡略化するため、図1においてベク
トル処理部Bを1個、ベクトルデータを格納するベクト
ルレジスタを2個とし、ベクトルデータの演算を行う演
算部は、本発明に直接関係しないため省略してある。こ
の実施形態のベクトルデータ処理装置は、命令の発行と
マスク生成等を行うスカラ処理部Sとスカラ処理部Sか
ら命令を受け取りベクトルデータ処理を行うベクトル処
理部Bとから成る。
For simplicity of description, in FIG. 1, one vector processing unit B and two vector registers for storing vector data are used, and the operation unit for calculating vector data is not directly related to the present invention. Omitted. The vector data processing apparatus according to this embodiment includes a scalar processing unit S for issuing an instruction and generating a mask, and a vector processing unit B for receiving an instruction from the scalar processing unit S and performing vector data processing.

【0021】スカラ処理部Sは、命令の発行制御を行う
命令制御部70とマスク生成を行うマスク生成部80で
構成され、ベクトル処理部Bへの命令の発行、マスク情
報送出等を行う。
The scalar processing section S is composed of an instruction control section 70 for controlling the issuance of instructions and a mask generating section 80 for generating a mask. The scalar processing section S issues instructions to the vector processing section B, sends mask information, and the like.

【0022】ベクトル処理部Bは、2個のベクトルレジ
スタ10およびベクトルレジスタ20、ベクトルレジス
タ10及びベクトルレジスタ20のそれぞれの読み出し
アドレスを指定する読み出しアドレスレジスタ11,ア
ドレスレジスタ21、ベクトルレジスタ10及びベクト
ルレジスタ20の書き込みアドレスを指定する書き込み
アドレスレジスタ12,アドレスレジスタ22、ベクト
ルレジスタ10及びベクトルレジスタ20への書き込み
データを選択する選択部90、ベクトルレジスタ10及
びベクトルレジスタ20に格納されるベクトルデータの
マスク情報を格納するマスクレジスタ部60,マスクレ
ジスタ部60への入力データを選択するセレクタ回路5
0,マスクレジスタ部60へのマスク情報の書き込み、
読み出しを制御するマスクレジスタ制御部30、ベクト
ルレジスタ10及びベクトルレジスタ20へのベクトル
データの書き込み、読み出しを制御するベクトルレジス
タ制御部40とから構成される。
The vector processing unit B includes two vector registers 10 and 20, a read address register 11, an address register 21, a vector register 10, and a vector register 10 for specifying respective read addresses of the vector registers 10 and 20. 20, a write address register 12, an address register 22, a vector register 10 and a selection unit 90 for selecting data to be written to the vector register 20, and mask information of vector data stored in the vector register 10 and the vector register 20. Register section 60 for storing data, and selector circuit 5 for selecting input data to mask register section 60
0, writing of mask information to the mask register unit 60,
It comprises a mask register control unit 30 for controlling reading, a vector register 10 and a vector register control unit 40 for controlling writing and reading of vector data to and from the vector register 20.

【0023】ベクトルレジスタ10及びベクトルレジス
タ20には、異なるベクトルレジスタ番号が付与されて
いる。例えば、ベクトルレジスタ10はベクトルレジス
タ番号0(V0)、ベクトルレジスタ20はベクトルレ
ジスタ番号1(V1)とし、それぞれベクトルデータの
要素番号0からn−1までの合計n個のベクトルデータ
を格納することができる。
The vector register 10 and the vector register 20 are assigned different vector register numbers. For example, the vector register 10 has a vector register number 0 (V0) and the vector register 20 has a vector register number 1 (V1), and stores a total of n vector data from element numbers 0 to n-1 of the vector data. Can be.

【0024】マスク生成部80はマスク生成命令が命令
制御部70から発行されると、ベクトルレジスタ10及
び20に格納されるベクトルデータのマスク情報を生成
し、マスクレジスタ制御部30に送出する。マスク情報
は、セレクタ50で選択されマスクレジスタ部60に書
き込まれる。
When a mask generation instruction is issued from the instruction control unit 70, the mask generation unit 80 generates mask information of the vector data stored in the vector registers 10 and 20, and sends it to the mask register control unit 30. The mask information is selected by the selector 50 and written into the mask register unit 60.

【0025】図2にマスクレジスタ制御部の詳細ブロッ
ク図を示す。図2において、マスクレジスタ制御部は、
ベクトルレジスタに格納されているベクトルデータのマ
スク情報を格納するマスクレジスタ部と、ベクトル処理
命令が発行されると、移送命令の有効を示す移送命令有
効フラグ31と、マスクレジスタ部に入力するマスク情
報を、前記移送命令有効フラグが”1”のときベクトル
レジスタ制御部からのマスク情報を選択し、”0”のと
きマスク生成部80から送られてくるマスク情報を選択
するセレクタ回路50とから構成される。
FIG. 2 is a detailed block diagram of the mask register control unit. In FIG. 2, the mask register control unit includes:
A mask register unit for storing mask information of vector data stored in a vector register, a transfer instruction valid flag 31 indicating that a transfer instruction is valid when a vector processing instruction is issued, and mask information input to the mask register unit And a selector circuit 50 for selecting mask information from the vector register control unit when the transfer instruction valid flag is "1" and selecting mask information sent from the mask generation unit 80 when the transfer instruction valid flag is "0". Is done.

【0026】マスクレジスタ部は、処理対象となるベク
トルデータのマスク情報を格納しておくベクトルレジス
タ(VCR)61とVCR61の待避エリアとして使用
される複数のレジスタ(VMR0〜VMRm-1、mは自然
数)からなるVMR62とから構成される。必要に応じ
てVCR61及びVMR62間の転送を行うことができ
る。マスク生成命令で生成されたベクトルレジスタV0
およびV1のベクトルデータのマスク情報は、VCR6
1またはベクトルデータ毎に割り当てられるVMR62
に格納されている。ベクトル処理実行時には処理対象ベ
クトルデータのマスク情報は一旦VCR61に読み出さ
れてから使用される。
The mask register section includes a vector register (VCR) 61 for storing mask information of vector data to be processed, and a plurality of registers (VMR0 to VMRm-1, where m is a natural number) used as a save area for the VCR 61. )). Transfer between the VCR 61 and the VMR 62 can be performed as needed. Vector register V0 generated by mask generation instruction
And the mask information of the vector data of V1 is VCR6
VMR 62 assigned to each one or vector data
Is stored in When the vector processing is executed, the mask information of the processing target vector data is once read out to the VCR 61 and used.

【0027】命令制御部70から、ベクトルレジスタ間
のベクトルデータ移送命令 たとえばベクトルレジスタ
0番からベクトルレジスタ1番へのベクトルデータ移送
命令(V0→V1)が発行されると、まず命令制御部7
0からマスクレジスタ制御部30とベクトルレジスタ制
御部40へ命令制御情報として、命令コード、移送元ベ
クトルレジスタ番号(V0)、移送先ベクトルレジスタ
番号(V1)、移送開始要素アドレス、移送ベクトル長
が渡される。ここでは、移送開始アドレスを”1”、ベ
クトル長をn(nは自然数)とする。
When the instruction control unit 70 issues a vector data transfer instruction between vector registers, for example, a vector data transfer instruction (V0 → V1) from the vector register 0 to the vector register 1, the instruction control unit 7
From 0, the instruction code, transfer source vector register number (V0), transfer destination vector register number (V1), transfer start element address, and transfer vector length are passed to the mask register control unit 30 and the vector register control unit 40 as command control information. It is. Here, the transfer start address is “1”, and the vector length is n (n is a natural number).

【0028】図3を参照して、一実施形態のベクトル処
理装置を説明する。図3は、ベクトルデータの移送処理
状態を説明する概念図である。マスクレジスタ制御部4
0は、移送対象データであるベクトルレジスタV0のベ
クトルデータのマスク情報をVCRにセットすると(図
3(a))移送開始アドレスである1要素目のデータa1
に対応したマスクビットからベクトル長で示されるn個
のマスクビットが1ビット単位に連続してベクトルレジ
スタ制御部に送出される。(図3(b))
Referring to FIG. 3, a vector processing apparatus according to one embodiment will be described. FIG. 3 is a conceptual diagram illustrating the state of the vector data transfer process. Mask register control unit 4
When the mask information of the vector data of the vector register V0 as the transfer target data is set in the VCR (FIG. 3A), the data a1 of the first element which is the transfer start address
Are transmitted to the vector register control unit continuously in units of 1 bit from the mask bits corresponding to. (Fig. 3 (b))

【0029】ベクトルレジスタ制御部40は、移送元ベ
クトルレジスタV0の読み出しアドレスレジスタ11に
移送開始アドレス(ここでは”1”)をセットすると同
時に移送先ベクトルレジスタV1の書き込みアドレスレ
ジスタ22へ書き込み開始アドレス”0”をセットす
る。読み出しアドレスレジスタ11は設定されたアドレ
ス”1”からカウントアップを始める。
The vector register controller 40 sets the transfer start address (here, "1") in the read address register 11 of the transfer source vector register V0, and at the same time, writes the write start address in the write address register 22 of the transfer destination vector register V1. Set "0". The read address register 11 starts counting up from the set address “1”.

【0030】これに伴い、要素番号1のベクトルデータ
a1からベクトル長で示されるn個のデータが順次読み
出され選択部90を介して移送先ベクトルレジスタV1
に送られる。( 図3(c)) ベクトルレジスタV1へのベ
クトルデータの書き込みは、マスクレジスタ部60から
移送要素に対応してベクトルレジスタ制御部40に順次
読み出されるマスクビット(図3(b))を参照し、マスク
ビットが”1”の要素のみ書き込みを行い、マスクビッ
トが”0”の要素の書き込みは抑止される。
Accordingly, n pieces of data indicated by the vector length are sequentially read from the vector data a1 of the element number 1 and transferred to the transfer destination vector register V1 via the selector 90.
Sent to (FIG. 3 (c)) Writing of vector data to the vector register V1 refers to mask bits (FIG. 3 (b)) sequentially read from the mask register unit 60 to the vector register control unit 40 corresponding to the transfer element. , Only the element whose mask bit is “1” is written, and writing of the element whose mask bit is “0” is suppressed.

【0031】上記の動作をベクトル長分繰り返し、最終
要素がベクトルレジスタV1に書き込まれるベクトルデ
ータの移送処理が完了する。( 図3(e) ) マスクレジスタ部60のVCR61から読み出されベク
トルデータの書き込み制御に使用したマスクビット(
図3(b))は、読み出された順番で随時マスクレジスタ制
御部30に戻される。移送命令有効フラグが”1”であ
るため、セレクタ回路50で選択され、マスクレジスタ
部60のVCR61および移送後のベクトルデータに割
り当てられたVMR62へ書き込まれるていく。この処
理はベクトルデータの移送処理と並行して行われるため
ベクトルデータの最終要素の書き込みが終了した時点で
マスク情報の格納も終了する。( 図3(d))
The above operation is repeated for the vector length, and the transfer processing of the vector data in which the last element is written to the vector register V1 is completed. (FIG. 3 (e)) The mask bit read from the VCR 61 of the mask register unit 60 and used for the write control of the vector data (
FIG. 3B) is returned to the mask register control unit 30 at any time in the read order. Since the transfer instruction valid flag is “1”, the data is selected by the selector circuit 50 and written into the VCR 61 of the mask register unit 60 and the VMR 62 assigned to the vector data after transfer. Since this process is performed in parallel with the transfer process of the vector data, the storage of the mask information ends when the writing of the last element of the vector data is completed. (Fig. 3 (d))

【0032】上述したように、ベクトルレジスタ10と
ベクトルレジスタ20と間で、ベクトルデータ移送命令
が発行されたとき、ベクトルデータの移送に伴い各要素
に対応してマスクレジスタ部60内のVCRから順次ベ
クトルレジスタ制御部40に読み出され、移送先のベク
トルレジスタ10またはベクトルレジスタ20へのデー
タの書き込み制御に使用されるマスクビットがそのまま
移送後のマスク情報として使用できることに着目し、読
み出されたマスクビットをマスクレジスタ部60に戻
し、VCR61およびVMR62に書き込むことによ
り、移送後のデータのマスク情報の生成と書き込みを、
データの移送処理と並行して完了させることができる。
したがって従来技術のように移送データの移送処理の後
で、マスク生成を行う必要がなくなるためベクトル処理
の高速化を実現することができる。
As described above, when a vector data transfer instruction is issued between the vector registers 10 and 20, when the vector data is transferred, the VCR in the mask register unit 60 sequentially corresponds to each element as the vector data is transferred. Focusing on the fact that the mask bits read by the vector register control unit 40 and used for controlling the writing of data to the vector register 10 or the vector register 20 of the transfer destination can be used as is as the mask information after the transfer, the read is performed. By returning the mask bit to the mask register unit 60 and writing the mask bit to the VCR 61 and the VMR 62, generation and writing of the mask information of the data after the transfer can be performed.
It can be completed in parallel with the data transfer process.
Therefore, it is not necessary to generate a mask after the transfer processing of the transfer data as in the prior art, so that the speed of the vector processing can be increased.

【0033】[0033]

【発明の効果】以上説明したように、本発明によれば、
ベクトルレジスタ間でのベクトルデータ移送命令が発行
されたとき、ベクトルデータの移送に伴い各要素に対応
してマスクレジスタから順次読み出され、移送先のベク
トルレジスタへのデータの書き込み制御に使用されるマ
スクビットがそのまま移送後のマスク情報として使用で
きることに着目し、読み出されたマスクビットをマスク
レジスタに戻して書き込むことにより、移送後のデータ
のマスク情報の生成と書き込みを、データの移送処理と
並行して完了させることができる。したがって従来技術
のように移送データの移送処理の後で、マスク生成を行
う必要がなくなるためベクトル処理の高速化を実現する
ことができる。
As described above, according to the present invention,
When a vector data transfer instruction is issued between vector registers, the data is sequentially read from the mask register corresponding to each element in accordance with the transfer of the vector data, and is used to control writing of data to the vector register of the transfer destination. Focusing on the fact that the mask bits can be used as is as the mask information after the transfer, and by writing the read mask bits back to the mask register, generation and writing of the mask information of the data after the transfer can be performed by the data transfer processing and the data transfer processing. Can be completed in parallel. Therefore, it is not necessary to generate a mask after the transfer processing of the transfer data as in the prior art, so that the speed of the vector processing can be increased.

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

【図1】 本発明の一実施形態によるベクトル処理装置
の構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a vector processing device according to an embodiment of the present invention.

【図2】 図1におけるマスクレジスタ制御部30の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a mask register control unit 30 in FIG.

【図3】 図1のベクトル処理装置におけるベクトルデ
ータ移送処理の動作を示す概念図である。
FIG. 3 is a conceptual diagram showing an operation of a vector data transfer process in the vector processing device of FIG. 1;

【図4】 従来例によるベクトル処理装置の構成を示す
ブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a vector processing device according to a conventional example.

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

10,20・・・ベクトルレジスタ 11,21・・・読み出しアドレスレジスタ 12,22・・・書き込みアドレスレジスタ 30 ・・・・・マスクレジスタ制御部 31 ・・・・・移送命令有効フラグ 40 ・・・・・ベクトルレジスタ制御部 50 ・・・・・セレクタ回路 60 ・・・・・マスクレジスタ部 61 ・・・・・VCR(ベクトルレジスタ) 62 ・・・・・VMR(VCRの待避エリア) 70 ・・・・・命令制御部 80 ・・・・・マスク生成部 90 ・・・・・べクトルデータ選択部 10, 20 ... vector register 11, 21 ... read address register 12, 22 ... write address register 30 ... mask register control unit 31 ... transfer instruction valid flag 40 ... ..Vector register control unit 50... Selector circuit 60... Mask register unit 61... VCR (vector register) 62... VMR (evacuation area of VCR) 70. ··· Instruction control unit 80 ···· Mask generation unit 90 ···· Vector data selection unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/16 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 17/16

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 ベクトルデータを保持する複数のベクト
ルレジスタと、 前記ベクトルレジスタに保持されるベクトルデータの各
要素の有効、無効を示すマスク情報を格納する複数のマ
スクレジスタと、 前記ベクトルレジスタから読み出したベクトルデータを
処理する複数の演算器と を具備し、 前記ベクトルレジスタ間でベクトルデータ移送命令を行
う場合、前記マスクレジスタから移送元のベクトルデー
タの各要素に対応して読み出され、移送先のベクトルレ
ジスタへのベクトルデータの書き込み制御に使用される
マスクビットを、移送後のベクトルデータのマスク情報
としてベクトルデータの移送処理に並行してマスクレジ
スタに書き込む ことを特徴とするベクトルデータ処理装
置。
A plurality of vector registers for holding vector data; a plurality of mask registers for storing mask information indicating valid / invalid of each element of the vector data held in the vector registers; and and a plurality of arithmetic units for processing the vector data, a row vector data transfer instructions between said vector registers
In this case, the vector data of the transfer source is
Is read out for each element of the
Used to control writing vector data to the register
Mask bit, mask information of vector data after transfer
Mask register in parallel with vector data transfer processing
A vector data processing device characterized by writing data to a star .
JP32730698A 1998-11-17 1998-11-17 Vector data processing device Expired - Lifetime JP3001545B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32730698A JP3001545B1 (en) 1998-11-17 1998-11-17 Vector data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32730698A JP3001545B1 (en) 1998-11-17 1998-11-17 Vector data processing device

Publications (2)

Publication Number Publication Date
JP3001545B1 true JP3001545B1 (en) 2000-01-24
JP2000148729A JP2000148729A (en) 2000-05-30

Family

ID=18197666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32730698A Expired - Lifetime JP3001545B1 (en) 1998-11-17 1998-11-17 Vector data processing device

Country Status (1)

Country Link
JP (1) JP3001545B1 (en)

Also Published As

Publication number Publication date
JP2000148729A (en) 2000-05-30

Similar Documents

Publication Publication Date Title
JP2008181551A (en) Vector tailgating for computer provided with vector register
KR20000034787A (en) Word width selection for sram cache
JP3081614B2 (en) Partial write control device
JPH07121437A (en) Computer system
JP3001545B1 (en) Vector data processing device
JPS619766A (en) Data transfer device
JP2001167084A (en) Vector operation processor and vector data moving method
JPH0644051A (en) Microcomputer
JP2661150B2 (en) Data transfer device
JP2826490B2 (en) Vector data processing device
JP3284949B2 (en) Apparatus and method for storing bus trace in storage device and recording medium
JP2969645B2 (en) Time slot replacement circuit
JPS6230461B2 (en)
JP3693873B2 (en) Mask bit number arithmetic unit, vector processing unit, information processing unit
JPH03141444A (en) Data processor
JP3961473B2 (en) Vector type computer and memory access request generation circuit as its component
JP2771350B2 (en) Image processing device
JPH01255933A (en) Sweeping-out control system
JP2926951B2 (en) Save / restore register address generation circuit
JPH02190968A (en) Vector processor
JPH04348446A (en) Direct memory access device
JPH0412491B2 (en)
JPH0415844A (en) Cache memory control circuit
JPH10105457A (en) Memory control system and memory control circuitt
JPH03241445A (en) Pipeline system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991019