JPH07239844A - Vector processor - Google Patents

Vector processor

Info

Publication number
JPH07239844A
JPH07239844A JP2874094A JP2874094A JPH07239844A JP H07239844 A JPH07239844 A JP H07239844A JP 2874094 A JP2874094 A JP 2874094A JP 2874094 A JP2874094 A JP 2874094A JP H07239844 A JPH07239844 A JP H07239844A
Authority
JP
Japan
Prior art keywords
vector
valid
register
effective
address
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
JP2874094A
Other languages
Japanese (ja)
Inventor
Kazue Shijiyou
多恵 四條
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.)
NEC Computertechno Ltd
Original Assignee
NEC Computertechno 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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP2874094A priority Critical patent/JPH07239844A/en
Publication of JPH07239844A publication Critical patent/JPH07239844A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To much more accelerate the vector processing by executing a conditional vector arithmetic instruction with a vector length degenerated just to a valid position. CONSTITUTION:A vector control register 1 holds a mask bit showing validity and invalidity to be used for the conditional vector arithmetic instruction. An instruction issue control part 2 controls the issue of vector arithmetic instruction. When the conditional vector arithmetic instruction is issued from the instruction issue control part 2, valid address designating means 3 and 4 successively investigate valid bit positions where the mask bit is '1' in the vector control register 1 and designate the valid address to respective vector data registers 7, 8 and 9 corresponding to those valid bit positions. The vector data registers 7 and 8 are read by using only the designated valid address, and a computing element 10 alternately calculates those contents and stores the arithmetic result in the vector data register 9 by using only the designated valid address.

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, and more particularly to a vector processing device for an information processing system.

【0002】[0002]

【従来の技術】従来のベクトル処理装置は、ベクトル演
算命令が連続する場合でかつベクトル制御レジスタ中の
処理の有効を示すマスクビットの数がベクトル長に占め
る割合が低い場合(例えば、スパースベクトルのような
場合)に、元のベクトルデータを有効位置のみの構成の
ベクトルデータに縮退させるベクトルコンプレス命令を
実行した後に、短ベクトル長のベクトルデータでベクト
ル演算命令を実行して、最後に、再びベクトル制御レジ
スタの内容に従って縮退された各データを縮退前の要素
番号の位置に展開するベクトルエクスパンド命令を実行
することにより、ベクトル処理の高速化を計っている。
2. Description of the Related Art A conventional vector processing apparatus is used when vector operation instructions are consecutive and the number of mask bits indicating the effectiveness of processing in a vector control register is low in the vector length (for example, a sparse vector In such a case), after executing a vector compress instruction to degenerate the original vector data into vector data having only valid positions, execute a vector operation instruction with vector data of short vector length, and finally, again. By executing a vector expand instruction that expands each data degenerated according to the contents of the vector control register to the position of the element number before degeneration, the speed of vector processing is increased.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のベクト
ル処理装置は、元のベクトル長の条件付きベクトル演算
命令を実行するよりは、ベクトル処理を高速化すること
ができるけれども、元のベクトルデータをベクトルコン
プレス命令で有効データのみに縮退させて、有効データ
分のベクトル長でのベクトル演算命令を実行し、最後
に、ベクトルエクスパンド命令で再び縮退前の要素番号
の位置に各データを展開しているので、多くの処理時間
を必要とするという欠点を有している。
Although the above-described conventional vector processing device can speed up the vector processing as compared with the case where the conditional vector operation instruction of the original vector length is executed, the original vector data can be processed. The vector compress instruction degenerates only valid data, executes the vector operation instruction with the vector length of valid data, and finally the vector expand instruction expands each data again to the position of the element number before degeneration. Therefore, it has a drawback that it requires a lot of processing time.

【0004】[0004]

【課題を解決するための手段】第1の発明のベクトル処
理装置は、(A)条件付きベクトル演算命令に使用する
有効および無効を示すマスク情報のN(Nは正の整数)
個のマスクビットを保持するベクトル制御レジスタと、
(B)ベクトル演算命令の発行を制御する命令発行制御
部と、(C)それぞれがN個のアドレスを持つM(Mは
正の整数)個のベクトルデータレジスタと、(D)前記
命令発行制御部から条件付きベクトル演算命令が発行さ
れたときに、前記ベクトル制御レジスタのマスクビット
が“1”である有効ビット位置を順次に調査し、その有
効ビット位置に対応するM個の前記ベクトルデータレジ
スタの有効アドレスを指定する複数の有効アドレス指定
手段と、(E)前記有効アドレス指定手段の一つによっ
て順次に指定された有効アドレスだけを使用して幾つか
の前記ベクトルデータレジスタを読出し、それらの内容
を相互に演算して、他の前記有効アドレス指定手段によ
って順次に指定された有効アドレスだけを使用して演算
結果を前記ベクトルデータレジスタに格納する演算手段
と、を備えて構成されている。
The vector processing device of the first invention is (A) N of mask information (N is a positive integer) indicating valid and invalid used for a conditional vector operation instruction.
A vector control register that holds the mask bits,
(B) an instruction issue control unit for controlling the issue of vector operation instructions; (C) M (M is a positive integer) vector data registers each having N addresses; and (D) the instruction issue control. Section sequentially issues a conditional vector operation instruction, sequentially examines valid bit positions in which the mask bit of the vector control register is "1", and M vector data registers corresponding to the valid bit positions A plurality of valid address designating means for designating valid addresses, and (E) reading only some of the vector data registers using only valid addresses sequentially designated by one of the valid address designating means, The contents are mutually calculated, and the calculation result is calculated by using only the effective addresses sequentially specified by the other effective address specifying means. It is configured to include a calculating means for storing the data register, a.

【0005】また、第2の発明のベクトル処理装置は、
(A)条件付きベクトル演算命令に使用する有効および
無効を示すマスク情報のN(Nは正の整数)個のマスク
ビットを保持するベクトル制御レジスタと、(B)演算
を行う対象とするベクトル長L(Lは正の整数でL≦
N)を保持するベクトル長レジスタと、(C)ベクトル
演算命令の発行を制御する命令発行制御部と、(D)そ
れぞれがN個のアドレスを持つM(Mは正の整数)個の
ベクトルデータレジスタと、(E)前記命令発行制御部
から条件付きベクトル演算命令が発行されたときに、前
記ベクトル制御レジスタのマスクビットが“1”である
有効ビット位置を順次に調査して、L以下の位置にある
有効ビット位置に対応するM個の前記ベクトルデータレ
ジスタの有効アドレスを保持する有効アドレス指定手段
と、(F)前記ベクトル制御レジスタのL以下のビット
位置にある有効を示すマスクビットの数を計数する有効
ビット数カウンタと、(G)前記有効アドレス指定手段
に保持する有効アドレスだけを順次に使用して幾つかの
前記ベクトルデータレジスタを読出し、それらの内容を
相互に演算し、前記有効アドレス指定手段に保持する有
効アドレスだけを使用して、演算結果を順次に前記ベク
トルデータレジスタに格納する演算手段と、を備えて構
成されている。
The vector processing device of the second invention is
(A) A vector control register that holds N (N is a positive integer) mask bits of mask information indicating valid and invalid to be used for a conditional vector operation instruction, and (B) a vector length to be operated L (L is a positive integer and L ≦
N), a vector length register, (C) an instruction issue control unit for controlling the issuance of vector operation instructions, and (D) M (M is a positive integer) vector data each having N addresses. (E) When a conditional vector operation instruction is issued from the instruction issue control unit, the effective bit position where the mask bit of the vector control register is “1” is sequentially examined, and L or less Valid address designating means for holding valid addresses of M vector data registers corresponding to valid bit positions at positions, and (F) the number of mask bits indicating validity at bit positions below L of the vector control register. And (G) some of the vector data by sequentially using only the effective address held in the effective address designating means. Arithmetic means for reading out the registers, mutually calculating the contents thereof, and sequentially storing the operation result in the vector data register using only the effective address held in the effective address designating means. ing.

【0006】さらに、第3の発明のベクトル処理装置
は、(A)条件付きベクトル演算命令に使用する有効お
よび無効を示すマスク情報のN(Nは正の整数)個のマ
スクビットを保持するベクトル制御レジスタと、(B)
演算を行う対象とするベクトル長L(Lは正の整数でL
≦N)を保持するベクトル長レジスタと、(C)ベクト
ル演算命令の発行を制御する命令発行制御部と、(D)
それぞれがN個のアドレスを持つM(Mは正の整数)個
のベクトルデータレジスタと、(E)前記命令発行制御
部から条件付きベクトル演算命令が発行されたときに、
前記ベクトル制御レジスタのマスクビットが“1”であ
る有効ビット位置を順次に調査し、L以下の位置にある
有効ビット位置に対して、マスクビットが“1”である
最初の有効ビット位置を保持して、以降には保持した有
効ビット位置から次の有効ビット位置までの距離を求め
た有効ビット間隔を保持する有効アドレス指定手段と、
(F)前記ベクトル制御レジスタのL以下のビット位置
にある有効を示すマスクビットの数を計数する有効ビッ
ト数カウンタと、(G)前記有効アドレス指定手段に保
持する最初の有効ビット位置および以降の有効ビット間
隔を順次に受けて、これらを加算して前記ベクトルデー
タレジスタにリードアドレスを順次に送出するリードア
ドレスカウンタと、(H)前記有効アドレス指定手段に
保持する最初の有効ビット位置および以降の有効ビット
間隔を順次に受けて、これらを加算して前記ベクトルデ
ータレジスタにライトアドレスを順次に送出するライト
アドレスカウンタと、(I)前記リードアドレスカウン
タから得たリードアドレスを順次に使用して、幾つかの
前記ベクトルデータレジスタを読出し、それらの内容を
相互に演算し、前記ライトアドレスカウンタから得たラ
イトアドレスを順次に使用し、演算結果を前記ベクトル
データレジスタの有効アドレスだけに格納する演算手段
と、を備えて構成されている。
Further, the vector processing device according to the third invention is (A) a vector holding N (N is a positive integer) mask bits of mask information indicating valid and invalid used for a conditional vector operation instruction. Control register, (B)
Vector length L to be calculated (L is a positive integer L
≦ N), a vector length register holding (N), (C) an instruction issue control unit for controlling the issue of vector operation instructions, and (D)
M (M is a positive integer) vector data registers each having N addresses, and (E) when a conditional vector operation instruction is issued from the instruction issue control unit,
The effective bit positions of which the mask bit of the vector control register is "1" are sequentially examined, and the first effective bit position of which the mask bit is "1" is held for the effective bit positions of positions L and below. Then, after that, an effective address designating means for holding an effective bit interval for obtaining a distance from the held effective bit position to the next effective bit position,
(F) An effective bit number counter for counting the number of mask bits indicating the effectiveness at bit positions below L of the vector control register, and (G) the first effective bit position held in the effective addressing means and the following. A read address counter that sequentially receives valid bit intervals, adds them, and sequentially outputs a read address to the vector data register; and (H) a first valid bit position held in the valid address designating means, and the following. A write address counter that sequentially receives valid bit intervals, adds them, and sequentially sends a write address to the vector data register, and (I) sequentially uses a read address obtained from the read address counter, Read some of the vector data registers and inter-compute their contents, Light sequentially using the write address obtained from the address counter, and the operation result is configured to include a calculating means for storing only valid address vector data register.

【0007】[0007]

【実施例】続いて、本発明の実施例について、図面を参
照して説明する。図1は本発明のベクトル処理装置の第
1の実施例を示すブロック図である。また、図2は図1
のベクトル制御レジスタ1の内容および有効アドレス指
定手段3,4の内容の一例を示す図である。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of the vector processing device of the present invention. 2 is shown in FIG.
3 is a diagram showing an example of the contents of the vector control register 1 and the contents of effective address designating means 3 and 4 of FIG.

【0008】第1の実施例では、図1および図2に示す
ベクトル制御レジスタ1中のマスクビットが“1”のと
き、ベクトルデータレジスタ7,8,9に対するその位
置が有効であることを示すとともに、処理可能な最大ベ
クトル長が“15”になっている。
In the first embodiment, when the mask bit in the vector control register 1 shown in FIGS. 1 and 2 is "1", it indicates that the position with respect to the vector data registers 7, 8 and 9 is valid. At the same time, the maximum vector length that can be processed is "15".

【0009】以下に、条件付きベクトル演算命令が実行
された場合の動作を図1および図2に基いて説明する。
The operation when the conditional vector operation instruction is executed will be described below with reference to FIGS. 1 and 2.

【0010】まず、命令発行制御部2により、条件付き
ベクトル演算命令が発行されると、有効アドレス指定手
段3は、ベクトル制御レジスタ1中のマスクビットが
“1”である有効ビット位置のアドレスを“00”から
順次に調査し、1サイクルごとにリードアドレスレジス
タ5に送出している。
First, when the conditional vector operation instruction is issued by the instruction issue control unit 2, the effective address designating means 3 sets the address of the effective bit position where the mask bit in the vector control register 1 is "1". It is sequentially investigated from "00" and is sent to the read address register 5 every cycle.

【0011】すなわち、図2の如く、最初のサイクルで
はアドレス“00”を送出し、次のサイクルでアドレス
“01”,“02”のマスクビットが“0”のためアド
レス“03”を送出する。このようにしてアドレス“0
0”,“03”,“04”,“05”,“07”,“0
9”,“10”が1サイクルごとに順次に送出されてい
る。
That is, as shown in FIG. 2, the address "00" is transmitted in the first cycle, and the address "03" is transmitted in the next cycle because the mask bits of the addresses "01" and "02" are "0". . In this way, the address "0
0 "," 03 "," 04 "," 05 "," 07 "," 0 "
9 "and" 10 "are sequentially sent every cycle.

【0012】そこで、ベクトルデータレジスタ7,8
は、リードアドレスレジスタ5に得たこれらのアドレス
に従ってベクトルデータを順次に読出すので、演算器1
0は、ベクトルデータレジスタ7,8から読出したデー
タを順次に入力して演算して、ベクトルデータレジスタ
9に対して演算結果のデータを順次に出力している。
Therefore, the vector data registers 7 and 8
Reads the vector data sequentially in accordance with these addresses obtained in the read address register 5, the arithmetic unit 1
0 sequentially inputs the data read from the vector data registers 7 and 8 to perform an arithmetic operation, and sequentially outputs the operation result data to the vector data register 9.

【0013】一方、有効アドレス指定手段4は、演算器
10の演算処理時間およびベクトルデータレジスタ7,
8と演算器10との間のデータ転送時間並びに演算器1
0とベクトルデータレジスタ9との間のデータ転送時間
などの合計に合わせて、有効アドレス指定手段3からリ
ードアドレスレジスタ5へのアドレスやデータの送出か
ら一定時間後に、有効アドレス指定手段3と同様の動作
により、生成した有効アドレスをライトアドレスレジス
タ6に対して順次に送出して、ライトアドレスレジスタ
6の指示に従って、ベクトルデータレジスタ9内に演算
結果のデータを順次に書込んでいる。
On the other hand, the effective address designating means 4 is composed of the arithmetic processing time of the arithmetic unit 10 and the vector data register 7,
8 and the data transfer time between the arithmetic unit 10 and the arithmetic unit 1
According to the total data transfer time between 0 and the vector data register 9, etc., the same as the valid address designating means 3 after a certain time has passed from the sending of the address or data from the valid address designating means 3 to the read address register 5. By the operation, the generated effective addresses are sequentially transmitted to the write address register 6, and the operation result data are sequentially written in the vector data register 9 according to the instruction of the write address register 6.

【0014】また、有効アドレス指定手段3は、アドレ
スの送出を停止したときには、命令発行制御部2に停止
の報告信号を送出するので、命令発行制御部2は、後続
命令の発行制御に移行している。
Further, since the effective address designating means 3 sends a stop report signal to the instruction issue control section 2 when the address transmission is stopped, the instruction issue control section 2 shifts to issue control of the subsequent instruction. ing.

【0015】次に、図3は本発明のベクトル処理装置の
第2の実施例を示したブロック図である。また、図4は
図3のベクトル制御レジスタ11の内容および有効アド
レス指定手段13の内容の一例を示す図である。
Next, FIG. 3 is a block diagram showing a second embodiment of the vector processing apparatus of the present invention. 4 is a diagram showing an example of the contents of the vector control register 11 and the contents of the effective address designating means 13 of FIG.

【0016】第2の実施例では、図3および図4に示す
ように、ベクトル制御レジスタ11中のマスクビットが
“1”のときに、ベクトルデータレジスタ17,18,
19に対するその位置が有効であることを示すととも
に、処理可能な最大ベクトル長は、“15”になってい
る。
In the second embodiment, as shown in FIGS. 3 and 4, when the mask bit in the vector control register 11 is "1", the vector data registers 17, 18,
It indicates that the position with respect to 19 is valid, and the maximum vector length that can be processed is "15".

【0017】以下には、ベクトル長レジスタ21に有す
るベクトル長が“14”で条件付きベクトル演算命令が
実行された場合の動作について図3および図4に基いて
説明する。
The operation when the vector length stored in the vector length register 21 is "14" and the conditional vector operation instruction is executed will be described below with reference to FIGS. 3 and 4.

【0018】最初に、有効ビット数カウンタ12は、ベ
クトル制御レジスタ11中のマスクビットのカウントを
行うとともに、有効アドレス指定手段13は、ベクトル
制御レジスタ11のマスクビットが“1”になっている
有効ビット位置のアドレスを“00”から順次に調査し
て、その有効アドレスを保持している。
First, the valid bit number counter 12 counts the mask bits in the vector control register 11, and the valid address designating means 13 validates the mask bits of the vector control register 11 being "1". The address of the bit position is sequentially examined from "00" and the effective address is held.

【0019】すなわち、有効アドレス指定手段13は、
図4のように、最初に有効アドレス“00”を保持し、
次にアドレス“01”,“02”のマスクビットが
“0”のため有効アドレス“03”を保持する。このよ
うにして有効アドレス“00”,“03”,“04”,
“05”,“07”,“09”および“10”を保持
し、ベクトル長レジスタ21のベクトル長が“14”の
ために、アドレス“13”のマスクビットが“0”であ
ることを確認してこの動作を停止している。
That is, the effective address designating means 13 is
As shown in FIG. 4, the effective address “00” is held first,
Next, since the mask bits of the addresses "01" and "02" are "0", the effective address "03" is held. In this way, valid addresses “00”, “03”, “04”,
Holds "05", "07", "09" and "10", and confirms that the mask bit of the address "13" is "0" because the vector length of the vector length register 21 is "14". Then this operation is stopped.

【0020】また、有効ビット数カウンタ12は、アド
レス“14”に有効ビットの“1”があっても、カウン
トせずに有効ビット数を“7”と判定して、命令発行制
御部14に報告するので、以降で、命令発行制御部14
は、実行ベクトル長を“7”として動作する。
Further, the effective bit number counter 12 determines that the effective bit number is "7" without counting even if the address "14" has the effective bit "1", and the instruction issuance control unit 14 is notified. The command issuance control unit 14 will be reported later.
Operates with an execution vector length of "7".

【0021】そこで、命令発行制御部14により、条件
付きベクトル演算命令が発行されると、有効アドレス指
定手段13に有する有効アドレスがリードアドレスレジ
スタ15に送出されるので、ベクトルデータレジスタ1
7,18は、リードアドレスレジスタ15からの上記の
有効アドレスに従って、ベクトルデータを順次に読出
し、演算器20は、ベクトルデータレジスタ17,18
の各々から受けたデータを順次に入力して演算して、演
算結果のデータをベクトルデータレジスタ19に出力し
ている。
Therefore, when the instruction issuance control unit 14 issues a conditional vector operation instruction, the effective address in the effective address designating means 13 is sent to the read address register 15, so that the vector data register 1
7 and 18 sequentially read the vector data in accordance with the above-mentioned effective address from the read address register 15, and the arithmetic unit 20 causes the vector data registers 17 and 18 to read.
The data received from each of the above are sequentially input and operated, and the data of the operation result is output to the vector data register 19.

【0022】また、有効アドレス指定手段13は、演算
器20における演算処理時間およびベクトルデータレジ
スタ17,18と演算器20との間のデータ転送時間並
びに演算器20とベクトルデータレジスタ19との間の
データ転送時間などの合計の時間に合わせて、リードア
ドレスレジスタ15へのアドレスやデータの送出から一
定時間後に、同様の動作により上記の有効アドレスをラ
イトアドレスレジスタ16に対して順次に送出してい
る。
Further, the effective address designating means 13 is arranged so that the arithmetic processing time in the arithmetic unit 20 and the data transfer time between the vector data registers 17 and 18 and the arithmetic unit 20 and the arithmetic unit 20 and the vector data register 19 are accumulated. The valid addresses are sequentially transmitted to the write address register 16 by a similar operation after a fixed time from the transmission of the address and data to the read address register 15 in accordance with the total time such as the data transfer time. .

【0023】そこで、ベクトルデータレジスタ19は、
ライトアドレスレジスタ16の指示に従って演算結果の
データを有効アドレスだけに順次に格納している。そし
て、命令発行制御部14は、実行ベクトル長の動作の終
了を確認して後続命令の発行制御に移行している。
Therefore, the vector data register 19 is
According to the instruction of the write address register 16, the calculation result data is sequentially stored only in the effective address. Then, the instruction issuance control unit 14 confirms the end of the operation of the execution vector length and shifts to the instruction issue control of the subsequent instruction.

【0024】なお、第3の実施例のベクトル処理装置
は、これ以降にベクトル制御レジスタ11の内容または
ベクトル長レジスタ21に有するベクトル長の“14”
が変更されない限り、条件付きベクトル演算命令が発行
される毎に、有効アドレス指定手段13が保持する上記
の有効アドレスをベクトルデータレジスタ17,18,
19のそれぞれに対するリードアドレスまたはライトア
ドレスとして以降の動作を行っている。
In the vector processing device of the third embodiment, the contents of the vector control register 11 or the vector length "14" held in the vector length register 21 will be used thereafter.
Is changed, each time a conditional vector operation instruction is issued, the valid address held by the valid address designating means 13 is stored in the vector data registers 17, 18,
The subsequent operation is performed as a read address or a write address for each of the nineteen.

【0025】次に、図5は本発明のベクトル処理装置の
第3の実施例を示したブロック図である。また、図6は
図5のベクトル制御レジスタ31の内容および有効アド
レス指定手段33の内容の一例を示す図である。
Next, FIG. 5 is a block diagram showing a third embodiment of the vector processing apparatus of the present invention. 6 is a diagram showing an example of the contents of the vector control register 31 and the effective address designating means 33 of FIG.

【0026】第3の実施例では、図5および図6に示す
ように、ベクトル制御レジスタ31中のマスクビットが
“1”のときに、ベクトルデータレジスタ39,40,
41に対するその位置が有効であることを示すととも
に、処理可能な最大ベクトル長は、“15”になってい
る。
In the third embodiment, as shown in FIGS. 5 and 6, when the mask bit in the vector control register 31 is "1", the vector data registers 39, 40,
It indicates that the position with respect to 41 is valid, and the maximum vector length that can be processed is "15".

【0027】以下には、ベクトル長レジスタ43に有す
るベクトル長が“14”で条件付きベクトル演算命令が
実行された場合の動作について図5および図6に基いて
説明する。
The operation when the vector length stored in the vector length register 43 is "14" and the conditional vector operation instruction is executed will be described below with reference to FIGS. 5 and 6.

【0028】最初に、有効ビット数カウンタ32は、ベ
クトル制御レジスタ31中のマスクビットのカウントを
行うとともに、有効アドレス指定手段33は、ベクトル
制御レジスタ31のアドレスを“00”から順次に調査
して、まず、マスクビットが“1”である最初の有効ビ
ット位置を保持して、以降には、そのときに保持した有
効ビット位置から次の有効ビット位置までの距離を調査
して有効ビット間隔を保持している。
First, the valid bit number counter 32 counts the mask bits in the vector control register 31, and the valid address designating means 33 sequentially examines the address of the vector control register 31 from "00". First, the first valid bit position where the mask bit is "1" is held, and thereafter, the distance from the valid bit position held at that time to the next valid bit position is investigated to determine the valid bit interval. keeping.

【0029】すなわち、図6の如く、有効アドレス指定
手段33は、まず、マスクビットが“1”である最初の
有効ビット位置の“00”を保持し、順次に有効ビット
位置から次の有効ビット位置までの距離である有効ビッ
ト間隔“03”,“01”,“01”,“02”,“0
2”,“01”を保持している。
That is, as shown in FIG. 6, the valid address designating means 33 first holds "00" at the first valid bit position where the mask bit is "1", and sequentially holds the next valid bit from the valid bit position. Effective bit intervals “03”, “01”, “01”, “02”, “0” that are distances to the position
It holds "2" and "01".

【0030】なお、この場合には、ベクトル長レジスタ
43のベクトル長が“14”のためアドレス“13”ま
でのマスクビットが調査され、アドレス“14”は、
“1”があっても有効ビット位置にならないこととな
る。また、有効ビット数カウンタ32は、有効ビット数
を“7”として命令発行制御部34に報告するので、以
降で、命令発行制御部34は、実行ベクトル長を“7”
として動作している。
In this case, since the vector length of the vector length register 43 is "14", the mask bits up to the address "13" are investigated, and the address "14" becomes
Even if there is "1", it will not be the effective bit position. Further, since the valid bit number counter 32 reports the valid bit number to "7" to the instruction issue control unit 34, the instruction issue control unit 34 thereafter sets the execution vector length to "7".
Is working as.

【0031】そして、命令発行制御部34により、条件
付きベクトル演算命令が発行されると、リードアドレス
カウンタ35は、有効アドレス指定手段33に保持して
いるマスクビットの有効ビット間隔を順次に与えられ
て、これらを加算して、リードアドレスレジスタ37に
リードアドレスを順次に送出している。
When the instruction issuance control section 34 issues a conditional vector operation instruction, the read address counter 35 is sequentially given the effective bit intervals of the mask bits held in the effective address designating means 33. Then, these are added and the read address is sequentially sent to the read address register 37.

【0032】そこで、ベクトルデータレジスタ39,4
0は、リードアドレスレジスタ37から上記のリードア
ドレスを順次に与えられて、ベクトルデータを順次に読
出すので、演算器42は、ベクトルデータレジスタ3
9,40から読出したデータを順次に入力して演算し、
演算結果のデータをベクトルデータレジスタ41に出力
している。
Therefore, the vector data registers 39, 4
0 is sequentially given the above-mentioned read address from the read address register 37 and sequentially reads the vector data. Therefore, the calculator 42 causes the vector data register 3 to read.
The data read from 9, 40 are sequentially input and calculated,
The data of the calculation result is output to the vector data register 41.

【0033】一方、ライトアドレスカウンタ36は、演
算器42による演算処理時間およびベクトルデータレジ
スタ39,40と演算器42との間のデータ転送時間並
びに演算器42とベクトルデータレジスタ41との間の
データ転送時間などの合計の時間に合わせて、有効アド
レス指定手段33からリードアドレスカウンタ35への
有効ビット間隔の送出から一定時間後に、有効アドレス
指定手段33から同様にマスクビットの有効ビット間隔
を順次に与えられて、これらを加算することにより、ラ
イトアドレスレジスタ38にライトアドレスを順次に送
出している。
On the other hand, the write address counter 36 calculates the processing time by the arithmetic unit 42, the data transfer time between the vector data registers 39 and 40 and the arithmetic unit 42, and the data between the arithmetic unit 42 and the vector data register 41. In accordance with the total time such as the transfer time, after a certain period of time from the transmission of the effective bit interval from the effective address designating means 33 to the read address counter 35, the effective address designating means 33 also sequentially sets the effective bit intervals of the mask bits. The write addresses are sequentially supplied to the write address register 38 by adding them.

【0034】そこで、ベクトルデータレジスタ41は、
ライトアドレスレジスタ38からの上記のライトアドレ
スを順次に与えられ、演算器42からの演算結果のベク
トルデータを有効アドレスだけに順次に格納している。
そして、命令発行制御部34は、実行ベクトル長の動作
の終了を確認して続く後続命令の発行制御に移行してい
る。
Therefore, the vector data register 41 is
The above write addresses from the write address register 38 are sequentially applied, and the vector data of the operation result from the operation unit 42 is sequentially stored only in the effective address.
Then, the instruction issuance control unit 34 confirms the end of the operation of the execution vector length and shifts to the issuance control of the subsequent instruction.

【0035】なお、第3の実施例のベクトル処理装置
は、これ以降にベクトル制御レジスタ31の内容または
ベクトル長レジスタ43に有するベクトル長の“14”
が変更されない限り、条件付きベクトル演算命令が発行
される毎に、有効アドレス指定手段33が保持する上記
の有効ビット間隔をリードアドレスレジスタ37および
ライトアドレスレジスタ38の加算数として使用して、
ベクトルデータレジスタ39,40,41に対するリー
ドアドレスまたはライトアドレスを算出して以降の動作
行っている。
In the vector processing device of the third embodiment, the contents of the vector control register 31 or the vector length "14" held in the vector length register 43 thereafter.
Unless the value is changed, the valid bit interval held by the valid address designating means 33 is used as the addition number of the read address register 37 and the write address register 38 each time the conditional vector operation instruction is issued.
The subsequent operation is performed after calculating the read address or the write address for the vector data registers 39, 40, 41.

【0036】[0036]

【発明の効果】以上に説明したように、本発明のベクト
ル処理装置は、条件付きベクトル演算命令を処理する際
には、ベクトル制御レジスタの中で有効を示すマスクビ
ットに対応したベクトルデータレジスタの要素番号のみ
をリードアドレスおよびライトアドレスとして指定する
有効アクセス指定手段を使用することによって、従来の
ベクトル処理装置で行われて来たベクトルコンプレス命
令によるデータの縮退やベクトルエクスパンド命令によ
るデータの展開を実行せず、縮退されたベクトル長によ
る条件付きベクトル演算命令を実行することが可能にな
って、より一層のベクトル処理の高速化を実現できると
いう効果を有している。
As described above, when processing a conditional vector operation instruction, the vector processing device of the present invention stores the vector data register corresponding to the mask bit indicating the validity in the vector control register. By using the effective access designating means for designating only the element number as the read address and the write address, the data compression by the vector compress instruction and the data expansion by the vector expand instruction which have been performed by the conventional vector processing device can be performed. It is possible to execute a conditional vector operation instruction based on a degenerated vector length without executing it, and it is possible to further speed up vector processing.

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

【図1】本発明のベクトル処理装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of a vector processing device of the present invention.

【図2】図1のベクトル制御レジスタ1の内容と有効ア
ドレス指定手段3,4の内容との一例を示す図である。
FIG. 2 is a diagram showing an example of contents of a vector control register 1 and contents of effective address designating means 3 and 4 in FIG.

【図3】本発明のベクトル処理装置の第2の実施例を示
したブロック図である。
FIG. 3 is a block diagram showing a second embodiment of the vector processing device of the present invention.

【図4】図3のベクトル制御レジスタ11の内容と有効
アドレス指定手段13の内容との一例を示す図である。
FIG. 4 is a diagram showing an example of contents of a vector control register 11 and contents of an effective address designating means 13 of FIG.

【図5】本発明のベクトル処理装置の第3の実施例を示
したブロック図である。
FIG. 5 is a block diagram showing a third embodiment of the vector processing device of the present invention.

【図6】図5のベクトル制御レジスタ31の内容と有効
アドレス指定手段33の内容との一例を示す図である。
FIG. 6 is a diagram showing an example of contents of a vector control register 31 and contents of an effective address designating means 33 of FIG.

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

1,11,31 ベクトル制御レジスタ 2,14,34 命令発行制御部 3,4,13,33 有効アドレス指定手段 5,15,37 リードアドレスレジスタ 6,16,38 ライトアドレスレジスタ 7,8,9,17,18,19,39,40,41
ベクトルデータレジスタ 10,20,42 演算器 12,32 有効ビット数カウンタ 21,43 ベクトル長レジスタ 35 リードアドレスカウンタ 36 ライトアドレスカウンタ
1, 11, 31 Vector control register 2, 14, 34 Instruction issue control unit 3, 4, 13, 33 Effective address designating means 5, 15, 37 Read address register 6, 16, 38 Write address register 7, 8, 9, 17, 18, 19, 39, 40, 41
Vector data register 10, 20, 42 Operation unit 12, 32 Effective bit number counter 21, 43 Vector length register 35 Read address counter 36 Write address counter

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】(A)条件付きベクトル演算命令に使用す
る有効および無効を示すマスク情報のN(Nは正の整
数)個のマスクビットを保持するベクトル制御レジスタ
と、(B)ベクトル演算命令の発行を制御する命令発行
制御部と、(C)それぞれがN個のアドレスを持つM
(Mは正の整数)個のベクトルデータレジスタと、
(D)前記命令発行制御部から条件付きベクトル演算命
令が発行されたときに、前記ベクトル制御レジスタのマ
スクビットが“1”である有効ビット位置を順次に調査
し、その有効ビット位置に対応するM個の前記ベクトル
データレジスタの有効アドレスを指定する複数の有効ア
ドレス指定手段と、(E)前記有効アドレス指定手段の
一つによって順次に指定された有効アドレスだけを使用
して幾つかの前記ベクトルデータレジスタを読出し、そ
れらの内容を相互に演算して、他の前記有効アドレス指
定手段によって順次に指定された有効アドレスだけを使
用して演算結果を前記ベクトルデータレジスタに格納す
る演算手段と、を備えることを特徴とするベクトル処理
装置。
1. A vector control register that holds N (N is a positive integer) mask bits of mask information indicating valid and invalid used for a conditional vector operation instruction, and (B) a vector operation instruction. And an instruction issue control unit for controlling the issue of (C) M each having N addresses.
(M is a positive integer) vector data registers,
(D) When a conditional vector operation instruction is issued from the instruction issue control unit, the effective bit positions where the mask bit of the vector control register is "1" are sequentially examined, and the effective bit positions are corresponded to the effective bit positions. A plurality of valid addressing means for designating valid addresses of the M vector data registers, and (E) some of the vectors using only valid addresses sequentially designated by one of the valid addressing means Arithmetic means for reading out the data register, mutually operating the contents thereof, and storing the operation result in the vector data register using only the effective addresses sequentially designated by the other effective address designating means. A vector processing device comprising:
【請求項2】(A)条件付きベクトル演算命令に使用す
る有効および無効を示すマスク情報のN(Nは正の整
数)個のマスクビットを保持するベクトル制御レジスタ
と、(B)演算を行う対象とするベクトル長L(Lは正
の整数でL≦N)を保持するベクトル長レジスタと、
(C)ベクトル演算命令の発行を制御する命令発行制御
部と、(D)それぞれがN個のアドレスを持つM(Mは
正の整数)個のベクトルデータレジスタと、(E)前記
命令発行制御部から条件付きベクトル演算命令が発行さ
れたときに、前記ベクトル制御レジスタのマスクビット
が“1”である有効ビット位置を順次に調査して、L以
下の位置にある有効ビット位置に対応するM個の前記ベ
クトルデータレジスタの有効アドレスを保持する有効ア
ドレス指定手段と、(F)前記ベクトル制御レジスタの
L以下のビット位置にある有効を示すマスクビットの数
を計数する有効ビット数カウンタと、(G)前記有効ア
ドレス指定手段に保持する有効アドレスだけを順次に使
用して幾つかの前記ベクトルデータレジスタを読出し、
それらの内容を相互に演算し、前記有効アドレス指定手
段に保持する有効アドレスだけを使用して、演算結果を
順次に前記ベクトルデータレジスタに格納する演算手段
と、を備えることを特徴とするベクトル処理装置。
2. A vector control register that holds N (N is a positive integer) mask bits of mask information indicating valid and invalid used in a conditional vector operation instruction, and (B) performs an operation. A vector length register holding a target vector length L (L is a positive integer and L ≦ N),
(C) an instruction issue control unit for controlling the issue of vector operation instructions, (D) M (M is a positive integer) vector data registers each having N addresses, and (E) the instruction issue control When a conditional vector operation instruction is issued from the section, the effective bit positions in which the mask bit of the vector control register is "1" are sequentially examined, and M corresponding to the effective bit positions at positions L and below are examined. Valid address designating means for holding valid addresses of the vector data registers, and (F) a valid bit number counter for counting the number of mask bits indicating validity at bit positions below L of the vector control register, G) Reading some of the vector data registers by sequentially using only the effective addresses held in the effective address designating means,
Vector processing, wherein the contents are mutually calculated, and only the effective address held in the effective address designating means is used to store the operation result in the vector data register in sequence. apparatus.
【請求項3】(A)条件付きベクトル演算命令に使用す
る有効および無効を示すマスク情報のN(Nは正の整
数)個のマスクビットを保持するベクトル制御レジスタ
と、(B)演算を行う対象とするベクトル長L(Lは正
の整数でL≦N)を保持するベクトル長レジスタと、
(C)ベクトル演算命令の発行を制御する命令発行制御
部と、(D)それぞれがN個のアドレスを持つM(Mは
正の整数)個のベクトルデータレジスタと、(E)前記
命令発行制御部から条件付きベクトル演算命令が発行さ
れたときに、前記ベクトル制御レジスタのマスクビット
が“1”である有効ビット位置を順次に調査し、L以下
の位置にある有効ビット位置に対して、マスクビットが
“1”である最初の有効ビット位置を保持して、以降に
は保持した有効ビット位置から次の有効ビット位置まで
の距離を求めた有効ビット間隔を保持する有効アドレス
指定手段と、(F)前記ベクトル制御レジスタのL以下
のビット位置にある有効を示すマスクビットの数を計数
する有効ビット数カウンタと、(G)前記有効アドレス
指定手段に保持する最初の有効ビット位置および以降の
有効ビット間隔を順次に受けて、これらを加算して前記
ベクトルデータレジスタにリードアドレスを順次に送出
するリードアドレスカウンタと、(H)前記有効アドレ
ス指定手段に保持する最初の有効ビット位置および以降
の有効ビット間隔を順次に受けて、これらを加算して前
記ベクトルデータレジスタにライトアドレスを順次に送
出するライトアドレスカウンタと、(I)前記リードア
ドレスカウンタから得たリードアドレスを順次に使用し
て、幾つかの前記ベクトルデータレジスタを読出し、そ
れらの内容を相互に演算し、前記ライトアドレスカウン
タから得たライトアドレスを順次に使用し、演算結果を
前記ベクトルデータレジスタの有効アドレスだけに格納
する演算手段と、を備えることを特徴とするベクトル処
理装置。
3. A vector control register that holds N (N is a positive integer) mask bits of mask information indicating valid and invalid to be used in a conditional vector operation instruction, and (B) performs an operation. A vector length register holding a target vector length L (L is a positive integer and L ≦ N),
(C) an instruction issue control unit for controlling the issue of vector operation instructions, (D) M (M is a positive integer) vector data registers each having N addresses, and (E) the instruction issue control When a conditional vector operation instruction is issued from the section, the effective bit positions in which the mask bit of the vector control register is "1" are sequentially examined, and the effective bit positions at positions equal to or lower than L are masked. Valid address designating means for holding a first valid bit position whose bit is "1" and thereafter holding a valid bit interval for obtaining a distance from the held valid bit position to the next valid bit position; F) A valid bit number counter for counting the number of mask bits indicating validity at bit positions less than L of the vector control register, and (G) held in the valid address designating means. A read address counter that sequentially receives the first valid bit position and subsequent valid bit intervals, adds these, and sequentially sends the read address to the vector data register, and (H) holds in the valid address designating means. A write address counter that sequentially receives the first valid bit position and subsequent valid bit intervals, adds them, and sequentially sends a write address to the vector data register; and (I) a read obtained from the read address counter. Addresses are sequentially used to read some of the vector data registers, mutually calculate their contents, sequentially use the write addresses obtained from the write address counters, and calculate the operation result of the vector data registers. And a calculation means for storing only the effective address. Vector processing apparatus according to.
JP2874094A 1994-02-28 1994-02-28 Vector processor Pending JPH07239844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2874094A JPH07239844A (en) 1994-02-28 1994-02-28 Vector processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2874094A JPH07239844A (en) 1994-02-28 1994-02-28 Vector processor

Publications (1)

Publication Number Publication Date
JPH07239844A true JPH07239844A (en) 1995-09-12

Family

ID=12256826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2874094A Pending JPH07239844A (en) 1994-02-28 1994-02-28 Vector processor

Country Status (1)

Country Link
JP (1) JPH07239844A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001055969A1 (en) * 2000-01-28 2001-08-02 Namco Ltd. Game system and image creating method
WO2001055970A1 (en) * 2000-01-28 2001-08-02 Namco Ltd. Game system and image creating method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001055969A1 (en) * 2000-01-28 2001-08-02 Namco Ltd. Game system and image creating method
WO2001055970A1 (en) * 2000-01-28 2001-08-02 Namco Ltd. Game system and image creating method
GB2363045A (en) * 2000-01-28 2001-12-05 Namco Ltd Game system and image creating method
GB2363956A (en) * 2000-01-28 2002-01-09 Namco Ltd Game system and image creating method
GB2363956B (en) * 2000-01-28 2004-04-14 Namco Ltd Game system and image creating method
GB2363045B (en) * 2000-01-28 2004-06-02 Namco Ltd Game system and image creating method
US7116334B2 (en) 2000-01-28 2006-10-03 Namco Bandai Games Inc. Game system and image creating method
US7566273B2 (en) 2000-01-28 2009-07-28 Namco Bandai Games, Inc. Game system and image generating method

Similar Documents

Publication Publication Date Title
JP3248992B2 (en) Multiprocessor
EP3719638A2 (en) Apparatuses, methods, and systems for transpose instructions of a matrix operations accelerator
JPH04167168A (en) Signal processor
JPS59128670A (en) Vector processor
JPH07239844A (en) Vector processor
JPH03201031A (en) Information processor
JPS583040A (en) Information processor
EP0342674B1 (en) Pipeline circuit for timing adjustment
US5542080A (en) Method for controlling execution of data driven type information processor
JPH05225060A (en) Information processor
JPH0326862B2 (en)
JPS6031647A (en) Data processor
SU1101838A1 (en) Probabilistic device for solving boundary-value problems
JPH01284926A (en) Instruction reading system for arithmetic unit
JPH06103303A (en) Vector arithmetic processor
JPH0540622A (en) Digital signal processor
JPH02204861A (en) Vector data processor
JP2895892B2 (en) Data processing device
JPH0744532A (en) Vector processing device
JPH0520353A (en) Vector data processor
JPH02204832A (en) Instruction control system
JPS5960647A (en) System for controlling memory access
JPH035881A (en) Vector arithmetic unit
JPH04181468A (en) Vector processing performance adjusting system
JPH0531771B2 (en)

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990518