Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0782425B2 - Sorting circuit - Google Patents
[go: Go Back, main page]

JPH0782425B2 - Sorting circuit - Google Patents

Sorting circuit

Info

Publication number
JPH0782425B2
JPH0782425B2 JP1295382A JP29538289A JPH0782425B2 JP H0782425 B2 JPH0782425 B2 JP H0782425B2 JP 1295382 A JP1295382 A JP 1295382A JP 29538289 A JP29538289 A JP 29538289A JP H0782425 B2 JPH0782425 B2 JP H0782425B2
Authority
JP
Japan
Prior art keywords
data
data number
reference axis
storage area
memory
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
JP1295382A
Other languages
Japanese (ja)
Other versions
JPH02224018A (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.)
Namco Ltd
Original Assignee
Namco 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 Namco Ltd filed Critical Namco Ltd
Priority to JP1295382A priority Critical patent/JPH0782425B2/en
Publication of JPH02224018A publication Critical patent/JPH02224018A/en
Publication of JPH0782425B2 publication Critical patent/JPH0782425B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はソーティング回路、特に複数の基準軸データを
ソーティングする回路に関する。
The present invention relates to a sorting circuit, and more particularly to a circuit for sorting a plurality of reference axis data.

[背景技術] 画像合成回路は、外部から供給される画像情報に基づ
き、CRT表示用の各種画像信号を合成出力するものであ
り、単に2次元的な平面画像ばかりでなく、立体的な3
次元画像をも合成出力することができることから、例え
ば3次元画像用のビデオゲーム、飛行機および各種乗物
の操縦シュミレータ、コンピュータグラフィックス、CA
D装置のディスプレイおよびその他の用途に幅広く用い
られている。
[Background Art] An image synthesizing circuit synthesizes and outputs various image signals for CRT display based on image information supplied from the outside, and is not only a two-dimensional plane image but also a three-dimensional image.
Since three-dimensional images can also be composited and output, for example, video games for three-dimensional images, flight simulators for airplanes and various vehicles, computer graphics, CA.
Widely used for D device display and other applications.

ところで、画像合成回路を用いて奥行をもった3次元画
像をリアルタイムで合成する場合には、各標体の3次元
データを画像奥行方向の座標値、すなわちZ軸データに
基づき各フレーム毎に高速でソーティングしてやる必要
がある。
By the way, in the case of synthesizing a three-dimensional image having a depth in real time by using an image synthesizing circuit, the three-dimensional data of each object is processed at high speed for each frame based on the coordinate value in the image depth direction, that is, Z axis data. I need to sort it out.

このために、複数の3次元データを所定の基準軸デー
タ、すなわちZ軸データに基づき高速ソーティングでき
る回路の開発が望まれていた。
Therefore, it has been desired to develop a circuit capable of high-speed sorting of a plurality of three-dimensional data based on predetermined reference axis data, that is, Z axis data.

しかし、従来このようなソーティングは、各データに含
まれるZ軸データの隣接するものどうしを逐次比較して
その都度並べ変えるという作業を、全データに対して行
っていた。
However, conventionally, such sorting has been performed on all data by sequentially comparing adjacent Z-axis data included in each data and rearranging each time.

このためには、メモリ間における全Z軸データのデータ
転送を、多数回に渡って繰返し行われなければならな
い。従って、データのソーティング作業を高速で行うこ
とができないという問題があった。
For this purpose, data transfer of all Z-axis data between memories must be repeated many times. Therefore, there is a problem that the data sorting operation cannot be performed at high speed.

特に、この従来技術では、比較対象とするZ軸データの
個数が多くなると、ソーティング作業に時間と手間がか
かりすぎる。従って、これを高速ソーティングしようと
する場合には、比較的大型のコンピュータを用いなけれ
ばならず、装置全体が複雑かつ高価のものとなってしま
うという問題があった。
In particular, in this conventional technique, when the number of Z-axis data to be compared increases, the sorting work takes too much time and effort. Therefore, in order to perform high-speed sorting, a relatively large computer must be used, and there is a problem that the entire device becomes complicated and expensive.

[発明が解決しようとする課題] 本発明の目的は、複数のデータのソーティングを簡単な
構成で高速に行うことができ、特にソーティング対象と
なる基準軸データの個数が多いような場合でもソーティ
ングを高速で行うことが可能なソーティング回路を提供
することにある。
[Problems to be Solved by the Invention] An object of the present invention is to sort a plurality of data at high speed with a simple configuration, and particularly when the number of reference axis data to be sorted is large. It is to provide a sorting circuit that can be performed at high speed.

[課題を解決するための手段] 前記目的を達成するため、本発明は、 複数のデータとこれに1対1に対応する所定の基準軸デ
ータが入力され、前記複数のデータを前記基準軸データ
に基づきソーティングする回路であって、 前記複数のデータを、この複数のデータと前記基準軸デ
ータに共通するデータ番号に対応させて記憶する情報メ
モリと、 前記基準軸データが入力されるソーティング手段と、 を含み、前記ソーティング手段は、 入力される各基準軸データに対応したデータ番号を発生
するデータ番号発生手段と、 前記基準軸データに基づきアドレスが指定されるファー
ストデータ番号記憶エリアを有し、各記憶エリアに対応
する基準軸データが最初に入力されたとき、この記憶エ
リアにデータ番号発生手段の発生するデータ番号を記憶
するファーストバッファメモリと、 前記基準軸データに基づきアドレスが指定されるラスト
データ番号記憶エリアを有し、各記憶エリアに対応する
基準軸データが入力される毎に、この記憶エリアにデー
タ番号発生手段の発生するデータ番号を更新記憶するラ
ストバッファメモリと、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアを有するチェインバッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定されるチェインデータ番
号記憶エリアに、更新される新たなデータ番号を書き込
む第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定されるチェイ
ンデータ番号記憶エリアに、該ラストデータ番号記憶エ
リアと所定の対応関係にある前記ファーストデータ番号
記憶エリアに記憶されたデータ番号を書込むことによ
り、チェインデータ番号記憶エリア内に基準軸データが
昇順または降順に連鎖するようデータ番号を書込む第2
の制御手段と、 チェインデータ番号記憶エリア内に書込まれたデータ番
号を所定の読出し規則に従い読出し、読出したデータ番
号順に前記情報メモリからデータを読み出す第3の制御
手段と、 を含み、複数のデータを基準軸データに基づきソーティ
ング出力することを特徴とする。
[Means for Solving the Problems] In order to achieve the above-mentioned object, according to the present invention, a plurality of data and predetermined reference axis data corresponding to one to one are input, and the plurality of data are converted into the reference axis data. An information memory for storing the plurality of data in association with a data number common to the plurality of data and the reference axis data, and a sorting means to which the reference axis data is input. The sorting means has a data number generating means for generating a data number corresponding to each input reference axis data, and a first data number storage area in which an address is designated based on the reference axis data, When the reference axis data corresponding to each storage area is first input, the data number generated by the data number generating means is recorded in this storage area. It has a first buffer memory to store and a last data number storage area whose address is specified based on the reference axis data, and a data number is generated in this storage area every time the reference axis data corresponding to each storage area is input. A last buffer memory for updating and storing the data number generated by the means, a chain buffer memory having a chain data number storage area whose address is designated based on the data number, and each time the data number of the last buffer memory is updated, First control means for writing a new data number to be updated in a chain data number storage area specified by the data number before updating, and last data after writing the data number to the first buffer memory and the last buffer memory Designated by the data number stored in the number storage area By writing the data number stored in the first data number storage area having a predetermined correspondence with the last data number storage area to the chain data number storage area, the reference axis data is stored in the chain data number storage area. Write the data numbers so that the numbers are linked in ascending or descending order.
And a third control means for reading the data numbers written in the chain data number storage area according to a predetermined read rule and reading the data from the information memory in the order of the read data numbers. The feature is that the data is sorted and output based on the reference axis data.

また、本発明は、 複数桁からなる複数の基準軸データをソーティングする
回路であって、 入力される各基準軸データに対応するデータ番号を発生
するデータ番号発生手段と、 前記各基準軸データを、そのデータ番号に対応させて記
憶する基準時データメモリと、 前記基準軸データメモリから出力される複数桁の基準軸
データを1乃至複数桁からなる複数のサーチ群に分割し
た場合に、各サーチ群の値に基づきアドレスが指定され
るファーストデータ番号記憶エリアを有し、各記憶エリ
アに対応する各サーチ群が最初に入力されたとき、この
記憶エリアにデータ番号発生手段の発生するデータ番号
を記憶するファーストバッファメモリと、 前記基準軸データメモリから出力される前記各サーチ群
の値に基づきアドレスが指定されるラストデータ番号記
憶エリアを有し、各記憶エリアに対応する各サーチ群が
入力される毎に、この記憶エリアにデータ番号発生手段
の発生するデータ番号に更新するラストバッファメモリ
と、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアをそれぞれが有する少なくとも2つの
チェインバッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定される前記少なくとも2
つのチェインバッファメモリの中のいずれか一の前記チ
ェインデータ番号記憶エリアに、更新される新たなデー
タ番号を書き込む第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定される前記い
ずれか一のチェインデータ番号記憶エリアに、該ラスト
データ番号記憶エリアと所定の対応関係にある前記ファ
ーストデータ番号記憶エリアに記憶されたデータ番号を
書込むことにより、前記いずれか一つのチェインデータ
番号記憶エリア内に前記各サーチ群の値が昇順または降
順に連鎖するようデータ番号を書き込む第2の制御手段
と、 前記基準軸データのサーチの対象となるサーチ群を下位
桁から上位桁に向けて更新し、新たにサーチ対象となっ
た前記サーチ群を前記第2の制御手段によってチェイン
データ番号記憶エリアに書き込まれた順に前記基準軸デ
ータメモリから読み出して、前記第1の制御手段および
前記第2の制御手段による処理を前記チェインバッファ
メモリを切り替えながら前記基準軸データの最上位側に
位置するサーチ群に至るまで繰り返し行う第4の制御手
段と、 最上位側のサーチ群のソーティング処理が終了した後、
対応する前記チェインデータ番号記憶エリア内に書き込
まれたデータ番号を所定の読み出し規則に従い読み出
し、読み出したデータ番号順に基準軸データメモリから
各基準軸データをソーティング出力する第3の制御手段
と、 を含むことを特徴とする。
Further, the present invention is a circuit for sorting a plurality of reference axis data consisting of a plurality of digits, wherein the reference number data is generated by a data number generating means for generating a data number corresponding to each input reference axis data. A reference time data memory that stores the data corresponding to the data number, and a plurality of digits of the reference axis data output from the reference axis data memory are divided into a plurality of search groups each including one to a plurality of digits. There is a first data number storage area whose address is designated based on the value of the group, and when each search group corresponding to each storage area is first input, the data number generated by the data number generating means is stored in this storage area. A first buffer memory for storing the last buffer, and an address designated based on the value of each search group output from the reference axis data memory. Has a data number storage area, and each time each search group corresponding to each storage area is input, a last buffer memory that updates the data number generated by the data number generation means in this storage area, and an address based on the data number At least two chain buffer memories each having a chain data number storage area designated by: and each time the data number of the last buffer memory is updated, the at least two designated by the data number before update
First control means for writing a new data number to be updated in any one of the chain data number storage areas in one chain buffer memory, and after the completion of writing the data number in the first buffer memory and the last buffer memory , A chain data number storage area specified by the data number stored in the last data number storage area, and stored in the first data number storage area having a predetermined correspondence with the last data number storage area. Second control means for writing the data numbers so that the values of the respective search groups are linked in ascending or descending order in any one of the chain data number storage areas, and the reference axis data. Update the search group that is the target of the search from the lower digit to the upper digit. The newly searched search groups are read from the reference axis data memory in the order in which they are written in the chain data number storage area by the second control means, and the first control means and the second control means are read. Fourth control means for repeatedly performing the processing according to (4) while switching the chain buffer memory until the search group located on the uppermost side of the reference axis data, and after the sorting processing of the uppermost side search group is completed,
Third control means for reading out the data number written in the corresponding chain data number storage area according to a predetermined reading rule and sorting and outputting each reference axis data from the reference axis data memory in the order of the read data number. It is characterized by

また、本発明は、 複数のデータとこれに1対1に対応する所定の桁からな
る所定の基準時データをソーティングする回路であっ
て、 前記複数のデータを、これら複数のデータと前記基準軸
データに共通するデータ番号に対応させて記憶する情報
メモリと、 前記基準軸データが入力されるソーティング手段と、 を含み、前記ソーティング手段は、 各基準軸データに対応する前記データ番号を発生するデ
ータ番号発生手段と、 各基準軸データを、そのデータ番号に対応させて記憶す
る基準軸データメモリと、 前記基準軸データメモリから出力される複数桁の基準軸
データを1乃至複数桁からなる複数のサーチ群に分割し
た場合に、各サーチ群の値に基づきアドレスが指定され
るファーストデータ番号記憶エリアを有し、各記憶エリ
アに対応する各サーチ群が最初に入力されたとき、この
記憶エリアにデータ番号発生手段の発生するデータ番号
を記憶するファーストバッファメモリと、 前記基準軸データメモリから出力される前記各サーチ群
の値に基づきアドレスが指定されるラストデータ番号記
憶エリアを有し、各記憶エリアに対応する各サーチ群が
入力される毎に、この記憶エリアにデータ番号発生手段
の発生するデータ番号を更新記憶するラストバッファメ
モリと、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアをそれぞれが有する少なくとも2つの
チェインバッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定される前記少なくとも2
つのチェインバッファメモリの中のいずれか一の前記チ
ェインデータ番号記憶エリアに、更新される新たなデー
タ番号を書き込む第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定される前記い
ずれか一のチェインデータ番号記憶エリアに、該ラスト
データ番号記憶エリアと所定の対応関係にある前記ファ
ーストデータ番号記憶エリアに記憶されたデータ番号を
書き込むことにより、前記いずれか一のチェインデータ
番号記憶エリア内に前記各サーチ群の値が昇順または降
順に連鎖するようデータ番号を書き込む第2の制御手段
と、 前記基準軸データのサーチの対象となるサーチ群を下位
桁から上位桁に向けて変更し、新たにサーチ対象となっ
た前記サーチ群を前記第2の制御手段によってチェイン
データ番号記憶エリアに書き込まれた順に前記基準軸デ
ータメモリから読み出して、前記第1の制御手段および
前記第2の制御手段による処理を前記チェインバッファ
メモリを切り替えながら前記基準軸データの最上位側に
位置するサーチ群に至るまで繰り返し行う第4の制御手
段と、 最上位側のサーチ群のソーティング処理が終了した後、
対応する前記チェインデータ番号記憶エリア内に書き込
まれたデータ番号を所定の読み出し規則に従い読み出
し、読み出したデータ番号順に前記情報メモリからデー
タを読み出す第3の制御手段と、 を含み、複数のデータを基準軸データに基づきソーティ
ング出力することを特徴とする。
Further, the present invention is a circuit for sorting a plurality of data and a predetermined reference time data consisting of a predetermined digit corresponding to the plurality of data, wherein the plurality of data is stored in the plurality of data and the reference axis. An information memory for storing a data number common to the data; and a sorting means for inputting the reference axis data, wherein the sorting means generates data for generating the data number corresponding to each reference axis data. A number generating means, a reference axis data memory for storing each reference axis data in association with the data number, and a plurality of digits of the reference axis data output from the reference axis data memory are stored in a plurality of one to a plurality of digits. When divided into search groups, it has a first data number storage area whose address is specified based on the value of each search group and corresponds to each storage area. Based on the value of each search group output from the reference axis data memory, a first buffer memory that stores the data number generated by the data number generating means in this storage area when each search group is first input. A last buffer memory which has a last data number storage area in which an address is designated and which updates and stores the data number generated by the data number generating means in this storage area each time each search group corresponding to each storage area is input. And at least two chain buffer memories each having a chain data number storage area whose address is designated based on the data number, and each time the data number of the last buffer memory is updated, the data number before the update is designated. At least 2
First control means for writing a new data number to be updated in any one of the chain data number storage areas in one chain buffer memory, and after the completion of writing the data number in the first buffer memory and the last buffer memory , A chain data number storage area specified by the data number stored in the last data number storage area, and stored in the first data number storage area having a predetermined correspondence with the last data number storage area. Second control means for writing the data numbers so that the values of the respective search groups are linked in ascending or descending order in any one of the chain data number storage areas, and the reference axis data Change the search group to be searched from the lower digit to the upper digit. The newly searched search groups are read from the reference axis data memory in the order in which they are written in the chain data number storage area by the second control means, and the first control means and the second control means are read. Fourth control means for repeatedly performing the processing according to (4) while switching the chain buffer memory until the search group located on the uppermost side of the reference axis data, and after the sorting processing of the uppermost side search group is completed,
A third control means for reading the data number written in the corresponding chain data number storage area according to a predetermined reading rule and reading the data from the information memory in the order of the read data number; The feature is that the sorting output is performed based on the axis data.

[作用] このように、本発明によれば、ソーティングの対象とな
る基準軸データを、そのデータ番号順にファーストバッ
ファメモリおよびラストバッファメモリへ入力する。
[Operation] As described above, according to the present invention, the reference axis data to be sorted is input to the first buffer memory and the last buffer memory in the order of the data numbers.

そして、ファーストバッファメモリは、そのファースト
データ番号記憶エリアに、対応する基準軸データが最初
に入力されたときのデーア番号を記憶する。
Then, the first buffer memory stores the data number when the corresponding reference axis data is first input, in the first data number storage area.

同様にして、ラストバッファメモリは、そのラストデー
タ番号記憶エリアに、対応する基準軸データが読出され
る毎に、そのデータ番号を順次更新記憶する。従って、
各ラストデータ番号には、対応する基準軸データが最後
に読出されたときのデータ番号が記憶されることにな
る。
Similarly, the last buffer memory sequentially updates and stores the corresponding data number in the last data number storage area each time the corresponding reference axis data is read. Therefore,
In each last data number, the data number when the corresponding reference axis data was last read is stored.

また、ラストデータ番号記憶エリアに記憶されているデ
ータ番号が更新記憶されると、その記憶エリアに記憶さ
れていたデータ番号と新たに記憶されるデータ番号とが
チェインバッファメモリへ向け入力される。
When the data number stored in the last data number storage area is updated and stored, the data number stored in the storage area and the newly stored data number are input to the chain buffer memory.

そして、チェインバッファメモリは、ラストデータ番号
記憶エリアのデータが更新される毎に、更新前のデータ
番号で指定されるチェインデータ番号記憶エリアに、更
新後の新たなデータ番号を書込む。従って、値が同じで
かつデータ番号のみ異なる基準軸データが繰返して入力
された場合は、その基準軸データの履歴、すなわち、そ
の基準軸データがどのようなデータ番号順で入力された
かがチェインデータ番号記憶エリアに書込まれることに
なる。
Then, each time the data in the last data number storage area is updated, the chain buffer memory writes a new data number after update in the chain data number storage area specified by the data number before update. Therefore, when the reference axis data with the same value and different data number is repeatedly input, the history of the reference axis data, that is, the order of the data number of the reference axis data, is the chain data number. It will be written in the storage area.

このような一連のファーストバッファメモリ、ラストバ
ッファメモリおよびチェインバッファメモリへのデータ
書込み終了後、ラストデータ番号記憶エリアに記憶され
たデータ番号で指定されるチェインデータ番号記憶エリ
アに、該ラストデータ番号と記憶エリア所定の対応関係
にあるファーストデータ番号記憶エリアに記憶されたデ
ータ番号が順次書込まれる。このようにして、チェイン
データ番号記憶エリアの各記憶エリアには、基準軸デー
タが昇順または降順に連鎖するようデータ番号が書込ま
れることになる。
After the data writing to the series of first buffer memory, last buffer memory and chain buffer memory is completed, the last data number and the last data number are stored in the chain data number storage area specified by the data number stored in the last data number storage area. Storage area The data numbers stored in the first data number storage area having a predetermined correspondence are sequentially written. In this way, the data numbers are written in the respective storage areas of the chain data number storage area so that the reference axis data are linked in ascending or descending order.

そして、本発明のソーティング回路では、チェインデー
タ番号記憶エリア内に書込まれたデータ番号を、所定の
読出し規則に従って読出している。そして、入力された
基準軸データを、このようにして読出されたデータ番号
順に出力するように読出し制御している。
In the sorting circuit of the present invention, the data number written in the chain data number storage area is read according to a predetermined read rule. Then, read control is performed so that the input reference axis data is output in the order of the data numbers thus read.

このようにすることにより、入力された基準軸データが
昇順または降順にソーティング出力されることになる。
By doing so, the input reference axis data is sorted and output in ascending or descending order.

特に、請求項(1)記載のソーティング回路では、この
ように読出されたデータ番号順に、情報メモリからデー
タが出力されるよう読出し制御している。このようにす
ることにより、情報メモリからは、複数のデータが基準
軸データに基づき昇順または降順にソーティング出力さ
れることとなる。
Particularly, in the sorting circuit according to the first aspect, the reading control is performed so that the data is output from the information memory in the order of the data numbers thus read. By doing so, the plurality of data are sorted and output from the information memory in ascending or descending order based on the reference axis data.

以上説明したように、本発明によれば、大まかに分け
て、入力される基準軸のデータのファーストバッファメ
モリ、ラストバッファメモリおよびチェインバッファメ
モリへのデータ転送と、ファーストバッファメモリ、ラ
ストバッファメモリからチェインバッファメモリへのデ
ータ転送とからなる2回の転送作業により、基準軸デー
タのソーティングを行うことができる。このため、従来
のように互いに隣接する基準軸データを比較して、基準
軸データそのものを逐次並べ変えるというソーティング
技術に比べ、データ転送の回数が大巾に減少し、ソーテ
ィングを高速で行うことができる。
As described above, according to the present invention, roughly, the data transfer of the input reference axis data to the first buffer memory, the last buffer memory and the chain buffer memory, and the transfer from the first buffer memory and the last buffer memory are performed. The reference axis data can be sorted by two transfer operations including data transfer to the chain buffer memory. For this reason, the number of data transfers is significantly reduced, and sorting can be performed at high speed, as compared with the conventional sorting technology in which adjacent reference axis data are compared and the reference axis data themselves are sequentially rearranged. it can.

さらに、本発明によれば、基準時データそのものを用い
てソーティングするのではなく、基準軸データのデータ
番号を利用し、基準軸データを間接的にソーティングす
るために、仮に基準軸の桁数およびデータ数が多い場合
でも、簡単かつ高速にソーティングを行うことができ
る。
Furthermore, according to the present invention, instead of using the reference time data itself for sorting, the data number of the reference axis data is used to indirectly sort the reference axis data. Even if the number of data is large, sorting can be performed easily and at high speed.

特に、請求項(1)の発明によれば、入力された基準軸
データを記憶しておくためのメモリが不要であり、より
簡単な回路でソーティングを行うことが可能となる。
In particular, according to the invention of claim (1), a memory for storing the input reference axis data is unnecessary, and the sorting can be performed by a simpler circuit.

また、請求項(2)および(3)の発明によれば、基準
軸データの桁数が長い場合であっても、各バッファメモ
リのメモリ容量を増やさずにすみ、より簡単な回路でソ
ーティングを行うことが可能となる。
Further, according to the inventions of claims (2) and (3), even if the number of digits of the reference axis data is long, it is not necessary to increase the memory capacity of each buffer memory, and sorting can be performed with a simpler circuit. It becomes possible to do.

[実施例] 次に本発明の好適な実施例を図面に基づき説明する。[Embodiment] Next, a preferred embodiment of the present invention will be described with reference to the drawings.

第1実施例 第1図には本発明に係るソーティング回路の好適な実施
例が示されている。実施例の回路は、データ発生回路8
から出力される基準軸データをソーティング出力するも
のであり、基準軸データメモリ10と、データ番号ポイン
タ12と、ファーストバッファメモリ20と、ラストバッフ
ァメモリ30と、チェインバッファメモリ40と、これら各
メモリに対するデータの書込読出を制御するソーティン
グ制御回路80とを含む。
First Embodiment FIG. 1 shows a preferred embodiment of a sorting circuit according to the present invention. The circuit of the embodiment is a data generation circuit 8
The reference axis data output from the reference axis data memory 10, the data number pointer 12, the first buffer memory 20, the last buffer memory 30, the chain buffer memory 40, and each of these memories. And a sorting control circuit 80 for controlling writing and reading of data.

(a)基準軸データメモリ10への書込/読出 前記基準軸データメモリ10は、データ番号ポインタ12に
よって指定される1〜Nまでの合計N個の基準軸データ
記憶エリア14を有する。ここにおいて、基準軸データ
が、Mビットデータで構成されているとすれば、各基準
軸データ記憶エリア14はそれぞれMビットの記憶容量を
もつように形成すればよい。
(A) Writing / reading to / from the reference axis data memory 10 The reference axis data memory 10 has a total of N reference axis data storage areas 14 from 1 to N designated by the data number pointer 12. Here, if the reference axis data is composed of M-bit data, each reference axis data storage area 14 may be formed to have a storage capacity of M bits.

そして、外部からソーティング対象となる複数の基準軸
データが入力されると、その基準軸データにはその入力
順に1〜Nのデータ番号が割振られ、データ番号ポイン
タ12によってアドレス指定される1〜Nの基準軸データ
記憶エリア14に順次書込まれる。
When a plurality of reference axis data to be sorted are input from the outside, data numbers 1 to N are assigned to the reference axis data in the order of input, and data numbers 1 to N addressed by the data number pointer 12 are assigned. Are sequentially written in the reference axis data storage area 14.

このようにして、基準軸データメモリ10内へソーティン
グの対象となる基準軸データの書込みが終了すると、次
にこの基準軸データメモリ10から基準軸データが1〜N
のデータ番号順に順に読出され、ファーストバッファメ
モリ20およびラストバッファメモリ30に向け出力され
る。
In this way, when the writing of the reference axis data to be sorted into the reference axis data memory 10 is completed, the reference axis data from the reference axis data memory 10 is 1 to N.
Are sequentially read out in the order of the data numbers and output to the first buffer memory 20 and the last buffer memory 30.

実施例において、この基準軸データの読出しは、データ
番号ポインタ12から読出アドレスとしてデータ番号が1
〜Nの順で順次出力されることにより行われる。そし
て、データ番号によりアドレスが指定されると、指定さ
れた基準軸データ記憶エリア14からファーストバッファ
メモリ20およびラストバッファメモリ30に向け基準軸デ
ータが読出される。
In the embodiment, the reference axis data is read from the data number pointer 12 with a data number of 1 as a read address.
It is performed by sequentially outputting in the order of ~ N. When the address is designated by the data number, the reference axis data is read from the designated reference axis data storage area 14 toward the first buffer memory 20 and the last buffer memory 30.

(b)バッファメモリ20、30への書込み また、前記ファーストバッファメモリ20およびラストバ
ッファメモリ30は、基準軸データが取り得る値の全てに
1対1に対応するファーストデータ番号記憶エリア24、
ラストデータ番号記憶エリア34を有する。
(B) Writing to the buffer memories 20 and 30 Further, the first buffer memory 20 and the last buffer memory 30 have a first data number storage area 24 that corresponds to all possible values of the reference axis data in a one-to-one correspondence,
It has a last data number storage area 34.

実施例のように、基準軸データがMビットで構成されて
いる場合には、0,1,2…(2M−1)の合計2M個の値を取
り得る。
When the reference axis data is composed of M bits as in the embodiment, a total of 2 M values of 0, 1, 2 ... (2 M −1) can be taken.

従って、前記ファーストバッファメモリ20には、少なく
とも0,1,2…(2M−1)の各アドレスで指定される2M
のファーストデータ番号記憶エリア24が設けられてい
る。同様にして、前記ラストバッファメモリ30に、少な
くとも0,1,2…(2M−1)の各アドレスで指定される2M
個のファーストデータ番号記憶エリア34が設けられてい
る。
Therefore, the fast buffer memory 20 is provided with at least 2 M fast data number storage areas 24 designated by respective addresses of 0, 1, 2 ... (2 M −1). Similarly, the last buffer memory 30, 2 are designated by the respective addresses of at least 0,1,2 ... (2 M -1) M
An individual first data number storage area 34 is provided.

また、これらファーストデータ番号記憶エリア24および
ラストデータ番号記憶エリア34には、基準軸データメモ
リ10から出力される基準軸データのデータ番号が書込ま
れる。本実施例において、データ番号は1〜Nで表わさ
れ、その最大値はNである。従って、前記各データ番号
記憶エリア24、34は、それぞれ{log2N}ビット(但
し、{ }は小数点以下を切り上げた整数を意味する記
号とする)の容量をもつように形成すればよい。
Further, the data number of the reference axis data output from the reference axis data memory 10 is written in the first data number storage area 24 and the last data number storage area 34. In the present embodiment, the data numbers are represented by 1 to N, and the maximum value is N. Therefore, each of the data number storage areas 24 and 34 may be formed so as to have a capacity of {log 2 N} bits (where {} is a symbol representing an integer rounded up to the nearest whole number).

そして、基準軸データメモリ10からファーストバッファ
メモリ20およびラストバッファメモリ30に基準軸データ
が入力されると、これらファーストバッファメモリ20お
よびラストバッファメモリ30は、対応するアドレスポイ
ンタ22および32によって指定されるデータ番号記憶エリ
ア24、34へその基準軸データのデータ番号の書込みを行
う。
Then, when the reference axis data is input from the reference axis data memory 10 to the first buffer memory 20 and the last buffer memory 30, the first buffer memory 20 and the last buffer memory 30 are designated by the corresponding address pointers 22 and 32. The data number of the reference axis data is written in the data number storage areas 24 and 34.

本実施例において、この様なデータの書込みは、ソーテ
ィング制御回路80の第1の制御回路80aを用い、次のよ
うにして行われる。
In the present embodiment, such data writing is performed as follows using the first control circuit 80a of the sorting control circuit 80.

すなわち、基準軸データメモリ10から、データ番号ポイ
ンタ12によって指定されるデータ番号の基準軸データが
出力されると、その基準軸データはアドレスポインタ2
2、32にセットされ、これらアドレスポインタ22、32か
らは、セットされた基準軸データが書込アドレスとして
出力される。そして、この書込アドレスによって指定さ
れる各データ番号記憶エリア24、34に、データ番号ポイ
ンタ12によって指定されるデータ番号(基準軸データに
対応するデータ番号)が書込まれることになる。
That is, when the reference axis data of the data number designated by the data number pointer 12 is output from the reference axis data memory 10, the reference axis data is stored in the address pointer 2.
The reference axis data thus set is output as a write address from the address pointers 22 and 32. Then, the data number (the data number corresponding to the reference axis data) designated by the data number pointer 12 is written in each of the data number storage areas 24, 34 designated by the write address.

ここにおいて、ファーストデータ番号記憶エリア24は、
一旦データ番号が記憶されると、基準軸データメモリ10
から同じ値の新たな基準軸データが順次出力されても、
新たなデータ番号は重ね書きされないように形成されて
いる。これに対し、ラストデータ番号記憶エリア34は、
一旦データ番号が記憶されても、次に基準軸データメモ
リ10から同じ値の基準軸データが出力されると、その基
準軸データのデータ番号が新たに更新記憶されるように
形成されている。
Here, the first data number storage area 24 is
Once the data number is stored, the reference axis data memory 10
Even if new reference axis data with the same value is sequentially output from,
The new data number is formed so as not to be overwritten. On the other hand, the last data number storage area 34 is
Even if the data number is stored once, when the reference axis data having the same value is output from the reference axis data memory 10 next time, the data number of the reference axis data is newly updated and stored.

このように、ファーストデータ番号記憶エリア24には、
この基準軸データの値が初めて出現したときのデータ番
号が記憶される。これに対し、ラストデータ番号記憶エ
リア34には、各基準軸データの値が最後に出現したとき
のデータ番号が記憶されることになる。
In this way, in the first data number storage area 24,
The data number when the value of the reference axis data first appears is stored. On the other hand, the last data number storage area 34 stores the data number when the value of each reference axis data appeared last.

このため、ファーストデータ番号記憶エリア24およびラ
ストデータ番号記憶エリア34の同じアドレスには、基準
軸データメモリ10から同じ値の基準軸データが1回しか
出力されない場合には同じデータ番号が書込まれること
になるが、同じ値の基準軸データが複数回にわたって出
力されると、最終的には異なるデータ番号が記憶される
ことになる。
Therefore, the same data number is written at the same address in the first data number storage area 24 and the last data number storage area 34 when the reference axis data having the same value is output from the reference axis data memory 10 only once. However, if the reference axis data having the same value is output a plurality of times, different data numbers will eventually be stored.

従って、ラストバッファメモリ30のラストデータ番号記
憶エリア34の値が、複数回にわたって更新記憶された場
合に、この更新がどのように行われたかが判れば、基準
軸データを昇順または降順にソーティングしたときの各
基準軸データのデータ番号の並びが判明する。
Therefore, when the value of the last data number storage area 34 of the last buffer memory 30 is updated and stored a plurality of times, if it is known how this update was performed, when the reference axis data is sorted in ascending or descending order. The arrangement of the data numbers of the respective reference axis data is found.

このため、チェインバッファメモリ40内には、アドレス
ポインタ42の出力するデータ番号に基づき0〜Nの順に
アドレスが指定されるチェインデータ番号記憶エリア44
が設けられている。これら各チェインデータ番号記憶エ
リア44も、前記ファーストデータ番号記憶エリア24およ
びラストデータ番号記憶エリア34と同様に、少なくとも
{log2N}ビットの記憶容量を有するように形成すれば
よい。
Therefore, in the chain buffer memory 40, a chain data number storage area 44 in which addresses are designated in the order of 0 to N based on the data number output by the address pointer 42
Is provided. Like each of the first data number storage area 24 and the last data number storage area 34, each of the chain data number storage areas 44 may be formed to have a storage capacity of at least {log 2 N} bits.

そして、ラストデータ番号記憶エリア34の内容が更新記
録されると、更新前のデータ番号がアドレスポインタ42
に設定され、チェインデータ番号記憶エリア44のアドレ
ス指定が行われる。そして、指定されたチェインデータ
番号記憶エリア44には更新後の新なデータ番号が書込ま
れる。
When the contents of the last data number storage area 34 are updated and recorded, the data number before the update is changed to the address pointer 42.
And the chain data number storage area 44 is addressed. Then, a new data number after updating is written in the designated chain data number storage area 44.

このようにして、ラストデータ番号記憶エリア34が更新
記憶されると、その更新の履歴はチェインバッファメモ
リ40内に順次書込まれることになる。
In this way, when the last data number storage area 34 is updated and stored, the update history is sequentially written in the chain buffer memory 40.

以上説明したように、本実施例によれば、基準軸データ
メモリ10からデータ番号順に基準軸データが出力される
と、出力された基準軸データを書込みアドレスとして、
そのデータ番号が、ファーストバッファメモリ20,ラス
トバッファメモリ30に書き込まれ、さらに、これに付随
してラストバッファメモリ30からチェインバッファメモ
リ40へのデータの転送書込みが行われる。
As described above, according to the present embodiment, when the reference axis data is output from the reference axis data memory 10 in the order of the data numbers, the output reference axis data is used as the write address,
The data number is written in the first buffer memory 20 and the last buffer memory 30, and further, the data writing from the last buffer memory 30 to the chain buffer memory 40 is performed in association with this.

このようなデータ転送書込みが終了すると、次にファー
ストバッファメモリ20およびラストバッファメモリ30か
らチェインバッファメモリ40へのデータ転送が開始され
る。
When such data transfer writing is completed, data transfer from the first buffer memory 20 and the last buffer memory 30 to the chain buffer memory 40 is started next.

(c)バッファメモリ40へのデータの転送書込み このようなデータ転送が開始されると、ソーティング制
御回路80の第2の制御回路80bは、次のような転送制御
を行う。
(C) Transfer writing of data to the buffer memory 40 When such data transfer is started, the second control circuit 80b of the sorting control circuit 80 performs the following transfer control.

まず、ラストデータ番号記憶エリア34に記憶されたデー
タ番号がアドレスポインタ42にセットされる。次に、こ
のアドレスポインタ42によりアドレス指定されるチェイ
ンデータ番号記憶エリア44に、その指定アドレスと所定
の対応関係にあるファーストデータ番号記憶エリア24の
データ番号を書込む。
First, the data number stored in the last data number storage area 34 is set in the address pointer 42. Next, the chain data number storage area 44 addressed by the address pointer 42 is written with the data number of the first data number storage area 24 having a predetermined correspondence relationship with the designated address.

このようなデータ番号の書き込みは、データを昇順にソ
ーティングする場合と、降順にソーティングする場合と
では若干異なるが、ここでは、データを昇順にソーティ
ングする場合を例にとり説明する。
Writing of such data numbers is slightly different between sorting data in ascending order and sorting in descending order, but here, the case of sorting data in ascending order will be described as an example.

例えば、アドレス0で指定されるラストデータ番号記憶
エリア34にデータ番号が記憶されているときには、まず
アドレス0番地に記憶されているデータ番号がアドレス
ポインタ42にセットされる。
For example, when a data number is stored in the last data number storage area 34 designated by the address 0, the data number stored in the address 0 is set in the address pointer 42 first.

そして、次にアドレス1で指定されるファーストデータ
番号記憶エリア24からデータ番号が読出され、このデー
タ番号が、アドレスポインタ42で指定されるチェインデ
ータ番号記憶エリア44に書込まれる。
Then, the data number is read from the first data number storage area 24 designated by the address 1, and this data number is written in the chain data number storage area 44 designated by the address pointer 42.

また、このときアドレス1で指定されるファーストデー
タ番号記憶エリア24にデータ番号が記憶されていない場
合には、アドレス2で指定される記憶エリア24からデー
タ番号を読出し、チェインデータ番号記憶エリア44に書
き込む。また、アドレス2で指定されるファーストデー
タ番号記憶エリア24にもデータ番号が記憶されていない
場合には、データが見つかるまで同様にアドレス3,アド
レス4…と順次アドレスkをインクリメントしていく。
At this time, if the data number is not stored in the first data number storage area 24 designated by the address 1, the data number is read from the storage area 24 designated by the address 2 and stored in the chain data number storage area 44. Write. Further, when the data number is not stored in the first data number storage area 24 designated by the address 2, the address 3, the address 4, ... And the address k are sequentially incremented until the data is found.

そして、アドレスkで指定される記憶エリア24からデー
タ番号が読出されると、このデータ番号が、アドレスポ
インタ42で指定されるチュインデータ番号記憶エリア44
に書込まれる。
When a data number is read from the storage area 24 designated by the address k, this data number is read by the tuine data number storage area 44 designated by the address pointer 42.
Written in.

この様な読出書込みが完了すると、次に、アドレスkで
指定されるラストデータ番号記憶エリア34から、データ
番号が読出され、それを書込みアドレスとして前回と同
様にして、チェインデータ番号記憶エリア44へのデータ
の書込みが行われる。
When such reading and writing is completed, next, a data number is read from the last data number storage area 34 designated by the address k, and is used as a write address in the chain data number storage area 44 in the same manner as the previous time. Data is written.

実施例の装置は、この様なチェインデータ番号記憶エリ
ア44へのデータの書込みを繰り返して行う。
The apparatus of the embodiment repeatedly writes data in the chain data number storage area 44 as described above.

そして、このような一連の書込み動作が終了すると、チ
ェインバッファメモリ40のチェインデータ番号記憶エリ
ア44には、基準軸データが昇順に連鎖するようデータ番
号が記憶されることになる。
When such a series of write operations is completed, the chain data number storage area 44 of the chain buffer memory 40 stores data numbers so that the reference axis data are linked in ascending order.

そして、ソーティング制御回路80の第3の制御回路80c
は、チェインデータ番号記憶エリア44内に書込まれたデ
ータ番号を、所定の読出し規則に従って読出す。そし
て、このようにして読出されたデータ番号順に、基準軸
データメモリ10から基準軸データが出力されるように読
出し制御している。
Then, the third control circuit 80c of the sorting control circuit 80
Reads the data number written in the chain data number storage area 44 according to a predetermined reading rule. Then, the reading control is performed so that the reference axis data is output from the reference axis data memory 10 in the order of the read data numbers.

このようにすることにより、基準軸データメモリ10から
は、基準軸データが昇順にソーティング出力されること
になる。
By doing so, the reference axis data is sorted and output from the reference axis data memory 10 in ascending order.

具体的なソーティング動作 次に、このようなソーティング回路を用いて、データ発
生回路8から出力される7個の基準軸データを昇順にソ
ーティングする場合と降順にソーティングする場合を例
にとり説明する。
Specific Sorting Operation Next, using such a sorting circuit, the case where the seven reference axis data output from the data generating circuit 8 are sorted in ascending order and in descending order will be described as an example.

(I)昇順にソーティングする場合 第2図にはこのようなソーティング回路の一例が示され
ている。
(I) When sorting in ascending order FIG. 2 shows an example of such a sorting circuit.

本実施例においては、7個の基準軸データをソーティン
グ対象とするため、基準軸データメモリ10は、1〜7の
データ番号で指定される合計7個の基準軸データ記憶エ
リア14を有するよう形成すればよい。
In the present embodiment, since seven reference axis data are sorted, the reference axis data memory 10 is formed to have a total of seven reference axis data storage areas 14 designated by data numbers 1 to 7. do it.

また、前記基準軸データは、0〜3のいずれかの値をと
るよう2ビットデータで構成されているものとする。こ
のようにすると、ファーストバッファメモリ20およびラ
ストバッファメモリ30は、それぞれ0〜3の基準軸デー
タをアドレスとする4つのデータ番号記憶エリア24,24
を有するよう形成すればよい。
Further, the reference axis data is assumed to be composed of 2-bit data so as to take any value of 0 to 3. In this way, the first buffer memory 20 and the last buffer memory 30 have four data number storage areas 24, 24 whose addresses are reference axis data 0 to 3, respectively.
May be formed.

(a)基準軸データメモリ10への書込み/読出 ここにおいて、まず外部のデータ発生回路8から基準軸
データメモリ10に向け、基準軸データが、 2→1→3→3→0→2→3 の順で入力されると、入力された基準軸データは順次1,
2,3…のデータ番号をアドレスとする記憶エリア14に書
込まれることになる。
(A) Writing / reading to / from the reference axis data memory 10 Here, first, the reference axis data is directed from the external data generation circuit 8 to the reference axis data memory 10, and the reference axis data is 2 → 1 → 3 → 3 → 0 → 2 → 3. When input in the order of, the input reference axis data
The data numbers of 2, 3, ... Are written in the memory area 14 as an address.

本発明の特徴の一つは、このようにしてデータメモリ10
内に基準軸データが書込まれると、この基準軸データの
ソーティングを、基準軸データそのものではなくデータ
番号を用いて行うことにある。
One of the features of the present invention is thus the data memory 10
When the reference axis data is written in, the reference axis data is sorted using the data number instead of the reference axis data itself.

このようにすることにより、ソーティング対象となる基
準軸データの桁数が多い場合でも、この基準軸データの
ソーティングを簡単な回路で高速に行うことが可能とな
る。
By doing so, even when the number of digits of the reference axis data to be sorted is large, the reference axis data can be sorted at high speed with a simple circuit.

本実施例においては、このように基準軸データメモリ10
内に基準軸データが書込まれると、この基準軸データメ
モリ10から、そのデータ番号順に基準軸データが順次読
出される。
In this embodiment, the reference axis data memory 10
When the reference axis data is written therein, the reference axis data is sequentially read from the reference axis data memory 10 in the order of the data numbers.

(b)バッファメモリ20、30への書込み このようにして、基準軸データが読出されると、読出さ
れた基準軸データをアドレスとして、対応するデータ番
号がファーストデータ番号記憶エリア24およびラストデ
ータ番号記憶エリア34に順次書込まれる。
(B) Writing to the buffer memories 20 and 30 When the reference axis data is read in this way, the corresponding data number is used as the address and the corresponding data number is stored in the first data number storage area 24 and the last data number. It is sequentially written in the storage area 34.

従って、データメモリ10から、まずデータ番号「1」で
特定される基準軸データ「2」が出力されると、この基
準軸データ「2」をアドレスとして、各データ番号記憶
エリア24,34には、データ番号「1」が書込まれる。
Therefore, when the reference axis data “2” specified by the data number “1” is first output from the data memory 10, the reference axis data “2” is used as an address in each data number storage area 24, 34. , The data number “1” is written.

同様にして、基準軸データメモリ10から、データ番号
「2」で特定される基準軸データ「1」が出力される
と、この基準軸データ「1」をアドレスとして、データ
番号24,34にはそのデータ番号「2」が書込まれる。
Similarly, when the reference axis data "1" specified by the data number "2" is output from the reference axis data memory 10, the reference axis data "1" is used as an address and the data numbers 24 and 34 The data number "2" is written.

次に、基準軸データメモリ10から同様にしてデータ番号
「3」で特定される基準軸データ「3」が出力される
と、この基準軸データ「3」をアドレスとして、データ
番号記憶エリア24,34には、そのデータ番号「3」が書
込まれる。
Next, when the reference axis data "3" similarly specified by the data number "3" is output from the reference axis data memory 10, the reference axis data "3" is used as an address and the data number storage area 24, The data number “3” is written in 34.

次に、データ番号「4」で特定される基準軸データ
「3」が出力されると、この基準軸データ「3」をアド
レスとして、データ番号記憶エリア24,34には、データ
番号「4」が入力される。このとき、ファーストデータ
番号記憶エリア24には、すでにデータ番号が書込まれて
いるため、新なデータ番号の書込みは行われない。これ
に対し、ラストデータ番号記憶エリア34は、前のデータ
番号「3」を新なデータ番号「4」に更新記憶する。こ
のため、チェインデータ番号記憶エリア44には、更新前
のデータ番号「3」をアドレスとして、更新後のデータ
番号「4」が書込まれることとなる。
Next, when the reference axis data "3" specified by the data number "4" is output, the data number "4" is stored in the data number storage areas 24 and 34 with the reference axis data "3" as an address. Is entered. At this time, since the data number has already been written in the first data number storage area 24, no new data number is written. On the other hand, the last data number storage area 34 updates and stores the previous data number “3” into the new data number “4”. Therefore, the updated data number "4" is written in the chain data number storage area 44 with the data number "3" before the update as an address.

次に、基準軸データメモリ10からデータ番号「5」で特
定される基準軸データ「0」が読出されると、この基準
軸データ「0」をアドレスとして、各データ番号記憶エ
リア24,34にはそのデータ番号「5」が書込まれる。
Next, when the reference axis data “0” specified by the data number “5” is read from the reference axis data memory 10, the reference axis data “0” is used as an address in each data number storage area 24, 34. Is written with the data number "5".

次に、基準軸データメモリ10から、データ番号「6」で
特定される基準軸データ「2」が出力されると、この番
号基準軸データ「2」をアドレスをして、デーア記憶エ
リア24,34にはそのデータ番号「6」が入力される。こ
のとき、アドレス「2」で指定されるファーストデータ
番号記憶エリア24には、すでにデータ番号「1」が書込
まれている。このため、新たに入力されたデータ番号
「6」の書込みは行われない。これに対し、アドレス
「2」で指定されるラストデータ番号記憶エリア34の内
容は、新たに入力されるデータ番号「6」に更新記憶さ
れる。
Next, when the reference axis data "2" specified by the data number "6" is output from the reference axis data memory 10, the number reference axis data "2" is addressed to the data storage area 24, The data number “6” is input to 34. At this time, the data number "1" has already been written in the first data number storage area 24 designated by the address "2". Therefore, the newly input data number "6" is not written. On the other hand, the contents of the last data number storage area 34 designated by the address "2" are updated and stored in the newly input data number "6".

このように、ラストデータ番号記憶エリア34の内容が、
「1」→「6」に更新されると、更新前のデータ番号
「1」をアドレスとしてチェインデータ番号記憶エリア
44には、更新後の新なデータ番号「6」が書込まれる。
In this way, the contents of the last data number storage area 34
When the data is updated from "1" to "6", the data number "1" before the update is used as an address for the chain data number storage area.
A new data number “6” after updating is written in 44.

次に、基準軸データメモリ10から、データ番号「7」で
特定される最後の基準軸データ「3」が読出されると、
この基準軸データ「3」をアドレスとして、データ番号
24,34にデータ番号「7」が入力される。このとき、フ
ァーストデータ番号記憶エリア24には、すでにデータ番
号「3」が書込まれているため、新たに入力されるデー
タ番号が書込まれることはない。これに対し、ラストデ
ータ番号記憶エリア34の内容は、新たに入力されるデー
タ番号「7」に更新記憶される。
Next, when the last reference axis data “3” specified by the data number “7” is read from the reference axis data memory 10,
This reference axis data “3” is used as an address, and the data number
The data number "7" is input to 24 and 34. At this time, since the data number "3" has already been written in the first data number storage area 24, the newly input data number will not be written. On the other hand, the contents of the last data number storage area 34 are updated and stored in the newly input data number "7".

このように、ラストデータ番号記憶エリア34の内容が、
「4」→「7」に更新されると、更新前のデータ番号
「4」をアドレスとして、チェインデータ番号記憶エリ
ア44には、更新後の新なデータ番号「7」が記憶され
る。
In this way, the contents of the last data number storage area 34
When the data number is updated from "4" to "7", the new data number "7" after the update is stored in the chain data number storage area 44 with the data number "4" before the update as an address.

このような一連の書込作業により、基準軸データをアド
レスとするファーストデータ番号記憶エリア24には、各
基準軸データが最初に出現したときのデータ番号が書込
まれることとなる。
By such a series of writing operations, the data number when each reference axis data first appears is written in the first data number storage area 24 having the reference axis data as an address.

また、基準軸デートをアドレスとするラストデータ番号
記憶エリア34には、各基準軸データの値が最後に出現し
たときのデータ番号が記憶されることとなる。
Further, the last data number storage area 34 having the reference axis date as an address stores the data number when the value of each reference axis data appeared last.

さらに、データ番号をアドレスとするチェインデータ番
号記憶エリア44には、ラストデータ番号記憶エリア34の
データが更新記憶される毎に、更新前のデータ番号をア
ドレスとして更新後のデータ番号が順次書込まれること
にになる。従って、基準軸データメモリ14から同じ基準
軸データが複数回に渡って出力されると、この記憶エリ
ア44には、その基準軸データがどのようなデータ番号順
に出力されたかの履歴が記憶されることになる。
Furthermore, each time the data in the last data number storage area 34 is updated and stored in the chain data number storage area 44 having the data number as the address, the data number after the update is sequentially written using the data number before the update as the address. Will be done. Therefore, when the same reference axis data is output from the reference axis data memory 14 a plurality of times, the storage area 44 stores a history of the data number order of the reference axis data. become.

(c)バッファメモリ40へのデータの転送書込み このような一連の書込み動作が終了すると、次に第3図
に示すよう、ファーストバッファメモリ20およびラスト
バッファメモリ30から、チェインバッファメモリ40への
データ転送が開始される。
(C) Transfer writing of data to the buffer memory 40 When such a series of writing operations is completed, data from the first buffer memory 20 and the last buffer memory 30 to the chain buffer memory 40 is then transferred as shown in FIG. The transfer starts.

このようなデータ転送が開始されると、まず、アドレス
の小さい方から順に、データが記憶されているデータ番
号記憶エリア24を探し出す。そして、その記憶エリア24
に記憶されているデータ番号を、スタートアドレスとし
て読みだし、チェインデータ番号記憶エリア44のアドレ
ス0番地に書き込む。
When such data transfer is started, first, the data number storage area 24 in which data is stored is searched for in order from the smallest address. And that storage area 24
The data number stored in 1 is read out as the start address and is written in the address 0 of the chain data number storage area 44.

なお、記憶エリア44のアドレス0番地を他の用途に用い
る場合には、第3図において点線で示すように、前記ス
タートアドレスを、例えば、スタートアドレスポインタ
310にセットするよう形成すればよい。
When the address 0 of the storage area 44 is used for another purpose, the start address is, for example, a start address pointer as shown by a dotted line in FIG.
It may be formed so as to be set to 310.

本実施例において、アドレスの小さい方から順にデータ
が記憶されているデータ番号記憶エリア24を探していく
と、アドレス0の記憶エリア24内にデータ番号が書き込
まれているのが検出される。そして、このデータ番号
「5」が、第3図に、示すようにアドレス0で指定ささ
れるチェインデータ番号記憶エリア44に書込まれる。
In this embodiment, when the data number storage area 24 in which the data is stored is searched in order from the smallest address, it is detected that the data number is written in the storage area 24 of the address 0. Then, this data number "5" is written in the chain data number storage area 44 designated by the address 0 as shown in FIG.

なお、アドレス「0」の記憶エリア44を他の用途に使用
する場合には、スタートアドレスポインタ310にセット
するようにする。
When the storage area 44 of the address "0" is used for another purpose, it is set in the start address pointer 310.

次に、基準軸データ「0」が最後に出現したときのデー
タ番号をアドレスとして、これより大きい基準軸データ
「1」が最初に出現したときのデータ番号をチェインデ
ータ番号記憶エリア44に書込む。
Next, the data number when the reference axis data “0” appears last is used as an address, and the data number when the reference axis data “1” larger than this appears first is written in the chain data number storage area 44. .

このようにするためには、アドレス「0」で指定される
ラストデータ番号記憶エリア34内のデータ番号「5」を
書込みアドレスとして読み出す。そして、このアドレス
「5」で指定されるチェインデータ番号記憶エリア44
に、アドレス「1」で指定されるファーストデータ番号
記憶エリア24内のデータを書込めばよい。
To do so, the data number "5" in the last data number storage area 34 designated by the address "0" is read as the write address. Then, the chain data number storage area 44 designated by this address "5"
It is sufficient to write the data in the first data number storage area 24 designated by the address "1".

次に、同様にして基準軸データ「1」が最後に出現した
ときのデータ番号を書込みアドレスとして、これより上
の基準軸データ「2」が初めて出現したときのデータ番
号をチェインデータ番号記憶エリア44に書込む。
Next, similarly, the data number when the reference axis data “1” appears last is used as a write address, and the data number when the reference axis data “2” above that appears for the first time is set as the chain data number storage area. Write to 44.

このような書込みを行うためには、アドレス「1」で指
定されるラストデータ番号記憶エリア34内のデータ番号
「2」を書込みアドレスとして読み出す。そして、この
アドレス「2」で指定されるチェインデータ番号記憶エ
リア44に、アドレス「2」で指定されるファーストデー
タ番号記憶エリア24内のデータ「1」を書込めばよい。
In order to perform such writing, the data number "2" in the last data number storage area 34 designated by the address "1" is read as the write address. Then, the data "1" in the first data number storage area 24 designated by the address "2" may be written in the chain data number storage area 44 designated by the address "2".

同様にして、基準軸データ「2」が最後に出現したとき
のデータ番号「6」を書込みアドレスとし、基準軸デー
タ「3」が最初に出現するときのデータ番号「3」をチ
ェインデータ番号記憶エリア44に書込む。
Similarly, the data number "6" when the reference axis data "2" appears last is used as a write address, and the data number "3" when the reference axis data "3" appears first is stored as a chain data number. Write in area 44.

このような一連のデータ転送作業が終了すると、チェイ
ンデータ番号記憶エリア44内には、基準軸データが昇順
に連鎖するようデータ番号が書込まれることになる。
When such a series of data transfer work is completed, the data numbers are written in the chain data number storage area 44 so that the reference axis data are linked in ascending order.

(d)基準軸データのソーティング出力 このようなデータの転送書込みが終了すると、次にチェ
インバッファメモリ40から、所定の読出し規則にしたが
い、データ番号が基準軸データメモリ10に対する読出し
アドレスとして順次出力される。
(D) Reference axis data sorting output Upon completion of transfer and writing of such data, the chain buffer memory 40 outputs the data numbers sequentially as read addresses to the reference axis data memory 10 according to a predetermined read rule. It

本実施例においてはアドレス0により指定されるチェイ
ンデータ番号記憶エリア44に、読出開始アドレスが記憶
されている。このため、まず、アドレス「0」がアドレ
スポインタ42にセットされる。これにより、データ番号
記憶エリア44のアドレス「0」内に記憶されているデー
タ番号「5」が読出開始アドレスとして読出されること
になる。
In the present embodiment, the read start address is stored in the chain data number storage area 44 designated by address 0. Therefore, first, the address “0” is set in the address pointer 42. As a result, the data number "5" stored in the address "0" of the data number storage area 44 is read as the read start address.

このようにして、データ番号がデータ番号記憶エリア44
から読出されると、読出されたデータ番号が次にアドレ
スポインタ42にセットされる。
In this way, the data number is stored in the data number storage area 44.
When read from, the read data number is set in the address pointer 42 next.

従って、アドレス「5」で指定されるデータ番号記憶エ
リア44から、次のデータ番号「2」が読出され、読出さ
れたデータ番号が新たにアドレスポインタ42にセットさ
れる。
Therefore, the next data number "2" is read from the data number storage area 44 designated by the address "5", and the read data number is newly set in the address pointer 42.

このような読出し規則に従ってデータ番号を順次読出す
と、チェインデータ番号記憶エリア44からは、 5→2→1→6→3→4→7 の順にデータ番号が順次出力されることになる。
When the data numbers are sequentially read according to such a reading rule, the data numbers are sequentially output from the chain data number storage area 44 in the order of 5 → 2 → 1 → 6 → 3 → 4 → 7.

従って、このようにして読出されたデータ番号を、基準
軸データメモリ10に対するデータ読出しアドレスとして
用いると、基準軸データメモリ10からは、 0→1→2→2→3→3→3 の順で、基準軸データが順次昇順にソーティング出力さ
れることになる。
Therefore, if the data number read in this way is used as a data read address for the reference axis data memory 10, the reference axis data memory 10 will be in the order of 0 → 1 → 2 → 2 → 3 → 3 → 3. , The reference axis data is sequentially sorted and output in ascending order.

(II)降順にソーティングする場合 次に、本発明のソーティング回路を用いて、基準軸デー
タを降順にソーティングする場合を、第2図に示すよう
に7個の基準軸データを降順にソーティングする場合を
例にとり説明する。
(II) Case of Sorting in Descending Order Next, using the sorting circuit of the present invention, sorting of reference axis data in descending order, and sorting of 7 pieces of reference axis data in descending order as shown in FIG. Will be described as an example.

(a)基準軸データメモリ10への書込み/読出し この動作は、基準軸データを昇順にソーティングする場
合と同じであるので、その説明は省略する。
(A) Writing / reading to / from the reference axis data memory 10 This operation is the same as the case of sorting the reference axis data in ascending order, and the description thereof will be omitted.

(b)バッファメモリ20,30への書込み この動作もデータを昇順にソーティングする場合と同様
であるので、ここではその説明は省略する。
(B) Writing to the buffer memories 20 and 30 This operation is also similar to the case of sorting data in ascending order, and therefore the description thereof is omitted here.

(c)バッファメモリ40へのデータの転送書込み 基準軸データを昇順にソーティグする場合と降順にソー
ティングする場合とでは、バッファメモリ40へのデータ
の転送書込み作業のしかたが若干異なる。
(C) Transfer / writing of data to / from the buffer memory 40 A method of transferring / writing data to / from the buffer memory 40 is slightly different between sorting the reference axis data in ascending order and sorting in descending order.

第20図には、データを降順にソーティングする場合にお
いて、ファーストバッファメモリ20およびラストバッフ
ァメモリ30から、チェインバッファメモリ40へのデータ
転送の一例が示されている。
FIG. 20 shows an example of data transfer from the first buffer memory 20 and the last buffer memory 30 to the chain buffer memory 40 when data is sorted in descending order.

降順にソーティングを行う場合には、データ転送開始と
共に、まずアドレスの大きい方から順に、データが記憶
されているデータ番号記憶エリア24を捜しだす。そし
て、その記憶エリア24に記憶されているデータ番号を、
スタートアドレスとして読出し、チェインデータ番号記
憶エリア44のアドレス0番地に書込む。
When the sorting is performed in descending order, the data number storage area 24 in which the data is stored is searched first in descending order of the address when the data transfer is started. Then, the data number stored in the storage area 24 is
It is read as a start address and written in address 0 of the chain data number storage area 44.

なお、記憶エリア44のアドレス0番地を他の用途に用い
る場合には、第20図において点線で示すように、前記ス
タートアドレスを例えばスタートアドレスポインタ310
にセットするように形成すればよい。
When the address 0 of the storage area 44 is used for another purpose, the start address is set to, for example, the start address pointer 310 as shown by the dotted line in FIG.
It may be formed so as to be set to.

本実施例において、アドレス(基準軸データ)の大きい
方から順にデータが記憶されているデータ番号記憶エリ
ア24を探していくと、アドレス「3」の記憶エリア24内
にデータ番号が書き込まれているのが検出される。そし
て、このデータ番号「3」が、第20図に示すようにアド
レス「0」で指定されるチェインデータ番号記憶エリア
44に書込まれる。
In this embodiment, when the data number storage area 24 in which data is stored is searched in order from the largest address (reference axis data), the data number is written in the storage area 24 of the address “3”. Is detected. This data number "3" is the chain data number storage area designated by the address "0" as shown in FIG.
Written on 44.

なお、アドレス「0」の記憶エリア44を他の用途に使用
する場合には、スタートアドレスポインタ310にセット
するようにする。
When the storage area 44 of the address "0" is used for another purpose, it is set in the start address pointer 310.

次に、基準値データ「3」が最後に出現したときのデー
タ番号をアドレスとして、これより小さい基準軸データ
「2」が最初に出現したときのデータ番号をチェインデ
ータ番号記憶エリア44に書込む。
Next, the data number when the reference value data “3” appears last is used as an address, and the data number when the smaller reference axis data “2” first appears is written in the chain data number storage area 44. .

このようにするためには、アドレス「3」で指定される
ラストデータ番号記憶エリア34内のデータ番号「7」
を、書込みアドレスとして読み出す。そして、このアド
レス「7」で指定されるチェインデータ番号記憶エリア
44に、アドレス「2」で指定されるファーストデータ番
号記憶エリア24内のデータ「1」を書込めばよい。
In order to do this, the data number "7" in the last data number storage area 34 specified by the address "3"
Is read as a write address. And the chain data number storage area specified by this address "7"
The data “1” in the first data number storage area 24 designated by the address “2” may be written in 44.

次に、同様にして基準軸データ「2」が最後に出現した
ときのデータ番号を書込みアドレスとして、これより下
の基準軸データ「1」が初めて出現したときのデータ番
号をチェインデータ番号記憶エリア44に書込む。
Next, similarly, the data number when the reference axis data “2” appears last is used as the write address, and the data number when the reference axis data “1” below that appears for the first time is set as the chain data number storage area. Write to 44.

このような書込みを行うためには、アドレス「2」で指
定されるラストデータ番号記憶エリア34内のデータ番号
「6」を書込みアドレスとして読み出す。そして、この
アドレス「6」で指定されるチェインデータ番号記憶エ
リア44に、アドレス「1」で指定されるファーストデー
タ番号記憶エリア24内のデータ「2」を書込めばよい。
In order to perform such writing, the data number "6" in the last data number storage area 34 designated by the address "2" is read as the write address. Then, the data "2" in the first data number storage area 24 designated by the address "1" may be written in the chain data number storage area 44 designated by the address "6".

同様にして、基準軸データ「1」が最後に出現したとき
のデータ番号「2」を書込みアドレスとし、基準軸デー
タ「0」が最初に出現するときのデータ番号「5」をチ
ェインデータ番号記憶エリア44に書込む。
Similarly, the data number "2" when the reference axis data "1" appears last is the write address, and the data number "5" when the reference axis data "0" appears first is the chain data number storage. Write in area 44.

このような一連のデータ転送作業が終了すると、チェイ
ンデータ番号記憶エリア44内には、基準軸データが降順
に連鎖するようデータ番号が書込まれることになる。
When such a series of data transfer operations are completed, data numbers are written in the chain data number storage area 44 so that the reference axis data are linked in descending order.

(d)基準軸データのソーティング出力 このようなデータの転送書込みが終了すると、次にチェ
インバッファメモリ40から、所定の読出し規則にしたが
い、データ番号が基準軸データメモリ10に対する読出し
アドレスとして順次出力される。
(D) Reference axis data sorting output Upon completion of transfer and writing of such data, the chain buffer memory 40 outputs the data numbers sequentially as read addresses to the reference axis data memory 10 according to a predetermined read rule. It

本実施例においてはアドレス「0」により指定されるチ
ェインデータ番号記憶エリア44に、読出開始アドレスが
記憶されている。このため、まず、アドレス「0」がア
ドレスポインタ42にセットされる。これにより、データ
番号記憶エリア44のアドレス「0」内に記憶されている
データ番号「3」が読出開始アドレスとして読出される
ことになる。
In the present embodiment, the read start address is stored in the chain data number storage area 44 designated by the address "0". Therefore, first, the address “0” is set in the address pointer 42. As a result, the data number "3" stored in the address "0" of the data number storage area 44 is read as the read start address.

このようにして、データ番号がデータ番号記憶エリア44
から読出されると、読出されたデータ番号が次にアドレ
スポインタ42にセットされる。
In this way, the data number is stored in the data number storage area 44.
When read from, the read data number is set in the address pointer 42 next.

従って、アドレス「3」で指定されるデータ番号記憶エ
リア44から、次のデータ番号「4」が読出され、読出さ
れたデータ番号が新たにアドレスポインタ42にセットさ
れる。
Therefore, the next data number "4" is read from the data number storage area 44 designated by the address "3", and the read data number is newly set in the address pointer 42.

このような読出し規則に従ってデータ番号を順次読出す
と、チェインデータ番号記憶エリア44からは、 3→4→7→1→6→2→5 の順にデータ番号が順次出力されることになる。
When the data numbers are sequentially read according to such a reading rule, the data numbers are sequentially output from the chain data number storage area 44 in the order of 3 → 4 → 7 → 1 → 6 → 2 → 5.

従って、このようにして読出されたデータ番号を、基準
軸データメモリ10に対するデータ読出しアドレスとして
用いると、基準軸データメモリ10からは、 3→3→3→2→2→1→0 の順で、基準軸データが順次降順にソーティング出力さ
れることになる。
Therefore, if the data number thus read out is used as a data read address for the reference axis data memory 10, the reference axis data memory 10 is in the order of 3 → 3 → 3 → 2 → 2 → 1 → 0. , The reference axis data are sequentially output in descending order.

(III)昇順および降順のコーティング作業についての
まとめ このようにして、本発明によれば、基準軸データを昇順
にソーティングする場合でも、降順にソーティングする
場合でも、基準軸データそのものを用いるものではな
く、基準軸データに対応して割り付けられたデータ番号
を用いて行うことにより、基準軸データのビット数が多
い場合でも、これにそれほど影響されることなくソーテ
ィング作業を高速でしかも簡単に行うことが可能とな
る。
(III) Summary of Ascending and Descending Coating Operations Thus, according to the present invention, the reference axis data itself is not used when sorting the reference axis data in ascending order or in descending order. By using the data number assigned to the reference axis data, even if the number of bits of the reference axis data is large, sorting work can be performed quickly and easily without being affected so much. It will be possible.

特に、本発明によれば、基準軸データのソーティング
を、従来のように一つの基準軸データを残りのすべての
基準軸データと比較しながら並べ変える作業を、各基準
軸データごとに繰返して行うものに比べ、データの転送
回数が大幅に少なくてすみ、しかも転送対象となるデー
タ数量も大幅に少なくすむため、基準軸データの転送作
業を簡単な回路でしかも極めて高速で行うことが可能と
なる。
In particular, according to the present invention, the sorting of the reference axis data is repeated for each reference axis data, and the operation of rearranging the reference axis data while comparing one reference axis data with all the remaining reference axis data is performed as in the conventional case. Compared to the ones, the number of times of data transfer is much smaller and the number of data to be transferred is also significantly less, so it is possible to transfer the reference axis data with a simple circuit and at extremely high speed. .

なお、前記実施例においては、0〜3の4つの基準軸デ
ータが全て存在する場合を例にとり説明したが、本発明
はこれに限らず、この中の一つの基準軸データ、例えば
基準軸データ「1」が存在しない場合でも同様にしてソ
ーティング作業を行うこともできる。
In addition, in the said Example, although the case where all four reference-axis data of 0-3 existed, it demonstrated that this invention is not restricted to this, and one reference-axis data in this, for example, reference-axis data. Even when "1" does not exist, the sorting work can be performed in the same manner.

この場合には、第4図に示すように、基準軸データメモ
リ10からファーストバッファメモリ20およびラストバッ
ファメモリ30へのデータ転送が終了しても、これら各バ
ッファメモリ20,30のアドレス「1」で指定されるデー
タ番号記憶エリア24,34には何らデータ番号は書込まれ
ない。
In this case, as shown in FIG. 4, even if the data transfer from the reference axis data memory 10 to the first buffer memory 20 and the last buffer memory 30 is completed, the address "1" of each of the buffer memories 20 and 30 is changed. No data number is written in the data number storage areas 24, 34 designated by.

従って、例えばデータを昇順にソーティングする場合に
は、各バッファメモリ20,30からチェインバッファメモ
リ40へのデータ転送作業を行うにあたって、基準軸デー
タ「0」が最後に出力されたときのデータ番号「5」を
アドレスとして、次にこれ以上の基準軸データ、すなわ
ち基準軸データ2が最初に出現するときのデータ番号1
をチェインデータ番号記憶エリア44へ書込めばよい。な
お、後のデータ書込みは前記第3図に示す実施例と同様
にして行う。
Therefore, for example, when sorting data in ascending order, when performing the data transfer work from the buffer memories 20 and 30 to the chain buffer memory 40, the data number "0" when the reference axis data "0" was last output is displayed. 5 ”as an address, and the data number 1 when the further reference axis data, that is, the reference axis data 2 first appears
Should be written in the chain data number storage area 44. Incidentally, the subsequent data writing is performed in the same manner as the embodiment shown in FIG.

第2実施例 第21図には、本発明の好適な第2実施例が示されてい
る。
Second Embodiment FIG. 21 shows a second preferred embodiment of the present invention.

前記第1実施例では、基準軸データメモリ10のデータ番
号ポインタ12がデータ番号発生手段として機能する場合
を例にとり説明した。本実施例ではそのかわりにデータ
番号発生カウンタ13を用い、このカウンタ13をデータ番
号発生手段として機能させることを特徴とするものであ
る。
In the first embodiment, the case where the data number pointer 12 of the reference axis data memory 10 functions as a data number generating means has been described as an example. In this embodiment, a data number generation counter 13 is used instead, and the counter 13 is made to function as a data number generation means.

すなわち、外部のデータ発生回路8から、ソーティング
対象となる基準軸データが順次出力されると、この基準
軸データは前記第1実施例と同様にして基準軸データメ
モリ10内へ順に書き込み記憶されると共に、データ番号
カウンタ13,ファーストバッファメモリ20,ラストバッフ
ァメモリ30へ入力される。
That is, when the reference axis data to be sorted is sequentially output from the external data generation circuit 8, the reference axis data is sequentially written and stored in the reference axis data memory 10 as in the first embodiment. At the same time, it is input to the data number counter 13, the first buffer memory 20, and the last buffer memory 30.

このとき、データ番号カウンタ13は、基準軸データが入
力される毎に対応するデータ番号を発生する。実施例で
は、基準軸データの入力に同期して0,1,2…(2M−1)
の順にデータ番号を出力する。
At this time, the data number counter 13 generates a corresponding data number each time the reference axis data is input. In the embodiment, 0, 1, 2 ... (2 M −1) is synchronized with the input of the reference axis data.
The data numbers are output in this order.

そして、ファーストバッファメモリ20,ラストバッファ
メモリ30の各記憶エリア24,34には、データ発生回路8
から出力される基準軸データを書き込みアドレスとし
て、データ番号カウンタ13から出力されるデータ番号が
前記第1実施例と同様にして書込まれる。このとき、チ
ェーンバッファメモリ40にも、前記第1実施例と同様に
してデータの書き込みが行われる。
The data generating circuit 8 is stored in the storage areas 24 and 34 of the first buffer memory 20 and the last buffer memory 30, respectively.
The data number output from the data number counter 13 is written in the same manner as in the first embodiment, using the reference axis data output from the write address as the write address. At this time, data is also written in the chain buffer memory 40 in the same manner as in the first embodiment.

このような各バッファメモリ20,30,40へのデータ転送書
き込みが終了した時点で、基準軸データメモリ10への基
準軸データの書き込みも終了している。そして、このよ
うなデータ転送書き込み終了後、次に前記第1実施例と
同様にしてファーストバッファメモリ20およびラストバ
ッファメモリ30から、チェーンバッファメモリ40へのデ
ータ転送が行われる。
When the data transfer writing to the respective buffer memories 20, 30, 40 is completed, the reference axis data writing to the reference axis data memory 10 is also completed. Then, after such data transfer writing is completed, data is transferred from the first buffer memory 20 and the last buffer memory 30 to the chain buffer memory 40 in the same manner as in the first embodiment.

そして、チェーンバッファメモリ40へのデータ転送書き
込みが終了すると、このチェーンバッファメモリ40に
は、基準軸データが昇順または降順に連鎖するようデー
タ番号が記憶されることになる。
When the data transfer and writing to the chain buffer memory 40 is completed, the chain buffer memory 40 stores the data numbers so that the reference axis data are chained in ascending or descending order.

従って、第3の制御回路80cは、チェーンデータ番号記
憶エリア44に書込まれたデータ番号を、所定の読み出し
規則に従って読み出す。そして、読み出されたデータ番
号順に、基準軸データメモリ10から基準軸データが出力
されるよう読み出し制御する。これにより、基準軸デー
タメモリ10から、基準軸データが昇順または降順にソー
ティング出力されることになる。
Therefore, the third control circuit 80c reads the data number written in the chain data number storage area 44 according to a predetermined reading rule. Then, the reading control is performed so that the reference axis data is output from the reference axis data memory 10 in the order of the read data numbers. As a result, the reference axis data is sorted and output from the reference axis data memory 10 in ascending or descending order.

このように、本実施例によれば、基準軸データメモリ10
への基準軸データの書き込みと、この基準軸データのソ
ーティング作業とを同時に平行して行うことができるた
め、前記第1実施例に比べ基準軸データのソーティング
をより高速に行うことができる。
Thus, according to the present embodiment, the reference axis data memory 10
Since the writing of the reference axis data to and the sorting operation of the reference axis data can be performed in parallel at the same time, the sorting of the reference axis data can be performed at a higher speed than in the first embodiment.

これにより、前記第1実施例と同様に、基準軸データを
昇順または降順にソーティング出力することができる。
As a result, like the first embodiment, the reference axis data can be sorted and output in ascending order or descending order.

第3実施例 なお、前記第1および第2実施例においては、入力され
た基準軸データをソーティングする場合を例にとり説明
したが、本発明はこれに限らず、基準軸データおよびそ
の組合せ情報(基準軸データとペアを成す情報)からな
るソーティングデータに対しても同様にしてソーティン
グを行うことができる。
Third Embodiment In the first and second embodiments, the case where the input reference axis data is sorted has been described as an example, but the present invention is not limited to this, and the reference axis data and its combination information ( Sorting can also be performed in the same manner for sorting data composed of reference axis data and information that forms a pair.

第19図には、このような組合せ情報を含むソーティング
データを、その基準軸データに基づきソーティングする
場合の好適な実施例が示されている。なお、本実施例の
回路は、前記第1実施例又は第2実施例のいずれの回路
を用いても形成することができるが、ここでは前記第1
実施例の回路を用いて形成した場合を例にとり説明す
る。
FIG. 19 shows a preferred embodiment in which sorting data containing such combination information is sorted based on the reference axis data. The circuit of this embodiment can be formed by using either the circuit of the first embodiment or the circuit of the second embodiment.
Description will be given by taking as an example a case where the circuit is formed using the circuit of the embodiment.

実施例のソーティング回路は、基準軸データメモリ10
と、情報メモリ58とを含む。そして、この回路は、デー
タ発生回路8から出力されるソーティングデータに含ま
れる基準軸データを基準軸データメモリ10に格納し、各
基準軸データと対をなす組合せ情報を情報メモリ58内に
格納するよう形成されている。
The sorting circuit of the embodiment has a reference axis data memory 10
And an information memory 58. Then, this circuit stores the reference axis data included in the sorting data output from the data generation circuit 8 in the reference axis data memory 10 and the combination information paired with each reference axis data in the information memory 58. Is formed.

ここにおいて、前記基準軸データメモリ10は、データ番
号ポインタ12によって指定される少なくとも1〜Nまで
の合計N個の基準軸データ記憶エリア14を有する。
Here, the reference axis data memory 10 has a total of N reference axis data storage areas 14 designated by the data number pointer 12 from at least 1 to N.

また、前記情報メモリ58も、データ番号ポインタ12によ
って指定される少なくとも1〜Nまでの合計N個の組合
せ情報記憶エリア58aを有する。
The information memory 58 also has a total of N combination information storage areas 58a of at least 1 to N designated by the data number pointer 12.

そして、外部のデータ発生回路8からソーティング対象
となる複数の基準軸データが入力されると、その基準軸
データにはその入力順に1〜Nのデータ番号が割振られ
る。そして、ソーティングデータに含まれる基準軸デー
タおよびその組み合わせ情報は、データ番号ポインタ12
によって指定される1〜Nの基準軸データ記憶エリア14
および組合せ情報記憶エリア58aに順次書込まれる。
When a plurality of reference axis data to be sorted are input from the external data generation circuit 8, the reference axis data are assigned data numbers 1 to N in the order of input. Then, the reference axis data included in the sorting data and the combination information thereof are stored in the data number pointer 12
1 to N reference axis data storage area 14 designated by
And sequentially written in the combination information storage area 58a.

このようにして、本実施例のソーティング回路に、外部
からソーティングデータが入力されると、そのソーティ
ングデータに含まれる基準軸データとその組合せ情報
は、データ番号ポインタ12により指定される各記憶エリ
ア14、58aに所定の対応関係をもって順に書込まれるこ
とになる。
In this way, when sorting data is input to the sorting circuit of this embodiment from the outside, the reference axis data and its combination information included in the sorting data are stored in each storage area 14 designated by the data number pointer 12. , 58a are sequentially written with a predetermined correspondence relationship.

このため、基準軸データメモリ10内に記憶されている基
準軸データを前記第1実施例と同様にしてソーティング
処理すれば、チェインバッファメモリ40のチェインデー
タ記憶エリア44には、この基準軸データが昇順または降
順に連鎖するようデータ番号が記憶されることになる。
Therefore, if the reference axis data stored in the reference axis data memory 10 is sorted in the same manner as in the first embodiment, the reference axis data is stored in the chain data storage area 44 of the chain buffer memory 40. The data numbers will be stored in ascending or descending order.

従って、このようにチェインデータ番号記憶エリア44内
に記憶されたデータ番号を、前記第1実施例と同様にし
て読出し、読出したデータ番号順に情報メモリ58から組
合せ情報を読出せば、情報メモリ58からは、一連の組合
せ情報が基準軸データに基づき昇順または降順にソーテ
ィング出力されることになる。
Therefore, if the data numbers thus stored in the chain data number storage area 44 are read in the same manner as in the first embodiment and the combination information is read from the information memory 58 in the order of the read data numbers, the information memory 58 From this, a series of combination information is sorted and output in ascending or descending order based on the reference axis data.

以上説明したように本実施例によれば、ソーティングデ
ータ自体の情報量が多い場合にも、基準軸データメモリ
10、各バッファメモリ20,30,40を用いたソーティング処
理が短時間で済む。このため、ソーティングデータ1単
位あたりの情報量が多い場合でも、このソーティング処
理を短時間で効率よく行うことが可能となる。
As described above, according to this embodiment, even when the sorting data itself has a large amount of information, the reference axis data memory
10. The sorting process using the buffer memories 20, 30, 40 can be completed in a short time. Therefore, even when the amount of information per unit of sorting data is large, this sorting process can be efficiently performed in a short time.

第4実施例 第22図には、本発明の好適な第4実施例が示されてい
る。前記第3実施例では、組合せ情報を含むソーティン
グデータを基準軸データに基づきソーティングする回路
を、前記第1の実施例の回路を用いて形成した場合を例
にとり説明した。本実施例では、このようなソーティン
グ回路を前記第2実施例の回路を用いて形成したことを
特徴とする。尚、前記各実施例と対応する部材には同一
符号を付しその説明は省略する。
Fourth Embodiment FIG. 22 shows a fourth preferred embodiment of the present invention. In the third embodiment, the case where the circuit for sorting the sorting data including the combination information based on the reference axis data is formed using the circuit of the first embodiment has been described as an example. The present embodiment is characterized in that such a sorting circuit is formed by using the circuit of the second embodiment. The members corresponding to those in the above-mentioned respective embodiments are designated by the same reference numerals and the description thereof will be omitted.

本実施例のソーティング回路は、情報メモリ58と、前記
第2実施例に示す回路とから構成されている。なお、基
準軸データメモリ10は設けられていない。
The sorting circuit of this embodiment comprises an information memory 58 and the circuit shown in the second embodiment. The reference axis data memory 10 is not provided.

そして、外部のデータ発生回路8から出力されるソーテ
ィングデータに含まれる基準軸データは、データ番号カ
ウンタ13,各バッファメモリ20,30へ入力され、各基準軸
データと対をなす組合せ情報は前記第3実施例と同様に
して情報メモリ58内に順次記憶される。もちろん、情報
メモリ58内に順次記憶される組合せ情報の中には、基準
軸データが含まれていてもよい。
The reference axis data included in the sorting data output from the external data generating circuit 8 is input to the data number counter 13 and the buffer memories 20 and 30, and the combination information paired with the reference axis data is the above-mentioned first information. It is sequentially stored in the information memory 58 in the same manner as in the third embodiment. Of course, the reference axis data may be included in the combination information sequentially stored in the information memory 58.

そして、基準軸データが入力されると、各バッファメモ
リ20,30,40,データ番号カウンタ13およびソーティング
制御回路80は、前記第2実施例と同様に動作する。従っ
て、チェーンバッファメモリ40のチェーンデータ記憶エ
リア44には、基準軸データが昇順または降順に連鎖する
ようデータ番号が記憶されることになる。
When the reference axis data is input, the buffer memories 20, 30, 40, the data number counter 13 and the sorting control circuit 80 operate in the same manner as in the second embodiment. Therefore, in the chain data storage area 44 of the chain buffer memory 40, the data numbers are stored so that the reference axis data are linked in ascending or descending order.

そして、第3の制御回路80cは、チェーンデータ番号記
憶エリア44に記憶されたデータ番号を、前記第1実施例
と同様にして読み出し、読み出したデータ番号順に情報
メモリ58から組合せ情報を読み出し制御する。これによ
り、情報メモリ58から一連の組合せ情報が基準軸データ
に基づき昇順または降順にソーティング出力されること
になる。
Then, the third control circuit 80c reads out the data numbers stored in the chain data number storage area 44 in the same manner as in the first embodiment, and controls the reading of the combination information from the information memory 58 in the order of the read data numbers. . As a result, a series of combination information is sorted and output from the information memory 58 in ascending or descending order based on the reference axis data.

第5実施例 第23図には、前記第1実施例の変形例が第5実施例とし
て示されている。
Fifth Embodiment FIG. 23 shows a modification of the first embodiment as a fifth embodiment.

本実施例の特徴は、基準軸データメモリ10に格納される
基準軸データの桁数が多い場合でも、各バッファメモリ
20,30,40のメモリ容量を増やすことなく、基準軸データ
を高速ソーティング可能とすることにある。
The feature of this embodiment is that even if the number of digits of the reference axis data stored in the reference axis data memory 10 is large, each buffer memory
The purpose is to enable high-speed sorting of reference axis data without increasing the memory capacity of 20,30,40.

本実施例において、前記基準軸データメモリ10は、デー
タ番号によりアドレスが指定される基準軸データ記憶エ
リア14を有する。
In this embodiment, the reference axis data memory 10 has a reference axis data storage area 14 whose address is designated by a data number.

また、チェインバッファメモリ40は2組設けられ、一方
メモリ40にデータが書き込まれているとき、他方メモリ
40からデータが読み出されるよう構成されている。
Two sets of chain buffer memory 40 are provided. When data is written in one memory 40, the other memory
It is configured to read data from 40.

そして、データ発生回路8から出力される基準軸データ
を、そのデータ番号順に対応する記憶エリア14へ順次書
き込み記憶する。実施例では、3Mビットで構成される基
準軸データを対応する記憶エリア14へ書き込むよう構成
されている。
Then, the reference axis data output from the data generating circuit 8 is sequentially written and stored in the storage area 14 corresponding to the data number order. In the embodiment, the reference axis data composed of 3 Mbits is written in the corresponding storage area 14.

このようにして、基準軸データメモリ10内への基準軸デ
ータの書き込みが終了すると、次にこの基準軸データメ
モリ10から、基準軸データの読出が開始される。
When the writing of the reference axis data into the reference axis data memory 10 is completed in this way, the reading of the reference axis data from the reference axis data memory 10 is started next.

本実施例の特徴は、基準軸データを構成する3Mビットデ
ータを所定ビット毎に複数のサーチ桁(このように所定
ビット毎にまとまったサーチ桁がサーチ群に相当する)
に分割し、基準軸データメモリ10からの基準軸データメ
モリの読出しを、サーチ桁単位で行なうことにある。
The feature of this embodiment is that a plurality of search digits of the 3M-bit data forming the reference axis data is provided for each predetermined bit (the search digits collected for each predetermined bit in this way correspond to a search group).
And reading the reference axis data memory from the reference axis data memory 10 in search digit units.

本実施例では、基準軸データメモリ10内への基準軸デー
タの書き込みが終了すると、まずこの基準軸データメモ
リ10から、下位Mビットデータが1〜Nのデータ番号順
に順次読み出され、ファーストバッファメモリ20および
ラストバッファメモリ30へ向け出力される。
In this embodiment, when the writing of the reference axis data into the reference axis data memory 10 is completed, first, the lower M bit data is sequentially read from the reference axis data memory 10 in the order of the data numbers 1 to N, and the first buffer The data is output to the memory 20 and the last buffer memory 30.

このようにして読み出された各基準軸データの下位Mビ
ットデータは、前記第1実施例と同様にソーティング処
理される。このとき、2組設けられたチェーンバッファ
メモリ40の内の一方にデータの書き込みが行われる。従
って、該一方のチェーンバッファメモリ40のチェーンデ
ータ番号記憶エリア44には、基準軸データの下位Mビッ
トデータが昇順または降順に連鎖するよう、データ番号
が書込まれることになる。
The lower M-bit data of each reference axis data read out in this way is subjected to the sorting process as in the first embodiment. At this time, data is written to one of the two sets of chain buffer memories 40. Therefore, the data number is written in the chain data number storage area 44 of the one chain buffer memory 40 so that the lower M bit data of the reference axis data are chained in ascending or descending order.

本実施例において、第4の制御回路80dは、一方のチェ
ーンバッファメモリ40のチェーンデータ番号記憶エリア
44へ書込まれたデータ番号を、前記第1実施例と同様
に、所定の読み出し規則にしたがって読み出す。そし
て、読み出されたデータ番号順に、基準軸データメモリ
10から基準軸データの中位Mビットデータを各バッファ
メモリ20,30へ向け読み出し制御する。
In the present embodiment, the fourth control circuit 80d is the chain data number storage area of one chain buffer memory 40.
The data number written in 44 is read according to a predetermined read rule, as in the first embodiment. Then, in the order of the read data numbers, the reference axis data memory
The medium M-bit data of the reference axis data from 10 is directed to the buffer memories 20 and 30 and controlled.

このようにして読み出された基準軸データの中位Mビッ
トデータは、同様にしてソーティング処理される。この
とき、2組設けられたチェーンバッファメモリ40の内の
他方にデータの書き込みが行われる。これにより、該他
方のチェーンバッファメモリ40のチェーンデータ番号記
憶エリア44には、基準軸データの中位Mビットデータが
昇順または降順に連鎖するよう、データ番号が書き込ま
れることになる。
The middle M-bit data of the reference axis data read out in this way is similarly sorted. At this time, data is written to the other of the two sets of chain buffer memories 40. As a result, the data number is written in the chain data number storage area 44 of the other chain buffer memory 40 so that the middle M-bit data of the reference axis data are chained in ascending or descending order.

実施例の第4の制御回路80dは、このようにして他方の
チェーンデータ番号記憶エリア44に書込まれたデータ番
号を、所定の読み出し規則にしたがって読み出しす。そ
して、読み出されたデータ番号順に、基準軸データメモ
リ10から基準軸データの上位Mビットデータを順次読み
出し各バッファメモリ20,30へ向け出力する。
The fourth control circuit 80d of the embodiment reads the data number thus written in the other chain data number storage area 44 according to a predetermined read rule. Then, the higher order M-bit data of the reference axis data is sequentially read from the reference axis data memory 10 in the order of the read data numbers, and is output to the buffer memories 20 and 30.

そして、このようにしてバッファメモリ20,30に向け出
力された基準軸データの上位Mビットを、同様にしてソ
ーティング処理する。このとき、2組設けられたチェー
ンバッファメモリ40の内の一方にデータの書き込みが行
われる、従って、該一方のチェーンバッファメモリ40の
チェーンデータ番号記憶エリア44には、基準軸データの
上位Mビットデータが昇順または降順に連鎖するよう、
データ番号が書き込まれることになる。
Then, the upper M bits of the reference axis data output to the buffer memories 20 and 30 in this way are similarly sorted. At this time, data is written into one of the two sets of chain buffer memories 40. Therefore, in the chain data number storage area 44 of the one chain buffer memory 40, the upper M bits of the reference axis data are written. So that the data is chained in ascending or descending order,
The data number will be written.

このように、基準軸データの所定桁をサーチ桁(実施例
ではMビットデータで構成される桁)として設定し、各
サーチ桁に基づく基準軸データのソーティング処理を、
基準軸データの最下位のサーチ桁から最上位のサーチ桁
に向けサーチ桁をシフトしながら繰返し行う。これによ
り、最上位のサーチ桁に基づく基準軸データのソーティ
ング処理を終了した段階で、チェーンデータ番号記憶エ
リア44には基準軸データが昇順または降順に連鎖するよ
うデータ番号が書き込まれることになる。
In this way, a predetermined digit of the reference axis data is set as a search digit (a digit composed of M-bit data in the embodiment), and the sorting processing of the reference axis data based on each search digit is performed.
The search digit is shifted repeatedly from the lowest search digit of the reference axis data to the highest search digit. As a result, when the sorting process of the reference axis data based on the highest search digit is completed, the data numbers are written in the chain data number storage area 44 so that the reference axis data are linked in ascending or descending order.

従って、実施例の第3の制御回路80cは、最上位のサー
チ桁に基づく基準軸データのソーティング処理終了後、
チェーンデータ番号記憶エリア44内に書き込まれたデー
タ番号を所定の読み出し規則にしたがい読み出す。そし
て、読み出されたデータ番号順に、基準軸データメモリ
10から基準軸データを出力するよう読み出し制御する。
Therefore, the third control circuit 80c of the embodiment, after finishing the sorting process of the reference axis data based on the highest search digit,
The data number written in the chain data number storage area 44 is read according to a predetermined read rule. Then, in the order of the read data numbers, the reference axis data memory
Read control to output the reference axis data from 10.

これにより、基準軸データメモリ10が多数の桁で構成さ
れる場合でも、各バッファメモリ20,30,40のメモリ容量
を増加させることなく、簡単な構成でしかも高速ソーテ
ィングを行うことが可能となる。
As a result, even when the reference axis data memory 10 is composed of a large number of digits, it is possible to perform high-speed sorting with a simple configuration without increasing the memory capacity of each buffer memory 20, 30, 40. .

次に、基準軸データを昇順にソーティングする場合の具
体的な動作を第24図に基づき説明する。ここでは説明を
簡単なものとするために、3進数で構成された基準軸デ
ータをその最下位の桁から1桁ずつソーティングする場
合を例にとり説明する。
Next, a specific operation when sorting the reference axis data in ascending order will be described with reference to FIG. Here, in order to simplify the description, a case will be described as an example in which the reference axis data composed of a ternary number is sorted one digit at a time from the least significant digit.

まず、基準軸データメモリ10に、第24図(A)に示すよ
うに基準軸データが格納された場合を想定する。
First, assume that the reference axis data is stored in the reference axis data memory 10 as shown in FIG.

このようにして格納された基準軸データに対し、1回目
のソーティング動作が開始されると、サーチ桁を表わす
変数mが0にセットされる。そして、基準軸データメモ
リ10からm=0のサーチ桁の値がそのデータ番号順に読
み出され、読み出されたm=0のサーチ桁の基準軸デー
タが、前述したようにソーティング処理される。これに
より、チェーンデータ番号記憶エリア44には、基準軸デ
ータのm=0のサーチ桁の値が昇順に連鎖するよう、そ
のデータ番号が記憶されることになる。
When the first sorting operation is started for the reference axis data thus stored, the variable m representing the search digit is set to 0. Then, the value of the search digit of m = 0 is read out from the reference axis data memory 10 in the order of the data numbers, and the read reference axis data of the search digit of m = 0 is sorted as described above. As a result, the chain data number storage area 44 stores the data number so that the values of the search digit of m = 0 of the reference axis data are linked in ascending order.

次に、このチェーンデータ番号記憶エリア44内に書き込
まれたデータ番号を、所定の読み出し規則に従って読み
出し、読み出されたデータ番号順に基準軸データメモリ
10から基準軸データのm=1のサーチ桁の読み出す。こ
のとき、基準軸データメモリ10から読み出される基準軸
データの読み出し順序は、第24図(B)に示すようにな
る。同図から明らかなように、基準軸データのm=1の
桁の値は、m=0のサーチ桁の値にしたがって昇順にソ
ーティングされて読み出されることが理解されよう。
Next, the data numbers written in the chain data number storage area 44 are read according to a predetermined read rule, and the reference axis data memory is read in the order of the read data numbers.
The search digit of m = 1 of the reference axis data is read from 10. At this time, the reading order of the reference axis data read from the reference axis data memory 10 is as shown in FIG. 24 (B). As is apparent from the figure, it is understood that the value of the digit of m = 1 of the reference axis data is sorted and read in ascending order according to the value of the search digit of m = 0.

そして、読み出されたm=1のサーチ桁の値を同様にし
てソーティング処理すると、チェーンデータ番号記憶エ
リア44には、基準軸データのm=1のサーチ桁の値が昇
順に連鎖するよう、そのデータ番号が記憶されることに
なる。従って、チェーンデータ番号記憶エリア44内に書
き込まれたデータ番号に基づき、基準軸データメモリ10
から基準軸データのm=2のサーチ桁を読み出ことによ
り、この基準軸データメモリ10からは第24図(C)に示
す順序で、基準軸データのm=2のサーチ桁の値が読み
出されることになる。
When the read m = 1 search digit value is similarly sorted, the m = 1 search digit value of the reference axis data is chained in ascending order in the chain data number storage area 44. The data number will be stored. Therefore, based on the data number written in the chain data number storage area 44, the reference axis data memory 10
By reading the m = 2 search digit of the reference axis data from, the value of the m = 2 search digit of the reference axis data is read from the reference axis data memory 10 in the order shown in FIG. 24 (C). Will be done.

このように、ソーティング処理を、基準軸データの最下
位の桁から最上位の桁に向けサーチ桁を1桁ずつシフト
しながら繰返し行うことにより、最上位のサーチ桁m=
2のソーティング処理を終了した時点で、チェーンデー
タ番号記憶エリア44には、基準軸データが第24図(D)
で示すように昇順に連鎖するようにデータ番号が書き込
まれることになる。
In this way, the sorting process is repeatedly performed while shifting the search digit from the lowest digit of the reference axis data to the highest digit of the reference axis data by one digit.
When the sorting process of No. 2 is completed, the reference axis data is stored in the chain data number storage area 44 as shown in FIG.
The data numbers are written so that they are linked in ascending order as shown by.

従って、第3の制御回路80cは、最上位のサーチ桁m=
2のソーティング処理終了後、チェーンデータ番号記憶
エリア44に書き込まれたデータ番号を所定の読出し順序
で読み出し、基準軸データメモリ10から基準軸データを
読み出す。これにより、基準軸データメモリ10からは、
基準軸データが第24図(D)に示すように昇順にソーテ
ィング出力されることとなる。
Therefore, the third control circuit 80c determines that the highest search digit m =
After the sorting process of No. 2 is completed, the data numbers written in the chain data number storage area 44 are read in a predetermined reading order, and the reference axis data is read from the reference axis data memory 10. As a result, from the reference axis data memory 10,
The reference axis data is sorted and output in ascending order as shown in FIG.

なお、ここでは、基準軸データを昇順にソーティングす
る場合を例にとり説明したが、各サーチ桁の値を降順に
ソーティング処理する動作を繰返すことにより、基準軸
データを降順にソーティング出力することもできる。
Here, the case where the reference axis data is sorted in the ascending order has been described as an example, but the reference axis data can be sorted and output in the descending order by repeating the operation of sorting the values of each search digit in the descending order. .

また、本実施例ではチェイバッファアメモリ40を2個設
けた場合を例にとり説明した。しかし、これに限らず、
例えばチェーンバンファメモリ40へ書込まれたデータ番
号を一旦他のメモリへ転送した後、該メモリからデータ
番号を所定の読み出し規則にしたがって読み出し、読み
出されたデータ番号順に、基準軸データメモリ10から所
定サーチ桁のMビットデータを各バッファメモリ20,30
へ向け読み出し制御するよう構成してもよい。このよう
にすることにより、データのソーティング速度は低下す
るが、チェイバッファアメモリ40は1組設けるのみでよ
い。
Further, in the present embodiment, the case where two chase buffer memories 40 are provided has been described as an example. However, not limited to this,
For example, after the data number written in the chain bunfer memory 40 is once transferred to another memory, the data number is read from the memory according to a predetermined read rule, and the reference axis data memory 10 is read in the order of the read data numbers. To M-bit data of a predetermined search digit from each buffer memory 20,30
It may be configured to perform read control toward. By doing so, the data sorting speed is reduced, but only one set of the chase buffer memory 40 is required.

第6実施例 第25図には、本発明の好適な第6実施例が示されてい
る。前記第3実施例では、組合せ情報を含むソーティン
グデータを基準軸データに基づきソーティングする回路
を、前記第1の実施例の回路を用いて形成した場合を例
にとり説明した。本実施例では、このようなソーティン
グ回路を前記第5実施例の回路を用いて形成したことを
特徴とする。
Sixth Embodiment FIG. 25 shows a sixth preferred embodiment of the present invention. In the third embodiment, the case where the circuit for sorting the sorting data including the combination information based on the reference axis data is formed using the circuit of the first embodiment has been described as an example. The present embodiment is characterized in that such a sorting circuit is formed by using the circuit of the fifth embodiment.

本実施例のソーティング回路は、情報メモリ58と、前記
第2実施例に示す回路とから構成されている。
The sorting circuit of this embodiment comprises an information memory 58 and the circuit shown in the second embodiment.

そして、外部のデータ発生回路8から出力されるソーテ
ィングデータに含まれる基準軸データは、基準軸データ
メモリ10へ入力され、前記第5実施例と同様にしてソー
ティング処理される。従って、チェーンバッファメモリ
40のチェーンデータ記憶エリア44には、基準軸データが
昇順または降順に連鎖するようデータ番号が記憶される
ことになる。
Then, the reference axis data included in the sorting data output from the external data generating circuit 8 is input to the reference axis data memory 10 and subjected to the sorting process in the same manner as the fifth embodiment. Therefore, the chain buffer memory
In the chain data storage area 44 of 40, the data numbers are stored so that the reference axis data are linked in ascending order or descending order.

そして、第3の制御回路80cは、チェーンデータ番号記
憶エリア44に記憶されたデータ番号を、前記第5実施例
と同様にして読み出し、読み出したデータ番号順に、情
報メモリ58から組合せ情報を読み出し制御する。これに
より、情報メモリ58から一連の組合せ情報が基準軸デー
タに基づき昇順または降順にソーティング出力されるこ
とになる。
Then, the third control circuit 80c reads the data numbers stored in the chain data number storage area 44 in the same manner as in the fifth embodiment, and controls the reading of the combination information from the information memory 58 in the order of the read data numbers. To do. As a result, a series of combination information is sorted and output from the information memory 58 in ascending or descending order based on the reference axis data.

本願ソーティング回路との比較 なお、本出願人は、昭和62年8月31日付にて、本願ソー
ティング回路とは別に新なソーティング回路の出願を行
っている(特願昭62−217044号)。
Comparison with the Sorting Circuit of the Present Application The applicant of the present application filed a new sorting circuit in addition to the sorting circuit of the present application on August 31, 1987 (Japanese Patent Application No. 62-217044).

この先願に係るソーティング回路と、本願第1実施例の
ソーティング回路とのソーティング時間を単純に比較す
ると次のようになる。
A simple comparison of the sorting time between the sorting circuit according to this prior application and the sorting circuit of the first embodiment of the present application is as follows.

まず、ソーティングの対象となる基準軸データ数がN個
で、各基準軸データのビット数をMとすると、そのソー
ティング処理時間(RAMのアクセス)は単純比較で次の
ようになる。
First, assuming that the number of reference axis data to be sorted is N and the number of bits of each reference axis data is M, the sorting processing time (RAM access) is as follows in a simple comparison.

まず、先願に係るソーティング回路ではそのソーティン
グ処理時間は、 (4N+2)×M+N+4サイクル …(1) で表される。なおこの式の詳細は、先願に係る明細書に
すでに詳述されているので、ここではその説明は省略す
る。
First, in the sorting circuit according to the prior application, the sorting processing time is represented by (4N + 2) × M + N + 4 cycles (1). Since the details of this equation have already been described in the specification of the prior application, the description thereof will be omitted here.

ここにおいて、N=1023個,M=15ビット,RAMアクセスを
6.144MHzのサイクルスチールとすると、全処理時間は、 62437サイクル/6.144MHz=10.2msec となり、1フィールド時間(約16.5mmsec)内に十分に
間にあう。
Here, N = 1023, M = 15 bits, RAM access
If the cycle steal is 6.144MHz, the total processing time is 62437 cycles / 6.144MHz = 10.2msec, which is sufficiently long within one field time (about 16.5mmsec).

ところが、データ数が増え、N=2047個、M=15ビット
のようになった場合には、この処理時間は、 124901サイクル/6.144MHz=20.3msec となってしまい、1フィールド時間では間にあわなくな
ってしまう。
However, when the number of data increases and N = 2047 and M = 15 bits, this processing time becomes 124901 cycles / 6.144MHz = 20.3msec, which is not enough for one field time. I will end up.

このように、先願に係るソーティング回路ではソーティ
ングの対象となるデータのビット数に対してそのデータ
個数が多いと、1フィールド分の時間ではそのソーティ
ング処理が行えなくなり不都合が生じる。
As described above, in the sorting circuit according to the prior application, if the number of data is larger than the number of bits of the data to be sorted, the sorting process cannot be performed in the time for one field, which causes a problem.

特に、後述する三次元画像合成装置では、ソーティング
の対象となるデータの個数(システム的に言えば、表示
ポリゴン数)が増加の傾向にあるので、より高速のソー
ティング回路が必要とされる。
In particular, in the three-dimensional image synthesizing apparatus described later, the number of data to be sorted (the number of display polygons in terms of system) tends to increase, so a higher speed sorting circuit is required.

本発明のソーティング回路は、このような要請の下にな
されたものであり、同一の条件で単純計算すると、その
ソーティング処理時間は次のようになる。
The sorting circuit of the present invention has been made under such a requirement, and when the simple calculation is performed under the same conditions, the sorting processing time is as follows.

まず、基準軸データメモリ10は、一回全ての基準軸デー
タを読出すので、Nサイクルを必要とする。
First, since the reference axis data memory 10 reads out all the reference axis data once, it requires N cycles.

また、ファーストバッファメモリ20は、データの書込み
にNサイクル、チェインバッファメモリ50へのデータ転
送の際の読出しに2Mサイクルを必要とする。
The fast buffer memory 20 requires N cycles for writing data and 2 M cycles for reading when transferring data to the chain buffer memory 50.

ラストバッファメモリ30は、データのチェックのための
読出にNサイクル、データの書込みに同じくNサイク
ル、チェインバッファメモリ40へのデータ転送のために
2Mサイクルを必要とする。
The last buffer memory 30 has N cycles for reading for checking data, N cycles for writing data, and for transferring data to the chain buffer memory 40.
Requires 2 M cycles.

また、チェインバッファメモリ40は、データの書込みの
ためにNサイクルを必要とする。
Further, the chain buffer memory 40 requires N cycles for writing data.

これ以外に、各バッファメモリへのデータの書込みに先
だって、ファーストバッファメモリ20およびラストバッ
ファメモリ30の内容を零クリアするために、ファースト
バッファメモリ20の零クリアにNサイクル、ラストバッ
ファメモリ30の零クリアにNサイクルを必要とされる。
In addition to this, in order to clear the contents of the first buffer memory 20 and the last buffer memory 30 to zero before writing the data to each buffer memory, the first buffer memory 20 is cleared to zero for N cycles, and the last buffer memory 30 is cleared to zero. N cycles are required to clear.

従って、以上をまとめると、ソーティング処理作業全体
では、 7×N+2×2Mサイクル …(2) の処理時間が必要となる。従って、ソーティングの対象
となる基準軸データのビット数をM=15と仮定し、記述
軸データの個数Nを変え、そのソーティング処理時間を
前記第1式、第2式に基づき演算すると、先願に係るソ
ーティング処理時間および本発明に係るソーティング回
路の処理時間は次表で表わされる。
Therefore, to summarize the above, the processing time of 7 × N + 2 × 2 M cycles (2) is required for the entire sorting processing work. Therefore, assuming that the number of bits of the reference axis data to be sorted is M = 15, the number N of the description axis data is changed, and the sorting processing time is calculated based on the first and second equations, the prior application The sorting processing time according to the present invention and the processing time of the sorting circuit according to the present invention are shown in the following table.

この第1表から明らかなように、ソーティングの対象と
なる基準軸データの個数が少ない場合には、先願のソー
ティング回路の処理時間のほうが短いが、ソーティング
対象となる基準軸データの個数が増えるにしたがい、本
発明のソーティング回路の処理時間が大幅に短くなるこ
とが理解されよう。
As is clear from Table 1, when the number of reference axis data to be sorted is small, the processing time of the sorting circuit of the prior application is shorter, but the number of reference axis data to be sorted increases. Accordingly, it will be understood that the processing time of the sorting circuit of the present invention is significantly reduced.

従って、本発明によれば、基準軸データの個数が増加す
るにしたがい、そのソーティング時間を大幅に短縮した
高速ソーティングが可能となる。
Therefore, according to the present invention, as the number of reference axis data increases, it becomes possible to perform high-speed sorting by significantly reducing the sorting time.

用途 以上説明したように、本発明に係るソーティング回路
は、大量の基準軸データを高速ソーティングすることが
できる。このため基準軸データが各種の情報と組合さ
れ、データ量が大きなソーティングデータとなった場合
でも、このようなデータ量の多い各種ソーティングデー
タをその基準軸データに基づき高速でソーティング処理
することが可能となり、例えばデータベースの情報を日
付等の基準軸データに基づきソーティングする場合やそ
の他の用途に広範囲に用いることができる。
Applications As described above, the sorting circuit according to the present invention can sort a large amount of reference axis data at high speed. Therefore, even if the reference axis data is combined with various information and the sorting data has a large amount of data, various sorting data with such a large amount of data can be sorted at high speed based on the reference axis data. Therefore, for example, it can be widely used for sorting information on a database based on reference axis data such as date and for other purposes.

具体例 第5図には本発明が適用された三次元画像合成装置の好
適な具体例が示されており、実施例の装置は、ポリゴン
情報発生回路50,ポリゴン情報転送回路52,ソーティング
回路S,ポリゴン表示回路60を含み、立体の二次元画像、
すなわち擬似三次元画像を、ポリゴン表示回路60のCRT
上に合成表示するように形成されている。
Concrete Example FIG. 5 shows a preferable concrete example of the three-dimensional image synthesizing apparatus to which the present invention is applied. The apparatus of the embodiment is a polygon information generating circuit 50, a polygon information transferring circuit 52, a sorting circuit S. , Including the polygon display circuit 60, three-dimensional two-dimensional image,
That is, the pseudo three-dimensional image is displayed on the CRT of the polygon display circuit 60.
It is formed so as to display a composite image above.

本実施例において、前記ポリゴン情報発生回路50は、三
次元の立体情報を扱いこれに回転,平行移動,透視,投
影等の各種変換を施して、表示すべき三次元情報を二次
元多角形の組合せ情報に変換し、各多角形の頂点の(X,
Y)座標をポリゴン情報として演算している。
In the present embodiment, the polygon information generation circuit 50 handles three-dimensional stereoscopic information and performs various conversions such as rotation, parallel movement, perspective, projection, etc., to convert the three-dimensional information to be displayed into a two-dimensional polygon. Converted to combination information, (X,
Y) Coordinates are calculated as polygon information.

なお、ポリゴン情報発生回路50は、各多角形の奥行方向
の表示地点、すなわち各多角形中心のZ座標をもポリゴ
ン情報として演算し、さらに必要に応じて多角形の色情
報,輝度情報などを付随情報として演算する。
The polygon information generation circuit 50 also calculates the display point in the depth direction of each polygon, that is, the Z coordinate of the center of each polygon, as polygon information, and further calculates polygon color information, luminance information, etc. as necessary. Calculate as accompanying information.

なお、本実施例においては説明を簡単にするために、付
随情報として色情報が演算されるものとして以後の説明
を行う。
In the present embodiment, in order to simplify the description, the following description will be given on the assumption that color information is calculated as the incidental information.

第6図にはこのようにして演算された多角形のポリゴン
情報の一例が示されている。
FIG. 6 shows an example of polygon information of the polygon thus calculated.

ポリゴン情報発生回路50が、このようにして各多角形の
ポリゴン情報(多角形の頂点位置におけるXY座標、中心
点におけるZ座標および色情報)を演算すると、ポリゴ
ン情報転送回路52は、第7図に示すように、各多角形の
ポリゴン情報を、Z座標データと、それ以外のデータと
に分離し、Z座標データを基準軸データメモリ10に書込
み、それ以外のデータ(組分せ情報)をXYRAM58へ書込
む。
When the polygon information generation circuit 50 calculates polygon information (XY coordinates at the vertex positions of the polygon, Z coordinates at the center point, and color information) of each polygon in this way, the polygon information transfer circuit 52 causes the polygon information transfer circuit 52 shown in FIG. As shown in, the polygon information of each polygon is separated into Z coordinate data and other data, the Z coordinate data is written in the reference axis data memory 10, and the other data (grouping information) is written. Write to XYRAM58.

このようにして、ポリゴン情報発生回路50から、各多角
形のポリゴン情報が演算出力されるたびに、このポリゴ
ン情報のZ座標は基準軸データメモリ10内に順次入力さ
れ、またZ座標以外のポリゴン情報はXYRAM58へ順次入
力される。このとき、データ数レジスタ54は、ポリゴン
情報発生回路50から演算出力される多角形の数をカウン
トし、各ラスタ走査ごとに表示多角形の数を検出してい
る。
In this way, each time polygon information of each polygon is calculated and output from the polygon information generation circuit 50, the Z coordinate of this polygon information is sequentially input into the reference axis data memory 10, and polygons other than the Z coordinate are also input. Information is sequentially input to XYRAM58. At this time, the data number register 54 counts the number of polygons calculated and output from the polygon information generation circuit 50, and detects the number of display polygons for each raster scan.

第8図には、実施例の三次元画像合成装置に用いられる
ソーティング回路Sが示されており、実施例のソーティ
ング回路Sは、CRTの一画面ごとに演算される複数のポ
リゴン情報を、そのZ座標値が小さいものから順に昇順
にソーティングし、ポリゴン表示回路60に向けて出力す
る。
FIG. 8 shows a sorting circuit S used in the three-dimensional image synthesizing apparatus of the embodiment. The sorting circuit S of the embodiment shows a plurality of polygon information calculated for each screen of the CRT. Sorting is performed in ascending order from the smallest Z coordinate value, and output to the polygon display circuit 60.

従って、第9図に示すようにCRTの画面上を基準点と
し、その奥行方向に向けてZ座標が大きくなるようにXY
Zの三次元座標を設定すると、ソーティング回路Sから
は、画面の手前に表示される多角形、すなわち優先度の
高い多角形のポリゴン情報から順にソーティング出力さ
れることになる。
Therefore, as shown in Fig. 9, the X-axis is set so that the Z coordinate increases in the depth direction with the CRT screen as the reference point.
When the three-dimensional coordinates of Z are set, the sorting circuit S outputs the polygons displayed in front of the screen, that is, polygon information having a high priority in order.

そして、ポリゴン表示回路60は、このように出力される
各多角形のポリゴン情報を、その優先度を基にして画像
合成し、例えば複数の多角形が重合せ表示されるような
場合は、その優先度の高い多角形が優先的に表示される
よう三次元画像の合成を行う。
Then, the polygon display circuit 60 synthesizes the polygon information of each polygon thus output based on the priority thereof, and, for example, when a plurality of polygons are superimposed and displayed, the polygon information is displayed. A three-dimensional image is composed so that a polygon with a high priority is preferentially displayed.

ポリゴン情報発生回路 第10図には、飛行機用操縦シュミレータ装置に適用され
たポリゴン情報発生回路50の具体的な構成が示されてお
り、実施例のポリゴン情報発生回路50は、飛行中におけ
る各種フライト条件のシュミレーション画像を演算出力
している。
Polygon Information Generation Circuit FIG. 10 shows a specific configuration of the polygon information generation circuit 50 applied to the airplane simulator, and the polygon information generation circuit 50 of the embodiment is used for various flights during flight. The simulation image of the condition is calculated and output.

まず、三次元演算回路50−4は、飛行機を原点とした移
動座標系を想定する。
First, the three-dimensional arithmetic circuit 50-4 assumes a moving coordinate system whose origin is an airplane.

そして、メインCPU回路50−2から、飛行機の現在位置
を表す移動座標が出力されると、この三次元演算回路50
−4は三次元情報メモリ50−3から所定の多面体データ
の読出しを行う。実施例において、三次元情報メモリ50
−3に書き込まれた情報は、固定座標系を用いて表され
ているため、三次元演算回路50−4は、三次元情報メモ
リ50−3から読み出した情報を移動座標系の座標データ
に変換する必要がある。
Then, when the moving coordinates representing the current position of the airplane are output from the main CPU circuit 50-2, the three-dimensional arithmetic circuit 50
-4 reads out predetermined polyhedron data from the three-dimensional information memory 50-3. In the embodiment, the three-dimensional information memory 50
Since the information written in -3 is expressed using a fixed coordinate system, the three-dimensional arithmetic circuit 50-4 converts the information read from the three-dimensional information memory 50-3 into coordinate data of the moving coordinate system. There is a need to.

この変換には、座標の回転と平行移動という2つの演算
要素の組合せで実現することができ、この演算の過程に
おいて、パイロットの視野に入らないことが判明した情
報(Z<0など)が除去される。変換により求められた
状況データは、メインCPU回路50−2へ向け出力され
る。そして、座標変換された各多面体情報は、次に表示
画面がZ−0の平面上にあるとして、Z<0の視点に向
って透視投影変換される。
This conversion can be realized by a combination of two calculation elements of rotation and translation of coordinates, and in the process of this calculation, information (Z <0, etc.) which is found not to be in the field of view of the pilot is removed. To be done. The status data obtained by the conversion is output to the main CPU circuit 50-2. Then, the coordinate-converted pieces of polyhedron information are perspective-projected toward the viewpoint of Z <0 assuming that the display screen is on the plane Z-0.

このような透視投影変換により、前記各多面体データ
は、多面体の各頂点座標をX、Yの二次元に変換した点
情報の集りとして表される。
By such perspective projection conversion, each polyhedron data is represented as a collection of point information obtained by converting each vertex coordinate of the polyhedron into two dimensions of X and Y.

また、このような透視投影変換を行うにあたり、視点と
多面体の各頂点座標との距離を求めておく。
Further, in performing such perspective projection conversion, the distance between the viewpoint and each vertex coordinate of the polyhedron is obtained.

そして、前記透視投影変換により求められた二次元の点
座標(多面体の頂点座標)を、多面体表面を表す各多角
形毎に分類し、分類した多角形がパイロットの視野すな
わち画面の視野に入るか否かをチェックし、視野に全く
入らない多角形は除去する。
Then, the two-dimensional point coordinates (coordinates of the vertices of the polyhedron) obtained by the perspective projection transformation are classified for each polygon representing the surface of the polyhedron, and whether the classified polygons are in the visual field of the pilot, that is, the visual field of the screen. Check whether or not, and remove polygons that do not fit in the field of view.

その後、この三次元演算回路50−4は、受付け座標範囲
に入る多角形に対し、当該多角形の中心点におけるZ座
標の値を代表値として決定する。
After that, the three-dimensional arithmetic circuit 50-4 determines, for a polygon within the acceptance coordinate range, the value of the Z coordinate at the center point of the polygon as a representative value.

これと同時に、三次元演算回路50−4は、受付け座標範
囲に入る各多角形の付随データ、実施例においては色情
報を演算する。
At the same time, the three-dimensional arithmetic circuit 50-4 calculates the incidental data of each polygon within the acceptance coordinate range, that is, color information in the embodiment.

そして、三次元演算回路50−4は、このようにして求め
た各多角形の頂点のXY座標、その中心位置のZ座標およ
び色情報をポリゴン情報として各多角形毎に出力する。
Then, the three-dimensional arithmetic circuit 50-4 outputs the XY coordinates of the vertices of the respective polygons thus obtained, the Z coordinate of the center position thereof, and the color information as polygon information for each polygon.

実施例のポリゴン情報発生回路50から出力される各多角
形のポリゴン情報は17ワードで構成され、その中の1ワ
ードが中心点のZ座標、残りの16ワードが多角形の頂点
のXY座標、色情報などを表すために用いられている。
The polygon information of each polygon output from the polygon information generating circuit 50 of the embodiment is composed of 17 words, one word of which is the Z coordinate of the center point, and the remaining 16 words are the XY coordinates of the vertices of the polygon. It is used to represent color information.

また、前記1ワードは16ビットで構成されている。The 1 word is composed of 16 bits.

このようにして、実施例のポリゴン情報発生回路50は、
パイロットの視野に入る状況を複数の多角形の組合せ情
報に変換し、各多角形のポリゴン情報をソーティング回
路Sへ向け順次出力することになる。
In this way, the polygon information generation circuit 50 of the embodiment,
The situation in which the pilot is in the visual field is converted into a plurality of polygon combination information, and the polygon information of each polygon is output to the sorting circuit S in order.

ここにおいて、各多角形はそのポリゴン情報に含まれる
Z座標値が小さいほど画面の手前に表示されるため、ポ
リゴン情報に含まれるZ座標値の値が小さいほど当該多
角形の優先度が高いことになる。従って、このようにラ
ンダムに出力される各多角形のポリゴン情報をそのZ座
標値の小さい順にソーティングしてやれば、ポリゴン表
示回路22による三次元画像の合成を簡単かつ迅速に行う
ことが可能となる。
Here, since each polygon is displayed closer to the screen as the Z coordinate value included in the polygon information is smaller, the smaller the Z coordinate value included in the polygon information is, the higher the priority of the polygon is. become. Therefore, if the polygon information of each polygon that is randomly output in this way is sorted in ascending order of the Z coordinate value, it becomes possible to easily and quickly synthesize the three-dimensional image by the polygon display circuit 22.

ソーティング回路 本発明のソーティング回路は、所定の基準軸データを含
む複数のデータを、前記基準軸データに基づきソーティ
ングすることを特徴とするものである。
Sorting Circuit The sorting circuit of the present invention is characterized by sorting a plurality of data including predetermined reference axis data based on the reference axis data.

第8図には、本実施例に係るソーティング回路Sの具体
的な構成が示されている。
FIG. 8 shows a specific configuration of the sorting circuit S according to this embodiment.

このソーティング回路Sは、基準軸データメモリ10と、
情報メモリとして用いられるXYRAM58とを含む、そし
て、ポリゴン情報発生回路50から出力される一画面分の
多角形のポリゴン情報のうち、基準軸データとしてのZ
軸情報が基準軸データメモリ10に書込まれ、残りの情報
がXYRAM58に書込まれる。
The sorting circuit S includes a reference axis data memory 10 and
Of the polygon information of one screen including the XYRAM 58 used as an information memory and output from the polygon information generation circuit 50, Z as the reference axis data.
The axis information is written in the reference axis data memory 10, and the remaining information is written in the XYRAM 58.

ここにおいて、前記基準軸データメモリ10は、ファース
トバッファメモリ20,ラストバッファメモリ30およびチ
ェインバッファメモリ40とともに、一群のソーティング
RAM70として形成されている。
Here, the reference axis data memory 10 includes a first buffer memory 20, a last buffer memory 30 and a chain buffer memory 40 together with a group of sortings.
It is formed as RAM70.

そして、ソーティング制御回路80は、このソーティング
RAM70のデータの書込み,読出し制御し、基準軸データ
が昇順に連鎖するようそのデータ番号をチェインバッフ
ァ40に書込む。
Then, the sorting control circuit 80 uses this sorting
The writing and reading of the data in the RAM 70 are controlled, and the data number is written in the chain buffer 40 so that the reference axis data are linked in ascending order.

そして、このチェインバッファ40に書込まれたデータ番
号を、前述した所定の読出し規則に従って読出す。その
後、読出したデータ番号順に、前記XYRAM58から一画面
分の多角形のポリゴン情報を読出す。
Then, the data number written in the chain buffer 40 is read according to the above-mentioned predetermined reading rule. Then, the polygon information of the polygon for one screen is read from the XYRAM 58 in the order of the read data numbers.

このようにして、本実施例の装置は、ポリゴン情報発生
回路50から出力される一画面分のポリゴン情報を、その
Z座標に基づき昇順にソーティングし、ポリゴン表示回
路60へ向け出力することができる。
In this way, the apparatus of this embodiment can sort the polygon information for one screen output from the polygon information generating circuit 50 in ascending order based on the Z coordinate and output it to the polygon display circuit 60. .

以下、前記第3実施例のソーティング回路(第19図に示
すソーティング回路)を例にとり、その具体的な回路構
成を詳細に説明する。
Hereinafter, the specific circuit configuration will be described in detail by taking the sorting circuit of the third embodiment (sorting circuit shown in FIG. 19) as an example.

(a)第1の制御回路80a 第11図には、第19図に示す第1の制御回路80aの具体的
な回路構成が示されており、第12図にはその動作を示す
フローチャートが示されている。
(A) First control circuit 80a FIG. 11 shows a specific circuit configuration of the first control circuit 80a shown in FIG. 19, and FIG. 12 shows a flowchart showing its operation. Has been done.

この第1の制御回路80aは、基準軸データメモリ10に書
込まれたZ軸データを、そのデータ番号順に順次に読出
す。そして、読出したZ軸データをアドレスとして、対
応するデータ番号をファーストバッファメモリ20,ラス
トバッファメモリ30へ書込む。これと共に、ラストバッ
ファメモリ30のデータ番号が更新記録されたとき、更新
前のデータ番号をアドレスとして、更新後のデータ番号
をチェインバッファメモリ40へ書込む。
The first control circuit 80a sequentially reads the Z-axis data written in the reference-axis data memory 10 in the order of the data numbers. Then, using the read Z-axis data as an address, the corresponding data number is written to the first buffer memory 20 and the last buffer memory 30. At the same time, when the data number in the last buffer memory 30 is updated and recorded, the data number after the update is written in the chain buffer memory 40 by using the data number before the update as an address.

本実施例において、この第1の制御回路80aは、データ
番号ポインタ12と、データ数レジスタ54と、比較判定回
路110と、ステップ1制御回路112とを含む。
In this embodiment, the first control circuit 80a includes a data number pointer 12, a data number register 54, a comparison / determination circuit 110, and a step 1 control circuit 112.

ここにおいて、データ番号ポインタ12は、前述したよう
に、基準軸データメモリ10の書込み/読出しアドレスと
して1〜Nのデータ番号を出力するように形成されてい
る。
Here, the data number pointer 12 is formed so as to output a data number of 1 to N as the write / read address of the reference axis data memory 10 as described above.

従って、基準軸データメモリ10からZ軸データを、各バ
ッファメモリ20,30および40へ向け出力する場合に、こ
のデータ番号ポインタ12は、第3図に示すようにデータ
番号を1,2,3,…の順に順次インクリメント出力する。
Therefore, when the Z-axis data is output from the reference axis data memory 10 to the buffer memories 20, 30 and 40, the data number pointer 12 outputs the data numbers 1, 2, 3 as shown in FIG. The output is sequentially incremented in the order of, ....

これにより、基準軸データメモリ10からは、データ番号
順にZ軸データが順次各バッファメモリ20,30のアドレ
ス入力端子へ向け出力されると共に、ステップ1制御回
路112へ向け出力されることになる。
As a result, the Z-axis data is sequentially output from the reference axis data memory 10 to the address input terminals of the buffer memories 20 and 30 in the order of the data numbers and to the step 1 control circuit 112.

このとき、データ番号ポインタ12から出力されるデータ
番号は、ファーストバッファメモリ20、ラストバッファ
メモリ30およびチェインバッファメモリ40のデータ入力
端子Iへ向け出力されると共に、比較判定回路110へ向
けても出力されている。
At this time, the data number output from the data number pointer 12 is output to the data input terminal I of the first buffer memory 20, the last buffer memory 30, and the chain buffer memory 40, and also to the comparison / determination circuit 110. Has been done.

従って、ファーストバッファメモリ20およびラストバッ
ファメモリ30内の各データ番号記憶エリア24,34には、
例えば第12図のフロー1000で示すように、アドレス入力
端子Aに入力される基準軸データを書込みアドレスとし
て、データ入力端子Iに入力されるデータ番号が書込み
記憶されることになる。
Therefore, in the respective data number storage areas 24, 34 in the first buffer memory 20 and the last buffer memory 30,
For example, as indicated by the flow 1000 in FIG. 12, the reference axis data input to the address input terminal A is used as a write address, and the data number input to the data input terminal I is written and stored.

このとき、ラストデータ番号記憶エリア34内のデータ番
号が更新記録されると、更新前のデータは、出力端子O
からチェインバッファメモリ40のアドレス入力端子Aへ
向け出力される。
At this time, when the data number in the last data number storage area 34 is updated and recorded, the data before the update is output to the output terminal O
Is output to the address input terminal A of the chain buffer memory 40.

従って、第12図のフロー1100で示すように、チェインバ
ッファメモリ40のチェインデータ番号記憶エリア44に
は、ラストバッファメモリ30から出力される更新前のデ
ータ番号をアドレスとして、データ番号ポインタ12から
出力される新なデータ番号が書込み記憶されることにな
る。
Therefore, as shown in the flow 1100 of FIG. 12, the chain data number storage area 44 of the chain buffer memory 40 outputs the data number before update output from the last buffer memory 30 as an address from the data number pointer 12. The new data number will be written and stored.

このようなデータの転送書込み作業は、データ番号ポイ
ンタ12から新たなデータ番号がインクリメント出力され
る毎に繰返して行われる。
Such data transfer / writing work is repeatedly performed each time a new data number is incrementally output from the data number pointer 12.

そして、比較判定回路110は、データ番号ポインタ12か
らインクリメント出力されるデータ番号が、データ数レ
ジスタ54から出力されるCRT−画面分のポリゴン情報数
と一致した時点で、ステップ1制御回路112へ向け転送
制御終了信号を出力する。これにより、ステップ1制御
回路112は、バッファメモリ20,30および40に対する、一
連のデータ書込み作業を終了する。
Then, the comparison / determination circuit 110 directs the data to the step 1 control circuit 112 when the data number incremented and output from the data number pointer 12 matches the CRT-screen polygon information number output from the data number register 54. Output the transfer control end signal. As a result, the step 1 control circuit 112 finishes a series of data writing operations to the buffer memories 20, 30 and 40.

次に、ソーティング回路は、ステップ2の動作に切替わ
る。そして、ラストバッファメモリ30の各データ番号記
憶エリア34に記憶されたデータ番号を書込みアドレスと
して、所定の対応関係にあるファーストバッファ20内の
データ番号記憶エリア24内のデータ番号を、チェインバ
ッファメモリ40内のデータ番号記憶エリア44へ書込むと
いう一連の動作を開始する。
Next, the sorting circuit switches to the operation of step 2. Then, using the data numbers stored in the respective data number storage areas 34 of the last buffer memory 30 as write addresses, the data numbers in the data number storage areas 24 in the first buffer 20 having a predetermined correspondence relationship are set to the chain buffer memory 40. A series of operations for writing data in the data number storage area 44 inside is started.

(b)第2の制御回路80b 第13図には、このようなステップ2の転送制御を行う第
2の制御回路80bの具体的な回路構成が示されており、
第14図にはその動作を示すフローチャートが示されてい
る。
(B) Second control circuit 80b FIG. 13 shows a specific circuit configuration of the second control circuit 80b that performs the transfer control of step 2 as described above.
FIG. 14 shows a flowchart showing the operation.

この第2の制御回路80bは、ステップ2制御回路210と、
スタートアドレスセレクタ212と、スタートアドレスポ
インタ214と、アドレスポインタ22および32とを含む。
The second control circuit 80b includes a step 2 control circuit 210,
It includes a start address selector 212, a start address pointer 214, and address pointers 22 and 32.

そして、ステップ2制御回路210は、ステップ2の動作
が開始されると、第14図に示すフロー2000に従い各アド
レスポインタ22、32を「0」リセットする。そして、ア
ドレスポインタ22の出力する「0」アドレスで指定され
るファーストデータ記憶エリア24に、データ番号が書込
まれているか否かの判断を行う。このとき、このアドレ
ス0番地にデータ番号が記憶されていない場合には、ア
ドレスポインタ22をインクリメントし、インクリメント
された新たなアドレスで指定されるファーストデータ番
号記憶エリア24に、データ番号が記憶されているか否か
の判別を行う。このような判別操作を、データ番号が記
憶されたファーストデータ番号記憶エリア24が検出され
るまで、第14図に示すフロー2100に従って繰返し行う。
Then, when the operation of step 2 is started, the step 2 control circuit 210 resets the address pointers 22 and 32 to "0" according to the flow 2000 shown in FIG. Then, it is determined whether or not a data number is written in the first data storage area 24 designated by the "0" address output from the address pointer 22. At this time, if the data number is not stored in the address 0, the address pointer 22 is incremented, and the data number is stored in the first data number storage area 24 designated by the incremented new address. Whether or not it is determined. Such a discrimination operation is repeated according to the flow 2100 shown in FIG. 14 until the first data number storage area 24 in which the data number is stored is detected.

そして、データ番号が記憶されたファーストデータ番号
記憶エリア24が検出されると、そのときのデータ番号を
スタートアドレスとしてスタートアドレスポインタ310
へセットする。従って、例えば第3図に示す場合を例に
とると、最小の基準軸データ記憶されたファーストデー
タ番号記憶エリア24(この場合にはアドレス0で指定さ
れる記憶エリア24)から、その基準軸データに対応する
データ番号「5」が読出され、スタートアドレスとして
スタートアドレスポインタ310にセットされることにな
る。
Then, when the first data number storage area 24 in which the data number is stored is detected, the start address pointer 310 is set with the data number at that time as the start address.
Set to. Therefore, for example, taking the case shown in FIG. 3 as an example, from the first data number storage area 24 in which the smallest reference axis data is stored (in this case, the storage area 24 designated by address 0), the reference axis data is stored. The data number "5" corresponding to is read and set in the start address pointer 310 as the start address.

このようにして、スタートアドレスがセットされると、
次に第14図のフロー2200に従って、ラストデータ番号記
憶エリア34に記憶されたデータ番号を書込みアドレスと
し、これと所定の対応関係にあるファーストデータ番号
記憶エリア24に記憶されたデータ番号を、チェインデー
タ番号記憶エリア44へ書込むという一連の動作を繰返し
て行う。これにより、例えば第3図に示すように、チェ
インデータ番号記憶エリア44には、基準軸データ(この
場合には、Z軸データ)が昇順に連鎖するようにデータ
番号が書込まれることになる。
In this way, when the start address is set,
Next, in accordance with the flow 2200 of FIG. 14, the data number stored in the last data number storage area 34 is used as a write address, and the data number stored in the first data number storage area 24 having a predetermined correspondence with this is set to A series of operations of writing to the data number storage area 44 is repeated. As a result, for example, as shown in FIG. 3, data numbers are written in the chain data number storage area 44 so that the reference axis data (Z axis data in this case) are linked in ascending order. .

このとき、例えば第4図に示すように、データ番号記憶
エリア24、34内に、データ番号が書込まれていない記憶
エリアが存在する場合には、第14図に示すフロー2300に
従って、ファーストデータ番号記憶エリア24内にデータ
番号が書込まれているか否か判別しながら、データ番号
が書込まれているファーストデータ番号記憶エリアに24
が検出されるまでアドレスポインタ24をインクリメント
する。
At this time, for example, as shown in FIG. 4, when there is a storage area in which the data number is not written in the data number storage areas 24, 34, the first data is processed according to the flow 2300 shown in FIG. While determining whether or not a data number has been written in the number storage area 24, 24
The address pointer 24 is incremented until is detected.

そして、データ番号が記憶されたファーストデータ番号
記憶エリア24が検出されると同時に、フロー2200に従っ
てチェインデータ番号記憶エリア44へのデータ番号書込
みを同様にして行う。
Then, at the same time when the first data number storage area 24 in which the data number is stored is detected, the data number is similarly written to the chain data number storage area 44 in accordance with the flow 2200.

(c)フラグメモリ214 ところで、数百個または数千個の単位で基準軸データを
ソーティングする場合には、基準軸データが書込まれて
いるファーストデータ番号記憶エリア24を検出するため
に、ある程度まとまった時間を必要とする。しかし、三
次元画像装置では、一連のソーティング動作を1フィー
ルド時間(1/60秒)以内に終了しなければならないこと
を考えると、前記検出時間は無視できない値となる。
(C) Flag memory 214 By the way, when the reference axis data is sorted in units of hundreds or thousands, the first data number storage area 24 in which the reference axis data is written is detected to some extent. It takes a lot of time. However, considering that a series of sorting operations must be completed within one field time (1/60 second) in a three-dimensional image device, the detection time becomes a non-negligible value.

このため本実施例では、このような検出時間を大幅に短
縮し、ソーティングをより高速で行うことを可能とする
ためにフラグメモリ214を設けている。
For this reason, in the present embodiment, the flag memory 214 is provided in order to greatly shorten the detection time and to perform the sorting at a higher speed.

第16図には、このフラグメモリ214の構成が、ファース
トデータ番号記憶エリア24と対応付けて示されている。
FIG. 16 shows the configuration of the flag memory 214 in association with the first data number storage area 24.

このフラグメモリ214は、各ファーストデータ番号記憶
エリア24に1:1に対応した複数の1ビットのフラグ記憶
エリア214aを有し、ファーストデータ番号記憶エリア24
にデータが格納されたときは、対応する1ビットフラグ
エリア214aにフラグがセットされるよう形成されてい
る。
This flag memory 214 has a plurality of 1-bit flag storage areas 214a corresponding to 1: 1 in each first data number storage area 24.
When data is stored in, the flag is formed to be set in the corresponding 1-bit flag area 214a.

実施例においてこのフラグメモリ214は、8個の1ビッ
トフラグエリアを1グループ単位としてフラグアドレス
により指定され、フラグアドレスによって指定される一
群のフラグエリアからフラグ情報をグループ単位(8ビ
ットデータ)で出力するように形成されている。
In the embodiment, the flag memory 214 is designated by a flag address with eight 1-bit flag areas as a group unit, and outputs flag information in a group unit (8-bit data) from a group of flag areas designated by the flag address. Is formed.

従って、例えばフラグアドレス000Hを指定すると、この
フラグメモリ214から出力される8ビット分のフラグ情
報から、アドレス0000H〜0007Hで指定される8アドレス
分のファーストデータ記憶エリア24内にデータ番号の書
込まれている記憶エリアが存在するか否かを一度に判別
することができる。
Therefore, for example, when the flag address 000H is designated, the data number is written in the 8 bits of the first data storage area 24 designated by the addresses 0000H to 0007H from the 8-bit flag information output from the flag memory 214. It is possible to determine at once whether or not there is a rare storage area.

そして、このようなフラグメモリ214を用いてデータ番
号が書込まれているデータ番号記憶エリア24を検出して
る途中で、データ番号の書込みを示すフラグが検出され
ると、このときフラグアドレスによって指定される8ビ
ット分のフラグ情報が、第15図に示すようシフトレジス
タ210aに書込まれる。
When a flag indicating the writing of the data number is detected during the detection of the data number storage area 24 in which the data number is written using such a flag memory 214, the flag address is designated by the flag address at this time. The 8-bit flag information is written in the shift register 210a as shown in FIG.

そして、ステップ2制御回路210は、シフトレジスタ210
aの内容を、1ビットずつ右へシフトしていき、データ
番号が書込まれているファーストデータ番号記憶エリア
24を検出する。
Then, the step 2 control circuit 210 causes the shift register 210
First data number storage area where the data number is written by shifting the contents of a to the right bit by bit.
Detect 24.

このようにして、実施例の210はフラグメモリ214のフラ
グアドレスを000Hから順にインクリメントしながら、そ
のフラグメモリ214の内容を8ビットずつ順に読出し、
データ番号が書込まれているファーストデータ番号記憶
エリア24を高速で検出している。
In this way, the 210 of the embodiment sequentially reads the contents of the flag memory 214 in increments of 8 bits while sequentially incrementing the flag address of the flag memory 214 from 000H.
The fast data number storage area 24 in which the data number is written is detected at high speed.

なお、このフラグメモリ214へのフラグの書込みは、第1
1図に示すステップ1制御回路112により行われる。すな
わち、このステップ1制御回路112は、ファーストバッ
ファメモリ20のファーストデータ番号記憶エリアにデー
タ番号を書込むと同時に、フラグメモリ214の対応する
フラグを順次セットしていく。
Note that the writing of the flag to the flag memory 214 is performed by the first
This is performed by the step 1 control circuit 112 shown in FIG. That is, the step 1 control circuit 112 writes the data number in the first data number storage area of the first buffer memory 20 and at the same time sequentially sets the corresponding flags in the flag memory 214.

このようにすることにより、第14図に示すステップ2の
動作、すなわち各バッファメモリ20および30からチェイ
ンバッファメモリ40へのデータ書込み作業をより高速で
行うことが可能となる。
By doing so, the operation of step 2 shown in FIG. 14, that is, the data writing operation from the respective buffer memories 20 and 30 to the chain buffer memory 40 can be performed at a higher speed.

また、このようなフラグメモリ214を用れば、このフラ
グメモリ214を零クリアすることにより、これらバッフ
ァメモリ20,30を零クリアする必要はなくなる。
If such a flag memory 214 is used, it is not necessary to clear the buffer memories 20 and 30 to zero by clearing the flag memory 214 to zero.

また、本実施例において、フラグアドレスによって指定
されるフラグメモリ214の1グループ単位を8ビットと
したのは、メモリの物理的なデータサイズと、確率論的
な見地から最適であると考えたからである。
In addition, in the present embodiment, the reason why the group unit of the flag memory 214 designated by the flag address is 8 bits is that it is considered to be optimum from the physical data size of the memory and the stochastic viewpoint. is there.

例えば、215個のアドレスに、211個のデータがランダム
に書込まれたときに、何ビット単位で読出せば読出し時
間が最小となるかという問題を考える。このとき、各フ
ラグアドレスによって指定されるビット単位を、16ビッ
ト、8ビット、4ビット、2ビットとして計算すると、
4ビット単位が最小となる。しかし、データが同じアド
レスに重なる場合もあるので、フラグアドレスによって
指定されるビット単位を4ビットと8ビットとした場合
に最小値がくるものと思われるが、物理的なメモリの構
成により、8ビット単位を選んだ。
For example, let us consider the problem of how many bit units should be read to minimize the read time when 2 11 data are randomly written to 2 15 addresses. At this time, if the bit unit designated by each flag address is calculated as 16 bits, 8 bits, 4 bits, 2 bits,
The 4-bit unit is the minimum. However, since the data may overlap the same address, the minimum value seems to come when the bit unit specified by the flag address is 4 bits and 8 bits. I chose the bit unit.

(d)第3の制御回路80c また以上説明したように、チェインバッファメモリ40内
の各データ番号記憶エリア44内に、基準軸データが昇順
に連鎖するようにデータ番号が書込まれると、次に、書
込まれたデータ番号を所定の読出し規則にしたがい読出
し、読出したデータ番号順にXYRAM58からポリゴン情報
をソーティング出力するというステップ3の動作が開始
される。
(D) Third control circuit 80c As described above, when the data numbers are written in the respective data number storage areas 44 in the chain buffer memory 40 so that the reference axis data are linked in ascending order, Then, the operation of step 3 of reading the written data numbers according to a predetermined reading rule and sorting and outputting the polygon information from the XYRAM 58 in the order of the read data numbers is started.

第17図には、このようなステップ3の動作を行う第3の
制御回路80cの具体的な回路構成が説明されており、第1
8図にはその動作を示すフローチャートが示されてい
る。
FIG. 17 illustrates a specific circuit configuration of the third control circuit 80c that performs the operation of step 3 as described above.
FIG. 8 shows a flowchart showing the operation.

本実施例において、前記第3の制御回路80cは、ステッ
プ3制御回路312,データ数カウンタ314,比較判定回路31
6,アドレスポインタ42,スタートアドレスポインタ310,
セレクタ318,ラッチ320を含む。
In the present embodiment, the third control circuit 80c includes a step 3 control circuit 312, a data number counter 314, and a comparison / determination circuit 31.
6, address pointer 42, start address pointer 310,
It includes a selector 318 and a latch 320.

そして、ステップ3制御回路312は、ステップ3の動作
が開始されると、まずアドレスポインタ42およびデータ
数カウンタ314をリセットする。次に、セレクタ318をス
タートアドレスポインタ310側に切り替え、スタートア
ドレスポインタ310内に予めセットされているデータ番
号をスタートアドレスとしてセレクタ318,ラッチ320を
介してXYRAM58へ向け出力する。
Then, when the operation of step 3 is started, the step 3 control circuit 312 first resets the address pointer 42 and the data number counter 314. Next, the selector 318 is switched to the side of the start address pointer 310, and the data number preset in the start address pointer 310 is output to the XYRAM 58 via the selector 318 and the latch 320 as the start address.

これにより、例えば第3図に示すように、スタートアド
レスとしてデータ番号「5」が設定されている場合に
は、XYRAM58からは、このデータ番号「5」によって特
定されるポリゴン情報が出力されることになる。
Thus, for example, when the data number "5" is set as the start address as shown in FIG. 3, the XYRAM 58 outputs the polygon information specified by the data number "5". become.

また、このような読出し動作と同期して、データ数カウ
ンタ314の値は一つインクリメントされ、これと同時に
ラッチ320から出力されるデータ番号は次の読出しアド
レスとしてアドレスポインタ42にセットされる。
Further, in synchronization with such a read operation, the value of the data number counter 314 is incremented by 1, and at the same time, the data number output from the latch 320 is set in the address pointer 42 as the next read address.

このようにして、最初のポリゴン情報が読出されると、
次にステップ3制御回路312は、セレクタ318をスタータ
アドレスポインタ310側からチェインバッファメモリ40
側へ切換える。そして、ステップ3制御回路312は、第1
8図に示すフロー3000にしたがいXYRAM58からポリゴン情
報をZ軸データに基づきソーティング出力する。
In this way, when the first polygon information is read,
Next, the step 3 control circuit 312 causes the selector 318 to move the chain buffer memory 40 from the starter address pointer 310 side.
Switch to the side. Then, the step 3 control circuit 312
According to the flow 3000 shown in FIG. 8, polygon information is sorted and output from the XYRAM 58 based on the Z-axis data.

すなわち、前記アドレスポインタ42から、読出しアドレ
スとしてデータ番号が出力されると、この読出しアドレ
スによって指定されるチェインデータ記憶エリア44から
セレクタ318,ラッチ320を介してデータ番号が読出され
る。そして、読出されたデータ番号を読出しアドレスと
してXYRAM58からポリゴン情報が出力されると共に、前
記データ番号は、新たな読出しアドレスとしてアドレス
ポインタ42にセットされる。
That is, when a data number is output from the address pointer 42 as a read address, the data number is read from the chain data storage area 44 designated by the read address via the selector 318 and the latch 320. The polygon information is output from the XYRAM 58 using the read data number as a read address, and the data number is set in the address pointer 42 as a new read address.

実施例のソーティング回路は、このようなポリゴン情報
の読出し作業を繰返して行う。
The sorting circuit of the embodiment repeats such a polygon information reading operation.

このとき、データ数カウンタ314は、XYRAM58をアクセス
した回数、すなわちXYRAM58からソーティング出力され
るポリゴン情報の数をカウントし、そのカウント値を比
較判定回路316へ向け出力している。
At this time, the data number counter 314 counts the number of times the XYRAM 58 is accessed, that is, the number of polygon information sorted and output from the XYRAM 58, and outputs the count value to the comparison and determination circuit 316.

そして、比較判定回路316は、このデータ数カウンタ314
の値が、データ数レジスタ54より予めカウントされるポ
リゴン情報と一致したとき、ステップ3制御回路312へ
終了信号を出力する。
Then, the comparison / determination circuit 316 uses the data number counter 314.
When the value of is in agreement with the polygon information previously counted from the data number register 54, the end signal is output to the step 3 control circuit 312.

このようにして、本実施例のソーティング回路は、一連
のソーティング作用を終了する。
In this way, the sorting circuit of this embodiment completes a series of sorting operations.

なお、本発明は、前記実施例に限定されるものではな
く、本発明の要旨の範囲内で各種の変形実施が可能であ
ることをいうまでもない。
It is needless to say that the present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the gist of the present invention.

[発明の効果] 以上説明したように、本発明によれば、多数の基準軸デ
ータを簡単な回路で、しかも高速でソーティング出力す
ることができる。
[Effects of the Invention] As described above, according to the present invention, a large number of reference axis data can be sorted and output at high speed with a simple circuit.

特に、本発明によれば、基準軸データのビット数に対
し、基準軸データの個数が多い場合にそのソーティング
作用を高速で行うことができ、多数のデータをソーティ
ング対象とする場合に極めて有効なものとなる。
In particular, according to the present invention, when the number of reference axis data is large relative to the number of bits of the reference axis data, the sorting operation can be performed at high speed, which is extremely effective when a large number of data are targeted for sorting. Will be things.

さらに、本発明によれば、基準軸データが各種の情報と
組合され、データ量が大きなソーティングデータとなっ
た場合でも、このようなデータ量の多いソーティングデ
ータを、その基準軸データに基づき高速ソーティングす
ることができるため、各種用途に幅広く用いることがで
きる。
Further, according to the present invention, even when the reference axis data is combined with various kinds of information and the sorting data has a large amount of data, such sorting data having a large amount of data is quickly sorted based on the reference axis data. Therefore, it can be widely used for various purposes.

特に、請求項(1)の発明によれば、入力された基準軸
データを記憶しておくためのメモリが不要であり、より
簡単な回路でソーティングを行うことが可能となる。
In particular, according to the invention of claim (1), a memory for storing the input reference axis data is unnecessary, and the sorting can be performed by a simpler circuit.

また、請求項(2)および(3)の発明によれば、基準
軸データの桁数が長い場合であっても、各バッファメモ
リのメモリ容量を増やさずにすみ、より簡単な回路でソ
ーティングを行うことが可能となる。
Further, according to the inventions of claims (2) and (3), even if the number of digits of the reference axis data is long, it is not necessary to increase the memory capacity of each buffer memory, and sorting can be performed with a simpler circuit. It becomes possible to do.

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

第1図は本発明に係るソーティング回路の基本的な構成
を示す説明図、 第2図は基準軸データメモリから各バッファメモリへの
データ転送動作を示す説明図、 第3図、第4図はファーストバッファメモリおよびラス
トバッファメモリからチェインバッファメモリへのデー
タ転送作業を示す説明図、 第5図は本発明のソーティング回路が適用された三次元
画像合成装置の一例を示すブロック回路図、 第6図および第7図は、第5図に示すポリゴン情報発生
回路から演算出力されるポリゴン情報の説明図、 第8図は第5図に示す三次元画像合成装置に用いられる
本発明のソーティング回路のブロック回路図、 第9図は第5図に示す回路を用いて表示される画像の三
次元概念図、 第10図は第5図に示すポリゴン情報発生回路の具体的な
構成を示すブロック回路図、 第11図は本発明のソーティング回路の回路構成の一例を
示すブロック回路図、 第12図は第11図に示す回路の動作を示すフローチャート
図、 第13図は本発明のソーティング回路の具体的な回路構成
の一例を示すブロック回路図、 第14図は第13図に示す回路の動作を示すフローチャート
図、 第15図は第13図に示す回路のシフトレジスタ内に登録さ
れたフラグの説明図、 第16図は、第13図に示す回路で用いられるフラグメモリ
の構成を、ファーストデータ番号記憶エリアと対応付け
て示す説明図、 第17図は本発明のソーティング回路の具体的な回路構成
の一例を示すブロック回路図、 第18図は第17図に示す回路の動作を示すフローチャート
図、 第19図は、本発明の好適な第3実施例の説明図、 第20図は、データを降順にソーティングする場合に、フ
ァーストバッファメモリおよびラストバッファメモリか
らチェインバッファメモリへデータを転送する動作を示
す説明図 第21図は、本発明の好適な第2実施例の説明図、 第22図は、本発明の好適な第4実施例の説明図、 第23図は、本発明の好適な第5実施例の説明図、 第24図は、(A),(B),(C),(D)は、第23図
に示すソーティング回路のソーティング動作の一例を示
す説明図、 第25図は、本発明の好適な第6実施例の説明図である。 10……基準軸データメモリ、 12……データ番号ポインタ、 13……データ番号カウンタ、 20……ファーストバッファメモリ、 24……ファーストデータ番号記憶エリア、 30……ラストバッファメモリ、 34……ラストデータ番号記憶エリア、 40……チェインバッファメモリ、 44……チェインデータ番号記憶エリア、 58……情報メモリ 80……ソーティング制御回路、 80a……第1の制御回路、 80b……第2の制御回路、 80c……第3の制御回路、 80d……第4の制御回路。
FIG. 1 is an explanatory diagram showing a basic configuration of a sorting circuit according to the present invention, FIG. 2 is an explanatory diagram showing a data transfer operation from a reference axis data memory to each buffer memory, FIG. 3 and FIG. FIG. 5 is an explanatory diagram showing a data transfer operation from the first buffer memory and the last buffer memory to the chain buffer memory. FIG. 5 is a block circuit diagram showing an example of a three-dimensional image synthesizing apparatus to which the sorting circuit of the present invention is applied. 7 and FIG. 7 are explanatory diagrams of polygon information calculated and output from the polygon information generating circuit shown in FIG. 5, and FIG. 8 is a block of the sorting circuit of the present invention used in the three-dimensional image synthesizing apparatus shown in FIG. Circuit diagram, FIG. 9 is a three-dimensional conceptual diagram of an image displayed by using the circuit shown in FIG. 5, and FIG. 10 shows a concrete configuration of the polygon information generating circuit shown in FIG. Block circuit diagram, FIG. 11 is a block circuit diagram showing an example of the circuit configuration of a sorting circuit of the present invention, FIG. 12 is a flow chart diagram showing the operation of the circuit shown in FIG. 11, and FIG. 13 is a sorting circuit of the present invention. Fig. 14 is a block circuit diagram showing an example of a concrete circuit configuration of Fig. 14, Fig. 14 is a flowchart showing the operation of the circuit shown in Fig. 13, and Fig. 15 is a flag registered in the shift register of the circuit shown in Fig. 13. FIG. 16 is an explanatory view showing the configuration of the flag memory used in the circuit shown in FIG. 13 in association with the first data number storage area, and FIG. 17 is a concrete view of the sorting circuit of the present invention. FIG. 18 is a block circuit diagram showing an example of the circuit configuration, FIG. 18 is a flow chart diagram showing the operation of the circuit shown in FIG. 17, FIG. 19 is an explanatory diagram of a preferred third embodiment of the present invention, and FIG. Sort data in descending order FIG. 21 is an explanatory view showing the operation of transferring data from the first buffer memory and the last buffer memory to the chain buffer memory in the case of the following: FIG. 21 is an explanatory view of the preferred second embodiment of the present invention, and FIG. Of the preferred fourth embodiment of the present invention, FIG. 23 is an illustration of the preferred fifth embodiment of the present invention, and FIG. 24 shows (A), (B), (C) and (D). 23 is an explanatory view showing an example of a sorting operation of the sorting circuit shown in FIG. 23, and FIG. 25 is an explanatory view of a sixth preferred embodiment of the present invention. 10 …… Reference axis data memory, 12 …… Data number pointer, 13 …… Data number counter, 20 …… First buffer memory, 24 …… First data number storage area, 30 …… Last buffer memory, 34 …… Last data Number storage area, 40 ... chain buffer memory, 44 ... chain data number storage area, 58 ... information memory 80 ... sorting control circuit, 80a ... first control circuit, 80b ... second control circuit, 80c ... third control circuit, 80d ... fourth control circuit.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】複数のデータとこれに1対1に対応する所
定の基準軸データが入力され、前記複数のデータを前記
基準軸データに基づきソーティングする回路であって、 前記複数のデータを、この複数のデータと前記基準軸デ
ータに共通するデータ番号に対応させて記憶する情報メ
モリと、 前記基準軸データが入力されるソーティング手段と、 を含み、前記ソーティング手段は、 入力される各基準軸データに対応したデータ番号を発生
するデータ番号発生手段と、 前記基準軸データに基づきアドレスが指定されるファー
ストデータ番号記憶エリアを有し、各記憶エリアに対応
する基準軸データが最初に入力されたとき、この記憶エ
リアにデータ番号発生手段の発生するデータ番号を記憶
するファーストバッファメモリと、 前記基準軸データに基づきアドレスが指定されるラスト
データ番号記憶エリアを有し、各記憶エリアに対応する
基準軸データが入力される毎に、この記憶エリアにデー
タ番号発生手段の発生するデータ番号を更新記憶するラ
ストバッファメモリと、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアを有するチェインバッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定されるチェインデータ番
号記憶エリアに、更新される新たなデータ番号を書込む
第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定されるチェイ
ンデータ番号記憶エリアに、該ラストデータ番号記憶エ
リアと所定の対応関係にある前記ファーストデータ番号
記憶エリアに記憶されたデータ番号を書込むことによ
り、チェインデータ番号記憶エリア内に基準軸データが
昇順または降順に連鎖するようデータ番号を書込む第2
の制御手段と、 チェインデータ番号記憶エリア内に書込まれたデータ番
号を所定の読出し規則に従い読出し、読出したデータ番
号順に前記情報メモリからデータを読み出す第3の制御
手段と、 を含み、複数のデータを基準軸データに基づきソーティ
ング出力することを特徴とするソーティング回路。
1. A circuit for inputting a plurality of data and predetermined reference axis data corresponding to the data, and sorting the plurality of data based on the reference axis data. An information memory for storing a plurality of data and a data number common to the reference axis data, and a sorting means for inputting the reference axis data, wherein the sorting means includes each input reference axis. It has a data number generating means for generating a data number corresponding to the data, and a first data number storage area whose address is designated based on the reference axis data, and the reference axis data corresponding to each storage area is input first. At this time, a first buffer memory for storing the data number generated by the data number generating means in this storage area, and the reference axis data A last buffer which has a last data number storage area whose address is designated based on the reference axis data corresponding to each storage area and which updates and stores the data number generated by the data number generating means in this storage area. A memory, a chain buffer memory having a chain data number storage area whose address is designated based on the data number, and a chain data number designated by the data number before update every time the data number of the last buffer memory is updated. First control means for writing a new data number to be updated in the storage area, and designation by the data number stored in the last data number storage area after writing the data number to the first buffer memory and the last buffer memory The last data is stored in the chain data number storage area The data number stored in the first data number storage area, which has a predetermined correspondence with the number storage area, is written so that the reference axis data is linked in the chain data number storage area in ascending or descending order. Second
And a third control means for reading the data numbers written in the chain data number storage area according to a predetermined read rule and reading the data from the information memory in the order of the read data numbers. A sorting circuit, which outputs data based on reference axis data.
【請求項2】複数桁からなる複数の基準軸データをソー
ティングする回路であって、 入力される各基準軸データに対応するデータ番号を発生
するデータ番号発生手段と、 前記各基準軸データを、そのデータ番号に対応させて記
憶する基準軸データメモリと、 前記基準軸データメモリから出力される複数桁の基準軸
データを1乃至複数桁からなる複数のサーチ群に分割し
た場合に、各サーチ群の値に基づきアドレスが指定され
るファーストデータ番号記憶エリアを有し、各記憶エリ
アに対応する各サーチ群が最初に入力されたとき、この
記憶エリアにデータ番号発生手段の発生するデータ番号
を記憶するファーストバッファメモリと、 前記基準軸データメモリから出力される前記各サーチ群
の値に基づきアドレスが指定されるラストデータ番号記
憶エリアを有し、各記憶エリアに対応する各サーチ群が
入力される毎に、この記憶エリアにデータ番号発生手段
の発生するデータ番号に更新するラストバッファメモリ
と、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアをそれぞれが有する2つのチェインバ
ッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定される前記少なくとも2
つのチェインバッファメモリの中のいずれか一の前記チ
ェインデータ番号記憶エリアに、更新される新たなデー
タ番号を書き込む第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定される前記い
ずれか一のチェインデータ番号記憶エリアに、該ラスト
データ番号記憶エリアと所定の対応関係にある前記ファ
ーストデータ番号記憶エリアに記憶されたデータ番号を
書込むことにより、前記いずれか一のチェインデータ番
号記憶エリア内に前記各サーチ群の値が昇順または降順
に連鎖するようデータ番号を書き込む第2の制御手段
と、 前記基準軸データのサーチの対象となるサーチ群を下位
桁から上位桁に向けて更新し、新たにサーチ対象となっ
た前記サーチ群を前記第2の制御手段によってチェイン
データ番号記憶エリアに書き込まれた順に前記基準軸デ
ータメモリから読み出して、前記第1の制御手段および
前記第2の制御手段による処理を前記チェインバッファ
メモリを切り替えながら前記基準軸データの最上位側に
位置するサーチ群に至るまで繰り返し行う第4の制御手
段と、 最上位側のサーチ群のソーティング処理が終了した後、
対応する前記チェインデータ番号記憶エリア内に書き込
まれたデータ番号を所定の読出し規則に従い読出し、読
出したデータ番号順に基準軸データメモリから各基準軸
データをソーティング出力する第3の制御手段と、 を含むことを特徴とするソーティング回路。
2. A circuit for sorting a plurality of reference axis data consisting of a plurality of digits, wherein the data number generating means generates a data number corresponding to each input reference axis data, and each of the reference axis data, A reference axis data memory for storing the data corresponding to the data number, and a plurality of digits of the reference axis data output from the reference axis data memory are divided into a plurality of search groups of 1 to a plurality of digits. Has a first data number storage area whose address is designated based on the value of, and when each search group corresponding to each storage area is first input, the data number generated by the data number generating means is stored in this storage area. And a last data number whose address is specified based on the value of each search group output from the reference axis data memory. No. storage area, and each time each search group corresponding to each storage area is input, a last buffer memory that updates the data number generated by the data number generating means in this storage area, and an address based on the data number Two chain buffer memories each having a designated chain data number storage area, and each time the data number of the last buffer memory is updated, the at least 2 designated by the data number before update
First control means for writing a new data number to be updated in any one of the chain data number storage areas in one chain buffer memory, and after the completion of writing the data number in the first buffer memory and the last buffer memory , A chain data number storage area specified by the data number stored in the last data number storage area, and stored in the first data number storage area having a predetermined correspondence with the last data number storage area. Second control means for writing data numbers so that the values of the respective search groups are linked in ascending or descending order in any one of the chain data number storage areas, and the reference axis data. Update the search group that is the target of the search from the lower digit to the upper digit, The search group which is another search target is read out from the reference axis data memory in the order in which it is written in the chain data number storage area by the second control means, and the first control means and the second control means are read. Fourth control means for repeatedly performing the processing according to (4) while switching the chain buffer memory until the search group located on the uppermost side of the reference axis data, and after the sorting processing of the uppermost side search group is completed,
Third control means for reading out the data number written in the corresponding chain data number storage area according to a predetermined reading rule, and sorting and outputting each reference axis data from the reference axis data memory in the order of the read data number. A sorting circuit characterized by that.
【請求項3】複数のデータとこれに1対1に対応する複
数の桁からなる所定の基準軸データをソーティングする
回路であって、 前記複数のデータを、これら複数のデータと前記基準軸
データに共通するデータ番号に対応させて記憶する情報
メモリと、 前記基準軸データが入力されるソーティング手段と、 を含み、前記ソーティング手段は、 各基準軸データに対応する前記データ番号を発生するデ
ータ番号発生手段と、 前記各基準軸データを、そのデータ番号に対応させて記
憶する基準軸データメモリと、 前記基準軸データメモリから出力される複数桁の基準軸
データを1乃至複数桁からなる複数のサーチ群に分割し
た場合に、各サーチ群の値に基づきアドレスが指定され
るファーストデータ番号記憶エリアを有し、各記憶エリ
アに対応する各サーチ群が最初に入力されたとき、この
記憶エリアにデータ番号発生手段の発生するデータ番号
を記憶するファーストバッファメモリと、 前記基準軸データメモリから出力される前記各サーチ群
の値に基づきアドレスが指定されるラストデータ番号記
憶エリアを有し、各記憶エリアに対応する各サーチ群が
入力される毎に、この記憶エリアにデータ番号発生手段
の発生するデータ番号を更新記憶するラストバッファメ
モリと、 データ番号に基づきアドレスが指定されるチェインデー
タ番号記憶エリアをそれぞれが有する2つのチェインバ
ッファメモリと、 前記ラストバッファメモリのデータ番号が更新される毎
に、更新前のデータ番号で指定される前記少なくとも2
つのチェインバッファメモリの中のいずれか一の前記チ
ェインデータ番号記憶エリアに、更新される新たなデー
タ番号を書き込む第1の制御手段と、 前記ファーストバッファメモリおよびラストバッファメ
モリへのデータ番号書き込み終了後、ラストデータ番号
記憶エリアに記憶されたデータ番号で指定される前記い
ずれか一のチェインデータ番号記憶エリアに、該ラスト
データ番号記憶エリアと所定の対応関係にある前記ファ
ーストデータ番号記憶エリアに記憶されたデータ番号を
書込むことにより、前記いずれか一のチェインデータ番
号記憶エリア内に前記各サーチ群の値が昇順または降順
に連鎖するようデータ番号を書き込む第2の制御手段
と、 前記基準軸データのサーチの対象となるサーチ群を下位
桁から上位桁に向けて変更し、新たにサーチ対象となっ
た前記サーチ群を前記第2の制御手段によってチェイン
データ番号記憶エリアに書き込まれた順に前記基準軸デ
ータメモリから読み出して、前記第1の制御手段および
前記第2の制御手段による処理を前記チェインバッファ
メモリを切り替えながら前記基準軸データの最上位側に
位置するサーチ群に至るまで繰り返し行う第4の制御手
段と、 最上位側のサーチ群のソーティング処理が終了した後、
対応する前記チェインデータ番号記憶エリア内に書き込
まれたデータ番号を所定の読出し規則に従い読出し、読
出したデータ番号順に前記情報メモリからデータを読み
出す第3の制御手段と、 を含み、複数のデータを基準軸データに基づきソーティ
ング出力することを特徴とするソーティング回路。
3. A circuit which sorts a plurality of data and a predetermined reference axis data composed of a plurality of digits corresponding to the data, wherein the plurality of data are combined with the plurality of data and the reference axis data. An information memory for storing the data number corresponding to a common data number, and a sorting means for inputting the reference axis data, wherein the sorting means generates a data number for generating the data number corresponding to each reference axis data. Generating means, a reference axis data memory for storing each of the reference axis data in association with the data number thereof, and a plurality of digits of the reference axis data output from the reference axis data memory. When divided into search groups, it has a first data number storage area whose address is specified based on the value of each search group and corresponds to each storage area. When each search group is first input, a first buffer memory for storing the data number generated by the data number generating means in this storage area, and an address based on the value of each search group output from the reference axis data memory And a last buffer number storage area in which each number of search groups corresponding to each storage area are input, and a last buffer memory which updates and stores the data number generated by the data number generating means in this storage area. , Two chain buffer memories each having a chain data number storage area whose address is designated based on the data number, and each time the data number in the last buffer memory is updated, the data number before the update is designated At least 2
First control means for writing a new data number to be updated in any one of the chain data number storage areas in one chain buffer memory, and after the completion of writing the data number in the first buffer memory and the last buffer memory , A chain data number storage area specified by the data number stored in the last data number storage area, and stored in the first data number storage area having a predetermined correspondence with the last data number storage area. Second control means for writing data numbers so that the values of the respective search groups are linked in ascending or descending order in any one of the chain data number storage areas, and the reference axis data. Change the search group that is the target of the search from the lower digit to the upper digit, The search group which is another search target is read out from the reference axis data memory in the order in which it is written in the chain data number storage area by the second control means, and the first control means and the second control means are read. Fourth control means for repeatedly performing the processing according to (4) while switching the chain buffer memory until the search group located on the uppermost side of the reference axis data, and after the sorting processing of the uppermost side search group is completed,
A third control means for reading the data number written in the corresponding chain data number storage area according to a predetermined read rule and reading the data from the information memory in the order of the read data number; A sorting circuit characterized by performing sorting output based on axis data.
【請求項4】請求項(1)〜(3)のいずれかにおい
て、 前記データ番号発生手段はデータ番号ポインタを用いて
形成されていることを特徴とするソーティング回路。
4. A sorting circuit according to claim 1, wherein the data number generating means is formed by using a data number pointer.
【請求項5】請求項(1)〜(3)のいずれかにおい
て、 前記データ番号発生手段はカウンタを用いて形成されて
いることを特徴とするソーティング回路。
5. A sorting circuit according to claim 1, wherein said data number generating means is formed by using a counter.
【請求項6】請求項(1)、(3)〜(5)のいずれか
かにおいて、 前記情報メモリには、(X,Y,Z)からなる複数の三次元
情報のうち、少なくともその(X,Y)の二次元情報がデ
ータ番号順に記憶され、 前記ソーティング手段には、前記三次元情報に含まれる
Z軸データが基準軸データとして入力され、 前記情報メモリに含まれる三次元情報をそのZ軸データ
に基づき昇順または降順にソーティング出力することを
特徴とするソーティング回路。
6. The information memory according to any one of claims (1) and (3) to (5), wherein at least one of a plurality of three-dimensional information (X, Y, Z) is stored in the information memory. X, Y) two-dimensional information is stored in the order of data numbers, the sorting means receives the Z-axis data included in the three-dimensional information as reference axis data, and the three-dimensional information included in the information memory A sorting circuit, which outputs sorting in ascending or descending order based on Z-axis data.
JP1295382A 1988-11-16 1989-11-14 Sorting circuit Expired - Fee Related JPH0782425B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1295382A JPH0782425B2 (en) 1988-11-16 1989-11-14 Sorting circuit

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP28967288 1988-11-16
JP63-289672 1988-11-16
JP1295382A JPH0782425B2 (en) 1988-11-16 1989-11-14 Sorting circuit

Publications (2)

Publication Number Publication Date
JPH02224018A JPH02224018A (en) 1990-09-06
JPH0782425B2 true JPH0782425B2 (en) 1995-09-06

Family

ID=26557688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1295382A Expired - Fee Related JPH0782425B2 (en) 1988-11-16 1989-11-14 Sorting circuit

Country Status (1)

Country Link
JP (1) JPH0782425B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3195402B2 (en) * 1992-03-26 2001-08-06 株式会社セガ Data alignment method and apparatus
US5727200A (en) * 1994-03-07 1998-03-10 Nippon Steel Corporation Parallel merge sorting apparatus with an accelerated section

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53100739A (en) * 1977-02-14 1978-09-02 Sanyo Electric Co Ltd Memory device
JPS6116326A (en) * 1984-07-03 1986-01-24 Agency Of Ind Science & Technol Sort processor
JPS6234231A (en) * 1985-08-07 1987-02-14 Hitachi Ltd file. data processing equipment
JPS63276122A (en) * 1987-05-07 1988-11-14 Fujitsu Ltd Data block arranging method

Also Published As

Publication number Publication date
JPH02224018A (en) 1990-09-06

Similar Documents

Publication Publication Date Title
JPH0535913B2 (en)
US20080273030A1 (en) Drawing apparatus and drawing method
JPS58119033A (en) Processing of dictionary character string
US4783649A (en) VLSI graphics display image buffer using logic enhanced pixel memory cells
JP3448816B2 (en) Sorting device
KR100190674B1 (en) Sorting circuit
US5619629A (en) Drawing data producing apparatus and drawing data producing method
CN1253335A (en) Hardware rotation of image on computer display unit
EP0590933B1 (en) Sorting processor
US5142593A (en) Apparatus and method for classifying feature data at a high speed
US5465371A (en) Sorter for sorting data based on a plurality of reference value data
MXPA02002643A (en) Image processing system, device, method, and computer program.
JPH0782425B2 (en) Sorting circuit
EP0327001B1 (en) Pattern data generating system
WO2001084300A2 (en) Method and system for providing a hardware sort for a large number of items
EP0513829B1 (en) Fuzzy reasoning processor and method, and rule setting apparatus and method
US5973698A (en) Method and system for sorting polygon data according to depth values
JP3210053B2 (en) Sorting equipment
JPH01103785A (en) Sorting circuit
JPH05224885A (en) Sorting device
JP3098092B2 (en) Simulated view generator
JP3209630B2 (en) Data transfer device and multiprocessor system
JP2504582B2 (en) Matrix scan circuit
JPH0667648A (en) Artificial three-dimensional image synthesizing device
JPH03196257A (en) Vector processor

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees