JPS59229643A - Sorting operation circuit - Google Patents

Sorting operation circuit

Info

Publication number
JPS59229643A
JPS59229643A JP58104303A JP10430383A JPS59229643A JP S59229643 A JPS59229643 A JP S59229643A JP 58104303 A JP58104303 A JP 58104303A JP 10430383 A JP10430383 A JP 10430383A JP S59229643 A JPS59229643 A JP S59229643A
Authority
JP
Japan
Prior art keywords
data
module
input
modules
sorting operation
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
JP58104303A
Other languages
Japanese (ja)
Inventor
Takeshi Masui
桝井 猛
Toshiyuki Goto
敏行 後藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58104303A priority Critical patent/JPS59229643A/en
Publication of JPS59229643A publication Critical patent/JPS59229643A/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

Abstract

PURPOSE:To sort data while inputting the data and to speed up the sorting operation by connecting uniform modules each of which has a single function like an array. CONSTITUTION:A sorting operation circuit 1 is constituted by connecting the necessary number of modules 11-1n each of which has a single function like an array, processes a sorting input IN by control signals T, C0, C1 through the adjacently connected module and generates a sorting output OUT. All the modules 11-1n constituting the sorting operation circuit 1 are the same and the circuit 1 compares the data stored in itself with the input data to decide the data to be processed.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は高速処理を可能にしたソート演算回路に関する
DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to a sort calculation circuit that enables high-speed processing.

(2)従来技術と問題点 一般に、論理回路においてはデータを所定の順序に従っ
て処理するソート演算回路が採用されているが、データ
量の増加に伴ないこのソート演算回路でのデータ処理の
高速化が望まれている。
(2) Prior art and problems In general, logic circuits employ a sorting circuit that processes data in a predetermined order, but as the amount of data increases, the speed of data processing in this sorting circuit increases. is desired.

従来のソート演算方式としては、データをバッファに一
括して入力して処理する方式とデータを1つずつ個別に
入力しながら処理する方式がある。
Conventional sort calculation methods include a method in which data is input to a buffer all at once and processed, and a method in which data is input individually one by one and processed.

しかし、前者の一括処理方式では入力時間と処理時間が
別になる即ちソート時間が遅いために処理を早くするに
は演算の基本クロ、りを上げなければならず、後者の個
別処理方式では処理速度が入力速度内におさまらないと
処理ができないため処理速度により入力速度が抑えられ
るという問題点がある。
However, in the former batch processing method, the input time and processing time are separate, that is, the sorting time is slow, so in order to speed up the processing, the basic calculation speed must be increased, whereas in the latter individual processing method, the processing speed is slow. Since processing cannot be performed unless the input speed falls within the input speed, there is a problem that the input speed is suppressed by the processing speed.

(3)発明の目的 本発明の目的は、単一の機能のみを有する画一化したモ
ジュールをアレー状に接続することによりデータを入力
しながらソートできるようにして、ソート演算の高速化
を図ることにある。
(3) Purpose of the Invention The purpose of the present invention is to speed up the sorting operation by connecting standardized modules having only a single function in an array so that data can be sorted while being input. There is a particular thing.

(4)  発明の構成 本発明によれば、う、チ、コンパレータ、マルチプレク
サ及び該マルチプレクサに必要な論理モジ、−ルから構
成されかつ入力データと直前のモジュール及び直後のモ
ジュールに格納されているデータ並びに自己のデータを
比較することにより処理すべきデータを決定する単一機
能を有するモジュールを複数個アレー状に接続したこと
を特徴とするソート演算回路が提供される。
(4) Structure of the Invention According to the present invention, a comparator, a multiplexer, and logic modules necessary for the multiplexer are configured, and input data and data stored in the immediately preceding module and the immediately succeeding module are provided. Furthermore, there is provided a sort operation circuit characterized in that a plurality of modules having a single function of determining data to be processed by comparing their own data are connected in an array.

(5)発明の実施例 以下、本発明を実施例により添付図面を参照して説明す
る。
(5) Embodiments of the Invention The present invention will now be described by way of embodiments with reference to the accompanying drawings.

第1図は本発明に係るソート演算方式の回路構成図であ
る。第1図のソート演算回路1は単一の機能を有するモ
ジュール11・・・1rXを必要な数だけアレー状に接
続して成り、制御信号T、OQ、01によりソート入カ
ニNを互いに隣接接続するモジュールを介してソート演
算処理しソート出力0υTを生成するようになっている
FIG. 1 is a circuit configuration diagram of a sort calculation method according to the present invention. The sort calculation circuit 1 shown in FIG. 1 is made up of a necessary number of modules 11...1rX having a single function connected in an array, and sort input crabs N are connected adjacently to each other by control signals T, OQ, and 01. The sort operation is processed through a module to generate a sort output 0υT.

上記ソート演算回路1を構成する各モジュール11・・
・1rL はすべて同一であり、第2図にモジュール1
にの構成図を掲げる。モジュール1にはう。
Each module 11 constituting the sort calculation circuit 1...
・1rL are all the same, and module 1 is shown in Figure 2.
The configuration diagram is shown below. Go to module 1.

チ1に3、コンパレータ1に4、マルチプレクサ1kl
及びこれに必要な論理モジュール1に2から構成されて
いる。
3 on chip 1, 4 on comparator 1, multiplexer 1kl
and logical modules 1 and 2 necessary for this.

このように構成されたモジュール1には、下記に詳述す
る通り自己が格納するデータRと入力データエとを比較
し、工くRであればRを取り込む。
The module 1 configured in this manner compares the data R it stores with the input data E, as will be described in detail below, and if the data R is correct, then it takes in R.

工≧Rで、かつ1(k−1)において工くRならば入力
データエを自ら取り込み、工≧Rで、かつ1(k−1)
において工くRならば、直前のモジュール1(k−1)
  からデータをもらう。又、この場合のモジュール1
(k+1)はかかる機能はすべてのモジュール11・・
・1nについて同一である。
If work≧R and work R at 1(k-1), input data is taken in by itself, and work≧R and work R at 1(k-1).
If R is constructed in , the immediately preceding module 1 (k-1)
Get data from. Also, module 1 in this case
(k+1) is such a function that all modules 11...
- Same for 1n.

第3図は第1図に示す各モジュールの詳細な接続図であ
る。また第4図は各モジュールを構成するマルチプレク
サに必要な論理モジュールの構成図である。
FIG. 3 is a detailed connection diagram of each module shown in FIG. 1. FIG. 4 is a diagram showing the configuration of logical modules necessary for the multiplexer forming each module.

上記の構成を有する本発明に係るソート演算回路1を第
5図を参照して説明すると次のようになる。先ず最初は
りセット信号001’−IJ(第2図、第4図)が入力
され各モジュールがイニシャライズされ、次にデータの
入力と演算が行われる。
The sort calculation circuit 1 according to the present invention having the above configuration will be explained with reference to FIG. 5 as follows. First, the beam set signal 001'-IJ (FIGS. 2 and 4) is input to initialize each module, and then data is input and calculations are performed.

第5図において、時刻n−1で各モジュール11.12
・・・16には図示するようにそれぞれ数字6,5・・
・1が格納されている。ソー)JIIT序はソート入力
を大きい順に並べるものとする。
In FIG. 5, each module 11.12 at time n-1.
...16 has numbers 6, 5, respectively, as shown in the diagram.
・1 is stored. Sort) The JIIT order is to arrange the sort inputs in descending order.

このような状態で新たに入力データエとして3が入力さ
れたとする(第5図)。この入力データ3はコンパレー
タ1に4(第2図)により各モジュールが現在格納され
ているデータと比較される。
Assume that 3 is newly input as input data in this state (FIG. 5). This input data 3 is compared with the data currently stored in each module by a comparator 1 4 (FIG. 2).

第5図において一番左側のモジュール11′には6が格
納されている。従って(入力データI)<(格納されて
いるデータR)の関係があるのでコンパレータ1に4 
 のシフト制御出力信号Sは「0」となり、この「0」
は入力制御入力信号SOとして論理モジュール1に2 
に入力される。またこのモジュール11は直前モジュー
ルが接続されていないので、シフト制御入力信号S1は
「0」 である。従って論理モジュール1に2 に入力
される信号は、aOと01  が共に「0」、SOが「
0」、Slが「0」であり、この場合モジュール11は
破線αのように時刻n−1において格納していた数字6
が時刻nにおいてマルチプレクサでセレクトされて、格
納される。このときの論理モジュール1に2に関する入
力信号aO101、SO及びSl、出力信号α、h更に
モジュールの出力Rnの関係を示せば第1表の最上掴の
ようになる。
6 is stored in the leftmost module 11' in FIG. Therefore, since there is a relationship (input data I) < (stored data R), comparator 1 has 4
The shift control output signal S becomes "0", and this "0"
is input to logic module 1 as input control input signal SO.
is input. Further, since this module 11 is not connected to the immediately preceding module, the shift control input signal S1 is "0". Therefore, the signals input to logic module 1 and 2 are such that both aO and 01 are "0" and SO is "0".
0'', Sl is 0, and in this case, the module 11 stores the number 6 stored at time n-1 as indicated by the broken line α.
is selected by a multiplexer at time n and stored. The relationship between the input signals aO101, SO and Sl, the output signals α, h, and the output Rn of the module regarding logic module 1 and logic module 2 at this time is shown in the uppermost part of Table 1.

第  1  表 論理モジュールの出力信号a、hは、第4図から明らか
なように、 2番目、3番目のモジュール12.13については、モ
ジュール11と同様入力データ3に対しいずれも格納デ
ータは5,4でI<Hの関係にあるのでSOは「0」、
また左どなりのモジ、−ルからのシフト制御入力信号S
1は「0」となる。
As is clear from FIG. 4, the output signals a and h of the logic modules in Table 1 are as follows: As for the second and third modules 12 and 13, the stored data is 5 for input data 3, similar to module 11. , 4, there is a relationship of I<H, so SO is "0",
Also, the shift control input signal S from the left side is
1 becomes "0".

従ってモジュール11と同様の動作を行い、第1表■と
なり、モジュール12.13は破線り、  cに示すよ
うに自己のデータには何ら処理を与えない。
Therefore, it performs the same operation as module 11, and the result is shown in Table 1. Modules 12 and 13 are indicated by broken lines and do not perform any processing on their own data, as shown in c.

一方、第4番目のモジュール14に格納されているデー
タは3であるので工=Rの関係がある。
On the other hand, since the data stored in the fourth module 14 is 3, there is a relationship of ≦R.

従ってコンパレータ1に4 のシフト制御出力信号Sは
「1」となり、この「1」が論理モジュール1に2に入
力制御入力信号5ol−IJとしで入力され、前段のモ
ジュール13からのシフト制御入力信号S1は「0」で
あるので第1表■のような動作をする。即ち第5図の破
%dのように今まで格納されていた6を次段のモジュー
ル15に転送すると共に破+11111gのように新た
なデータ3を取り入れる。
Therefore, the shift control output signal S of 4 becomes "1" to the comparator 1, and this "1" is input to the logic module 1 as the input control input signal 5ol-IJ to the logic module 2, and the shift control input signal S from the previous module 13 Since S1 is "0", the operation is as shown in Table 1 (2). That is, the data 6 that has been stored so far, such as %d in FIG. 5, is transferred to the next stage module 15, and new data 3, such as %d, is taken in.

モジュール15と16は新たな入力データエ〉自己のデ
ータ只の関係があるので、論理モジュール1に2  へ
の入力制御入力信号SOは「1」、各直前モジュールか
らのシフト制御入力信号S1「IJとなり第1表■のよ
うな論理を得る。
Since modules 15 and 16 have a relationship between new input data and their own data, the input control input signal SO to logic module 1 and 2 is "1", and the shift control input signal S1 from each previous module is "IJ". We obtain the logic shown in Table 1 (■).

従って、第5図の破線f、1に示すようにモジュール1
5.L6の各データ2,1は次段のモジュール16.1
7にそれぞれ転送される。このようにして6,5,4,
3,2.1と並んだデータを新たなデータ3が入力され
たときには615゜4.3,3,2.1とソート演算し
出力することができる。
Therefore, as shown by the dashed line f,1 in FIG.
5. Each data 2 and 1 of L6 is sent to the next stage module 16.1
7 respectively. In this way, 6, 5, 4,
When new data 3 is inputted, the data arranged as 3 and 2.1 can be sorted and output as 615 degrees 4.3, 3, 2.1.

第6図は上記アレー状に接続したモジュールをシフトデ
ータ信号とシフト制御信号とにより互いに接続すること
により何段にも接続可能な状態を示したものであり、デ
ータ幅が大きいとき、例えば第1図のデータ幅が8ビ、
トに対し第6図のデータ幅は18ビツト、高速演算処理
に効果がある。
FIG. 6 shows a state in which the modules connected in an array can be connected in multiple stages by connecting them to each other using a shift data signal and a shift control signal. When the data width is large, for example, the first The data width of the diagram is 8 bits,
The data width in FIG. 6 is 18 bits, which is effective for high-speed arithmetic processing.

(6)発明の効果 上記の通り、本発明によれば新たに入力されたデータと
既に格納されているデータを比較することによって直前
のモジュールと直後のモジュールのデータとの関係で自
己が処理すべきデータを決定する単一モジュールをアレ
ー状に接続して、データを入力し乍ら高速演算処理を行
うことができる。
(6) Effects of the Invention As described above, according to the present invention, by comparing newly input data and already stored data, the self-processing process is performed based on the relationship between the data of the immediately previous module and the data of the immediately following module. Single modules that determine the data to be calculated can be connected in an array to perform high-speed arithmetic processing while inputting data.

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

第1図は本発明に係るソート演算回路図、第2図は第1
図の各モジュールの構成図、第6図は各モジュールの接
続図、第4図は論理モジュールの構成図、第5図は第1
図の動作説明図、第6図は第1図の変形例を示す図であ
る。 1・・・ソート演算回路、11.12・・・1n・・・
モジュール、1に1・・・マルチプレクサ、1に2・・
・論理モジュール、1に3・・・う、チ、1に4・・・
コンパレータ。 特許出願人 富士通株式会社 特許出願代理人 弁理士 青 木   朗 弁理士西舘和之 弁理士内田幸男 弁理士山口昭之
FIG. 1 is a sort operation circuit diagram according to the present invention, and FIG.
The configuration diagram of each module in the figure, Figure 6 is the connection diagram of each module, Figure 4 is the configuration diagram of the logic module, and Figure 5 is the configuration diagram of each module.
FIG. 6 is a diagram showing a modification of FIG. 1. 1... Sort calculation circuit, 11.12...1n...
Module, 1 to 1...Multiplexer, 1 to 2...
・Logic module, 1 to 3... U, chi, 1 to 4...
comparator. Patent applicant Fujitsu Ltd. Patent application agent Akira Aoki Patent attorney Kazuyuki Nishidate Patent attorney Yukio Uchida Patent attorney Akiyuki Yamaguchi

Claims (1)

【特許請求の範囲】[Claims] う、チ、コンパレータ、マルチプレクサ及び該マルチプ
レクサに必要な論理モジュールから構成されかつ入力デ
ータと直前のモジュール及び直後のモジュールに格納さ
れているデータ並びに自己のデータを比較することによ
り処理す゛べきデータを決定する単一機能を有するモジ
ュールを複数個アレー状に接続したことを特徴とするソ
ート演算回路。
It consists of a comparator, a multiplexer, and a logic module necessary for the multiplexer, and determines the data to be processed by comparing the input data with the data stored in the immediately preceding module, the immediately succeeding module, and its own data. 1. A sorting operation circuit comprising a plurality of modules having a single function connected in an array.
JP58104303A 1983-06-13 1983-06-13 Sorting operation circuit Pending JPS59229643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58104303A JPS59229643A (en) 1983-06-13 1983-06-13 Sorting operation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58104303A JPS59229643A (en) 1983-06-13 1983-06-13 Sorting operation circuit

Publications (1)

Publication Number Publication Date
JPS59229643A true JPS59229643A (en) 1984-12-24

Family

ID=14377154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58104303A Pending JPS59229643A (en) 1983-06-13 1983-06-13 Sorting operation circuit

Country Status (1)

Country Link
JP (1) JPS59229643A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01283625A (en) * 1988-03-16 1989-11-15 Digital Equip Corp <Dec> Solid wiring circuit for sorting data
US5222243A (en) * 1990-02-09 1993-06-22 Hewlett-Packard Company Sorting apparatus having plurality of registers with associated multiplexers and comparators for concurrently sorting and storing incoming data according to magnitude

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5670225U (en) * 1979-11-01 1981-06-10
JPS5894668A (en) * 1981-12-02 1983-06-04 Honda Motor Co Ltd Gear mechanism

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5670225U (en) * 1979-11-01 1981-06-10
JPS5894668A (en) * 1981-12-02 1983-06-04 Honda Motor Co Ltd Gear mechanism

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01283625A (en) * 1988-03-16 1989-11-15 Digital Equip Corp <Dec> Solid wiring circuit for sorting data
US5222243A (en) * 1990-02-09 1993-06-22 Hewlett-Packard Company Sorting apparatus having plurality of registers with associated multiplexers and comparators for concurrently sorting and storing incoming data according to magnitude

Similar Documents

Publication Publication Date Title
EP0576595B1 (en) Transmission gate series multiplexer
US4682303A (en) Parallel binary adder
US5208491A (en) Field programmable gate array
US4573137A (en) Adder circuit
US4639888A (en) Circuit arrangement for accelerated carry formation in an adder device
EP0047440A1 (en) Shift circuit
CA1211540A (en) System and method for stabilizing asynchronous state machines
US5122979A (en) Method and a digital electronic device for the evaluation of an extremum of a set of binary encoded data words
JP3198379B2 (en) Maximum value selection circuit
EP0214313B1 (en) Method and apparatus for data merging/sorting
EP0031638B1 (en) A logic circuit
EP0568374B1 (en) Parallelized magnitude comparator for comparing a binary number to a fixed value
US5396445A (en) Binary carry-select adder
US5189629A (en) Method of logic gate reduction in a logic gate array
US5727200A (en) Parallel merge sorting apparatus with an accelerated section
US4336600A (en) Binary word processing method using a high-speed sequential adder
JPS59229643A (en) Sorting operation circuit
US4009468A (en) Logic network for programmable data concentrator
US5192882A (en) Synchronization circuit for parallel processing
US6341296B1 (en) Method and apparatus for efficient selection of a boundary value
US6085316A (en) Layered counterflow pipeline processor with anticipatory control
US6198305B1 (en) Reduced area product-term array
US3221154A (en) Computer circuits
US6487550B1 (en) Method and apparatus for finding a first element
US3522587A (en) Line switching apparatus