JPS58129650A - Data processor - Google Patents

Data processor

Info

Publication number
JPS58129650A
JPS58129650A JP1165982A JP1165982A JPS58129650A JP S58129650 A JPS58129650 A JP S58129650A JP 1165982 A JP1165982 A JP 1165982A JP 1165982 A JP1165982 A JP 1165982A JP S58129650 A JPS58129650 A JP S58129650A
Authority
JP
Japan
Prior art keywords
data
register
sort
cell
transferred
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
JP1165982A
Other languages
Japanese (ja)
Inventor
Kazuhiro Sato
和洋 佐藤
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 JP1165982A priority Critical patent/JPS58129650A/en
Publication of JPS58129650A publication Critical patent/JPS58129650A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/22Arrangements for sorting or merging computer data on continuous record carriers, e.g. tape, drum, disc
    • G06F7/24Sorting, i.e. extracting data from one or more carriers, rearranging the data in numerical or other ordered sequence, and rerecording the sorted data on the original carrier or on a different carrier or set of carriers sorting methods in general

Landscapes

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

Abstract

PURPOSE:To shorten sort processing time, by executing the sort-procession of data synchronously with a data stream by a linear array of a cell consisting of a comparator, two shift registers and a controlling circuit. CONSTITUTION:Data r1 are set up in a register 112 through a line 123. The data r1 are inputted to a register 113 under a transfer controlling function by a cell controlling unit 102 and control by a delay circuit 105 and also inputted to a comparator 108 through a line 125. Simultaneously with said input operation, the data r1 in the register 112 are inputted to the comparator 108 through a line 124 to be compared with the former input. The compared result is set up in a latch circuit 109 and transferred to a cell controlling unit 102 through a line 120. On the basis of the transferred result, a register in which data to be transferred to the succeeding cell are stored is determined and the transfer processing to the succeeding cell is started.

Description

【発明の詳細な説明】 本発明は、データ処理装置に関し、特に、データをソー
トするためのデータ処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing apparatus, and more particularly to a data processing apparatus for sorting data.

データの分類のためのアルゴリズムは数多く存在し、こ
れらにソフトウェアでサポートさnるが、最近、新しい
記憶デバイスの開発やLSI技術の発達により、ハード
ウェアによるデータのソート処理の提案が活発である。
There are many algorithms for classifying data, and these are supported by software, but recently, with the development of new storage devices and advances in LSI technology, proposals for data sorting processing using hardware have become active.

本発明の目的は、ソート処理時間の短縮という効果tも
たらす、専用)・−ドウエアによりデータのソートを行
うデータ処理装置を提供することにおる。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data processing device that sorts data using dedicated hardware, which has the effect of shortening the sort processing time.

このような目的全達成するために、本発明では、比較器
と2つのシフトレジスタと制御回路とからなるセルの巌
形配列により、データストリームに同期してデータの分
類処理を実行できることに特徴がある。また、比l1l
IIIj御フラグにより、ベスト1O及びワース)10
の様なソート選択処理もできる。
In order to achieve all of these objectives, the present invention is characterized in that data classification processing can be performed in synchronization with the data stream using a cell arrangement consisting of a comparator, two shift registers, and a control circuit. be. Also, the ratio l1l
According to IIIj flag, best 10 and worst) 10
You can also perform sort selection processing like this.

以下1本発明t−実施例を参照して詳細に説明する。The present invention will be described in detail below with reference to embodiments.

第1図は本発明によるデータ処理装置の一実施例を示す
構成図で、第2図は、その中のソート処mt−行うノー
トボックスの一例の内部構成図でおる。以下、この実施
例で扱うデータは固定フォーマットで、かつ、そのサイ
ズはセル内レジスタに収容で自るIIL囲内とする。
FIG. 1 is a block diagram showing an embodiment of a data processing apparatus according to the present invention, and FIG. 2 is an internal block diagram of an example of a notebook box that performs a sorting process. Hereinafter, it is assumed that the data handled in this embodiment is in a fixed format and its size is within the IIL range that can be stored in an intra-cell register.

jlll#Aにおいて、大容量記憶装[1にソートすべ
きデータが格納さnてお9、このデータがノートボック
ス2のセル6〜8円での大小比軟処理に基ついて分−嘔
れる。ソートデータ数がソートボックス2内のセル数以
下ならは、最終の転送データの比軟処理終了後、ライン
14.15を通してボックス2内テータを次の処理のた
めに佃鉄直に転送する。他方、ソートデータ数がセル数
以上の場合は、最後尾セル8から押し出さnるソート終
了後を記憶装置i4に転送格納する。jl終データのソ
ートボックス2F9処理を終了し九ら、ソートボックス
2円データ(ノート済データ)をライン14.15t−
通して次のステップへ転送する。転送終了後、記m!!
114からデータをソートボックス2に転送し、上記と
同様の処理を、記tm襞直4にデータがなくなるまで繰
返す。ソートボックス2の記憶装置4等は制御ユニット
3で制御される。
In jll#A, the data to be sorted is stored in the mass storage device [1], and this data is divided based on the size ratio processing in cells 6 to 8 of note box 2. If the number of sort data is less than the number of cells in sort box 2, after the final transfer data soft processing is completed, the data in box 2 is transferred to Tetsuo Tsukuda for next processing through lines 14 and 15. On the other hand, if the number of sorted data is greater than the number of cells, data n after the sorting is pushed out from the last cell 8 is transferred and stored in the storage device i4. jl end data sort box 2F9 processing is finished, sort box 2 yen data (noted data) is placed on line 14.15t-
transfer to the next step. After the transfer is complete, write down! !
The data is transferred from 114 to the sort box 2, and the same process as described above is repeated until there is no more data in the tm fold straight 4. The storage device 4 and the like of the sort box 2 are controlled by the control unit 3.

また、ソートボックス2には、セルを制御する九めの制
御ユニット5がるる。
Also, in the sort box 2, there is a ninth control unit 5 that controls the cells.

第3図は第2図のセル制御具ニツ)102での処理のフ
ローを示すものである。
FIG. 3 shows the flow of processing in the cell controller 102 of FIG. 2.

第4図は本発明によるデータ処!1装置の他の実施例の
構成−である。第1図と興なる所は、ソートデータ辿択
査号付はユニット9およびレコード全体を格納する記憶
執直lOがおることである。
Figure 4 shows the data processing according to the present invention! 1 is the configuration of another embodiment of the device. The difference from FIG. 1 is that there is a sort data tracing unit 9 and a memory storage unit 10 for storing the entire record.

また、この構成では、ソートすべきレコード欽はセル数
以内としている。ユニット9では、元のデータをソート
ボックス2内で処理可能なデータフォーマットに変換す
る。すなわち、ユニット9では、転送順を表わす順番を
付加する(この順番を表わすフィールドは固定表とする
。)本実施例でのデータフォーマットは、ソートフィー
ルドとその他のフィールドからなる固定表フォーマット
で1ソートフイールドサイズとユニット9で生成される
補助フィールドサイズの和は、セル内のレジスタサイズ
より小さいものとする。ユニット9で生成されたソート
フィールドデータに対してソートボックス2でソートす
る。ソート終了後は、セル内レジスタ中のデータの番号
フィールドの値(この値は、記憶装置1より転送されて
くるデータレコードの順番を示し、レコードは転送JI
K記憶装置10に格納される。)に従い、記憶装置10
からライン20t−通して次のステップに転送される。
Further, in this configuration, the number of records to be sorted is within the number of cells. In unit 9, the original data is converted into a data format that can be processed within the sort box 2. That is, in unit 9, an order representing the transfer order is added (the field representing this order is a fixed table).The data format in this embodiment is a fixed table format consisting of a sort field and other fields. It is assumed that the sum of the field size and the auxiliary field size generated in unit 9 is smaller than the register size within the cell. The sort field data generated in unit 9 is sorted in sort box 2. After sorting is completed, the value of the number field of the data in the register in the cell (this value indicates the order of data records transferred from storage device 1, and the records are transferred to JI
K storage device 10. ), storage device 10
is transferred to the next step through line 20t-.

以上の転送制御は制御ユニット3で行う。The above transfer control is performed by the control unit 3.

gssaは本発明によるデータ処理装置のさらに他の実
施例を示す′もので、ソートすべきデータ数がノートボ
ックス2内のセル数以上の場合の処理を行う。この第5
図の実施例は第1図および第4図の実施例との統合であ
る。
gssa represents yet another embodiment of the data processing apparatus according to the present invention, and performs processing when the number of data to be sorted is greater than the number of cells in the note box 2. This fifth
The illustrated embodiment is a combination of the embodiments of FIGS. 1 and 4.

lh6図は本発明のデータ処理装置のさらに他の実施例
を示すもので、第5図の実施例にデータ検索処理ユニッ
ト111に設けた、より高度なデータ処理装置である。
1h6 shows still another embodiment of the data processing device of the present invention, which is a more advanced data processing device provided in the data search processing unit 111 in the embodiment of FIG.

以下、それぞれの実施例につきその動作を説明する。The operation of each embodiment will be explained below.

まず、第1図の実施例について、第1図、第2図、第3
図を用いて説明する。まず、制御装置3は装置内の各ユ
ニツ)l初期化する。それに合わせ、ソートボックス2
では、ソートボックス制御ユニット5により各セルがラ
イン22.23.241−通して初期化される。すなわ
ち、第2図のように、セルに対、してはライン116(
ライン22.23゜24等と同類制御ライン)罠より、
汎用マイクロプロセッサ勢からなるセル制御ユニット1
02に制御がわ九り、セル内各ユニット等を初期化する
First, regarding the embodiment shown in Fig. 1, Figs.
This will be explained using figures. First, the control device 3 initializes each unit in the device. Accordingly, sort box 2
Then each cell is initialized by the sort box control unit 5 through the lines 22.23.241-. That is, as shown in FIG.
line 22.23゜24 etc. and similar control line) from the trap,
Cell control unit 1 consisting of general-purpose microprocessors
At 02, control returns and initializes each unit in the cell.

以下の説明では、データを昇順にソートするものとする
In the following explanation, it is assumed that data is sorted in ascending order.

初期状態では、データレジスタ制御ユニット104内の
比較制御フラグ106は′″l″にセットされている。
In the initial state, the comparison control flag 106 in the data register control unit 104 is set to ``1''.

これは、比較の結果大きい方を次のセルに転送すること
を指示する喪めである。なお、このフラグ106が@ 
OIIの場合は、1等しい”条件を、′−1”の場合は
、比較するデー′りの小さい方を次のセルに転送するこ
とを指示する(すなわち、降順ソートの場合)セル動作
条件指定である。また、切換えスイッチ110はレジス
タ112に、スイッチ111および114はいずれかの
レジスタ112まl;1113に接続しているものとす
る。
This is a message that instructs to transfer the larger comparison result to the next cell. Note that this flag 106 is @
In the case of OII, specify the "condition of equal to 1", and in the case of '-1', specify the cell operating condition to transfer the smaller comparison data to the next cell (i.e., in the case of descending order sorting) It is. It is also assumed that the changeover switch 110 is connected to the register 112, and the switches 111 and 114 are connected to either register 112 or 1113.

以上の状態が、制御ユニット3社記憶装置1からライン
12を通してのデータ転送に起動をかけ、転送データ流
をライン13t−通してノートボックス2に入力する。
The above conditions activate the data transfer from the control unit 3 storage device 1 through the line 12, and input the transferred data stream into the notebook box 2 through the line 13t-.

今、このデータfiをr、、r□・・・、r、とする、
ソートボックス制御ユニット5はデータ伝送を検知する
とライン22によりセル6に制御を渡す、セル6では、
第2図のようにセル遅延回路105,107により転送
データのタイミング制mを行い、まず、ライン123を
通して、レジスタ112にデータr、をセットする。こ
こで、データの格納およびレジスタからの転送等はセル
制御ユニット102にあるデータ表レジスタおよびカウ
ンタ制御回路(図省略)によし制御される。
Now, let this data fi be r,, r□..., r,
When the sort box control unit 5 detects data transmission, it passes control over line 22 to the cell 6, where the
As shown in FIG. 2, the cell delay circuits 105 and 107 control the timing of transfer data m, and first, data r is set in the register 112 through the line 123. Here, data storage, transfer from the register, etc. are controlled by a data table register and a counter control circuit (not shown) in the cell control unit 102.

コノ時、セル制御ユニット102内の有効レジスタフラ
グ127は0”(セルの左レジスタ112を示す。もし
、′2′ならば、右レジスタ113を示す。)にセット
される。また、レジスタ112ヘノr1セツト終了と同
時に、切換えスイッチ110は、レジスタ113に、ス
イッチ111はレジスタ112に、セル制御ユニツ)1
02の切換えスイッチ制御機能により各々制御ライン1
18,119を通して接続さnる。この状態成立後、デ
ータr。
At this time, the valid register flag 127 in the cell control unit 102 is set to 0'' (indicates the left register 112 of the cell. If it is '2', it indicates the right register 113). At the same time as the r1 set is completed, the selector switch 110 switches the register 113, the switch 111 switches the register 112, and the cell control unit) 1
02 changeover switch control function, each control line 1
Connected through 18 and 119. After this state is established, the data r.

がセル制御ユニツ)102のデータ転送制御機能、遅延
回路105の制御の下に、ライン125を通して比較器
108に入力される。また、この入力動作と同時に、レ
ジスタ112内データr1が2イン124t−通して比
較器108に入力さn1比較が行われる。その結果がラ
ッチ回路109にセットされ、ライン120f:通して
、セル制御ユニット102にわたる(第3図のステップ
202)。
is input to the comparator 108 through line 125 under the control of the data transfer control function of cell control unit 102 and delay circuit 105 . Simultaneously with this input operation, data r1 in the register 112 is input to the comparator 108 through the 2-in 124t-, and n1 comparison is performed. The result is set in latch circuit 109 and passed through line 120f to cell control unit 102 (step 202 in FIG. 3).

ここで、比較結果@1”は次のセルからの転送デニット
102のレジスタ制御機能により、有効レジスタ7ラグ
127の値を変匪すると共に、次のセルに転送するデー
タの入っているレジスタを決定し、次のセルへの転送処
理を開始する(第3図のステップ203)。次のセルの
動作施水はライン2B、26.27.IIL 117に
一通して行う。今、r、>rlとする。この時、比較制
御フラグ106の値は11”なので、次のセルに転送さ
れるデータはr、で、データレジスタはレジスタ112
となる。この時、有効レジスタフラグ127は@1′に
セットされる。これらの動作終了と同時に、セル制@エ
ニット102め切換えスイッチ制御機能によりスイッチ
11Gはレジスタ112、スイッチ111はレジスタ1
13、スイッチ114flレジスタ112に各々接続さ
れる。接続完了後、データr、が、上記’F e ’!
と同様の制御に従い、比較器108およびレジスタ11
2に転送される。
Here, the comparison result @1'' changes the value of the valid register 7 lag 127 by the register control function of the transfer denit 102 from the next cell, and also determines the register containing the data to be transferred to the next cell. Then, the transfer process to the next cell is started (step 203 in Fig. 3).The operation of the next cell is performed by passing water through lines 2B, 26.27.IIL 117.Now, r, >rl At this time, the value of the comparison control flag 106 is 11'', so the data transferred to the next cell is r, and the data register is the register 112.
becomes. At this time, the valid register flag 127 is set to @1'. At the same time as these operations are completed, switch 11G is set to register 112 and switch 111 is set to register 1 by the cell system @ Enit 102 changeover switch control function.
13 and switch 114 are connected to the fl register 112, respectively. After the connection is completed, the data r is changed to 'F e '!
Comparator 108 and register 11
Transferred to 2.

こnと同期してレジスタ113内のr、の比較器108
への入力と、レジスタ112がらライン126を通して
データr1の次のセルへの転送ヲ行う。以上の自セルへ
の入力、比較、他セルへの転送動作をデータ流r、〜r
、に対して行う(第3図のステップ206)。もし、n
がセル数より小さい場合には、各セルの有効レジスタフ
ラグ127の値を調べ、この値に基づいて、各セルの左
右のいずれかのレジスタからデータをライン32を通し
てセルIIK次のステップに転送することによりソート
処理は終了する(第3図のステップ2o7)。
The comparator 108 of r in the register 113 is synchronized with n.
and transfers data r1 from register 112 to the next cell through line 126. The data flow r, ~r
, (step 206 in FIG. 3). If, n
If is smaller than the number of cells, check the value of the valid register flag 127 of each cell, and based on this value, transfer the data from either the left or right register of each cell to the next step through line 32. This completes the sorting process (step 2o7 in FIG. 3).

一方、ソートすべきデータ数がセル数以上の場合は、セ
ル8から押し出されるデー!をライン14゜16を通し
て記憶装置4に格納する。格納制御は制御:L=’、/
ト3が行う(第3図のステップ208)。
On the other hand, if the number of data to be sorted is greater than the number of cells, the data will be pushed out from cell 8! is stored in the storage device 4 through lines 14-16. Storage control is controlled by: L=', /
step 3 (step 208 in FIG. 3).

全てのデータ流れr1〜r、がソートボックス2内を通
過し終つ九ら、ソートボックス2内のデータを次のステ
ップに転送し、その児了後、記憶装置4内のデータにつ
いて、制御ユニット3の制御の下、上記と同様の処理を
繰り返し行う(第3図のステップ210)、ソートボッ
クス2から記憶装置4に押し出されるデータがなくなっ
たら、全データ流r1〜r、のデータ分類処理は終了す
るこλになる。
After all the data flows r1 to r have passed through the sort box 2, the data in the sort box 2 is transferred to the next step, and after that, the data in the storage device 4 is transferred to the control unit. Under the control of step 3, the same process as above is repeated (step 210 in FIG. 3). When no data is pushed out from the sort box 2 to the storage device 4, the data classification process for all data streams r1 to r is completed. When it ends, it becomes λ.

以上の処理の有効レジスタフラグ127の動作を具体例
を用いて第7図(a)、φ)に示す。今、セル数を5と
し、データ流を8.4.6.2.10とする。
The operation of the valid register flag 127 in the above process is shown in FIG. 7(a), φ) using a specific example. Now, assume that the number of cells is 5 and the data flow is 8.4.6.2.10.

この時、有効レジスタフラグ127の値は第7図体)に
示すように変化し、2,4,6.8にソートされる。こ
れらのデータは、有効レジスタフラグ127が示すレジ
スタ(このフラグの値が10”なら左レジスタ、@1”
なら右レジスタを示す)に入っている。′tた、第7図
(b)に示すように、比較制御フラグ106のセットの
仕方により、ベスト2およびワースト2(第7図では、
小さい方から2つ、大暑い方から2つ)のような分類選
択が可能でめる。
At this time, the value of the valid register flag 127 changes as shown in Figure 7) and is sorted into 2, 4, and 6.8. These data are stored in the register indicated by the valid register flag 127 (if the value of this flag is 10", the left register, @1"
indicates the right register). In addition, as shown in FIG. 7(b), depending on how the comparison control flag 106 is set, the best two and worst two (in FIG. 7,
You can select categories such as 2 from the smallest and 2 from the hottest.

次に、第4図の実施例の動作を説明する。Next, the operation of the embodiment shown in FIG. 4 will be explained.

この実施例は、ノートフィールドとそn以外のフィール
ドからなるレコードデータ集合をソートする場合である
。レコードデータ数はセル数より小さいとする。
In this embodiment, a record data set consisting of a note field and fields other than n is sorted. It is assumed that the number of record data is smaller than the number of cells.

ソートフィールド(サイズはセル内レジスタに収容で°
きる範曲とする。)を含んだレコード流r。
Sort field (size can be stored in an in-cell register)
It is a genre that can be played. ).

〜t、(nくN)が記憶装置1よりライン12.18を
通してソートデータ選択番号性はユニット9に、また、
ライン12.19を通して記憶装[10に転送される。
~t, (n × N) is sent from storage 1 through line 12.18 to unit 9 for sort data selection numbering, and
It is transferred to the storage device [10 via line 12.19.

記憶#ci[1より転送されてくるレコードデータr、
〜r、は固定表フォーマットとする。
Record data r transferred from memory #ci[1,
~r, is in fixed table format.

ユニット9では、元のレコードからソートフィールドの
切出しとそれに対する転送1118フイールドの付加の
各処理を行う。ユニット9でのソートフィールドの切出
しは、例えば、特願昭55−89443゜55−145
531に示すように実現できる。
Unit 9 performs processing such as cutting out a sort field from the original record and adding a transfer 1118 field to it. For example, the extraction of the sort field in unit 9 is as follows:
This can be realized as shown in 531.

また、転送順番フィールドの付加のための回路としては
第8図または第9図に示すものが使用できる。
Further, as a circuit for adding the transfer order field, the circuit shown in FIG. 8 or 9 can be used.

w&8図において、301,302は切換スイッチ、3
03.304はシフトレジスタ、305は制御回路、3
06はカウンタを示す。
In the w & 8 diagram, 301 and 302 are changeover switches, 3
03.304 is a shift register, 305 is a control circuit, 3
06 indicates a counter.

t+、第9図において、401,402は切換スイッチ
、403,404はデータレジスタ、405は制御回路
、406はカウンタ、407はシフトレジスタを示す。
In FIG. 9, 401 and 402 are changeover switches, 403 and 404 are data registers, 405 is a control circuit, 406 is a counter, and 407 is a shift register.

第8図、第9図に示すように、基本的構成はダブルバッ
ファリングで、そtそnのデータ転送に同期して転送順
番フィールドt−W成する。すなわち、データ転送に合
わせてカウンタを更新し、その値をカウント部として付
加する。順番フィールドを付加したソートフィールドは
ユニット9からライン13を通してソードボックス2に
入力され、第1図の実施例と同様にソート処理を行う。
As shown in FIGS. 8 and 9, the basic configuration is double buffering, and a transfer order field TW is formed in synchronization with each data transfer. That is, the counter is updated in accordance with data transfer, and the updated value is added as a count section. The sort field to which the order field has been added is input from unit 9 through line 13 to sword box 2, and sorting is performed in the same manner as in the embodiment of FIG.

順番フィールドは無視するように各セルのセル制御ユニ
ット102が制御する。ユニット9には、レコードフォ
ーマットフィールド情報テーブル(省略)があす、ソー
トフィールドにはフィールド我と共にソートフィールド
識別子がセットさnている。
The cell control unit 102 of each cell controls so that the order field is ignored. In unit 9, a record format field information table (omitted) is set, and a sort field identifier is set in the sort field along with the field I.

この情報に基ついて、ユニット9内のバッファであるシ
フトレジスタ303,304またはデータレジスタ40
3,404(ス) IJ−ム制御のためにタプルバッフ
ァリング構成になっている。)に格納する。
Based on this information, shift registers 303, 304 or data register 40, which are buffers in unit 9,
3,404 (S) A tuple buffering configuration is used for IJ-me control. ).

また、レコード転送が行われる度にユニット9内のレコ
ード転送カウンタ306または406がなされる(最初
はゼロにセットされている)。そして、バッファからソ
ートボックス2への転送時に、このカウンタ値をソート
フィールドデータに付加して転送する。後の処理は第1
図の実施例に同じである。全てのレコードデータが転送
終了後、セル6から順に、データレジスタの自答を調べ
、その中の順番フィールドを取得し、その値に基づいて
、配憶装置10をアクセスし、ソートデータを、て ライン20を通販次のステップに転送する。
Also, each time a record transfer is performed, the record transfer counter 306 or 406 in the unit 9 is set (initially set to zero). Then, when transferring from the buffer to the sort box 2, this counter value is added to the sort field data and transferred. The subsequent processing is the first
This is the same as the embodiment shown in the figure. After all the record data has been transferred, check the answer in the data register in order from cell 6, obtain the order field therein, access the storage device 10 based on that value, and sort the data. Line 20 transfers to mail order next step.

さらに、第5図の実施例の動作につ1!貌明する。Furthermore, regarding the operation of the embodiment shown in FIG. Become clear.

本実施例は、第1図の実施例と第4図の実施例を統合し
た屯のである。すなわち、ソートすべきレコードデータ
数がセルNより大きい場合の構成である。処理動作は、
記憶装置1よりライン12゜18を通してユニット9に
、ライン12.19’i通して記憶装置10に、レコー
ドデータが転送される。ユニット9では、ソートフィー
ルドの切出しと順番フィールドの作成付加を第4図の実
施例2と同様にして行い、ソートボックス2に転送し、
ソート処理を行う。ソートボックス2から押口出される
ソートフィールドデータはライン141!−通して記憶
装置4に転送される。全てのデータがソートボックス2
t−通過し終ったら、セル6から順に、レジスタ内の順
番フィールドの値に基づき、記憶装置10を、制御ユニ
ット3の制御の下で、アクセスし、ライン20を通して
次のステップに転送する。上記処理を記憶装ff14に
格納されるソートフィールドデータがなくなるまで繰返
し、ソート処理を行う。
This embodiment is a combination of the embodiment shown in FIG. 1 and the embodiment shown in FIG. 4. That is, this is the configuration when the number of record data to be sorted is larger than cell N. The processing operation is
Record data is transferred from storage device 1 to unit 9 through line 12.19'i and to storage device 10 through line 12.19'i. In unit 9, the sort field is extracted and the order field is created and added in the same manner as in the second embodiment shown in FIG. 4, and transferred to the sort box 2.
Performs sorting processing. The sort field data output from the sort box 2 is on line 141! - is transferred to the storage device 4 through. All data is sorted in box 2
Once the t-pass has been completed, the memory 10 is accessed under the control of the control unit 3, starting with cell 6, and transferred to the next step via line 20, based on the value of the order field in the register. The above processing is repeated until there is no more sort field data stored in the storage device ff14 to perform the sorting process.

さらに、第6図の実施例の動作につき説明する。Furthermore, the operation of the embodiment shown in FIG. 6 will be explained.

本実施例は、!S図の実施例に特願昭55−89443
.55−145531に示さnるようなデータ検索処理
ユニット11(内S*成、動作は省略)装[1からライ
ン21全通して転送anてくるレコードデータ集合をめ
る指定された検索条件に基ついてフィルタリングし、ソ
ートボックス2及び記憶装置10への転送データ数を減
少させる効果を持つものである。このユニット11の付
加により、より高度かつ高速なデータ処理装置が実現で
きる。
This example is! Patent application No. 55-89443 for the example of S diagram
.. A data search processing unit 11 (inner S* structure, operation omitted) as shown in No. 55-145531 transfers an incoming record data set from line 21 to This has the effect of reducing the number of data transferred to the sort box 2 and the storage device 10 by filtering the data. By adding this unit 11, a more advanced and faster data processing device can be realized.

以上説明したように、本発明によれば、次のような効果
を得ることができる。
As explained above, according to the present invention, the following effects can be obtained.

(1)入力データストリームに同期して、データのソー
ト処理がでさ、処理時間が少ない。
(1) Data can be sorted in synchronization with the input data stream, reducing processing time.

(2)セルは簡単な構成であり、LSI化が容易である
と同時に、ソートボックスのLSI化も容易である。
(2) The cell has a simple configuration and can be easily integrated into an LSI, and at the same time, the sort box can also be integrated into an LSI.

(3)  ソートデータ選択番号性はユニットによりレ
コードサイズの大きいデータのソートもデータ転送に四
則して可能で、また、ソートボックスを繰返し用いるこ
とにより大量データのソート処理も可能である。
(3) Sort data selection Numbering allows data with large record sizes to be sorted by unit in accordance with the four rules for data transfer, and by repeatedly using the sort box, it is also possible to sort large amounts of data.

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

第1図は本発明によるデータ処理装置の一実施例の構成
図、1p、2図は第1図のソートボックスの一例の構成
図、第3図は第2図のセル制御ユニットの動作の一例を
示すフローチャート、第4図〜第6図はいずれも本発明
によるデータ処理装置の他の実施例の構成図、第7図は
第1図の有効し′ジスタフラグの状IIiを示す図、第
8図および#!9図はそれぞれ第4図のソートデータ選
択番号性はユニットの一例の構成図である。 1.4.10・・・記憶装置、2・・・ソートボックス
、3・・・データ処理制御ユニット、5・・・ソートボ
ックス制@:x−x−yト、6,7,8,101”・セ
ル、9・・・ソートデータ選択番号性はユニット、11
・・・データ検索処1!ユニット、1o2・・・セル制
(lIl]:Lニラ)、106・・・比較制御フラグ、
1o7・・・遅延回路、108・・・比較器、109・
・・比較ラッチ、・110゜111.114・・・切換
えスイッチ、112,113・・・データ(シスト)レ
ジスタ、127−・・有効レジスタフラグ。 Y 1 図
FIG. 1 is a block diagram of an embodiment of the data processing device according to the present invention, FIGS. 1p and 2 are block diagrams of an example of the sort box in FIG. 1, and FIG. 3 is an example of the operation of the cell control unit in FIG. 2. FIGS. 4 to 6 are all configuration diagrams of other embodiments of the data processing apparatus according to the present invention. FIG. 7 is a diagram showing the state of the valid register flag IIi in FIG. Figure and #! FIG. 9 is a configuration diagram of an example of the sort data selection numbering unit shown in FIG. 4, respectively. 1.4.10... Storage device, 2... Sort box, 3... Data processing control unit, 5... Sort box system @: x-x-y, 6, 7, 8, 101 ”・Cell, 9... Sort data selection numbering is unit, 11
...Data search department 1! Unit, 1o2...Cell system (lIl]: L chive), 106...Comparison control flag,
1o7...Delay circuit, 108...Comparator, 109.
- Comparison latch, - 110° 111.114 - Changeover switch, 112, 113 - Data (sist) register, 127 - - Valid register flag. Y 1 diagram

Claims (1)

【特許請求の範囲】 1、データ集合を分類するデータ処理装置において、転
送されてくるデータを格納するレジスタと、このレジス
タ内データと転送されてくるデータとを比較する比較回
路と、この比軟結果をラッチするラッチ回路と、昇順お
よび降順の指示をセットする比較制御フラグおよび必要
データが入っているレジスタを示す有効レジスタフラグ
を持ち、上記レジスタを制御するセル制御回路とから乙
るセルの線形配列により、転送されてくるデータストリ
ームを中断することなく、データ間の比at行い、デー
タを分類することt%黴とするデータ処理装置。 2 チーIがソートフィールドとでの他のフィールドか
らなる場合に、ソートデータの転送順番tカウントシ、
そのi[を付加し、新たにソートデーIt作成して分―
処mを行う手段を備えたことt−特徴とする脣許讃求範
囲第1項記載のデータ処理装置。 λ セル数以上のデータを分類する必要がある場合、補
助的な記憶鉄[を設けて、ソートポック4返し用いるこ
とにより分類処理を可能とすることt%黴とする特許請
求の範曲第1項記載のデータ処理装置。
[Claims] 1. In a data processing device that classifies a data set, a register that stores transferred data, a comparison circuit that compares the data in this register with the transferred data, and a comparison circuit that stores the transferred data; It has a latch circuit that latches the result, a comparison control flag that sets ascending and descending instructions, and a valid register flag that indicates the register containing the necessary data, and a cell control circuit that controls the registers. A data processing device that performs a comparison between data and classifies the data without interrupting the transferred data stream. 2. When QI consists of a sort field and other fields, the sort data transfer order t count,
Add that i[, create a new sort data It, and min-
1. The data processing device according to item 1, characterized in that the data processing device is provided with means for performing the processing. λ When it is necessary to classify data exceeding the number of cells, an auxiliary memory iron is provided and the classification process is made possible by using the sort pock 4. Paragraph 1 of the patent claim The data processing device described.
JP1165982A 1982-01-29 1982-01-29 Data processor Pending JPS58129650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1165982A JPS58129650A (en) 1982-01-29 1982-01-29 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1165982A JPS58129650A (en) 1982-01-29 1982-01-29 Data processor

Publications (1)

Publication Number Publication Date
JPS58129650A true JPS58129650A (en) 1983-08-02

Family

ID=11784099

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1165982A Pending JPS58129650A (en) 1982-01-29 1982-01-29 Data processor

Country Status (1)

Country Link
JP (1) JPS58129650A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60176143A (en) * 1983-12-05 1985-09-10 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Program calling apparatus
US4799152A (en) * 1984-10-12 1989-01-17 University Of Pittsburgh Pipeline feedback array sorter with multi-string sort array and merge tree array
JPH076021A (en) * 1993-06-18 1995-01-10 Nec Corp Data rearranging device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60176143A (en) * 1983-12-05 1985-09-10 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Program calling apparatus
US4799152A (en) * 1984-10-12 1989-01-17 University Of Pittsburgh Pipeline feedback array sorter with multi-string sort array and merge tree array
JPH076021A (en) * 1993-06-18 1995-01-10 Nec Corp Data rearranging device

Similar Documents

Publication Publication Date Title
US9886017B2 (en) Counter operation in a state machine lattice
US5247662A (en) Join processor for a relational database, using multiple auxiliary processors
WO2015094721A2 (en) Apparatuses and methods for writing masked data to a buffer
JPS58129650A (en) Data processor
JPH01297723A (en) Control data regenerating device for sort processor
JPS6142031A (en) Sorting processor
Mumolo VHDL design of a scalable VLSI sorting device based on pipelined computation
Berkovich et al. A bit‐counting algorithm using the frequency division principle
JPS63229522A (en) Parallel sorting process method
Kamiya et al. A hardware pipeline algorithm for relational database operation
JPH05225273A (en) Conversion device for semiconductor integrated circuit logical connection data
JPH0317780A (en) Method and device for retrieving symbol string
Zhang et al. An Acceleration Method of Data Table Parsing and Database Sorting Based on Mask Calculation
JPH0315983A (en) Construction of logical circuit
JP2735255B2 (en) Hatching treatment method
JP2588932B2 (en) Sorting device
JPS59148943A (en) Memory circuit
TW554284B (en) The design methodology of a regular and extensible sorting network circuit for arbitrary size
JPH01288920A (en) Data sorting device
JPH04247548A (en) Parallel sorter
Koster et al. The application of a geometric arithmetic parallel systolic array processor to database machine design
JPH033249B2 (en)
Sakai et al. Development of Delta as a first step to a knowledge base machine
JPS62154140A (en) Merge processor
JPS62154139A (en) Data selecting device