JPH04172715A - Coincidence detection circuit - Google Patents

Coincidence detection circuit

Info

Publication number
JPH04172715A
JPH04172715A JP30019690A JP30019690A JPH04172715A JP H04172715 A JPH04172715 A JP H04172715A JP 30019690 A JP30019690 A JP 30019690A JP 30019690 A JP30019690 A JP 30019690A JP H04172715 A JPH04172715 A JP H04172715A
Authority
JP
Japan
Prior art keywords
data
input
coincidence detection
bit
circuit
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
JP30019690A
Other languages
Japanese (ja)
Inventor
Kimio Maruyama
公夫 丸山
Akira Wada
晃 和田
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP30019690A priority Critical patent/JPH04172715A/en
Publication of JPH04172715A publication Critical patent/JPH04172715A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize a coincidence detection circuit capable of high speed operation by employing simple 2-input OR and AND gates for a logic gate section and inverting either of a comparison data or a compared data. CONSTITUTION:A counter 10 is a 4-bit up-counter outputting compared data Q1-Q4 while increasing monotonously in response to an input clock phi. Moreover, a logic gate section 11 has plural input terminals provided corresponding to each 1-bit of the compared data Q1-Q4 and plural other input terminals provided corresponding to each bit of the comparison data in plural bits. The logic gate section 11 compares the comparison data with the compared data Q1-Q4 and outputs a coincidence detection signal P when they are coincident. Thus, the coincidence detection function is realized with simple circuit constitution and high speed operation is attained.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、半導体回路装置で構成された一致検出回路に
関するもので、特に複数ビットの被比較データが単調増
加又は単調減少するようなタイマ等に使用されるもので
ある。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a coincidence detection circuit configured with a semiconductor circuit device, and in particular, the present invention relates to a coincidence detection circuit configured with a semiconductor circuit device, and in particular, the present invention relates to a coincidence detection circuit configured with a semiconductor circuit device. It is used for timers etc.

(従来の技術) 一般に、単一ピット一致検出回路は、基本的には排他的
論理和によって構成されている。また、例えば第6図に
示すような複数ビット(四ビット)一致検出回路では、
同図の破ttiA  (a)のように、それぞれの排他
的論理和について、さらに論理和をとることによって一
致検出を行っている。ここで、1は周期クロック入力線
、2は四ビットアップカウンタ、3は比較データ入力線
、4は被比較データ入力線、5は排他的論理和、6は論
理和、7は一致検出出力線、8はRSフリップフロップ
である。
(Prior Art) In general, a single pit coincidence detection circuit is basically configured by exclusive OR. Furthermore, for example, in a multi-bit (four-bit) coincidence detection circuit as shown in FIG.
As shown in ttiA (a) in the same figure, coincidence detection is performed by further calculating the logical sum for each exclusive logical sum. Here, 1 is a periodic clock input line, 2 is a 4-bit up counter, 3 is a comparison data input line, 4 is a compared data input line, 5 is an exclusive OR, 6 is a logical OR, and 7 is a match detection output line , 8 are RS flip-flops.

つまり、このような複数ビット一致検出回路では、比較
データと被比較データとが、単一ビット毎に、それぞれ
の排他的論理和5によって共に“1′か否か、又は共に
“0“か否がか判定される。そして、全てのビットが一
致、即ち共に“1゛又は共に“0′となった時に、一致
検出出力Pが出力される。
In other words, in such a multi-bit coincidence detection circuit, the comparison data and the compared data are determined, for each single bit, by exclusive OR 5 of each bit, whether they are both "1" or not, or whether they are both "0". Then, when all the bits match, that is, both are "1" or both are "0", a match detection output P is output.

具体的には、例えば予め設定された四ビットの比較デー
タが“1° “0“0“1°であったと仮定する。この
比較データは、それぞれ比較データ入力線3を通って、
排他的論理和5の一方の入力端子へ入力される。また、
第7図のタイムチャートに示すように、四ビットアップ
カウンタ2からは、単調増加する被比較データQ、〜Q
4がそれぞれ所定の排他的論理和5の他方の入力端子へ
入力される。そして、全てのビットか一致、即ち被比較
データQ1〜Q4が“1″ “0″ “0““1”とな
った時に、全ての排他的論理和5から“02が出力され
る。このため、論理和6からは、一致検出出力Pとして
“1″が出力される。
Specifically, for example, it is assumed that the preset 4-bit comparison data is "1°", "0", "0", and "1°". This comparison data passes through the comparison data input line 3, respectively.
It is input to one input terminal of exclusive OR 5. Also,
As shown in the time chart of FIG. 7, from the 4-bit up counter 2, the compared data Q, ~Q
4 are respectively input to the other input terminal of the predetermined exclusive OR 5. Then, when all the bits match, that is, when the compared data Q1 to Q4 become "1", "0", "0", and "1", "02" is output from all exclusive ORs 5. Therefore, "02" is output from all exclusive ORs 5. , the logical sum 6 outputs "1" as the match detection output P.

しかしながら、上記複数ビット一致検出回路では、比較
データの一ビットに対し、一つの排他的論理和5が必要
である。つまり、比較データのデータビット数(例えば
四ビット)に応して、同数(例えば四つ)の排他的論理
和5が必要となる。
However, in the multi-bit coincidence detection circuit described above, one exclusive OR 5 is required for one bit of comparison data. In other words, the same number (for example, four) of exclusive ORs 5 are required depending on the number of data bits (for example, four bits) of the comparison data.

このため、一致検出出力を得るためには、一つの排他的
論理和5を構成する数個のスイッチング素子が、データ
ビット数倍だけ必要になってくる。
Therefore, in order to obtain a coincidence detection output, the number of switching elements constituting one exclusive OR 5 is required to be equal to the number of data bits.

従って、一致検出回路のみで大規模な回路群となってし
まい、LSI化には不利である。
Therefore, the coincidence detection circuit alone becomes a large-scale circuit group, which is disadvantageous for LSI implementation.

なお、LSIの分野では、上記排他的論理和5の回路構
成を例えば第8図に示すようにし、これによってLSI
上に実現可能としたものや、排他的論理和5を例えば第
9図に示すような回路構成に展開し、構成素子数の減少
を達成したものが知られているが、このような排他的論
理和5の回路構成では、高速動作に向かないという欠点
かある。
In the field of LSI, the circuit configuration of the exclusive OR 5 is shown in FIG.
It is known that the number of constituent elements has been reduced by developing the exclusive OR 5 into a circuit configuration as shown in Figure 9, for example. The circuit configuration of OR5 has the disadvantage that it is not suitable for high-speed operation.

(発明が解決しようとする課題) このように、従来の一致検出回路では、比較データの一
ビットに対し、一つの排他的論理和か必要であったため
、一致検出回路を構成するスイッチング素子が増大し、
LSI化には不利となる欠点があった。また、LSI化
に適した回路構成の排他的論理和も考えられていたが、
高速動作に向かないという欠点があった。
(Problem to be solved by the invention) As described above, in the conventional coincidence detection circuit, one exclusive OR was required for one bit of comparison data, so the number of switching elements constituting the coincidence detection circuit increased. death,
LSI implementation had disadvantages. Also, an exclusive OR of circuit configurations suitable for LSI implementation was considered, but
The drawback was that it was not suitable for high-speed operation.

本発明は、上記欠点を解決すべくなされたものであり、
一致検出機能を簡単な回路構成によって実現でき、かつ
高速動作が可能な一致検出回路を提供することを目的と
する。
The present invention has been made to solve the above drawbacks,
It is an object of the present invention to provide a coincidence detection circuit that can realize a coincidence detection function with a simple circuit configuration and can operate at high speed.

[発明の構成] (課題を解決するための手段) 上記目的を達成するために、本発明の一致検出回路は、
入力クロックに応して、複数ビットの第1のデータを変
化させながら出力する第1の手段を備えている。また、
前記第1のデータの各1ビットに対応してそれぞれ設け
られた複数の一方の入力端と、この複数の一方の入力端
に対応し、かつ複数ビットの第2のデータの各1ビット
に対応してそれぞれ設けられた複数の他方の入力端とを
有し、前記第1のデータと前記第2のデータとが一致し
たときに一致検出信号を出力する第2の手段を備えてい
る。さらに、前記第2の手段の出力端に接続され、前記
一致検出信号を記憶する第3の手段と、前記第1及び第
2のデータが前記第2の手段に入力される前に、前記第
1及び第2のデータのいずれか一方を反転させる第4の
手段とを備えている。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the coincidence detection circuit of the present invention has the following features:
The apparatus includes first means for outputting a plurality of bits of first data while changing the data in response to an input clock. Also,
a plurality of one input terminals provided corresponding to each one bit of the first data; and a plurality of one input terminals corresponding to each one of the plurality of input terminals, and corresponding to each one bit of the plurality of second data. and a plurality of other input terminals provided respectively, and includes second means for outputting a coincidence detection signal when the first data and the second data match. Furthermore, third means is connected to the output terminal of the second means and stores the coincidence detection signal; and fourth means for inverting either one of the first and second data.

本発明の一致検出回路は、前記第1の手段に、アップカ
ウンタを使用したものである。また、前記第1の手段に
、ダウンカウンタを使用したものである。
The coincidence detection circuit of the present invention uses an up counter as the first means. Further, a down counter is used as the first means.

本発明の一致検出回路は、前記第3の手段からの出力信
号を、前記第1の手段の初期状態を設定するセット又は
リセット信号として使用する手段を備えている。
The coincidence detection circuit of the present invention includes means for using the output signal from the third means as a set or reset signal for setting the initial state of the first means.

本発明の一致検出回路は、前記第2の手段が、前記第1
又は第2のデータのビット数に対応する数だけ存在し、
各々一方の入力端に前記第1のデータの所定の1ビット
が入力し、各々他方の入力端に前記第2のデータの所定
の1ビットが入力する二入力のNAND回路群と、前記
二入力のNAND回路群からの各々の出力信号が入力す
る複数入力のNAND回路とから構成されている。
In the coincidence detection circuit of the present invention, the second means includes the first
or there are a number corresponding to the number of bits of the second data,
a group of two-input NAND circuits each having one input terminal input with a predetermined one bit of the first data and the other input terminal receiving a predetermined one bit of the second data; It is composed of a plurality of input NAND circuits into which output signals from each of the NAND circuit groups are input.

本発明の一致検出回路は、前記第2の手段が、前記第1
又は第2のデータのビット数に対応する数だけ存在し、
各々一方の入力端に前記第1のデータの所定の1ビット
が入力し、各々他方の入力端に前記第2のデータの所定
の1ビットが入力する二入力のNOR回路群と、前記二
入力のNOR回路群からの各々の出力信号が入力する複
数入力のNOR回路とから構成されている。
In the coincidence detection circuit of the present invention, the second means includes the first
or there are a number corresponding to the number of bits of the second data,
a group of two-input NOR circuits each having one input terminal receiving a predetermined one bit of the first data and the other input terminal receiving a predetermined one bit of the second data; and a plurality of input NOR circuits into which output signals from each of the NOR circuit groups are input.

(作用) このような構成によれば、第2の手段に、例えば単純な
二人カゲートの論理和や論理積等が使用できる。また、
第1及び第2のデータのいずれか一方を反転させている
。この時、複数の一致検出出力が出力されるが、複数の
一致検出出力のうち一番最初の一致のみを検出すること
によって、一致検出を行うことが可能である。このため
、一致検出機能を簡単な回路構成によって実現でき、か
つ高速動作が可能となる。
(Operation) According to such a configuration, for example, a simple logical sum or logical product of two-person gates can be used as the second means. Also,
One of the first and second data is inverted. At this time, a plurality of match detection outputs are output, but it is possible to perform match detection by detecting only the first match among the plurality of match detection outputs. Therefore, the coincidence detection function can be realized with a simple circuit configuration, and high-speed operation is possible.

(実施例) 以下、図面を参照しながら本発明の一実施例について詳
細に説明する。
(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例に係わる一致検出回路を示
すものである。
FIG. 1 shows a coincidence detection circuit according to an embodiment of the present invention.

10は、入力クロックφに応じて、被比較データ(第1
のデータ)Q1〜Q4を単調増加させながら出力する四
ビットアップカウンタである。
10, the compared data (first
This is a 4-bit up counter that outputs data Q1 to Q4 while monotonically increasing.

また、11は、被比較データQ1〜Q4の各1ビットに
対応してそれぞれ設けられた複数の一方の入力端と、こ
の複数の一方の入力端に対応し、かつ複数ビットの比較
データ(第2のデータ)の各1ビットに対応してそれぞ
れ設けられた複数の他方の入力端とを有する論理ゲート
部である。論理ゲート部11では、比較データと被比較
データQ1〜Q4とが比較され、これらが一致したとき
一致検出回路Pが出力される。論理ゲート部11は、被
比較データQ1〜Q4又は比較データのビット数に対応
する数だけ存在し、各々一方の入力端に被比較データQ
、〜Q4の所定の1ビットが入力し、各々他方の入力端
に比較データの所定の1ビットが入力する二入力のNO
R回路群12と、NOR回路群12からの各々の出力信
号が入力する複数入力のNOR回路13とから構成され
ている。NOR回路群12は、前記第6図の排他的論理
和5をNOR回路に置き換えたものに相当する。
Reference numeral 11 denotes one of a plurality of input terminals provided corresponding to each one bit of the compared data Q1 to Q4, and a plurality of bits of comparison data (second This is a logic gate section having a plurality of other input terminals provided corresponding to each one bit of data (2). In the logic gate section 11, the comparison data and the compared data Q1 to Q4 are compared, and when they match, the match detection circuit P outputs an output. The number of logic gate sections 11 corresponds to the number of bits of the compared data Q1 to Q4 or comparison data, and each logic gate section 11 has one input terminal connected to the compared data Q1 to Q4 or the number of bits of the compared data.
, ~Q4, and a two-input NO in which a predetermined bit of comparison data is input to the other input terminal, respectively.
It is composed of an R circuit group 12 and a plurality of input NOR circuits 13 into which each output signal from the NOR circuit group 12 is input. The NOR circuit group 12 corresponds to the exclusive OR circuit 5 in FIG. 6 replaced with a NOR circuit.

NOR回路群12の各々他方の入力端には、予め設定さ
れた四ビットの比較データがインバータ14によって反
転された後、入力される。また、NOR回路群12のそ
れぞれの出力は、さらにNOR回路13へ入力される。
Preset four-bit comparison data is inverted by an inverter 14 and then input to the other input terminal of each of the NOR circuit group 12. Further, each output of the NOR circuit group 12 is further input to a NOR circuit 13.

NOR回路13の出力は、一致検出出力Pとなり、この
一致検出出力Pは、RSフリップフロップ15のリセッ
ト端子Rへ入力され、記憶される。一方、四ビットアッ
プカウンタ10から出力される被比較データQ、〜Q4
は、NOR回路16へ入力される。また、NOR回路1
6の出力は、RSフリップフロップ]5のセット端子S
へ入力される。
The output of the NOR circuit 13 becomes a coincidence detection output P, and this coincidence detection output P is input to the reset terminal R of the RS flip-flop 15 and stored. On the other hand, the compared data Q, ~Q4 output from the 4-bit up counter 10
is input to the NOR circuit 16. In addition, NOR circuit 1
The output of 6 is the set terminal S of RS flip-flop]5.
is input to.

次に、上記一致検出回路の動作について、第2図に示す
タイムチャートを参照しなから説明する。
Next, the operation of the coincidence detection circuit will be explained with reference to the time chart shown in FIG.

いま、上記第1図の一致検出回路において、予め設定さ
れた四ビットの比較データが“1″“0“0“1”であ
ったと仮定する。四ビットアップカウンタ10からは、
単調増加する被比較データQ、〜Q4が出力され、この
被比較データQ1〜Q4は、それぞれNOR回路群12
の一方の入力端子に入力されている。また、比較データ
は、インバータ14によって反転された後、反転データ
“0”1”12 “O′として、それぞれNOR回路群
12の他方の入力端子に入力されている。ここで、比較
データと被比較データか一致すると、NOR回路12の
出力は全て“0′となるため、NOR回路]3から出力
される一致検出出力Pは“1”となる。ここで、比較デ
ータの反転データ“0゛]“1″ “0”に対し、全て
のNOR出力か論理“0′となる被比較データQ、〜Q
4は、“0“0“0゛0″から“1”1″ “]”1”
までの−サイクル中、“11 “0″ “01 “1″
最初として、その後五目起こることになる。これに対し
ては、以下のように対処できる。つまり、比較データと
被比較データの一致は、一致検出出力Pが“1“となる
上記四回のうち、常に最初の一回目であることに注目す
る。言い換えれば、最初の一回目の一致検出出力Pが正
確な一致を示すデータであり、この後の五目は偽りのデ
ータであるということである。
Now, assume that in the coincidence detection circuit shown in FIG. 1, the preset four-bit comparison data is "1", "0", "0", and "1". From the four-bit up counter 10,
Monotonically increasing compared data Q, ~Q4 are output, and these compared data Q1 ~ Q4 are respectively output from the NOR circuit group 12.
is input to one of the input terminals. The comparison data is inverted by the inverter 14 and then inputted to the other input terminal of the NOR circuit group 12 as inverted data "0", "1", and "O'". Here, when the comparison data and the compared data match, all outputs of the NOR circuit 12 become "0", so the match detection output P output from the NOR circuit 3 becomes "1". Inverted data “0゛” “1” “0”, compared data Q, ~Q where all NOR outputs become logic “0”
4 is “0”0”0゛0” to “1”1” “]”1”
During -cycles up to “11 “0” “01 “1”
As the first, then the fifth thing will happen. This can be dealt with as follows. In other words, it is noted that the match between the comparison data and the compared data is always the first of the four times when the match detection output P becomes "1". In other words, the first match detection output P is data indicating an accurate match, and the subsequent five matches are false data.

従って、常に最初の一回目によって比較データと被比較
データとの一致を検出すれば、問題はなくなる。
Therefore, if the match between the comparison data and the compared data is always detected at the first time, the problem will disappear.

このような構成によれば、各データのビット数に対応す
る数だけ必要な排他的論理和を、単純な二人カゲートの
論理和や論理積等に置き換えることが可能である。従っ
て、回路構成を簡単化できることはもちろんのこと、ス
イッチング素子数の削減による集積回路上における占有
面積の縮小にも寄与できる。また、スイッチング素子数
が少ないことは、出力までの電圧変化点も少なくてすみ
、比較的高速に動作させることも可能である。
According to such a configuration, it is possible to replace the exclusive ORs, which are required in number corresponding to the number of bits of each data, with a simple logical sum or logical product of two-person gates. Therefore, not only can the circuit configuration be simplified, but also the area occupied on the integrated circuit can be reduced by reducing the number of switching elements. Furthermore, since the number of switching elements is small, there are fewer voltage change points up to the output, and it is also possible to operate at relatively high speed.

なお、上記実施例においては、被比較データQ1〜Q4
を単調増加させるアップカウンタを用いているが、被比
較データQ、〜Q4を単調減少させるダウンカウンタを
用いてもよい。また、比較データをインバータ14によ
って反転させているが、比較データに変えて被比較デー
タを反転させるような構成にしてもよい。
In addition, in the above embodiment, compared data Q1 to Q4
Although an up counter that monotonically increases is used, a down counter that monotonically decreases compared data Q, to Q4 may also be used. Further, although the comparison data is inverted by the inverter 14, a configuration may be adopted in which the compared data is inverted instead of the comparison data.

第3図は、本発明の他の実施例に係わる一致検出回路を
示すものである。
FIG. 3 shows a coincidence detection circuit according to another embodiment of the present invention.

この実施例では、四ビットアップカウンタ10Aに被比
較データQ1〜Q4の反転機能を設けることにより、被
比較データQ1〜Q4の反転データQ1〜Q4を用いて
いる。また、被比較データの反転データQ1〜Q4が一
方の入力端に入力される論理ゲート群には、NAND回
路群12Aが用いられている。NAND回路群12Aの
出力が入力される論理ゲートには、NAND回路13A
が用いられている。NAND回路1.3 Aの出力は、
一致検出出力Pとなり、この一致検出出力Pは、RSフ
リップフロップ15のリセット端子Rへ入力され、記憶
される。また、入力端が四ビットアップカウンタIOA
に接続され、出力端がRSフリップフロップ15のセッ
ト端子Sに接続される論理ゲートには、NAND回路1
6Aが用いられている。
In this embodiment, the 4-bit up counter 10A is provided with a function of inverting the compared data Q1 to Q4, so that the inverted data Q1 to Q4 of the compared data Q1 to Q4 are used. Further, a NAND circuit group 12A is used as a logic gate group to which the inverted data Q1 to Q4 of the data to be compared is inputted to one input terminal. The logic gate to which the output of the NAND circuit group 12A is input includes a NAND circuit 13A.
is used. The output of the NAND circuit 1.3 A is
The coincidence detection output P is inputted to the reset terminal R of the RS flip-flop 15 and stored. In addition, the input terminal is a 4-bit up counter IOA
A NAND circuit 1 is connected to the logic gate whose output terminal is connected to the set terminal S of the RS flip-flop 15.
6A is used.

このような構成によっても、動作は、上記第1図に示す
一致検出回路と同様であり、同様の効果、即ち一致検出
機能を簡単な回路構成によって実現でき、かつ高速動作
が可能となる等の効果が得られる。つまり、一致検出出
力Pが“1”となる場合は四回起こるが、常に最初の一
回目が正確な一致であるから、その最初の一回目によっ
て比較データと被比較データとの一致を検出することが
できる。
Even with such a configuration, the operation is the same as that of the coincidence detection circuit shown in FIG. Effects can be obtained. In other words, the match detection output P becomes "1" four times, but the first time is always an accurate match, so the first time is used to detect the match between the comparison data and the compared data. be able to.

第4図は、本発明の他の実施例に係わる一致検出回路を
示すものである。ここで、第5図は、前記第4図の一致
検出回路の基本動作を表すタイムチャートを示している
FIG. 4 shows a coincidence detection circuit according to another embodiment of the present invention. Here, FIG. 5 shows a time chart showing the basic operation of the coincidence detection circuit shown in FIG. 4.

この実施例では、被比較データの反転データQ、〜Q4
を出力するカウンタにN+1カウンタ10Bを使用して
いる。また、RSフリップフロップ15の出力信号Oを
、N+1カウンタIOBの初期状態を設定するセット又
はリセット信号として用いている。つまり、RSフリッ
プフロップ15の出力端と、N+1カウンタ10Bとの
間にNOR回路17を接続している。
In this embodiment, the inverted data Q, ~Q4 of the compared data
An N+1 counter 10B is used as the counter that outputs. Further, the output signal O of the RS flip-flop 15 is used as a set or reset signal for setting the initial state of the N+1 counter IOB. That is, the NOR circuit 17 is connected between the output terminal of the RS flip-flop 15 and the N+1 counter 10B.

このような構成によれば、比較データと被比較データと
が一致した後に、初期状態にセット又はリセットするこ
とにより、被比較データの周期を任意に変えることが可
能となる。つまり、最初の一回目の一致検出回路Pによ
って−サイクルを終わらせ、次のサイクルのカウントを
し始めることができる。
According to such a configuration, after the comparison data and the compared data match, the cycle of the compared data can be changed arbitrarily by setting or resetting to the initial state. In other words, the first coincidence detection circuit P can end the cycle and start counting the next cycle.

[発明の効果] 以上、説明したように、本発明の一致検出回路によれば
、次のような効果を奏する。
[Effects of the Invention] As described above, the coincidence detection circuit of the present invention provides the following effects.

タイマ等に使用される一致検出回路において、被比較デ
ータを生成する手段か、アップカウンタ、ダウンカウン
タ等の出力を単調増加、単調減少させるものによって構
成されていることに着目し、本発明の一致検出回路の構
成を、論理ゲート部に単純な二人カゲートの論理和や論
理積等を使用し、かつ比較データ及び被比較データのい
ずれか一方を反転させるようにしている。また、このよ
うな構成では、複数の一致検出出力が出力されるか、複
数の一致検出出力のうち一番最初の一致のみを検出する
ことによって、一致検出を行うことか可能である。従っ
て、一致検出機能を簡単な回路構成によって実現でき、
かつ高速動作が可能な一致検出回路を提供することがで
きる◇
The coincidence detection circuit of the present invention focuses on the fact that a coincidence detection circuit used in a timer or the like is configured with a means for generating compared data or a device that monotonically increases or decreases the output of an up counter, a down counter, etc. The configuration of the detection circuit is such that a simple logical sum or logical product of two-person gates is used in the logic gate section, and one of the comparison data and the data to be compared is inverted. Further, in such a configuration, it is possible to detect a match by outputting a plurality of match detection outputs or by detecting only the first match among a plurality of match detection outputs. Therefore, the coincidence detection function can be realized with a simple circuit configuration.
It is also possible to provide a coincidence detection circuit that can operate at high speed◇

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

第1図は本発明の一実施例に係わる一致検出回路の基本
構成を示す回路図、第2図は前記第1図の一致検出回路
の動作について示すタイムチャート、第3図は本発明の
他の実施例に係わる一致検出回路の基本構成を示す回路
図、第4図は本発明の他の実施例に係わる一致検出回路
の基本構成を示す回路図、第5図は前記第4図の一致検
出回路の動作について示すタイムチャート、第6図は従
来の一致検出回路を示す回路図、第7図は前記第6図の
一致検出回路の動作について示すタイムチャート、第8
図及び第9図はそれぞれ従来のLSI化に際して使用さ
れる排他的論理和の構成を示す回路図である。 10、IOA・・・四ビットアップカウンタ、1、 O
B・・・N+lカウンタ、11・・・論理ゲート部、1
2・・・NOR回路群、12A・・・NAND回路群、
13.16.17・・・NOR回路、13A、16A・
・・NAND回路、14・・・インバータ、15・・・
RSフリップフロップ。 第1図 第2図 第4図 第6図 第7図 s8図 第9図
FIG. 1 is a circuit diagram showing the basic configuration of a coincidence detection circuit according to an embodiment of the present invention, FIG. 2 is a time chart showing the operation of the coincidence detection circuit of FIG. 1, and FIG. FIG. 4 is a circuit diagram showing the basic configuration of a coincidence detection circuit according to another embodiment of the present invention, and FIG. 5 is a circuit diagram showing the basic configuration of a coincidence detection circuit according to another embodiment of the present invention. A time chart showing the operation of the detection circuit, FIG. 6 is a circuit diagram showing a conventional coincidence detection circuit, FIG. 7 is a time chart showing the operation of the coincidence detection circuit of FIG. 6, and FIG.
9 and 9 are circuit diagrams respectively showing the configuration of an exclusive OR used in conventional LSI implementation. 10, IOA...4-bit up counter, 1, O
B...N+l counter, 11...Logic gate section, 1
2...NOR circuit group, 12A...NAND circuit group,
13.16.17...NOR circuit, 13A, 16A・
...NAND circuit, 14...inverter, 15...
RS flip flop. Figure 1 Figure 2 Figure 4 Figure 6 Figure 7 Figure s8 Figure 9

Claims (1)

【特許請求の範囲】 (1)入力クロックに応じて、複数ビットの第1のデー
タを変化させながら出力する第1の手段と、 前記第1のデータの各1ビットに対応してそれぞれ設け
られた複数の一方の入力端と、この複数の一方の入力端
に対応し、かつ複数ビットの第2のデータの各1ビット
に対応してそれぞれ設けられた複数の他方の入力端とを
有し、前記第1のデータと前記第2のデータとが一致し
たときに一致検出信号を出力する第2の手段と、 前記第2の手段の出力端に接続され、前記一致検出信号
を記憶する第3の手段と、 前記第1及び第2のデータが前記第2の手段に入力され
る前に、前記第1及び第2のデータのいずれか一方を反
転させる第4の手段とを具備したことを特徴とする一致
検出回路。(2)前記第1の手段にアップカウンタを使
用したことを特徴とする請求項1記載の一致検出回路。 (3)前記第1の手段にダウンカウンタを使用したこと
を特徴とする請求項1記載の一致検出回路。 (4)前記第3の手段からの出力信号を、前記第1の手
段の初期状態を設定するセット又はリセット信号として
使用する手段を具備したことを特徴とする請求項1記載
の一致検出回路。 (5)前記第2の手段は、前記第1又は第2のデータの
ビット数に対応する数だけ存在し、各々一方の入力端に
前記第1のデータの所定の1ビットが入力し、各々他方
の入力端に前記第2のデータの所定の1ビットが入力す
る二入力のNAND回路群と、前記二入力のNAND回
路群からの各々の出力信号が入力する複数入力のNAN
D回路とから構成されていることを特徴とする請求項1
記載の一致検出回路。 (6)前記第2の手段は、前記第1又は第2のデータの
ビット数に対応する数だけ存在し、各々一方の入力端に
前記第1のデータの所定の1ビットが入力し、各々他方
の入力端に前記第2のデータの所定の1ビットが入力す
る二入力のNOR回路群と、前記二入力のNOR回路群
からの各々の出力信号が入力する複数入力のNOR回路
とから構成されていることを特徴とする請求項1記載の
一致検出回路。
[Scope of Claims] (1) A first means for outputting a plurality of bits of first data while changing it according to an input clock; a plurality of one input terminals, and a plurality of other input terminals respectively provided corresponding to one input terminal of the plurality and corresponding to each bit of the second data of the plurality of bits. , a second means that outputs a coincidence detection signal when the first data and the second data match; and a second means that is connected to the output terminal of the second means and stores the coincidence detection signal. 3, and a fourth means for inverting either one of the first and second data before the first and second data are input to the second means. A match detection circuit featuring: (2) The coincidence detection circuit according to claim 1, wherein an up counter is used as the first means. (3) The coincidence detection circuit according to claim 1, wherein a down counter is used as the first means. (4) The coincidence detection circuit according to claim 1, further comprising means for using the output signal from the third means as a set or reset signal for setting an initial state of the first means. (5) The number of the second means corresponds to the number of bits of the first or second data, and a predetermined 1 bit of the first data is input to one input terminal of each, and each of the second means has a number corresponding to the number of bits of the first or second data. a two-input NAND circuit group into which a predetermined 1 bit of the second data is input to the other input terminal; and a multi-input NAND circuit into which each output signal from the two-input NAND circuit group is input.
Claim 1 characterized in that it is comprised of a D circuit.
Coincidence detection circuit as described. (6) The number of the second means corresponds to the number of bits of the first or second data, and a predetermined 1 bit of the first data is input to one input terminal of each, and each of the second means has a number corresponding to the number of bits of the first or second data. Consisting of a two-input NOR circuit group into which a predetermined 1 bit of the second data is input to the other input terminal, and a multiple-input NOR circuit into which each output signal from the two-input NOR circuit group is input. 2. The coincidence detection circuit according to claim 1, wherein:
JP30019690A 1990-11-06 1990-11-06 Coincidence detection circuit Pending JPH04172715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30019690A JPH04172715A (en) 1990-11-06 1990-11-06 Coincidence detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30019690A JPH04172715A (en) 1990-11-06 1990-11-06 Coincidence detection circuit

Publications (1)

Publication Number Publication Date
JPH04172715A true JPH04172715A (en) 1992-06-19

Family

ID=17881893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30019690A Pending JPH04172715A (en) 1990-11-06 1990-11-06 Coincidence detection circuit

Country Status (1)

Country Link
JP (1) JPH04172715A (en)

Similar Documents

Publication Publication Date Title
JPS6114203Y2 (en)
US3083907A (en) Electronic counter
US3354295A (en) Binary counter
JPH04172715A (en) Coincidence detection circuit
US3088095A (en) Ring checking circuit
JP2984429B2 (en) Semiconductor integrated circuit
JP2643470B2 (en) Synchronous counter
JPH09289445A (en) Synchronous counter
KR950010189B1 (en) Apparatus and method for generating a pulse and detecting a pulse width using counter
SU1172004A1 (en) Controlled frequency divider
JPH0779247B2 (en) Decode circuit
JPS609286B2 (en) Timing signal generation circuit
JPH0422220A (en) Synchronous output circuit
JPH0744417A (en) Test circuit for microcomputer
JPH0653819A (en) Synchronizing counter
JPH01217634A (en) Multi-input interruption circuit
JPH05108977A (en) Act/deact counter
JPS61284676A (en) Logical value comparison and decision circuit
JPS5935222A (en) Switching circuit
JPH0481124A (en) Count number setting changeover system
JPH02206222A (en) Counter
JPS62122324A (en) Programmable counter circuit
JPH0431929A (en) 1/n check circuit
JPS6333805B2 (en)
JPS6187426A (en) Flip-flop