Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0752441B2 - Vector arithmetic controller - Google Patents
[go: Go Back, main page]

JPH0752441B2 - Vector arithmetic controller - Google Patents

Vector arithmetic controller

Info

Publication number
JPH0752441B2
JPH0752441B2 JP60278040A JP27804085A JPH0752441B2 JP H0752441 B2 JPH0752441 B2 JP H0752441B2 JP 60278040 A JP60278040 A JP 60278040A JP 27804085 A JP27804085 A JP 27804085A JP H0752441 B2 JPH0752441 B2 JP H0752441B2
Authority
JP
Japan
Prior art keywords
vector
stored
vector data
read
order
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
JP60278040A
Other languages
Japanese (ja)
Other versions
JPS62138968A (en
Inventor
哲 長尾
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60278040A priority Critical patent/JPH0752441B2/en
Publication of JPS62138968A publication Critical patent/JPS62138968A/en
Publication of JPH0752441B2 publication Critical patent/JPH0752441B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/80Architectures of general purpose stored program computers comprising an array of processing units with common control, e.g. single instruction multiple data processors
    • G06F15/8053Vector processors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ベクトル演算のデイメンジヨンチエツクを
行うベクトル演算制御装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a vector operation control device that performs a dimension check of vector operations.

〔従来の技術〕[Conventional technology]

従来この種の装置としては、例えば特公昭58-35294号、
雑誌「日経エレクトロニクス」(1983年、4月11日号)
で示されている。第2図は従来のベクトル演算制御装置
を示すブロツク図であり、図において、1は主記憶メモ
リ、2は各々論理演算,加減算,積和演算などを行うm
個の演算器2a,2b,…,2mによりm個の演算の並列処理が
可能な並列処理演算器、3はスカラー・アキユームレー
タ(以下、SAccという)、4はベクトル・アキユームレ
ータ(以下、VAccという)である。5a,5bは主記憶メモ
リ1とVAcc4間のロード・パスで、ベクトル・デーアの
主記憶メモリ1からの読み出しがパイプライン動作で行
なわれる。6はVAcc4と主記憶メモリ1間のストア・パ
スで、ベクトル・データの主記憶メモリ1への書き込み
がパイプライン動作で行なわれる。7はベクトル・ロー
ドパス5a,5bやベクトル・ストアパス6と、SAcc3やVAcc
4のデータ転送の切り換えを行う転送用スイツチング回
路、8は演算すべきデータの割り当や演算結果格納先の
割り当を行う演算用スイツチング回路である。
Conventional devices of this type include, for example, Japanese Patent Publication No. 58-35294,
Magazine “Nikkei Electronics” (April 11, 1983 issue)
Indicated by. FIG. 2 is a block diagram showing a conventional vector operation control device. In the figure, 1 is a main memory, 2 is a logic operation, addition / subtraction, sum of products operation, etc. m
, 2m is a parallel processing operator capable of parallel processing of m operations, 3 is a scalar accumulator (hereinafter referred to as SAcc), and 4 is a vector accumulator (hereinafter referred to as SA). , VAcc). Reference numerals 5a and 5b are load paths between the main memory 1 and VAcc4, and reading of vector data from the main memory 1 is performed by a pipeline operation. Reference numeral 6 is a store path between the VAcc 4 and the main memory 1, and the vector data is written into the main memory 1 by a pipeline operation. 7 is vector load path 5a, 5b and vector store path 6, SAcc3 and VAcc
4 is a transfer switching circuit for switching data transfer, and 8 is a calculation switching circuit for allocating data to be calculated and allocating a calculation result storage destination.

第3図はVAcc4をフアーストイン・フアーストアウト・
メモリ(以下、FIFOメモリという)17で構成したブロツ
ク図であり、図において、9は読み書き可能なメモリ本
体、10は上記メモリ本体9の読み出し専用のアドレスカ
ウンタ・レジスタ(以下、RDregという)、11は上記メ
モリ本体9の書き込み専用のアドレスカウンタ・レジス
タ(以下、WTregという)である。
Figure 3 shows VAcc4 as the first-in first-out
FIG. 1 is a block diagram composed of a memory (hereinafter referred to as a FIFO memory) 17, in which 9 is a readable / writable memory body, 10 is a read-only address counter register (hereinafter referred to as RDreg) of the memory body 9, 11 Is a write-only address counter register (hereinafter referred to as WTreg) of the memory body 9.

次に第2図の動作について説明する。主記憶メモリ1に
記憶されているスカラーおよびベクトル・データは、ロ
ードパス5a,5bおよび転送用スイツチング回路7によつ
て転送先を制御され、SAcc3やVAcc4に格納される。SAcc
3やVAcc4に格納されたデータは、演算用スイツチング回
路8によつて並列処理演算器2の各演算器2a,2b…2mへ
の処理割り当てが行われ、これら演算器2a,2b…2mによ
つて演算される。並列演算処理装置2から出力された演
算結果は、演算用スイツチング回路8を経てVAcc4に格
納される。このとき、演算用スイツチング回路8はVAcc
4の格納先を指定する。VAcc4に格納されたベクトル・デ
ータは、転送用スイツチング回路7とベクトル・ストア
パス6を経て主記憶メモリ1に記憶される。このとき転
送用スイツチング回路7は、VAcc4の選択を行う。VAcc4
は基本的には第3図のようなFIFOメモリ17で構成されて
おり、メモリ本体9にベクトル・データが書き込まれる
度に書き込み専用のWTreg11がカウント・アツプされ、
メモリ本体9が読み出される度に読み出し専用のRDreg1
0がカウント・アツプされる。
Next, the operation of FIG. 2 will be described. The scalar and vector data stored in the main memory 1 are controlled in their transfer destinations by the load paths 5a and 5b and the transfer switching circuit 7, and are stored in SAcc3 and VAcc4. SAcc
The data stored in 3 or VAcc4 is assigned to the arithmetic processing units 2a, 2b ... 2m of the parallel processing arithmetic unit 2 by the arithmetic switching circuit 8, and these arithmetic units 2a, 2b ... 2m are used. Is calculated. The arithmetic result output from the parallel arithmetic processing unit 2 is stored in VAcc4 via the arithmetic switching circuit 8. At this time, the arithmetic switching circuit 8 is VAcc.
Specify the storage destination of 4. The vector data stored in the VAcc4 is stored in the main memory 1 via the transfer switching circuit 7 and the vector store path 6. At this time, the transfer switching circuit 7 selects VAcc4. VAcc4
Is basically composed of a FIFO memory 17 as shown in FIG. 3, and every time vector data is written in the memory body 9, the write-only WTreg 11 is counted up,
Read-only RDreg1 each time the memory body 9 is read
0 is counted up.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

従来のベクトル演算制御装置は以下のように構成されて
いるので、ベクトル演算のデイメンジヨンチエツクをす
る場合、ベクトル・データをVAcc4にロードする際に次
元をカウントし、又要素ごとの演算終了時にもベクトル
要素数をカウントする等、特別なソフトウエア処理が必
要であり、転送用スイツチング回路7や、演算用スイツ
チング回路8の制御が複雑となり、パイプライン処理が
生かされず、データのスループツトを落とすという欠点
があつた。
Since the conventional vector operation controller is configured as follows, when performing a vector operation check, the dimensions are counted when vector data is loaded into VAcc4, and at the end of operation for each element. Also requires special software processing such as counting the number of vector elements, the control of the transfer switching circuit 7 and the arithmetic switching circuit 8 becomes complicated, pipeline processing is not utilized, and data throughput is reduced. There was a flaw.

この発明は上記のような問題点を解消するためになされ
たもので、デイメンジヨン・エラーを特別なソフトウエ
ア処理を必要とせず、スイツチング回路の制御をできる
限り簡単化し、データのスループツトを落とさずにチエ
ツクできるベクトル演算制御装置を得ることを目的とす
るものである。
The present invention has been made to solve the above-mentioned problems, and does not require special software processing for dimension error, simplifies control of the switching circuit as much as possible, and does not drop data throughput. The purpose is to obtain a vector operation control device that can be checked.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るベクトル演算制御装置は、VAccにおいて
FIFOメモリのリードアドレスの値とライトアドレスの値
とを読み出せるようにし、これらの値とベクトル次数格
納用レジスタ(以下、DIMregという)の値又はゼロ値と
を入力信号として比較演算部で比較演算して演算すべき
ベクトル・データの次元数をチエツクするようにしたも
のである。
The vector arithmetic control device according to the present invention is
The read and write address values of the FIFO memory are made readable, and these values and the value of the vector order storage register (hereinafter referred to as DIMreg) or zero value are used as input signals for comparison operation in the comparison operation unit. Then, the number of dimensions of the vector data to be calculated is checked.

〔作用〕[Action]

この発明における比較演算部は、FIFOメモリのリードア
ドレス値及びライトアドレス値とDIMregに格納されてい
るベクトル・データの次数値又はゼロ値とを比較演算
し、ベクトル・データ・ロード時,演算終了時或いはベ
クトル・データの主記憶メモリへのストア時にデイメン
ジヨン・エラーの発生を知らせるように作用する。
The comparison operation unit in the present invention performs a comparison operation between the read address value and write address value of the FIFO memory and the next numerical value or zero value of the vector data stored in DIMreg, and at the time of vector data loading and at the time of completion of the operation. Alternatively, it acts to notify the occurrence of a dimension error when storing the vector data in the main memory.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。この
発明のベクトル演算制御装置の全体的な基本構成は、前
述した第2図と同じである。この発明はこのようなベク
トル演算制御装置のVAccを改良したものである。その構
成の一実施例を第1図に示す。図において、前述した第
3図と同一符号は同一、又は相当部分を示す。12はRDre
g10とWTreg11の値を引算する引算器、13はベクトルの次
数を格納しておくDIMreg、14は引算器12の出力とセレク
タ15の出力値を比較する比較器、15はDIMreg13とゼロを
選択するセレクタであり、比較器14とセレクタ15から比
較手段が構成されている。この実施例では、引算器12と
比較器14とセレクタ15とで比較演算部18を構成してい
る。
An embodiment of the present invention will be described below with reference to the drawings. The overall basic configuration of the vector operation control device of the present invention is the same as that shown in FIG. The present invention is an improvement of VAcc of such a vector operation control device. An example of the configuration is shown in FIG. In the figure, the same reference numerals as those in FIG. 3 described above indicate the same or corresponding portions. 12 is RDre
A subtracter that subtracts the values of g10 and WTreg11, 13 is a DIMreg that stores the degree of the vector, 14 is a comparator that compares the output of subtractor 12 with the output value of selector 15, and 15 is DIMreg13 and zero. Is a selector that selects, and the comparator 14 and the selector 15 constitute a comparison means. In this embodiment, the subtractor 12, the comparator 14, and the selector 15 constitute a comparison operation unit 18.

次に、動作を説明する。ベクトル演算を行う時の動作は
従来技術と同じであるので、ここでは省略する。
Next, the operation will be described. The operation when performing the vector operation is the same as that of the conventional technique, and is omitted here.

いま、ベクトルXとベクトルYの和をベクトルZとし、
主記憶メモリ1を使つた演算を考える。まず、初期状態
でRDreg10とWTreg11は共にリセツトされている。ベクト
ルXをVAcc4にロードする時、ベクトルXの次元NはDIM
reg13に格納され、FIFOメモリ17の動作によつてベクト
ルXの要素が逐次VAcc4に格納され、WTreg11はその度に
カウントアツプされ、WTreg11-RDreg10の値が比較演算
部18の引算器12から出力される。比較演算部18のセレク
タ15は、この時DIMreg13を選び、比較演算部18は比較器
14で引算器12の出力とDIMreg13の値を比較し、比較演算
部18はベクトルXの次数をチエツクする。同様にベクト
ルYをVAcc4にロードし、その次数を比較演算部18でチ
エツクする。
Now, let the sum of vector X and vector Y be vector Z,
Consider an operation using the main memory 1. First, in the initial state, RDreg10 and WTreg11 are both reset. When loading vector X into VAcc4, the dimension N of vector X is DIM
Stored in reg13, elements of vector X are sequentially stored in VAcc4 by the operation of FIFO memory 17, WTreg11 is counted up each time, and the value of WTreg11-RDreg10 is output from subtracter 12 of comparison operation unit 18. To be done. At this time, the selector 15 of the comparison operation unit 18 selects DIMreg13, and the comparison operation unit 18 selects the comparator.
At 14, the output of the subtractor 12 is compared with the value of DIMreg 13, and the comparison operation part 18 checks the order of the vector X. Similarly, the vector Y is loaded into VAcc4 and its order is checked by the comparison operation unit 18.

次に、ベクトルXとベクトルYの要素が並列処理演算器
2に転送されると、今度はFIFOメモリ17のRDreg10がカ
ウントアツプされ、並列演算器2で和を計算し、その結
果を再びVAcc4に格納する。演算終了時点で再び比較演
算部18はWTreg11-RDreg10の値とDIMreg13の値を比較器1
4で比較し、ベクトルXとベクトルYの次数をチエツク
する。
Next, when the elements of the vector X and the vector Y are transferred to the parallel processing unit 2, the RDreg10 of the FIFO memory 17 is counted up this time, the parallel computing unit 2 calculates the sum, and the result is again stored in VAcc4. Store. At the end of the calculation, the comparison calculation unit 18 again compares the values of WTreg11-RDreg10 and DIMreg13 with the comparator 1
Compare with 4 and check the order of vector X and vector Y.

最後に、VAcc4内のX+Yの値を主記憶メモリ1にスト
アした時に比較演算部18の比較器14は、引算器12の出力
WTreg11-RDreg10の値とセレクタ15によつて選択された
ゼロとを比較し、デイメンジヨン・エラーを検出する。
因に、演算結果を主記憶メモリ1にストアされた後は、
WTreg11とRDreg10の値は、FIFOメモリ17の同一アドレス
を示している。また、そのアドレス及びFIFOメモリ17の
内容は不定でよく、次のベクトル演算時に現在示してい
るFIFOメモリ17のアドレスからロード/演算/ストアを
行うことができる。
Finally, when the value of X + Y in VAcc4 is stored in the main memory 1, the comparator 14 of the comparison operation unit 18 outputs the output of the subtractor 12
The value of WTreg11-RDreg10 is compared with the zero selected by the selector 15 to detect a dimension error.
By the way, after the calculation result is stored in the main memory 1,
The values of WTreg11 and RDreg10 indicate the same address in the FIFO memory 17. Further, the address and the contents of the FIFO memory 17 may be indefinite, and the load / operation / store can be performed from the address of the FIFO memory 17 currently shown at the time of the next vector operation.

〔発明の効果〕〔The invention's effect〕

以上のように、この発明によれば、読み出し専用アドレ
スカウンタ・レジスタ及び書き込み専用アドレスカウン
タ・レジスタに格納された値とベクトル次数格納用レジ
スタに格納された値又はゼロ値とを演算終了時点で比較
演算し、該演算すべきベクトル・データの次元数をチェ
ックするように構成したので、複雑な制御やソフトウエ
アを必要とせずに、スループットを低下させることな
く、該ベクトル・データのディメンジョンエラーを検出
できるなどの効果がある。
As described above, according to the present invention, the value stored in the read-only address counter register and the write-only address counter register is compared with the value stored in the vector order storage register or the zero value at the end of the operation. Since the calculation is performed and the number of dimensions of the vector data to be calculated is checked, the dimension error of the vector data is detected without reducing the throughput without requiring complicated control or software. There is an effect such as being able to.

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

第1図はこの発明の一実施例によるベクトル演算制御装
置のVAccの内部構成を示すブロツク図、第2図は従来の
ベクトル演算制御装置を示すブロツク図、第3図は従来
のVAccと転送,演算用スイツチング回路の基本構成を示
すブロツク図である。 4はベクトル・アキユームレータ(VAcc)、9はメモリ
本体、10は読み出し専用アドレスカウンタ・レジスタ
(RDreg)、11は書込み用アドレスカウンタ・レジスタ
(WTreg)、12は引算器、13はベクトル次数格納用レジ
スタ(DIMreg)、14は比較器、15はセレクタ、17はフア
ーストイン・フアーストアウト・メモリ(FIFOメモ
リ)、18は比較演算部。 なお、図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing the internal structure of a VAcc of a vector operation control device according to an embodiment of the present invention, FIG. 2 is a block diagram showing a conventional vector operation control device, and FIG. 3 is a conventional VAcc and transfer, It is a block diagram showing a basic configuration of a switching circuit for calculation. 4 is a vector accumulator (VAcc), 9 is a memory body, 10 is a read-only address counter register (RDreg), 11 is a write address counter register (WTreg), 12 is a subtracter, and 13 is a vector order. Storage register (DIMreg), 14 is a comparator, 15 is a selector, 17 is a far-in-fast-out memory (FIFO memory), and 18 is a comparison operation unit. In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ベクトル・データを記憶する主記憶メモリ
と、ベクトル演算を行う際、前記主記憶メモリに記憶さ
れたベクトル・データを格納するとともに、演算器で行
われたベクトル演算の演算結果を格納するファーストイ
ン・ファーストアウト・メモリと、前記ファーストイン
・ファーストアウト・メモリにベクトル・データ又は演
算結果が格納されると、そのベクトル・データ又は演算
結果の次数分だけカウントアップされるファーストイン
・ファーストアウト・メモリのライトアドレス値を格納
する書き込み専用アドレスカウンタ・レジスタと、前記
ファーストイン・ファーストアウト・メモリからベクト
ル・データ又は演算結果が読み出されると、そのベクト
ル・データ又は演算結果の次数分だけカウントアップさ
れるファーストイン・ファーストアウト・メモリのリー
ドアドレス値を格納する読み出し専用アドレスカウンタ
・レジスタと、前記ベクトル・データの次数を格納する
ベクトル次数格納用レジスタと、前記書き込み専用アド
レスカウンタ・レジスタに格納されたライトアドレス値
から前記読み出し専用アドレスカウンタ・レジスタに格
納されたリードアドレス値を減算する引算器と、前記フ
ァーストイン・ファーストアウト・メモリにベクトル・
データが格納されると、前記引算器の減算結果と前記ベ
クトル次数格納用レジスタに格納されたベクトル・デー
タの次数を比較して当該ベクトル・データの次数をチェ
ックし、前記ファーストイン・ファーストアウト・メモ
リに格納されたベクトル・データが前記演算器に読み出
されると、前記引算器の減算結果と前記ベクトル次数格
納用レジスタに格納されたベクトル・データの次数を比
較して当該ベクトル・データの次数をチェックし、前記
ファーストイン・ファーストアウト・メモリに格納され
た演算結果が前記主記憶メモリに格納されると、前記引
算器の減算結果とゼロ値を比較して当該演算結果の次数
をチェックする比較手段とを備えたベクトル演算制御装
置。
1. A main memory for storing vector data, and a vector operation stored in the main memory when the vector operation is performed. A first-in first-out memory for storing, and a first-in first-counter for incrementing the vector data or the operation result when the vector data or the operation result is stored in the first-in first-out memory. A write-only address counter register for storing the write address value of the first-out memory, and when vector data or a calculation result is read from the first-in first-out memory, only the order of the vector data or the calculation result is read. Fast toy to be counted up A read-only address counter register for storing the read-out address value of the first-out memory, a vector order storage register for storing the order of the vector data, and a write-address value stored in the write-only address counter register A subtracter for subtracting the read address value stored in the read-only address counter register from the read-only address counter register, and a vector in the first-in first-out memory.
When the data is stored, the subtraction result of the subtractor is compared with the order of the vector data stored in the vector order storage register to check the order of the vector data, and the first-in / first-out When the vector data stored in the memory is read out by the arithmetic unit, the subtraction result of the subtractor is compared with the order of the vector data stored in the vector order storage register to compare the vector data When the order is checked and the operation result stored in the first-in first-out memory is stored in the main memory, the order of the operation result is compared by comparing the subtraction result of the subtractor with a zero value. A vector arithmetic control device comprising a comparing means for checking.
JP60278040A 1985-12-12 1985-12-12 Vector arithmetic controller Expired - Lifetime JPH0752441B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60278040A JPH0752441B2 (en) 1985-12-12 1985-12-12 Vector arithmetic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60278040A JPH0752441B2 (en) 1985-12-12 1985-12-12 Vector arithmetic controller

Publications (2)

Publication Number Publication Date
JPS62138968A JPS62138968A (en) 1987-06-22
JPH0752441B2 true JPH0752441B2 (en) 1995-06-05

Family

ID=17591807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60278040A Expired - Lifetime JPH0752441B2 (en) 1985-12-12 1985-12-12 Vector arithmetic controller

Country Status (1)

Country Link
JP (1) JPH0752441B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5844570A (en) * 1981-09-10 1983-03-15 Fujitsu Ltd Fault detecting system for vector processing
JPS58129648A (en) * 1982-01-29 1983-08-02 Hitachi Ltd Data buffer device
JPS6054042A (en) * 1983-09-02 1985-03-28 Sony Tektronix Corp Method and device for data transfer

Also Published As

Publication number Publication date
JPS62138968A (en) 1987-06-22

Similar Documents

Publication Publication Date Title
KR880011681A (en) Memory-Connected Wavefront Array Processors
US4228500A (en) Command stacking apparatus for use in a memory controller
JPH0752441B2 (en) Vector arithmetic controller
JPS6022779B2 (en) Multiprocessing system program loading method
JPH0226259B2 (en)
JPS6024976B2 (en) Memory access control method
JPH01300490A (en) First-in first-out memory
JPS63308778A (en) First-in first-out storage device
JP3245488B2 (en) List vector processing device
JPH02137183A (en) first in first out storage
JPS61156491A (en) Ic card
JPH04107665A (en) Input/output controller
JPH03214338A (en) Memory check circuit
JPH03214339A (en) Memory check circuit
JPS63165931A (en) Storing system for information on discontinuous instruction fetch address
JPH04255064A (en) Parallel processor
JPH04333950A (en) Information processing system
JPS62166451A (en) History analyzing device for logical unit
JPH0573472A (en) Interruption processor
JPH02112054A (en) data processing equipment
JPH02151940A (en) Trace memory system
KR950020095A (en) DMA controller improves data transfer capacity
JPS6411975B2 (en)
JPH04365170A (en) Digital signal processing semiconductor integrated circuit
JPH01188959A (en) Information history memory

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term