JPH01101731A - Coincidence detecting circuit - Google Patents

Coincidence detecting circuit

Info

Publication number
JPH01101731A
JPH01101731A JP26021187A JP26021187A JPH01101731A JP H01101731 A JPH01101731 A JP H01101731A JP 26021187 A JP26021187 A JP 26021187A JP 26021187 A JP26021187 A JP 26021187A JP H01101731 A JPH01101731 A JP H01101731A
Authority
JP
Japan
Prior art keywords
circuit
bit
value
binary counter
logical sum
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
JP26021187A
Other languages
Japanese (ja)
Inventor
Yasuhiko Teranishi
康彦 寺西
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP26021187A priority Critical patent/JPH01101731A/en
Publication of JPH01101731A publication Critical patent/JPH01101731A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PURPOSE:To decrease the number of elements when semiconductor integration is executed and to reduce a chip area by using a logical sum circuit as a comparing circuit in each bit. CONSTITUTION:Plural logical sum circuits 3a-3c to input the respective values to logic-invert the digital values of the respective bits of a prescribed value to be set in advance and the respective values of the respective bits of a binary counter 2 and to output the logical sum of respective inputs, are provided. A logical product circuit 4 to input the respective outputs of the logical sum circuits 3a-3c and to output the logical product of the respective inputs, is provided. Thus, only the bit, which is '1' out of the respective bits of the prescribed value to detect coincidence, is observed with attention and a first timing, in which the bit of the correspondent binary counter 2 wholly goes to be '1', can be regarded as a coincident timing. Accordingly, the coincidence can be detected with using the circuit of simple constitution and the number of the transistor elements can be widely decreased. Then, the chip area when a semiconductor integrated circuit is obtained can be decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は一致検出回路に関し、特に、バイナリカウンタ
の値とレジスタに記憶されている所定の値との一致を検
出する一致検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a coincidence detection circuit, and particularly to a coincidence detection circuit that detects coincidence between the value of a binary counter and a predetermined value stored in a register.

〔従来の技術〕[Conventional technology]

マイクロコンピュータ等で、制御タイミングを管理する
場合などにおいて、所定の値を設定できるレジスタ(−
時記憶回路)と、所定のクロックで累進するカウンタと
を用意し、カウンタの値がレジスタの値に等しくなった
ことを検出してそのタイミングで制御信号を発生する手
法が用いられることがある。
When managing control timing on a microcomputer, etc., a register (-
A method is sometimes used in which a counter is provided that is progressive at a predetermined clock, and a control signal is generated at that timing by detecting when the counter value becomes equal to the register value.

このような場合に用いられる従来の一致検出回路は、例
えば、第4図に示されるように、バイナリカウンタ2の
各ビットの値(b 3. b 21 b 1 )と、レ
ジスタ1の各ビットの値(a3+a2+a+ )との一
致をエクスクル−シブオア回路6a〜6cを用いて検出
し、このエクスクル−シブオフ回路6a〜6cの各出力
をノア回路7に入力して、このノア回路7の出力Voσ
Tの変化により一致検出を行なっている。
A conventional coincidence detection circuit used in such a case, for example, as shown in FIG. The match with the value (a3+a2+a+) is detected using the exclusive OR circuits 6a to 6c, and each output of the exclusive OFF circuits 6a to 6c is input to the NOR circuit 7, and the output Voσ of the NOR circuit 7 is detected.
Coincidence detection is performed based on changes in T.

すなわち、バイナリカウンタの各ビットの値(b3.b
21bりがレジスタlに設定されている各ビットの値(
a3+a2+a+ )にそれぞれ一致したとき、エクス
クル−シブオア回路6a〜6cの各出力はいずれも“O
”となり、この場合のみノア回路7の出力Voyrがハ
イレベルとなって一致が検出される。
That is, the value of each bit of the binary counter (b3.b
21b is the value of each bit set in register l (
a3+a2+a+), the outputs of the exclusive OR circuits 6a to 6c all become "O".
”, and only in this case, the output Voyr of the NOR circuit 7 becomes high level and a match is detected.

上述したエクスクル−シブオフ回路6a〜6cは、第5
図に示されるようにノア回路8.lOと、アンド回路9
とで構成されている。
The exclusive off circuits 6a to 6c described above are the fifth
As shown in the figure, NOR circuit 8. lO and AND circuit 9
It is made up of.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の一致検出回路は、バイナリカウンタの各
ビットの値とレジスタの各ビットの値との一致をエクス
クル−シブオフ回路を用いて検出しており、このエクス
クル−シブオフ回路は2つのノア回路と1つのアンド回
路とを有し、構成が複雑であり、多数のトランジスタ等
の回路素子を必要とするため、一致検出回路を半導体集
積回路化すると占有面積が増大してチップ面積の大型化
を招くという欠点がある。
The conventional coincidence detection circuit described above detects the coincidence between the value of each bit of the binary counter and the value of each bit of the register using an exclusive-off circuit, and this exclusive-off circuit consists of two NOR circuits and It has one AND circuit, has a complex configuration, and requires a large number of circuit elements such as transistors. Therefore, if the coincidence detection circuit is made into a semiconductor integrated circuit, the occupied area will increase, leading to an increase in the chip area. There is a drawback.

C問題点を解決するための手段〕 本発明の一致検出回路は、 あらかじめ設定された所定の値の各ビットのデジタル値
を論理反転した値のそれぞれと、前記バイナリカウンタ
の各ビットの値のそれぞれとを入力として、それらの論
理和をとって出力する複数の論理和回路と、 該複数の論理和回路の各出力を入力としてそれらの論理
積をとって出力する論理積回路とを有している。
Means for Solving Problem C] The coincidence detection circuit of the present invention detects each value obtained by logically inverting the digital value of each bit of a predetermined value, and each value of each bit of the binary counter. a plurality of logical sum circuits that take the outputs of the plurality of logical sum circuits as inputs, and output the logical sum of the logical sum circuits; There is.

〔作用〕[Effect]

論理和回路は、エクスクル−シブオア回路に比べて、そ
れを構成するのに必要なトランジスタ等の素子数が少な
いため、ビットごとの比較回路として論理和回路を用い
ることによって半導体集積化した場合の素子数を減少さ
せることができ、チップ面積を削減することができる。
Since an OR circuit requires fewer elements such as transistors to construct it than an exclusive-OR circuit, it is possible to integrate the elements into a semiconductor by using an OR circuit as a bit-by-bit comparison circuit. The number of chips can be reduced, and the chip area can be reduced.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一致検出回路の一実施例の回路図であ
る。
FIG. 1 is a circuit diagram of one embodiment of the coincidence detection circuit of the present invention.

本実施例の一致検出回路は、第4図の従来例におけるエ
クスクル−シブオア回路6a〜6cの代わりにオア回路
3a〜3cを、ノア回路7の代わりにアンド回路4をそ
れぞれ設け、レジスタ1の各ビットには、一致を検出す
べき所定の値の各ビットの値(a3+a2+al )の
反転値(” 3+ M 2+at)が設定されている。
The coincidence detection circuit of this embodiment has OR circuits 3a to 3c in place of the exclusive OR circuits 6a to 6c in the conventional example shown in FIG. The bits are set to the inverted value ("3+M2+at) of the value (a3+a2+al) of each bit of a predetermined value for which a match is to be detected.

この場合、バイナリカウンタ2はいわゆるアップカウン
タであり、表1に示すとおり(b31b21bl )は
co、o 、0)から(1、1、l)まで1ずつ累進し
、再びリセットされて、この動作を繰返すものとする。
In this case, the binary counter 2 is a so-called up counter, and as shown in Table 1, (b31b21bl) advances by 1 from co, o, 0) to (1, 1, l), and is reset again to perform this operation. shall be repeated.

また、レジスタ1に設定される値は、その時点のバイナ
リカウンタ2の値よりも必ず大きな値であるものとする
0例えば、バイナリカウンタ2の値が(b3.bz、b
t ) = (o I I I O)であるとすれば、
各ビットの値Cal&2ea! )は(0、l 。
In addition, the value set in register 1 shall always be a larger value than the value of binary counter 2 at that time.0For example, if the value of binary counter 2 is (b3.bz,b
t ) = (o I I I O), then
Value of each bit Cal&2ea! ) is (0, l.

1)、(1,0,0)、(1,0,1’)、(1゜1 
、 O)、(1、1、l)のいずれかとする。
1), (1,0,0), (1,0,1'), (1゜1
, O), (1, 1, l).

表1 次に、本実施例の動作について説明する。Table 1 Next, the operation of this embodiment will be explained.

いま、一致を検出すべき所定の値は、(a3゜a2.a
t)=(1,0,1)とし、バイナリカウンタの値は(
0、0、0)とする。この場合、レジスタlには、所定
の値(1、0、1)の反転値(0,1,0)が記憶され
る。初期状態においては、オア回路3a〜3cのうち3
bの出力のみが“1”°であり、3a、3cの出力は“
O”である0次に、バイナリカウンタ2のカウントが開
始される。このとき、オア回路3a〜3cの出力がすべ
てU I IIとなりアンド回路4の出力がu Onか
ら“1°°へ反転するのは、バイナリカウンタ2の最下
位ビットb+および最上位ビットb3が“l IIとな
るときである−  (b3Ibl ) = (1。
Now, the predetermined value for which a match should be detected is (a3°a2.a
t) = (1, 0, 1), and the value of the binary counter is (
0, 0, 0). In this case, the inverted value (0, 1, 0) of the predetermined value (1, 0, 1) is stored in the register l. In the initial state, 3 of the OR circuits 3a to 3c
Only the output of b is “1”°, and the outputs of 3a and 3c are “
Next, the binary counter 2 starts counting. At this time, the outputs of the OR circuits 3a to 3c all become U I II, and the output of the AND circuit 4 is inverted from u On to "1°°". This is when the least significant bit b+ and the most significant bit b3 of the binary counter 2 become "l II - (b3Ibl) = (1.

1)となるのは、表1から明らかなように(b3゜bz
、b+)=(1,0,1)のとき、あるいは(1,1,
1)のときであるが、最初にアンド回路4の出力が“l
”になるのは(1、0、1)であり、最初にこのアンド
回路4の出力が反転するときをバイナリカウンタ2の値
と所定値(a3゜a2.at)との一致した時点とみな
すようにすれば一致を検出することができ、信頼性も失
なわれることがない。
1), as is clear from Table 1, (b3゜bz
, b+) = (1, 0, 1), or (1, 1,
1), first the output of the AND circuit 4 becomes “l”.
” is (1, 0, 1), and the first time the output of this AND circuit 4 is inverted is considered to be the point in time when the value of the binary counter 2 and the predetermined value (a3°a2.at) match. By doing so, a match can be detected without losing reliability.

このように、一致を検出すべき所定の値の各ビットのう
ちの“l”となっているビットのみに着目し、対応する
バイナリカウンタ2のビットがすべてl”となる最初の
タイミングを一致タイミングとみなすことにより、第1
図のようなエクスクル−シブオフ回路を使わない簡易な
構成の回路を用いて一致を検出することができる。
In this way, we focus on only the bits that are "l" among the bits of the predetermined value to detect a match, and define the first timing when all the bits of the corresponding binary counter 2 become "l" as the match timing. By considering it as
A match can be detected using a simple circuit that does not use an exclusive off circuit as shown in the figure.

第2図(a)は本発明の一致検出回路の他の実施例の回
路図、(b)、(C)は(a)における点線で囲んだ部
分の等価回路の回路図である。
FIG. 2(a) is a circuit diagram of another embodiment of the coincidence detection circuit of the present invention, and FIG. 2(b) and (C) are circuit diagrams of equivalent circuits of the portions surrounded by dotted lines in FIG. 2(a).

本実施例の一致検出回路において、バイナリカウンタ2
は表2に示すとおり第1図におけるカウンタの値の反転
値(b3.b2.bl )を出力し。
In the coincidence detection circuit of this embodiment, the binary counter 2
outputs the inverted value (b3.b2.bl) of the counter value in FIG. 1 as shown in Table 2.

(1,1,1)から(0,0,0)t−t’のカウ7ト
をくり返す。
Repeat counting from (1, 1, 1) to (0, 0, 0) t-t'.

また、ビットごとの比較回路としてNMOSトランジス
タM1.M2 、M3.M4 、M5.M6をそれぞれ
直列接続したナンド回路を用い、これらをワイヤード接
続して、共通接続端と電源vDDとの間にプルアップ抵
抗Rを設けることにより、ワイヤードアンド回路を構成
したものである。すなわち、この部分の等価回路図は第
2図(b)のようになる、第2図(b)は、さらに、第
2図(C)と等価であり、第2図(C)は第1図と等価
である。すなわち、第2図(a)の回路は第1図と論理
回路的に等価であり、MOS)ランジスタとワイヤード
接続を用いて容易に半導体集積回路化できる。なお。
Also, as a comparison circuit for each bit, an NMOS transistor M1. M2, M3. M4, M5. A wired AND circuit is constructed by using NAND circuits in which M6 are connected in series, and by connecting these in a wired manner and providing a pull-up resistor R between the common connection end and the power supply vDD. That is, the equivalent circuit diagram of this part is as shown in Fig. 2(b). Fig. 2(b) is further equivalent to Fig. 2(C), and Fig. 2(C) is equivalent to Fig. 2(C). It is equivalent to a diagram. That is, the circuit of FIG. 2(a) is equivalent to the circuit of FIG. 1 in terms of logic, and can be easily integrated into a semiconductor integrated circuit using MOS transistors and wired connections. In addition.

D型フリップフロップ5は、入力端子りの入力値を、ク
ロック端子GKへのクロック信号φの入出タイミングで
ラッチしQ端子から出力するもので、バイナリカウンタ
2の過渡動作により出力が容易に変動するのを防止する
ために設けられている。
The D-type flip-flop 5 latches the input value at the input terminal at the input/output timing of the clock signal φ to the clock terminal GK and outputs it from the Q terminal, and the output easily fluctuates due to the transient operation of the binary counter 2. It is provided to prevent

第3図は本発明の一致検出回路のさらに他の実施例の回
路図である。
FIG. 3 is a circuit diagram of still another embodiment of the coincidence detection circuit of the present invention.

本実施例は、ノア回路11a N11c、 12を用い
たものであるが、論理回路的に第1図と等価である0本
実施例ではバイナリカウンタ2の最下位ビットboにつ
いては、対応するレジスタ1のビットが存在しないため
、上位ピッ)bt 〜b3についての一致が検出された
ときに一致検出回路が出力される。
This embodiment uses NOR circuits 11a, N11c, 12, which is equivalent to the logic circuit shown in FIG. Since the bits do not exist, the coincidence detection circuit outputs when a coincidence is detected for the upper bits bt to b3.

なお、第1図および第3図においてレジスタ1に反転信
号(’j s+ ”;L 21 M I)を記憶させて
いるが、所定の値C&3*&2+&s)を記憶させてお
き、レジスタ1に、記憶している値を反転して出力する
機能を付加してもよい。
In addition, in FIGS. 1 and 3, the inverted signal ('j s+ ''; L 21 M I) is stored in the register 1, but a predetermined value C&3*&2+&s) is stored in the register 1. A function to invert and output the stored value may be added.

また、上述の実施例ではレジスタ1およびバイナリカウ
ンタ2として3ビツト構成のものが用いられているが、
これに限定されるものではなく、ビット数は任意である
Furthermore, in the above embodiment, a 3-bit configuration is used as the register 1 and the binary counter 2, but
The number of bits is not limited to this, and the number of bits is arbitrary.

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

以上説明したように本発明は、ビットごとの比較回路と
してオア回路を用いることにより、必要となるトランジ
スタ素子数を大幅に減少させることができ、半導体集積
回路化した場合のチップ面積を減少させることができる
効果がある。
As explained above, by using an OR circuit as a comparison circuit for each bit, the present invention can significantly reduce the number of required transistor elements, and reduce the chip area when implemented as a semiconductor integrated circuit. It has the effect of

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

第1図は本発明の一致検出回路の一実施例の回路間、第
2図(a)は本発明の一致検出回路の他の実施例の回路
図、第2図(b) 、 (c)は、第2図(a)の点線
で囲まれた部分の等価回路間、第3図は本発明の一致検
出回路のさらに他の実施例の回路図、第4図は従来例の
回路図、第5図は第4図のエクスクル−シブオア回路6
a〜6cの具体的構成を示す回路図である。 l・・・レジスタ、 2・・・バイナリカウンタ、 3a〜3C・・・オア回路、 4・・・アンド回路、 5・・・D型フリップフロップ、 11a 〜H0,12−ノア回路、 M0〜M6・・・NMO5)ランジスタ、R・・・プル
アップ抵抗、 Voa・・・電源、 φ・・・クロック信号。 特許出願人  日 本電気株式会社 代 理 人  弁理士 内 原   晋第1図 第3図 第4図 第5図
FIG. 1 is a circuit diagram of one embodiment of the coincidence detection circuit of the present invention, FIG. 2(a) is a circuit diagram of another embodiment of the coincidence detection circuit of the present invention, and FIGS. 2(b) and (c) is the equivalent circuit of the part surrounded by the dotted line in FIG. 2(a), FIG. 3 is a circuit diagram of still another embodiment of the coincidence detection circuit of the present invention, FIG. 4 is a circuit diagram of a conventional example, Figure 5 shows the exclusive OR circuit 6 of Figure 4.
FIG. 6 is a circuit diagram showing a specific configuration of components a to 6c. 1...Register, 2...Binary counter, 3a-3C...OR circuit, 4...AND circuit, 5...D-type flip-flop, 11a-H0, 12-NOR circuit, M0-M6 ...NMO5) transistor, R...pull-up resistor, Voa...power supply, φ...clock signal. Patent applicant: NEC Corporation Representative: Susumu Uchihara, patent attorney Figure 1 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 複数ビットからなるバイナリカウンタの値が複数ビット
からなる所定の値と一致したことを検出する一致検出回
路であって、 該所定の値の各ビットのデジタル値を論理反転した値の
それぞれと、前記バイナリカウンタの各ビットの値のそ
れぞれとを入力として、それらの論理和をとって出力す
る複数の論理和回路と、該複数の論理和回路の各出力を
入力としてそれらの論理積をとって出力する論理積回路
とを有する、あるいはこれと論理回路的に等価の構成を
有する一致検出回路。
[Claims] A coincidence detection circuit that detects that the value of a binary counter consisting of a plurality of bits matches a predetermined value consisting of a plurality of bits, the circuit comprising: a logic inversion of the digital value of each bit of the predetermined value; a plurality of OR circuits that take each of the values and each of the values of each bit of the binary counter as inputs, calculate the logical sum of these, and output the result; A coincidence detection circuit that includes an AND circuit that performs AND output, or has a configuration equivalent to this in terms of logic circuitry.
JP26021187A 1987-10-14 1987-10-14 Coincidence detecting circuit Pending JPH01101731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26021187A JPH01101731A (en) 1987-10-14 1987-10-14 Coincidence detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26021187A JPH01101731A (en) 1987-10-14 1987-10-14 Coincidence detecting circuit

Publications (1)

Publication Number Publication Date
JPH01101731A true JPH01101731A (en) 1989-04-19

Family

ID=17344887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26021187A Pending JPH01101731A (en) 1987-10-14 1987-10-14 Coincidence detecting circuit

Country Status (1)

Country Link
JP (1) JPH01101731A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS494589U (en) * 1972-04-14 1974-01-16

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS494589U (en) * 1972-04-14 1974-01-16

Similar Documents

Publication Publication Date Title
JPH0219015A (en) Multifunctional flip-flop circuit
JPH06110654A (en) Data-coincidence detecting circuit
US4903005A (en) Comparator circuit
US3628000A (en) Data handling devices for radix {37 n{30 2{38 {0 operation
JPH01101731A (en) Coincidence detecting circuit
KR0139763B1 (en) Reset circuit and integrated circuit including the same
US6489811B2 (en) Logic gate with symmetrical propagation delay from any input to any output and a controlled output pulse width
EP0333214A2 (en) Comparator unit for data discrimination
US4264864A (en) Programmable binary counter
US4888499A (en) Three input exclusive OR-NOR gate circuit
JPS61247984A (en) Test circuit
JPS628818B2 (en)
JPH051495B2 (en)
JPH04212521A (en) Ring counter
JP2748765B2 (en) Majority circuit
JP2599396B2 (en) Exclusive logic circuit
US6693453B1 (en) Re-programmable logic array
JPH04101535A (en) Interface circuit
JPS61269412A (en) D type latch semiconductor integrated circuit
JPH0779247B2 (en) Decode circuit
JPH02158832A (en) Comparator
JPH04147073A (en) Test mode setting circuit of semiconductor device
JPH04347925A (en) Power-on reset circuit
JP2000216668A (en) Waveform shaping circuit
JPH06177730A (en) Reset circuit and integrated circuit including same