JPS5981734A - Data ranking device - Google Patents

Data ranking device

Info

Publication number
JPS5981734A
JPS5981734A JP57191662A JP19166282A JPS5981734A JP S5981734 A JPS5981734 A JP S5981734A JP 57191662 A JP57191662 A JP 57191662A JP 19166282 A JP19166282 A JP 19166282A JP S5981734 A JPS5981734 A JP S5981734A
Authority
JP
Japan
Prior art keywords
data
address
input
circuit
existing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP57191662A
Other languages
Japanese (ja)
Inventor
Makihiko Tashiro
田代 牧彦
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.)
Shimadzu Corp
Shimazu Seisakusho KK
Original Assignee
Shimadzu Corp
Shimazu Seisakusho KK
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 Shimadzu Corp, Shimazu Seisakusho KK filed Critical Shimadzu Corp
Priority to JP57191662A priority Critical patent/JPS5981734A/en
Publication of JPS5981734A publication Critical patent/JPS5981734A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/22Arrangements for sorting or merging computer data on continuous record carriers, e.g. tape, drum, disc
    • G06F7/24Sorting, i.e. extracting data from one or more carriers, rearranging the data in numerical or other ordered sequence, and rerecording the sorted data on the original carrier or on a different carrier or set of carriers sorting methods in general
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90348Query processing by searching ordered data, e.g. alpha-numerically ordered data

Abstract

PURPOSE:To form simply the ranking of data by rearranging the data sent from upper places in a sortable code system and the stored data in a fixed procedure after comparing the quantities of both data. CONSTITUTION:The n-th data is sent to a CPU7 from a higher rank computer 1 through an input register 3 and an I/O control circuit 5 and compared 10 with the data stored in an RAM9. If the n-th data is smaller than the minimum existing data, the n-th data is put into an address O. Then the addresses of the existing data are moved up one by one. While the n-th data is fed to the (n-1)-th address if the data is larger than the maximum existing data. If the n-th data has a quantity between the maximum and minimum existing data, the existing data is divided into two parts. These divided data are compared with the maximum and minimum data of each region to decide their regions respectively. Then the above-mentioned operation is carried out to these regions. This operation is repeated to make it possible to form the ranking of data just with the hardware such as an input/output means, a comparing means, etc. in a simple way at a low cost.

Description

【発明の詳細な説明】 本発明は、マイクロコンピュータ等を用いてなるデータ
序列装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data sequencing device using a microcomputer or the like.

一般に、中型や大型の1台のコンピュータで多数の仕事
を同時tこ処理させようとすると、例え高性能のもので
も処理しきれない場合がある。このため、個々の仕事を
マイクロコンピュータに移して分散化することによりフ
ァームウェアとし、取扱いの便と金テータ影のスルーブ
ツトを向上させるようになってきている。、ところで、
データの序列については従来ではソフトウェアでほとん
ど行なわれており、マイクロコンピュータのような一種
のハードウェアで廉価にかつ簡単に行なえるようにした
ものはなかった。
Generally, if you try to process a large number of tasks simultaneously on one medium-sized or large-sized computer, even a high-performance computer may not be able to handle all the tasks. For this reason, individual tasks have been transferred to microcomputers and distributed as firmware, improving handling convenience and data throughput. ,by the way,
Up until now, most of the data ordering has been done using software, and there has never been a type of hardware such as a microcomputer that can do it cheaply and easily.

本発明は、データの序列をマイクロコンピュータのよう
な一種のハードウェアで安価にかつ簡単に行なえるよう
にすることを目的とする。
An object of the present invention is to enable data ordering to be performed easily and inexpensively using a type of hardware such as a microcomputer.

本発明はこのような目的のため上位コンピュータからラ
ンダムに入力されてくる分類可能なコード体系を有する
データをマイクロコンピュータのような一種のハードウ
ェアにて一定の序列に並べるようにしている。
For this purpose, the present invention uses a type of hardware such as a microcomputer to arrange data having a classifiable code system, which is randomly input from a host computer, in a certain order.

以下、本発明を図面に示す一実施例に基づいて詳細に説
明する。
Hereinafter, the present invention will be explained in detail based on an embodiment shown in the drawings.

図はこの実施例の回路図である。この図において、(1
)は上位コンピュータ、(2)はこの実施例のファーム
ウェア化されたデータ序列装置である。このデータ序列
装置(2)は、入力レジスタ(3)、出力レジスタ(4
)、入出力制御回路(5)、ROM(リードオンリメモ
リ)(6)、CPU (中央処理装置)(7)、制御回
路(8) 、RAM (ランダムアクセスメモリ) (
9) 、比較回路C1l 、第1アドレスカウンタaυ
、アドレス演算回路(2)、−第2アドレスカウンタ(
至)、奇数/ 4Fm 数回路α→、アンド回路αυ、
スタート信号発生回路H。
The figure is a circuit diagram of this embodiment. In this figure, (1
) is a host computer, and (2) is a firmware-based data ordering device of this embodiment. This data ordering device (2) includes an input register (3), an output register (4).
), input/output control circuit (5), ROM (read-only memory) (6), CPU (central processing unit) (7), control circuit (8), RAM (random access memory) (
9) , comparison circuit C1l, first address counter aυ
, address calculation circuit (2), - second address counter (
), odd number/4Fm number circuit α→, AND circuit αυ,
Start signal generation circuit H.

およびレディ/ビジィ・信号(割込信号)発生回路α力
を有している。入力レジスタ(3)は上位コンピュータ
(1)からのデータをCP U (y)に送る。出方レ
ジスタ(4)はCP U (7)からのデータを上位コ
ンピュータ(1)に送る。入出力制御回路(5)はその
データの人出力を制御する。ROM(6)には上位コン
ピュータ(1)から入力されてくるデータを処理するプ
ログラムがメモリされる。CPU(7)は全体の制御を
行う。制御回路(8)はCPU(7)からの信号により
各回路等(9)〜0′3の動作を制御する。比較回路(
IGは分類可能なコード体系を有するデータを一定の序
列(例えば小さい数の順)でRAM(9)の各アドレス
番号順に並べたい場合にCP U (7)から入力され
てくるデータと、RAM(9)に既にメモリさ、れてい
るデータとをその序列にしたがって比較する。第1.第
2アドレスカウノタ0ηα[有]、アドレス演算回路(
6)等の機能については次の動作説明で明らかにする。
and a ready/busy signal (interrupt signal) generating circuit α. The input register (3) sends data from the host computer (1) to the CPU (y). The output register (4) sends data from the CPU (7) to the host computer (1). The input/output control circuit (5) controls the output of the data. The ROM (6) stores a program for processing data input from the host computer (1). The CPU (7) performs overall control. A control circuit (8) controls the operation of each circuit (9) to 0'3 based on signals from the CPU (7). Comparison circuit (
When IG wants to arrange data having a code system that can be classified in a certain order (for example, in ascending order) in the order of each address number in RAM (9), the IG sorts the data input from CPU (7) and the RAM ( 9) Compare the data already stored in memory according to their order. 1st. 2nd address counter 0ηα [present], address calculation circuit (
Functions such as 6) will be clarified in the following operation explanation.

次に動作を説明する。この説明の便宜上、データは分類
可能なコード体系を有するデータ系列(例えば数字の組
合わせ)で同一番号はないものとする。また、一定の序
列として例えば小さい数の順を考える。
Next, the operation will be explained. For the convenience of this explanation, it is assumed that the data is a data series (for example, a combination of numbers) that has a code system that can be classified and does not have the same number. Also, consider, for example, the order of small numbers as a fixed order.

先ず、最初にスタート指令信号が上位コンピュータ(1
)かスタート信号発生回路OQに入力される。
First, the start command signal is sent to the host computer (1
) is input to the start signal generation circuit OQ.

スタート信号発生回路aQが入出力制御回路(5)を介
してCP U (7)にスタート信号を入力する。こう
してデータ序列動作が開始する。この開始時点ではRA
M(9)のメモリ内容はクリアされている。このような
状態で1番目のデータが上位コンピュータ(1)からデ
ータバスを通って入力レジスタ(3)に入力されるとと
もに、CP U (7)からRAM(9)のアドレス番
号「0」のアドレスに送られてメモリされる。このとき
、同時に制御回路(8)により、第1アドレスカウンタ
(1υはカウント値をrOJにセットされる。次に、2
番目のデータがCP U (7)がらRAM(9)は入
力されると、比較回路図がアドレス番号rOJのアドレ
スにおける1番目のデータと2番目のデータとの間で大
小を比較する。2番目のデータの方が小さいとの比較出
力により1番目のデータはアドレス番号「1」のアドレ
スへ移され、2番目のデータがアドレス番号「0」のア
ドレスに入いる。逆に、1番目のデータの方が小さいと
の比較出方により、1番目のデータはそのままになり、
2番目のデータがアドレス番号「1」のアドレスに入い
る。このとき第1アドレスカウンタaηのカウント値は
「1」になる。続いて、8番目のデータがRAM(9)
に入力されると、比較回路QQにより、先ず、1番目と
8番目のデータとの間で大小比較がなされ、次いで2番
目と3番目のデータとの間で大小比較がなされる。
The start signal generation circuit aQ inputs a start signal to the CPU (7) via the input/output control circuit (5). The data ordering operation thus begins. At this starting point, R.A.
The memory contents of M(9) have been cleared. In this state, the first data is input from the host computer (1) to the input register (3) through the data bus, and at the same time, the first data is input from the CPU (7) to the address of address number "0" in the RAM (9). and stored in memory. At this time, the control circuit (8) simultaneously sets the count value of the first address counter (1υ) to rOJ.
When the th data is inputted from the CPU (7) to the RAM (9), the comparing circuit diagram compares the magnitude between the first data and the second data at the address number rOJ. As a result of the comparison output indicating that the second data is smaller, the first data is moved to the address with address number "1", and the second data is entered into the address with address number "0". On the other hand, due to the way the comparison shows that the first data is smaller, the first data will remain as it is,
The second data enters the address with address number "1". At this time, the count value of the first address counter aη becomes "1". Next, the 8th data is RAM (9)
, the comparator circuit QQ first compares the first and eighth data in magnitude, and then compares the second and third data in magnitude.

8番目のデータが1番目のデータより小さければアドレ
ス番号rOJ Ill r2Jの各アドレスには3番目
、1番目、2番目(イ且し、1番目のデータが2番目の
データより小さいものとする)のデータがそれぞれこの
順序で入力され、8番目のデータが2番目のデータより
も大きければ、アドレス番号rOJ rlJ r2Jの
各アドレスには1番目、2番目、8番目のデータがそれ
ぞれこの順序で入力される。
If the 8th data is smaller than the 1st data, each address of address number rOJ Ill r2J has the 3rd, 1st, and 2nd data (assuming that the 1st data is smaller than the 2nd data). are input in this order, and if the 8th data is larger than the 2nd data, the 1st, 2nd, and 8th data are input in this order to each address of address number rOJ rlJ r2J. be done.

このとき同時に第1アドレスカウンタ0υのカウント値
は「8」になる、このようにして、順次、データの大小
比較が行われる。そして、n番目のデータがRAM(9
)に入力されてきた場合、n番目のデータと最低〜位の
アドレス番号rOJのアドレスにメモリされているデー
タとの間での大小比較と、n番目のデータと最高位のア
ドレス番号[n−2Jのアドレスにメモリされているデ
ータとの間での大小比較とが行われる。前者であれば、
n番目のデータを最低位のアドレス番号「0」のアドレ
スに入れるとともに他のデータをアドレス番号が1つだ
け大きいアドレスへ移し変える。後者であればn番目の
データをアドレス番号[n−IJのアドレスに入れる。
At this time, the count value of the first address counter 0υ becomes "8" at the same time. In this way, the data are successively compared in magnitude. Then, the nth data is stored in RAM (9
), the nth data is compared with the data stored in the address with the lowest address number rOJ, and the nth data is compared with the data stored in the address with the lowest address number rOJ. A comparison is made with the data stored at address 2J. If the former,
The n-th data is placed in the address with the lowest address number "0" and other data is transferred to an address with one address number higher. If it is the latter, put the nth data into the address of address number [n-IJ.

このとき同時に第1アドレスカウンタαυのカウント値
はIn−IJになる。ところが、この両者のいずれでも
ないとの比較出力があったときには、アドレス演算回路
@によりアドレス番号rOJ〜rn−IJ(7) 7 
トl/ ス演算を行ってアドレスの領域ヲ2つに分け、
(ただし、各領域に属するアドレス数が共に偶数になる
場合は勿論のこと、偶数と奇数、共に奇数の組合わせで
もよい。)半分の領域を第2アドレスカウンタα葎に設
定する。そして、n番目のデータがこの領域のいずれに
はいるがをチェックした後、一方の領域にはいるときに
はこのn番目のデータをこの領域におけるアドレス番号
が最低位と最高位のアドレスにメモリされているデータ
との間で上記と同様の大小比較ならびにデータの並び換
えを行う。この領域にはいつたものの、上述したような
前者と後者のいずれでもないとの比較出力があったとき
には、更にこの領域を2つに分けて同様のことを繰返す
。このようにして、最終的には、n番目のデータがどの
アドレス番号のアドレスにはいるべきかが確定する。こ
うして、1番目からn番目までのデータの序列が定まる
。このとき同時に第1アドレスカウンタ0])はカウン
ト値が「n−IJになる。
At the same time, the count value of the first address counter αυ becomes In-IJ. However, when there is a comparison output indicating that it is neither of these two, the address calculation circuit @ calculates the address number rOJ~rn-IJ(7) 7
The address area is divided into two by performing the trass calculation.
(However, it goes without saying that when the number of addresses belonging to each area is both even numbers, a combination of even numbers and odd numbers or both odd numbers is also possible.) Half the area is set as the second address counter α. Then, after checking which area the nth data is in, if it is in one area, the nth data is memorized at the address with the lowest address number and the highest address number in this area. Compare the size and rearrange the data in the same way as above. When this area is reached, but there is a comparison output indicating that it is neither the former nor the latter as described above, this area is further divided into two and the same process is repeated. In this way, it is finally determined which address number the nth data should go into. In this way, the order of data from 1st to nth is determined. At the same time, the count value of the first address counter 0) becomes "n-IJ."

なお、前記領域を2つに分けていくと、最終的にはこれ
以上性けられないアドレス数が「1」の奇数になる。こ
のとき(2は奇数/偶数回路αくカベ論理「1」の信号
がアンド回路0!9に入力される。これによりアンド回
路αつは論理「1」の信号を制御回路(8)に出力する
ことにより、データの序列位置が一義的に定められる。
It should be noted that when the area is divided into two, the number of addresses that cannot be deleted any further becomes an odd number of "1". At this time (2 is an odd/even circuit α, a logic "1" signal is input to the AND circuit 0!9. As a result, the AND circuit α outputs a logic "1" signal to the control circuit (8). By doing so, the ranking position of the data is uniquely determined.

全データの序列が終了するとCP U (7)から入出
力制御回路(5)を経てレディ/ビジィ信号発生回路α
力にその旨の信号が入力される。
When all the data have been sequenced, the CPU (7) passes through the input/output control circuit (5) to the ready/busy signal generation circuit α.
A signal to that effect is input to the power source.

レディ/ビジィ信号発生回路aηはレディ信号を上位コ
ンピュータ(1)に送ることによりデータの序列の終了
を知らせる。
The ready/busy signal generating circuit aη notifies the end of the data sequence by sending a ready signal to the host computer (1).

以上のように本発明によれば、上位コンピュータからラ
ンダムに入力されてくる分類可能なコード体系をもった
データを一定の序列にしtこカ5つて並べる機能を入力
手段や比較手段等の一種のノ飄−ドウェアで簡単にかつ
安価に行わせること力夕できる。
As described above, according to the present invention, the function of arranging data having a code system that can be classified randomly inputted from a host computer in a certain order is a type of input means, comparison means, etc. This can be done easily and inexpensively using lightweight hardware.

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

図は本発明の一実施例の回路図である。 (1)・・・上位コンピュータ、(2)・・・データ序
列装置、(7)・・・CPU、 (9)・・・RAM、
 <it)・・・比較回路、0])αト・・第1゜第2
アドレスカウンタ、@・・・アドレス演算回路、04)
・・・奇数/偶数回路 出願人  株式会社 高滓製作所 代理人  弁理士  岡田和秀
The figure is a circuit diagram of an embodiment of the present invention. (1)...Upper computer, (2)...Data sequence device, (7)...CPU, (9)...RAM,
<it)... Comparison circuit, 0]) αt... 1st ° 2nd
Address counter, @... address calculation circuit, 04)
...Odd/even circuit applicant: Takasugi Seisakusho Co., Ltd. Agent: Patent attorney: Kazuhide Okada

Claims (1)

【特許請求の範囲】[Claims] (1)上位コンピュータからランダムに入力されてくる
分類可能なコード体系を有するデータをメモリに入力す
る手段と、メモリに入力される第1テータをメモリの各
アドレスに既に一定の序列にし\ たがって入力されているデータの内、最低位と最高位の
アドレス番号を有するアドレスにそれぞれ入力されてい
る第2.第8データとの間で序列を比較する手段と、第
1データが、第2データよりも低位または第8データよ
りも高位のアドレス番号を有するアドレスに入力される
べきとの比較出力により第1データを最低位または最高
位のアドレス番号を有するアドレスに入力し、いずれで
もないとの比較出力により最低位から最高位までのアド
レス番号を有するアドレスを少なくとも2つの領域に分
けるとともに第1データがいずれの領域に入いるかをチ
ェックして後、前記比較を繰返す手段とを有するテータ
序列装慟。
(1) A means for inputting data having a classifyable code system randomly inputted from a host computer into a memory, and a means for inputting first data inputted into the memory into each address of the memory in a certain order. Among the input data, the second . means for comparing the order with the eighth data, and a comparison output indicating that the first data should be input to an address having an address number lower than the second data or higher than the eighth data; Data is input to the address having the lowest or highest address number, and by comparing and outputting neither, the addresses having address numbers from the lowest to the highest are divided into at least two areas, and the first data is divided into at least two areas. and means for repeating the comparison after checking if the area falls within the range of .
JP57191662A 1982-10-30 1982-10-30 Data ranking device Pending JPS5981734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57191662A JPS5981734A (en) 1982-10-30 1982-10-30 Data ranking device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57191662A JPS5981734A (en) 1982-10-30 1982-10-30 Data ranking device

Publications (1)

Publication Number Publication Date
JPS5981734A true JPS5981734A (en) 1984-05-11

Family

ID=16278367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57191662A Pending JPS5981734A (en) 1982-10-30 1982-10-30 Data ranking device

Country Status (1)

Country Link
JP (1) JPS5981734A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0166577A2 (en) * 1984-06-21 1986-01-02 Advanced Micro Devices, Inc. Information sorting and storage apparatus and method
US4798517A (en) * 1986-09-30 1989-01-17 Mitsubishi Jidousha Kogyo Kabushiki Kaisha Pump

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0166577A2 (en) * 1984-06-21 1986-01-02 Advanced Micro Devices, Inc. Information sorting and storage apparatus and method
US4798517A (en) * 1986-09-30 1989-01-17 Mitsubishi Jidousha Kogyo Kabushiki Kaisha Pump

Similar Documents

Publication Publication Date Title
US4344134A (en) Partitionable parallel processor
EP0759594B1 (en) Modular crossbar interconnections in a digital computer
US5101497A (en) Programmable interrupt controller
US4086626A (en) Microprocessor system
US5210828A (en) Multiprocessing system with interprocessor communications facility
JPS6220589B2 (en)
CA1169158A (en) Communication multiplexer variable priority scheme
JPS5981734A (en) Data ranking device
US5692136A (en) Multi-processor system including priority arbitrator for arbitrating request issued from processors
US5604842A (en) Fuzzy reasoning processor and method, and rule setting apparatus and method
EP0358330A1 (en) Programmable interrupt controller
EP0376003A2 (en) Multiprocessing system with interprocessor communications facility
US3913073A (en) Multi-memory computer system
JPS6239792B2 (en)
JP3982077B2 (en) Multiprocessor system
JP2913702B2 (en) Access reception control method of multiprocessor system
JPH04247548A (en) Parallel sorter
SU907550A1 (en) Variable priority controller
JP3038257B2 (en) Electronic computer
JP3347592B2 (en) Merge sort processor
JPH05165758A (en) Address setting system for input/output device
JPH024485A (en) Apparatus for processing mail
JP2878160B2 (en) Competitive mediation device
JPH0782427B2 (en) Sort processing method
JPS63196903A (en) Programmable controller