JPH01232441A - Parity counting circuit - Google Patents

Parity counting circuit

Info

Publication number
JPH01232441A
JPH01232441A JP63058877A JP5887788A JPH01232441A JP H01232441 A JPH01232441 A JP H01232441A JP 63058877 A JP63058877 A JP 63058877A JP 5887788 A JP5887788 A JP 5887788A JP H01232441 A JPH01232441 A JP H01232441A
Authority
JP
Japan
Prior art keywords
data
flip
flop
parity
output
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
JP63058877A
Other languages
Japanese (ja)
Inventor
Teruo Kimura
輝夫 木村
Yoshitoshi Takahashi
高橋 喜寿
Takemi Endo
遠藤 竹美
Satoshi Henmi
辺見 智
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63058877A priority Critical patent/JPH01232441A/en
Publication of JPH01232441A publication Critical patent/JPH01232441A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To securely count the parity of even fast data by resetting the output of a JK flip-flop at a frame period and using the output of the JK flip-flop right before resetting as a parity counting output. CONSTITUTION:Two sequences of data D1 and D2 which are inputted to an exclusive OR circuit 11 are obtained by dividing one sequence of original data into two sequences by series/parallel conversion, so the data speed is halved. Those sequences of data are inputted to an exclusive OR circuit 11 and ORed. The OR result data is in one sequence and inputted to the JK flip-flop 12, and its speed is 1/2. Consequently, the margin of reset pulses inputted to the JK flip-flop 12 is increased double and respective frames can be reset with the margin, so that the parity of even fast data can securely be counted.

Description

【発明の詳細な説明】 [概要1 高速データのパリデイを計数するパリティ訓数回路に関
し、 高速データの場合でもパリティ計数を確実に行うことを
目的とし、 2系ダノのデータの排仙的論理和をとる排他的論理和回
路と、該排他的論理和回路の出力を受けるJKフリップ
フロップとを具備し、フレーム周期で前記J Kフリッ
プ70ツブの出力をリレン1−シ、リセット直前のJK
フリップフロップの出力をパリティ計数出力とするよう
に構成する。
[Detailed Description of the Invention] [Summary 1] Regarding a parity counting circuit that counts parity days of high-speed data, the purpose is to perform parity counting reliably even in the case of high-speed data, and to perform an exclusive OR of data of two systems. and a JK flip-flop that receives the output of the exclusive OR circuit, and resets the output of the JK flip 70 at a frame period, and resets the output of the JK flip-flop immediately before reset.
The output of the flip-flop is configured to be a parity count output.

[産業上の利用分野] 本発明は、高速データのパリティを計数するパリティ計
数回路に関する。
[Industrial Application Field] The present invention relates to a parity counting circuit that counts the parity of high-speed data.

データ伝送の分野では、データを高速に伝送Jるに際し
、フレーム毎にパリティを付加し、受信側でパリティチ
エックを行うことにより、正しくデータが伝送されたか
どうかを確認するようになっている。パリティチエック
には、周知のとおり偶数パリティと奇数パリティがあり
、予め送信側と受信側でどちらを用いるかを約束してJ
3ぎ、受信側で伝送されてきたフレーム毎にパリティを
チエツクすることによりデータ伝送が正しく行われたか
どうかを判断するようになっている。このようなパリテ
ィヂ1ツクは、受イn側でデータの°゛1″の数をフレ
ーム毎にカウントし、それが偶数個あるか奇数個あるか
により決定する。これをパリティ計数という。
In the field of data transmission, when transmitting data at high speed, parity is added to each frame and a parity check is performed on the receiving side to confirm whether the data has been transmitted correctly. As is well known, parity checks include even parity and odd parity, and the sending and receiving sides agree in advance which one to use.
Third, by checking the parity of each transmitted frame on the receiving side, it is determined whether the data transmission was performed correctly. Such a parity count is determined by counting the number of "1"s in the data for each frame on the receiving side, and determining whether there is an even number or an odd number. This is called parity counting.

[従来の技術] 第5図は、従来のパリティ11数回路の構成概念図であ
る。図において、1は高速データをクロック入力CKに
、リセットパルスをリレット人力Rに受ける第1のフリ
ップフロップで、そのΦ出力とD入力とが接続され1/
2分周器を構成している。2は第1の7リツプフロツブ
1のQ出力をD入力にフレームと計数結果を同期させる
ためのフレームパルスをクロック入力CKに受ける第2
のフリップ70ツブである。
[Prior Art] FIG. 5 is a conceptual diagram of a conventional parity 11 circuit. In the figure, 1 is a first flip-flop that receives high-speed data at clock input CK and reset pulse at ret R, and its Φ output and D input are connected to 1/
It constitutes a 2 frequency divider. 2 receives the Q output of the first 7-lip flop 1 at its D input, and receives a frame pulse at its clock input CK for synchronizing the frame and the counting results.
It is a flip 70 tube.

第6図は第5図の動作を示すタイミングチャートである
。図において、(イ)はフレーム間隔を示す記号、(ロ
)はデータ、(ハ)、(ニ)は、リセットパルスである
。このリセットパルスは、フレーム毎にパリティチエツ
クを行うため、フレーム毎に計数結果をリセットするた
めのパルスである。このリセットパルスの幅は、通常フ
レームピッi−Fの半幅以下に設定される。(ロ)に示
すデータで、l)nはその前のフレームの最終データ、
Fはフレームの最初を示すフレームピッi・、D1以降
はデータ部である。
FIG. 6 is a timing chart showing the operation of FIG. In the figure, (a) is a symbol indicating the frame interval, (b) is data, and (c) and (d) are reset pulses. This reset pulse is a pulse for resetting the counting result for each frame because a parity check is performed for each frame. The width of this reset pulse is normally set to less than half the width of the frame pitch i-F. In the data shown in (b), l) n is the final data of the previous frame,
F is the frame number i which indicates the beginning of the frame, and D1 and subsequent parts are the data portions.

このような構成でフレーム毎にパリティ開数を正しく行
うためには、〈ハ)に示すようにリセットパルスがフレ
ームビットFより必ず前に来なければならない。つまり
、常に(ハ)に示すようなリセットパルスが与えられれ
ば、第2のフリップフロップ2からは、正確なバリ゛テ
ィチエツク結果が出力される。なJ3、フリップフロッ
プ2からは、例えば偶数パリティの場合にl l IT
、奇数パリティの場合に0”の形で計数結果が出力され
るようになっている。
In order to correctly calculate the parity numerical value for each frame in such a configuration, the reset pulse must always come before the frame bit F, as shown in <C). In other words, if a reset pulse as shown in (c) is always applied, the second flip-flop 2 will output an accurate variation check result. J3, from flip-flop 2, for example, in the case of even parity, l l IT
, in the case of odd parity, the counting result is output in the form of 0''.

[発明が解決しようとする課題] ところが、実際には回路中のゲート遅延による遅れ、或
いは配線パターンに存在する浮遊容量による波形のなま
り等により、リセットパルスの到着が遅れて、第6図(
ニ)に示ずように、リセットパルスの侵端がフレームビ
ットFを越えることがあり得る。この場合には、データ
D1の部分が無視される結果となり、正しいパリティチ
エツクは不可能となる。このような現象は、特に高速の
、例えば数百M Hzのデータ伝送の場合に発生しやす
い。更に、第2の7リツプ70ツブ2によるフレームパ
ルスによる位相合わせも回路のバラツキ量を考慮すると
困難である。
[Problems to be Solved by the Invention] However, in reality, the arrival of the reset pulse is delayed due to delays due to gate delays in the circuit or rounding of the waveform due to stray capacitance existing in the wiring pattern, and as shown in FIG.
As shown in d), the edge of the reset pulse may exceed frame bit F. In this case, the data D1 portion will be ignored, making it impossible to perform a correct parity check. Such a phenomenon is particularly likely to occur in the case of high-speed data transmission, for example, several hundred MHz. Further, it is also difficult to match the phase using the frame pulse using the second 7-lip 70-tube 2, considering the amount of circuit variation.

このような不具合を解決するために、第5図に示づよう
な回路を2回路設けて、パリティチエツクを交互に行な
わける場合がある。このようにすれば、リセットパルス
も2フレームに1回発生させればよいので、マージンが
大きくなりパリティ51数を正確に行うことができる。
In order to solve this problem, two circuits as shown in FIG. 5 may be provided and parity checks may be performed alternately. In this way, since the reset pulse only needs to be generated once every two frames, the margin becomes large and the parity 51 number can be calculated accurately.

しかしながら、この場合には回路素子の数が多くなるた
め、高密度ICを設計する場合には障害となる。
However, in this case, the number of circuit elements increases, which becomes an obstacle when designing a high-density IC.

本発明はこのような点に鑑みてなされたものであって、
高速データの場合でもパリティ計数を確実に行うことが
できるパリティitr!i回路を提供することを目的と
している。
The present invention has been made in view of these points, and
Parity itr allows you to perform parity counting reliably even in the case of high-speed data! The purpose is to provide an i-circuit.

[:!R題を解決するための手段] 第1図は、本発明の原理ブロック図である。図において
、11はD1、02なる2系列のデータの排仙的論理和
をとる排他的論理和回路、12は排他的論理和回路11
の出力(Q)を受けるJKフリップフロップである。こ
こで、排他的論理和回路11に入る2系列のデータ[)
1 、 [)2は、当初の1系列の高速データを直列/
並列変換して2系列のデータに変換されたものであると
する。そして、JKフリップ70ツブ12のリセット入
力Rにはリセットパルスが入っている。
[:! Means for Solving Problem R] FIG. 1 is a block diagram of the principle of the present invention. In the figure, 11 is an exclusive OR circuit that takes the exclusive OR of two series of data D1 and 02, and 12 is an exclusive OR circuit 11.
This is a JK flip-flop that receives the output (Q) of . Here, two series of data entering the exclusive OR circuit 11 [)
1, [)2 serially converts the initial series of high-speed data.
Assume that the data has been converted into two series of data through parallel conversion. A reset pulse is input to the reset input R of the JK flip 70 knob 12.

[作用] 排他的論理和回路11に入る2系列のデータD1、D2
は、元の1系列のデータを直列/並列変換して2系列に
分けたものであるため、そのデータ速度は1/2になっ
ている。排他的論理和回路11には、この2系列のデー
タDI 、D2が入っており、これら2系列のデータは
該排他的論理和回路71に入ってその論理和がとられる
・論理和がとられたデータは1系列になってJ Kフリ
ップフロップ12に入るが、その速度も1/2である。
[Operation] Two series of data D1 and D2 entering the exclusive OR circuit 11
is obtained by serial/parallel converting the original one series of data and dividing it into two series, so the data rate is 1/2. The exclusive OR circuit 11 contains these two series of data DI and D2, and these two series of data enter the exclusive OR circuit 71 and are logically summed. The resulting data enters the JK flip-flop 12 as one series, but its speed is also 1/2.

従って、JKフリップフロップ12に入るリセットパル
スのマージンは2倍増えたことになり、余裕をもって各
フレームのりセットを行うことができる。
Therefore, the margin of the reset pulse entering the JK flip-flop 12 is increased by twice, and each frame can be set with sufficient margin.

第2図は、本発明の作用を示すタイミングチャートで、
(イ)に示すデータ列〈論理和がとられたもの)に対し
て、(ロ)に示すリセットパルスは十分なマージンで各
フレームの開始時にリセットを行うことができる。そこ
で、このリレット直前のJKフリップフロップ12出力
を取り出せば、これが当該フレームのパリティ計数出力
を表わすことになる。
FIG. 2 is a timing chart showing the effect of the present invention.
The reset pulse shown in (b) can perform a reset at the start of each frame with a sufficient margin for the data string shown in (a) (the logical ORed data). Therefore, if the output of the JK flip-flop 12 immediately before this relet is taken out, this will represent the parity count output of the frame.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明づる
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第3図は、本発明の一実施例を示す構成ブOツク図であ
る。第1図と同一のものは、同一の符号を付して示す。
FIG. 3 is a configuration block diagram showing one embodiment of the present invention. Components that are the same as those in FIG. 1 are designated by the same reference numerals.

図において、21はゲートG1〜G3よりなる排他的論
理和回路、22.23はDタイプのフリップフロップで
ある。12は前述したJKフリップフロップで、ゲート
G4〜G6及びDタイプフリップフロップ24よりなっ
ている。
In the figure, 21 is an exclusive OR circuit consisting of gates G1 to G3, and 22 and 23 are D-type flip-flops. Reference numeral 12 denotes the above-mentioned JK flip-flop, which is composed of gates G4 to G6 and a D-type flip-flop 24.

25は該JKフリップフロップ12の出力をC入力に受
けるDタイプフリップフロップで、該フリップフロップ
25のQ出力がパリティ計数出力となっている。
25 is a D type flip-flop which receives the output of the JK flip-flop 12 at its C input, and the Q output of the flip-flop 25 serves as a parity counting output.

排他的論理和回路21には、2系列のデータD1、D2
と、これらデータの入力を禁止するインヒビット信号I
N+−11,lNl−12とがそれぞれ入っている。こ
れら禁止信号INH1,INH2が゛1′ルベルの時に
は、データD1.D2の入力は禁止される。この排他的
論理和回路21の出力がフリップフロップ22のC入力
に入り、該フリップ70ツブ22のC入力にはりOツク
パルスCLKが入っている。そして、フリップ70ツブ
22のQ出力がJKフリップフロップ12のJ入力に、
◇出力かに入力にそれぞれ入っている。またフリップ7
0ツブ23のC入力にはリセットパルスが、C入力には
クロックパルスCLKがそれぞれ入っている。
The exclusive OR circuit 21 has two series of data D1 and D2.
and an inhibit signal I that prohibits input of these data.
N+-11 and lNl-12 are included, respectively. When these inhibition signals INH1 and INH2 are at the "1" level, the data D1. Input of D2 is prohibited. The output of the exclusive OR circuit 21 is input to the C input of the flip-flop 22, and the C input of the flip-flop 22 receives the high-off pulse CLK. Then, the Q output of the flip 70 tube 22 is input to the J input of the JK flip-flop 12.
◇It is included in both the output and input. Also flip 7
The C input of the 0-tube 23 receives a reset pulse, and the C input receives a clock pulse CLK.

フリップ70ツブ23のQ出力はJKフリップフロップ
12のゲートG4 、G5に入り、Q出力はフリップフ
ロップ25のC入力に入っている。
The Q output of the flip-flop 70 tube 23 enters the gates G4 and G5 of the JK flip-flop 12, and the Q output enters the C input of the flip-flop 25.

また、クロックパルスCLKは、フリップフロップ24
のC入力にも入っている。このように構成された回路の
動作を、第4図に示すタイミングチャートを参照しつつ
説明ずれば、以下のとおりである。
Further, the clock pulse CLK is applied to the flip-flop 24.
It is also included in the C input. The operation of the circuit configured as described above will be explained below with reference to the timing chart shown in FIG.

データD1.D2には、フレームビットFの他に第4図
に示すようなサービスビットCやSCがある。パリティ
計数時には、これらナービスピットは禁止する必要があ
るので、(ニ)に示すINト11でDlのサービスビッ
トCやフレームビットFを禁止し、(ホ)に示すI N
 H2でD2のサービスビットCとSCを禁止している
。これらす−ビスビットが禁止された2系列のデータD
1゜D2は排他的論理和回路21に入って1系列のデー
タ列に変換される。ここで1系列のデータ列に変換され
た時点で、その速度は1/2に落ちている。このJJ+
他的論的論理和回路21力はフリップフロップ22のC
入力に入り、(へ)に示すリセットパルスはフリップ7
0ツブ23のC入力に入る。そして、これらC入力に入
った信号は、(イ)に示すクロックパルスCLKによっ
て同期化され、た形(位相がそろえられた形)でそれぞ
れのQ出力から出力される。
Data D1. In addition to the frame bit F, D2 includes service bits C and SC as shown in FIG. During parity counting, it is necessary to prohibit these service bits, so the service bit C and frame bit F of Dl are prohibited at IN 11 shown in (d), and the service bit C and frame bit F shown in (e) are disabled.
Service bits C and SC of D2 are prohibited in H2. Two series of data D with these bits prohibited
1°D2 enters the exclusive OR circuit 21 and is converted into one series of data strings. When the data is converted into one series of data, the speed has dropped to 1/2. This JJ+
The output of the alistic OR circuit 21 is C of the flip-flop 22.
The reset pulse that enters the input and shown in (to) is the flip 7
Enter C input of 0 knob 23. The signals input to these C inputs are synchronized by the clock pulse CLK shown in (a), and are outputted from the respective Q outputs in the form (phase aligned).

先ず、〈へ〉に示すリセットパルスが入ると、JKフリ
ップフロップ12と後段のフリップフロップ25は初I
ll値化される。その模、該J Kフリップフロップ1
2は排他的論理和回路21の出力をカウントする。その
カウントは、Dlと1〕2とが同一である場合はカウン
トアツプせず、異なる− 場合にのみカウントアツプす
る。これらカウント値はフリップフロップ25を介して
パリティ計数出力として出力される。これら一連の動作
において、本発明ににればパリティ計数を2系列に分け
て並列処理をしているため、各フレームのカウント開始
前に確実に回路をリセットすることができ、従って、確
実なパリティ計数を行うことができる。
First, when the reset pulse shown in <<>> is input, the JK flip-flop 12 and the subsequent flip-flop 25 are set to I for the first time.
It is converted into ll value. The model, the JK flip-flop 1
2 counts the output of the exclusive OR circuit 21. The count does not count up when Dl and 1]2 are the same, and counts up only when they are different. These count values are output via the flip-flop 25 as a parity count output. In this series of operations, according to the present invention, parity counting is divided into two series and processed in parallel, so the circuit can be reliably reset before the start of counting of each frame, thus ensuring reliable parity. Can perform counting.

また、本発明回路はゲートの数が少ないので集積化に適
し、ゲートを多段接続することによる遅延量も少なくて
すみ、好都合である。
Further, since the circuit of the present invention has a small number of gates, it is suitable for integration, and the amount of delay caused by connecting gates in multiple stages can be reduced, which is advantageous.

[発明の効果1 以十、ニーs mに説明したように、本発明によれば、
高速の伝送データを直並列変換して2系列のデータに変
換し伝送速度を1/2に落としているので、ゲート遅延
量のバラツキによる動作マージンの確保をより簡単に大
きくすることができるので、各フレームデータ列毎に確
実にリセットを行うことができ、高速データの場合でも
パリティ計数を確実に行うことができる。
[Advantageous Effects of the Invention 1] As explained above, according to the present invention,
Since high-speed transmission data is serial-parallel converted into two series of data and the transmission speed is reduced to 1/2, it is possible to easily increase the operating margin due to variations in gate delay amount. Resetting can be performed reliably for each frame data string, and parity counting can be performed reliably even in the case of high-speed data.

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

第1図は本発明の原理ブロック図、 第2図は本発明の作用を示すタイミングチャート、 第3図は本発明の一実施例を示す構成ブロック図、 第4図は第3図回路の動作を示すタイミングチャート、 第5図は従来のパリティ計数回路の溝成概念図、第6図
は第5図の動作を示すタイミングチャートである。 第1図において、 11は排他的論理和回路、 12はJKフリップフロップである。 特許出願人   富  士  通  株  式  会 
 社+71111
Fig. 1 is a principle block diagram of the present invention, Fig. 2 is a timing chart showing the operation of the present invention, Fig. 3 is a configuration block diagram showing an embodiment of the present invention, and Fig. 4 is the operation of the circuit shown in Fig. 3. FIG. 5 is a conceptual diagram of a conventional parity counting circuit, and FIG. 6 is a timing chart showing the operation of FIG. In FIG. 1, 11 is an exclusive OR circuit, and 12 is a JK flip-flop. Patent applicant: Fujitsu Limited
company+71111

Claims (1)

【特許請求の範囲】 D1、D2なる2系列のデータの排他的論理和をとる排
他的論理和回路(11)と、 該排他的論理和回路(11)の出力を受けるJKフリッ
プフロップ(12)とを具備し、フレーム周期で前記J
Kフリップフロップ(12)の出力をリセットし、リセ
ット直前のJKフリップフロップ(12)の出力をパリ
テイ計数出力とするように構成したパリテイ計数回路。
[Claims] An exclusive OR circuit (11) that takes the exclusive OR of two series of data D1 and D2, and a JK flip-flop (12) that receives the output of the exclusive OR circuit (11). and said J in a frame period.
A parity counting circuit configured to reset the output of the K flip-flop (12) and use the output of the JK flip-flop (12) immediately before the reset as a parity counting output.
JP63058877A 1988-03-11 1988-03-11 Parity counting circuit Pending JPH01232441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63058877A JPH01232441A (en) 1988-03-11 1988-03-11 Parity counting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63058877A JPH01232441A (en) 1988-03-11 1988-03-11 Parity counting circuit

Publications (1)

Publication Number Publication Date
JPH01232441A true JPH01232441A (en) 1989-09-18

Family

ID=13096989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63058877A Pending JPH01232441A (en) 1988-03-11 1988-03-11 Parity counting circuit

Country Status (1)

Country Link
JP (1) JPH01232441A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324895A (en) * 1993-05-12 1994-11-25 Nec Corp Parity error monitoring circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59188753A (en) * 1983-04-08 1984-10-26 Fujitsu Ltd Parity generating method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59188753A (en) * 1983-04-08 1984-10-26 Fujitsu Ltd Parity generating method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06324895A (en) * 1993-05-12 1994-11-25 Nec Corp Parity error monitoring circuit

Similar Documents

Publication Publication Date Title
US5001374A (en) Digital filter for removing short duration noise
US4054747A (en) Data buffer
JP3433426B2 (en) Method and apparatus for decoding Manchester encoded data
US4703495A (en) High speed frequency divide-by-5 circuit
US6928574B1 (en) System and method for transferring data from a lower frequency clock domain to a higher frequency clock domain
JPH01232441A (en) Parity counting circuit
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
JP2948245B2 (en) Transmission / reception synchronization device for communication network station
US4327442A (en) Clock recovery device
JP2695037B2 (en) Error pulse stretching circuit
JP3372858B2 (en) counter
JPH0644756B2 (en) Synchronous clock generation circuit
JP2506407B2 (en) Clock synchronous data transmission system
JP2924100B2 (en) State transition circuit
JP2591210B2 (en) Signal detection circuit
JP2689021B2 (en) Data pulse generator
JPH05268200A (en) Clock replacement circuit
JPH0453081Y2 (en)
SU1569994A1 (en) Scale code converter
KR100393421B1 (en) Counter System for Synchronous AF Converter
JPS6022542B2 (en) synchronization circuit
JPS58188952A (en) Parallel serial data transmitting circuit
JPH0468633A (en) Secondary data channel transmission system
JPS61152140A (en) Data synchronizing circuit
JPS6123900B2 (en)