JP3265993B2 - Sorting device - Google Patents

Sorting device

Info

Publication number
JP3265993B2
JP3265993B2 JP18963596A JP18963596A JP3265993B2 JP 3265993 B2 JP3265993 B2 JP 3265993B2 JP 18963596 A JP18963596 A JP 18963596A JP 18963596 A JP18963596 A JP 18963596A JP 3265993 B2 JP3265993 B2 JP 3265993B2
Authority
JP
Japan
Prior art keywords
sort
data
unit
comparison
units
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 - Fee Related
Application number
JP18963596A
Other languages
Japanese (ja)
Other versions
JPH1040075A (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 JP18963596A priority Critical patent/JP3265993B2/en
Publication of JPH1040075A publication Critical patent/JPH1040075A/en
Application granted granted Critical
Publication of JP3265993B2 publication Critical patent/JP3265993B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、大量のソートデ
ータを指定した順序に並べ替えるソート処理を行なうソ
ート処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sort processing device for performing a sort process for rearranging a large amount of sort data in a specified order.

【0002】[0002]

【従来の技術】ソート処理装置の従来例としては、特開
平5−274117に示されたソート処理装置があり、
これを図8に示す。図8において、1−1〜1−nは比
較処理部(SE)であり、入力された2つのソートデー
タの値の大小を比較する。なお、比較処理部1−1は第
一の比較部に相当し、比較処理部1−2は第二の比較部
に相当する。
2. Description of the Related Art As a conventional example of a sort processing apparatus, there is a sort processing apparatus disclosed in JP-A-5-274117.
This is shown in FIG. In FIG. 8, reference numerals 1-1 to 1-n denote comparison processing units (SE) which compare the magnitudes of the values of the two input sort data. Note that the comparison processing unit 1-1 corresponds to a first comparison unit, and the comparison processing unit 1-2 corresponds to a second comparison unit.

【0003】また、ソートデータとは、比較処理部1−
1〜1−nでの比較処理の対象となるデータのことを示
す。比較処理部1−1〜1−nには、複数のソートデー
タから構成されるデータ群が入力され、入力されたデー
タ群の中の2つのソートデータに対して、比較処理を施
し、データ群を構成するソートデータの順番を変更す
る。
[0003] Also, the sort data means the comparison processing unit 1-
1 to 1-n indicate data to be compared. A data group including a plurality of sort data is input to the comparison processing units 1-1 to 1-n, and a comparison process is performed on two sort data in the input data group. Change the order of the sort data that constitutes.

【0004】2−1〜2−nは記憶部であり、記憶部2
−1と比較処理部1−1、記憶部2−2と比較処理部1
−2とが接続されるように各記憶部2−1〜2−nと各
比較処理部1−1〜1−nとが接続される。
Reference numerals 2-1 to 2-n denote storage units.
-1 and comparison processing unit 1-1, storage unit 2-2 and comparison processing unit 1
-2 is connected to each of the storage units 2-1 to 2-n and each of the comparison processing units 1-1 to 1-n.

【0005】4−1〜4−nは内部記憶部であり、比較
処理部1−1が内部記憶部4−1を、比較処理部1−2
が内部記憶部4−2を有するように、各比較処理部1−
1〜1−nは各内部記憶部4−1〜4−nを有する。3
−1〜3−nはソート処理基本部であり、比較処理部1
−1〜1−n、記憶部2−1〜2−n、及び内部記憶部
4−1〜4−nから構成される。5はソート処理装置で
あり、複数のソート処理基本部3−1〜3−nから構成
される。
Reference numerals 4-1 to 4-n denote internal storage units. The comparison processing unit 1-1 stores the internal storage unit 4-1 in the comparison processing unit 1-2.
Has an internal storage unit 4-2 so that each comparison processing unit 1-
1 to 1-n have respective internal storage units 4-1 to 4-n. 3
-1 to 3-n are sorting processing basic units, and the comparison processing unit 1
-1 to 1-n, storage units 2-1 to 2-n, and internal storage units 4-1 to 4-n. Reference numeral 5 denotes a sort processing device, which includes a plurality of sort processing basic units 3-1 to 3-n.

【0006】次に、図8に示すソート処理装置5の動作
であるソート処理について図9を用いて説明する。な
お、ソート処理とは、入力されたデータ群を構成するソ
ートデータを、所要の順序に、ソート処理装置5が、並
べかえる処理動作のことを示す。複数のソートデータか
ら構成されるデータ群が、ソート処理装置5に入力され
る。データ群を構成する複数のソートデータは、順番
に、まずソート処理装置5を構成するソート処理基本部
3−1に入力される。
Next, a sorting process as an operation of the sorting device 5 shown in FIG. 8 will be described with reference to FIG. Note that the sort processing refers to a processing operation in which the sort processing device 5 rearranges the sort data constituting the input data group in a required order. A data group composed of a plurality of sort data is input to the sort processing device 5. The plurality of sort data forming the data group are first input to the sort processing basic unit 3-1 of the sort processing device 5 in order.

【0007】ソート処理装置3−1に入力されたデータ
群を構成する複数のソートデータは、ソート処理基本部
3−1から順番にソート処理基本部3−nへと送られる
間に、各ソート処理基本部3−1〜3−nが有する各比
較処理部1−1〜1−nにより、データ群内でその順序
が変更される。そして、入力されたデータ群を構成する
ソートデータは各ソート処理基本部3−1〜3−nを経
ることにより、所定の順序に並べかえられる。
While the plurality of sort data constituting the data group input to the sort processing device 3-1 are sequentially sent from the sort processing basic unit 3-1 to the sort processing basic unit 3-n, each sort data is sorted. The order in the data group is changed by each of the comparison processing units 1-1 to 1-n included in the processing basic units 3-1 to 3-n. Then, the sort data constituting the input data group is sorted in a predetermined order by passing through the respective sort processing basic units 3-1 to 3-n.

【0008】図9では、ソート処理装置5に入力された
データ群を構成するソートデータが、複数の比較処理部
1−1〜1−nを経ることにより、所定の順序である例
えば降順に並べかえられていく様子を示している。
In FIG. 9, the sort data constituting the data group input to the sort processing device 5 is rearranged in a predetermined order, for example, in descending order, through a plurality of comparison processing units 1-1 to 1-n. It shows how it is being done.

【0009】例えばここで、ソート処理装置5に入力さ
れるデータ群は、14、9、10、7、3、2、6、1
1、1、13、4、9、12、5、15、8の各ソート
データから構成されるものとする。そして、これらのソ
ートデータは、表記されている順番にソート処理装置5
内の比較処理部1−1に入力される。なお、降順とは、
数が大から小に進む順序のことである。
For example, the data group input to the sort processing device 5 is 14, 9, 10, 7, 3, 2, 6, 1
1, 1, 13, 4, 9, 12, 5, 15, and 8, respectively. These sort data are sorted in the indicated order in the sort processing device 5.
Is input to the comparison processing unit 1-1. The descending order is
The order in which numbers go from large to small.

【0010】ソート処理装置5はソート処理基本部3−
1〜3−nを有しており、そのソート処理装置5内のソ
ート処理基本部3−1が有する比較処理部1−1に、ま
ずデータ群(14、9、10、7、3、2、6、11、
1、13、4、9、12、5、15、8)が入力され
る。これが、図9の比較処理部1−1の部分である。
The sort processing device 5 includes a sort processing basic unit 3-
1 to 3-n, and the comparison processing unit 1-1 of the sort processing basic unit 3-1 in the sort processing apparatus 5 first stores the data groups (14, 9, 10, 7, 3, 2). , 6, 11,
1, 13, 4, 9, 12, 5, 15, 8) are input. This is the part of the comparison processing unit 1-1 in FIG.

【0011】比較処理部1−1にデータ群が入力される
と、比較処理部1−1は、データ群を構成するソートデ
ータを入力された順に2つずつまとめて2個組データを
作成する。そして、比較処理部1−1は、各2個組デー
タに対して、2個組データを構成する2つのソートデー
タの大小比較を行い、その比較処理の結果に基づき、各
ソートデータを比較処理部1−2へ出力する。
When a data group is input to the comparison processing unit 1-1, the comparison processing unit 1-1 combines the sorted data constituting the data group two by two in the order in which they were input, and creates double data. . Then, the comparison processing unit 1-1 compares the size of the two sort data constituting the two-piece data with respect to each two-piece data, and compares each sort data based on the result of the comparison processing. Output to the unit 1-2.

【0012】データ群を構成するソートデータが比較処
理部1−1に入力されてから出力されるまでの処理動作
について更に説明を加えると、比較処理部1−1に、ま
ずソートデータ「14」が入力される。そして、比較処
理部1−1に入力されたソートデータ「14」は、比較
処理部1−1に接続された記憶部2−1に記録される。
The processing operation from the input of the sort data constituting the data group to the output of the comparison processing unit 1-1 to the output thereof will be further described. Is entered. Then, the sort data “14” input to the comparison processing unit 1-1 is recorded in the storage unit 2-1 connected to the comparison processing unit 1-1.

【0013】次に、ソートデータ「9」が、比較処理部
1−1に、入力される。記憶部2−1に記録されたソー
トデータ「14」と、ソートデータ「14」の次に比較
処理部1−1へ入力されたソートデータ「9」とは、比
較処理部1−1で、その値の大小が比較される比較処理
が行われる。
Next, the sort data "9" is input to the comparison processing unit 1-1. The sort data “14” recorded in the storage unit 2-1 and the sort data “9” input to the comparison processing unit 1-1 after the sort data “14” are compared by the comparison processing unit 1-1. A comparison process for comparing the magnitudes of the values is performed.

【0014】比較処理部1−1でソートデータ「14」
とソートデータ「9」との比較処理が行われた結果、2
つのソートデータの内、より大きな値を持つソートデー
タ「14」がまず比較処理部1−1から比較処理部1−
2へ出力される。一方、比較処理部1−1には、続いて
ソートデータ「10」が入力される。比較処理部1−1
に新しく入力されたソートデータ「10」は、記憶部2
−1に記録される。
In the comparison processing unit 1-1, the sort data "14"
As a result of comparison processing between the data and the sort data “9”, 2
Among the two sort data, the sort data “14” having a larger value is first compared with the comparison processor 1-1 to the comparison processor 1
2 is output. On the other hand, the sort data “10” is subsequently input to the comparison processing unit 1-1. Comparison processing unit 1-1
The sort data “10” newly input to the storage unit 2
-1 is recorded.

【0015】また、ソートデータ「14」に続いてソー
トデータ「9」が比較処理部1−1から出力される。こ
の時、比較処理部1−1にはソートデータ「7」が入力
される。比較処理部1−1に入力されたソートデータ
「7」は、記憶部2−1に記録されているソートデータ
「10」と比較処理部1−1で比較される。そして、比
較処理部1−1は、比較処理部1−1での比較処理の結
果に基づき、ソートデータ「10」、「7」を、表記さ
れた順に、比較処理部1−2へ出力する。
After the sort data "14", the sort data "9" is output from the comparison processing unit 1-1. At this time, the sort data “7” is input to the comparison processing unit 1-1. The sort data “7” input to the comparison processing unit 1-1 is compared with the sort data “10” recorded in the storage unit 2-1 by the comparison processing unit 1-1. Then, the comparison processing unit 1-1 outputs the sort data “10” and “7” to the comparison processing unit 1-2 in the order described, based on the result of the comparison processing in the comparison processing unit 1-1. .

【0016】このような比較処理がデータ群を構成する
各2個組データ毎に繰り返されると、比較処理部1−1
からは、2個組データを構成する2つのソートデータの
間で降順にソートされた降順2個組データ(14、
9)、(10、7)、(3、2)、(11、6)、(1
3、1)、(9、4)、(12、5)、(15、8)
が、表記された順に、比較処理部1−2へ、出力され
る。これが、図9の比較処理部1−2の部分である。
When such comparison processing is repeated for each pair of data constituting the data group, the comparison processing section 1-1
, The descending two-piece data (14,...) Sorted in descending order between the two sorted data constituting the two-piece data
9), (10, 7), (3, 2), (11, 6), (1
3, 1), (9, 4), (12, 5), (15, 8)
Are output to the comparison processing unit 1-2 in the order described. This is the part of the comparison processing unit 1-2 in FIG.

【0017】比較処理部1−1に接続され、比較処理部
1−1から出力された降順2個組データが入力される比
較処理部1−2は、入力される降順2個組データ2組に
対して、更に比較処理を行ない、4つのソートデータを
降順に並べて一組にまとめた降順4個組データを作成し
て、比較処理部1−3へ出力する。
The comparison processing unit 1-2, which is connected to the comparison processing unit 1-1 and receives the descending double data output from the comparison processing unit 1-1, receives the two descending double data sets. Then, a comparison process is further performed to create four sets of descending data in which the four sort data items are arranged in descending order and are combined into one set, and output to the comparison processing unit 1-3.

【0018】以下に、比較処理部1−2が降順2個組デ
ータ2組を降順4個組データ1組にする動作について説
明する。まず、比較処理部1−2は、入力された第一の
降順2個組データ(14、9)を、順番に、比較処理部
1−2に接続された記憶部2−2に記録する。続いて、
比較処理部1−2には、第二の降順2個組データ(1
0、7)が、順番に、入力される。
The operation of the comparison processing unit 1-2 for converting two sets of data in descending order into one set of four data in descending order will be described below. First, the comparison processing unit 1-2 records the input first descending double data (14, 9) in the storage unit 2-2 connected to the comparison processing unit 1-2 in order. continue,
In the comparison processing unit 1-2, the second set of descending double data (1
0, 7) are input in order.

【0019】そこで、比較処理部1−2では、記憶部2
−2に記録された第一の降順2個組データの内で値の大
きい先頭のデータであるソートデータ「14」と、第二
の降順2個組データ(10、7)の先頭のソートデータ
「10」とが比較される。比較処理部1−2での第一の
降順2個組データの先頭のソートデータ「14」と、第
二の降順2個組データの先頭のソートデータ「10」と
の比較処理の結果、比較処理部1−2は、ソートデータ
「14」を出力する。
Therefore, in the comparison processing unit 1-2, the storage unit 2
-2, the sort data "14" which is the first data having a large value in the first descending double data recorded in the second descending data, and the first sort data of the second descending data (10, 7). "10" is compared. As a result of comparison processing between the first sort data “14” of the first descending double data set and the first sort data “10” of the second descending double data set in the comparison processing unit 1-2, a comparison is made. The processing unit 1-2 outputs the sort data “14”.

【0020】続いて、比較処理部1−2では、第一の降
順2個組データの残りのデータであるソートデータ
「9」と、第二の降順2個組データの先頭のデータであ
るソートデータ「10」との比較処理が行われる。ソー
トデータ「9」とソートデータ「10」との比較処理の
結果、比較処理部1−2はソートデータ「10」を比較
処理部1−3へ出力する。
Subsequently, in the comparison processing unit 1-2, the sort data "9" which is the remaining data of the first descending double data and the sort data which is the first data of the second descending double data are sorted. A comparison process with the data “10” is performed. As a result of the comparison processing between the sort data “9” and the sort data “10”, the comparison processing unit 1-2 outputs the sort data “10” to the comparison processing unit 1-3.

【0021】ソートデータ「10」が比較処理部1−2
から出力される時、第三の降順2個組データの残りのデ
ータであるソートデータ「2」が比較処理部1−2に入
力される。そして、比較処理部1−2に入力されたソー
トデータ「2」は、比較処理部1−2に接続された記憶
部2−2に記録される。
The sort data "10" is stored in the comparison processing unit 1-2.
, The sort data “2” that is the remaining data of the third set of descending data is input to the comparison processing unit 1-2. Then, the sort data “2” input to the comparison processing unit 1-2 is recorded in the storage unit 2-2 connected to the comparison processing unit 1-2.

【0022】さらに続いて、比較処理部1−2では、第
一の降順2個組データの残りのデータであるソートデー
タ「9」と、第二の降順2個組データの残りのデータで
あるソートデータ「7」との比較処理が行われる。
Subsequently, in the comparison processing unit 1-2, the sort data "9", which is the remaining data of the first descending double data, and the remaining data of the second descending double data. A comparison process with the sort data “7” is performed.

【0023】ソートデータ「9」とソートデータ「7」
との比較処理の結果、比較処理部1−2は、ソートデー
タ「9」、「7」を、表記された順番に出力する。比較
処理部1−2からソートデータ「7」が出力される時、
比較処理部1−2には第四の降順2個組データの先頭の
ソートデータ「11」が入力される。比較処理部1−2
に入力されたソートデータ「11」は、比較処理部1−
2に接続された記憶部2−2に記録される。
Sort data "9" and sort data "7"
As a result of the comparison processing, the comparison processing unit 1-2 outputs the sort data “9” and “7” in the order described. When the sort data “7” is output from the comparison processing unit 1-2,
The first sort data “11” of the fourth data set in descending order is input to the comparison processing unit 1-2. Comparison processing unit 1-2
Is input to the comparison processing unit 1-
2 is stored in the storage unit 2-2 connected to the storage unit 2.

【0024】このように、ソート処理装置5に入力され
たデータ群は、比較処理部1−2から出力される時点
で、4つの降順4個組データ(14、10、9、7)、
(11、6、3、2)、(13、9、4、1)、(1
5、12、8、5)のように並べかえられ、表記された
順に、比較処理部1−3へ出力される。これが、図9の
比較処理部1−3の部分である。
As described above, when the data group input to the sort processing device 5 is output from the comparison processing unit 1-2, the four descending quadruple data (14, 10, 9, 7),
(11, 6, 3, 2), (13, 9, 4, 1), (1
5, 12, 8, 5), and output to the comparison processing unit 1-3 in the order described. This is the part of the comparison processing unit 1-3 in FIG.

【0025】各比較処理部1−3〜1−nでは、これま
で説明してきた比較処理部1−1〜1−2と同様の比較
処理が行われ、比較処理部1−nのnの値が1大きくな
るに従い、比較処理部1−nから出力される降順n個組
データを構成するソートデータの数は、比較処理部1−
(n−1)から出力される降順(n−1)個組を構成す
るソートデータの数の2倍になる。つまり、比較処理部
1−nは、降順2n個組データを出力する。このため、
ソート処理装置5に入力されるデータ群を構成するソー
トデータの数が2n以下の時には、所定の降順ソート処
理が実現される。
Each of the comparison processing units 1-3 to 1-n performs the same comparison processing as that of the comparison processing units 1-1 to 1-2 described above. Becomes larger by 1, the number of sort data items constituting the set of descending n data output from the comparison processing unit 1-n becomes
The number of sorted data output from (n-1) in descending order (n-1) sets is twice the number of sorted data. That is, the comparison processing unit 1-n outputs 2 n sets of data in descending order. For this reason,
When the number of sort data constituting the data group input to the sort processing device 5 is 2 n or less, a predetermined descending sort process is realized.

【0026】しかし、ソート処理装置5に入力されるデ
ータ群を構成するソートデータの数が、2nよりも多い
時には、ソート処理装置5が有する比較処理部1−1〜
1−nの数を増加させる必要がある。なお、比較処理部
1−1〜1−nの数を増加させる時、新たに設けられた
比較処理部には、新たな記憶部が接続される。
However, when the number of sort data constituting the data group input to the sort processing device 5 is larger than 2 n , the comparison processing portions 1-1 to 1-1 of the sort processing device 5 are provided.
It is necessary to increase the number of 1-n. When increasing the number of comparison processing units 1-1 to 1-n, a new storage unit is connected to the newly provided comparison processing unit.

【0027】比較処理部1−nで、nの値が大きくなる
に従い、比較処理部1−nから出力される降順2n個組
データを構成するソートデータの数が増加する。各比較
処理部に入力される全てのソートデータは接続されてい
る各記憶部に記録されるため、比較処理部1−nに接続
されている記憶部2−nの記憶容量も増加させる必要が
ある。第n番目の比較処理部1−nは、2n個のソート
データから構成される降順2n個組データを出力する。
この時、各ソートデータの容量をLとする。
In the comparison processing unit 1-n, as the value of n increases, the number of sort data constituting the set of descending 2 n data output from the comparison processing unit 1-n increases. Since all sort data input to each comparison processing unit is recorded in each storage unit connected thereto, it is necessary to increase the storage capacity of the storage unit 2-n connected to the comparison processing unit 1-n. is there. The n-th comparison processing unit 1-n outputs a set of 2 n pieces of data in descending order composed of 2 n pieces of sort data.
At this time, the capacity of each sort data is L.

【0028】これらより、第n番目の比較処理部1−n
に接続された記憶部2−nが有するべき記憶容量は、2
n×L以上となる。比較処理部1−nで、そのnの値が
1大きくなるに従い、比較処理部1−nから出力される
降順2n個組データを構成するソートデータの数が2倍
になるため、記憶部2−nは、そのnの値が1大きくな
るに従い、その記憶容量を2倍以上にする必要がある。
From these, the n-th comparison processing unit 1-n
The storage capacity that the storage unit 2-n connected to
n × L or more. In the comparison processing unit 1-n, as the value of n increases by 1, the number of sort data constituting the set of 2 n pieces of data in descending order output from the comparison processing unit 1-n doubles. For 2-n, the storage capacity must be doubled or more as the value of n increases by one.

【0029】図8では、記憶部2−1〜2−nで、その
nの値が1大きくなるに従い、記憶部2−1〜2−nが
有する記憶容量が2倍ずつ大きくなっている様子を示し
ている。図8に示すように、ソート処理装置5は内部記
憶部4−1〜4−nを有しているが、この内部記憶部4
−1〜4−nには、記憶部2−1〜2−nに記録された
ソートデータが記録される。そして、比較処理部1−1
〜1−nは、内部記憶部4−1〜4−nに記録された所
定の範囲のソートデータを対象にして、比較処理を行な
う。なお、内部記憶部4−1〜4−nは、記憶部2−1
〜2−nに比べ、ソートデータを記憶できる記憶容量が
小さい。
In FIG. 8, in the storage units 2-1 to 2-n, as the value of n increases by 1, the storage capacity of the storage units 2-1 to 2-n doubles by two. Is shown. As shown in FIG. 8, the sort processing device 5 has internal storage units 4-1 to 4-n.
Sort data recorded in the storage units 2-1 to 2-n are recorded in -1 to 4-n. Then, the comparison processing unit 1-1
1 to 1-n perform a comparison process on sorted data in a predetermined range recorded in the internal storage units 4-1 to 4-n. Note that the internal storage units 4-1 to 4-n include a storage unit 2-1.
The storage capacity for storing the sort data is smaller than that of 〜2-n.

【0030】しかし、内部記憶部4−1〜4−nは、記
憶部2−1〜2−nに比べ、書き込みや読み出しの処理
速度が速い。なお、ここまでの説明では、ソート処理の
対象となるソートデータが、簡単な整数「14」、
「9」等である場合を用いたが、実際のソート処理の対
象となるソートデータは、例えば人事データのように、
姓名、住所、年齢、その他の内容を示す容量のかなり大
きなものである場合が多い。
However, the internal storage units 4-1 to 4-n have a higher writing and reading processing speed than the storage units 2-1 to 2-n. In the description so far, the sort data to be sorted is a simple integer “14”,
Although the case of “9” was used, the sort data to be actually subjected to the sort processing is, for example, personnel data,
In many cases, the capacity is large enough to indicate first and last names, addresses, ages, and other contents.

【0031】そして、実際にソート処理の対象となるソ
ートデータが複数集まり構成されるデータ群が必要とす
る記憶容量は、数百バイトから数十Mバイトとなる場合
がある。ソート処理の対象となるソートデータの記憶容
量が大きい場合、比較処理部1−1〜1−nが行なう比
較処理は、記憶部2−1〜2−nに記録されたソートデ
ータを複数の範囲に区切り、各範囲を順に内部記憶部4
−1〜4−nに読み込み、この内部記憶部4−1〜4−
nに記録されたソートデータの所定の範囲に対して比較
処理を行なう。そして、比較処理をした結果、違いが見
られなかった場合には、区切られた次ぎなる所定の範囲
を、記憶部2−1〜2−nから内部記憶部4−1〜4−
nへ読み出し、次ぎなる比較処理が行われる。
The storage capacity required by a data group constituted by a plurality of sort data to be actually subjected to sort processing may be several hundred bytes to several tens Mbytes. When the storage capacity of the sort data to be sorted is large, the comparison process performed by the comparison processing units 1-1 to 1-n is to sort the sort data recorded in the storage units 2-1 to 2-n into a plurality of ranges. And each range is sequentially stored in the internal storage unit 4.
-1 to 4-n, and the internal storage units 4-1 to 4-n
The comparison process is performed on a predetermined range of the sort data recorded in n. If no difference is found as a result of the comparison processing, the next predetermined range is divided from the storage units 2-1 to 2-n to the internal storage units 4-1 to 4-n.
n, and the next comparison process is performed.

【0032】[0032]

【発明が解決しようとする課題】従来のソート処理装置
5の比較処理部1−1〜1−nでは、入力されたソート
データの比較処理、入力されたソートデータの一時保
存、及び比較処理に基づく比較結果の出力等の単純な処
理が行われる。そこで、これら単純な処理が行われる比
較処理部1−1〜1−nを1つの集積回路に集積させ、
ソート処理装置5の小型化を目指したいと考えられてき
た。
The comparison processing units 1-1 to 1-n of the conventional sorting apparatus 5 perform comparison processing of input sort data, temporary storage of input sort data, and comparison processing. Simple processing such as outputting a comparison result based on the result is performed. Therefore, the comparison processing units 1-1 to 1-n where these simple processes are performed are integrated in one integrated circuit,
It has been considered that the sort processing apparatus 5 should be downsized.

【0033】しかし、従来のソート処理装置5では、比
較処理部1−1と記憶部2−1や、比較処理部1−2と
記憶部2−2のように複数の比較処理部1−1〜1−n
それぞれに対して、記憶部2−1〜2−nそれぞれがひ
とつずつ接続されていた。これら記憶部2−1〜2−n
は、企業の人事データや銀行の口座データ等の比較的大
容量のソートデータを記録することが多いため、記憶部
2−1〜2−nの記憶容量も大容量となり、比較処理部
1−1〜1−nと一緒に、同一の集積回路に集積させる
ことは困難であった。
However, in the conventional sort processing device 5, a plurality of comparison processing units 1-1 such as the comparison processing unit 1-1 and the storage unit 2-1 and the comparison processing unit 1-2 and the storage unit 2-2. ~ 1-n
Each of the storage units 2-1 to 2-n is connected to each of them. These storage units 2-1 to 2-n
Often records a relatively large amount of sort data such as corporate personnel data and bank account data, so that the storage capacity of the storage units 2-1 to 2-n also becomes large, and the comparison processing unit 1-1-2. It has been difficult to integrate them together with 1-n on the same integrated circuit.

【0034】そこで、比較処理部1−1〜1−nのみを
1つの集積回路に集積させ、記憶部2−1〜2−nは別
に設けることが考えられた。この場合、集積回路に集積
させる比較処理部1−1〜1−nの数だけ、各比較処理
部1−1〜1−nと各記憶部2−1〜2−nとの間を接
続するための外部信号線が必要となり、この信号線に接
続される集積回路のピンを各比較処理部の数に対応させ
て設ける必要がある。
Therefore, it has been considered that only the comparison processing units 1-1 to 1-n are integrated in one integrated circuit, and the storage units 2-1 to 2-n are provided separately. In this case, the number of comparison processing units 1-1 to 1-n connected to each of the comparison processing units 1-1 to 1-n and each of the storage units 2-1 to 2-n is equal to that of the comparison processing units 1-1 to 1-n. External signal lines are required, and pins of the integrated circuit connected to the signal lines need to be provided corresponding to the number of the respective comparison processing units.

【0035】しかし、ひとつの集積回路において、信号
線のために用いられるピンの数は限定されており、比較
処理部1−1〜1−nを多数有するものをひとつの集積
回路に集積させることは困難であった。同時に、ソート
処理装置5の小型化も困難であった。
However, the number of pins used for a signal line in one integrated circuit is limited, and a single integrated circuit having a large number of comparison processing units 1-1 to 1-n may be integrated into one integrated circuit. Was difficult. At the same time, it was difficult to reduce the size of the sort processing device 5.

【0036】また、従来のソート処理装置5の各比較処
理部1−1〜1−nに接続される各記憶部2−1〜2−
nが有する記憶容量は、記憶部2−nのnの値が大きく
なるに従い、大きくする必要がある。しかし、記憶部2
−1〜2−nが有する記憶容量は、所定の単位の記憶容
量の整数倍となることが多く、自由に記憶容量を設定す
ることが困難である。このため、記憶部2−nのnの値
が小さい程、無駄に記憶容量を持つことが多く、記憶部
2−1〜2−nの使用効率の低下の原因となっていた。
Each of the storage units 2-1 to 2-n connected to each of the comparison processing units 1-1 to 1-n of the conventional sort processing device 5
The storage capacity of n needs to be increased as the value of n of the storage unit 2-n increases. However, the storage unit 2
The storage capacity of -1 to 2-n often becomes an integral multiple of the storage capacity of a predetermined unit, and it is difficult to freely set the storage capacity. For this reason, as the value of n of the storage unit 2-n is smaller, the storage unit often has useless storage capacity, which causes a decrease in the use efficiency of the storage units 2-1 to 2-n.

【0037】また、従来のソート処理装置5は、複数の
記憶部2−1〜2−n毎にその記憶容量が異なるため、
ソート処理とは異なる他の処理を行なう装置の記憶部と
して、複数の処理装置の記憶部として兼用させようとし
ても、記憶部2−nのnの値が大きい、記憶容量の大き
な記憶部、例えば記憶部2−nのみしか利用し難かっ
た。このため、ソート処理装置以外では利用できない記
憶部を、数多く備えるため、装置の複合化によるソート
処理装置の小型化を実現させ難かった。この発明は、こ
れらの問題点を鑑みなされたものであり、多数の比較処
理部1−1〜1−nを同一の集積回路に容易に集積させ
ることができるソート処理装置5を得ることを目的とす
る。
In the conventional sorting apparatus 5, since the storage capacity differs for each of the plurality of storage units 2-1 to 2-n,
Even if an attempt is made to serve also as a storage unit of a plurality of processing devices as a storage unit of a device that performs another process different from the sort process, a storage unit having a large value of n in the storage unit 2-n and a large storage capacity, for example, It was difficult to use only the storage unit 2-n. For this reason, since many storage units that cannot be used except for the sort processing device are provided, it is difficult to realize the downsizing of the sort processing device by combining the devices. The present invention has been made in view of these problems, and has as its object to obtain a sort processing device 5 that can easily integrate a large number of comparison processing units 1-1 to 1-n on the same integrated circuit. And

【0038】また、この発明は、多数の比較処理部1−
1〜1−nを同一の集積回路に集積させることにより、
ソート処理装置5の小型化を実現することを目的とす
る。さらに、この発明は、その記憶部に余分な記憶容量
を持たせること無く、記憶部を効率的に使用できるソー
ト処理装置5を得ることを目的とする。
Further, the present invention is applicable to a plurality of comparison processing units 1-
By integrating 1-1-n on the same integrated circuit,
It is an object to reduce the size of the sort processing device 5. A further object of the present invention is to provide a sort processing device 5 that can efficiently use the storage unit without giving the storage unit an extra storage capacity.

【0039】[0039]

【課題を解決するための手段】この発明にかかるソート
処理装置は、所定の数のソートされるソートデータが入
力され、第一のアクセス信号、及び入力された所定の数
のソートデータの中の第一の所定数のソートデータを所
定の順番で出力する第一の比較部と、第一の比較部に接
続され、第一の比較部から出力された所定の順番のソー
トデータが入力され、第二のアクセス信号、及び入力さ
れたソートデータの中の第一の所定数より大きい第二の
所定数のソートデータを所定の順番で出力する第二の比
較部と、第一及び第二の比較部に共通接続され、第一及
び第二の比較部から出力される第一及び第二のアクセス
信号が入力され、入力された第一及び第二のアクセス信
号に基づく処理信号を出力するインタフェース部と、イ
ンタフェース部に接続され、インタフェース部から出力
された処理信号に基づく記録または読み出し動作が行わ
れる記憶部と、を備えるものである。
According to the present invention, there is provided a sort processing apparatus in which a predetermined number of sort data to be sorted is input, a first access signal, and a first access signal and a predetermined number of input sort data. A first comparison unit that outputs a first predetermined number of sort data in a predetermined order, and is connected to the first comparison unit and receives a predetermined order of sort data output from the first comparison unit, A second access signal, a second comparison unit that outputs a second predetermined number of sort data larger than the first predetermined number in the input sort data in a predetermined order, and a first and a second comparison unit. An interface commonly connected to the comparing unit, receiving the first and second access signals output from the first and second comparing units, and outputting a processed signal based on the input first and second access signals Section and interface section Is continued, the recording or reading operation based on the output processed signal from the interface unit is one that comprises a storage unit to be performed.

【0040】また、この発明にかかるソート処理装置
は、第二の比較部は、入力されたソートデータの中の第
一の所定数の2倍の第二の所定数のソートデータを所定
の順番で出力するものである。
Also, in the sorting apparatus according to the present invention, the second comparing section may sort the second predetermined number of sort data twice as large as the first predetermined number in the input sort data in a predetermined order. Is output.

【0041】さらに、この発明にかかるソート処理装置
のインタフェース部は、第一の比較部から出力された第
一のアクセス信号に基づき、第一の比較部に入力された
ソートデータを記憶部に記録、または記憶部に記録され
ているソートデータを第一の比較部に読み出し、第二の
比較部から出力された第二のアクセス信号に基づき、第
二の比較部に入力されたソートデータを記録部に記録、
または記憶部に記録されているソートデータを第二の比
較部に読み出すものである。
Further, the interface unit of the sorting apparatus according to the present invention records the sort data input to the first comparing unit in the storage unit based on the first access signal output from the first comparing unit. Or, the sort data recorded in the storage unit is read out to the first comparison unit, and based on the second access signal output from the second comparison unit, the sort data input to the second comparison unit is recorded. Recorded in the department,
Alternatively, the sort data recorded in the storage unit is read out to the second comparison unit.

【0042】また、この発明にかかるソート処理装置
は、第一及び第二の比較部に入力されたソートデータ
を、第一の比較部または第二の比較部に対応させて、記
憶部の異なるアドレスに記録させるものである。
Further, the sort processing device according to the present invention is arranged such that the sort data input to the first and second comparison units are stored in different storage units in correspondence with the first comparison unit or the second comparison unit. This is recorded in the address.

【0043】さらに、この発明にかかるソート処理装置
のインタフェース部は、第一及び第二の比較部から出力
された第一及び第二のアクセス信号に基づき、第一及び
第二の比較部に入力されたソートデータが記録され、記
憶部より記録及び読み込み処理の速度が速い第二の記憶
部を有するものである。
Further, the interface unit of the sorting apparatus according to the present invention inputs the signals to the first and second comparison units based on the first and second access signals output from the first and second comparison units. A second storage unit in which the sorted data is recorded and the speed of the recording and reading processing is higher than that of the storage unit.

【0044】[0044]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

発明の実施の形態1.本発明によるソート処理装置の一
実施形態を図1に示す。図1において、2は記憶部であ
る。6はインタフェース部であるメモリアクセスインタ
フェース部であり、記憶部2に接続される。
Embodiment 1 of the Invention FIG. 1 shows an embodiment of the sorting apparatus according to the present invention. In FIG. 1, reference numeral 2 denotes a storage unit. Reference numeral 6 denotes a memory access interface unit serving as an interface unit, which is connected to the storage unit 2.

【0045】また、メモリアクセスインタフェース部6
は、各比較処理部1−1〜1−nに共通接続され、各比
較処理部1−1〜1−nから出力されるアクセス信号に
従って、記憶部2へソートデータの書込み又は読み出し
を行う処理信号を出力する。
The memory access interface unit 6
Is commonly connected to each of the comparison processing units 1-1 to 1-n, and performs a process of writing or reading sort data to or from the storage unit 2 according to an access signal output from each of the comparison processing units 1-1 to 1-n. Output a signal.

【0046】なお、従来のソート処理装置5では、各比
較処理部1−1〜1−n個々が、インタフェース装置
(図示せず)を有し、各比較処理部1−1〜1−nは、
インタフェース装置(図示せず)を介して、各比較処理
部1−1〜1−nに接続されている記憶部2−1〜2−
nに、ソートデータの書き込みや読み出しといった処理
動作であるアクセスを行なう。
In the conventional sort processing device 5, each of the comparison processing units 1-1 to 1-n has an interface device (not shown), and each of the comparison processing units 1-1 to 1-n ,
Storage units 2-1 to 2-n connected to each of the comparison processing units 1-1 to 1-n via an interface device (not shown).
An access, which is a processing operation such as writing or reading of sort data, is performed on n.

【0047】また、各比較処理部1−1〜1−nから出
力されるアクセス信号は、アクセス信号を出力した比較
処理部1−1〜1−nを識別する番号、書き込みや読み
出しといった各比較処理部1−1〜1−nの処理目的で
あるアクセス内容、処理するソートデータの所在を示す
アクセス元、処理するソートデータの記録先を示すアク
セス先、及びソートデータのデータ長を示すアクセスの
サイズ等のデータから構成される。
The access signal output from each of the comparison processing units 1-1 to 1-n includes a number for identifying the comparison processing unit 1-1 to 1-n which has output the access signal, and each comparison such as writing and reading. The access contents which are the processing objects of the processing units 1-1 to 1-n, the access source indicating the location of the sort data to be processed, the access destination indicating the recording destination of the sort data to be processed, and the access indicating the data length of the sort data It consists of data such as size.

【0048】この実施形態1の比較処理部1−1〜1−
nそれぞれは、比較処理部1−1が内部記憶部4−1
を、比較処理部1−2が内部記憶部4−2を有するよう
に、内部記憶部4−1〜4−nそれぞれを有する。ま
た、この実施形態1のソート処理基本部3−1〜3−n
は、比較処理部1−1〜1−n及び内部記憶部4−1〜
4−nを有する。
The comparison processing units 1-1 to 1-1 of the first embodiment
n are stored in the internal storage unit 4-1 by the comparison processing unit 1-1.
And internal storage units 4-1 to 4-n such that the comparison processing unit 1-2 has the internal storage unit 4-2. Also, the sort processing basic units 3-1 to 3-n according to the first embodiment.
Are the comparison processing units 1-1 to 1-n and the internal storage units 4-1 to
4-n.

【0049】さらに、この実施形態1のソート処理装置
5は、記憶部2、メモリアクセスインタフェース部6、
及びソート処理基本部3−1〜3−nから構成される。
記憶部2は、比較処理部1−1〜1−nに入力されたソ
ートデータが、入力された比較処理部1−1〜1−nか
ら出力されるメモリアクセス信号に基づき、異なるアド
レスに記録される。
Further, the sort processing device 5 of the first embodiment includes a storage unit 2, a memory access interface unit 6,
And the sorting basic units 3-1 to 3-n.
The storage unit 2 records the sort data input to the comparison processing units 1-1 to 1-n at different addresses based on the input memory access signals output from the comparison processing units 1-1 to 1-n. Is done.

【0050】この実施形態1の記憶部2は、従来例の記
憶部2−1〜2−nそれぞれが合わさったものに相当
し、このことを示したものが図2である。図2に示すよ
うに、記憶部2の内部は、比較処理部1−1〜1−nが
必要とする記憶容量に応じて、アドレスで7−1〜7−
nの領域に分割される。
The storage unit 2 of the first embodiment corresponds to a combination of the storage units 2-1 to 2-n of the conventional example, and FIG. 2 shows this. As shown in FIG. 2, the inside of the storage unit 2 stores addresses 7-1 to 7- according to the storage capacity required by the comparison processing units 1-1 to 1-n.
It is divided into n regions.

【0051】各比較処理部1−1〜1−nは、ソートデ
ータが入力されると、アクセス信号を出力し、入力され
たソートデータを、メモリアクセスインタフェース部6
を介して、各比較処理部1−1〜1−nに対応して割り
付けられた領域7−1〜7−nに記録する。
When the sort data is input, each of the comparison processors 1-1 to 1-n outputs an access signal, and outputs the input sort data to the memory access interface unit 6.
Are recorded in areas 7-1 to 7-n allocated to the respective comparison processing units 1-1 to 1-n.

【0052】つまり、記憶部2でアドレスによって分割
された記憶領域7−1〜7−nは、記憶領域7−1と記
憶部2−1、及び記憶領域7−2と記憶部2−2のよう
に従来例の記憶部2−1〜2−nに対応するものであ
る。
That is, the storage areas 7-1 to 7-n divided by the addresses in the storage section 2 correspond to the storage areas 7-1 and 2-1 and the storage areas 7-2 and 2-2. Thus, it corresponds to the storage units 2-1 to 2-n of the conventional example.

【0053】記憶部2が有する記憶容量は、従来例の記
憶部2−1〜2−n各々が有すべき記憶容量を合計した
もの以上が必要である。なお、図1において、図8に示
した従来例と同一又は相当部分には、同一符号を付して
その説明を省略し、図8と相違する部分について説明し
た。
The storage capacity of the storage unit 2 must be equal to or greater than the sum of the storage capacities of the storage units 2-1 to 2-n of the conventional example. In FIG. 1, the same or corresponding parts as those of the conventional example shown in FIG. 8 are denoted by the same reference numerals, and the description thereof will be omitted, and parts different from FIG. 8 will be described.

【0054】次に、図1に示した実施形態1の動作につ
いて、図3及び図4を用いて説明する。本発明のソート
処理装置5は、メモリアクセスインタフェース部6を設
けることにより、各比較処理部1−1〜1−nが出力す
るアクセス信号に基づく記憶部2へのアクセスを制御し
ている。
Next, the operation of the first embodiment shown in FIG. 1 will be described with reference to FIGS. By providing the memory access interface unit 6, the sort processing device 5 of the present invention controls access to the storage unit 2 based on the access signals output from each of the comparison processing units 1-1 to 1-n.

【0055】なお、比較処理部1−1から出力されたア
クセス信号は第一のアクセス信号に相当し、比較処理部
1−2から出力されたアクセス信号は第二のアクセス信
号に相当する。
The access signal output from the comparison processing unit 1-1 corresponds to a first access signal, and the access signal output from the comparison processing unit 1-2 corresponds to a second access signal.

【0056】まず、図4における時間fにおいて、比較
処理部1−3からメモリアクセスインタフェース部6へ
出力されるアクセス信号には、[比較処理部1−3、書
き込み、内部記憶部4−3のアドレスA、記憶部2のア
ドレスA’、データ長]や[比較処理部1−3、読み出
し、記憶部2のアドレスB、内部記憶部4−3のアドレ
スB’、データ長]がある。
First, at time f in FIG. 4, the access signal output from the comparison processing unit 1-3 to the memory access interface unit 6 includes “the comparison processing unit 1-3, the write and the internal storage unit 4-3. Address A, address A 'of storage unit 2, data length] and [Comparison unit 1-3, readout, address B of storage unit 2, address B' of internal storage unit 4-3, data length].

【0057】メモリアクセスインタフェース部6には、
各比較処理部1−1〜1−nから出力されたアクセス信
号が入力される。また、アクセス信号が入力されたメモ
リアクセスインタフェース部6は、入力されたアクセス
信号に基づき、各比較処理部1−1〜1−nや記憶部2
に対して、ソートデータの読み出しや書き込みといった
処理を行なう。
The memory access interface unit 6 includes:
The access signal output from each of the comparison processing units 1-1 to 1-n is input. Further, the memory access interface unit 6 to which the access signal is input, based on the input access signal, compares each of the comparison processing units 1-1 to 1-n and the storage unit 2.
, Processing such as reading and writing of sort data.

【0058】図3は、比較処理部1−1〜1−3が記憶
部2に対して行なう処理動作、及びその処理動作のタイ
ミングである時間を記したものである。比較処理部1−
1〜1−3の処理動作とは、比較処理部1−1〜1−3
がメモリアクセスインタフェース部6を介して記憶部2
に対して行なうソートデータの書き込みや読み出しの動
作を示す。なお、図中、「W」は記憶装置2への書込み
を示し、「R」は記憶装置からの読出しを示す。
FIG. 3 shows processing operations performed on the storage unit 2 by the comparison processing units 1-1 to 1-3, and the time which is the timing of the processing operation. Comparison processing unit 1-
The processing operations of 1-1 to 1-3 refer to comparison processing units 1-1 to 1-3
Is stored in the storage unit 2 via the memory access interface unit 6.
The operation of writing and reading sort data to and from the memory will be described. In the figure, “W” indicates writing to the storage device 2 and “R” indicates reading from the storage device.

【0059】図4は、図3に示した比較処理部1−1〜
1−3の処理動作の内から、特に比較処理部1−2の処
理動作を示したものである。比較処理部1−2の処理動
作を示す図4には、比較処理部1−2に入力されるソー
トデータ、記憶部2に記録されているソートデータ、及
び比較処理部1−2がメモリアクセスインタフェース部
6を介して記憶部2に行なう処理動作が示されている。
FIG. 4 shows the comparison processing units 1-1 to 1-1 shown in FIG.
FIG. 5 shows the processing operation of the comparison processing unit 1-2 from among the processing operations of 1-3. FIG. 4 showing the processing operation of the comparison processing unit 1-2 includes sort data input to the comparison processing unit 1-2, sort data recorded in the storage unit 2, and memory access by the comparison processing unit 1-2. The processing operation performed on the storage unit 2 via the interface unit 6 is shown.

【0060】また図4には、比較処理部1−2で比較処
理される2つのソートデータ、及び比較処理部1−2か
ら出力されるソートデータが示されている。さらに、こ
れらのことは、時間c〜u毎に示されている。
FIG. 4 shows two sorts of data to be compared by the comparison processing unit 1-2 and sort data output from the comparison processing unit 1-2. Further, these facts are shown every time c to u.

【0061】比較処理部1−2は、比較処理部1−1か
ら出力された降順2個組データが入力され、入力された
降順2個組データ2組より降順4個組データ1組が作成
される。この比較処理部1−2で作成された降順4個組
データは、比較処理部1−3へ出力される。
The comparison processing unit 1-2 receives the descending two-piece data output from the comparison processing part 1-1, and creates one descending four-piece data from the input two descending two-piece data. Is done. The descending quadruple data generated by the comparison processing unit 1-2 is output to the comparison processing unit 1-3.

【0062】図4の各時間において、2つの降順2個組
データから1つの降順4個組データが作成されるまで
の、比較処理部1−2の動作処理について説明する。時
間cにおいて、比較処理部1−2には、第一の降順2個
組データの先頭のデータであるソートデータ「14」が
入力される。そして、比較処理部1−2に入力されたソ
ートデータ「14」は、メモリアクセスインタフェース
部6を介して記憶部2に記録される。
At each time in FIG. 4, the operation processing of the comparison processing unit 1-2 until two sets of descending data are created from two sets of data in descending order will be described. At time c, the comparison processing unit 1-2 receives the sort data “14”, which is the first data of the first data set in descending order. Then, the sort data “14” input to the comparison processing unit 1-2 is recorded in the storage unit 2 via the memory access interface unit 6.

【0063】時間dにおいて、比較処理部1−2には、
第一の降順2個組データの2番目のデータであるソート
データ「9」が入力される。そして、この入力されたソ
ートデータ「9」も、メモリアクセスインタフェース部
6を介して記憶部2に記録される。
At time d, the comparison processing unit 1-2 includes:
Sort data “9”, which is the second data of the first descending data set, is input. Then, the input sort data “9” is also recorded in the storage unit 2 via the memory access interface unit 6.

【0064】時間eにおいて、比較処理部1−2には、
第二の降順2個組データの先頭のデータであるソートデ
ータ「10」が入力される。そして、この入力されたソ
ートデータ「10」は、メモリアクセスインタフェース
部6を介して記憶部2に記録される。
At time e, the comparison processing unit 1-2 includes:
Sort data “10”, which is the first data of the second set of descending data, is input. Then, the input sort data “10” is recorded in the storage unit 2 via the memory access interface unit 6.

【0065】また、比較処理部1−2に第二の降順2個
組データの先頭のデータであるソートデータ「10」が
入力されると、比較処理部1−2は、記憶部2からメモ
リアクセスインタフェース部6を介して第一の降順2個
組データの先頭のデータであるソートデータ「14」を
読み出す。
When the sort data “10”, which is the first data of the second set of data in descending order, is input to the comparison processing unit 1-2, the comparison processing unit 1-2 The sort data “14”, which is the first data of the first set of data in descending order, is read through the access interface unit 6.

【0066】そして、比較処理部1−2に入力されたソ
ートデータ「10」およびソートデータ「14」は、比
較処理部1−2で、その数値の大小が比較される。な
お、図4における時間eの記憶部の動作の欄に、「ソー
トデータ‘10’の書込み」と一緒に「ソートデータ
‘10’の読出し」という記載があるのは、ソートデー
タのデータ容量が大きい場合の処理動作である。
Then, the sort data "10" and the sort data "14" input to the comparison processing unit 1-2 are compared by the comparison processing unit 1-2 in terms of the magnitudes of the numerical values. In the column of the operation of the storage unit at the time e in FIG. 4, the description “read sort data '10'” together with “write sort data '10'” means that the data capacity of the sort data is This is a processing operation in the case of being large.

【0067】時間fにおいて、比較処理部1−2は、時
間eで行われた比較処理の結果に基づき、ソートデータ
「14」を出力する。また、比較処理部1−2は、第一
の降順2個組データの残りのデータであるソートデータ
「9」を、記憶部2からメモリアクセスインタフェース
部6を介して比較処理部1−3に読み出す。
At time f, the comparison processing unit 1-2 outputs the sort data “14” based on the result of the comparison processing performed at time e. Further, the comparison processing unit 1-2 transfers the sort data “9”, which is the remaining data of the first set of data in descending order, from the storage unit 2 to the comparison processing unit 1-3 via the memory access interface unit 6. read out.

【0068】そして、比較処理部1−2では、ソートデ
ータ「9」およびソートデータ「10」の比較処理が行
われる。またこの時、比較処理部1−2には、第二の降
順2個組データの先頭のデータであるソートデータ「1
0」に続いて、第二の降順2個組データの残りのデータ
であるソートデータ「7」が、入力される。
Then, the comparison processing section 1-2 performs a comparison process on the sort data "9" and the sort data "10". At this time, the comparison processing unit 1-2 stores the sort data “1”, which is the first data of the second data set in descending order.
Subsequent to “0”, the sort data “7”, which is the remaining data of the second set of data in descending order, is input.

【0069】入力されたソートデータ「7」は、メモリ
アクセスインタフェース部6を介して記憶部2に記録さ
れる。時間gにおいて、比較処理部1−2は、時間fで
行われた比較処理の結果に基づき、ソートデータ「1
0」を出力する。
The input sort data “7” is recorded in the storage unit 2 via the memory access interface unit 6. At time g, the comparison processing unit 1-2 sorts data “1” based on the result of the comparison processing performed at time f.
"0" is output.

【0070】また、比較処理部1−2は、第二の降順2
個組データの残りのデータであるソートデータ「7」
を、記憶部2からメモリアクセスインタフェース部6を
介して比較処理部1−3に読み出す。そして、比較処理
部1−2では、ソートデータ「7」およびソートデータ
「9」の比較処理が行われる。
Further, the comparison processing unit 1-2 performs the second descending order 2
Sort data "7" which is the remaining data of the individual set data
From the storage unit 2 to the comparison processing unit 1-3 via the memory access interface unit 6. Then, the comparison processing unit 1-2 performs a comparison process on the sort data “7” and the sort data “9”.

【0071】またこの時、比較処理部1−2には、第三
の降順2個組データの先頭のデータであるソートデータ
「3」が入力される。入力されたソートデータ「3」
は、メモリアクセスインタフェース部6を介して記憶部
2に記録される。
At this time, the sort data “3”, which is the first data of the third data set in descending order, is input to the comparison processing unit 1-2. Input sort data "3"
Is recorded in the storage unit 2 via the memory access interface unit 6.

【0072】時間hにおいて、比較処理部1−2は、時
間gで行われた比較処理の結果に基づき、ソートデータ
「9」を出力する。またこの時、比較処理部1−2に
は、第三の降順2個組データの先頭のデータであるソー
トデータ「3」に続いて、第三の降順2個組データの残
りのデータであるソートデータ「2」が入力される。入
力されたソートデータ「2」は、メモリアクセスインタ
フェース部6を介して記憶部2に記録される。
At time h, the comparison processing unit 1-2 outputs the sort data “9” based on the result of the comparison processing performed at time g. At this time, the comparison processing unit 1-2 stores the remaining data of the third descending double data following the sort data "3" which is the first data of the third descending double data. Sort data “2” is input. The input sort data “2” is recorded in the storage unit 2 via the memory access interface unit 6.

【0073】時間iでは、降順4個組データを構成する
第一の降順2個組データ及び第二の降順2個組データの
内で、まだ比較処理部1−2から出力されていないソー
トデータ「7」が出力される。また、比較処理部1−2
には、第四の降順2個組データの先頭のデータであるソ
ートデータ「11」が入力される。
At time i, the sort data which has not yet been output from the comparison processing unit 1-2 among the first descending two-piece data and the second descending two-piece data constituting the descending four-piece data. "7" is output. Also, the comparison processing unit 1-2
, Sort data “11”, which is the first data of the fourth data set in descending order, is input.

【0074】入力されたソートデータ「11」は、メモ
リアクセスインタフェース部6を介して記憶部2に記録
される。さらに、比較処理部1−2は、記憶部2に記録
されている第三の降順2個組データの先頭のデータであ
るソートデータ「3」を読み出す。そして、比較処理部
1−2では、ソートデータ「3」およびソートデータ
「11」の比較処理が行われる。
The input sort data “11” is recorded in the storage unit 2 via the memory access interface unit 6. Further, the comparison processing unit 1-2 reads the sort data “3”, which is the first data of the third set of descending data recorded in the storage unit 2. Then, the comparison processing unit 1-2 performs a comparison process on the sort data “3” and the sort data “11”.

【0075】比較処理部1−2では、時間c〜時間iに
示した処理動作が繰り返され、比較処理部1−3に入力
される2つの降順2個組データからひとつの降順4個組
データが作成される。そして、比較処理部1−2で作成
された降順4個組データは、比較処理部1−4を含むソ
ート処理基本部3−3へ出力される。
In the comparison processing unit 1-2, the processing operation shown in time c to time i is repeated, and one set of four descending data is output from two sets of data in descending order input to the comparison processing unit 1-3. Is created. The descending quadruple data created by the comparison processing unit 1-2 is output to the sort processing basic unit 3-3 including the comparison processing unit 1-4.

【0076】なお、これまでの説明では、ソートデータ
が単純な整数の場合を説明してきたが、一般に使用され
るソートデータは、企業の人事データや銀行の口座デー
タ等のある程度の容量がある。このある程度の容量があ
るソートデータを対象に、比較処理部1−1〜1−nが
比較処理を行なう場合は、対象となるソートデータを複
数に区切り、この区切られた所定の範囲でのソートデー
タに対して比較処理が行われる。
In the above description, the case where the sort data is a simple integer has been described. However, generally used sort data has a certain capacity such as corporate personnel data and bank account data. When the comparison processing units 1-1 to 1-n perform a comparison process on the sort data having a certain capacity, the target sort data is divided into a plurality of pieces, and the sorted data is sorted within a predetermined range. Comparison processing is performed on the data.

【0077】そして、この所定の範囲で比較処理を行な
っても差異が現れない場合、比較処理部1−1〜1−n
は、ソートデータに対する次ぎなる所定の範囲を対象と
して、再び比較処理を行なう。
If no difference appears even if the comparison processing is performed within this predetermined range, the comparison processing sections 1-1 to 1-n
Performs the comparison process again on the next predetermined range for the sort data.

【0078】比較処理部1−1〜1−nが、容量の大き
いソートデータの所定の範囲に対して、比較処理を行な
っても、その比較される2つのソートデータの値に差異
が見られない場合、まず比較処理が行われた所定の範囲
のソートデータは、比較処理部1−1〜1−n内に保存
され、そのソートデータの次ぎなる所定の範囲を、メモ
リアクセスインタフェース部6を介して、記憶部2から
読み出す。
Even if the comparison processing units 1-1 to 1-n perform comparison processing on a predetermined range of sorted data having a large capacity, there is a difference between the values of the two sorted data to be compared. If not, first, the sorted data in the predetermined range subjected to the comparison processing is stored in the comparison processing units 1-1 to 1-n, and the predetermined range next to the sorted data is stored in the memory access interface unit 6. Via the storage unit 2 via the memory.

【0079】そして、新たに読み出された所定の範囲の
ソートデータに対して、再び比較処理が行われる。比較
処理部1−1〜1−nによって行われた比較処理の結
果、比較結果に再び差異が現れない場合には、次ぎなる
所定の範囲のソートデータをメモリアクセスインタフェ
ース部6を介して記憶部2から読み出し、同様の比較処
理を行なう。比較結果に差異が現れない場合には、この
一連の処理がくり返し行われる。
Then, comparison processing is performed again on the newly read sort data in the predetermined range. As a result of the comparison processing performed by the comparison processing units 1-1 to 1-n, if no difference appears again in the comparison result, the next predetermined range of sorted data is stored in the storage unit via the memory access interface unit 6. 2 and perform a similar comparison process. If no difference appears in the comparison result, this series of processing is repeated.

【0080】例えば、比較処理部1−1〜1−nが有す
る内部記憶部4−1〜4−nの記憶容量よりも大きな記
憶容量を要するソートデータが比較処理の対象である場
合、このソートデータは記録できる範囲内で内部記憶部
4−1〜4−nに記録される。この内部記憶部4−1〜
4−nに記録された範囲のソートデータに対して、比較
処理部1−1〜1−nは、比較処理を行なう。
For example, if sort data requiring a larger storage capacity than the internal storage units 4-1 to 4-n of the comparison processing units 1-1 to 1-n is to be compared, this sort Data is recorded in the internal storage units 4-1 to 4-n within a recordable range. The internal storage units 4-1 to 4-1
The comparison processing units 1-1 to 1-n perform comparison processing on the sort data in the range recorded in 4-n.

【0081】この比較処理が行われても差異が見られな
かった場合、内部記憶部4−1〜4−nに記録されてい
ない残りの部分のソートデータに対して比較処理を行な
うため、記憶部2からメモリアクセスインタフェース部
6を介して該当する部分のソートデータが読出される。
If no difference is found even after the comparison processing is performed, the comparison processing is performed on the remaining sorted data not recorded in the internal storage units 4-1 to 4-n. The sort data of the corresponding portion is read from the section 2 via the memory access interface section 6.

【0082】このように、実施形態1のソート処理装置
5が有するメモリアクセスインタフェース部6は、従来
のソート処理装置5の各比較処理部1−1〜1−nが各
記憶部2−1〜2−nへアクセスするために備えていた
複数のインタフェース部(図示せず)を、1つに集約し
たものである。
As described above, in the memory access interface unit 6 of the sort processing device 5 of the first embodiment, the comparison processing units 1-1 to 1-n of the conventional sort processing device 5 A plurality of interface units (not shown) provided to access 2-n are integrated into one.

【0083】実施形態1のソート処理装置5が有する比
較処理部1−1〜1−nでは、入力された2つのソート
データに対する比較処理、入力されたソートデータの一
時保存、及び比較処理に基づく比較結果の出力等の単純
な処理が行われる。
The comparison processing units 1-1 to 1-n included in the sort processing device 5 according to the first embodiment are based on comparison processing for two input sort data, temporary storage of the input sort data, and comparison processing. Simple processing such as output of the comparison result is performed.

【0084】また、実施形態1のソート処理装置5が有
するメモリアクセスインタフェース部6では、各比較処
理部1−1〜1−nから出力されるアクセス信号に基づ
き、メモリアクセスインタフェース部6がアクセスする
記憶部2の宛先であるアクセスアドレスの生成処理、お
よび各比較処理部1−1〜1−nと記憶部2との間で行
われるソートデータの転送処理等の単純な処理が行われ
る。
In the memory access interface section 6 of the sorting apparatus 5 of the first embodiment, the memory access interface section 6 accesses based on the access signals output from the respective comparison processing sections 1-1 to 1-n. Simple processes such as a process of generating an access address as a destination of the storage unit 2 and a process of transferring sort data between each of the comparison processing units 1-1 to 1-n and the storage unit 2 are performed.

【0085】このように、比較処理部1−1〜1−n及
びメモリアクセスインタフェース部6は、単純な処理が
行われる部分なので、同一の集積回路に集積させること
が容易である。そして、従来のソート処理装置5では複
数に分割されていた記憶部2−1〜2−nを、実施形態
1のソート処理装置5では、ひとつの記憶部2に集約し
た。
As described above, since the comparison processing units 1-1 to 1-n and the memory access interface unit 6 perform simple processing, they can be easily integrated on the same integrated circuit. Then, the storage units 2-1 to 2-n divided into a plurality in the conventional sort processing device 5 are combined into one storage unit 2 in the sort processing device 5 of the first embodiment.

【0086】ひとつに集約された記憶部2では、各比較
処理部1−1〜1−nから出力されるソートデータが記
録される時、ソートデータが記録されるアドレスを、各
比較処理部1−1〜1−nに応じて変えることにより、
複数の比較処理部1−1〜1−nに対応している。
In the integrated storage unit 2, when the sort data output from each of the comparison processing units 1-1 to 1-n is recorded, the address where the sort data is recorded is stored in each of the comparison processing units 1. By changing according to -1 to 1-n,
It corresponds to a plurality of comparison processing units 1-1 to 1-n.

【0087】このように、実施形態1のソート処理装置
5では、各比較処理部1−1〜1−nに対して共用でき
るひとつの記憶部2を備え、従来のソート処理装置5が
備えていた複数の記憶部2−1〜2−nをひとつに集約
させ、アドレスにより各記憶部2−1〜2−nに対応さ
せた。このため、各記憶部2−1〜2−nを構成する記
憶素子各々が有する所定の単位の記憶容量では余分な記
憶容量が備えられていた各記憶部2−1〜2−nに適正
な記憶容量を与えることが可能となり、ソート処理装置
が有する記憶部から余分な記憶容量を削減することが可
能となる。
As described above, the sort processing device 5 of the first embodiment includes one storage unit 2 that can be shared by each of the comparison processing units 1-1 to 1-n, and the conventional sort processing device 5 includes. The plurality of storage units 2-1 to 2-n are integrated into one, and corresponded to each of the storage units 2-1 to 2-n by an address. For this reason, a storage unit of a predetermined unit included in each of the storage elements constituting each of the storage units 2-1 to 2-n has an appropriate storage capacity for each of the storage units 2-1 to 2-n having an extra storage capacity. The storage capacity can be provided, and the extra storage capacity can be reduced from the storage unit of the sort processing device.

【0088】また、実施形態1のソート処理装置5で
は、各比較処理部1−1〜1−nに対して共用できるひ
とつのメモリアクセスインタフェース部6、及び各比較
処理部1−1〜1−nに対して共用できるひとつの記憶
部2を備えることにより、集積回路と記憶部2とを接続
する信号線の数を、従来の比較処理部1−1〜1−nの
集積した数だけから1本に集約させることが可能とな
り、集積回路の入出力ピンの数による制約を受けること
なく、複数の比較処理部1−1〜1−nをひとつの集積
回路に集積させることが容易になる。
Further, in the sort processing device 5 of the first embodiment, one memory access interface unit 6 that can be shared by each of the comparison processing units 1-1 to 1-n, and each of the comparison processing units 1-1 to 1-n n, the number of signal lines connecting the integrated circuit and the storage unit 2 can be reduced from only the number of integrated comparison processing units 1-1 to 1-n. It is possible to integrate them into one, and it is easy to integrate the plurality of comparison processing units 1-1 to 1-n into one integrated circuit without being restricted by the number of input / output pins of the integrated circuit. .

【0089】さらに、実施形態1のソート処理装置5が
有する複数の比較処理部1−1〜1−nを集積させるこ
とが容易になるため、ソート処理装置5の小型化も容易
になる。
Further, since it is easy to integrate the plurality of comparison processing units 1-1 to 1-n included in the sort processing device 5 of the first embodiment, the size of the sort processing device 5 can be easily reduced.

【0090】集積回路の入出力ピンの数による制約で生
じる、従来のソート処理装置5と実施形態1のソート処
理装置5との比較処理部1−1〜1−nの集積度の違い
を、具体的に以下に説明する。例えば、従来のソート処
理装置5では、1つの集積回路に2つの比較処理部1−
1〜1−2の集積が可能であるとする。またこの時、各
比較処理部1−1〜1−2と各記憶部2−1〜2−2と
の間に設けられる2本の信号線が集積回路の入出力ピン
に各々割り当てられているものとする。つまり、従来の
ソート処理装置5では、比較処理部1−1〜1−2個々
が入出力ピンを1本ずつ利用していた。
The difference in the degree of integration of the comparison processing units 1-1 to 1-n between the conventional sort processing device 5 and the sort processing device 5 of the first embodiment, which is caused by the restriction due to the number of input / output pins of the integrated circuit, is as follows. This will be specifically described below. For example, in the conventional sorting device 5, two integrated processing units 1-
Assume that integration of 1 to 1-2 is possible. At this time, two signal lines provided between each of the comparison processing units 1-1 and 1-2 and each of the storage units 2-1 and 2-2 are assigned to input / output pins of the integrated circuit. Shall be. That is, in the conventional sort processing apparatus 5, each of the comparison processing units 1-1 to 1-2 uses one input / output pin.

【0091】しかし、実施形態1のソート処理装置5で
は、各比較処理部1−1〜1−2に共通のメモリアクセ
スインタフェース部6が接続されることにより、比較処
理部1−1〜1−2個々が2本の入出力ピンを共用する
ことができるため、実施形態1のソート処理装置5のデ
ータの転送能力は従来のソート処理装置5の2倍とな
る。また、実施形態1のソート処理装置5が、メモリア
クセスインタフェース部6を設けることにより、実施形
態1のソート処理装置5は、処理能力の高い記憶部2を
備えることができる。
However, in the sort processing device 5 of the first embodiment, the common memory access interface unit 6 is connected to each of the comparison processing units 1-1 to 1-2, so that the comparison processing units 1-1 to 1-1 are connected. Since each of the two can share two input / output pins, the data transfer capability of the sort processing device 5 of the first embodiment is twice that of the conventional sort processing device 5. In addition, by providing the memory access interface unit 6 in the sort processing device 5 of the first embodiment, the sort processing device 5 of the first embodiment can include the storage unit 2 having a high processing capability.

【0092】仮に、実施形態1のソート処理装置5が備
える記憶部2の処理能力が、従来のソート処理装置5が
備える記憶部2−1〜2−nの処理能力の2倍であると
する。すると、実施形態1のソート処理装置5は、メモ
リアクセスインタフェース部6によるデータの転送能力
の向上、及び記憶部2による記憶部2の処理能力の向上
より、従来のソート処理装置5の4倍の比較処理部1−
1〜1−nを1つの集積回路に集積させることができ
る。
It is assumed that the processing capacity of the storage unit 2 provided in the sorting apparatus 5 of the first embodiment is twice the processing capacity of the storage units 2-1 to 2-n provided in the conventional sorting apparatus 5. . Then, the sort processing device 5 of the first embodiment is four times as large as the conventional sort processing device 5 due to the improvement of the data transfer capability by the memory access interface unit 6 and the improvement of the processing capability of the storage unit 2 by the storage unit 2. Comparison processing unit 1-
1 to 1-n can be integrated in one integrated circuit.

【0093】また、実施形態1のソート処理装置5が有
するメモリアクセスインタフェース部6は、従来のソー
ト処理装置5の各比較処理部1−1〜1−nが各記憶部
2−1〜2−nへアクセスするために備えていた複数の
インタフェース部(図示せず)を、1つに集約したもの
である。つまり、従来のソート処理装置5では、ひとつ
の集積回路中に例えば8つの比較処理部1−1〜1−8
を集積させる場合、小さな容量のインタフェース部(図
示せず)を8つ備える必要があった。
The memory access interface unit 6 of the sort processing device 5 of the first embodiment is different from the conventional sort processing device 5 in that each of the comparison processing units 1-1 to 1-n is replaced by each of the storage units 2-1 to 2-n. In this example, a plurality of interface units (not shown) provided for accessing n are integrated into one. That is, in the conventional sort processing device 5, for example, eight comparison processing units 1-1 to 1-8 are provided in one integrated circuit.
In the case where ICs are integrated, it is necessary to provide eight small-capacity interface units (not shown).

【0094】そのため、実施形態1のソート処理装置5
が有するメモリアクセスインタフェース部6は、従来の
ソート処理装置5が有するインタフェース部(図示せ
ず)8個分の規模があっても、処理速度等の諸機能が同
等であれば、従来装置のインタフェース部(図示せず)
8個と実施形態1のメモリアクセスインタフェース部6
とは、集積回路内での回路規模に実質的な変化はない。
Therefore, the sort processing device 5 of the first embodiment
The memory access interface section 6 of the conventional sort processing apparatus 5 has a scale equivalent to eight interface sections (not shown) of the conventional sort processing apparatus 5, as long as the functions such as the processing speed are equivalent. Part (not shown)
Eight and the memory access interface unit 6 of the first embodiment
Means that there is no substantial change in the circuit scale in the integrated circuit.

【0095】しかし、従来装置のインタフェース部(図
示せず)8個分もの回路規模を有する実施形態1のメモ
リアクセスインタフェース部6には、構造が複雑にはな
るがメモリインタリーブ等の高速のメモリアクセス技術
を用いることができ、従来よりも高速の処理動作を可能
にするものにすることができる。この高速の処理動作を
提供するメモリアクセスインタフェース部6が得られた
ならば、メモリアクセスインタフェース部6に各比較処
理部1−1〜1−nから出力されたアクセス信号が集中
しても、ソート処理の処理能力の低下は抑えるられる。
However, the memory access interface unit 6 of the first embodiment, which has a circuit size of eight interface units (not shown) of the conventional device, has a complicated structure, but has a high-speed memory access such as a memory interleave. Techniques can be used, and processing operations can be performed at a higher speed than before. If the memory access interface unit 6 providing this high-speed processing operation is obtained, even if the access signals output from each of the comparison processing units 1-1 to 1-n are concentrated on the memory access interface unit 6, the sorting is performed. A decrease in the processing capacity of the processing is suppressed.

【0096】実施形態1のソート処理装置が、メモリア
クセスインタフェース部6を設け、従来のソート処理装
置5よりも高速で記憶部2にアクセスが出来るようにな
ると、記憶部2に用いられることの多いDRAM素子
を、DRAM素子よりも高速の処理が行われるシンクロ
ナスDRAM等に変更させることができる。
When the sort processing device of the first embodiment is provided with the memory access interface unit 6 and can access the storage unit 2 at a higher speed than the conventional sort processing device 5, it is often used for the storage unit 2. The DRAM device can be changed to a synchronous DRAM or the like that performs processing at a higher speed than the DRAM device.

【0097】記憶部2に用いられる記憶素子をDRAM
素子からシンクロナスDRAM素子に変更することによ
り、メモリである記憶部2にアクセスする間隔であるメ
モリアクセスサイクルが約60nsから約10nsに向
上する。このため、実施形態1のソート処理装置は、従
来装置の約6倍のデータ量の転送が可能となる。
The storage element used for the storage unit 2 is a DRAM
By changing from a device to a synchronous DRAM device, a memory access cycle, which is an interval for accessing the storage unit 2 as a memory, is improved from about 60 ns to about 10 ns. For this reason, the sort processing device of the first embodiment can transfer about six times the data amount of the conventional device.

【0098】なお、実施形態1のソート処理装置5が有
するメモリアクセスインタフェース部6が行なう記憶部
2への書き込みや記憶部2からの読み出しといった処理
のデータの単位は、ソートデータ単位でも降順n個組デ
ータ(nは整数)単位でもよい。しかし、メモリアクセ
スインタフェース部6にアクセス信号が入力される度
に、メモリアクセスインタフェース部6が記憶部2へ書
き込みや読み出しといったアクセスを行なうことは、ソ
ート処理装置5の処理動作の効率の向上を妨げる。
The unit of data such as writing to the storage unit 2 and reading from the storage unit 2 performed by the memory access interface unit 6 included in the sort processing apparatus 5 of the first embodiment is n in the sort data unit in descending order. The data may be in units of set data (n is an integer). However, the fact that the memory access interface unit 6 accesses the storage unit 2 such as writing or reading every time an access signal is input to the memory access interface unit 6 prevents the efficiency of the processing operation of the sort processing device 5 from being improved. .

【0099】書き込みや読み出しといったアクセス処理
は、単位とするデータのデータ量が大きい程、処理のた
めに必要な時間を短縮させることができる。そこで、メ
モリアクセスインタフェース部6が記憶部2に対してア
クセスするデータサイズを統一するように制御されれ
ば、メモリアクセスインタフェース部6と記憶部2との
間で効率的なデータの転送処理が行われ、ソート処理装
置5のソート処理能力が向上する。
In the access processing such as writing and reading, the time required for the processing can be shortened as the data amount of data as a unit becomes larger. Therefore, if the memory access interface unit 6 is controlled to unify the data size for accessing the storage unit 2, efficient data transfer processing between the memory access interface unit 6 and the storage unit 2 can be performed. Thus, the sort processing capability of the sort processing device 5 is improved.

【0100】また、実施形態1のソート処理装置5に入
力されるソートデータのデータ長が一定である場合、実
施形態1のソート処理装置5が有するメモリアクセスイ
ンタフェース部6に、各比較処理部1−1〜1−nから
出力されるアクセス信号のデータサイズに関する情報を
登録しておくことにより、各比較処理部1−1〜1−n
から出力されるアクセス信号からデータサイズに関する
情報を削除することができ、アクセス信号の構成を簡単
にすることができる。
If the data length of the sort data input to the sort processing device 5 of the first embodiment is constant, each of the comparison processing units 1 is added to the memory access interface unit 6 of the sort processing device 5 of the first embodiment. By registering information on the data size of the access signal output from -1 to 1-n, each of the comparison processing units 1-1 to 1-n
The information about the data size can be deleted from the access signal output from the access signal, thereby simplifying the configuration of the access signal.

【0101】さらに、実施形態1のソート処理装置5に
入力されるソートデータのデータ長が一定である場合、
実施形態1のソート処理装置5が有するメモリアクセス
インタフェース部6に、各比較処理部1−1〜1−nか
ら出力されるアクセス信号のデータサイズに関する情報
を登録しておくことにより、記憶部2、第一の記憶部4
−1〜4−n、及び第二の内部記憶部8をメモリアクセ
スインタフェース部6に登録したデータサイズ単位に分
割してソートデータの記録処理を行なうことが出来るた
め、記憶部2、第一の記憶部4−1〜4−n、及び第二
の内部記憶部8を効率的に使用できる。
Further, when the data length of the sort data input to the sort processing device 5 of the first embodiment is constant,
The information about the data size of the access signal output from each of the comparison processing units 1-1 to 1-n is registered in the memory access interface unit 6 included in the sort processing device 5 of the first embodiment, whereby the storage unit 2 is registered. , First storage unit 4
−1 to 4-n and the second internal storage unit 8 can be divided into data size units registered in the memory access interface unit 6 to perform the sort data recording process. The storage units 4-1 to 4-n and the second internal storage unit 8 can be used efficiently.

【0102】発明の実施の形態2.本発明によるソート
処理装置5の他の実施形態を図5に示す。図5におい
て、8は第2の内部記憶部であり、メモリアクセスイン
タフェース部6に設けられる。なお、図5において、図
1に示した従来例と同一又は相当部分には、同一符号を
付してその説明を省略し、図1と相違する部分について
説明した。
Embodiment 2 of the Invention FIG. 5 shows another embodiment of the sorting apparatus 5 according to the present invention. In FIG. 5, reference numeral 8 denotes a second internal storage unit, which is provided in the memory access interface unit 6. In FIG. 5, the same or corresponding parts as those in the conventional example shown in FIG. 1 are denoted by the same reference numerals, and the description thereof is omitted, and the parts different from FIG.

【0103】次に、図5に示したこの発明の実施形態2
の動作について説明する。この第2の内部記憶部8は、
記憶部2よりも読み出しや書き込みに対する処理速度が
速いものとする。また、第2の内部記憶部8は、内部記
憶部4−1〜4−nよりもその記憶容量が大きく、内部
記憶部4−1〜4−nに記録されるよりも大きなデータ
容量を有するソートデータが記録される。
Next, a second embodiment of the present invention shown in FIG.
Will be described. This second internal storage unit 8
It is assumed that the processing speed for reading and writing is faster than the storage unit 2. The second internal storage unit 8 has a larger storage capacity than the internal storage units 4-1 to 4-n, and has a larger data capacity than is stored in the internal storage units 4-1 to 4-n. Sort data is recorded.

【0104】比較処理部1−1〜1−nで比較処理され
るソートデータは、所定の範囲で記憶部2から第二の内
部記憶部8に読み出される。そして、第二の内部記憶部
8に読み出されたソートデータは、第二の内部記憶部8
とはまた別の所定の範囲で各比較処理部1−1〜1−n
が有する内部記憶部4−1〜4−nに読み出される。
The sort data subjected to the comparison processing by the comparison processing units 1-1 to 1-n is read from the storage unit 2 to the second internal storage unit 8 within a predetermined range. Then, the sorted data read into the second internal storage unit 8 is stored in the second internal storage unit 8.
Each of the comparison processing units 1-1 to 1-n in another predetermined range.
Are read into the internal storage units 4-1 to 4-n included in.

【0105】比較処理部1−1〜1−nが入力されたソ
ートデータに対して比較処理を行なう時、その比較処理
は、内部記憶部4−1〜4−nに記録されているソート
データに対して行われる。そして、比較対象であるソー
トデータが、その一部分しか内部記憶部4−1〜4−n
に記録されず、その内部記憶部4−1〜4−nに記録さ
れている範囲のソートデータに対して比較処理が行われ
たが、その比較処理の結果に差異が現れなかった場合、
比較処理部1−1〜1−nは、第2の内部記憶部8に記
録されているソートデータに対して比較処理を行なう。
When the comparison processing units 1-1 to 1-n perform comparison processing on input sort data, the comparison processing is performed by the sort data stored in the internal storage units 4-1 to 4-n. Done for Then, only part of the sort data to be compared is stored in the internal storage units 4-1 to 4-n.
And the comparison processing is performed on the sorted data in the range recorded in the internal storage units 4-1 to 4-n, but no difference appears in the result of the comparison processing,
The comparison processing units 1-1 to 1-n perform a comparison process on the sorted data recorded in the second internal storage unit 8.

【0106】なお、比較対象であるソートデータが、そ
の一部分しか第二の内部記憶部8に記録されず、その第
二の内部記憶部8に記録されている範囲のソートデータ
に対して比較処理が行われたが、その比較処理の結果に
差異が現れなかった場合、比較処理部1−1〜1−n
は、記憶部2に記録されているソートデータに対して比
較処理を行なう。
Note that only a part of the sort data to be compared is recorded in the second internal storage unit 8, and the sort data in the range recorded in the second internal storage unit 8 is subjected to comparison processing. Was performed, but no difference appeared in the result of the comparison processing, the comparison processing units 1-1 to 1-n
Performs a comparison process on the sort data recorded in the storage unit 2.

【0107】このように、実施形態2のソート処理装置
5は、内部記憶部4−1〜4−nよりも記憶容量が大き
く、記憶部2よりも高速に書き込みや読み出し等の処理
を行なうことができる第2の内部記憶部8を備えたた
め、ソート処理装置5に入力されるソートデータのデー
タ容量が大きくてもソート処理を高速に行なうことがで
きる。
As described above, the sort processing device 5 according to the second embodiment has a larger storage capacity than the internal storage units 4-1 to 4-n, and performs processing such as writing and reading faster than the storage unit 2. Since the second internal storage unit 8 is provided, the sort processing can be performed at high speed even if the data volume of the sort data input to the sort processing device 5 is large.

【0108】発明の実施の形態3.本発明によるソート
処理装置の他の実施形態を図6に示す。9−1〜9−m
は内部メモリインタフェース部であり、各内部メモリイ
ンタフェース部9−1〜9−mは、比較処理部1−1〜
1−nのいずれか、及びメモリアクセスインタフェース
部6に接続される。
Embodiment 3 of the Invention FIG. 6 shows another embodiment of the sorting apparatus according to the present invention. 9-1 to 9-m
Denotes an internal memory interface unit. Each of the internal memory interface units 9-1 to 9-m includes a comparison processing unit 1-1 to
1-n and the memory access interface unit 6.

【0109】8−1〜8−mは第2の内部記憶部であ
り、内部メモリインタフェース部9−1が第二の内部記
憶部8−1を有し、内部メモリインタフェース部9−2
が第二の内部記憶部8−2を有するように、各第二の内
部記憶部8−1〜8−mは各内部メモリインタフェース
部9−1〜9−mに設けられる。なお、図6において、
図1に示した従来例と同一又は相当部分には、同一符号
を付してその説明を省略し、図1と相違する部分につい
て説明した。
8-1 to 8-m are second internal storage units. The internal memory interface unit 9-1 has a second internal storage unit 8-1, and the internal memory interface unit 9-2
Has the second internal storage unit 8-2, the second internal storage units 8-1 to 8-m are provided in the internal memory interface units 9-1 to 9-m. In FIG. 6,
The same or corresponding portions as those in the conventional example shown in FIG. 1 are denoted by the same reference numerals, and the description thereof is omitted, and portions different from FIG. 1 are described.

【0110】次に、図6に示したこの発明の実施形態3
の動作について説明する。比較処理部1−1〜1−nが
比較処理を行なう時、比較処理部1−1〜1−nは記憶
部2からソートデータを内部記憶部4−1〜4−n及び
第二の内部記憶部8−1〜8−mへ読み出す。そして、
比較処理部1−1〜1−nは、内部記憶部4−1〜4−
nに記録されているソートデータに対して、ソート処理
を行なう。
Next, a third embodiment of the present invention shown in FIG.
Will be described. When the comparison processing units 1-1 to 1-n perform comparison processing, the comparison processing units 1-1 to 1-n store the sorted data from the storage unit 2 in the internal storage units 4-1 to 4-n and the second internal storage unit. The data is read out to the storage units 8-1 to 8-m. And
The comparison processing units 1-1 to 1-n include internal storage units 4-1 to 4-n
The sort processing is performed on the sort data recorded in n.

【0111】なお、ソート処理の対象であるソートデー
タが、その一部分しか内部記憶部4−1〜4−nに記録
されず、その内部記憶部4−1〜4−nに記録されてい
る範囲のソートデータに対して比較処理が行われたが、
その比較処理の結果に差異が現れなかった場合、比較処
理部1−1〜1−nは、第二の内部記憶部8−1〜8−
mに記録されているソートデータに対して比較処理を行
なう。
Note that only a part of the sort data to be sorted is recorded in the internal storage units 4-1 to 4-n, and the sorted data is recorded in the internal storage units 4-1 to 4-n. Comparison processing was performed on the sorted data of
If no difference appears in the result of the comparison processing, the comparison processing units 1-1 to 1-n perform operations in the second internal storage units 8-1 to 8-n.
The comparison processing is performed on the sort data recorded in m.

【0112】また、ソート処理の対象であるソートデー
タが、その一部分しか第二の内部記憶部8に記録され
ず、その第二の内部記憶部8に記録されている範囲のソ
ートデータに対して比較処理が行われたが、その比較処
理の結果に差異が現れなかった場合、比較処理部1−1
〜1−nは、記憶部2に記録されているソートデータに
対して比較処理を行なう。
Further, only a part of the sort data to be sorted is recorded in the second internal storage unit 8, and the sort data in the range recorded in the second internal storage unit 8 is If the comparison processing is performed but no difference appears in the result of the comparison processing, the comparison processing unit 1-1
1 to n perform a comparison process on the sort data recorded in the storage unit 2.

【0113】実施形態3のソート処理装置5は、複数の
第二の内部記憶部8−1〜8−mを有するため、各比較
処理部1−1〜1−nから第二の内部記憶部8−1〜8
−mへのアクセスの集中を緩和させることができる。な
お、第二の内部記憶部8−1〜8−mには、比較処理部
1−1〜1−nの内の幾つかが接続されるため、各比較
処理部1−1〜1−nから出力されるメモリアクセス信
号を制御する必要がある。
Since the sort processing device 5 of the third embodiment has a plurality of second internal storage units 8-1 to 8-m, each of the comparison processing units 1-1 to 1-n has a second internal storage unit. 8-1 to 8
The concentration of accesses to -m can be reduced. Since some of the comparison processing units 1-1 to 1-n are connected to the second internal storage units 8-1 to 8-m, each of the comparison processing units 1-1 to 1-n It is necessary to control the memory access signal output from the CPU.

【0114】各第二の内部記憶部8−1〜8−mに対す
るメモリアクセス信号の制御を行なう部分が、内部メモ
リインタフェース部9−1〜9−mである。なお、各内
部メモリインタフェース9−1〜9−mには、複数の比
較処理部1−1〜1−nが接続されてもよいので、mは
nよりも小さい整数となる。
The portions that control the memory access signals for the respective second internal storage units 8-1 to 8-m are the internal memory interface units 9-1 to 9-m. Note that a plurality of comparison processing units 1-1 to 1-n may be connected to each of the internal memory interfaces 9-1 to 9-m, so that m is an integer smaller than n.

【0115】また、第2の内部記憶部8−1〜8−mが
有する記憶容量は、各比較処理部1−1〜1−nから出
力される降順n個組データのデータ長に合わせて、変化
させたほうが、第2の内部記憶部8−1〜8−mを効率
良く利用することができる。
The storage capacity of the second internal storage units 8-1 to 8-m is adjusted according to the data length of the descending n-piece data output from each of the comparison processing units 1-1 to 1-n. In this case, the second internal storage units 8-1 to 8-m can be used more efficiently.

【0116】このように実施形態3のソート処理装置5
は、複数の第二の内部記憶部8−1〜8−mを備えたた
め、各比較処理部1−1〜1−nから出力されるアクセ
ス信号に基づく処理動作を分散させて処理することがで
き、ソート処理装置5の処理能力が向上する。
As described above, the sort processing device 5 of the third embodiment
Has a plurality of second internal storage units 8-1 to 8-m, so that processing operations based on access signals output from each of the comparison processing units 1-1 to 1-n can be performed in a distributed manner. As a result, the processing capacity of the sorting device 5 is improved.

【0117】発明の実施の形態4.本発明によるソート
処理装置の他の実施形態を図7に示す。図7において、
記憶部2は、記憶部2と他の部分とを接続する信号線で
あるアクセスバスを2つ有する。
Embodiment 4 of the Invention FIG. 7 shows another embodiment of the sorting apparatus according to the present invention. In FIG.
The storage unit 2 has two access buses, which are signal lines that connect the storage unit 2 and other parts.

【0118】第一のアクセスバス20は、記憶部2とメ
モリアクセスインタフェース部6とを接続する信号線で
ある。第二のアクセスバス10は、記憶部2と他の装置
とを接続する信号線である。なお、図7において、図1
に示した実施形態1と同一又は相当部分には、同一符号
を付してその説明を省略し、図1と相違する部分につい
て説明した。
The first access bus 20 is a signal line connecting the storage unit 2 and the memory access interface unit 6. The second access bus 10 is a signal line that connects the storage unit 2 to another device. In FIG. 7, FIG.
The same or corresponding parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted, and the parts different from FIG. 1 are described.

【0119】実施形態4のソート処理装置5が有する記
憶部2は、ソート処理装置5がソート処理を行なってお
らず、記憶部2に対してソートデータの書き込みや読み
出し等の処理を行っていない場合、記憶部2に第二のア
クセスパス10を介して接続されている他の装置から出
力されたデータが記録される。
In the storage unit 2 included in the sort processing device 5 of the fourth embodiment, the sort processing device 5 does not perform the sort processing, and does not perform the processing such as the writing and reading of the sort data on the storage unit 2. In this case, data output from another device connected via the second access path 10 is recorded in the storage unit 2.

【0120】なお、図7に示した実施形態4の動作につ
いては、図1に示した実施形態1の動作と同様であり、
実施形態1の動作と相違する部分について説明した。実
施形態4の記憶部2は、ソート処理装置5の記憶部2と
して処理動作する一方、ソート処理装置5の記憶部2と
して処理動作していない時には、第二のアクセスバス1
0を介して接続されている他の装置の記憶部として処理
動作する。
The operation of the fourth embodiment shown in FIG. 7 is the same as the operation of the first embodiment shown in FIG.
The part different from the operation of the first embodiment has been described. The storage unit 2 according to the fourth embodiment operates as the storage unit 2 of the sort processing device 5, while the second access bus 1 operates when the storage unit 2 of the sort processing device 5 does not operate.
The processing operation is performed as a storage unit of another device connected via the “0”.

【0121】このように、実施形態4が有する記憶部2
は、2つの装置の内の一方の装置が使用していない時に
は、もう一方の装置によって利用できるようになってい
るため、効率よく利用され、ソート処理装置5を含む複
数の装置を有する大型装置の小型化を図ることができ
る。
As described above, the storage unit 2 included in the fourth embodiment
Is a large-scale device having a plurality of devices including the sort processing device 5, which is efficiently used because one of the two devices is used by the other device when it is not used. Can be reduced in size.

【0122】実施形態4のソート処理装置5は、記憶部
2に対して、アドレスによる記録位置を制御することに
より複数の比較処理部1−1〜1−n個々に対応した複
数の記憶部7−1〜7−nとして活用できる。また、実
施形態4のソート処理装置5は、記憶部2に対して、ア
ドレスによる記録位置の制御を行なわないことにより、
1つの大きな記憶容量を有する記憶部として活用でき
る。
The sort processing device 5 according to the fourth embodiment controls the storage unit 2 to control the recording position by the address so that the plurality of storage units 7 respectively corresponding to the plurality of comparison processing units 1-1 to 1-n. -1 to 7-n. In addition, the sort processing device 5 according to the fourth embodiment does not control the recording position by the address for the storage unit 2,
It can be used as a storage unit having one large storage capacity.

【0123】[0123]

【発明の効果】以上のように、本発明におけるソート処
理装置は、所定の数のソートされるソートデータが入力
され、第一のアクセス信号、及び入力された所定の数の
ソートデータの中の第一の所定数のソートデータを所定
の順番で出力する第一の比較部と、第一の比較部に接続
され、第一の比較部から出力された所定の順番のソート
データが入力され、第二のアクセス信号、及び入力され
たソートデータの中の第一の所定数より大きい第二の所
定数のソートデータを所定の順番で出力する第二の比較
部と、第一及び第二の比較部に共通接続され、第一及び
第二の比較部から出力される第一及び第二のアクセス信
号が入力され、入力された第一及び第二のアクセス信号
に基づく処理信号を出力するインタフェース部と、イン
タフェース部に接続され、インタフェース部から出力さ
れた処理信号に基づく記録または読み出し動作が行われ
る記憶部と、を備えており、複数の比較部各々がインタ
フェース部に共通接続されることにより、1本の信号線
にまとめることができ、この1本の信号線が記憶部に接
続されるための、複数の比較部をひとつの集積回路にま
とめることが容易となり、ソート処理装置の小型化が可
能となる。
As described above, the sort processing device according to the present invention receives a predetermined number of sort data items to be sorted, and outputs a first access signal and a predetermined number of sort data items among the input predetermined number of sort data items. A first comparison unit that outputs a first predetermined number of sort data in a predetermined order, and is connected to the first comparison unit and receives a predetermined order of sort data output from the first comparison unit, A second access signal, a second comparison unit that outputs a second predetermined number of sort data larger than the first predetermined number in the input sort data in a predetermined order, and a first and a second comparison unit. An interface commonly connected to the comparing unit, receiving first and second access signals output from the first and second comparing units, and outputting a processing signal based on the input first and second access signals Section and the interface section. And a storage unit for performing a recording or readout operation based on the processing signal output from the interface unit, and each of the plurality of comparison units is commonly connected to the interface unit so that Since the one signal line is connected to the storage unit, it is easy to integrate a plurality of comparison units into one integrated circuit, and the size of the sort processing device can be reduced.

【0124】また、本発明におけるソート処理装置の第
二の比較部は、入力されたソートデータの中の上記第一
の所定数の2倍の第二の所定数のソートデータを所定の
順番で出力し、複数の比較部各々がインタフェース部に
共通接続されることにより、1本の信号線にまとめるこ
とができ、この1本の信号線が記憶部に接続されるため
の、複数の比較部をひとつの集積回路にまとめることが
容易となり、ソート処理装置の小型化が可能となる。
Further, the second comparing section of the sort processing device according to the present invention, in the input sort data, sorts the second predetermined number of sort data twice as large as the first predetermined number in a predetermined order. The plurality of comparators are connected to the interface unit so as to be integrated into one signal line, and the plurality of comparators are connected to the storage unit. Can be easily integrated into one integrated circuit, and the size of the sort processing device can be reduced.

【0125】さらに、本発明におけるソート処理装置の
インタフェース部は、第一の比較部から出力された第一
のアクセス信号に基づき、第一の比較部に入力されたソ
ートデータを記憶部に記録、または記憶部に記録されて
いるソートデータを第一の比較部に読み出し、第二の比
較部から出力された第二のアクセス信号に基づき、第二
の比較部に入力されたソートデータを記録部に記録、ま
たは記憶部に記録されているソートデータを第二の比較
部に読み出し、第一及び第二の比較部から出力される第
一及び第二のアクセス信号に基づくソートデータの記録
及び読み出し処理を、1本の信号線を介して一括して制
御するため、複数の比較部をひとつの集積回路にまとめ
ることが容易となり、ソート処理装置の小型化が可能と
なる。
Further, based on the first access signal output from the first comparing section, the interface section of the sorting apparatus according to the present invention records the sort data input to the first comparing section in the storage section, Alternatively, the sort data recorded in the storage unit is read out to the first comparison unit, and based on the second access signal output from the second comparison unit, the sort data input to the second comparison unit is stored in the recording unit. Or read the sort data recorded in the storage unit to the second comparison unit, and record and read the sort data based on the first and second access signals output from the first and second comparison units. Since the processing is controlled collectively via one signal line, it is easy to combine a plurality of comparison units into one integrated circuit, and the size of the sort processing device can be reduced.

【0126】また、本発明におけるソート処理装置は、
第一及び第二の比較部に入力されたソートデータを、第
一の比較部または第二の比較部に対応させて、ひとつの
記憶部の異なるアドレスに記録させるため、記憶部が余
分な記憶容量を備えることを抑えることができる。
Further, the sorting apparatus according to the present invention
Since the sort data input to the first and second comparison units are recorded at different addresses of one storage unit in correspondence with the first comparison unit or the second comparison unit, the storage unit has an unnecessary storage. Provision of a capacity can be suppressed.

【0127】さらに、本発明におけるソート処理装置の
インタフェース部は、第一及び第二の比較部から出力さ
れた第一及び第二のアクセス信号に基づき、第一及び第
二の比較部に入力されたソートデータが記録され、記憶
部より記録及び読み込み処理の速度が速い第二の記憶部
を有し、第二の記憶部は、記憶部に記録されている第一
の比較部または第二の比較部による比較処理に用いられ
るソートデータを記録する。そして、第一の比較部及び
第二の比較部は、記憶部に比べて記録及び読み込みの処
理速度が速い第二の記憶部に記録されたソートデータを
対象に、比較処理を行なうため、高速に記録及び読み込
み処理を行なうことができる。
Further, the interface unit of the sorting apparatus according to the present invention is input to the first and second comparison units based on the first and second access signals output from the first and second comparison units. Sorted data is recorded, and has a second storage unit that is faster in recording and reading processing than the storage unit, and the second storage unit is the first comparison unit or the second comparison unit recorded in the storage unit. The sort data used for the comparison processing by the comparison unit is recorded. The first comparison unit and the second comparison unit perform a comparison process on the sorted data recorded in the second storage unit, which has a higher recording and reading processing speed than the storage unit. Recording and reading processing can be performed.

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

【図1】 本発明の実施形態1に示すソート処理装置の
ブロック図である。
FIG. 1 is a block diagram of a sort processing device according to a first embodiment of the present invention.

【図2】 実施形態1のソート処理装置が有する記憶部
の領域が分割されている状況を示す図である。
FIG. 2 is a diagram illustrating a situation in which an area of a storage unit of the sort processing apparatus according to the first embodiment is divided.

【図3】 本発明のソート処理装置におけるソート処理
の処理方法を示す図である。
FIG. 3 is a diagram showing a processing method of a sort process in the sort processing device of the present invention.

【図4】 本発明のソート処理装置が有する比較処理部
1−3におけるソート処理の処理方法を示す図である。
FIG. 4 is a diagram illustrating a processing method of a sort process in a comparison processing unit 1-3 included in the sort processing device of the present invention.

【図5】 実施形態2のソート処理装置を示すブロック
図である。
FIG. 5 is a block diagram illustrating a sort processing device according to a second embodiment.

【図6】 実施形態3のソート処理装置を示すブロック
図である。
FIG. 6 is a block diagram illustrating a sort processing device according to a third embodiment.

【図7】 実施形態4のソート処理装置を示すブロック
図である。
FIG. 7 is a block diagram illustrating a sort processing device according to a fourth embodiment.

【図8】 従来のソート処理装置のブロック図である。FIG. 8 is a block diagram of a conventional sort processing device.

【図9】 従来のソート処理装置におけるソート処理の
処理方法を示す図である。
FIG. 9 is a diagram illustrating a processing method of a sort process in a conventional sort processing device.

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

1−1〜1−n 比較処理部 2 本発明における記憶部 2−1〜2−n 従来例における記憶部 3−1〜3−n ソート処理基本部 4−1〜4−n 内部記憶部 5 ソート処理装置 6 メモリインタフェース部 8 第2の内部記憶部 8−1〜8−m 数台の比較処理部毎に設けられた第2
の内部記憶部 9−1〜9−m 数台の比較処理部毎に設けられた内部
メモリインタフェース部 10 記憶部2が有する第2のアクセス経路
1-1 to 1-n Comparison processing unit 2 Storage unit in the present invention 2-1 to 2-n Storage unit in conventional example 3-1 to 3-n Sort processing basic unit 4-1 to 4-n Internal storage unit 5 Sort processing device 6 Memory interface unit 8 Second internal storage unit 8-1 to 8-m The second provided for each of several comparison processing units
Internal storage units 9-1 to 9-m Internal memory interface units provided for several comparison processing units 10 Second access path of storage unit 2

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定の数のソートされるソートデータが入
力され、第一のアクセス信号、及び上記入力された所定
の数のソートデータの中の第一の所定数のソートデータ
を所定の順番で出力する第一の比較部と、上記第一の比
較部に接続され、上記第一の比較部から出力された所定
の順番のソートデータが入力され、第二のアクセス信
号、及び上記入力されたソートデータの中の上記第一の
所定数より大きい第二の所定数のソートデータを所定の
順番で出力する第二の比較部と、上記第一及び第二の比
較部に共通接続され、上記第一及び第二の比較部から出
力される上記第一及び第二のアクセス信号が入力され、
入力された上記第一及び第二のアクセス信号に基づく処
理信号を出力するインタフェース部と、上記インタフェ
ース部に接続され、上記インタフェース部から出力され
た処理信号に基づく記録または読み出し動作が行われる
記憶部と、を備えたことを特徴とするソート処理装置。
A first access signal and a first predetermined number of sort data among the input predetermined number of sort data are input in a predetermined order. The first comparison unit that is output in the, connected to the first comparison unit, the sort data of a predetermined order output from the first comparison unit is input, a second access signal, and the input A second comparison unit that outputs a second predetermined number of sorted data larger than the first predetermined number in the sorted data in a predetermined order, and is commonly connected to the first and second comparison units; The first and second access signals output from the first and second comparison units are input,
An interface unit for outputting a processing signal based on the input first and second access signals, and a storage unit connected to the interface unit for performing a recording or reading operation based on the processing signal output from the interface unit And a sort processing device.
【請求項2】第二の比較部は、入力されたソートデータ
の中の上記第一の所定数の2倍の第二の所定数のソート
データを所定の順番で出力することを特徴とする請求項
1に記載のソート処理装置。
2. The apparatus according to claim 1, wherein the second comparing section outputs a second predetermined number of sort data twice as large as the first predetermined number in the input sort data in a predetermined order. The sort processing device according to claim 1.
【請求項3】インタフェース部が、第一の比較部から出
力された第一のアクセス信号に基づき、上記第一の比較
部に入力されたソートデータを記憶部に記録、または上
記記憶部に記録されているソートデータを上記第一の比
較部に読み出し、第二の比較部から出力された第二のア
クセス信号に基づき、上記第二の比較部に入力されたソ
ートデータを上記記録部に記録、または上記記憶部に記
録されているソートデータを上記第二の比較部に読み出
すことを特徴とする請求項1または2に記載のソート処
理装置。
3. An interface unit records the sort data input to the first comparison unit in the storage unit or records the sort data in the storage unit based on the first access signal output from the first comparison unit. The read sort data is read out to the first comparison unit, and the sort data input to the second comparison unit is recorded in the recording unit based on the second access signal output from the second comparison unit. 3. The sort processing device according to claim 1, wherein the sort data recorded in the storage unit is read out to the second comparison unit.
【請求項4】第一及び第二の比較部に入力されたソート
データを、上記第一の比較部または上記第二の比較部に
対応させて、記憶部の異なるアドレスに記録させること
を特徴とする請求項1〜3のいずれかに記載のソート処
理装置。
4. The method according to claim 1, wherein the sorting data input to the first and second comparing sections are recorded at different addresses in the storage section in correspondence with the first comparing section or the second comparing section. The sort processing device according to claim 1, wherein
【請求項5】インタフェース部は、第一及び第二の比較
部から出力された第一及び第二のアクセス信号に基づ
き、上記第一及び第二の比較部に入力されたソートデー
タが記録され、記憶部より記録及び読み込み処理の速度
が速い第二の記憶部を有することを特徴とする請求項1
〜4のいずれかに記載のソート処理装置。
5. The interface unit according to claim 1, wherein the sort data input to the first and second comparison units is recorded based on the first and second access signals output from the first and second comparison units. And a second storage unit having a higher recording and reading speed than the storage unit.
5. The sort processing device according to any one of items 1 to 4.
JP18963596A 1996-07-18 1996-07-18 Sorting device Expired - Fee Related JP3265993B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18963596A JP3265993B2 (en) 1996-07-18 1996-07-18 Sorting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18963596A JP3265993B2 (en) 1996-07-18 1996-07-18 Sorting device

Publications (2)

Publication Number Publication Date
JPH1040075A JPH1040075A (en) 1998-02-13
JP3265993B2 true JP3265993B2 (en) 2002-03-18

Family

ID=16244603

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18963596A Expired - Fee Related JP3265993B2 (en) 1996-07-18 1996-07-18 Sorting device

Country Status (1)

Country Link
JP (1) JP3265993B2 (en)

Also Published As

Publication number Publication date
JPH1040075A (en) 1998-02-13

Similar Documents

Publication Publication Date Title
US20020133668A1 (en) Memory device search system and method
JPH08504992A (en) Pattern retrieval and refresh logic in dynamic storage
JPH0728624A (en) Device and method for sorting
US6424970B1 (en) Sorting system and method executed by plural computers for sorting and distributing data to selected output nodes
EP0961966B1 (en) N-way processing of bit strings in a dataflow architecture
JP3196637B2 (en) Sort processor and sort processing device
JP3265993B2 (en) Sorting device
US5659733A (en) Sort processing method and apparatus for sorting data blocks using work buffer merge data records while sequentially transferring data records from work buffers
JPS6120157A (en) Data processing system
JPH0666050B2 (en) Sort processing method
EP0321493A1 (en) A content-addressable memory system
US5710937A (en) Sorting apparatus
Khare et al. High-level synthesis with synchronous and RAMBUS DRAMs
JP3238939B2 (en) Sorting device
JPS6143338A (en) Searching of thin data base using association technology
EP0446002B1 (en) Wafer scale memory having improved multi-bit accessing and system having the wafer scale memory
JP2613963B2 (en) Data input / output device
SU1534457A1 (en) Device for computing codes
JPH1021053A (en) Data processor
RU2037215C1 (en) Storage device
JPH055134B2 (en)
JPS61198351A (en) Direct memory access control circuit
JPS62186328A (en) Sort processing system
JPS6180447A (en) Store control system of memory
JPS6136854A (en) Memory switching device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees