JPH0548469A - Parity error detection circuit - Google Patents

Parity error detection circuit

Info

Publication number
JPH0548469A
JPH0548469A JP3201032A JP20103291A JPH0548469A JP H0548469 A JPH0548469 A JP H0548469A JP 3201032 A JP3201032 A JP 3201032A JP 20103291 A JP20103291 A JP 20103291A JP H0548469 A JPH0548469 A JP H0548469A
Authority
JP
Japan
Prior art keywords
bit
parity
data
parallel
channel
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
JP3201032A
Other languages
Japanese (ja)
Inventor
Akira Nozawa
晃 野澤
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 JP3201032A priority Critical patent/JPH0548469A/en
Publication of JPH0548469A publication Critical patent/JPH0548469A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To realize the small sized inexpensive parity error detection circuit which outputs a parity error detection output of N channels in n-bit parallel as an NXn bit serial data altogether with respect to the parity error detection circuit for an N channel input data each receiving n-bit parallel data. CONSTITUTION:The detection circuit is provided with parity arithmetic operation circuits 11-1N calculating the parity for each bit of n-bit parallel input data, comparator circuits 21-2N comparing respectively the parity for each n-bit calculated by the parity arithmetic operation circuits 11-1N with each parity in n-bit written in an input data, and parallel/serial conversion circuits 31-3N converting the n-bit parallel data outputted from the comparator circuits 21-2N into a serial data and converting the N-channel n-bit serial data into an NXn bit serial data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は1チャネルがnビットパ
ラレルで入力するNチャンネルの入力データから求めた
パリティエラーの検出回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parity error detection circuit obtained from N-channel input data, one channel of which is n-bit parallel input.

【0002】ディジタル通信の進展に伴い通信速度は高
くなり、そこに多重されるデータ量も大きくなってきて
いる。図6はディジタル通信のフレームフォーマットの
例を説明する図であり、CCITTで勧告しているSD
H(Synchronous Digital Hierarchy)のフレームフォー
マットを示す。1サブフレームは90バイトからなり、
9サブフレームで1マルチフレームを構成しており、デ
ータは8ビットパラレルで入出力される。
With the progress of digital communication, the communication speed is increasing and the amount of data multiplexed therein is also increasing. FIG. 6 is a diagram for explaining an example of a frame format of digital communication, and SD recommended by CCITT.
The frame format of H (Synchronous Digital Hierarchy) is shown. One subframe consists of 90 bytes,
One multi-frame is composed of 9 sub-frames, and data is input / output in 8-bit parallel.

【0003】また、各サブフレームの先頭3ビットがオ
ーバヘッドバイトであり、図に示すB2バイトの位置
に、送信側で求めたパリティ演算結果を書き込んで送信
している。
Further, the first 3 bits of each sub-frame is an overhead byte, and the parity calculation result obtained on the transmission side is written and transmitted at the position of B2 byte shown in the figure.

【0004】受信側では、入力データのパリティをパリ
ティ演算回路により求め、受信側で求めたパリティ演算
結果と、B2バイトの位置に書き込んである送信側で求
めたパリティ演算結果を比較してパリティエラーを検出
している。
At the receiving side, the parity of the input data is obtained by the parity arithmetic circuit, and the parity arithmetic result obtained at the receiving side is compared with the parity arithmetic result obtained at the transmitting side which is written at the position of B2 byte to compare the parity error. Is being detected.

【0005】ディジタルデータの伝送は図6に示すよう
なフレームフォーマットのデータをN本パラレルに送信
し通信効率を高めている。かかる多重ディジタルデータ
のパリティエラー検出回路を通信装置の小型化のために
小型、安価に実現することが要求されている。
In the transmission of digital data, N pieces of data in a frame format as shown in FIG. 6 are transmitted in parallel to improve communication efficiency. It is required to realize such a parity error detection circuit for multiplexed digital data at a small size and at a low cost in order to downsize a communication device.

【0006】[0006]

【従来の技術】図7は従来例を説明する図を示す。図は
1チャンネルが8ビットのパラレルで入力される3チャ
ンネルのデータのパリティエラーを検出する例である。
図中の11A〜13Aはパリティ演算回路、21A〜2
3Aは比較回路、31a〜33aはパラレル/シリアル
変換回路、40は多重回路である。
2. Description of the Related Art FIG. 7 is a diagram for explaining a conventional example. The figure shows an example of detecting a parity error in data of 3 channels input in parallel for 1 channel of 8 bits.
11A to 13A in the figure are parity arithmetic circuits, and 21A to 2A.
3A is a comparison circuit, 31a to 33a are parallel / serial conversion circuits, and 40 is a multiplex circuit.

【0007】図においてパリティ演算回路11A〜13
Aはそれぞれ8個のパリティ検出回路(図示省略)から
なり、チャンネル(図中CHとして示す)1〜チャンネ
ル3の8ビットのパラレルデータのパリティを演算し
て、比較回路21A〜23Aの一方の端子に8ビットパ
ラレルで入力する。他方の端子には8ビットパラレルの
データを入力する。
In the figure, parity operation circuits 11A to 13
Each A is composed of eight parity detection circuits (not shown), calculates the parity of 8-bit parallel data of channels (shown as CH in the figure) 1 to channel 3, and outputs one of the terminals of the comparison circuits 21A to 23A. Input in 8-bit parallel. 8-bit parallel data is input to the other terminal.

【0008】比較回路21A〜23Aでは、入力データ
と、入力データから求めた8ビットのパリティ演算結果
とを比較し、比較結果を8ビットのパラレルデータとし
てパラレル/シリアル変換回路31a〜33aに入力す
る。
In the comparison circuits 21A to 23A, the input data is compared with the 8-bit parity calculation result obtained from the input data, and the comparison result is input to the parallel / serial conversion circuits 31a to 33a as 8-bit parallel data. ..

【0009】パラレル/シリアル変換回路31a〜33
aでは入力した8ビットのパラレルデータからB2タイ
ミングパルスとクロックによりB2バイトとの比較値を
抽出し、そのデータを8ビットのシリアルデータに変換
する。
Parallel / serial conversion circuits 31a-33
In a, the comparison value of the B2 byte is extracted from the input 8-bit parallel data by the B2 timing pulse and the clock, and the data is converted into 8-bit serial data.

【0010】多重回路40ではチャンネル1〜チャンネ
ル3の8ビットのシリアルデータを多重して24ビット
のシリアルデータとして出力する。
The multiplexing circuit 40 multiplexes 8-bit serial data of channels 1 to 3 and outputs it as 24-bit serial data.

【0011】[0011]

【発明が解決しようとする課題】上述の従来例において
は、8ビットのパラレルのパリティ検出結果を8ビット
のシリアルデータに変換した後、3チャンネルのシリア
ルデータを多重して1チャンネルのシリアルデータとし
ている。
In the above-mentioned conventional example, the 8-bit parallel parity detection result is converted into 8-bit serial data, and then 3-channel serial data is multiplexed to obtain 1-channel serial data. There is.

【0012】したがって、8ビットのシリアルデータを
3チャンネル分多重して24ビットのシリアルデータに
変換するためのタイミングパルスの発生、制御等回路が
複雑になる。
Therefore, a circuit for generating and controlling a timing pulse for multiplexing 8-bit serial data for three channels and converting it into 24-bit serial data becomes complicated.

【0013】本発明は1チャンネルnビットパラレルデ
ータ入力するデータのパリティエラー検出をnビットパ
ラレルで行い、Nチャンネルのエラー検出出力をまとめ
てN×nビットのシリアルデータとして出力する小型、
安価なパリティエラー検出回路を実現しようとする。
According to the present invention, a parity error detection of data input to 1-channel n-bit parallel data is performed in n-bit parallel, and N-channel error detection outputs are collectively output as N × n-bit serial data.
Attempts to realize an inexpensive parity error detection circuit.

【0014】[0014]

【課題を解決するための手段】図1は本発明の原理を説
明するブロック図である。図中の11〜1Nは1チャン
ネルnビットパラレルで入力するパラレル入力データの
パリティを演算するパリティ演算回路であり、21〜2
Nはパリティ演算回路11〜1Nで演算したnビットの
パリティと、入力データとを比較する比較回路である。
FIG. 1 is a block diagram for explaining the principle of the present invention. Reference numerals 11 to 1N in the figure denote parity calculation circuits for calculating the parity of parallel input data input in 1-channel n-bit parallel.
N is a comparison circuit that compares the n-bit parity calculated by the parity calculation circuits 11 to 1N with the input data.

【0015】また、31〜3Nは比較回路21〜2Nの
nビットのパラレル比較出力から、所定のタイミングパ
ルスにより比較値を抽出しシリアルデータに変換し、変
換したNチャンネルのnビットのシリアルデータをN×
nビットのシリアルデータに変換して出力するパラレル
/シリアル変換回路である。
Reference numerals 31 to 3N extract a comparison value from the n-bit parallel comparison output of the comparison circuits 21 to 2N at a predetermined timing pulse and convert it into serial data, and convert the converted N-channel n-bit serial data. N ×
It is a parallel / serial conversion circuit for converting and outputting to n-bit serial data.

【0016】[0016]

【作用】1チャンネルnビットパラレルで入力される入
力データのパリティをパリティ演算回路11〜1Nで求
め、入力データと比較する。
The parity of the input data input in 1-channel n-bit parallel is obtained by the parity operation circuits 11 to 1N and compared with the input data.

【0017】比較結果のnビットパラレルで出力される
比較出力から所定のタイミングパルスによりパリティの
比較値を抽出しパラレル/シリアル変換回路31〜3N
でシリアルデータに変換し、チャンネル1からチャンネ
ルNのnビットのパリティエラーデータをN×nビット
のシリアルデータとして出力することにより、従来例の
多重回路40を省略することが可能となり、タイミング
制御も簡単にすることができる。
The comparison value of the parity is extracted from the comparison output which is output in n-bit parallel of the comparison result by a predetermined timing pulse, and the parallel / serial conversion circuits 31 to 3N.
By converting the n-bit parity error data of channel 1 to channel N as N × n-bit serial data, the multiplexing circuit 40 of the conventional example can be omitted and the timing control can be performed. Can be easy.

【0018】[0018]

【実施例】図2は本発明の実施例を説明する図である。
図はN=3、n=8の例であり、図中のパリティ演算回
路11A〜13A、比較回路21A〜23Aは従来例で
説明したのと同一構成物である。
FIG. 2 is a diagram for explaining an embodiment of the present invention.
The figure shows an example of N = 3 and n = 8, and the parity operation circuits 11A to 13A and the comparison circuits 21A to 23A in the figure are the same components as described in the conventional example.

【0019】本実施例のパラレル/シリアル変換回路3
1A〜33Aはそれぞれ8個のフリップフロップ回路
(以下FF回路と称する、図示省略)で構成し、さらに
8個のFF回路をシリアルに接続し24段のシフトレジ
スタとして構成している。
Parallel / serial conversion circuit 3 of this embodiment
Each of 1A to 33A is composed of eight flip-flop circuits (hereinafter referred to as FF circuits, not shown), and further eight FF circuits are serially connected to form a 24-stage shift register.

【0020】実施例の動作を図にしたがって説明する。
図3は本発明の実施例のタイムチャートである。ここで
は、チャンネル1を例として説明するが、チャンネル
2、3も動作は同じである。図中の比較値1〜8は入力
データパリティ演算回路11Aで求めたパリティと入力
データとを比較回路21Aで比較した出力であり、8ビ
ットパラレルに出力される。
The operation of the embodiment will be described with reference to the drawings.
FIG. 3 is a time chart of the embodiment of the present invention. Here, channel 1 will be described as an example, but the operations of channels 2 and 3 are the same. Comparative values 1 to 8 in the figure are outputs obtained by comparing the parity obtained by the input data parity operation circuit 11A and the input data by the comparison circuit 21A, and are output in 8-bit parallel.

【0021】ここでは、比較回路21Aは排他的論理和
回路を使用するものとし、2つのデータが一致で
「L」、不一致で「H」を出力し、8個のFF回路で構
成されるパラレル/シリアル変換回路31Aに入力す
る。
Here, the comparison circuit 21A uses an exclusive OR circuit, and outputs "L" when two data match and "H" when two data do not match, and is a parallel circuit composed of eight FF circuits. / Input to the serial conversion circuit 31A.

【0022】B2バイトパルスはB2バイトが入力した
ときに「H」となるパルスであり、B2バイトパルスが
「H」のときのクロック(図中CKとして示す)の立ち
上がり(図中矢印で示す)で比較回路21Aの出力を保
持する。
The B2 byte pulse is a pulse which becomes "H" when the B2 byte is input, and the rising edge of the clock (shown as CK in the figure) when the B2 byte pulse is "H" (indicated by an arrow in the figure). Holds the output of the comparison circuit 21A.

【0023】図4は本発明の実施例のパラレル/シリア
ル変換を説明する図(1)であり、FF回路1〜8の出
力は図3の比較値を保持したデータである。B2バイト
パルスが「H」のときのクロックの立ち上がりで図3の
比較値1〜8をラッチし、次のクロックからは8個のF
F回路1〜8をシフトレジスタとして動作させる。した
がって、前段のFF回路の出力が次々とシフトされ、F
F回路8からは図に示す8ビットのシリアルデータとし
て出力される。
FIG. 4 is a diagram (1) for explaining the parallel / serial conversion of the embodiment of the present invention, in which the outputs of the FF circuits 1 to 8 are data holding the comparison values of FIG. The comparison values 1 to 8 in FIG. 3 are latched at the rising edge of the clock when the B2 byte pulse is “H”, and eight Fs are fed from the next clock.
The F circuits 1 to 8 are operated as shift registers. Therefore, the output of the FF circuit in the previous stage is shifted one after another, and F
The F circuit 8 outputs the 8-bit serial data shown in the figure.

【0024】図5は本発明の実施例のパラレル/シリア
ル変換を説明する図(2)であり、チャンネル1のFF
回路1〜8、チャンネル2のFF回路9〜16、チャン
ネル3のFF回路17〜24をシリアルに接続し24段
のシフトレジスタとして動作させた状態を示す。
FIG. 5 is a diagram (2) for explaining the parallel / serial conversion of the embodiment of the present invention, in which the FF of channel 1 is used.
The circuit 1 to 8, the channel 2 FF circuits 9 to 16 and the channel 3 FF circuits 17 to 24 are serially connected to operate as a 24-stage shift register.

【0025】したがって、チャンネル1〜チャンネル3
の8ビットのパリティ検出結果が24ビットのシリアル
データとしてFF回路24から出力される。上述のよう
に、本実施例では、従来例の多重回路40が必要でなく
なり、制御も簡単にすることができる。
Therefore, channel 1 to channel 3
The 8-bit parity detection result is output from the FF circuit 24 as 24-bit serial data. As described above, in the present embodiment, the conventional multiplexing circuit 40 is not required, and the control can be simplified.

【0026】[0026]

【発明の効果】本発明によれば、1チャンネルnビット
パラレルで入力されるNチャンネルのデータのパリティ
エラーをチャンネル毎に検出し、Nチャンネルのnビッ
トのパリティエラー検出結果をN×nビットのシリアル
データに変換して出力できる小型安価なパリティエラー
検出回路を実現することができる。
According to the present invention, a parity error of N-channel data input in 1-channel n-bit parallel is detected for each channel, and an N-bit n-bit parity error detection result of N × n bits is detected. It is possible to realize a small and inexpensive parity error detection circuit that can be converted into serial data and output.

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

【図1】 本発明の原理を説明するブロック図FIG. 1 is a block diagram illustrating the principle of the present invention.

【図2】 本発明の実施例を説明する図FIG. 2 is a diagram illustrating an embodiment of the present invention.

【図3】 本発明の実施例のタイムチャートFIG. 3 is a time chart of an example of the present invention.

【図4】 本発明の実施例のパラレル/シリアル変換を
説明する図(1)
FIG. 4 is a diagram (1) for explaining parallel / serial conversion according to the embodiment of the present invention.

【図5】 本発明の実施例のパラレル/シリアル変換を
説明する図(2)
FIG. 5 is a diagram (2) for explaining parallel / serial conversion according to the embodiment of the present invention.

【図6】 ディジタル通信のフレームフォーマットの例
を説明する図
FIG. 6 is a diagram illustrating an example of a frame format of digital communication.

【図7】 従来例を説明する図FIG. 7 is a diagram illustrating a conventional example.

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

11〜1N、11A〜13A パリティ演算回路 21〜2N、21A〜23A 比較回路 31〜3N、31A〜33A 31a〜33a パラレ
ル/シリアル変換回路 40 多重回路
11-1N, 11A-13A Parity operation circuit 21-2N, 21A-23A Comparison circuit 31-3N, 31A-33A 31a-33a Parallel / serial conversion circuit 40 Multiplexing circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 1チャンネルがnビットパラレルで入力
するNチャンネルの入力データから求めたパリティエラ
ーの検出回路であって、 nビットのパラレル入力データのそれぞれのビット毎の
パリティを演算するパリティ演算回路(11〜1N)
と、 前記パリティ演算回路(11〜1N)で演算したnビッ
トのビット毎のパリティと、入力データの中に書き込ま
れているnビットのビット毎のパリティとをそれぞれ比
較する比較回路(21〜2N)と、 前記比較回路(21〜2N)の出力するnビットのパラ
レルデータをシリアルデータに変換し、変換したNチャ
ンネルのnビットのシリアルデータをN×nビットのシ
リアルデータに変換するパラレル/シリアル変換回路
(31〜3N)を備えたことを特徴とするパリティエラ
ー検出回路。
1. A parity error detection circuit, wherein one channel is a parity error detection circuit obtained from N-channel input data input in n-bit parallel, and a parity operation circuit for calculating the parity of each bit of n-bit parallel input data. (11 to 1N)
And a comparison circuit (21-2N) for comparing the n-bit bit-by-bit parity calculated by the parity operation circuit (11-1N) with the n-bit-by-bit parity written in the input data. ) And parallel / serial for converting n-bit parallel data output from the comparison circuit (21 to 2N) into serial data and converting the converted N-channel n-bit serial data into N × n-bit serial data. A parity error detection circuit comprising a conversion circuit (31 to 3N).
【請求項2】 前記パラレル/シリアル変換回路(31
〜3N)は、それぞれn個のフリップフロップ回路(1
〜n)から構成し、さらに前記n個のフリップフロップ
回路(1〜n)をNチャンネル分シリアルに接続し、前
記比較回路(21〜2N)のNチャンネルのnビットの
出力をクロックで保持した後、保持したデータをクロッ
クでシフトさせN×nビットのシリアルデータに変換し
て出力することを特徴とする請求項1記載のパリティエ
ラー検出回路。
2. The parallel / serial conversion circuit (31)
3N) are n flip-flop circuits (1
To n), the n flip-flop circuits (1 to n) are serially connected for N channels, and the n-channel output of the N channels of the comparison circuit (21 to 2N) is held by a clock. The parity error detection circuit according to claim 1, wherein the held data is then shifted by a clock to be converted into N × n bit serial data and output.
JP3201032A 1991-08-12 1991-08-12 Parity error detection circuit Withdrawn JPH0548469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3201032A JPH0548469A (en) 1991-08-12 1991-08-12 Parity error detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3201032A JPH0548469A (en) 1991-08-12 1991-08-12 Parity error detection circuit

Publications (1)

Publication Number Publication Date
JPH0548469A true JPH0548469A (en) 1993-02-26

Family

ID=16434315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3201032A Withdrawn JPH0548469A (en) 1991-08-12 1991-08-12 Parity error detection circuit

Country Status (1)

Country Link
JP (1) JPH0548469A (en)

Similar Documents

Publication Publication Date Title
JP3038219B2 (en) Device for transmitting and receiving data words representing digitized analog signals
KR880006859A (en) Data multiplex transmitter
JPH07105818B2 (en) Parallel transmission method
US5287389A (en) Frame alignment circuit
AU3010492A (en) N-bit parallel input to variable-bit parallel output shift register
JPH0548469A (en) Parity error detection circuit
KR880008546A (en) Digital Code Inverter and Method
KR950020649A (en) Digital audio signal demodulation device
JP2967748B2 (en) ATM cell synchronization circuit
JP2722634B2 (en) Serial data transmission method
JPH05191297A (en) Serial/parallel conversion circuit
JPH0244423B2 (en)
JPH07321667A (en) Lsi input output signal control circuit
JPS631121A (en) Error correction system
JPH0568027A (en) Decoder circuit
JP3202379B2 (en) Packet frame transmission method
JP2001069129A (en) Receiver and communication system
JPH0712163B2 (en) Multiplexed multiframe synchronization circuit
JPH0234538B2 (en)
JPH04258069A (en) Digital multiplexer
JPH0530336B2 (en)
JPS62169538A (en) Multiplexing communication system
JPS6331978B2 (en)
JPH01320831A (en) Delay equalizing circuit
JPH08237754A (en) Reception and transmission method in remote supervisory equipment and its 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: 19981112