JP2946863B2 - Parity counting circuit - Google Patents

Parity counting circuit

Info

Publication number
JP2946863B2
JP2946863B2 JP22768491A JP22768491A JP2946863B2 JP 2946863 B2 JP2946863 B2 JP 2946863B2 JP 22768491 A JP22768491 A JP 22768491A JP 22768491 A JP22768491 A JP 22768491A JP 2946863 B2 JP2946863 B2 JP 2946863B2
Authority
JP
Japan
Prior art keywords
frame
input
parity
signal
bit
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.)
Expired - Lifetime
Application number
JP22768491A
Other languages
Japanese (ja)
Other versions
JPH0568019A (en
Inventor
博之 田中
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 Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP22768491A priority Critical patent/JP2946863B2/en
Publication of JPH0568019A publication Critical patent/JPH0568019A/en
Application granted granted Critical
Publication of JP2946863B2 publication Critical patent/JP2946863B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル伝送信号の
パリティ計数回路に関し、特にマルチフレームに多重化
されたディジタル伝送信号のパリティ監視を行う場合に
適用するパリティ計数回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a parity counting circuit for a digital transmission signal, and more particularly to a parity counting circuit applied to monitor parity of a digital transmission signal multiplexed in a multiframe.

【0002】[0002]

【従来の技術】従来、1フレーム内にmビット(mは2
以上の整数)収容され、n個(nは2以上の整数)のフ
レームによるマルチフレームのディジタル伝送信号にお
いて、フレーム内の任意の1ビットについてnフレーム
分のパリティを計数する場合、図3の示すような回路が
使われていた。
2. Description of the Related Art Conventionally, m bits (m is 2) in one frame.
FIG. 3 shows a case where, in a multi-frame digital transmission signal composed of n (n is an integer of 2 or more) frames accommodated in n frames, the parity of n frames for any one bit in the frame is counted. Such a circuit was used.

【0003】シリアルに伝送されて来た入力信号Siは
データ抜取回路4に入力され、1フレーム内のmビット
のうちパリティ計数を行うビットが、抜取タイミング信
号に応じて抜取られる。この抜取られたデータは、nフ
レーム分用意されるまでの間、記憶回路5に格納され
る。この場合、フレームの先頭で入力されるリセット信
号によりリセットされるアドレスカウンタ6の示すアド
レスに応じて1ビットずつ格納される。nフレーム分の
パリティデータが揃った時点で記憶回路5から読み出さ
れ、整列回路7に入力される。整列回路7では、1ビッ
トずつ入力されるパリティデータをnビットのパラレル
信号に並び替えて、パリティ計数器8へ送出する。パリ
ティ計数器8では、nビット単位にnビット中の「1」
のビット数をカウントし、例えば、奇数パリティの場
合、「1」のビット数が奇数ならば「1」をパリティ計
数信号Poとして出力し、偶数ならば「0」をパリティ
計数信号Poとして出力する。
[0003] The input signal Si transmitted serially is input to a data extracting circuit 4, and a bit for performing a parity count out of m bits in one frame is extracted according to an extracting timing signal. The extracted data is stored in the storage circuit 5 until n frames are prepared. In this case, data is stored bit by bit according to the address indicated by the address counter 6 reset by the reset signal input at the beginning of the frame. When the parity data for n frames is completed, the data is read from the storage circuit 5 and input to the alignment circuit 7. The alignment circuit 7 rearranges the input parity data one bit at a time into an n-bit parallel signal and sends it to the parity counter 8. In the parity counter 8, “1” in n bits in units of n bits
For example, in the case of odd parity, if the bit number of “1” is odd, “1” is output as the parity count signal Po, and if it is even, “0” is output as the parity count signal Po. .

【0004】このパリティ計数信号値と、ディジタル伝
送信号列に多重化されて送信先から送られてくるパリテ
ィ計数信号値とを比較することにより、伝送路における
ビットの誤りを検出している。
A bit error in a transmission path is detected by comparing the parity count signal value with a parity count signal value multiplexed into a digital transmission signal sequence and transmitted from a transmission destination.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のパリテ
ィ計数回路では、マルチフレームに展開されたビットの
パリティを計数するために、1フレーム単位のパリティ
データを記憶回路に一旦格納した後、マルチフレーム分
揃った時点で読みだしてパリティ計数を行うので、マル
チフレーム分のデータをパラレル信号に変換するための
整列回路が必要である。また、パリティ計数を行うビッ
トが長くなると、記憶回路およびアドレスカウンタの規
模が大きくなり、更に整列回路の構成も複雑になってい
くという問題点がある。
In the above-described conventional parity counting circuit, in order to count the parity of bits developed into a multi-frame, parity data in units of one frame is temporarily stored in a storage circuit, and then the multi-frame is counted. Since the parity is counted by reading the data at the time when the data has been collected, an alignment circuit for converting data for multiple frames into parallel signals is required. Further, when the number of bits for performing the parity count becomes longer, the scale of the storage circuit and the address counter becomes larger, and the configuration of the alignment circuit becomes more complicated.

【0006】本発明の目的は、パリティ計数を行うビッ
ト数が長くなっても、単純な回路構成となるパリティ計
数回路を提供することにある。
An object of the present invention is to provide a parity counting circuit having a simple circuit configuration even if the number of bits for performing parity counting becomes long.

【0007】[0007]

【課題を解決するための手段】本発明のパリティ計数回
路は、1フレーム内に複数のビットを有しn(nは2以
上の整数)フレームからなる入力ディジタルデータ信号
に対して、各フレームの特定の1ビットを抜取ってnビ
ットのパリティ計数を行うパリティ計数回路において、
前記入力ディジタルデータ信号の各ビットに同期したク
ロック信号および前記フレームに同期したフレームタイ
ミング信号に応じで動作し前記入力ディジタルデータ信
号を順次1フレームずつ遅延するn本のディジタルデー
タ信号として出力する記憶手段と、前記n本のディジタ
ルデータ信号をそれぞれ受けラッチタイミング信号に応
じて前記各フレームの特定の1ビットを抜取って保持す
るラッチ手段とを備えて構成されている。また、前記記
憶手段は、入力側および出力側にそれぞれ少なくともn
本のポートを有し、前記クロック信号および前記フレー
ムタイミング信号に応じて動作して入出力間で1フレー
ム遅延させ、前記入力側の第1のポートに前記入力ディ
ジタルデータ信号を入力し、前記出力側の第k(kは1
≦k≦n−1の整数)のポートと前記入力側の第k+1
のポートとをそれぞれ接続してなるFIFO構造の記憶
回路で構成してもよい。
According to the present invention, a parity counting circuit according to the present invention converts an input digital data signal composed of n (n is an integer of 2 or more) frames having a plurality of bits in one frame into each frame. In a parity counting circuit that extracts a specific one bit and performs n-bit parity counting,
Storage means operating in response to a clock signal synchronized with each bit of the input digital data signal and a frame timing signal synchronized with the frame, and outputting the input digital data signal as n digital data signals sequentially delayed by one frame at a time. And latch means for receiving the n digital data signals and extracting and holding a specific bit of each frame in response to a latch timing signal. Further, the storage means has at least n
A first port that operates in response to the clock signal and the frame timing signal to delay one frame between input and output, inputs the input digital data signal to a first port on the input side, Side k (k is 1
≦ k ≦ n−1) port and the (k + 1) th input side
May be configured by a storage circuit having a FIFO structure which is connected to each of the ports.

【0008】[0008]

【実施例】次に本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0009】図1は本発明の一実施例を示すブロック図
である。ここで入力するディジタル伝送信号Siは、1
フレーム内にmビット(mは2以上の整数)収容されて
いて、n個(nは2以上の整数)のフレームで構成され
たシリアルデータ信号であり、各フレームの同一位置の
特定ビットをn個のマルチフレームにわたって並べたn
ビットのパリティデータについてパリティ計数を行う場
合を考える。
FIG. 1 is a block diagram showing one embodiment of the present invention. The digital transmission signal Si input here is 1
A serial data signal containing m bits (m is an integer of 2 or more) in a frame, and is composed of n (n is an integer of 2 or more) frames. N arranged over multiple multiframes
Consider a case where parity counting is performed on bit parity data.

【0010】さて、入力するディジタル伝送信号Si
は、記憶回路1に入力される。この記憶回路1は、一般
にFIFO(First In First Out)
と呼ばれ、独立した入出力ポートを複数本有し、記憶回
路への書き込み、読みだし動作を独立に行えるものであ
る。
Now, the input digital transmission signal Si
Is input to the storage circuit 1. The storage circuit 1 generally includes a FIFO (First In First Out)
It has a plurality of independent input / output ports, and can independently perform writing and reading operations to and from a storage circuit.

【0011】いま、入力信号Siのデータ列に同期した
クロックPcと、フレームの先頭と同期したフレームタ
イミング信号Pfとを記録回路1に入力し、入出力ポー
トを図1に示すように接続することにより、記録回路1
のn本の出力ポートからの出力データS11〜Sn1
は、図2に示すように、それぞれ1フレームずつ遅延し
たデータ列として出力される。
Now, a clock Pc synchronized with the data stream of the input signal Si and a frame timing signal Pf synchronized with the head of the frame are input to the recording circuit 1, and the input / output ports are connected as shown in FIG. The recording circuit 1
Output data S11 to Sn1 from the n output ports
Are output as data strings delayed by one frame, respectively, as shown in FIG.

【0012】このn本のデータ列S11〜Sn1は、S
11のデータ列が第N番目のフレームを出力している
時、Sn1からS11の順に第1番目から第N番目のフ
レームが展開していることがわかる。即ち、このn本の
データ列について、同じタイミングでデータを抜取れ
ば、nフレーム分のデータを一度に取出すことができ
る。従って図1に示すように、n本のデータ列をラッチ
回路2に供給し、フレーム内のパリティ計数を行う特定
ビットに同期したラッチタイミング信号P1に応じてラ
ッチ回路2に取込むことにより、1フレーム内のmビッ
ト中の特定ビットが抜取られ、nビットのデータS12
〜Sn2が得られる。
The n data strings S11 to Sn1 are represented by S
When the eleventh data string outputs the N-th frame, it can be seen that the first to N-th frames are developed in the order of Sn1 to S11. That is, if data is extracted from the n data strings at the same timing, data for n frames can be extracted at a time. Therefore, as shown in FIG. 1, by supplying n data strings to the latch circuit 2 and taking in the latch circuit 2 in accordance with the latch timing signal P1 synchronized with a specific bit for performing parity counting in the frame, 1 A specific bit of m bits in the frame is extracted, and n-bit data S12
To Sn2 are obtained.

【0013】ラッチ回路2が取込んだnビットのデータ
S12〜Sn2は、パリティ計数器3に送出され、nビ
ット中の「1」のビット数がカウントされる。例えば、
奇数パリティの場合、「1」のビット数が奇数ならばパ
リティ計数信号Poとして「1」が出力され、偶数なら
ば「0」が出力される。このパリティ計数信号値と、デ
ィジタル信号列に多重化されて送信先から送られてくる
パリティ計数信号値とを比較することにより、伝送路に
おけるビットの誤りを検出することができる。
The n-bit data S12 to Sn2 captured by the latch circuit 2 are sent to the parity counter 3, and the number of "1" bits in the n bits is counted. For example,
In the case of odd parity, if the number of bits of “1” is odd, “1” is output as the parity count signal Po, and if it is even, “0” is output. By comparing the parity count signal value with the parity count signal value multiplexed into the digital signal sequence and transmitted from the transmission destination, a bit error in the transmission path can be detected.

【0014】[0014]

【発明の効果】以上説明したように本発明は、複数本の
入出力ポートを有するFIFO構造の記憶回路とラッチ
回路とを組合わせて使用することにより、マルチフレー
ムにわたってパリティ計数を行う特定ビットを一度にラ
ッチしてパリティデータとして抜取ることができるの
で、単純な回路構成となる。また、ラッチ回路へのラッ
チタイミングを変更することにより、フレーム中の任意
のビットについてのパリティ計数を容易に行うことがで
きるという効果がある。
As described above, according to the present invention, by using a combination of a storage circuit having a FIFO structure having a plurality of input / output ports and a latch circuit, a specific bit for performing parity counting over a multi-frame is obtained. Since the data can be latched at a time and extracted as parity data, a simple circuit configuration is obtained. Further, by changing the latch timing to the latch circuit, there is an effect that the parity count can be easily performed for an arbitrary bit in the frame.

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

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

【図2】図1に示した各信号のタイミングチャートであ
る。
FIG. 2 is a timing chart of each signal shown in FIG.

【図3】従来のパリティ計数回路の一例を示すブロック
図である。
FIG. 3 is a block diagram illustrating an example of a conventional parity counting circuit.

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

1 記憶回路 2 ラッチ回路 3 パリティ計数器 Si 入力ディジタルデータ信号 S11〜Sn1 記憶回路1が出力するディジタルデ
ータ信号 S12〜Sn2 ラッチ回路2が取込んだデータ
DESCRIPTION OF SYMBOLS 1 Storage circuit 2 Latch circuit 3 Parity counter Si Input digital data signal S11-Sn1 Digital data signal output from storage circuit 1 S12-Sn2 Data fetched by latch circuit 2

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1フレーム内に複数のビットを有しn
(nは2以上の整数)フレームからなる入力ディジタル
データ信号に対して、各フレームの特定の1ビットを抜
取ってnビットのパリティ計数を行うパリティ計数回路
において、前記入力ディジタルデータ信号の各ビットに
同期したクロック信号および前記フレームに同期したフ
レームタイミング信号に応じて動作し前記入力ディジタ
ルデータ信号を順次1フレームずつ遅延するn本のディ
ジタルデータ信号として出力する記憶手段と、前記n本
のディジタルデータ信号をそれぞれ受けラッチタイミン
グ信号に応じて前記各フレームの特定の1ビットを抜取
って保持するラッチ手段とを備えることを特徴とするパ
リティ計数回路。
1. A frame having a plurality of bits in one frame
(N is an integer of 2 or more) In a parity counting circuit that extracts a specific bit of each frame from an input digital data signal composed of frames and performs n-bit parity counting, each bit of the input digital data signal Storage means operating in response to a clock signal synchronized with the frame and a frame timing signal synchronized with the frame and outputting the input digital data signal as n digital data signals sequentially delayed by one frame at a time; And a latch means for receiving a signal and extracting and holding a specific bit of each frame in accordance with a latch timing signal.
【請求項2】 前記記憶手段は、入力側および出力側に
それぞれ少なくともn本のポートを有し、前記クロック
信号および前記フレームタイミング信号に応じて動作し
て入出力間で1フレーム遅延させ、前記入力側の第1の
ポートに前記入力ディジタルデータ信号を入力し、前記
出力側の第k(kは1≦k≦n−1の整数)のポートと
前記入力側の第k+1のポートとをそれぞれ接続してな
るFIFO構造の記憶回路であることを特徴とする請求
項1記載のパリティ計数回路。
2. The storage means has at least n ports on an input side and an output side, respectively, and operates according to the clock signal and the frame timing signal to delay one frame between input and output. The input digital data signal is input to a first port on the input side, and the k-th port (k is an integer of 1 ≦ k ≦ n−1) on the output side and the (k + 1) -th port on the input side are respectively connected. 2. The parity counting circuit according to claim 1, wherein the parity counting circuit is a storage circuit having a FIFO structure connected thereto.
JP22768491A 1991-09-09 1991-09-09 Parity counting circuit Expired - Lifetime JP2946863B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22768491A JP2946863B2 (en) 1991-09-09 1991-09-09 Parity counting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22768491A JP2946863B2 (en) 1991-09-09 1991-09-09 Parity counting circuit

Publications (2)

Publication Number Publication Date
JPH0568019A JPH0568019A (en) 1993-03-19
JP2946863B2 true JP2946863B2 (en) 1999-09-06

Family

ID=16864716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22768491A Expired - Lifetime JP2946863B2 (en) 1991-09-09 1991-09-09 Parity counting circuit

Country Status (1)

Country Link
JP (1) JP2946863B2 (en)

Also Published As

Publication number Publication date
JPH0568019A (en) 1993-03-19

Similar Documents

Publication Publication Date Title
US20050223261A1 (en) Communication clocking conversion techniques
JP2946863B2 (en) Parity counting circuit
JP2786170B2 (en) Frame data conversion circuit
JPH05199199A (en) Stuff synchronization control system
JPH03198544A (en) Parity count circuit
JPS6386630A (en) Frame synchronization system in parallel transmission line
US7031206B2 (en) Digital line delay using a single port memory
JP2702171B2 (en) Frame conversion circuit
JP2548709B2 (en) Multiple frame aligner
KR970002402B1 (en) A parity generation circuit using bit interleaved method
US7292603B2 (en) Memory-efficient conversion between differing data transport formats of SONET overhead data
KR100204062B1 (en) Phase arragement apparatus for low speed data frame
JP2535016B2 (en) Specific bit counting circuit on multiple signal lines
JPS62284526A (en) Data string conversion circuit
RU1798922C (en) Channel encoder-decoder
KR940004480Y1 (en) Corresponding signal adding apparatus
JPH06268707A (en) Data length conversion circuit
JPS61101142A (en) Data protection circuit
JP3449942B2 (en) SDH frame signal monitoring circuit
JPH04152728A (en) Format conversion circuit
JPH0646023A (en) Frame phase synchronizing circuit
JPS63124651A (en) Transmission data protection circuit
JPH01307319A (en) Data conversion system
JPH02285735A (en) Serial interface circuit
JPH01226236A (en) Start-stop data transmission system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990601