JPH05291900A - Comparator circuit - Google Patents

Comparator circuit

Info

Publication number
JPH05291900A
JPH05291900A JP8677192A JP8677192A JPH05291900A JP H05291900 A JPH05291900 A JP H05291900A JP 8677192 A JP8677192 A JP 8677192A JP 8677192 A JP8677192 A JP 8677192A JP H05291900 A JPH05291900 A JP H05291900A
Authority
JP
Japan
Prior art keywords
circuit
output
comparator
input
latch
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.)
Withdrawn
Application number
JP8677192A
Other languages
Japanese (ja)
Inventor
Takashi Hattori
孝 服部
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems Co 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP8677192A priority Critical patent/JPH05291900A/en
Publication of JPH05291900A publication Critical patent/JPH05291900A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To prevent spike noise even when plural input signals are simultaneously changed by providing a control circuit operated to close a gate of a latch circuit when one of the plural input signals is changed to the comparator circuit. CONSTITUTION:An output of a comparator 1 having plural input signals is used for a data input of a latch circuit 2 setting the said output to a through state of a latch state. Furthermore, signals Ao, Bo,...An, Bn, A>B, A<B, A=B being inputs to the comparator 1 are inputted to a gate input terminal of the latch circuit 2 through inverting delay circuits 3-9, EXOR circuits 10-16 and an AND circuit 17. When the signal Bn is changed, an output S4 of the EXOR circuit 13 goes to 0 and an output of the ANd circuit 17 also goes to 0. Then the latch circuit 2 is latched till an output of an inverting delay circuit 6 goes to 0, after the change in the signal An is finished, the output latch state is released and the latch circuit 2 is set in the through-state and a clear value after the change is outputted, then no spike noise is generated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンパレート回路に関
し、特に、デジタル信号のコンパレート回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a comparator circuit, and more particularly to a digital signal comparator circuit.

【0002】[0002]

【従来の技術】一般に、デジタル信号のコンパレート回
路は、異なった複数の入力信号のうち任意の2入力を比
較し出力する。この場合、異なった複数の入力信号が同
時に変化すると、わずかな入力タイミングのずれによっ
て、出力信号にスパイクノイズが発生することがある。
2. Description of the Related Art Generally, a digital signal comparator circuit compares two arbitrary input signals among a plurality of different input signals and outputs them. In this case, when a plurality of different input signals change at the same time, spike noise may occur in the output signal due to a slight shift in the input timing.

【0003】例えば、図3(a)に示す従来のコンパレ
ート回路では、異なった入力An ,Bn をそれぞれ比較
し、Ao >Bo ,Ao <Bo ,Ao =Bo に対応して0
または1を出力するが、入力信号が図3(b)に示すよ
うに変化した場合、出力信号には、図示するようなスパ
イクノイズが混入する。
For example, in the conventional comparator circuit shown in FIG. 3A, different inputs A n and B n are compared with each other, and A o > B o , A o <B o , A o = B o . Correspondingly 0
Alternatively, 1 is output, but when the input signal changes as shown in FIG. 3B, spike noise as shown in the figure is mixed in the output signal.

【0004】ところが、このようなコンパレート回路を
含む回路が全体として安定して動作するためには、コン
パレート回路の出力としては、スパイクノイズのないク
リアーな信号が要求される。従来、このスパイクノイズ
を防止するために、入力の変化時に出力をディスエーブ
ル状態として使用することが行なわれていた。
However, in order for a circuit including such a comparator circuit to operate stably as a whole, a clear signal without spike noise is required as the output of the comparator circuit. Conventionally, in order to prevent this spike noise, the output is used in a disabled state when the input changes.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のコンパ
レート回路は、図3(b)のタイミングチャートに一例
を示すように、入力信号An ,Bn ,A>B,A<B,
A=Bが同時変化をおこす場合、その変化時間のずれに
より本来変化を期待していない出力Ao >Bo ,Ao
o ,Ao =Bo にスパイクノイズが発生し、コンパレ
ート回路の後段の回路が誤動作をおこす可能性がある。
The conventional comparator circuit described above has input signals A n , B n , A> B, A <B, as shown in the timing chart of FIG.
When A = B change simultaneously, outputs A o > B o , A o <which originally do not expect change due to the change time difference
Spike noise may occur at B o , A o = B o, and the circuit at the subsequent stage of the comparator circuit may malfunction.

【0006】このスパイクノイズを防ぐために、従来、
入力信号の変化時に出力をディスエーブル状態として使
用する回路が用いられているが、この回路では、入力信
号が変化するたびに別の制御信号を用いて制御を行わな
くてはならず回路構成が複雑になってしまう。
In order to prevent this spike noise, conventionally,
A circuit that uses the output as a disabled state when the input signal changes is used, but in this circuit, a different control signal must be used for control each time the input signal changes, and the circuit configuration is It gets complicated.

【0007】本発明の目的は、複数の入力信号が同時変
化してもスパイクノイズを防止できるコンパレート回路
を提供することにある。
An object of the present invention is to provide a comparator circuit capable of preventing spike noise even when a plurality of input signals change simultaneously.

【0008】[0008]

【課題を解決するための手段】本発明のコンパレート回
路は、入力される複数の入力信号のうちの任意の二つの
信号を比較するコンパレータと、前記コンパレータの出
力信号をデータ入力とするラッチ回路と、前記複数の入
力信号を入力とし、前記複数の入力信号のうちいずれか
一つが変化した場合に前記ラッチ回路のゲートを閉じる
ように動作する制御回路とからなっている。
SUMMARY OF THE INVENTION A comparator circuit according to the present invention comprises a comparator for comparing two arbitrary signals among a plurality of input signals to be input, and a latch circuit for inputting an output signal of the comparator as a data input. And a control circuit which receives the plurality of input signals and operates to close the gate of the latch circuit when any one of the plurality of input signals changes.

【0009】[0009]

【実施例】次に、本発明の好適な実施例について図面を
参照して説明する。図1は本発明の一実施例のブロック
図である。図2は本実施例の動作を説明するタイミング
チャートである。図1を参照すると、本実施例では、複
数の入力信号を有するコンパレータ1の出力を、スルー
状態または保持状態にするラッチ回路2のデータ入力と
している。また、このコンパレータ1の入力データであ
る信号Ao ,Bo ,…,An ,Bn ,A>B,A<B,
A=Bを反転遅延回路3,4,5,6,7,8,9、E
XOR回路10,11,12,13,14,15,1
6、AND回路17を通してラッチ回路2のゲート入力
端入力している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, preferred embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is a timing chart for explaining the operation of this embodiment. Referring to FIG. 1, in the present embodiment, the output of the comparator 1 having a plurality of input signals is used as the data input of the latch circuit 2 which is brought into the through state or the holding state. Further, the signals A o , B o , ..., An , B n , A> B, A <B, which are the input data of the comparator 1,
A = B is an inverting delay circuit 3, 4, 5, 6, 7, 8, 9, E
XOR circuits 10, 11, 12, 13, 14, 15, 1
6, the gate input terminal of the latch circuit 2 is input through the AND circuit 17.

【0010】以下に、本実施例の動作について、図2の
タイミングチャートを用いて説明を行う。デジタル信号
のコンパレート回路は、異なった複数の入力信号中の任
意の2入力を比較し、出力する。この場合、異なった複
数の入力信号が同時に変化すると、入力タイミングのわ
ずかなずれによって、スパイクノイズが発生することが
ある。これに対して本実施例では、入力変化前の状態に
おいてはEXOR回路10,11,12,13,14,
15,16の出力S1,S2,S3,S4,S5,S
6,S7に共に1であるので、ラッチ2回路はスルー状
態であるが、例えば図2に示すように、信号Bn が変化
した時点でEXOR回路13の出力S4が0になり、こ
れに応じてAND回路7の出力も0となる。そして、反
転遅延回路6の出力が0になるまでラッチ回路2は保持
状態となる。つまりコンパレート回路は反転遅延回路の
遅延時間分だけ出力保持状態となる。そして、次に信号
nの変化が終了した後に出力保持状態が解除される
と、ラッチ回路2はスルー状態となり、変化後の明確な
値が出力されるのでスパイクノイズは発生しない。ここ
で、出力保持状態の時間については、反転遅延回路3,
4,5,6,7,8,9により調製できるので、入力タ
イミングのずれの大きさに合わせて適切に調整すればよ
い。
The operation of this embodiment will be described below with reference to the timing chart of FIG. The digital signal comparator circuit compares and outputs arbitrary two inputs of a plurality of different input signals. In this case, if a plurality of different input signals change at the same time, spike noise may occur due to a slight shift in input timing. On the other hand, in this embodiment, in the state before the input change, the EXOR circuits 10, 11, 12, 13, 14,
Outputs 15 and 16 of S1, S2, S3, S4, S5, S
Since 6 and S7 are both 1, the latch 2 circuit is in the through state. However, as shown in FIG. 2, the output S4 of the EXOR circuit 13 becomes 0 when the signal B n changes, and accordingly As a result, the output of the AND circuit 7 becomes 0. Then, the latch circuit 2 is held until the output of the inverting delay circuit 6 becomes zero. That is, the comparator circuit is in the output holding state for the delay time of the inverting delay circuit. Then, when the output holding state is released after the change of the signal A n is finished next, the latch circuit 2 becomes the through state and the clear value after the change is output, so that spike noise does not occur. Here, regarding the time of the output holding state, the inverting delay circuit 3,
Since it can be adjusted by 4, 5, 6, 7, 8, and 9, it may be appropriately adjusted according to the magnitude of the deviation of the input timing.

【0011】尚、EXOR回路10,11,12,1
3,14,15,16をEXNOR回路に替え、AND
回路17をNOR回路に替えても、同様な効果を得る事
が出来る。
The EXOR circuits 10, 11, 12, 1
Replace 3, 14, 15, 16 with EXNOR circuit and AND
Similar effects can be obtained by replacing the circuit 17 with a NOR circuit.

【0012】[0012]

【発明の効果】以上説明したように、本発明のコンパレ
ート回路は、入力される複数の入力信号のうちの任意の
二つの信号を比較するコンパレータと、このコンパレー
タの出力信号をデータ入力とするラッチ回路と、コンパ
レート回路に入力される入力信号を入力としラッチ回路
の動作を制御する制御回路とを有し、コンパレータへの
複数の入力信号のうちいずれか一つが変化した場合に、
制御回路がラッチ回路を閉じるように構成されている。
As described above, the comparator circuit of the present invention uses a comparator for comparing any two signals among a plurality of input signals to be input and an output signal of the comparator as a data input. A latch circuit and a control circuit which controls an operation of the latch circuit by receiving an input signal input to the comparator circuit as an input, and when any one of a plurality of input signals to the comparator is changed,
The control circuit is configured to close the latch circuit.

【0013】これにより本発明によれば、コンパレート
回路に入力される複数の入力データ信号が同時に変化し
た場合に出力信号に発生しやすいスパイクノイズを、新
たな制御信号を用いることなく容易に防止することがで
きる。
Thus, according to the present invention, spike noise, which is likely to occur in the output signal when a plurality of input data signals input to the comparator circuit simultaneously change, can be easily prevented without using a new control signal. can do.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1に示す実施例の動作を説明するための各信
号のタイミングチャート図である。
FIG. 2 is a timing chart of each signal for explaining the operation of the embodiment shown in FIG.

【図3】分図(a)は、従来のコンパレート回路の構成
を示すブロック図である。分図(b)は、分図(a)に
示すコンパレート回路の動作を説明するための各信号の
タイミングチャート図である。
FIG. 3A is a block diagram showing a configuration of a conventional comparator circuit. FIG. 5B is a timing chart of each signal for explaining the operation of the comparator circuit shown in FIG.

【符号の説明】[Explanation of symbols]

1 コンパレータ 2 ラッチ回路 3,4,5,6,7,8,9 反転遅延回路 10,11,12,13,14,15,16 EXO
R回路 17 AND回路
1 Comparator 2 Latch Circuit 3, 4, 5, 6, 7, 8, 9 Inversion Delay Circuit 10, 11, 12, 13, 14, 15, 16 EXO
R circuit 17 AND circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力される複数の入力信号のうちの任意
の二つの信号を比較するコンパレータと、 前記コンパレータの出力信号をデータ入力とするラッチ
回路と、 前記複数の入力信号を入力とし、前記複数の入力信号の
うちいずれか一つが変化した場合に前記ラッチ回路のゲ
ートを閉じるように動作する制御回路とからなるコンパ
レート回路。
1. A comparator for comparing two arbitrary signals of a plurality of input signals to be input, a latch circuit for receiving an output signal of the comparator as a data input, and a plurality of input signals for inputting the plurality of input signals, A comparator circuit comprising: a control circuit that operates to close the gate of the latch circuit when any one of a plurality of input signals changes.
【請求項2】 入力される複数の入力信号のうちの任意
の二つの信号を比較するコンパレータと、 前記複数の入力信号のそれぞれの信号と前記それぞれの
信号を遅延および反転させた信号とを入力とする排他的
論理和回路と、前記排他的論理和回路の出力信号を入力
とする論理積回路とからなる制御回路と、 前記コンパレータの出力信号をデータ入力とし、前記論
理積回路の出力をゲート入力とするラッチ回路とを備え
ることを特徴とするコンパレート回路。
2. A comparator for comparing two arbitrary signals of a plurality of input signals to be input, and a signal of each of the plurality of input signals and a signal obtained by delaying and inverting the respective signals. And a control circuit comprising an AND circuit having an output signal of the exclusive OR circuit as an input, an output signal of the comparator as a data input, and an output of the AND circuit as a gate A comparator circuit comprising a latch circuit as an input.
JP8677192A 1992-04-08 1992-04-08 Comparator circuit Withdrawn JPH05291900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8677192A JPH05291900A (en) 1992-04-08 1992-04-08 Comparator circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8677192A JPH05291900A (en) 1992-04-08 1992-04-08 Comparator circuit

Publications (1)

Publication Number Publication Date
JPH05291900A true JPH05291900A (en) 1993-11-05

Family

ID=13896019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8677192A Withdrawn JPH05291900A (en) 1992-04-08 1992-04-08 Comparator circuit

Country Status (1)

Country Link
JP (1) JPH05291900A (en)

Similar Documents

Publication Publication Date Title
US5726593A (en) Method and circuit for switching between a pair of asynchronous clock signals
US6774694B1 (en) Timing vernier architecture for generating high speed, high accuracy timing edges
US4876704A (en) Logic integrated circuit for scan path system
JPH05291900A (en) Comparator circuit
US6489811B2 (en) Logic gate with symmetrical propagation delay from any input to any output and a controlled output pulse width
JP2002077306A (en) Bit stream detection circuit
JPH0495295A (en) Memory circuit
JP3260483B2 (en) External control signal input circuit
JPH04132414A (en) Prevention circuit for unstable setting
JP2917581B2 (en) Latch circuit
JPS63254827A (en) Decoding circuit
JP3168089B2 (en) Chattering elimination circuit
JPH0486116A (en) Digital signal processing circuit
JP3251748B2 (en) Semiconductor integrated circuit
JP2827517B2 (en) Phase locked loop
JPH0567949A (en) Flip-flop circuit
JP2575221B2 (en) PLL circuit
JPH05243916A (en) Flip-flop circuit provided with logic inversion error preventing function
JPH08328687A (en) Clock changeover circuit
JPH06112812A (en) Binary counter
US20060250161A1 (en) Fast linear phase detector
JPH01120129A (en) Programmable variable decoder circuit
JPH0564215A (en) Clip circuit for color difference signal
JPH0767070B2 (en) Select circuit
JPH03231541A (en) Path pattern check circuit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990608