JPS5864549A - Selecting circuit - Google Patents

Selecting circuit

Info

Publication number
JPS5864549A
JPS5864549A JP56163051A JP16305181A JPS5864549A JP S5864549 A JPS5864549 A JP S5864549A JP 56163051 A JP56163051 A JP 56163051A JP 16305181 A JP16305181 A JP 16305181A JP S5864549 A JPS5864549 A JP S5864549A
Authority
JP
Japan
Prior art keywords
data
memory
register
value
address
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.)
Granted
Application number
JP56163051A
Other languages
Japanese (ja)
Other versions
JPH0416809B2 (en
Inventor
Yukikazu Kaburayama
蕪山 幸和
Hideaki Sugawara
菅原 秀明
Eiichiro Yamamoto
山本 栄一郎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP56163051A priority Critical patent/JPS5864549A/en
Publication of JPS5864549A publication Critical patent/JPS5864549A/en
Publication of JPH0416809B2 publication Critical patent/JPH0416809B2/ja
Granted 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/02Comparing digital values

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Character Discrimination (AREA)

Abstract

PURPOSE:To store the least or greatest value in the 2nd memory at the end, and to easily select data, by successively inputting and storing N pieces of data in (n) units of the 2nd memories, and making comparison with external data and then storing the least or greatest value repeatedly. CONSTITUTION:The 2nd memory 10 for storing (n) pieces of predetermined data is provided to a data selecting circuit, and an address of the memory 10 is generated by a counter 6. Data sent to this memory 10 successively is compared by a comparator 11 with the least value (greatest value) of data sent to the memory 10 firstly or already to store a smaller (greater) address in a register 5, thereby supplying the address to the memory 10 through a selector 7. This operation is repeated to store prescribed (n) pieces of data in the memory 10, and those data are stored in a register 12; and the least or greatest value is stored in the memory 10 lastly, thus facilitating data selection.

Description

【発明の詳細な説明】 本発明は光学文字読取り装置等に使用する、N高速に実
現出来る選択回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a selection circuit that can be implemented at N high speeds and is used in optical character reading devices and the like.

日本語光学文字読取り装置では常用漢字約2000字を
第1のメモリに記憶しておき、胱取った文字と約200
0字の漢字とを類似度の値をもって比較しこの値を第2
のメモ1月こ記憶し類似度の最も高いものを複数個出力
して処理している。このような場合N (r/jのデー
タの中から値の最も大きな又は小さな予め定めらイまた
n個のデータを高速ζこ選択=4− する場合従来C」次のような選択回路で行っていた。
The Japanese optical character reader stores approximately 2,000 commonly used kanji in the first memory, and stores approximately 2000 commonly used kanji in the first memory.
Compare the kanji with the 0 character based on the similarity value and use this value as the second
I memorize the memo for January and output and process the memo with the highest degree of similarity. In such a case, N (predetermined predetermined data with the largest or smallest value from among the data of r/j or n pieces of data should be selected at high speed = 4). Conventionally, the following selection circuit is used. was.

第1図は従来例の選択回路のブロック図、第2図は第1
図の場合の7個のデータの中から、値の大きな3個のデ
ータを選択する場合のテーブルを示O 図中ILJ第2のメモリ、2は制御回路、3はドライバ
である。第2図を用いて原理を説明するとイ(こ示す如
き7個のデータかある場合その中から価の大きな3個の
データを選択する場合は第2のメモリ1上ζこ1旦7個
のデータのイ10をそnぞれ記憶しておきこの7個のデ
ータか記憶されている番地(第2図では1〜7番地迄の
値)を制飴j回路2により制御して調べ最大値10とそ
の番地2を記憶し1番地の内容4と2番地の最大値10
を口に示す如く入れ替んる。次には2番地〜7番地(こ
記憶されているデータの内容を制御J[g1路2により
制御して調べ最大値9とその番地7を記憶し2番地の内
容4とハに示す如く入れ替える。次は3番地から7番地
迄のデータを制御回路2により制御して調べ最大値7と
その番地5を記憶し3番地の内答6と二に示す始く入れ
替える。この1〜3番地の内存をドライバ3を介するこ
とにより出力すれば大きな値の3つのデータが得られる
。小さな3個のデータを選択する場合は同じような方法
でイの場合は最小値1のデータを1番地のデータである
4と入れ替え口の場合は2番地から7番地迄の最小値2
のデータを2番地のデータと入れ替え、への場合は3番
」1!2から7番地迄の最小値4のデータを3番地のデ
ータと入れ替えれば1〜3番地に小さな3個のデータが
配憶さイすることとなり、これを出力子イtば良い。
Figure 1 is a block diagram of a conventional selection circuit, and Figure 2 is a block diagram of a conventional selection circuit.
A table is shown for selecting three pieces of data with large values from among the seven pieces of data in the figure. In the figure, the ILJ second memory, 2 is a control circuit, and 3 is a driver. The principle can be explained using Figure 2. The data A10 is memorized, and the addresses where these seven data are stored (values from addresses 1 to 7 in Figure 2) are controlled by the control circuit 2 and checked to determine the maximum value. 10 and its address 2 are memorized, and the content of address 1 is 4 and the maximum value of address 2 is 10.
The words are exchanged as shown in the mouth. Next, the content of the stored data at addresses 2 to 7 (this is controlled by control J [g1 path 2), the maximum value 9 and its address 7 are stored, and the content of address 2 is replaced with 4 as shown in C. Next, the data from addresses 3 to 7 are controlled by the control circuit 2, the maximum value 7 and its address 5 are stored, and the internal answer 6 of address 3 is replaced as shown in 2. If you output the internal data through driver 3, you will get three pieces of data with large values.If you want to select three pieces of small data, use the same method. In the case of 4, which is a replacement port, the minimum value from address 2 to address 7 is 2.
Replace the data with the data at address 2, and if the This will be stored in memory, so all you have to do is write it as an output child.

しかし日本語光学文字Wh取り装置の如く約2000字
と比較し其のU似度を値で示してl旦記憶する第2のメ
モリ1は大規模になる欠点がある。
However, the second memory 1, such as the Japanese optical character Wh extraction device, which compares approximately 2,000 characters, indicates their U similarity as a value, and stores it once has a disadvantage of being large in size.

本発明の目的は上記の欠点をなくするために小規模な回
路構成で尚速度に選択出来る選択回路の提供にある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a selection circuit that can perform selection quickly with a small-scale circuit configuration in order to eliminate the above-mentioned drawbacks.

本発明は」二記の目的を達成するためにN個のデデータ
を記憶する第2のメモ1月こ入力し、n個のデータの内
張小値又は最大値を記憶させる。次いで再び外部のデー
タとの比較を行ない最小値(最大値)よりも大きな(小
さな)データがあったら、そn、といままで記憶されて
いたデータの最小値(#大使)のものとを入れ替え新た
な最小値(最大値)のデータを記憶することを繰り返え
せば最後に該第2のメモリζこ記憶される内容がn個の
最も大きな値又は小さな値のデータとなること〔こより
、データの遺沢を行なう。
In order to achieve the second object, the present invention inputs a second memo for storing N pieces of data, and stores the inner minimum value or maximum value of the n pieces of data. Next, compare with external data again, and if there is data larger (smaller) than the minimum value (maximum value), replace it with the minimum value (#ambassador) of the data stored so far. If the data of the new minimum value (maximum value) is repeatedly stored, the contents stored in the second memory ζ will finally become the data of the n largest value or the smallest value. Perform data collection.

以下本発明の1実施例(こつき図1こ促って説明する。One embodiment of the present invention will be explained below with reference to Figure 1.

第31¥Jは不発明の笑施例の選択回路のブロック図、
第4図は第3図の場合の最初に第2のメモリ(以下メモ
リと略称する)にn個のデータを記憶する場合の動作を
示すタイムチャート、第5図は第3図の場合のメモリ内
の最小値より、入力1−るデータが小さい場合の動作を
示すタイムチャート、第6図は第3図の場合のメモリ内
の最小値より入力する値が大きい場合の動作のタイムチ
ャートを示=7− す0 図中lOはメモリ11 、4 、8 i’j比較器、1
2,5はレジスタ、6はカウンタ、7はセレクタ、JA
Lは順次送られてくるN個の価、BA DDはメモ1月
0のアドレス、BFWEはメモリ10への書込み信号、
0NTAはメモリ10のアドレスとしてレジスタ5の出
力を使用するかカウンタ6の出力を使用するかの制御信
号、PTSTLIカウンタ6の出力をレジスタ5へ記憶
させる制御信号、ACEはカウンタ6の制御信号、VS
Tはメモリ10の出力をレジスタ12ζこ記憶させる制
御信号、OHB、F、は比較器11の出力でメモリ10
の内容を入れ替えlるか入替えないかの制御信号、DS
ETはメモリ10の内容の入れ替え稜最小値を探す制御
信号を示T。
No. 31 J is a block diagram of a selection circuit of an uninvented embodiment,
Figure 4 is a time chart showing the operation when n pieces of data are first stored in the second memory (hereinafter referred to as memory) in the case of Figure 3, and Figure 5 is the memory in the case of Figure 3. Figure 6 is a time chart showing the operation when the input data is smaller than the minimum value in the memory, and Figure 6 is a time chart showing the operation when the input value is larger than the minimum value in the memory in the case of Figure 3. =7-su0 In the figure, lO is memory 11, 4, 8 i'j comparator, 1
2 and 5 are registers, 6 is a counter, 7 is a selector, JA
L is the N values that are sent sequentially, BADD is the address of memo January 0, BFWE is the write signal to the memory 10,
0NTA is a control signal for using the output of register 5 or counter 6 as the address of memory 10, PTSTLI is a control signal for storing the output of counter 6 in register 5, ACE is a control signal for counter 6, VS
T is a control signal for storing the output of the memory 10 in the register 12ζ, OHB and F are the outputs of the comparator 11 and are stored in the memory 10.
Control signal to switch or not switch the contents of DS
ET indicates a control signal for searching for the minimum edge value for replacing the contents of the memory 10;

最初は送られてくるN個のデータの内最初のn個のデー
タをメモリ10に記憶するがこイtを第3図第4図で説
明する。スタート信号により送られてくるデータの送出
を知らせ制御信号0NTAにてセレクタ7の選択を行な
い1つのデータの処理が終わるとEND信号を発し選択
の終了を知らせると8− 共に次のデータVALを送出してもよいことを知らせる
。この動作は1つのデータ処理毎に繰返えす。カウンタ
6は制御信号AOElこより制御されメモリ10内に送
られてくるデータV A Lを記憶下るアドレスBAD
D例へは1〜nを比較器8(こてnの値と比較してnl
こなる迄1クロツク毎(こ1を加算して出力する。最初
は制御信号0NTAはオンでセレクタ7はカウンタ6の
出力1をメモリ10のアドレスとして出力Tる側になっ
ている。又制御信号0HBFtjオンで制御信号PTS
Tを出力し、カウンタ6の示すアドレスIに送らnてき
たデータVALをメモリ10上ζこ、書込み信号BIi
’WB(こより記憶すると共にこのアドレス1をレジス
タ51こ記憶する。次は制御信号0NTAはオフでセレ
クタ7の出力(Jl レジスタ5の記憶しているアドレ
ス1をメモリ104こ出力する側となりメモリ10−F
のアドレスlに記憶しているデータをメモリ10のディ
ジタル出力Doより出力している。次々に送られてくる
データVALを書込み信号Bl;’WEによりメモリ1
0のアドレス1を基準lこしてアドレス2〜nGこ記憶
するがこの時ディジタル出力T)0よりの値と比較器1
1番こて比較し、送られてきたデータVALの値がディ
ジタル出力Doの値(アドレスlのデータの値)より大
きければ第4図イに示す如く制御信号0HBF’はオフ
で制御信号PTSTは出力されず、小さければ第4図口
lこ示す如く制御信号OHB Fはオンとなり制御信号
PT8Tを出力しカウンタ6の示すアドレスを、アドレ
ス1(こ代わってレジスタ5#こ記憶する。従ってメモ
IJ 10のadd端子へのアドレスHADDはこの値
(!:なり、こ4L迄の最小値のデータをメモリlOの
ディジタル出力DOより出力すること[なる0以上の動
作を送られてくるデータの数がn(giltこなる迄繰
返え一!l−。メモIJ10fこn個のデータが記憶さ
れた状況ではレジスタ5に記憶しているアドレスはn個
のデータの最小値のアドレスで従ってメモリ10のディ
ジタル出力D’0よりの出力は該最小値を出力している
状況となる。次Iこ、次々と送られてくるデータVAL
が該最小値より小さい値の時は該最小値と送られてくる
データVALを比較器11Gこて比較するが、小さいの
で第5図に示す如く制御信号0HBFはオフで従って制
御信号0NTAもオフで其の侭の状況を継続する。若し
該最小値よりも送られてくるデータVALの値が大きい
と第6図(こ示す如く制御信号0HBFはオンとなり、
書込み信号B FWE )こより同じ番地tこ奇声の最
小値とこのデータを入れ替え、次は入社替え後のメモI
J l Oの記憶しているデータ値の中の最小値を探す
が、探す量制御信号0NTA及び制御信号AOBiオン
とする。これ醗こよりカウンタ6は前記hシl明のメモ
リIO上に値を記憶しているアドレ止 スl−nを、遂次比較器84こてnの値と比較して力す
る。最初は制御信号V8TJこより、最初のデータをレ
ジスタ12に記憶Tると共にこのデータの値のアドレス
1を、制御信号PTSTを出力して、レジスタ5#こ記
憶する。レジスタ12より出力されるデータの値と次に
送られてくるデータの値とを比較器4にて比較し若し小
さければ制@1信11− 号DSBTをオンとし、制御信号VST及びPT8Tを
発し、このデータの値をレジスタ12に記憶すると共l
こそのアドレス第6図では4をレジスタ5Gこ記憶する
。又欠番ここのデータの値より小さな値が来ると以上と
同じ動作をし其の値とアドレス(第6図ではn−3)を
レジスタ12及びレジスタ贋こ記憶する。次にEND4
H号を出しこの処理は終わる。このことによりメモリl
O上のn個のデータの値の内張小値のアドレス(第6図
では(こ送出し上記説明の動作を繰り返えす。N個のデ
ータを送出し終わるとこの動作によりメモリlOには大
きな値のn個のデータが記憶されていること番こなる。
Initially, the first n pieces of data out of the N pieces of data sent are stored in the memory 10, which will be explained with reference to FIGS. 3 and 4. The start signal informs the sending of the data sent, and the control signal 0NTA selects the selector 7. When the processing of one data is completed, the END signal is issued to notify the end of the selection, and the next data VAL is sent together. let them know that it is okay to do so. This operation is repeated for each data process. The counter 6 is controlled by the control signal AOEl and stores the data VAL sent to the memory 10 at an address BAD.
For example D, 1 to n are compared with the value of nl by comparator 8 (trowel n)
Until this happens, each clock (this 1 is added and output).At first, the control signal 0NTA is on and the selector 7 outputs the output 1 of the counter 6 as the address of the memory 10.Also, the control signal Control signal PTS when 0HBFtj is on
The data VAL sent to the address I indicated by the counter 6 is sent to the memory 10, and the write signal BIi is output.
'WB (This address 1 is stored in the register 51. Next, the control signal 0NTA is turned off and the selector 7 outputs (Jl) The address 1 stored in the register 5 is output to the memory 104. -F
The data stored at the address l of the memory 10 is output from the digital output Do of the memory 10. Write the data VAL that is sent one after another to the memory 1 by the write signal Bl;'WE.
Addresses 2 to nG are stored using address 1 of 0 as a reference. At this time, the digital output T) is compared to the value from 0 and comparator
If the value of the sent data VAL is larger than the value of the digital output Do (the value of the data at address l), the control signal 0HBF' is turned off and the control signal PTST is turned off, as shown in Fig. 4A. If the output is not output and the value is small, the control signal OHB F is turned on as shown in FIG. The address HADD to the add terminal of 10 becomes this value (!:), and the minimum value of data up to this 4L is output from the digital output DO of the memory lO. n(giltRepeat until this happens! l-. Memo IJ10f In the situation where n pieces of data are stored, the address stored in register 5 is the address of the minimum value of n pieces of data, and therefore the address of memory 10 is The output from digital output D'0 is in a state where the minimum value is output.Next, data VAL is sent one after another.
When is smaller than the minimum value, the minimum value and the data VAL sent are compared with the comparator 11G, but since it is smaller, the control signal 0HBF is turned off as shown in FIG. 5, and therefore the control signal 0NTA is also turned off. Then the situation continues. If the value of the data VAL sent is larger than the minimum value, the control signal 0HBF is turned on as shown in FIG.
Write signal B FWE) Replace this data with the minimum value of the strange voice from the same address, and then write the memo I after changing the company.
To search for the minimum value among the data values stored in JlO, the search amount control signal 0NTA and the control signal AOBi are turned on. From this point on, the counter 6 successively compares the address l-n whose value is stored in the memory IO of the h-th block with the value of the comparator 84 n and outputs it. Initially, the first data is stored in the register 12 using the control signal V8TJ, and the address 1 of the value of this data is stored in the register 5# by outputting the control signal PTST. The comparator 4 compares the value of the data output from the register 12 with the value of the data sent next, and if it is smaller, turns on the control @1 signal 11- DSBT and turns on the control signals VST and PT8T. The value of this data is stored in the register 12.
In the address shown in FIG. 6, 4 is stored in register 5G. When a value smaller than the data value of the missing number arrives, the same operation as above is performed and the value and address (n-3 in FIG. 6) are stored in the register 12 and the register. Next is END4
Issue H and the process ends. This results in memory l
The address of the inner small value of the value of n data on O (in Fig. 6) is sent.The operation explained above can be repeated. When N data are sent out, this operation causes the memory lO to be It turns out that n pieces of data with large values are stored.

以上は大きな値のデータをn個選択する動作を説明した
が小さな値のデータをn個選択する場合は最小値を最大
値とし比較器11で比較する場合はより小さな値のデー
タが来た時制御信号OHB Fをオンとし、又比較器4
にてn個のデータの最大12− 値を求めるために比較する場合は大きな値のデータが来
た時制御信号DSETをオンとするようにすれば、同様
の方法でN個のデータの値の内の小さな値のn個のデー
タがメモリ10に記憶され選択される。これはlの値が
Nの値より充分小さい場合非常に有効である。以上は値
のみ取り扱ったが大小を示す値とそrLfこ関連する値
、例えば類似度と文字コードを記憶するよ引こすると、
光学文字読取装置で認識結果(文字コード)とそれの入
力文字との類似度を記憶することlこなるので光学文字
読取装置の整合部に用いることが出来る。
The above explained the operation of selecting n pieces of data with a large value, but when selecting n pieces of data with a small value, the minimum value is the maximum value, and when comparing with the comparator 11, when data with a smaller value comes Turn on the control signal OHB F, and also turn on the comparator 4.
When comparing to find the maximum 12-value of n data, turn on the control signal DSET when data with a large value arrives. The n pieces of data with the smallest value are stored in the memory 10 and selected. This is very effective when the value of l is sufficiently smaller than the value of N. Above, we only dealt with values, but if we memorize values indicating magnitude and related values, such as similarity and character code,
Since the optical character reading device does not need to store the recognition result (character code) and the degree of similarity between it and the input character, it can be used in the matching section of the optical character reading device.

以上詳細に説明した如く本発明によれば小規模な回路構
成の選択回路で高速度に選択出来る効果がある。
As described above in detail, the present invention has the advantage of being able to select at high speed with a selection circuit having a small circuit configuration.

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

第1因は従来例の選択回路のブロック図、第2図は第1
図の場合の7個のデータより最も大きな3個のデータを
選択する場合のテーブル、第3図は本発明の冥施例の選
択回路のブロック図、第4図は第3図の場合の最初に第
2のメモリーこn個のト、第5図は第3図の場合の第2
のメモリ内の最小値より入力するデータの値が小さい場
合の動作を示すタイムチャート、第6図は第3図の場合
の第2のメモリ内の最小値より入力するデータの値か大
きい場合の動作を示すタイムチャートである。 図中1,10は第2のメモリ、2は制御回路、3はドラ
イバ、4,8.11は比較器、5.12はレジスタ、6
はカウンタ、’Ifセレクタである。 15− j’l’l用11O;妻O−bすJすJ%Qノ消/斤
The first factor is the block diagram of the conventional selection circuit, and the second factor is the block diagram of the conventional selection circuit.
3 is a block diagram of the selection circuit of the embodiment of the present invention, and FIG. 4 is the first table in the case of FIG. 3. Figure 5 shows the second memory in the case of Figure 3.
Figure 6 is a time chart showing the operation when the input data value is smaller than the minimum value in the second memory in the case of Figure 3. It is a time chart showing the operation. In the figure, 1 and 10 are second memories, 2 is a control circuit, 3 is a driver, 4, 8.11 is a comparator, 5.12 is a register, and 6
is a counter, 'If selector. 15- 11O for j'l'l; Wife O-b Jsu J% Q no eraser/catty

Claims (1)

【特許請求の範囲】 1、  N個のデータを記憶した第1のメモリの中から
値の最も大きなn個のデータを選択する方式憂こ於いて
、予め定められたn個のデータを記憶する第2のメモリ
と該第2のメモリ上のデータのアドレスを発生するカウ
ンタと該第2のメモリ上のデータの値を記憶する第1の
レジスタと該データの該第2のメモリ上のアドレスを記
憶する第2のレジスタと該データと他のデータとの値の
比較を行なう第1の比較器とを設け、■初めに該第1の
メモリのデータの中から任意のn個のデータを順次上記
第2のメモリに記憶させるに際し、遂次送られてくるデ
ータと該第2のメモリに最初に送られたデータ若しくは
既壷こ複数個送られたデータの中の最小値のデータとを
上記第1の比較器で比較し、小さい方のデータのアドレ
スを該第2のレジスタ醗こ記憶し、これをくり返すこと
に依り該第2のメモリ上に所定のn個のデータが記憶さ
れた時点で該n個のデータの中で最小の値のデータのア
ドレスが該81!2のレジスタに記憶されるようにし、
■次いで該第2のレジスタに記憶されたアドレスに基ら
れて来る該第1のメモリのデータを上記第1の比較器で
比較し、該送られて米たデータの値が該酵tみ出された
データの値よりも大きい場合、両者のデータを入れ替え
該第2のメモリ上に記憶させ、■その彼入れ替えらnた
該第2のメモリ上のn個のデータの中から最小のものを
探し出Tために前記カウンタから出力されるアドレスに
基き順次データを断み出し、第2の比較器で比較し、小
さい方のデータの値を上記第1のレジスタCC記憶し、
又該第1のレジスタに記憶さnたデータのアドレスを第
2のレジスタに記憶しこれをくり返し、n個のデータ中
の最小の値を第1のレジスタζこ該最小値のデータのア
ドレスを第2のレジスタ(こ記憶さぜ■再び送られてく
る該第1のメモリよりのデータと該第2のメモ1月こ記
憶されるデータの中の最小値のものとの比較を行ない、
送られてくるN ([i’ilのデータが終る迄以上の
工程を継11Tることを特徴とする選択回路。 2、N伽のデータを記憶した第1のメモリの中から値の
最も小さなn個のデータを選択する方式に於いて、予め
定められたn個のデータを記憶する第2のメモリと該第
2のメモリ上のデータのアドレスを発生するカウンタと
該第2のメモリーヒのデータの値を記憶する第1のレジ
スタと該データの該第2のメモリ上のアドレスを記憶す
る第2のレジスタと該データと他のデータとの値の比較
を行なう第1の比較器とを設け、■初めに該第1のメモ
リのデータの中から任意のn個のテークを順次上記第2
のメモ1月こ記憶さ止 せるに際し、鹸次送られてくるデータと該第2のメモリ
(こj硬初(こ送らイt1こデータ若しくは既に複数個
送らイ′1.たデータの中の最大値のデータを上記#′
!1の比較器で比較し、大きい方のデータのアドレスを
該第2のレジスタに記憶し、これをくり返え1−ことζ
こ依り該第2のメモリーヒζこ所定のn個のデータが記
憶された時点で該n個のデータの中で最大の値のデータ
のアドレスが該第2のレジスタζこ記憶されるようにし
、■次いで該第2のレジスタに記憶さイtたアドレスに
基き該第2のメモリから上記最大値のデータを読逐 み出し、該詩み出されたデータとその後遂次送られて来
る該第1のメモリのデータを上記第1の比較器で比較し
、核送られて来たデータの値が該読み出さイ″したデー
タの値より小さい場合、両者のデータを入n替え該第2
のメモリ上に記憶させ、■その後入れ替えられた該第2
のメモリ上のn個のデータの中から最大のものを探し出
すためζこ前記カウンタから出力されるアドレスζこ基
き順次データを設み出し、第2の比較器で比較し、大き
い方のデータの値を上記第1のレジスタに記憶し、又該
第1のレジスタに記憶されfこデータのアドレスを第2
のレジスタ船こ記3− 憶しこイ′シをくり返し、n個のデータ中の最大の値を
第1のレジスタlこ該最大値のデータのアドレスを第2
のレジスタに記憶させ■再び送られてくる該第1のメモ
リよりのデータと該第2のメモリに記憶されるデータの
中の最大値のものとの比*9.を行1まい、送られてく
るN個のデータが終る迄以上の工程を継続することを特
徴とする選択回路。
[Claims] 1. A method of selecting n pieces of data having the largest value from a first memory storing N pieces of data, in which a predetermined n piece of data is stored. a second memory; a counter that generates the address of data on the second memory; a first register that stores the value of the data on the second memory; and a first register that stores the address of the data on the second memory. A second register for storing data and a first comparator for comparing the values of the data and other data are provided; When storing the data in the second memory, the data sent sequentially and the data sent first to the second memory or the data of the minimum value among the data sent in plural pieces of data are stored in the above-mentioned manner. The first comparator compares the data, stores the address of the smaller data in the second register, and repeats this process to store a predetermined n pieces of data in the second memory. At a time point, the address of the data having the smallest value among the n pieces of data is stored in the 81!2 register;
(2) Next, the first comparator compares the data in the first memory based on the address stored in the second register, and the value of the sent data is determined by the If the value is larger than the value of the n data on the second memory, the data of both are swapped and stored in the second memory, and the smallest value is selected from among the n data on the second memory. In order to search T, data is sequentially extracted based on the address output from the counter, compared by a second comparator, and the smaller data value is stored in the first register CC;
Also, store the address of the n data stored in the first register in the second register, repeat this, and store the minimum value among the n data in the first register ζ. The second register (this memory) compares the data sent again from the first memory with the minimum value of the data stored in the second memory,
A selection circuit characterized in that the above steps are repeated 11T until the data of the sent N([i'il) is completed.2. In the method of selecting n pieces of data, a second memory that stores n pieces of data determined in advance, a counter that generates an address of the data on the second memory, and data in the second memory A first register that stores a value of the data, a second register that stores an address of the data on the second memory, and a first comparator that compares the values of the data and other data. , ■ First, any n takes from the data in the first memory are sequentially transferred to the second memory.
When you stop storing the memo, the data sent next time and the data in the second memory (this data or the data that has already been sent multiple times) Maximum value data #' above
! 1 comparator, store the address of the larger data in the second register, and repeat this process.
Therefore, when the predetermined n pieces of data are stored in the second memory register, the address of the data with the largest value among the n pieces of data is stored in the second register, (2) Then, based on the address stored in the second register, the data with the maximum value is read out from the second memory, and the data that has been read out and the data that is successively sent thereafter are The data in the first memory are compared by the first comparator, and if the value of the data sent from the core is smaller than the value of the read data, the two data are exchanged and the data in the second memory are compared.
■The second memory that was then replaced
In order to find the largest data among n pieces of data on the memory of The value is stored in the first register, and the address of the data stored in the first register is stored in the second register.
Repeat the steps 3 and 3 to memorize the data in the first register, store the maximum value among the n data in the first register, and store the address of the data with the maximum value in the second register.
*9.The ratio between the data from the first memory that is sent again and the maximum value of the data stored in the second memory.*9. A selection circuit characterized in that the above process is continued until the N pieces of data sent are completed.
JP56163051A 1981-10-13 1981-10-13 Selecting circuit Granted JPS5864549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56163051A JPS5864549A (en) 1981-10-13 1981-10-13 Selecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56163051A JPS5864549A (en) 1981-10-13 1981-10-13 Selecting circuit

Publications (2)

Publication Number Publication Date
JPS5864549A true JPS5864549A (en) 1983-04-16
JPH0416809B2 JPH0416809B2 (en) 1992-03-25

Family

ID=15766234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56163051A Granted JPS5864549A (en) 1981-10-13 1981-10-13 Selecting circuit

Country Status (1)

Country Link
JP (1) JPS5864549A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133659A (en) * 1983-01-20 1984-08-01 Canon Inc Address storage control system
JPS59133640A (en) * 1983-01-20 1984-08-01 Canon Inc Memory control system
JPS59133641A (en) * 1983-01-20 1984-08-01 Canon Inc Information retrieving device
JPH03116226A (en) * 1989-09-29 1991-05-17 Anritsu Corp Filtering process circuit
JP2009041455A (en) * 2007-08-09 2009-02-26 Bosch Corp Data update processing method and vehicle operation control device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133659A (en) * 1983-01-20 1984-08-01 Canon Inc Address storage control system
JPS59133640A (en) * 1983-01-20 1984-08-01 Canon Inc Memory control system
JPS59133641A (en) * 1983-01-20 1984-08-01 Canon Inc Information retrieving device
JPH0365571B2 (en) * 1983-01-20 1991-10-14
JPH0516607B2 (en) * 1983-01-20 1993-03-04 Canon Kk
JPH0516608B2 (en) * 1983-01-20 1993-03-04 Canon Kk
JPH03116226A (en) * 1989-09-29 1991-05-17 Anritsu Corp Filtering process circuit
JP2009041455A (en) * 2007-08-09 2009-02-26 Bosch Corp Data update processing method and vehicle operation control device

Also Published As

Publication number Publication date
JPH0416809B2 (en) 1992-03-25

Similar Documents

Publication Publication Date Title
JPS5864549A (en) Selecting circuit
US3512134A (en) Apparatus for performing file search in a digital computer
US4607329A (en) Circuit arrangement for the temporary storage of instruction words
JP2586172B2 (en) Table search device with learning function
JPH0654505B2 (en) Parallel processor
JPS58121484A (en) Context analyzing circuit
JPH07120356B2 (en) Character string pattern matching device
JPS59132376A (en) Test pattern reading control system
SU342185A1 (en) DEVICE FOR SEARCHING INFORMATION
JPS58218090A (en) Memory circuit
JPS5919376B2 (en) Buffer memory control method
JPH0424887A (en) Character recognizing device
JPS61246848A (en) Operation hysteresis storage circuit
JPS632386B2 (en)
JPS5771079A (en) Extracting method for character feature
JPH0289129A (en) Rearranging circuit
JPS58116579A (en) Graphic japanese character dot pattern output control system
KR19980044024A (en) Packet Identification Number (PID) Filter of MPEG-2 Demultiplexer and its Filtering Method
JPH04160532A (en) Sort processor
JPS6121576A (en) Document producing device
JPS63253431A (en) Retrieving system for data base of inverted structure
JPS61195429A (en) Arithmetic processing unit
JPS6127770B2 (en)
JPH0261725A (en) Micro branch system
JPS61134879A (en) Picture processing unit