JPH0392016A - Parity circuit - Google Patents
Parity circuitInfo
- Publication number
- JPH0392016A JPH0392016A JP22840489A JP22840489A JPH0392016A JP H0392016 A JPH0392016 A JP H0392016A JP 22840489 A JP22840489 A JP 22840489A JP 22840489 A JP22840489 A JP 22840489A JP H0392016 A JPH0392016 A JP H0392016A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- terminal
- input
- binary
- 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
Links
- 238000005070 sampling Methods 0.000 abstract description 9
- 230000007257 malfunction Effects 0.000 abstract description 3
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000000630 rising effect Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Landscapes
- Error Detection And Correction (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はパリティ回路に係わり、特にシリアル信号のバ
リティチェックを行うパリティ回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a parity circuit, and particularly to a parity circuit that performs a parity check on a serial signal.
一峡に、データ通信を行う場合の誤り検出方法としてパ
リティ検査法が広く行われている。これは、送出する一
群のデータピットに含まれる1“または“0”の数が偶
数または奇数になるように予めバリティビットを付加し
ておき、受信側ではその数をカウントして誤りの有無を
検出するものである。このため、受信側では、“l“ま
たは“0′の数をカウントしてこれが偶数または奇数で
あることを判定する手段が必要となる。Parity checking is widely used as an error detection method for data communication. In this method, a parity bit is added in advance so that the number of 1's or 0's contained in a group of data pits to be transmitted is an even or odd number, and the receiving side counts the number to check for errors. Therefore, on the receiving side, a means is required to count the number of "l" or "0" and determine whether it is an even number or an odd number.
従来、これを実現するための手段としては、次のような
パリティ回路が用いられていた。Conventionally, the following parity circuit has been used as a means to achieve this.
第3rgJは、この従来のバリティ回路を表わしたもの
である。The third rgJ represents this conventional parity circuit.
この回路には、人力端子D1クロツク端子CLKおよび
出力端子Qをもつサンプリング回路11が備えられてい
る。この出力端子Qはパイナリカウンタ12のクロック
端子CLKに接続され、さらにこのパイナリカウンタl
2の出力端子QAはDタイププリッププロップl3の入
力端子Dに接続されている。このDタイプフリップフロ
ップl3のクロック端子CLKには、バリティの判定位
置、すなわち偶数または奇数の判定を行う時点を指定す
る判定位置パルス信号21が入力されるようになってい
る。This circuit is equipped with a sampling circuit 11 having a human power terminal D1, a clock terminal CLK, and an output terminal Q. This output terminal Q is connected to the clock terminal CLK of the pinary counter 12, and this output terminal Q is connected to the clock terminal CLK of the pinary counter 12.
The output terminal QA of No. 2 is connected to the input terminal D of the D-type prep-prop l3. A determination position pulse signal 21 that designates a parity determination position, that is, a time point for determining even or odd numbers, is input to the clock terminal CLK of this D-type flip-flop l3.
第4図は、この従来のパリティ回路に次の(1)式のよ
うな信号が入力されたときの動作を表わしたものである
。ただし、ここでは説明を簡単にするため、人力信号1
5とタイミングクロック信号17の位相関係が予め適正
に調整されているものとする。FIG. 4 shows the operation when a signal such as the following equation (1) is input to this conventional parity circuit. However, in order to simplify the explanation here, human signal 1
It is assumed that the phase relationship between the timing clock signal 17 and the timing clock signal 17 has been properly adjusted in advance.
“1011010・・・ ・・・・・・(1〉第4図と
ともに、以上のような構戊の従来のパリティ回路の動作
を説明する。1011010... (1> The operation of the conventional parity circuit having the above structure will be explained with reference to FIG. 4.
人力信号15 (第4図a〉は、人力端子14からサン
プリング回路l1の入力端子Dに入力される。これは、
クロック入力端子l6からクロック端子CLKに与えら
れているタイミングクロック信号17 (同図b)の立
ち上がりのタイミングでサンプリングされ、出力端子D
からサンプリング信号18 (同図C)として出力され
る。このサンプリング信号18がパイナリカウンタ12
のクロック端子CLKに入力されると、出力端子QAよ
りバイナリカウント信号19(同図d)が出力され、D
タイプフリフブフロップ13の入力端子Dに供給される
。そして、このDタイプフリツプフロップ13のクロフ
ク端子CLKに、第4図eに示すようなタイミングの判
定位置パルス信号2lが入力されると、判定信号22
(同図f)が出力端子Qより外部出力端子23を経て出
力される。The human power signal 15 (FIG. 4a) is input from the human power terminal 14 to the input terminal D of the sampling circuit l1.
It is sampled at the rising timing of the timing clock signal 17 (b in the same figure) applied from the clock input terminal l6 to the clock terminal CLK, and the signal is output from the output terminal D.
is output as a sampling signal 18 (C in the same figure). This sampling signal 18 is sent to the pinary counter 12.
When input to clock terminal CLK of D, binary count signal 19 (d in the figure) is output from output terminal QA, and D
It is supplied to the input terminal D of the type flip-flop 13. When the judgment position pulse signal 2l having the timing shown in FIG.
(f in the figure) is output from the output terminal Q via the external output terminal 23.
この判定信号22が論理“1”のときビット“1”の個
数が奇数、論理“0”のときビット1”の個数が偶数と
予め定めておけば、この例では判定信号が論理“1”で
あることから、ビット“1”の個数は奇数であるとの判
定が行われる。If it is predetermined in advance that when this judgment signal 22 is a logic "1", the number of bits "1" is an odd number, and when it is a logic "0", the number of bits "1" is an even number, then in this example, the judgment signal is a logic "1". Therefore, it is determined that the number of bits "1" is an odd number.
このような従来のパリティ回路では、上述したように、
入力信号15とタイミングクロック信号16を予め適正
な位相関係となるように調整した上でサンプリングする
必要がある。これは、単に論理ゲートでサンプリングを
行うと入力信号l5の変化点とタイミングクロック信号
17の変化点でノイズが発生し、後段のパイナリカウン
タ12が誤動作し、正常なバリティ判定を行うことがで
きなくなるからである。そこで、これを防止する対策と
して、入力信号l5とタイミングクロック信号17の位
相関係、遅延量を定量的に把握するために、入力条件、
動作素子規格、および温度・環境変化などを考慮したサ
ンプリング回路を用いてバリティ回路を構戊する必要が
ある。このため、従来のバリティ回路では回路規模が大
きくなるとともに、設計・製作に要する時間も増大する
という欠点があった。In such a conventional parity circuit, as mentioned above,
It is necessary to adjust the input signal 15 and the timing clock signal 16 in advance so that they have an appropriate phase relationship before sampling. This is because if sampling is simply performed using a logic gate, noise will occur at the changing points of the input signal l5 and the timing clock signal 17, causing the pinary counter 12 in the subsequent stage to malfunction, making it impossible to perform a normal parity judgment. Because it will disappear. Therefore, as a measure to prevent this, input conditions,
It is necessary to construct a parity circuit using a sampling circuit that takes into account operating element standards and temperature and environmental changes. For this reason, conventional parity circuits have disadvantages in that the circuit scale becomes large and the time required for designing and manufacturing increases.
そこで本発明の目的は、簡単な回路構戊で安定したパリ
ティ検査を行うことができるパリティ回路を提供するこ
とにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a parity circuit that can perform a stable parity check with a simple circuit configuration.
本発明では、(i)入力された二値信号が既定の論理値
となっているときにのみ、これを所定の周期のクロック
信号に同期して二値カウントする二億カウント手段と、
( ii >この二値カウント手段から出力されるカウ
ント値を基に、ある時点までに入力された既定の論理値
をもつビットの個数の偶数・奇数に対応した信号を出力
する対応信号出力手段とをバリティ回路に具備させる。In the present invention, (i) 200 million counting means that performs binary counting in synchronization with a clock signal of a predetermined cycle only when the input binary signal has a predetermined logical value;
(ii> Corresponding signal output means for outputting a signal corresponding to an even number or an odd number of bits having a predetermined logical value input up to a certain point based on the count value output from the binary counting means; is provided in the parity circuit.
そして、本発明では、この対応信号出力手段より出力さ
れる偶数・奇数に対応した信号の論理値により、その時
点までの既定論理値のビットの個数が偶数か奇数かを判
定することとする。In the present invention, it is determined whether the number of bits of the predetermined logical value up to that point is even or odd, based on the logical value of the signal corresponding to even and odd numbers output from the corresponding signal output means.
以下、実施例につき本発明を詳細に説明する。 Hereinafter, the present invention will be explained in detail with reference to Examples.
第1図は本発明の一実施例におけるバリティ回路を表わ
したものである。FIG. 1 shows a parity circuit in one embodiment of the present invention.
この回路には、カウントイネーブル端子ENL,クロッ
ク端子CLK,および出力端子QAをもつ同期形パイナ
リカウンタ31が備えられ、この出力端子QAはDタイ
プフリップフロップ32の人力端子Dに接続されている
。カウントイネーブル端子ENLには入力端子33から
人力信号34が人力され、また、クロック端子CLKに
はクロック入力端子35から所定の周期のタイミングク
ロック信号36が入力されるようになっている。This circuit is equipped with a synchronous pinary counter 31 having a count enable terminal ENL, a clock terminal CLK, and an output terminal QA, and the output terminal QA is connected to a human power terminal D of a D-type flip-flop 32. A human input signal 34 is input to the count enable terminal ENL from an input terminal 33, and a timing clock signal 36 of a predetermined period is input from a clock input terminal 35 to the clock terminal CLK.
Dタイプフリップフロップ32には、入力端子Dの他に
クロック端子CLK,および2つの出力端子QS(:i
が備えられ、このうちクロック端子CLKは判定位置パ
ルス入力端子38に、出力端子Qは外部出力端子37に
接続されている。In addition to the input terminal D, the D-type flip-flop 32 has a clock terminal CLK and two output terminals QS (:i
Of these, the clock terminal CLK is connected to the determination position pulse input terminal 38, and the output terminal Q is connected to the external output terminal 37.
第2図とともに、以上のような構戊のパリティ回路の動
作を説明する。The operation of the parity circuit having the above structure will be explained with reference to FIG.
一例として、次に再掲する(1)式のような人力信号3
4について説明する。As an example, a human signal 3 such as the equation (1) reproduced below
4 will be explained.
“1011010・・・”・・・・・・(1)この同期
形パイナリカウンタ31は、カウントイネーブル端子E
NLに人力される入力信号34(第2図a)が論理“1
”の状態のときにのみ、タイミングクロック信号36
(同図b)の立ち上がりのタイミングでバイナリカウン
トを行うようになっている。そして、入力信号34が論
理“O゜のときはディスエープル状態となり、バイナリ
カウントされない。従って、この同期形パイナリカウン
タ31の出力端子QAからは、第2図Cに示すようなバ
イナリカウント信号4lが出力され、Dタイププリップ
フロップ32の人力端子Dに入力される。ここでは、判
定位置までのビット数を5ビットとすると、クロック端
子CLKには第2図dに示すような判定位置バルス39
を入力すればよい。そして、この判定位置バルス39の
立ち上がりのエッジ45によりバイナリカウント信号4
lの論理“l”が捉えられ、出力端子Qから判定信号4
2 (同図e)として出力される。“1011010...” (1) This synchronous pinary counter 31 has a count enable terminal E.
The input signal 34 (FIG. 2a) inputted to NL is logic "1".
”, the timing clock signal 36
Binary counting is performed at the rising timing of (b) in the figure. When the input signal 34 is at logic "O°", it is in a disabled state and no binary counting is performed.Therefore, from the output terminal QA of this synchronous binary counter 31, a binary count signal 4l as shown in FIG. 2C is output. It is outputted and inputted to the human input terminal D of the D type flip-flop 32. Here, assuming that the number of bits up to the judgment position is 5 bits, the judgment position pulse 39 as shown in FIG.
All you have to do is enter. Then, by the rising edge 45 of this judgment position pulse 39, the binary count signal 4
The logic “l” of l is captured and the judgment signal 4 is output from the output terminal Q.
2 (e).
この判定信号42が論理“1”のときビット“1”の個
数が奇数、論理“0”のときビット“1”の個数が偶数
と予め定めておけば、この場合判定信号は論理“1”で
あることから、ビット“1″の個数は奇数であると判定
することができる。If it is predetermined in advance that when this judgment signal 42 is a logic "1", the number of bits "1" is an odd number, and when it is a logic "0", the number of bits "1" is an even number, then in this case, the judgment signal is a logic "1". Therefore, it can be determined that the number of bits "1" is an odd number.
この判定位置パルス39の立ち上がり位置を入力信号3
4の第1ビットから第7ビットまで変化させてみると、
その判定位置までに含まれるビット“1”の個数の偶数
・奇数に応じて判定信号42が“O”または“l”とな
ることがわかる。The rising position of this judgment position pulse 39 is input to the input signal 3.
When changing from the 1st bit to the 7th bit of 4,
It can be seen that the determination signal 42 becomes "O" or "1" depending on whether the number of bits "1" included up to the determination position is even or odd.
なお、判定結果の論理はDタイプフリップフロップ32
の他方の出力端子dからの出力信号を判定することによ
り反転することができる。また、人力信号34のビット
“0”の個数に対して偶数・奇数の判定を行う場合には
、この入力信号34をインバータなとで反転してから同
期形パイナリカウンタ31に入力すればよい。Note that the logic of the judgment result is based on the D type flip-flop 32.
can be inverted by determining the output signal from the other output terminal d. Furthermore, when determining whether the number of bits "0" in the human input signal 34 is even or odd, the input signal 34 may be inverted using an inverter or the like before being input to the synchronous pinary counter 31. .
以上説明したように本発明によれば、従来用いられてい
たサンプリング回路を削除することにより回路構或を簡
略化することができるため、製作に要する時間・コスト
を低減することができるという効果がある。また、本発
明では人力信号が既定論理値であるときにのみクロック
信号に同期して二値カウントすることとしているため、
誤動作が少なく信頼性が高いという効果もある。As explained above, according to the present invention, the circuit structure can be simplified by eliminating the conventionally used sampling circuit, so that the time and cost required for manufacturing can be reduced. be. Furthermore, in the present invention, binary counting is performed in synchronization with the clock signal only when the human input signal has a predetermined logical value.
Another advantage is that there are fewer malfunctions and higher reliability.
第1図および第2図は本発明の一実施例を説明するため
のもので、このうち第1図はバリティ回路を示すブロッ
ク図、第2図は第1図のパリティ回路の動作を説明する
ためのタイミング図、第3図は従来のバリティ回路を示
すブロック図、第4図は第3図の従来のバリティ回路の
動作を説明するためのタイミング図である。
3l・・・・・・同期形パイナリカウンタ、32・・・
・・・Dタイプフリップフロップ、33・・・・・・入
力端子、34・・・・・・人力信号、35・・・・・・
クロツク人力端子、
36・・・・・・タイミングクロック信号、37・・・
・・・外部出力端子、
38・・・・・・判定位置パルス入力端子、39・・・
・・・判定位置パルス信号、41・・・・・・バイナリ
カウント信号、42・・・・・・判定信号。1 and 2 are for explaining one embodiment of the present invention, of which FIG. 1 is a block diagram showing a parity circuit, and FIG. 2 is a block diagram showing the operation of the parity circuit in FIG. 1. FIG. 3 is a block diagram showing a conventional parity circuit, and FIG. 4 is a timing diagram for explaining the operation of the conventional parity circuit shown in FIG. 3l...Synchronous pinary counter, 32...
...D type flip-flop, 33...Input terminal, 34...Human input signal, 35...
Clock manual terminal, 36... Timing clock signal, 37...
...External output terminal, 38...Judgment position pulse input terminal, 39...
. . . Judgment position pulse signal, 41 . . . Binary count signal, 42 . . . Judgment signal.
Claims (1)
のみ、これを所定の周期のクロック信号に同期して二値
カウントする二値カウント手段と、この二値カウント手
段から出力されるカウント値を基に、ある時点までに入
力された前記既定の論理値をもつビットの個数の偶数・
奇数に対応した信号を出力する対応信号出力手段 とを具備することを特徴とするパリテイ回路。[Claims] Binary counting means that performs binary counting in synchronization with a clock signal of a predetermined cycle only when the input binary signal has a predetermined logical value; Based on the count value output from the counting means, calculate the even number of bits having the predetermined logical value that have been input up to a certain point.
A parity circuit comprising a corresponding signal output means for outputting a signal corresponding to an odd number.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22840489A JPH0392016A (en) | 1989-09-05 | 1989-09-05 | Parity circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22840489A JPH0392016A (en) | 1989-09-05 | 1989-09-05 | Parity circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0392016A true JPH0392016A (en) | 1991-04-17 |
Family
ID=16875937
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22840489A Pending JPH0392016A (en) | 1989-09-05 | 1989-09-05 | Parity circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0392016A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008160020A (en) * | 2006-12-26 | 2008-07-10 | Toyota Motor Corp | Reactor and reactor |
| US7679483B2 (en) | 2008-02-18 | 2010-03-16 | Toyota Jidosha Kabushiki Kaisha | Core for reactor |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6320932A (en) * | 1986-07-15 | 1988-01-28 | Fujitsu Ltd | Parity counter |
| JPS63229922A (en) * | 1987-03-19 | 1988-09-26 | Nec Corp | Parity detector |
| JPH02164134A (en) * | 1988-12-19 | 1990-06-25 | Fujitsu Ltd | Parity counting circuit |
| JPH02260044A (en) * | 1989-03-31 | 1990-10-22 | Anritsu Corp | Parity arithmetic circuit |
-
1989
- 1989-09-05 JP JP22840489A patent/JPH0392016A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6320932A (en) * | 1986-07-15 | 1988-01-28 | Fujitsu Ltd | Parity counter |
| JPS63229922A (en) * | 1987-03-19 | 1988-09-26 | Nec Corp | Parity detector |
| JPH02164134A (en) * | 1988-12-19 | 1990-06-25 | Fujitsu Ltd | Parity counting circuit |
| JPH02260044A (en) * | 1989-03-31 | 1990-10-22 | Anritsu Corp | Parity arithmetic circuit |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008160020A (en) * | 2006-12-26 | 2008-07-10 | Toyota Motor Corp | Reactor and reactor |
| US7679483B2 (en) | 2008-02-18 | 2010-03-16 | Toyota Jidosha Kabushiki Kaisha | Core for reactor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101636662B (en) | Method for determining asymmetrical signal lag of a signal path inside an integrated circuit | |
| US6795514B2 (en) | Integrated data clock extractor | |
| JP3433426B2 (en) | Method and apparatus for decoding Manchester encoded data | |
| JP3080341B2 (en) | Data match detection circuit | |
| EP0202085A2 (en) | Self-checking, dual railed, leading edge synchronizer | |
| JPH0392016A (en) | Parity circuit | |
| US4669098A (en) | Increased resolution counting circuit | |
| EP1946475A1 (en) | Data interface and method of seeking synchronization | |
| JPH07229979A (en) | Multi-phase clock time measurement circuit | |
| JP3506546B2 (en) | Data valid period signal generation circuit in serial data communication | |
| KR100373333B1 (en) | Error detection apparatus of ATM cell synchronous signal | |
| JP2000353939A (en) | Clock signal synchronous flip flop circuit | |
| JP2810713B2 (en) | Timing generator | |
| JPH0431211B2 (en) | ||
| JPS63312754A (en) | Error generation circuit | |
| JPH0481896B2 (en) | ||
| JPH05119121A (en) | Waveform generating apparatus | |
| JP2864779B2 (en) | Pulse input circuit | |
| JPH06213968A (en) | Waveform generating device | |
| JPH0642277Y2 (en) | Information input device | |
| JPH0744417A (en) | Test circuit for microcomputer | |
| JP2591304B2 (en) | Memory monitoring circuit | |
| JP2591210B2 (en) | Signal detection circuit | |
| JP2620170B2 (en) | Signal loss detection circuit | |
| JPH01194709A (en) | Phase discrimination circuit |