JPS59144947A - Data comparator - Google Patents

Data comparator

Info

Publication number
JPS59144947A
JPS59144947A JP1747983A JP1747983A JPS59144947A JP S59144947 A JPS59144947 A JP S59144947A JP 1747983 A JP1747983 A JP 1747983A JP 1747983 A JP1747983 A JP 1747983A JP S59144947 A JPS59144947 A JP S59144947A
Authority
JP
Japan
Prior art keywords
data
counter
digits
allowable deviation
tolerance
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
JP1747983A
Other languages
Japanese (ja)
Other versions
JPH0310130B2 (en
Inventor
Setsuo Arita
節男 有田
Tetsuo Ito
哲男 伊藤
Takao Sato
隆雄 佐藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1747983A priority Critical patent/JPS59144947A/en
Publication of JPS59144947A publication Critical patent/JPS59144947A/en
Publication of JPH0310130B2 publication Critical patent/JPH0310130B2/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)
  • Feedback Control In General (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To decide the size of input data simply by applying the input data to one terminal of a comparator and applying the output of a counter to the other terminal. CONSTITUTION:Load pulses 3, 4 are applied to an up-counter 9 and a down- counter 11 respectively to step-advance the counters 9, 11. Input data are applied to a register 10. Comparators 12, 13 compare the contents of the counters 9, 11 and the register 10. An allowable deviation setting part 17 decides a digit to actuate the counters while considering the relation between data length and an allowable deviation value. When 25% allowable deviation is applied to 10-bit of data length e.g., the setting part 17 sets up 15 digits expressed by 4-bit from 2<5>- bit to 2<8>-bit, the value of 25%, as the number of counted pulses. Consequently, detection of coincidence can be executed for a short time.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、二つの数値データの比較する場合に、一方の
データを固定しておき、他方のデータを許容偏差内でカ
ウント・アップおよびカウント・ダウンし、上記一方の
データが上記カウント・アンプされた値とカウント・ダ
ウンされた値の間にあるかどうかを判定する装置に関す
る。
[Detailed Description of the Invention] [Field of Application of the Invention] When comparing two numerical data, the present invention fixes one data and counts up and down the other data within an allowable deviation. and determining whether said one data is between said counted-down value and said counted-down value.

〔従来技術〕[Prior art]

数値データの比較に、計算機を用いて演算処理して行な
う方法は周知の技術である。この方法で、計算機の演算
速度、プログラムのステップ数に依存し、データ比較時
間が長くなる場合がある。
A method of performing calculation processing using a computer to compare numerical data is a well-known technique. With this method, the data comparison time may be long depending on the calculation speed of the computer and the number of steps in the program.

また、数値データの比較に、レジスタ、アンプ・カウン
タ、ダウン・カウンタを用いる方法がある。これは、特
願昭57−53873号に示すような方法であり、一方
のデータを固定しておき、他方のデータを許容偏差以内
でカウント・アンプおよびカウント・ダウンし、固定さ
れた方のデータがカウント・アップされた価とカウント
・ダウンされた価の間にあるかどうかを調べ、二つのデ
ータの一致を判定するものである。
There are also methods of using registers, amplifier counters, and down counters to compare numerical data. This is a method as shown in Japanese Patent Application No. 57-53873, in which one data is fixed, the other data is counted down and counted down within the allowable deviation, and the fixed data is counted down. It checks whether the value is between the value counted up and the value counted down, and determines whether the two data match.

この方法による従来例の概略構成を第1図に示す。この
図において、端子1にデータAが印加されると、そのデ
ータAがアップ・カウンタ9およびダウン・カウンタ1
1にロード・パルス3によって取り込まれる。また、端
子2に印加されるデータCはロード・パルス4によって
レジスタ10に取り込まれる。その後、比較開始信号が
端子6に印加されると、クロック発生器5から出力され
るパルスはANDゲート7を介して、許容偏差設定部8
で指定される数だけアップ・カウンタ9およびダウン・
カウンタ11に印加され、これがカウント・アップ用お
よびカウント・ダウン用のクロック・パルストする。
A schematic configuration of a conventional example using this method is shown in FIG. In this figure, when data A is applied to terminal 1, the data A is applied to up counter 9 and down counter 1.
1 by load pulse 3. Further, data C applied to terminal 2 is taken into register 10 by load pulse 4. Thereafter, when the comparison start signal is applied to the terminal 6, the pulse output from the clock generator 5 is passed through the AND gate 7 to the tolerance setting section 8.
Up counter 9 and down counter 9 by the number specified by
It is applied to counter 11, which pulses the clock for counting up and counting down.

この結果、カウンタ9に格納されたデータAは許容偏差
以内でカウント・アップされ、カウンタ11に格納され
たデータ八は許容偏差以内でカウント・ダウンされ(こ
の過程でレジスタ1oに格納されたデータCと許容偏差
以内で一致するか否かが比較回路12.13で判定され
、その結果がORゲート14を介して、端子15に一致
信号として出力される。許容偏差以内で各々のデータが
一致していれば、ORゲート14の出力信号が許容偏差
設定部8に印加され、その設定部8から出力するパルス
を停止させる。
As a result, the data A stored in the counter 9 is counted up within the tolerance deviation, and the data 8 stored in the counter 11 is counted down within the tolerance deviation (in this process, the data C stored in the register 1o Comparison circuits 12 and 13 determine whether the data match within the allowable deviation or not, and the result is output as a match signal to the terminal 15 via the OR gate 14.If the respective data match within the allowable deviation, If so, the output signal of the OR gate 14 is applied to the allowable deviation setting unit 8, and the pulse output from the setting unit 8 is stopped.

以上のようにして、データAとデータCの一致を判定す
るわけであるが、許容偏差が大きい場合には、カウンタ
9,11に格納されたデータをカウント・アンプあるい
はカウント・ダウンす、る回敬が大きくなり、これによ
ってデータ比較時間が長くなるという問題がある。
As described above, it is determined whether data A and data C match, but if the tolerance is large, the data stored in counters 9 and 11 is counted up or down. becomes large, which causes a problem that the data comparison time becomes long.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、各データの偏差の大きさに無関係に、
短時間にデータを比較する装置を提供することである。
The purpose of the present invention is to
It is an object of the present invention to provide a device that compares data in a short time.

〔発明の概要〕[Summary of the invention]

上記目的を達成するために、上発明による、冒頭に述べ
た種類のデータ比較装置は、さらに、許容偏差の大きさ
に応じて、アップ・カウンタおよびダウン・カウンタが
それぞれカウント・アップおよびカウント・ダウンを開
始する桁を切り換える手段が備えられていることを要旨
とする。本発明の有利な実姉の態様においては、上記ア
ンプ・カウンタおよびダウン・カウンタのそれぞれカウ
ント・アップおよびカウント・ダウンを開始する桁を切
シ換える手段が、許容偏差が大きい場合には上位にあり
、小さい場合には下位にある上記桁以上でカウントして
データを比較し、上記桁以上は比較しないようにする。
To achieve the above object, the data comparison device according to the above invention of the type mentioned at the outset furthermore comprises an up counter and a down counter that count up and count down, respectively, depending on the magnitude of the tolerance deviation. The gist is that means is provided for switching the starting digit. In an advantageous sister aspect of the invention, the means for switching the digits from which to start counting up and counting down, respectively, of the amplifier counter and the down counter are located at a higher position when the tolerance deviation is large; If it is smaller, the data is compared by counting at or above the lower digit, and the data is not compared at or above the above digit.

本発明は、あるビット長からなるデータを比較する場合
、第2図に示すように、許容偏差の大きさに応じてaビ
ットで表わす許容偏差の有効桁数の設定範囲を変化させ
て、あるビット長Zから成るデータが許容偏差以内で一
致するか否かを判定するものである。この方法は、許容
偏差が小さい場合には許容偏差の有効桁をデータの最下
位桁にあわせて、最下位桁からデータをaビットで示す
有効許容偏差以内で比較し一致するか否がを判定する。
In the present invention, when comparing data consisting of a certain bit length, as shown in FIG. It is determined whether or not data consisting of bit length Z match within a permissible deviation. In this method, when the tolerance is small, the effective digit of the tolerance is adjusted to the least significant digit of the data, and the data is compared from the least significant digit within the effective tolerance indicated by the a bit to determine whether or not they match. do.

また、許容偏差が大きい場合には許容偏差の有効桁をデ
ータの上位桁側に設定し、この設定値から上位側をaビ
ットで示す有効許容偏差以内でデータを比較し一致する
か否かを判定する。許容偏差が大きくなると許容偏差の
有効桁はデータの上位桁側に設定するため、データの最
下位桁と許容偏差有効桁の設定位置の間に何ら処理しな
いビットn(これを残差ビットと呼ぶ。)が存在する。
In addition, if the allowable deviation is large, set the effective digit of the allowable deviation to the upper digit side of the data, and compare the data within the effective allowable deviation indicated by the a bit on the upper side from this set value to determine whether or not they match. judge. When the tolerance becomes large, the effective digits of the tolerance are set to the upper digits of the data, so a bit n (this is called a residual bit) that is not processed at all is placed between the least significant digit of the data and the position where the effective digit of the tolerance is set. ) exists.

この残差ビットは許容偏差の誤差分となる。This residual bit becomes the error of the allowable deviation.

すなわち、許容偏差は(真の許容偏差)±2n−1ディ
ジット(ただしn〉1)となる。しかし、この誤差分は
真の許容偏差に比べ十分率さいので何ら問題はない。
That is, the allowable deviation is (true allowable deviation) ±2n-1 digits (where n>1). However, this error is sufficiently smaller than the true allowable deviation, so there is no problem.

以上のように、許容偏差に応じて、許容偏差の有効桁数
の設定範囲を変えて、常に同一の有効桁数の許容偏差で
データを比較すれば、データの比較時間は常に短い。こ
の具体的実姉内容を図を用いて以下に説明する。
As described above, if the setting range of the number of effective digits of the allowable deviation is changed according to the allowable deviation and data is always compared with the same number of effective digits of allowable deviation, the data comparison time is always short. The specific details of this will be explained below using figures.

〔発明の実姉例〕[Actual sister example of invention]

第3図は本発明の一実癩の態様によるデータ比較装置の
構成を示すブロック図で、図中第1図と共通する引用番
号は第1図におけるものと同じ部・分を表わす。
FIG. 3 is a block diagram showing the configuration of a data comparison device according to one embodiment of the present invention, and reference numbers common to those in FIG. 1 in the figure represent the same parts as in FIG. 1.

端子1および2に入力するデータA、Ce−例として第
4図に示すように、データ長を10ビツトとし、各の値
を704デイジツト、512デイジツトとする。この値
はデータ長10ビツトに対応させると、各々69%、5
0%の値となる。
As an example, as shown in FIG. 4, the data length is 10 bits, and the respective values are 704 digits and 512 digits. When these values correspond to a data length of 10 bits, they are 69% and 5%, respectively.
The value is 0%.

そこで、許容偏差を25チとして、この範囲で上記デー
タが一致するか否かを第3図および第5図を用いて判定
する。
Therefore, the allowable deviation is set to 25 inches, and whether or not the above data match within this range is determined using FIGS. 3 and 5.

第3図において、許容偏差設定部17は許容偏差が25
%であるため、データ比較の分解能の考慮して、アップ
・カウンタ、ダウン・カウンタの25ビツトからカウン
ト・アップあるいはカウント・ダウンを開始するよう桁
切換え信号16をアンプ・カウンタ9とダウン・カウン
タ11に出力する。これに伴い、設定部17は25 ビ
ットから25チの値である28ビツトまでの4ビツトで
表わす15デイジツtt−カウント・アップ用あるいは
カウント・ダウン用のカウント・パルスの数左する。
In FIG. 3, the allowable deviation setting section 17 has an allowable deviation of 25
%, so in consideration of the resolution of data comparison, the digit switching signal 16 is applied to the amplifier counter 9 and the down counter 11 to start counting up or down from 25 bits of the up counter and down counter. Output to. Accordingly, the setting section 17 sets 15 digits tt - the number of count pulses for counting up or counting down, expressed by 4 bits from 25 bits to 28 bits, which is the value of 25 bits.

これにより、パルス発生器5から出力される第5図(a
)なるパルスは、端子6に第5図(b)なる比較開始信
号が印加されるとANDゲート7の許容偏差設定部17
を介して、第5図(C)に示すようなパルスとなる。こ
こでパルスの数が6個となっているのけ、後述する一致
信号により、カウント・アップおよびカウント・ダウン
が停止するためである。
As a result, the output from the pulse generator 5 as shown in FIG.
), when the comparison start signal shown in FIG. 5(b) is applied to the terminal 6, the allowable deviation setting section 17 of the AND gate 7
, a pulse as shown in FIG. 5(C) is obtained. This is because the count up and count down are stopped by a coincidence signal, which will be described later, even though the number of pulses is six here.

ところで、アップ・カウンタ9.ダウン・カウンタ11
には、各々、第5図(d)と(0のロード・パルス3,
4によって端子1,2に印加されたデータA、Bが第5
図(e)、(ωで示すA、Bとして格納される。アップ
・カウンタ9.ダウン・カウンタ11は、特願昭56−
203546号に示す構成となっており、任意の桁から
カウント・アップあるいはカウント・ダウンできるもの
である。
By the way, up counter 9. down counter 11
5(d) and (0 load pulse 3,
4, the data A and B applied to terminals 1 and 2 are the fifth
(e), (stored as A and B indicated by ω. Up counter 9 and down counter 11 are
It has the configuration shown in No. 203546, and can count up or down from any arbitrary digit.

したがって、第5図(C)なるパルスがアップ・カウン
タ9およびダウン・カウンタ11の26 ビットのとこ
ろから印加される。このためアンプ・カウンタの出力は
第5図(e)、第6図(a)〜(g)のように、カウン
ト・アップされる毎にAI、A2.A3゜・・・となる
。一方、ダウン・カウンタの出力は第5図(ω、第6図
(g)〜(ホ)のように、カウント・ダウンされる毎に
Bl、B2.B3・・・となり、6回カウント・ダウン
されると、データCと一致する。
Therefore, the pulse shown in FIG. 5(C) is applied from the 26th bit of the up counter 9 and the down counter 11. Therefore, the output of the amplifier/counter is AI, A2, . A3°... On the other hand, the output of the down counter becomes Bl, B2, B3, etc. each time it is counted down, as shown in Figure 5 (ω, Figure 6 (g) to (e)), and it is counted down six times. If so, it matches data C.

この結果、比較回路12け不一致信号を出力するが、比
較回路13が一致信号を出力するため、これがORゲー
ト14を介して、端子15に出力される。さらに、この
一致信号は許容偏差設定部17にも入力され、これによ
り、これ以上のカウント・アップあるいはカウント・ダ
ウンをさせないようにする。
As a result, the comparison circuits 12 output mismatch signals, but the comparison circuit 13 outputs a match signal, which is output to the terminal 15 via the OR gate 14. Furthermore, this coincidence signal is also input to the allowable deviation setting section 17, thereby preventing further counting up or down.

許容偏差設定部17は第7図に示すような構成である。The allowable deviation setting section 17 has a configuration as shown in FIG.

演算装置42はデータの許容偏差に応じて許容偏差の有
効桁数およびアップ・カウンタ、ダウン・カウンタのカ
ウント値を設定する機能を有し、有効桁設定レジスタ4
4に許容偏差の有効桁切換信号を、カウント・アップ/
ダウンパレジスタ43にアップ/ダウン・カウント数信
号を出力する。カウンタ40は、ANDゲート7からの
パルス18′!il:入力すると、このパルス数を計数
する。比較器41は、上記カウンタ40で計数するパル
ス数とカウント・アップ/ダウン・レジスタ43に設定
されている値が一致すると、ORゲート45に1″なる
信号を出力する。この結果OR,ゲート45は比較器4
1からa 1 p+なる信号が出力されるまでパルス1
8をアップ・カウンタ9およびダウン・カウンタ11に
カウント・パルス信号19を出力する。このようにして
、許容偏差設定部17からアンプ・カウンタ9.ダウン
・カウンタ11にカウント・パルス19を出力するが、
許容偏差以内で各データが一致すると、第3図のORゲ
ート14から1”なる一致信号が出力され、これがOR
ゲート45に入力されるため、パルス18はそれ以後O
Rゲート45から出力されない。第5図(C)に示す状
態がこれである。
The arithmetic unit 42 has a function of setting the number of valid digits of the allowable deviation and the count values of the up counter and down counter according to the allowable deviation of the data, and the valid digit setting register 4
4, the effective digit switching signal for the tolerance is counted up/
An up/down count number signal is output to the down register 43. Counter 40 receives pulse 18' from AND gate 7! il: When input, this pulse number is counted. When the number of pulses counted by the counter 40 and the value set in the count up/down register 43 match, the comparator 41 outputs a signal of 1'' to the OR gate 45. As a result, the OR gate 45 is comparator 4
Pulse 1 until a signal from 1 to a 1 p+ is output.
8 is outputted to an up counter 9 and a down counter 11 as a count pulse signal 19. In this way, the amplifier/counter 9 . A count pulse 19 is output to the down counter 11, but
When each data matches within the allowable deviation, a match signal of 1" is output from the OR gate 14 in FIG.
Since the pulse 18 is input to the gate 45, the pulse 18 becomes O from then on.
There is no output from R gate 45. This is the state shown in FIG. 5(C).

以上のようにして、データの比較を行なうが、これを従
来の最小位桁からのデータ比較と比べると、データの差
が192デイジツトもあるため、6月192すなわち3
2倍ものデータ比較速度速度差になる。
The data is compared as described above, but when compared with the conventional data comparison starting from the lowest digit, the difference in data is 192 digits, so June 192, or 3
This results in a data comparison speed difference of twice as much.

以上のように、データの許容偏差に応じて、カウント・
アンプおよびカウント・ダウンの開始の桁を切シ換えて
データを比較することにより、許容偏差の大きさに無関
係に短時間でデータを比較でき、その効果大である。な
お、上述の例では、カウント・アップあるいはカウント
・ダウンしない下位側の桁が一致していたが、不一致の
場合は、その部分を比較しないようマスクしておけばよ
い。
As mentioned above, depending on the allowable deviation of the data, the count
By switching the amplifier and the start digit of the countdown and comparing the data, the data can be compared in a short time regardless of the size of the tolerance, which is very effective. Note that in the above example, the lower digits that do not count up or count down match, but if they do not match, that part may be masked so as not to be compared.

この場合の許容偏差の誤差分はマスクした分になり、前
記データ比較例では、24ビツト以下をマスクすること
になるので 25−11すなわち31デイジツト、これ
は全体の3%に和尚するため、上記例では許容偏差を2
5±3チとして評価したことになるが、これは許容偏差
の真値とあまり差はなく問題にならない。
In this case, the error in the tolerance is the masked amount, and in the data comparison example, 24 bits or less are masked, so it is 25-11, or 31 digits, which is 3% of the total, so the above In the example, the tolerance is 2
Although it was evaluated as 5±3chi, this is not much different from the true value of the allowable deviation and is not a problem.

つぎに、本発明の応用例を示す。Next, an application example of the present invention will be shown.

第8図は多重化制御装置のデータ比較に関するものであ
り、二重化制御装置を対象とした。三重系以上に対して
は、この二重系用の比較方法ヲ組合せればよい。
FIG. 8 is related to data comparison of multiplex control devices, and is intended for duplex control devices. For triple or higher systems, this comparison method for double systems may be combined.

第8図において、制御装置21.22はセンナ群20か
らの信号を取り込み、そのip■o演算して、スイッチ
24を介してアクチュエータ25に制御信号を出力する
が、各装置の演算処理、特に積分演算値の違いにより、
演算結果やその他のデータはいくぶん異なるのが通常で
ある。そこで、データ比較装置23は、比較データに応
じて許容偏差を変更して、しかも短時間でデータを比較
することが要求され、これに前述したデータ比較装置を
適用すればその効果大である。
In FIG. 8, control devices 21 and 22 take in signals from the sensor group 20, perform IP/O calculations on them, and output control signals to the actuator 25 via the switch 24. Due to the difference in the integral calculation value,
It is normal for the calculation results and other data to be somewhat different. Therefore, the data comparison device 23 is required to change the allowable deviation according to the comparison data and to compare the data in a short time, and the above-described data comparison device can be applied to this purpose with great effect.

また、第9図はデータ伝送系に本発明を適用した例であ
る。
Further, FIG. 9 shows an example in which the present invention is applied to a data transmission system.

伝送装置30.31と伝送装置32.33間のデータ伝
送は非同期的に動作しているため、装置30.31がセ
ンナ群20から信号′ff:敗り込み、これを装置32
.33に伝送した場合、同時刻における装置32.33
の伝送されてきたデータは異なっている。また、これと
は逆に装置32゜33から装置30.31に伝送された
データも同様に異なる。
Since the data transmission between the transmission device 30.31 and the transmission device 32.33 operates asynchronously, the device 30.31 receives the signal 'ff: from the Senna group 20 and transmits it to the device 32.
.. 33, the device at the same time is 32.33.
The data that has been transmitted is different. Conversely, the data transmitted from the devices 32, 33 to the devices 30, 31 is likewise different.

したがって、各装置間のデータ比較にあたっては、許容
偏差音大きく変更しなければならない。
Therefore, when comparing data between each device, the allowable deviation must be changed significantly.

したがって、データ比較装置23に前述したデータ比較
装置を適用すれば、その効果大である。
Therefore, if the data comparison device described above is applied to the data comparison device 23, the effect will be great.

なお、24.24M、24Nはスイッチであり、25M
、25Nはアクチュエータであり、34は監視装置であ
る。
In addition, 24.24M and 24N are switches, and 25M
, 25N are actuators, and 34 is a monitoring device.

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

以上説明した通り、本発明によれば、いかなる数値デー
タも短時間で比較することができるため、多重化システ
ムの高信頼化が図れるとともに、システムの高速処理化
を図れる効果が得られる。
As explained above, according to the present invention, since any numerical data can be compared in a short time, it is possible to improve the reliability of the multiplexing system and to achieve the effect of increasing the processing speed of the system.

本発明は、例えば多重化制御系、多重化データ伝送系の
診断に適用してその効果大である。
The present invention is highly effective when applied to, for example, diagnosis of multiplex control systems and multiplex data transmission systems.

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

第1図は従来のデータ比較装置の構成を示すブロック図
、第2図は本発明の詳細な説明するためにデータ比較装
置に入力されるデータの構成を示す図、第3図は本発明
によるデータ比較装置の構成を示すブロック図、第4図
は比較される二つのデータの構成を示す図、第5図(a
)から(h)までは第3図に示す装置の中で使用される
パルス信号のタイミングを示すチャート、第6図(g)
から(a)までおよび(g)から−)まではそれぞれア
ンプ・カウンタおよびダウン・カウンタの出力の変化を
示す図、第7図は第3図に示す装置の許容偏差設定部の
構成を示すブロック図、第8図および第9図は二つの異
なった本発明の応用例を示すブロック図である。 1・・・アンプ・カウンタおよびダウン・カウンタの入
力端子、2・・・レジスタの入力端子、3,4・・・ロ
ード・パルス、5・・・クロック発生器、6・・・比較
開始信号端子、7・・・ANDゲート、8,17川許容
偏差設定部、9川アツプ・カウンタ、1o・・・レジス
タ、11・・・ダウン・カウンタ、12.13・・・比
較回路、14・・・ORゲート、15・・・出力端子、
16・・・桁切換え信号、18・・・ANDゲートの出
カバルス、19川カウント・パルス、2o・・・センサ
群、21.22・・・制御装置、23・・・データ比較
装置、24.24M、24N・・・スイッチ、25゜2
5M、25N・−・アクチュエータ、30,31゜32
.33・・・伝送装置、34・・・監視装置、40・・
・カウンタ、41・・・比較器、42・・・演算装置、
43・・・カウント・アップ/ダウン・レジスタ、44
・・・有効桁設定レジスタ、45・・・ORゲート。 代理人 弁理士 秋本正実 第7図 //         /j 范3図 1/ 弔4−(2) データc: 1000000000 第5図 弔6図 (α) A6 :[四■玉面7回 (b)  A5 :ロ]■ルm7回 ’(C) A4− ;■■■四ボセ■旧口(d) A3
 :口■可死画フ■70 (e) A2 :刀刀可爾爪亜IN口 け)ハl :γロア仄ロコ170口 <、i>az:  口■■■面■V頂圀(j)  B3
:   o ot t oooo。 (ft)Bt:  口ffl扉亜旧■団互())  B
5 : ロ丁lpゴシL弓フTΣ巨Ti口(1B6:[
2]酊可四弔■70刀 弔q図 第8図 1 第9図 5N 手続補正書(方式) %式% 、事件の表示 昭和 5g  年特願第77グ7タ IJ、発明の名称
 データ比較ま々置 3、補正をする者 氏 名(名称) (510)株式会社 日立製作所、代
理人 7、補正の対象 #J細古書中図面の簡単な説明の欄8
、補正の内容 別紙のとおシ 11、  本願明細書第11I頁2行〜7行の「第z図
Q)から(ロ))までおよび(g>から(ハ)までは」
を「第6図(a)から(ロ))までおよび(6)から0
までは」に補正する。 以  上 271−
FIG. 1 is a block diagram showing the configuration of a conventional data comparison device, FIG. 2 is a diagram showing the configuration of data input to the data comparison device for explaining the present invention in detail, and FIG. 3 is a block diagram showing the configuration of the data comparison device according to the present invention. A block diagram showing the configuration of the data comparison device, FIG. 4 is a diagram showing the configuration of two data to be compared, and FIG.
) to (h) are charts showing the timing of pulse signals used in the device shown in FIG. 3, and FIG. 6(g)
to (a) and (g) to -) are diagrams showing changes in the outputs of the amplifier counter and down counter, respectively, and FIG. 7 is a block diagram showing the configuration of the tolerance setting section of the device shown in FIG. 3. 8 and 9 are block diagrams illustrating two different applications of the invention. 1... Input terminal of amplifier counter and down counter, 2... Input terminal of register, 3, 4... Load pulse, 5... Clock generator, 6... Comparison start signal terminal , 7...AND gate, 8, 17 river tolerance setting section, 9 river up counter, 1o... register, 11... down counter, 12.13... comparison circuit, 14... OR gate, 15...output terminal,
16... Digit switching signal, 18... AND gate output pulse, 19 River count pulse, 2o... Sensor group, 21.22... Control device, 23... Data comparison device, 24. 24M, 24N...Switch, 25°2
5M, 25N... Actuator, 30, 31° 32
.. 33... Transmission device, 34... Monitoring device, 40...
- Counter, 41... Comparator, 42... Arithmetic device,
43...Count up/down register, 44
...Valid digit setting register, 45...OR gate. Agent Patent Attorney Masami Akimoto Figure 7// /j Fan 3 Figure 1/ Funeral 4-(2) Data c: 1000000000 Figure 5 Funeral Figure 6 (α) A6: [4■ balls 7 times (b) A5 : ro] ■ Le m 7 times' (C) A4-; ■■■ Four bose ■ Old mouth (d) A3
: Mouth■Kashingafu■70 (e) A2: Swords, swords, nails, IN mouth) Haru: γ Roa Kiroko 170 mouth<,i>az: Mouth■■■Men■V 上圀(j ) B3
: o ot t oooo. (ft) Bt: 口ffldoora old ■group mutual ()) B
5: Locho lp goshi L bowfu TΣ big Ti mouth (1B6:[
2] No. 70 Swordsmanship Figure 8 Figure 1 Figure 9 5N Procedural amendment (method) % formula %, Indication of the case Showa 5g 2007 Patent Application No. 77 G7 IJ, Name of invention Data comparison 3, Name of the person making the amendment (510) Hitachi, Ltd., Agent 7, Subject of amendment #J Hoshosho, brief explanation of drawings 8
, Contents of the amendment Attachment Toshi 11, "Figure Z Q) to (B)) and (g> to (C))" on page 11I, lines 2 to 7 of the specification of the present application
"Figure 6 (a) to (b)) and (6) to 0
Corrected to ``until''. Above 271-

Claims (1)

【特許請求の範囲】 1、二つの数値データのうち、一方を格納するレジスタ
と、他方を格納するアップ・カウンタおよびダウン・カ
ウンタと、上記二つの数値データが許容偏差以内で一致
しているかどうかを判定する比較器とを含むデータ比較
装置において、さらに、許容偏差の大きさに応じて、上
記アンプ・カウンタおよびダウン・カウンタがそれぞれ
カウント・アップおよびカウント・ダウンを開始する桁
を切シ換える手段が備えられていることを特徴とするデ
ータ比較装置。 2、上記アンプ・カウンタおよびダウン・カウンタのそ
れぞれカウント・アップおよびカウントダウンを開始す
る桁を切り換える手段が、許容偏差が大きい場合には上
位にあり、小さい場合には下位にある上記桁以上でカウ
ントしてデータを比較し、上記桁以上は比較しないよう
にすることを特徴とする特許請求の範囲第1項記載のデ
ータ比較装置。
[Claims] 1. Whether or not the register that stores one of the two numerical data, the up counter and down counter that store the other, and the two numerical data coincide within a permissible deviation. and a comparator for determining the value of the amp counter and the down counter, further comprising means for switching the digits at which the amplifier counter and the down counter start counting up and down, respectively, depending on the size of the tolerance. A data comparison device comprising: 2. The means for switching the digits at which to start counting up and counting down, respectively, of the amplifier counter and down counter are located at the upper digits when the tolerance is large, and when the tolerance is small, the digits at or above the lower digits are counted. 2. The data comparison device according to claim 1, wherein the data is compared based on the number of digits specified above, and data beyond the above-mentioned digits are not compared.
JP1747983A 1983-02-07 1983-02-07 Data comparator Granted JPS59144947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1747983A JPS59144947A (en) 1983-02-07 1983-02-07 Data comparator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1747983A JPS59144947A (en) 1983-02-07 1983-02-07 Data comparator

Publications (2)

Publication Number Publication Date
JPS59144947A true JPS59144947A (en) 1984-08-20
JPH0310130B2 JPH0310130B2 (en) 1991-02-13

Family

ID=11945136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1747983A Granted JPS59144947A (en) 1983-02-07 1983-02-07 Data comparator

Country Status (1)

Country Link
JP (1) JPS59144947A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6442735A (en) * 1987-08-10 1989-02-15 Fujitsu Ten Ltd Arithmetic circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4919623A (en) * 1972-06-14 1974-02-21

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4919623A (en) * 1972-06-14 1974-02-21

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6442735A (en) * 1987-08-10 1989-02-15 Fujitsu Ten Ltd Arithmetic circuit

Also Published As

Publication number Publication date
JPH0310130B2 (en) 1991-02-13

Similar Documents

Publication Publication Date Title
JPS59144947A (en) Data comparator
JPH01245719A (en) Parity check controller
JPS6227831A (en) Checking circuit for computing element
JPH01284971A (en) Vector processor
JP2704062B2 (en) Information processing device
JPH03224084A (en) Binary subtracter
KR100195184B1 (en) Interrupt encoder
JPH02121411A (en) Pulse count circuit diagnostic method
SU739534A1 (en) Device for interruption programs
JPS6113978Y2 (en)
SU1016785A1 (en) Variable priority device
SU1688261A1 (en) Device for histogram plotting
JPH03288949A (en) Remote supervisory and controlling equipment
JPH03110627A (en) Data collating circuit
JPH02159634A (en) Data latch input/output device
JPS62229335A (en) Address comparator
JPS5856139B2 (en) Error detection method
JPH0553979A (en) Priority order judging circuit
JPS63121999A (en) Output decision circuit for s/d converter
JPH0761006B2 (en) Data recording system for operation recorder
JPH02166846A (en) Multiframe detecting circuit
JPS63250744A (en) Signal processing lsi
JPS62100832A (en) Arithmetic checking circuit
JPH03159427A (en) Data transmission error detecting circuit
JPH0731544B2 (en) Computational congestion monitoring device