JPS63149726A - Comparing unit skip system for data aligning device - Google Patents

Comparing unit skip system for data aligning device

Info

Publication number
JPS63149726A
JPS63149726A JP29856286A JP29856286A JPS63149726A JP S63149726 A JPS63149726 A JP S63149726A JP 29856286 A JP29856286 A JP 29856286A JP 29856286 A JP29856286 A JP 29856286A JP S63149726 A JPS63149726 A JP S63149726A
Authority
JP
Japan
Prior art keywords
data
memory
comparison unit
comparing unit
input
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
JP29856286A
Other languages
Japanese (ja)
Inventor
Hideaki Takeda
武田 英昭
Toshio Nakamura
敏夫 中村
Tadashi Kitamura
正 北村
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP29856286A priority Critical patent/JPS63149726A/en
Publication of JPS63149726A publication Critical patent/JPS63149726A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To obtain a data aligning device with simple constitution and simple control by utilizing a memory already formed in a comparing unit to skip the comparing unit. CONSTITUTION:In case of skipping a comparing unit 40-i, a previously fixed area in a memory 103 is used as a buffer, the address of the memory 103 and a multiplexer 109 in the comparing unit to be skipped are fixed prior to the start of alignment and inputted data are written in the memory and then read out to output it to the succeeding stage. Consequently, an exclusive by-pass line for skipping can be omitted and the skip processing can be attained only by two processing, i.e. reading and writing from/to the memory, so that control can be easily executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ集合をデータ値の小さい順もしくは大き
い順に並べ換えるデータ整列装置に係り。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data sorting device that sorts data sets in ascending order of data values or in descending order of data values.

詳しくは、その比較ユニットのスキップ方式に関する。More specifically, it relates to the skip method of the comparison unit.

(従来の技術〕 データ整列装置は、一般に縦続接続された複数の比較ユ
ニットからなり、各比較ユニットで並列的に、前段から
入力される整列済みデータ部分集合を2組ずつ整列して
併合し、該併合結果の整列済みデータ部分集合を後段に
出力して、データ集合をデータ値の小さい順もしくは大
きい順に並べ換える。
(Prior Art) A data sorting device generally consists of a plurality of comparison units connected in cascade, and each comparison unit aligns and merges two sets of sorted data subsets input from the previous stage in parallel. The sorted data subset resulting from the merging is output to a subsequent stage, and the data set is sorted in ascending order of data values or in descending order of data values.

この種のデータ整列装置では、整列可能なデータ長の拡
大のため、比較ユニット内のメモリよりも大きなデータ
が入力された場合、該比較ユニットをスキップさせたり
、あるいは、処理速度の向上のため、装置に格納可能な
データ数よりも入力データ数が少ない場合、データ未格
納比較ユニットを同様にスキップさせる方法が用いられ
る。このため、従来は比較ユニット内にバイパス用デー
タ線を別に設け、スキップモードの場合、前段から入力
されるデータを該バイパス用データ線によりそのまN後
段へバイパスしていた。
In this type of data sorting device, in order to expand the data length that can be sorted, if data larger than the memory in the comparison unit is input, the comparison unit is skipped, or to improve processing speed. If the number of input data is smaller than the number of data that can be stored in the device, a method is used in which comparison units with no data stored are similarly skipped. For this reason, conventionally, a bypass data line was separately provided in the comparison unit, and in the case of the skip mode, data input from the previous stage was directly bypassed to the N subsequent stages through the bypass data line.

第3図に従来のデータ整列装置の構成例を示す。FIG. 3 shows an example of the configuration of a conventional data alignment device.

ニーで、10はデータ整列装置、20は装置10のデー
タ入力端子、30は同じく装置10のデータ出力端子、
40−1〜40−Uは比較ユニット、101は比較ユニ
ットのデータ入力端子、102は同じく比較ユニットの
データ出力端子である。
10 is a data alignment device, 20 is a data input terminal of the device 10, 30 is a data output terminal of the device 10,
40-1 to 40-U are comparison units, 101 is a data input terminal of the comparison unit, and 102 is a data output terminal of the comparison unit.

各比較ユニット40−1〜40−Uは、入力端子101
から入力される一方の整列済みデータ部分集合を格納す
るメモリ103、他方の整列済みデータ部分集合を格納
するメモリ104、メモリ103.104へのデータ読
み書きを各々行う続出し/IF込み回路105−1,1
05−2、メモリ103のデータの1語を格納するレジ
スタ106、メモリ104のデータの1語を格納するレ
ジスタ107、レジスタ10Bと107に格納されてい
るデータの値を比較する比較器108.レジスタ106
と107のいずれか一方のデータを出力端子102に転
送する経路を選択するマルチプレクサ109.比較器1
08から比較結果を受は取り。
Each comparison unit 40-1 to 40-U has an input terminal 101
A memory 103 that stores one sorted data subset inputted from the memory 103, a memory 104 that stores the other sorted data subset input from the memory 103, and a continuation/IF integrated circuit 105-1 that reads and writes data to and from the memories 103 and 104, respectively. ,1
05-2, a register 106 that stores one word of data in the memory 103, a register 107 that stores one word of data in the memory 104, and a comparator 108 that compares the values of the data stored in registers 10B and 107. register 106
and 107 for selecting a route for transferring the data to the output terminal 102. Comparator 1
Comparison results have been received since 2008.

それに基づいて当該比較ユニットの各部を制御する制御
回路110.スキップ用のデータ線111゜111とメ
モリからのデ、−夕線を選択するマルチプレクサ112
からなる。メモリ103と104の大きさは、比較ユニ
ット40−1ではに語、比較ユニット40−2ではkX
2語、比較ユニット40−3ではkX4語、比較ユニッ
ト40−Uではk X 2 u−1語である。
A control circuit 110 that controls each part of the comparison unit based on this. A multiplexer 112 for selecting the skip data line 111° 111 and the de, - evening line from the memory.
Consisting of The sizes of the memories 103 and 104 are 2 words in comparison unit 40-1 and kX in comparison unit 40-2.
2 words, kX4 words for comparison unit 40-3, and kX2u-1 words for comparison unit 40-U.

各比較ユニット40−1〜40−Uの動作モードには、
通常の整列を行う通常モードと当該比較ユニットをスキ
ップせしめるスキップモードとがある0通常モードでは
、メモリ103からレジスタ106へのデータの読出し
、メモリ104からレジスタ107へのデータの読出し
、レジスタ106と107のデータの値を比較器108
で比較し、データの出力端子102への出力、及び入力
端子101から入力されるデータのメモリ103あるい
は104への書込みの処理を繰返す。スキップモードで
は、入力端子101から入力されるデータをデータ線1
11→マルチプレクサ112→レジスタ106→マルチ
プレクサ109→出力端子102を通して次の比較ユニ
ットに送る。
The operation modes of each comparison unit 40-1 to 40-U include:
There is a normal mode in which normal alignment is performed and a skip mode in which the comparison unit is skipped. In normal mode, data is read from memory 103 to register 106, data is read from memory 104 to register 107, and registers 106 and 107 are read. Comparator 108
The process of outputting the data to the output terminal 102 and writing the data input from the input terminal 101 to the memory 103 or 104 is repeated. In skip mode, data input from input terminal 101 is transferred to data line 1.
11 → multiplexer 112 → register 106 → multiplexer 109 → send to the next comparison unit through output terminal 102.

なお、このようなデータ整列装置の処理については1例
えば特願昭60−96398号に詳述されている。
The processing of such a data sorting device is described in detail in, for example, Japanese Patent Application No. 60-96398.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このように、従来のデータ整列装置では、比較ユニット
をスキップさせるためには専用のデータ線111とマル
チプレクサ112を付加し、さらに、スキップする比較
ユニットでは通常の処理モードとは全く異なった処理パ
ターンを必要とする。
In this way, in the conventional data sorting device, a dedicated data line 111 and a multiplexer 112 are added in order to skip a comparison unit, and furthermore, the comparison unit to be skipped has a processing pattern that is completely different from the normal processing mode. I need.

このため、ハードウェア量が増す、制御が複雑になると
いう欠点があった。
For this reason, there are disadvantages in that the amount of hardware increases and the control becomes complicated.

本発明の目的は、比較ユニットをスキップさせる際に、
バイパス用の専用線を設けずに行うことにより、従来に
比べて構成及び制御の簡単なデータ整列装置を提供する
ことにある。
The purpose of the present invention is to: when skipping a comparison unit,
It is an object of the present invention to provide a data alignment device that is simpler in configuration and control than the conventional one by performing the operation without providing a dedicated line for bypass.

[問題点を解決するための手段及び作用〕本発明は、縦
続接続された複数の比較ユニットからなるデータ整列装
置において、比較ユニット内にすでにあるメモリをバッ
ファとして用い、当該ユニットをスキップされる場合、
入力されたデータをメモリに書込み、そのまへ読み出し
て次段へ出力することにより、スキップのための専用の
バイパス線を省略したことである。
[Means and effects for solving the problem] The present invention provides a data sorting device consisting of a plurality of comparison units connected in cascade, in which memory already existing in the comparison unit is used as a buffer, and when the unit is skipped. ,
By writing the input data into the memory, reading it out as is, and outputting it to the next stage, a dedicated bypass line for skipping can be omitted.

[実施例〕 以下、本発明の一実施例について図面により説明する。[Example〕 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例の構成図であり、第3図と異
なる点はバイパス用のデータ線111とマルチプレクサ
112が省略されていることである8本実施例では、比
較ユニット40−1をスキップする場合、メモリ103
内の予め定めた領域をバッファに用いるとし、スキップ
すべき比較ユニットは、整列が開始される前にメモリ1
03の番地、及びマルチプレクサ109を固定する。
FIG. 1 is a block diagram of an embodiment of the present invention, and the difference from FIG. 3 is that the data line 111 for bypass and the multiplexer 112 are omitted. 1, the memory 103
The comparison unit to be skipped is stored in memory 1 before alignment starts.
Address 03 and multiplexer 109 are fixed.

第2図はスキップする比較ユニットの制御を説明する状
態遷移図であって、200,201は状態、202は状
態の移遷の方向を示す。各状態は書込みと読出しの二つ
の処理からなり、これは通常の整列を行う場合と同じで
ある。
FIG. 2 is a state transition diagram illustrating the control of the comparison unit to skip, in which 200 and 201 indicate states, and 202 indicates the direction of state transition. Each state consists of two processes, write and read, which are the same as when performing normal alignment.

状態200では、書込み処理において、データ入力端子
101より整列済みデータ部分集合(1m)を入力し、
メモリ103の固定番地領域に格納し、読出し処理にお
いて、メモリ103の固定番地の領域から1語を読出し
、レジスタ106に格納する。この状態200は、スキ
ップすべき比較ユニットに入力される1語目のデータに
ついてのみ行われる処理である。状態200の処理が終
了すると状態201に移る。状態201では、書込み処
理において、データ入力端子101より次のデータを入
力し、メモリ103の同じく固定番地領域に格納すると
同時に、レジスタ106のデータをマルチプレクサ10
9を介して出力端子102へ出力し、読出し処理におい
ては状態200と同様に、メモリ103の固定番地領域
からデータを読出してレジスタ106に格納する。この
状態201は、スキップすべき比較ユニットに入力され
る2語目のデータ以降について繰り返される。
In state 200, in the write process, a sorted data subset (1m) is input from the data input terminal 101,
The word is stored in a fixed address area of the memory 103 , and in a read process, one word is read from the fixed address area of the memory 103 and stored in the register 106 . This state 200 is a process performed only on the first word data input to the comparison unit to be skipped. When the processing in state 200 is completed, the process moves to state 201. In state 201, in a write process, the next data is input from the data input terminal 101 and stored in the same fixed address area of the memory 103, and at the same time, the data in the register 106 is transferred to the multiplexer 10.
9 to the output terminal 102, and in the read process, data is read from the fixed address area of the memory 103 and stored in the register 106, similar to state 200. This state 201 is repeated for data from the second word input to the comparison unit to be skipped.

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

以上説明したように1本発明では比較ユニットにすでに
あるメモリを利用して、該比較ユニットをスキップさせ
るため、スキップ機能の付加によるハードウェア量の増
加がなく、かつ、通常の整列処理と同様にメモリへの読
み/書きの2処理でスキップ処理ができるので制御が容
易であるという利点がある。
As explained above, in the present invention, since the memory already existing in the comparison unit is used to skip the comparison unit, there is no increase in the amount of hardware due to the addition of the skip function, and the same processing as normal sorting processing is performed. Skip processing can be performed with two processes, reading and writing to the memory, so there is an advantage that control is easy.

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

第1図は本発明によるデータ整列装置の一実施例を示す
構成図、第2図は第1図におけるスキップ制御を説明す
るための状態遷移図、第3図は従来のデータ整列装置の
構成図である。 10・・・データ整列装置、 20・・・装[10のデ
ータ入力端子、 30・・・装置10のデータ出力端子
、 40−1〜40−U・・・比較ユニット、101・
・・比較ユニットのデータ入力端子、102・・・比較
ユニットのデータ出力端子、103.104・・・メモ
リ。 106.107・・・レジスタ、 108・・・比較器
、109・・・マルチプレクサ、  110・・・制御
回路。 第2図
FIG. 1 is a configuration diagram showing an embodiment of a data alignment device according to the present invention, FIG. 2 is a state transition diagram for explaining the skip control in FIG. 1, and FIG. 3 is a configuration diagram of a conventional data alignment device. It is. DESCRIPTION OF SYMBOLS 10... Data alignment device, 20... Data input terminal of device 10, 30... Data output terminal of device 10, 40-1 to 40-U... Comparison unit, 101.
. . . Data input terminal of the comparison unit, 102 . . . Data output terminal of the comparison unit, 103. 104 . . . Memory. 106.107...Register, 108...Comparator, 109...Multiplexer, 110...Control circuit. Figure 2

Claims (1)

【特許請求の範囲】[Claims] (1)複数の比較ユニットを縦続接続し、各比較ユニッ
トで並列的に、前段から入力される整列済みデータ部分
集合を2組ずつ整列して併合し、該併合結果の整列済み
データ部分集合を後段に出力して、データ集合をデータ
値の小さい順もしくは大きい順の並べ換えるデータ整列
装置において、ある比較ユニットをスキップさせる場合
、比較ユニットにある整列済みデータ部分集合格納用の
メモリをバッファとして用い、前段から入力されたデー
タをメモリに書き込み、そのまゝ読み出して次段へ出力
することを特徴とするデータ整列装置の比較ユニットス
キップ方式。
(1) Multiple comparison units are connected in cascade, each comparison unit sorts and merges two sets of sorted data subsets input from the previous stage in parallel, and the sorted data subsets resulting from the merging are In a data sorting device that outputs data to a subsequent stage and sorts the data set in ascending or descending order of data values, when skipping a certain comparison unit, the memory for storing sorted data subsets in the comparison unit is used as a buffer. , a comparison unit skip method for a data alignment device, characterized in that data input from a previous stage is written into a memory, read out as is, and output to the next stage.
JP29856286A 1986-12-15 1986-12-15 Comparing unit skip system for data aligning device Pending JPS63149726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29856286A JPS63149726A (en) 1986-12-15 1986-12-15 Comparing unit skip system for data aligning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29856286A JPS63149726A (en) 1986-12-15 1986-12-15 Comparing unit skip system for data aligning device

Publications (1)

Publication Number Publication Date
JPS63149726A true JPS63149726A (en) 1988-06-22

Family

ID=17861349

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29856286A Pending JPS63149726A (en) 1986-12-15 1986-12-15 Comparing unit skip system for data aligning device

Country Status (1)

Country Link
JP (1) JPS63149726A (en)

Similar Documents

Publication Publication Date Title
US4490786A (en) Vector processing unit
US20040172581A1 (en) External storage device and memory access control method thereof
US5673415A (en) High speed two-port interface unit where read commands suspend partially executed write commands
JP2001195353A (en) Dma transfer system
JPS63149726A (en) Comparing unit skip system for data aligning device
JPS63116262A (en) Data processor
US6510480B1 (en) Data transfer circuit and data processing method using data transfer circuit for handling interruption processing
JPH02103632A (en) Arithmetic processor
JPH06231259A (en) Fuzzy neuron
JP2669028B2 (en) Command register circuit
JPH03233740A (en) Memory access device
JPS59105151A (en) Controlling method of interruption
JP2953169B2 (en) Data processing device
JP2989962B2 (en) Vector processing equipment
JPS61255434A (en) Data aligning device
JPS6136854A (en) Memory switching device
JPS6087491A (en) Memory device control system
JPS63249239A (en) Image storage circuit
JPH04140843A (en) Register file
JPH1021053A (en) Data processor
JPH02287732A (en) Register address generating device
JPS63220496A (en) Semiconductor memory device
JPH0697458B2 (en) Vector processor equipment
JPH02276090A (en) Semiconductor memory integrated circuit
JPH01199399A (en) Semiconductor memory