JPH0540645A - Parity counter circuit - Google Patents
Parity counter circuitInfo
- Publication number
- JPH0540645A JPH0540645A JP3193326A JP19332691A JPH0540645A JP H0540645 A JPH0540645 A JP H0540645A JP 3193326 A JP3193326 A JP 3193326A JP 19332691 A JP19332691 A JP 19332691A JP H0540645 A JPH0540645 A JP H0540645A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- circuit
- parity
- logic
- counter
- 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
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Detection And Correction Of Errors (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、ディジタル通信に使用
されるパリティ計数回路に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parity counting circuit used for digital communication.
【0002】[0002]
【従来の技術】従来のパリティ計数回路の一例を図3に
示す。このパリティ計数回路は計数器として機能するD
タイプのフリップフロップ11と、比較器として機能す
るエクスクルーシブオア回路3と、初期設定信号変換回
路12とにより構成されている。オア回路3の一方の入
力端子にはデータ信号107(図4参照)が入力されて
おり、オア回路3はデータ信号107と、フリップフロ
ップ11の反転出力信号104とを比較し、それらが一
致した場合には論理“0”の信号を出力し、一致しない
場合には論理“1”の信号を出力する。そして、フリッ
プフロップ11はこのオア回路の出力信号102をクロ
ック101の立上りに同期して取り込む。その結果、デ
ータ信号107に含まれる値が論理“1”または論理
“0”である信号の数、すなわちパリティ計数結果が、
信号103としてフリップフロップ11から出力され
る。なお、クロック101はデータ信号107が同期し
ているクロックであり、データ信号107の値はこのク
ロックの立下りに同期して変化する。2. Description of the Related Art An example of a conventional parity counting circuit is shown in FIG. This parity counting circuit functions as a counter D
It is composed of a flip-flop 11 of a type, an exclusive OR circuit 3 functioning as a comparator, and an initial setting signal conversion circuit 12. The data signal 107 (see FIG. 4) is input to one input terminal of the OR circuit 3, and the OR circuit 3 compares the data signal 107 and the inverted output signal 104 of the flip-flop 11, and they are coincident with each other. In that case, a logic "0" signal is output, and if they do not match, a logic "1" signal is output. Then, the flip-flop 11 takes in the output signal 102 of the OR circuit in synchronization with the rising edge of the clock 101. As a result, the number of signals whose value included in the data signal 107 is logic “1” or logic “0”, that is, the parity count result is
The signal 103 is output from the flip-flop 11. The clock 101 is a clock with which the data signal 107 is synchronized, and the value of the data signal 107 changes in synchronization with the falling edge of this clock.
【0003】このようなパリティ計数を所定の信号数
(すなわちビット数)ごとに行うため、所定数のクロッ
クごとに論理“0”となる初期設定信号105が入力さ
れる。この信号により初期設定信号変換回路12は、初
期設定信号201を生成して出力し、フリップフロップ
11をリセットする。すなわち、初期設定信号105が
論理“0”となるごとにフリップフロップ11はリセッ
トされ、パリティ計数回路は新たにパリティ計数を開始
する。Since such parity counting is performed for each predetermined number of signals (that is, the number of bits), the initial setting signal 105 which becomes logical "0" is input every predetermined number of clocks. The initial setting signal conversion circuit 12 generates and outputs the initial setting signal 201 by this signal, and resets the flip-flop 11. That is, the flip-flop 11 is reset every time the initial setting signal 105 becomes logic "0", and the parity counting circuit newly starts the parity counting.
【0004】[0004]
【発明が解決しようとする課題】しかし、このような従
来のパリティ計数回路では、計数区間が連続している場
合、初期設定信号105がローレベルになると、次のク
ロック101の立上りまでにフリップフロップ11をリ
セットしなければならないため、初期設定信号変換回路
12は図4に示すように、極めて限定されたタイミング
で初期設定信号201として幅の狭いパルスを生成し、
フリップフロップ11に与えなければならない。その結
果、初期設定信号変換回路12は、複雑な制御を行わな
ければならず、構成が複雑で大規模なものとなってい
る。However, in such a conventional parity counting circuit, when the initial setting signal 105 becomes low level in the case where the counting period is continuous, the flip-flop is activated by the next rising edge of the clock 101. Since 11 must be reset, the initial setting signal conversion circuit 12 generates a narrow pulse as the initial setting signal 201 at a very limited timing, as shown in FIG.
It must be given to the flip-flop 11. As a result, the initial setting signal conversion circuit 12 has to perform complicated control, and has a complicated structure and a large scale.
【0005】本発明の目的は、このような欠点を除去
し、回路構成が簡素で、規模の小さいパリティ計数回路
を提供することにある。An object of the present invention is to eliminate such drawbacks and provide a parity counting circuit having a simple circuit configuration and a small scale.
【0006】[0006]
【課題を解決するための手段】本発明は、第1のデータ
信号列に含まれる値が論理“1”の信号または値が論理
“0”の信号の数を、一定の期間ごとに計数するパリテ
ィ計数回路において、第2のデータ信号列と、そのデー
タ信号列が同期しているクロックとを入力とし、前記第
2のデータ信号列に含まれる値が論理“1”または
“0”である信号の数を計数し、計数結果を表す信号
と、その反転信号とを出力する計数器と、所定の論理値
の信号または前記計数器が出力する前記反転信号のいず
れかを初期設定信号にもとづいて選択し、出力する選択
器と、この選択器の出力信号と、前記第1のデータ信号
列とを比較し、比較結果を表す信号を前記第2のデータ
信号列として前記計数器に出力する比較器とを備えたこ
とを特徴とする。According to the present invention, the number of signals having a value of logic "1" or signals having a value of logic "0" contained in the first data signal sequence is counted at regular intervals. In the parity counting circuit, a second data signal sequence and a clock with which the data signal sequence is synchronized are input, and the value contained in the second data signal sequence is logical "1" or "0". A counter that counts the number of signals and outputs a signal indicating the counting result and an inverted signal thereof, and a signal having a predetermined logical value or the inverted signal output by the counter is based on the initial setting signal. A selector that selects and outputs the selected signal and the output signal of the selector and the first data signal sequence, and outputs a signal representing the comparison result to the counter as the second data signal sequence. And a comparator.
【0007】[0007]
【実施例】次に本発明の実施例について図面を参照して
説明する。図1に本発明によるパリティ計数回路の一例
を示す。このパリティ計数回路は計数器として機能する
Dタイプのフリップフロップ1と、比較器として機能す
るエクスクルーシブオア回路3と、選択器として機能す
るトライステートのバッファ2および抵抗4とにより構
成されている。そして、データ信号107(図2参照)
はオア回路3の一方の入力端子に入力され、オア回路3
の出力端子はフリップフロップ1のデータ入力端子Dに
接続されている。フリップフロップ1のクロック入力端
子Cにはデータ信号107が同期しているクロック10
1が入力され、フリップフロップ1の非反転出力端子Q
からパリティ計数結果を表す信号103が出力される。
また、反転出力端子Q(バー)はバッファ2の入力端子
に接続されている。バッファ2の出力端子はオア回路3
のもう一方の入力端子に接続され、さらにバッファ2の
出力端子とグランドとの間には抵抗4が接続されてい
る。そして、バッファ2の出力制御端子には初期設定信
号105が入力されている。Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 shows an example of a parity counting circuit according to the present invention. This parity counting circuit includes a D-type flip-flop 1 that functions as a counter, an exclusive OR circuit 3 that functions as a comparator, a tristate buffer 2 and a resistor 4 that function as a selector. Then, the data signal 107 (see FIG. 2)
Is input to one input terminal of the OR circuit 3, and the OR circuit 3
The output terminal of is connected to the data input terminal D of the flip-flop 1. The clock input terminal C of the flip-flop 1 has a clock 10 to which the data signal 107 is synchronized.
1 is input and the non-inverting output terminal Q of the flip-flop 1
Outputs a signal 103 representing the parity counting result.
The inverting output terminal Q (bar) is connected to the input terminal of the buffer 2. The output terminal of the buffer 2 is an OR circuit 3
Is connected to the other input terminal, and a resistor 4 is connected between the output terminal of the buffer 2 and the ground. The initial setting signal 105 is input to the output control terminal of the buffer 2.
【0008】次に動作を説明する。初期設定信号105
が論理“1”の状態では、バッファ2の出力はアクティ
ブとなっており、フリップフロップ1の反転出力端子か
らの信号104がバッファ2を通じてエクスクルーシブ
オア回路3の一方の入力端子に供給される。従って、こ
の場合には回路構成は図3に示した従来のパリティ計数
回路と等価となり、従来どうりの動作によりパリティ計
数を行う。Next, the operation will be described. Initial setting signal 105
, The output of the buffer 2 is active, and the signal 104 from the inverting output terminal of the flip-flop 1 is supplied to one input terminal of the exclusive OR circuit 3 through the buffer 2. Therefore, in this case, the circuit configuration is equivalent to that of the conventional parity counting circuit shown in FIG. 3, and the parity counting is performed by the conventional operation.
【0009】次に、初期設定信号105が図2に示すよ
うにクロック101の1周期の間、論理“0”となる
と、バッファ2の出力はハイインピーダンスとなる。そ
の結果、抵抗4の作用によってエクスクルーシブオア回
路3の一方の入力端子に供給される信号106は必ず論
理“0”となる。従って、この場合にはオア回路3の出
力信号102はデータ信号107だけによって決まり、
一つ前のパリティ計数区間における計数結果の影響は受
けない。すなわち、初期設定信号105が1クロック周
期の間、論理“0”となると、計数器1の初期設定が行
われ、同時に新たなパリティ計数が開始される。Next, when the initial setting signal 105 becomes logic "0" for one cycle of the clock 101 as shown in FIG. 2, the output of the buffer 2 becomes high impedance. As a result, the signal 106 supplied to one input terminal of the exclusive OR circuit 3 by the action of the resistor 4 is always logic "0". Therefore, in this case, the output signal 102 of the OR circuit 3 is determined only by the data signal 107,
It is not affected by the counting result in the preceding parity counting section. That is, when the initial setting signal 105 becomes a logic "0" for one clock cycle, the counter 1 is initialized and a new parity counting is started at the same time.
【0010】このように本実施例のパリティ計数回路で
は初期設定信号変換回路12は不要であり、簡素な回路
構成で初期設定が行えるようになっている。なお、初期
設定信号105は、クロック101の所定数ごとにクロ
ック101の1周期の間、論理“0”となる信号である
から、簡単な回路で容易に生成することができる。As described above, the parity counting circuit of this embodiment does not require the initial setting signal conversion circuit 12, and the initial setting can be performed with a simple circuit configuration. Since the initial setting signal 105 is a signal that becomes a logical “0” for one cycle of the clock 101 for each predetermined number of clocks 101, it can be easily generated by a simple circuit.
【0011】[0011]
【発明の効果】以上説明したように本発明によるパリテ
ィ計数回路では、選択器が計数器の反転出力または所定
の論理値の信号のいずれかを初期設定信号にもとづいて
選択し、比較器に出力するようになっているので、初期
設定信号が入力されたとき、比較器による比較結果がそ
れまでのパリティ計数結果に依存しないようにでき、そ
の結果、初期設定と同時に新たなパリティ計数を開始す
ることが可能となる。従って本発明のパリティ計数回路
では、計数区間が連続している場合でも、従来のような
初期設定変換回路は不要であり、回路は簡素で、小規模
となる。As described above, in the parity counting circuit according to the present invention, the selector selects either the inverted output of the counter or the signal of the predetermined logical value based on the initial setting signal and outputs it to the comparator. Therefore, when the initial setting signal is input, the comparison result by the comparator can be made independent of the previous parity counting result, and as a result, a new parity counting is started at the same time as the initial setting. It becomes possible. Therefore, in the parity counting circuit of the present invention, even when the counting section is continuous, the conventional initialization conversion circuit is not necessary, and the circuit is simple and small.
【図1】本発明によるパリティ計数回路の一例を示すブ
ロック図である。FIG. 1 is a block diagram showing an example of a parity counting circuit according to the present invention.
【図2】図1のパリティ計数回路の各部の波形を示す波
形図である。FIG. 2 is a waveform diagram showing waveforms of respective parts of the parity counting circuit of FIG.
【図3】従来のパリティ計数回路の一例を示すブロック
図である。FIG. 3 is a block diagram showing an example of a conventional parity counting circuit.
【図4】図3のパリティ計数回路の各部の波形を示す波
形図である。FIG. 4 is a waveform diagram showing waveforms of respective parts of the parity counting circuit of FIG.
1 Dタイプフリップフロップ 2 トライステートバッファ 3 エクスクルーシブオア回路 4 抵抗 1 D-type flip-flop 2 Tri-state buffer 3 Exclusive OR circuit 4 Resistor
Claims (1)
“1”の信号または値が論理“0”の信号の数を、一定
の期間ごとに計数するパリティ計数回路において、 第2のデータ信号列と、そのデータ信号列が同期してい
るクロックとを入力とし、前記第2のデータ信号列に含
まれる値が論理“1”または“0”である信号の数を計
数し、計数結果を表す信号と、その反転信号とを出力す
る計数器と、 所定の論理値の信号または前記計数器が出力する前記反
転信号のいずれかを初期設定信号にもとづいて選択し、
出力する選択器と、 この選択器の出力信号と、前記第1のデータ信号列とを
比較し、比較結果を表す信号を前記第2のデータ信号列
として前記計数器に出力する比較器とを備えたことを特
徴とするパリティ計数回路。1. A parity counting circuit for counting the number of signals having a logic "1" or a signal having a logic "0" included in a first data signal sequence at regular intervals, A data signal sequence and a clock with which the data signal sequence is synchronized are input, and the number of signals having a value of logic "1" or "0" contained in the second data signal sequence is counted and counted. A counter that outputs a signal indicating the result and its inverted signal, and select either a signal of a predetermined logical value or the inverted signal output by the counter based on the initial setting signal,
A selector for outputting and a comparator for comparing the output signal of the selector with the first data signal sequence and outputting a signal representing the comparison result as the second data signal sequence to the counter. A parity counting circuit characterized by being provided.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3193326A JPH0540645A (en) | 1991-08-02 | 1991-08-02 | Parity counter circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3193326A JPH0540645A (en) | 1991-08-02 | 1991-08-02 | Parity counter circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0540645A true JPH0540645A (en) | 1993-02-19 |
Family
ID=16306045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3193326A Pending JPH0540645A (en) | 1991-08-02 | 1991-08-02 | Parity counter circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0540645A (en) |
-
1991
- 1991-08-02 JP JP3193326A patent/JPH0540645A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6075392A (en) | Circuit for the glitch-free changeover of digital signals | |
US4786823A (en) | Noise pulse suppressing circuit in digital system | |
JP2641276B2 (en) | Two-stage synchronizer | |
JPH0540645A (en) | Parity counter circuit | |
US6091794A (en) | Fast synchronous counter | |
JPS62276925A (en) | Digital counter circuit | |
JPH11509658A (en) | Extended chip select reset device and method | |
JPS5895447A (en) | Clock regenerating circuit | |
JPH06232699A (en) | Pulse generator | |
JP3125651B2 (en) | Rate generator | |
US4164712A (en) | Continuous counting system | |
JP2973613B2 (en) | Programmable counter | |
JP3513399B2 (en) | Variable timing device using serial data | |
JP2814978B2 (en) | Frame synchronization circuit | |
KR200155054Y1 (en) | Counter circuit | |
JPS61243527A (en) | Bit buffer circuit | |
KR0139430B1 (en) | Sinusoidal wave generating circuit using the d flip flop | |
JP2606458Y2 (en) | Signal level monitoring circuit | |
JP2591210B2 (en) | Signal detection circuit | |
US6668298B1 (en) | Shifting an input signal from a high-speed domain to a lower-speed domain | |
JPH0537573A (en) | Data interruption detection circuit | |
KR930005653B1 (en) | Clock variable circuit | |
JPH07106955A (en) | Ternary counter | |
JPH05175829A (en) | Method and device for data input/output | |
JPH05113467A (en) | Edge generation circuit |