JPH03108040A - Data storage device with improved same data repeated write mechanism - Google Patents

Data storage device with improved same data repeated write mechanism

Info

Publication number
JPH03108040A
JPH03108040A JP24505389A JP24505389A JPH03108040A JP H03108040 A JPH03108040 A JP H03108040A JP 24505389 A JP24505389 A JP 24505389A JP 24505389 A JP24505389 A JP 24505389A JP H03108040 A JPH03108040 A JP H03108040A
Authority
JP
Japan
Prior art keywords
data
representative
register
block
holding means
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
JP24505389A
Other languages
Japanese (ja)
Inventor
Masatsugu Inoue
井上 正嗣
Toru Yoshida
亨 吉田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP24505389A priority Critical patent/JPH03108040A/en
Publication of JPH03108040A publication Critical patent/JPH03108040A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the time required for write operation by providing a representative data holding means and substituting one write operation to the representative data holding means for write of the same data to respective storage positions of a block. CONSTITUTION:When an operation code 4a of the instruction inputted to an instruction register 4 indicates that the same data should be stored in a series of elements in a vector register 1, a control circuit 15 updates contents of a representative state register 2 selected at present to '1' at the time of the storing operation of a representative register 3. Next, data from a data source 9 is stored in the representative register 3 selected at present through a bus 17, and selectors 10 and 11 are controlled to select a count up/down value 4. An element address 4b and an element count 4c are increased/reduced by 4. Thus, storage to one representative data register 3 is substituted for successive storage to four elements to shorten the operation time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ記憶装置に関し、特に、一連の記憶位
置に同一データを書込む動作を簡便化する機構に関する
。本発明は、ベクトルデータの処理に用いられる中間記
憶装置、例えば、いわゆるベクトルレジスタに特に適し
ている。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to data storage devices, and more particularly to a mechanism for simplifying the operation of writing the same data to a series of storage locations. The invention is particularly suitable for intermediate storage devices used for processing vector data, for example so-called vector registers.

〔従来の技術〕[Conventional technology]

多くの利用分野、特に科学計算、データベース処理等に
おいて、情報処理装置は、より大量のデータをより短時
間で処理することが要請される。
In many fields of use, particularly in scientific calculations, database processing, and the like, information processing devices are required to process larger amounts of data in shorter times.

このような処理のためには、主記憶装置と演算器の間の
データの流れを高速に処理することが重要である。一連
のデータに同一の演算を行なうベクトル処理において前
記の目的を達成するため、俗にスーパーコンピュータと
呼ばれる科学計算用計算機では、主記憶装置と演算器の
間に、ベクトルレジスタと呼ばれる高速な中間記憶装置
を設けるのが普通である。主記憶装置中のベクトルデー
タは、まずベクトルレジスタに転送されて、そこから演
算器に供給さ九、演算器の出力は、ベクトルレジスタに
格納されて、そこから主記憶装置に転送され、あるいは
他の演算のために演算器に供給される。ベクトルデータ
は多数の要素データからなり、したがって、ベクトルレ
ジスタは、個々にアドレス指定の可能な多数の要素レジ
スタからなる。
For such processing, it is important to process the data flow between the main memory and the arithmetic unit at high speed. In order to achieve the above objective in vector processing, which performs the same operation on a series of data, scientific computers, commonly called supercomputers, have a high-speed intermediate memory called a vector register between the main memory and the arithmetic unit. It is common to provide equipment. The vector data in the main memory is first transferred to the vector register and then supplied to the arithmetic unit.The output of the arithmetic unit is stored in the vector register and then transferred to the main memory or other is supplied to the arithmetic unit for calculation. Vector data consists of a large number of elemental data, and therefore a vector register consists of a large number of individually addressable elemental registers.

ベクトルレジスタのような、個々にアドレス指定可能な
多数の記憶位置を有する高速処理用の記憶装置において
は、書込み、読出し又は初期化のために、基本的には、
個々の記憶位置に逐次アクセスすることが必要である。
In high-speed processing storage devices with a large number of individually addressable storage locations, such as vector registers, for writing, reading, or initializing, essentially
It is necessary to access individual storage locations sequentially.

一つの改善として、本願と同じ出願人による特願昭62
−330237号は。
As an improvement, the patent application filed in 1983 by the same applicant as the present application
-330237 is.

ベクトルレジスタの各ブロックに対応して設けられ、そ
のブロック内の全要素レジスタがゼロにクリア又は所定
値にリセットされたことを表わす状態レジスタを提案す
る。この状態レジスタは、対応するブロック内の個々の
要素レジスタをクリア又はリセットする代りに予め定め
られた状態に設定され、それにより、ベクトルレジスタ
のクリア又はリセットに要する時間を短縮する。
We propose a status register that is provided corresponding to each block of vector registers and indicates that all element registers in that block have been cleared to zero or reset to a predetermined value. This state register is set to a predetermined state instead of clearing or resetting the individual element registers in the corresponding block, thereby reducing the time required to clear or reset the vector register.

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

ベクトル処理のようなデータ配列の処理、特に大規模な
データ配列の処理においては、任意に指定される同一値
のデータを多数回反復して使用する場合が多い。このよ
うな場合に、従来の方法によれば、個々の記憶位置を−
っ一つアドレス指定して、それらに逐次的に同一データ
を書込まなければならない。前述したクリア又はリセッ
ト機構は、予め決められた特殊な値(オールN Q #
j、オールII I I+等)の設定ができるにすぎず
、任意に指定される値、又はデータ源のみが指定される
未知の値の設定に用いることはできない。
In data array processing such as vector processing, particularly in processing large-scale data arrays, arbitrarily specified data of the same value is often used repeatedly many times. In such a case, according to the conventional method, each storage location is
The same data must be written to them sequentially by specifying one address. The above-mentioned clearing or resetting mechanism uses a predetermined special value (all N Q #
j, all II II I+, etc.), and cannot be used to set arbitrarily specified values or unknown values where only the data source is specified.

本発明の課題は、値の如何を問わず、ブロック内の全記
憶位置への同一のデータの書込みを簡便化することにあ
る。
An object of the invention is to simplify the writing of the same data to all storage locations within a block, regardless of the value.

〔課題を解決するための手段〕[Means to solve the problem]

本発明によれば、各ブロックに対応して、代表状態保持
手段に加えるに、代表データ保持手段が設けられる。そ
して、あるブロック内の全記憶位置に同一のデータが書
込まれるべき場合には、このデータを個々の記憶位置に
代えて対応する代表データ保持手段に書込むとともに、
対応する代表状態保持手段を第1の状態に設定し、それ
以外の場合には、そのブロック内の各記憶位置がそれぞ
れのデータを保持するように少なくとも指定された記憶
位置の内容を更新するとともに、対応する代表状態保持
手段を第2の状態に設定する書込制御手段が設けられる
6代表データ保持手段として。
According to the present invention, in addition to the representative state holding means, representative data holding means is provided corresponding to each block. If the same data is to be written to all memory locations in a certain block, this data is written to the corresponding representative data holding means instead of each memory location, and
setting the corresponding representative state holding means to the first state; otherwise updating the contents of at least the designated storage locations such that each storage location within the block holds respective data; , as six representative data holding means provided with write control means for setting the corresponding representative state holding means to the second state.

専用記憶手段を設ける代りに、各ブロック内の予め定め
られた一つの記憶位置を用いてもよい。
Instead of providing dedicated storage means, one predetermined storage location within each block may be used.

書込制御手段には、あるブロック内の一部の記憶位置の
みが書込みのために指定された時に、対応する代表状態
保持手段が前記第1状態にあることに応答して、対応す
る代表データ保持手段の内容をこのブロック内の少なく
とも更新の予定がない記憶位置に書込む初期化手段を設
けるのがよい。
The write control means stores the corresponding representative data in response to the fact that the corresponding representative state holding means is in the first state when only some storage locations in a certain block are designated for writing. Preferably, initialization means are provided for writing the contents of the holding means in this block at least to storage locations that are not intended to be updated.

また、読出しに関しては、指定された記憶位置が属する
ブロックに対応する代表状態保持手段の状態に応答して
、それが第1状態であれば対応する代表データ保持手段
の内容を読出し、それが第2状態であれば指定された記
憶位置の内容を読出す読出制御手段を設けるのがよい。
Regarding reading, in response to the state of the representative state holding means corresponding to the block to which the specified storage location belongs, if it is in the first state, the contents of the corresponding representative data holding means are read out, In the case of two states, it is preferable to provide a read control means for reading out the contents of the designated storage location.

〔作用〕[Effect]

本発明において、あるブロック内の全記憶要素に同じデ
ータを書込むべき場合には、代表データ保持手段にその
データが書込まれ、個々の記憶位置への書込みは省略さ
れる。したがって、同一データを連続する多数の記憶位
置に書込む命令の処理時間が、大幅に短縮される。この
型の書込みが行なわれると、代表状態保持手段は第1状
態に設定され、他の型の書込みが行なわれると、代表状
態保持手段は第2状態に設定される。したがって、代表
状態保持手段は、代表データ保持手段の内容が有効なの
か、それとも個々の記憶位置の内容が有効なのかを示し
、それにより正しいデータの所在を知ることができる。
In the present invention, when the same data is to be written to all storage elements in a certain block, the data is written to the representative data holding means, and writing to each storage location is omitted. Therefore, the processing time for instructions that write the same data to multiple consecutive storage locations is significantly reduced. When writing of this type is performed, the representative state holding means is set to the first state, and when writing of another type is performed, the representative state holding means is set to the second state. Therefore, the representative state holding means indicates whether the contents of the representative data holding means or the contents of each storage location are valid, thereby making it possible to know the location of the correct data.

各ブロック内の記憶位置の一つを代表データ保持手段と
して用いれば、ハードウェア量を節減できる。
If one of the storage locations in each block is used as representative data holding means, the amount of hardware can be reduced.

このような構造によれば、対応する代表状態保持手段が
第1状態にあるブロックにおいて、各記憶位置に保持さ
れているデータは無効である。このようなブロック内の
一部の記憶位置のみに新しいデータを書込む場合に、本
発明における初期化手段は、このブロック内の更新され
ない記憶位置中の無効データを代表データ保持手段中の
有効データで置換し、それにより、書込動作の後ではブ
ロック内の各記憶位置が有効なデータを保持しているよ
うにする。
According to such a structure, in a block whose corresponding representative state holding means is in the first state, the data held at each storage location is invalid. When writing new data only to some memory locations within such a block, the initialization means of the present invention converts invalid data in storage locations that are not updated within this block to valid data in the representative data holding means. , thereby ensuring that each storage location within the block holds valid data after the write operation.

また、本発明における読出制御手段は、対応する代表状
態保持手段が第1状態にあれば、対応する代表データ保
持手段の内容を読出し、第2状態にあれば、指定された
個々の記憶位置の内容を読出して、それにより、常に有
効なデータが出力されることを保証する。
Further, the read control means in the present invention reads the contents of the corresponding representative data holding means when the corresponding representative state holding means is in the first state, and reads out the contents of the corresponding representative data holding means when the corresponding representative data holding means is in the second state. Read the contents, thereby ensuring that valid data is always output.

〔実施例〕〔Example〕

以下において、ベクトルレジスタに適用された本発明を
詳述する。
In the following, the invention will be detailed as applied to vector registers.

第1図に示す実施例において、ベクトルレジスタ1は、
連続するアドレスを持つ256個の要素レジスタ(以下
単に要素と略称する)からなり、連続するアドレスを持
つ4個の要素が1個のブロックを形成する。したがって
、64個の要素ブロックがある。代表状態レジスタ群2
と代表データレジスタ群3は、いずれもブロックの個数
と同じ64個のレジスタからなり、これら2群のレジス
タは、それぞれ、ベクトルレジスタ1の要素を指定する
アドレスの最下位2ビツトを除いたものを用いて指定さ
れ、したがって、要素ブロックと代表状態レジスタと代
表データレジスタは、1対1の関係で関連付けられてい
る。各代表データレジスタはベクトルレジスタ1の要素
と同じ長さを持ち、対応するブロック中の全要素に同じ
データが格納されるべきときに、そのデータを格納する
ために用いられる。各代表状態レジスタは、1ビットの
長さを持ち、対応する代表データレジスタがブロック内
の全要素に代って有効なデータを保持していれば1”を
保持し、そうでなければ“0″を保持する。
In the embodiment shown in FIG. 1, the vector register 1 is
It consists of 256 element registers (hereinafter simply referred to as elements) having consecutive addresses, and four elements having consecutive addresses form one block. Therefore, there are 64 element blocks. Representative status register group 2
and representative data register group 3 each consist of 64 registers, which is the same as the number of blocks, and each of these two groups of registers has the address that specifies the element of vector register 1 excluding the least significant two bits. Therefore, the element block, representative state register, and representative data register are associated in a one-to-one relationship. Each representative data register has the same length as the elements of vector register 1, and is used to store the same data when the same data is to be stored in all elements in the corresponding block. Each representative state register has a length of 1 bit and holds 1 if the corresponding representative data register holds valid data on behalf of all elements in the block, and 0 otherwise. ” to be retained.

命令レジスタ4は、実行中の命令を保持する。The instruction register 4 holds the instruction being executed.

ループ接続された加算器5と要素アドレスレジスタ6は
、異なる要素アドレスを次々に供給する要素アドレスイ
ンクリメント回路を形成し、ループ接続された減算器7
と要素カウントレジスタ8は、アクセスすべき残りの要
素の個数を示す要素数デクリメント回路を形成する。デ
ータ源9は、ベクトルレジスタ1に格納すべきデータの
供給源を一般的に表わし、それは、例えば、汎用レジス
タ群である。セレクタ10と11は、それぞれ加算器5
へのインクリメント入力と減算器7へのデクリメント入
力として1”か“4”を選択し、セレクタ12は、ベク
トルレジスタ1への入力データの供給源としてデータ源
9か代表データレジスタ群3を選択し、セレクタ13は
、ベクトルレジスタ出力として送品すべきデータの供給
源としてベクトルレジスタ1か代表データレジスタ群3
を選択し、セレクタ14は、ベクトルレジスタ1中の要
素を指定するための情報として、要素アドレスレジスタ
6からの要素アドレスか後述する制御回路15からの初
期化用アドレスを選択する。
A loop-connected adder 5 and an element address register 6 form an element address increment circuit that successively supplies different element addresses, and a loop-connected subtracter 7
and element count register 8 form an element number decrement circuit that indicates the number of remaining elements to be accessed. The data source 9 generally represents the source of data to be stored in the vector register 1, for example a group of general purpose registers. Selectors 10 and 11 are each adder 5
The selector 12 selects either the data source 9 or the representative data register group 3 as the source of input data to the vector register 1. , selector 13 selects vector register 1 or representative data register group 3 as a source of data to be sent as vector register output.
The selector 14 selects an element address from the element address register 6 or an initialization address from the control circuit 15, which will be described later, as information for specifying the element in the vector register 1.

制御回路15は、要素アドレスレジスタ6からの要素ア
ドレスと、要素カウントレジスタ8からの要素カラン1
−と、代表状態レジスタ群2中の選択された代表状態レ
ジスタからの状態指示ビットとを受けて、各種の制御信
号を発生する。主な制御信号は、セレクタ1oと11を
制御するための信号p1選択された代表レジスタに設定
されるべき値q、セレクタ13を制御する出力選択信号
、及び後述するブロック初期化を行なうための、初期化
アドレスとセレクタ12.14への制御信号とである。
The control circuit 15 receives the element address from the element address register 6 and the element callan 1 from the element count register 8.
- and a state instruction bit from a selected representative state register in representative state register group 2, and generates various control signals. The main control signals are a signal p for controlling selectors 1o and 11, a value q to be set in the selected representative register, an output selection signal for controlling selector 13, and a signal for performing block initialization, which will be described later. These are an initialization address and a control signal to selector 12.14.

制御回路5の機能は、後で更に詳しく説明する。The function of the control circuit 5 will be explained in more detail later.

今、命令レジスタ4に入った命令の演算コード4aが、
ベクトルレジスタ1内の一連の要素に同一データを格納
すべきことを示しているとする。
The operation code 4a of the instruction that has just entered the instruction register 4 is
Assume that it indicates that the same data should be stored in a series of elements in vector register 1.

この命令の要素アドレスフィールド4bは、この一連の
要素の先頭アドレスNを示し、要素カウントフィールド
4cは、この一連の要素の個数Mを示し、データ源フィ
ールド4dは、データ源9内の一つの位置(例えば、汎
用レジスタの−っ)を指定する。先頭要素アドレスNは
要素アドレスレジスタ6に転送され、要素個数Mは要素
カウントレジスタ8に転送される。要素アドレスレジス
タ6の内容は、加算器5により、セレクタ10が選択す
る111 It又は′4″ずつ反復的にインクリメント
されて、ベクトルレジスタ1内の要素を1個ずつ指定す
る。また、要素アドレスレジスタ6の内容は、その最下
位2ビツトを除いて、パス16に送られ、代表状態レジ
スタ群2と代表データレジスタ群3のためのアドレスと
して使用される。
The element address field 4b of this instruction indicates the start address N of this series of elements, the element count field 4c indicates the number M of this series of elements, and the data source field 4d indicates one position in the data source 9. (For example, -) of a general-purpose register. The first element address N is transferred to the element address register 6, and the number of elements M is transferred to the element count register 8. The contents of the element address register 6 are repeatedly incremented by 111 It or '4'' selected by the selector 10 by the adder 5 to designate the elements in the vector register 1 one by one. The contents of 6, except for its two least significant bits, are sent to path 16 and used as addresses for representative state register group 2 and representative data register group 3.

要素カウントレジスタ8の内容は、減算器7により、セ
レクタ11が選択する′1”又はIt 4 IIずつ反
復的にデクリメントされて、未処置要素の個数を示す。
The contents of the element count register 8 are iteratively decremented by the subtractor 7 by '1' or It 4 II selected by the selector 11 to indicate the number of unprocessed elements.

制御回路15は、次に述べるようにして、指定された格
納動作を実行する。
Control circuit 15 executes the specified storage operation as described below.

第2図は、制御回路15の格納制御機能を要約して示す
。ケースエないし3は、選択された代表状態レジスタの
現在の内容が11071の場合であって、このとき、指
定された要素が属するブロック内の各要素が有効なデー
タを保持している。ケース1において、要素アドレスは
“n4” (nは0又は正の整数)であって、ブロック
内の先頭要素を指し、そして、カウント(要素カウント
レジスタ8の内容)は、ブロックを構成する要素の個数
″4”に等しいか又はそれより大きい。これらの条件は
、このブロック内の全要素に同一データが格納されるべ
きことを示し、このとき、本発明の特徴とする代表デー
タレジスタ格納動作が行なわれる。制御回路15は、目
下選択されている代表状態レジスタの内容を1”に更新
し、パス17を介してデータ源9からのデータを目下選
択されている代表データレジスタに格納し、次いで、セ
レクタ10と11を制御してカウント増/減値″4”を
選択し、要素アドレスと要素カウントを4”だけそれぞ
れインクリメント及びデクリメントする。こうして、4
個の要素への逐次格納は1個の代表データレジスタへの
格納で代替されて、動作時間が短縮される。
FIG. 2 summarizes the storage control function of the control circuit 15. Cases A to 3 are cases in which the current contents of the selected representative state register are 11071, and at this time, each element in the block to which the designated element belongs holds valid data. In case 1, the element address is "n4" (n is 0 or a positive integer), which points to the first element in the block, and the count (content of element count register 8) is the number of elements that make up the block. The number is equal to or greater than "4". These conditions indicate that the same data should be stored in all elements in this block, and at this time, the representative data register storage operation, which is a feature of the present invention, is performed. The control circuit 15 updates the contents of the currently selected representative state register to 1'', stores the data from the data source 9 in the currently selected representative data register via the path 17, and then updates the contents of the currently selected representative state register to 1''. and 11 to select the count increment/decrement value "4", and increment and decrement the element address and element count by 4", respectively. Thus, 4
Sequential storage into multiple elements is replaced by storage into one representative data register, reducing operating time.

ケース2は、要素アドレスはブロック内の先頭要素を指
すが、カウントが“4″に足りないので、ブロックの途
中で同一データの格納が終了する場合であり、ケース3
は、要素アドレスがブロック内の先頭要素を指さないの
で、ブロック内の中間要素が指定された場合であって、
これらの場合には、目下指定されている単一の要素への
データ格納が行なわれる。制御回路15は、選択されて
いる代表状態レジスタの状態を0″に保ち、ベクトルレ
ジスタ1内の選択されている要素にパス18を介してデ
ータ源9からのデータを格納し、次いで、セレクタ10
と11を制御して増/減値″1”を選択し、要素アドレ
スと要素カウントを1”だけそれぞれインクリメント及
びデクリメントする。平常状態では、セレクタ12はパ
ス18を選択し、セレクタ14は要素アドレスレジスタ
6からのパス2oを選択する。
Case 2 is a case where the element address points to the first element in the block, but the count is less than "4", so storage of the same data ends in the middle of the block, and Case 3
is a case where the element address does not point to the first element within the block, so an intermediate element within the block is specified, and
In these cases, data is stored in the single element currently specified. The control circuit 15 maintains the state of the selected representative state register at 0'', stores the data from the data source 9 via the path 18 in the selected element in the vector register 1, and then
and 11 to select the increment/decrement value "1", and increment and decrement the element address and element count by 1", respectively. Under normal conditions, the selector 12 selects path 18, and the selector 14 selects the element address and element count by 1". Select path 2o from register 6.

ケース4ないし6は、選択された代表状態レジスタの現
内容が′1″の場合であり、このとき、指定された要素
が属するブロック内の各要素が保持しているデータは無
効であり、有効なデータは選択された代表データレジス
タに保持されている。
Cases 4 to 6 are cases where the current content of the selected representative state register is '1'', and in this case, the data held by each element in the block to which the specified element belongs is invalid and is not valid. The data is held in the selected representative data register.

ケース4において、要素アドレスとカウントは、ケース
1におけるのと同様に、このブロック内の全要素に同一
データが格納されるべきことを示す。
In case 4, the element address and count indicate that the same data should be stored in all elements in this block, as in case 1.

制御回路15は、ケース1におけるのと同様にして、代
表データレジスタへのデータ格納と、要素アドレス及び
要素カウントの“4 IIだけのインクリメント及びデ
クリメントを行なう。ただし1代表状態レジスタの内容
は# 1 j+に保たれる。
The control circuit 15 stores data in the representative data register and increments and decrements the element address and element count by "4 II" in the same manner as in case 1. However, the contents of the 1 representative state register are #1. It is kept at j+.

ケース5及び6においては、ケース2及び3におけるの
と同様に、データ源からのデータは、目下選択されてい
る要素に格納される。ところが、今度は、代表状態レジ
スタの値H171が示すように、ブロック内の全要素の
内容は無効であり、代って代表データレジスタの内容が
有効である。したがって、指定された要素以外の要素の
内容を代表データレジスタの内容で置換しなければなら
ない。そのために、ブロック初期化が最初に行なわれる
。すなわち、制御回路15は、セレクタ12を切替えて
代表データレジスタ群3からのパス19を選択し、かつ
、セレクタ14を切替えて初期化アドレス用のパスを選
択する。次いで、制御回路15は、要素アドレスレジス
タ6から受けた要素アドレスデータの最下位2ビツトを
修正することにより5ブロツク内の相次ぐ要素のアドレ
スを逐次生成して、これらを初期化アドレスバスに送出
し、かくして、目下選択されている代表データレジスタ
の内容を、このブロック内の全要素に転送する。然る後
、制御回路15は、セレクタ12と14を復旧して、パ
ス18上のデータ源からのデータを、パス20上の要素
アドレスが指す要素に格納し、次いで、要素アドレスと
要素カウントをII 1 #だけそれぞれインクリメン
ト及びデクリメントし、最後に、選択されている代表状
態レジスタの内容をmI OIIに更新する。
In cases 5 and 6, as in cases 2 and 3, data from the data source is stored in the currently selected element. However, this time, as indicated by the value H171 in the representative state register, the contents of all elements in the block are invalid, and instead the contents of the representative data register are valid. Therefore, the contents of elements other than the designated element must be replaced with the contents of the representative data register. For this purpose, block initialization is performed first. That is, the control circuit 15 switches the selector 12 to select the path 19 from the representative data register group 3, and also switches the selector 14 to select the path for the initialization address. Next, the control circuit 15 sequentially generates addresses of successive elements within the five blocks by modifying the lowest two bits of the element address data received from the element address register 6, and sends these to the initialization address bus. , thus transferring the contents of the currently selected representative data register to all elements within this block. Thereafter, control circuit 15 restores selectors 12 and 14 to store the data from the data source on path 18 into the element pointed to by the element address on path 20, and then restores the element address and element count. Increment and decrement by II 1 #, respectively, and finally update the contents of the selected representative state register to mI OII.

以後、入力条件に応じてケース1〜6のいずれかが反復
し、カウントが1101+になれば、この命令の実行は
完了する。
Thereafter, any one of cases 1 to 6 is repeated depending on the input condition, and when the count reaches 1101+, the execution of this instruction is completed.

読出動作において、先頭要素アドレスと要素カウントは
、要素アドレスレジスタ6と要素カウントレジスタ8に
それぞれ入る。格納動作の時と同様に、ベクトルレジス
タ1内の一つの要素と、代表状態レジスタ群2内の一つ
の代表状態レジスタと、代表データレジスタ群3内の一
つの代表データレジスタとが、要素アドレスレジスタ6
の内容に従って選択される。制御回路15は1選択され
た代表状態レジスタの内容を調べ、それが′0″ならば
ベクトルレジスタ1の出力を選択し、it 1 nなら
ば代表データレジスタ群3の出力を選択するように、セ
レクタ13を出力選択信号により制御する。要素アドレ
スのインクリメント値と要素カウントのデクリメント値
は、常に111 IIである。
In a read operation, the leading element address and element count are entered into element address register 6 and element count register 8, respectively. As in the storage operation, one element in vector register 1, one representative state register in representative state register group 2, and one representative data register in representative data register group 3 are assigned to element address registers. 6
selected according to the content of The control circuit 15 checks the contents of the selected representative state register 1, and if it is '0'', selects the output of the vector register 1, and if it 1 n, selects the output of the representative data register group 3. The selector 13 is controlled by an output selection signal.The element address increment value and the element count decrement value are always 111 II.

第3図は、他の実施例を示す。この実施例においては、
特別な代表データレジスタ群3を設ける代りに、各ブロ
ック内の先頭要素が代表データレジスタとして用いられ
る。しかし、先頭要素の代りに、予め定めさえすれば、
他の任意の位置にある要素を代表データレジスタとして
用いることができるのは明らかである。
FIG. 3 shows another embodiment. In this example,
Instead of providing a special representative data register group 3, the leading element within each block is used as a representative data register. However, instead of the first element, as long as you predetermine
It is clear that elements in any other positions can be used as representative data registers.

第3図において、第1図の機構の変更を要しない部分は
省略されている。第1図における代表データレジスタ群
3とセレクタ13は除去され、ベクトルレジスタ1の出
力とセレクタ12の間に接続された代表データ退避レジ
スタ30と、ベクトルレジスタ1への要素アドレスバス
20に挿入されたマスク回路31が付加される。制御回
路32の格納制御機能は、ケース1及び4における代表
データレジスタへの格納と、ケース5及び6におけるブ
ロック初期化とに関して、次に述べるように、第2図に
示されたものと異なる。
In FIG. 3, parts that do not require changes to the mechanism in FIG. 1 are omitted. The representative data register group 3 and selector 13 in FIG. A mask circuit 31 is added. The storage control function of control circuit 32 differs from that shown in FIG. 2 with respect to storage in the representative data register in cases 1 and 4 and block initialization in cases 5 and 6, as described below.

ケース1及び4において、制御回路32は、他のケース
におけるのと同様に、要素アドレスにより指定された要
素にデータ源からのデータを格納し、要素アドレス及び
要素カウントをII 4 IIだけそれぞれインクリメ
ント及びデクリメントする。
In cases 1 and 4, the control circuit 32 stores the data from the data source in the element specified by the element address, increments the element address and element count by II 4 II, and increments the element address and element count, respectively, as in the other cases. Decrement.

これらのケースにおいて、要素アドレスはブロック内の
先頭要素を指しており、したがって、自ずと先頭要素が
代表データレジスタとして機能することになる。
In these cases, the element address points to the first element within the block, so the first element naturally functions as the representative data register.

ケース5及び6でのブロック初期化において、制御回路
32は、まず、該当するブロック内の先頭要素(代表デ
ータレジスタ)の内容を、代表データ退避レジスタ30
へ読出す。それから、このレジスタ3oの内容をこのブ
ロック内の第2及び後続要素へ逐次転送し、それにより
ブロック初期化を実現する。
In block initialization in cases 5 and 6, the control circuit 32 first transfers the contents of the leading element (representative data register) in the corresponding block to the representative data save register 30.
Read to. The contents of this register 3o are then sequentially transferred to the second and subsequent elements within this block, thereby realizing block initialization.

第3図の実施例における読出動作は、選択された代表状
態レジスタがII OUPを示す限り、第1図の実施例
におけるのと同じである。このとき、マスク回路31は
、全ビットをそのまま通す。選択された代表状態レジス
タがJl 11jを示すと、制御回路32は、制御信号
tによりマスク回路31を制御して、要素アドレスデー
タの最下位2ピツ1〜をdI OOnに強制する。した
がって、指定され要素の内容の代りに、その要素が属す
るブロック内の先頭要素(代表データレジスタ)中の有
効なデータが出力される。
The read operation in the embodiment of FIG. 3 is the same as in the embodiment of FIG. 1 insofar as the selected representative status register indicates II OUP. At this time, the mask circuit 31 passes all bits as they are. When the selected representative state register indicates Jl 11j, the control circuit 32 controls the mask circuit 31 by the control signal t to force the least significant two pits 1 to dI OOn of the element address data. Therefore, instead of the contents of the specified element, valid data in the first element (representative data register) in the block to which the element belongs is output.

ブロックサイズは適当に選ぶことができ、第2図に示さ
れる制御機能は、エントリ中の数値It 4 IIをブ
ロックを構成する要素の個数で置換することにより、任
意のブロックサイズに適用しうる。一つのベクトルレジ
スタ全体を一つのブロックとして扱ってもよい。
The block size can be chosen appropriately, and the control function shown in FIG. 2 can be applied to any block size by replacing the number It 4 II in the entry with the number of elements making up the block. One entire vector register may be treated as one block.

ブロック初期化は、実際に初期化が必要な要素のみに限
定して行なうこともできる。指定された要素アドレスと
要素カウントを用いて更新が予定されていない要素を識
別し、それらに対してのみ初期化アドレスを発行するこ
とは容易である。この変形は、制御回路の論理構成を複
雑にするけれども、処理時間を更に短縮できる。
Block initialization can also be limited to only those elements that actually require initialization. It is easy to use the specified element address and element count to identify elements that are not scheduled to be updated and issue initialization addresses only to them. Although this modification complicates the logic configuration of the control circuit, it can further reduce processing time.

本発明が複数のベクトルレジスタを持つシステムにも適
用でき、更に、広く一般の記憶装置にも適用できること
は明らかである。
It is clear that the present invention is applicable to systems having multiple vector registers, and is also applicable to a wide range of general storage devices.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、代表データ保持手段の設置により、ブ
ロック内の各記憶位置に同一データを逐次書込む動作が
、代表データ保持手段への1回の書込動作で代替される
ので、この型の書込動作に費される時間が大幅に短縮さ
れ、特に、各ブロック内の特定の記憶位置を代表データ
保持手段として用いれば、ハードウェア量の増加は僅か
で済む。
According to the present invention, by installing the representative data holding means, the operation of sequentially writing the same data to each storage location in a block is replaced by a single writing operation to the representative data holding means. The time spent on write operations is significantly reduced, and the amount of hardware increases only slightly, especially if specific storage locations within each block are used as representative data holding means.

適切なブロック初期化手段と続出制御手段は、代表デー
タ保持手段の内容と記憶位置の内容の不一致に関する問
題を解決する。
Appropriate block initialization means and successive control means solve the problem regarding the mismatch between the contents of the representative data holding means and the contents of the storage location.

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

第1図は本発明によるベクトルレジスタシステムの一実
施例を示すブロックダイヤグラムであり、第2図は第1
図中の制御回路の格納制御機能を要約して示す図であり
、第3図は本発明によるベクトルレジスタシステムの他
の実施例を示すブロックダイヤグラムである。 1・・・ベクトルレジスタ、2・・・代表状態レジスタ
群、3・・・代表データレジスタ群、6・・・要素アド
レスレジスタ、12・・・ブロック初期化のために代表
データを選択するセレクタ、13・・・ベクトルレジス
タ又は代表データレジスタを出力データ源として選択す
るセレクタ、14・・・要素アドレス又は初期化アドレ
スを選択するセレクタ、15.32・・・制御回路、3
o・・・特定要素中の代表データを初期化生保持する退
避レジスタ、31・・・指定された要素アドレスを代表
データを保持する特定要素の要素アドレスに変換するマ
スク回路。
FIG. 1 is a block diagram showing one embodiment of a vector register system according to the present invention, and FIG.
FIG. 3 is a diagram summarizing the storage control function of the control circuit in the figure, and FIG. 3 is a block diagram showing another embodiment of the vector register system according to the present invention. 1... Vector register, 2... Representative status register group, 3... Representative data register group, 6... Element address register, 12... Selector for selecting representative data for block initialization, 13...Selector that selects a vector register or representative data register as an output data source, 14...Selector that selects an element address or initialization address, 15.32...Control circuit, 3
o: A save register that initializes representative data in a specific element, and 31: A mask circuit that converts a specified element address into an element address of a specific element that holds representative data.

Claims (1)

【特許請求の範囲】 1、それぞれ独立に指定可能な複数の記憶位置を有する
データ記憶手段と、一定数の記憶位置からなるブロック
のそれぞれに対応して設けられた代表データ保持手段及
び代表状態保持手段と、あるブロック内の全記憶位置に
同一のデータが書込まれるべき場合には、そのデータを
個々の記憶位置に代えて対応する代表データ保持手段に
書込むとともに対応する代表状態保持手段を第1の状態
に設定し、それ以外の場合には、そのブロック内の各記
憶位置がそれぞれのデータを保持するように少なくとも
指定された記憶位置の内容を更新するとともに対応する
代表状態保持手段を第2の状態に設定する書込制御手段
とを備えるデータ記憶装置。 2、請求項1において、各ブロック内の予め定められた
一つの記憶位置がそのブロックに対応する代表データ保
持手段として用いられるデータ記憶装置。 3、請求項1又は2において、前記書込制御手段は、あ
るブロック内の一部の記憶位置のみが書込みのため指定
された時に、対応する代表状態保持手段が前記第1状態
にあることに応答して、対応する代表データ保持手段の
内容をこのブロック内の少なくとも更新の予定がない記
憶位置に書込む初期化手段を含むデータ記憶装置。 4、請求項1、2又は3において、更に、読出しのため
に指定された記憶位置が属するブロックに対応する代表
状態保持手段の状態に応答して、その状態が前記第1状
態であれば対応する代表データ保持手段の内容を読出し
、その状態が前記第2状態であれば前記指定された記憶
位置の内容を読出す読出制御手段を備えるデータ記憶装
置。
[Scope of Claims] 1. Data storage means having a plurality of storage locations that can be specified independently, and representative data holding means and representative state holding means provided corresponding to each block consisting of a certain number of storage locations. If the same data is to be written to all memory locations in a certain block, the data is written to the corresponding representative data holding means instead of each memory location, and the corresponding representative state holding means is also written to the corresponding representative state holding means. otherwise, updates the contents of at least the designated storage location and sets the corresponding representative state holding means so that each storage location in the block holds its own data. and write control means for setting the data storage device to a second state. 2. The data storage device according to claim 1, wherein one predetermined storage location within each block is used as representative data holding means corresponding to that block. 3. In claim 1 or 2, the write control means determines that the corresponding representative state holding means is in the first state when only some storage locations in a certain block are designated for writing. A data storage device including initialization means for responsively writing the contents of the corresponding representative data holding means to at least a storage location in this block which is not scheduled for update. 4. In claim 1, 2 or 3, further, in response to the state of the representative state holding means corresponding to the block to which the storage location designated for reading belongs, if the state is the first state, A data storage device comprising read control means for reading the contents of the representative data holding means, and reading the contents of the specified storage location if the state is the second state.
JP24505389A 1989-09-22 1989-09-22 Data storage device with improved same data repeated write mechanism Pending JPH03108040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24505389A JPH03108040A (en) 1989-09-22 1989-09-22 Data storage device with improved same data repeated write mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24505389A JPH03108040A (en) 1989-09-22 1989-09-22 Data storage device with improved same data repeated write mechanism

Publications (1)

Publication Number Publication Date
JPH03108040A true JPH03108040A (en) 1991-05-08

Family

ID=17127881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24505389A Pending JPH03108040A (en) 1989-09-22 1989-09-22 Data storage device with improved same data repeated write mechanism

Country Status (1)

Country Link
JP (1) JPH03108040A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08153001A (en) * 1994-11-29 1996-06-11 Nec Corp Initialization method for plural registers of microcomputer
JP2002356866A (en) * 2001-05-30 2002-12-13 Asahi Tec Corp Frame body attaching device for structure in ground
JP2013065080A (en) * 2011-09-15 2013-04-11 Denso Corp Electronic control device
JP2021043918A (en) * 2019-09-13 2021-03-18 富士通株式会社 Information processing apparatus, information processing program, and information processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08153001A (en) * 1994-11-29 1996-06-11 Nec Corp Initialization method for plural registers of microcomputer
JP2002356866A (en) * 2001-05-30 2002-12-13 Asahi Tec Corp Frame body attaching device for structure in ground
JP2013065080A (en) * 2011-09-15 2013-04-11 Denso Corp Electronic control device
JP2021043918A (en) * 2019-09-13 2021-03-18 富士通株式会社 Information processing apparatus, information processing program, and information processing method

Similar Documents

Publication Publication Date Title
US4685076A (en) Vector processor for processing one vector instruction with a plurality of vector processing units
US7467288B2 (en) Vector register file with arbitrary vector addressing
US5487159A (en) System for processing shift, mask, and merge operations in one instruction
US4467419A (en) Data processing system with access to a buffer store during data block transfers
US4733346A (en) Data processor with multiple register blocks
US4138720A (en) Time-shared, multi-phase memory accessing system
EP0167959B1 (en) Computer vector register processing
US6378065B1 (en) Apparatus with context switching capability
CA2000145C (en) Data transfer controller
JPH03189843A (en) System and method for processing data
JPH03108040A (en) Data storage device with improved same data repeated write mechanism
EP0660229B1 (en) Method and apparatus for modifying the contents of a register
EP0081358B1 (en) Data processing system providing improved data transfer between modules
EP0400820B1 (en) Content addressable memory
US5021990A (en) Output pulse generating apparatus
US6886159B2 (en) Computer system, virtual machine, runtime representation of object, storage media and program transmission apparatus
US4675843A (en) Programmable logic controller
CN102112965B (en) Operation processing unit
US5546592A (en) System and method for incrementing memory addresses in a computer system
JP2748404B2 (en) Binary data memory
EP0264740A2 (en) Time partitioned bus arrangement
SU1161943A1 (en) Microcommand memory control unit
JPH0477930A (en) Microcomputer
JPH02287623A (en) Microprocessor
JPH0399321A (en) Instruction control system