JPH01205627A - Decoding circuit for digital transmission equipment - Google Patents

Decoding circuit for digital transmission equipment

Info

Publication number
JPH01205627A
JPH01205627A JP2882888A JP2882888A JPH01205627A JP H01205627 A JPH01205627 A JP H01205627A JP 2882888 A JP2882888 A JP 2882888A JP 2882888 A JP2882888 A JP 2882888A JP H01205627 A JPH01205627 A JP H01205627A
Authority
JP
Japan
Prior art keywords
code
circuit
latched
shift register
positive
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
JP2882888A
Other languages
Japanese (ja)
Inventor
Tetsuji Sato
哲司 佐藤
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 JP2882888A priority Critical patent/JPH01205627A/en
Publication of JPH01205627A publication Critical patent/JPH01205627A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a circuit scale by constituting two BnZS(Bipolar with n Zeros Substitution Codes) each different in the number of replacing bits of one circuit. CONSTITUTION:In the reception of an output from a Bn1ZS code detecting circuit 3, a zero code replacing circuit 4 replaces the positive code and the negative code of a Bn1ZS code block comprising n1 bits latched by shift registers 1, 2 into consecutive n1-set of zeros. In the receipt of an output from a Bn2ZS code detecting circuit 5, the circuit 4 replaces the positive code and the negative code of a Bn2ZS code block comprising n2-bit latched by shift registers 1, 1', 2, 2' into consecutive n2-set of '0' codes. Then the positive code of the bipolar signal being the result of receiving an output code read sequentially synchronous ly with the clock from the output terminal of the shift register 1' is used as the negative code of the bipolar signal being the result of receiving the output code read sequentially synchronously with the clock from the output terminal of the shift register 2' to decode the original code string. Thus, the size of circuit is reduced.

Description

【発明の詳細な説明】 〔手肌 要〕 受信データ中のBnZS符号ブロックを元の連続するn
個の“0”符号のブロックに置換するためのディジタル
伝送装置の復号回路に関し、置換ビット数の異なる2つ
のBnZS復号回路を1つの回路で構成して回路規模を
小さくするとともに、BnZS符号変換則の変更に伴う
回路の切り換えを自動的に行うようにすることを目的と
し、 置換ビット数n、からなるBn、zs符号変換則に対応
したn1ビット構成の2つのシフトレジスタを備えたデ
ィジタル伝送装置の復号回路において、13n2ZS符
号変換則の置換ビット数n2と上記Bn、zs符号変換
則の置換ビット数n。
[Detailed description of the invention] [Required] Convert the BnZS code blocks in the received data to the original continuous n
Regarding the decoding circuit of a digital transmission device for replacing blocks of "0" codes, two BnZS decoding circuits with different numbers of replacement bits are configured in one circuit to reduce the circuit scale, and the BnZS code conversion rule is A digital transmission device equipped with two shift registers with an n1-bit configuration corresponding to the Bn,zs code conversion rule consisting of the number of replacement bits n, with the aim of automatically switching the circuit due to a change in the number of bits. In the decoding circuit, the number of replaced bits n2 of the 13n2ZS code conversion rule and the number of replaced bits n of the above Bn,zs code conversion rule.

とのビット差kに相当する段数のシフトレジスタを上記
2つのシフトレジスタのそれぞれの最上位ビット側に付
加することによりn2ビット構成の正負2組のシフトレ
ジスタを構成し、この正負2組のシフトレジスタにラン
チされる受信符号の符号状態を監視してBn2zs符号
ブロックを検出するBn2zs符号検出回路を設け、上
記Bn2zS符号検出回路がBn2ZS符号ブロックを
検出したときは、上記正負2組のシフトレジスタにラッ
チされているBn2ZS符号ブロックの正極側符号と負
極側符号とを上記零符号置換回路によりn2個の“0”
符号に置き換えるように構成する。
By adding a shift register with the number of stages corresponding to the bit difference k from A Bn2zs code detection circuit is provided which monitors the code state of the received code launched into the register and detects a Bn2zs code block, and when the Bn2zS code detection circuit detects a Bn2ZS code block, a signal is sent to the two positive and negative shift registers. The positive side sign and negative side sign of the latched Bn2ZS code block are converted into n2 “0” by the above zero sign replacement circuit.
Configure to replace it with a sign.

〔産業上の利用分野〕[Industrial application field]

本発明は、伝送データ中に“0″′符号が所定の数n個
連続したときにこの“0”符号のブロックをBnZS符
号変換則に基づいた特定の符号パターンに変換してバイ
ポーラ信号として伝送するようにしたデジタル伝送シス
テムにおいて、受信データ中のBnZS符号ブロックを
元の連続するn個の“0”符号のブロックに置換するた
めのディジタル伝送装置の復号回路に関する。
The present invention converts blocks of "0" codes into a specific code pattern based on the BnZS code conversion rule when a predetermined number n of consecutive "0'' codes occur in transmission data, and transmits it as a bipolar signal. The present invention relates to a decoding circuit of a digital transmission device for replacing a BnZS code block in received data with an original block of n continuous "0" codes in a digital transmission system.

〔従来の技術〕[Conventional technology]

ディジタル伝送装置においてディジタル信号を伝送路に
送出する場合、伝送路や受信側装置に適合した符号形式
に変換して伝送する必要がある。
When transmitting a digital signal to a transmission path in a digital transmission device, it is necessary to convert the signal into a code format compatible with the transmission path and the receiving device before transmitting it.

例えば、ディジタル伝送の再生中継などにおいては伝送
路に送り出されたバイポーラ信号自身から同期パルスを
再生する自己タイミング方式が採用されているが、この
ような自己タイミング方式では伝送符号中に符号“0”
が連続すると同期パルスの抽出・再生が困難となり、伝
送符号中の符号“0”の連続を抑圧する必要が生ずる。
For example, in regenerative relaying of digital transmission, etc., a self-timing method is adopted in which the synchronization pulse is regenerated from the bipolar signal itself sent out to the transmission path.
If "0" continues, it becomes difficult to extract and reproduce the synchronization pulse, and it becomes necessary to suppress the series of "0" codes in the transmission code.

そこで、上記問題を解決するための伝送符号形式の1つ
として、伝送路へ送出するバイポーラ信号中に符号“0
”が連続してnビット続いたときに、この連続するn個
の符号“0”のブロックを予め定めた特定の符号パター
ンに変換して送出する、いわゆるBnZS符号(Bip
olar with  nZeros 5ubstit
ution Codes)が用いられている。
Therefore, as one of the transmission code formats to solve the above problem, the code "0" is included in the bipolar signal sent to the transmission path.
” continues for n bits, the so-called BnZS code (Bip
polar with nZeros 5ubstit
tion Codes) are used.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記BnZS符号としてはn=5ビットとしたB6ZS
符号あるいはn=8ビットとしたB8ZS符号などが実
用に供されているが、受信側ではこの受信したBnZS
符号変換則により置換されたバイポーラ信号中のBnZ
S符号ブロックを元の連続する“0”の符号列に復号す
る必要がある。
The above BnZS code is B6ZS with n=5 bits.
B8ZS code or B8ZS code with n = 8 bits is in practical use, but on the receiving side, this received BnZS code
BnZ in bipolar signal replaced by sign conversion rule
It is necessary to decode the S code block into the original continuous "0" code string.

従来、この種の復号回路はBnZS符号変換則の置換ビ
ット数nに応じてそれぞれ独立の復号回路として構成さ
れており、システムを置換ビット数の異なる2つのBn
ZS符号変換則、例えばB6ZS符号とB8ZS符号の
2つの符号変換則に適用可能とするためには、システム
構築時に予め置換ビット数に対応したB6ZS復号回路
とB8ZS復号回路の2つの回路をそれぞれ独立に用意
しておく必要があり、受信装置としての回路規模が大き
くなるとともに、符号変換則の変更に伴う回路の切り換
えが面倒で手間がかかるという問題があった。
Conventionally, this type of decoding circuit has been configured as an independent decoding circuit according to the number n of replacement bits in the BnZS code conversion rule, and the system has been configured as two Bn decoding circuits with different numbers of replacement bits.
In order to be able to apply the ZS code conversion rule, for example, the two code conversion rules of B6ZS code and B8ZS code, two circuits, a B6ZS decoding circuit and a B8ZS decoding circuit, corresponding to the number of replacement bits must be set up independently at the time of system construction. Therefore, there is a problem that the circuit size of the receiving device becomes large, and switching of the circuit due to a change in the code conversion rule is troublesome and time-consuming.

本発明は、置換ビット数の異なる2つのBnZS復号回
路を1つの回路で構成して回路規模を小さくするととも
に、BnZS符号変換則の変更に伴う回路の切り換えを
自動的に行うようにすることを目的とする。
The present invention aims to reduce the circuit scale by configuring two BnZS decoding circuits with different numbers of replacement bits into one circuit, and to automatically switch circuits in accordance with changes in the BnZS code conversion rule. purpose.

〔課題を解決するための手段〕[Means to solve the problem]

第1図に本発明の原理を示すように、置換ビット数n、
からなるB n + Z S符号変換則に対応したn1
ビット構成の2つのシフトレジスタ1,2を備え、一方
のシフトレジスタには受信したB n rZS符号変換
則によるバイポーラ信号の正極側符号を順次入力してラ
ッチするとともに、他方のシフトレジスタには受信した
バイポーラ信号の負極側符号を順次入力してラッチし、
この2つのシフトレジスタにラッチされる受信符号の符
号状態をBn+ zs符号検出回路3により監視して受
信符号中のBn1ZSnlブロックを検出し、BnlZ
S符号ブロックを検出したときは上記2つのシフトレジ
スタにラッチされているBn、zs符号ブロックの正極
側符号と負極側符号とを零符号置換回路4によりn3個
の“0”符号に置き換え、上記正極側のシフトレジスタ
から順次読み出される出力符号をバイポーラ信号の正極
側符号として、また上記負極側のシフトレジスタから順
次読み出される出力符号をバイポーラ信号の負極側符号
として用いることにより元の符号列を復号するようにし
たディジタル伝送装置の復号回路において、Bn、2S
符号変換則の置換ビット数n2  (n2>n、 )と
上記Bn、zs符号変換則の置換ビット数ni とのビ
ット差kに相当する段数のシフトレジスタ1’、2’を
上記2つのシフトレジスタ1.2のそれぞれの最上位ビ
ット側に付加することによりn2ビット構成の正負2組
のシフトレジスタを構成し、このn2ビット構成になる
正負2組のシフトレジスタにラッチされる受信符号の符
号状態を監視して受信符号中のBn2ZS符号ブロック
を検出するBna zs符号検出回路5を設け、このB
naZS符号検出回路が受信符号中のBn2ZS符号ブ
ロックを検出したときは、上記正負2組のシフトレジス
タにラッチされているBn2Zs符号ブロックの正極側
符号と負極側符号とを上記零符号置換回路4によりn2
個の“0”符号に置き換えるようにした。
As shown in FIG. 1, the principle of the present invention is shown in FIG.
n1 corresponding to the B n + Z S code conversion rule consisting of
It is equipped with two shift registers 1 and 2 with a bit configuration, one shift register sequentially inputs and latches the positive side sign of the received bipolar signal according to the B n rZS code conversion rule, and the other shift register receives The negative side sign of the bipolar signal is sequentially input and latched.
The code state of the received code latched in these two shift registers is monitored by the Bn+zs code detection circuit 3, and the Bn1ZSnl block in the received code is detected.
When an S code block is detected, the positive and negative codes of the Bn and zs code blocks latched in the two shift registers are replaced by n3 "0" codes by the zero code replacement circuit 4, and the above The original code string is decoded by using the output codes sequentially read from the positive side shift register as the positive side code of the bipolar signal, and the output codes sequentially read from the negative side shift register as the negative side code of the bipolar signal. In the decoding circuit of the digital transmission device, Bn, 2S
The number of stages of shift registers 1' and 2' corresponding to the bit difference k between the number of replacement bits n2 (n2>n, ) of the code conversion rule and the number of replacement bits ni of the above Bn, zs code conversion rule is transferred to the two shift registers 1' and 2'. 1.2 is added to the most significant bit side of each to configure two sets of positive and negative shift registers of n2-bit configuration, and the code state of the received code latched by the two sets of positive and negative shift registers of n2-bit configuration. A Bna zs code detection circuit 5 is provided to monitor the Bn2ZS code block in the received code and detect the Bn2ZS code block in the received code.
When the naZS code detection circuit detects a Bn2ZS code block in the received code, the positive side code and the negative side code of the Bn2Zs code block latched in the two sets of positive and negative shift registers are replaced by the zero sign substitution circuit 4. n2
It is now replaced with "0" codes.

〔作 用〕[For production]

伝送路を介して送られてくるBnZS符号変換されたバ
イポーラ信号の正極側符号がシフトレジスタ1,1′ 
に入力すると、シフトレジスタ1゜1′はクロックに同
期してその符号列を1ビットづつシフトしながらラッチ
する。
The positive side sign of the BnZS code-converted bipolar signal sent via the transmission line is transferred to shift registers 1 and 1'.
, the shift register 1°1' latches the code string while shifting it bit by bit in synchronization with the clock.

また、上記バイポーラ信号の負極側符号がシフトレジス
タ2.2′に入力すると、シフトレジスタ2.2′はク
ロックに同期してその符号列を1ビットづつシフトしな
がらラッチする。
Further, when the negative sign of the bipolar signal is input to the shift register 2.2', the shift register 2.2' latches the code string while shifting it bit by bit in synchronization with the clock.

Bn1ZS符号検出回路3はシフトレジスタl。The Bn1ZS code detection circuit 3 is a shift register l.

2にラッチされる受信符号の符号状態を常時監視してお
り、連続するn1個の受信符号の符号パターンがBn2
ZS符号変換則による符号パターンに一致したときにB
n、zs符号ブロックとして検出し、その検知出力を零
符号置換回路4に送る。
The code state of the received codes latched to Bn2 is constantly monitored, and the code pattern of n1 consecutive received codes is Bn2.
B when it matches the code pattern according to the ZS code conversion rule
n, zs code block, and sends the detection output to the zero code replacement circuit 4.

一方、Bn223符号検出回路5は正極側のシフトレジ
スタ1.1′と負極側のシフトレジスタ2.2′にラッ
チされるn2ビットの受信符号の符号状態を常時監視し
ており、連続するn2個の受信符号の符号パターンがB
n2ZS符号変換則による符号パターンに一致したとき
にBnaZS符号ブロックとして検出し、その検知出力
を零符号置換回路4に送る。
On the other hand, the Bn223 code detection circuit 5 constantly monitors the sign state of the n2 bits of received codes latched in the positive side shift register 1.1' and the negative side shift register 2.2'. The code pattern of the received code is B
When it matches the code pattern according to the n2ZS code conversion rule, it is detected as a BnaZS code block, and the detection output is sent to the zero code replacement circuit 4.

零符号置換回路4は、上記Bn1ZSnl検出回路3か
ら検知出力を受けるとシフトレジスタ1゜2にラッチさ
れているnl ビットからなるBn。
When the zero sign replacement circuit 4 receives the detection output from the Bn1ZSnl detection circuit 3, the zero sign replacement circuit 4 receives a Bn consisting of nl bits which is latched in the shift register 1.2.

ZS符号ブロックの正極側符号と負極側符号とを連続す
るn、個の“0”符号に置き換え、また上記Bn*ZS
符号検出回路5から検知出力を受けるとシフトレジスタ
1.1’ 、2.2’にラッチされているn2ビットか
らなるBn2ZS符号ブロックの正極側符号と負極側符
号とを連続するn。
The positive side code and the negative side code of the ZS code block are replaced with n consecutive “0” codes, and the above Bn*ZS
When the detection output from the code detection circuit 5 is received, the positive side code and the negative side code of the Bn2ZS code block consisting of n2 bits latched in the shift registers 1.1' and 2.2' are successively n.

個の“0”符号に置き換える。Replace with “0” codes.

そして、シフトレジスタ1′の出力端からクロックに同
期して順次読み出される出力符号を受信したバイポーラ
信号の正極側符号に、またシフトレジスタ2′の出力端
からクロックに同期して順次読み出される出力符号を受
信したバイポーラ信号の負極側符号として用いることに
より、元の符号列を復号する。
Then, the output code sequentially read out in synchronization with the clock from the output end of the shift register 1' becomes the positive polarity sign of the received bipolar signal, and the output code read out sequentially in synchronization with the clock from the output end of the shift register 2'. is used as the negative side code of the received bipolar signal to decode the original code string.

〔実施例〕〔Example〕

第2図は本発明の1実施例を示し、置換ビット数n1=
6としたB6ZS復号回路と置換ビット数n2=8とし
たB8ZS復号回路の2つの復号回路を1つの回路にま
とめたもので、6ビットの符号パターン(011011
)からなるB6ZS符号ブロックを6ビットの零符号(
000000)に置き換え、また8ビットの符号パター
ン(00011011)からなるB8ZS符号ブロック
を8ビットの零符号(00000000) に置き換え
るようにしたものである。
FIG. 2 shows one embodiment of the present invention, where the number of replaced bits n1=
It combines two decoding circuits into one circuit: a B6ZS decoding circuit with a 6-bit code and a B8ZS decoding circuit with a replacement bit number n2=8.
) is converted into a B6ZS code block consisting of a 6-bit zero code (
000000), and a B8ZS code block consisting of an 8-bit code pattern (00011011) is replaced with an 8-bit zero code (00000000).

受信したBnZS符号変換則によるバイポーラ信号の正
極側符号Pの入力するシフトレジスタ1はB6ZS符号
変換則に対応した6個のフリップフロップ(以下rFF
Jという)111〜116から構成され、これにB8Z
S符号変換則の置換ビット数n2=8とB6ZS符号変
換則の置換ビット数n、=8とのビット差に−2に相当
する2個(7)F F I It、 11aからなるシ
フトレジスタ1′をシフトレジスタlの最上位側に付加
し、この2つのシフトレジスタI、1′により全体とし
てn2ビットのシフトレジスタを構成している。
The shift register 1 to which the positive polarity sign P of the received bipolar signal according to the BnZS code conversion rule is input has six flip-flops (hereinafter referred to as rFF) corresponding to the B6ZS code conversion rule.
J) consists of 111 to 116, and B8Z
Shift register 1 consisting of two (7) F F I It, 11a corresponding to the bit difference between the number of replacement bits n2=8 of the S code conversion rule and the number of replacement bits n,=8 of the B6ZS code conversion rule, which is -2. ' is added to the most significant side of shift register l, and these two shift registers I and 1' constitute an n2-bit shift register as a whole.

また、バイポーラ信号の負極側符号Nの入力するシフト
レジスタ2にもそのビット差に〜2に相当する2個0F
F21.〜21gからなるシフトレジスタ2′を付加し
、この2つのシフトレジスタ2,2′により全体として
n2ビットのシフトレジスタを構成している。
In addition, the shift register 2 to which the negative polarity sign N of the bipolar signal is input also has two 0F bits corresponding to the bit difference of ~2.
F21. A shift register 2' consisting of .about.21g is added, and these two shift registers 2, 2' constitute an n2-bit shift register as a whole.

零符号置換回路41はFF42,43およびNOR回路
44.45から構成されており、FF42のQ出力はシ
フトレジスタ1のFF 111.113115.11.
とシフトレジスタ2のFF212.214のリセット端
子に、またFF43のQ出力はシフトレジスタ2のFF
 21.、213.2 Is、 21gとシフトレジス
タ1のFFII□、11.のリセット端子にそれぞれ接
続され、Bn、zs符号ブロックおよびBn2  ZS
符号ブロックの検出時に当該ブロックの符号列を“0”
符号に置換するように配線されている。
The zero sign replacement circuit 41 is composed of FFs 42, 43 and NOR circuits 44.45, and the Q output of the FF 42 is transmitted to the FFs 111.113115.11. of the shift register 1.
and the reset terminal of FF212 and 214 of shift register 2, and the Q output of FF43 is connected to FF of shift register 2.
21. , 213.2 Is, 21g and FFII□ of shift register 1, 11. are connected to the reset terminals of Bn, zs code block and Bn2 ZS, respectively.
When detecting a code block, set the code string of the block to “0”
It is wired to replace the code.

B6ZS符号ブロックの存在を検出するB6ZS符号検
出回路は正極側B6ZS符号検出回路31と負極側B6
ZS符号検出回路32の2つの回路から構成されており
、正極側B6ZS符号検出回路31はAND回路33,
34.35により、また負極側B6ZS符号検出回路3
2はAND回路36,37.38によりそれぞれ構成さ
れている。
The B6ZS code detection circuit that detects the presence of the B6ZS code block includes the positive side B6ZS code detection circuit 31 and the negative side B6
It is composed of two circuits, a ZS code detection circuit 32, and the positive side B6ZS code detection circuit 31 is an AND circuit 33,
According to 34.35, the negative polarity side B6ZS sign detection circuit 3
2 is constituted by AND circuits 36, 37, and 38, respectively.

上記AND回路33はシフトレジスタ1のFF11、〜
116のラッチ符号を、AND回路36はシフトレジス
タ2のFF21.〜216のラッチ符号をそれぞれ監視
し、またAND回路34はシフトレジスタ21のF F
 21+ 〜2 Is、 2 Isのラッチ符号を、A
ND回路37はシフトレジスタ11のFF 11+ 〜
11*、l Isのラッチ符号をそれぞれ監視している
The AND circuit 33 includes the FF11 of the shift register 1, -
116 latch code, the AND circuit 36 inputs the FF21 . ~216 latch codes are monitored, and the AND circuit 34 monitors the FF of the shift register 21.
21+ ~2 Is, the latch code of 2 Is is A
The ND circuit 37 connects the FF 11+ of the shift register 11 to
The latch codes of 11* and l Is are monitored, respectively.

さらに、B8ZS符号ブロックの存在を検出するB8Z
S符号検出回路は正極側B8ZS符号検出回路51と負
極側B8ZS符号検出回路52の2つの回路から構成さ
れ、正極側B8ZS符号検出回路51はAND回路53
とAND回路53゜54により、また負極側B8ZS符
号検出回路52はAND回路55.56によりそれぞれ
構成されている。
Additionally, B8Z detects the presence of a B8ZS code block.
The S code detection circuit is composed of two circuits, a positive side B8ZS code detection circuit 51 and a negative side B8ZS code detection circuit 52, and the positive side B8ZS code detection circuit 51 is an AND circuit 53.
and AND circuits 53 and 54, and the negative side B8ZS sign detection circuit 52 is constituted by AND circuits 55 and 56, respectively.

上記AND回路53はシフトレジスタl、1′のFF 
l 1+〜IIgのラッチ符号を、またAND回路55
はシフトレジスタ2,2′のFF21゜〜21.のラッ
チ符号をそれぞれ監視している。
The AND circuit 53 is the FF of shift registers l and 1'.
The latch codes of l 1+ to IIg and the AND circuit 55
are FF21° to 21. of shift registers 2 and 2'. The latch code of each is monitored.

先ず最初に、B6ZS符号変換則によるバイポーラ信号
の場合の復号動作について第3図のタイムチャートを参
照して説明する。なお、第3図の各波形(a)〜(1)
′は第2図中に記入した(a)〜(i)′位置の各波形
に対応するものである。
First, the decoding operation for a bipolar signal based on the B6ZS code conversion rule will be explained with reference to the time chart of FIG. In addition, each waveform (a) to (1) in Fig. 3
'corresponds to each waveform at positions (a) to (i)' drawn in FIG.

受信されたB6ZS符号変換則によるバイポーラ信号が
第3図(5)に示すようなNRZ信号であるものとする
と、このバイポーラ信号は同図(C)(d)に示すよう
な正極側符号Pと負極側符号Nの2つのユニポーラ信号
に変換された後、シフトレジスタ1.2にそれぞれ入力
される。
Assuming that the received bipolar signal based on the B6ZS code conversion rule is an NRZ signal as shown in Figure 3 (5), this bipolar signal has a positive polarity code P as shown in Figures (C) and (d). After being converted into two unipolar signals of negative polarity sign N, they are input to the shift register 1.2, respectively.

シフトレジスタ1の入力端子61に第3図(C)に示す
符号列からなる正極側符号Pが入力すると、この正極側
符号Pは同図(a)に示すクロック・CKに同期してF
FIII〜118に1ビットづつシフトされながら順次
ラッチされる。
When the positive side code P consisting of the code string shown in FIG. 3(C) is input to the input terminal 61 of the shift register 1, this positive side code P becomes F in synchronization with the clock CK shown in FIG. 3(a).
The data is sequentially latched while being shifted one bit at a time from FIII to F118.

一方、シフトレジスタ20入力端子62に第3図(d)
に示す負極側符号Nが入力すると、この負極側符号Nは
クロックCKに同期してFF211〜218に1ビット
づつシフトされながら順次ラッチされる。
On the other hand, the input terminal 62 of the shift register 20 is connected to the input terminal 62 of the shift register 20 as shown in FIG.
When the negative polarity side code N shown in is input, this negative polarity side code N is sequentially latched while being shifted one bit at a time to the FFs 211 to 218 in synchronization with the clock CK.

いま、第3図(6)中にブロックB1として示すように
受信したバイポーラ信号中に6ビットの符号パターン(
011011)からなるB6ZS符号ブロックが存在す
ると、T1時点においてシフトレジスタlのFF 11
6〜11+には第3図(e)〜(J)に示すように符号
(000101)がラッチされた状態となり、またシフ
トレジスタ2OFF21s〜211には同図に)〜(r
)に示すように符号(101000)がラッチされた状
態となる。
Now, as shown as block B1 in FIG. 3(6), a 6-bit code pattern (
011011), FF 11 of shift register l exists at time T1.
As shown in FIG. 3(e) to (J), the code (000101) is latched to 6 to 11+, and the code (000101) is latched to shift registers 2OFF21s to 211, as shown in FIG.
), the code (101000) is in a latched state.

したがって、上記T1時点で、負極側B6ZS符号検出
回路32内のAND回路36はシフトレジスタ2のFF
21s〜21. にラッチされたB6ZS符号に特有の
負極側符号パターン(101000)を検出して第3図
(C)′ に示すように出力“1”となり、またAND
回路37はシフトレジスタlのFF I Is、 11
3〜11.にラッチされたB6ZS符号に特有の正極側
符号パターン(0101)を検出して同図(a)′に示
すように出力″1″となり、この2つのAND回路の出
力“1”を受けてAND回路38は同図(e)′に示す
ように出力“1”となり、零符号置換回路41内のNO
R回路45に出力“1′″を送る。
Therefore, at the time T1, the AND circuit 36 in the negative side B6ZS code detection circuit 32 is connected to the FF of the shift register 2.
21s~21. The negative side code pattern (101000) peculiar to the B6ZS code latched in is detected, and the output becomes "1" as shown in Figure 3(C)'.
The circuit 37 is the FF I Is of the shift register l, 11
3-11. The positive side code pattern (0101) peculiar to the B6ZS code latched in is detected, and the output is "1" as shown in FIG. The circuit 38 outputs “1” as shown in FIG.
The output “1′” is sent to the R circuit 45.

零符号置換回路41内のNOR回路45は上記AND回
路38から出力“l”を受けて第3図(Ω′に示すよう
に出力“0”となり、続<T2時点のクロックCKによ
りこのNOR回路45の出力“0”がFF43にセット
され、FF43は同図(社)′に示すように出力Q=“
0”となる。
The NOR circuit 45 in the zero sign replacement circuit 41 receives the output "l" from the AND circuit 38 and becomes the output "0" as shown in FIG. 45's output "0" is set to FF43, and FF43 outputs Q=" as shown in the same figure.
0”.

上記のよ゛うにしてFF43の出力がQ=“0″になる
と、このFF43のQ=“0″により第3図(e)〜(
J)、(ホ)〜(r)゛に示すようにシフトレジスタ2
OFF 21+、 213.2 Is、 2 Is と
シフトレジスタ1のFF 112.114がリセットさ
れる。この結果、6ビットのB6ZS符号ブロックB1
に対応するシフトレジスタ1.2のFF11+ 〜11
6とFF211〜216がすべてQ=“0”(ご置き換
えられる。
When the output of FF43 becomes Q="0" as described above, Q="0" of FF43 causes the output of FIG. 3(e) to (
As shown in J), (E) to (R)゛, the shift register 2
OFF 21+, 213.2 Is, 2 Is and FF 112.114 of shift register 1 are reset. As a result, a 6-bit B6ZS code block B1
FF11+ ~11 of shift register 1.2 corresponding to
6 and FF211 to 216 are all Q="0" (replaced.

上記2つのシフトレジスタ1.2にラッチされた連続す
る6個の“0”符号は引き続いて到来するクロックCK
に同期して1ビットづつ順次シフトされ、シフトレジス
タ1’、2’の出力端子65.66から第3図(1)(
t)に示すように正負両極のユニポーラ信号としてそれ
ぞれ読み出される。
The six consecutive “0” codes latched in the above two shift registers 1.2 correspond to the successively arriving clock CK.
The output terminals 65 and 66 of shift registers 1' and 2' are sequentially shifted one bit at a time in synchronization with FIG. 3 (1) (
As shown in t), the signals are read out as unipolar signals of both positive and negative polarities.

そして、上記シフトレジスタ1’、2’から読み出され
た上記正負両極の2つのユニポーラ信号をOR回路63
を通して合成することにより、同図(i)′に示すよう
にバイポーラ信号中のB6ZS符号ブロックB1の符号
パターン(011011)を6ビットの零符号(000
000)によって置換した元の符号列が復号される。
Then, the two unipolar signals of both positive and negative polarities read out from the shift registers 1' and 2' are sent to an OR circuit 63.
By combining the code pattern (011011) of the B6ZS code block B1 in the bipolar signal with the 6-bit zero code (000
000) is decoded.

なお、上述したブロックB1の復号動作は、ブロックB
1の開始する直前の符号“1”が第3図(d)中に符号
N1として示すように負極側にある場合のものであるが
、例えば次のブロックB2に示すように、ブロックB2
の開始する直前の符号“1″が同図(C)中に符号Ps
 として示すように正極側にある場合には、上記動作と
は逆に正極側B6ZS符号検出回路31によりブロック
B1の存在が検出され、零符号置換回路41のFF42
によりシフトレジスタ1.2の各FFがリセットされ、
ブロックB2は6ビットの零符号(000000)に置
換される。
Note that the decoding operation of block B1 described above is similar to that of block B1.
This is a case where the code "1" immediately before the start of 1 is on the negative side as shown by the code N1 in FIG. 3(d), but for example, as shown in the next block B2,
The code "1" immediately before the start of is the code Ps in the same figure (C).
When the block B1 is on the positive side as shown in , the presence of the block B1 is detected by the positive side B6ZS code detection circuit 31, contrary to the above operation, and the FF42 of the zero sign replacement circuit 41
Each FF of shift register 1.2 is reset by
Block B2 is replaced with a 6-bit zero code (000000).

次に、B8ZS符号変換則によるバイポーラ信号の場合
の復号動作について第4図のタイムチャ−トを参照して
説明する。なお、第4図の各波形(a)〜(1)′は第
2図中に記入した(a)〜(1)′位置の各波形に対応
するものである。
Next, the decoding operation for bipolar signals according to the B8ZS code conversion rule will be explained with reference to the time chart of FIG. The waveforms (a) to (1)' in FIG. 4 correspond to the waveforms at positions (a) to (1)' shown in FIG.

B8ZS符号の復号の場合、8ビットからなるB8ZS
符号ブロックの符号パターン(00011011)を8
ビットの零符号(00000000)に置き換えること
により元の符号列を復号する。この例におけるB8ZS
符号の符号パターン(00011011)は、上記した
B6ZS符号の符号パターン(011011)に2ビッ
トの符号(00)を付加することによりB8zS符号用
の符号パターン(00011011)を構成している。
In the case of B8ZS code decoding, B8ZS consisting of 8 bits
The code pattern (00011011) of the code block is 8
The original code string is decoded by replacing the bits with zero codes (00000000). B8ZS in this example
The code pattern (00011011) of the code constitutes the code pattern (00011011) for the B8zS code by adding a 2-bit code (00) to the code pattern (011011) of the B6ZS code described above.

第4図のタイムチャート中のB8ZS符号ブロックB1
の復号動作について説明すると、T、時点においてシフ
トレジスタ1,1′のFF11a〜111には第4図(
e)〜(1)に示すように符号(10001000)が
ラッチされた状態となり、またシフトレジスタ2,2′
のFF21s〜21.には同図(ホ)〜(1)に示すよ
うに符号(00000101)がラッチされた状態とな
る。
B8ZS code block B1 in the time chart of Fig. 4
To explain the decoding operation of FIG.
As shown in e) to (1), the code (10001000) is latched, and the shift registers 2 and 2'
FF21s~21. As shown in (E) to (1) of the figure, the code (00000101) is latched.

したがって、上記T1時点で、正極側B8ZS符号検出
回路51内のAND回路53がシフトレジスタ1.1′
のFF11a〜11.にラッチされたB8ZS符号に特
有の正極側符号パターン(10001000)を検出し
て第4図(u)に示すように出力“l”となり、また正
極側B6ZS符号検出回路31内のAND回路34がシ
フトレジスタ2のFF215,21.〜211にラッチ
されたB8zS符号に特有の負極側符号パターン(01
01)を検出して同図(V)に示すように出力“1″と
なり、この2つのAND回路の出力“1”を受けてAN
D回路54は同図(X)に示すように出力“1”となり
、零符号置換回路41のNOR回路44に出力“1”を
送る。
Therefore, at the time T1, the AND circuit 53 in the positive side B8ZS code detection circuit 51 selects the shift register 1.1'.
FF11a-11. The positive side code pattern (10001000) peculiar to the B8ZS code latched in is detected, and the output becomes "l" as shown in FIG. 4(u), and the AND circuit 34 in the positive side B6ZS code detection circuit 31 FF215, 21 . of shift register 2. The negative side code pattern (01
01) is detected and the output becomes "1" as shown in the same figure (V), and upon receiving the output "1" of these two AND circuits, the AN
The D circuit 54 outputs "1" as shown in FIG.

零符号置換回路41内のNOR回路44は上記AND回
路54から出力“1”を与えられて第4図(Z)に示す
ように出力“0”となり、続<T2時点のクロックCK
により上記NOR回路44の出力“0″′がFF42に
セットされ、FF42は同図(8)′に示すように出力
Q=“0”となる。
The NOR circuit 44 in the zero sign replacement circuit 41 is given the output "1" from the AND circuit 54 and becomes the output "0" as shown in FIG.
As a result, the output "0"' of the NOR circuit 44 is set in the FF 42, and the output Q of the FF 42 becomes "0" as shown in (8)'.

上記にようにしてFF42の出力がQ=“0”になると
、このFF42のQ = 11011により第41m 
(e)〜(1)、(ホ)〜(1)に示すようにシフトレ
ジスタ1のFF I L、 113. I Is、 1
 ill とシフトレジスタ2のFF 212.214
がリセットされ、B8ZS符号ブロックB1に対応する
シフトレジスタ1゜1′とシフトレジスタ2,2′のす
べてOFFがQ=“0”に置き換えられる。
When the output of FF42 becomes Q="0" as described above, the 41st m
As shown in (e) to (1) and (e) to (1), FF I L of shift register 1, 113. I Is, 1
ill and shift register 2 FF 212.214
is reset, and the OFF state of shift register 1°1' and shift registers 2 and 2' corresponding to B8ZS code block B1 is replaced with Q="0".

上記シフトレジスタの各FFにラッチされた8ビットの
“0”符号は引き続いて到来するクロックC,Kに同期
して1ビットづつ順次シフトされ、シフトレジスタ1’
、2’の出力端子65.66から第4図(1)(t)に
示すような正負両極のユニポーラ信号としてそれぞれ読
み出される。
The 8-bit "0" code latched in each FF of the shift register is sequentially shifted one bit at a time in synchronization with the successively arriving clocks C and K, and the shift register 1'
, 2' are read out as unipolar signals having both positive and negative polarities as shown in FIG. 4(1)(t).

そして、上記シフトレジスタ1’、2’から読み出され
た上記正負両極の2つのユニポーラ信号をOR回路63
を通して合成することにより、同図(1)′に示すよう
にバイポーラ信号中のB8ZS   4符号ブロックB
1の符号パターン(00011011)を6ビットの零
符号(00000000’)によって置換した元の符号
列が復号される。
Then, the two unipolar signals of both positive and negative polarities read out from the shift registers 1' and 2' are sent to an OR circuit 63.
By combining the B8ZS 4 code blocks B in the bipolar signal as shown in (1)' in the same figure,
The original code string in which the 1 code pattern (00011011) is replaced with a 6-bit zero code (00000000') is decoded.

なお、上記した実施例は置換ビット数の小さいB6ZS
符号の符号パターン(011011)を置換ビット数の
大きなり8ZS符号の符号パターン(00011011
)の一部として共用した場合について例示したが、B6
ZS符号検出回路31.32とB8zS符号検出回路5
1.52の回路構成を変えることによりそれぞれの符号
変換則ごとに独自のBnZS符号パターンを採用するこ
ともできる。
Note that the above embodiment uses B6ZS with a small number of replacement bits.
Replace the code pattern (011011) of the code with the code pattern (00011011) of the 8ZS code with a large number of bits.
), but B6
ZS code detection circuit 31, 32 and B8zS code detection circuit 5
By changing the circuit configuration of 1.52, a unique BnZS code pattern can be adopted for each code conversion rule.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、置換ビット数の異なる2つのBnZS
復号回路を1つの回路で構成して回路規模を小さくでき
るとともに、BnZS符号変換則の変更に伴う回路の切
り換えを自動的に行うことができる。
According to the present invention, two BnZSs with different numbers of replacement bits
By configuring the decoding circuit with one circuit, the circuit scale can be reduced, and the circuit can be automatically switched in accordance with a change in the BnZS code conversion rule.

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

第1図は本発明の原理を示す図、 第2図は本発明の実施例を示す図、 第3図は上記実施例のB6ZS符号の復号時のタイムチ
ャート、 第4図は上記実施例のB8ZS符号の復号時のタイムチ
ャートである。 1.1’ 、2.2’ はシフトレジスタ、3はBnt
 zs符号検出回路、4は零符号置換回路、5はBn2
ZS符号検出回路、n、、n2はBnZS符号の置換ビ
ット数、kはn、とn2のビット差である。
Fig. 1 is a diagram showing the principle of the present invention, Fig. 2 is a diagram showing an embodiment of the invention, Fig. 3 is a time chart during decoding of the B6ZS code of the above embodiment, and Fig. 4 is a diagram of the above embodiment. It is a time chart at the time of decoding of B8ZS code. 1.1', 2.2' are shift registers, 3 is Bnt
zs code detection circuit, 4 is zero code replacement circuit, 5 is Bn2
In the ZS code detection circuit, n, , n2 is the number of replacement bits of the BnZS code, and k is the bit difference between n and n2.

Claims (1)

【特許請求の範囲】 置換ビット数n_1からなるBn_1ZS符号変換則に
対応したn_1ビット構成の2つのシフトレジスタ(1
,2)を備え、一方のシフトレジスタには受信したBn
_1ZS符号変換則によるバイポーラ信号の正極側符号
を順次入力してラッチするとともに、他方のシフトレジ
スタには受信したバイポーラ信号の負極側符号を順次入
力してラッチし、この2つのシフトレジスタにラッチさ
れる受信符号の符号状態をBn_1ZS符号検出回路(
3)により監視して受信符号中のBn_1ZS符号ブロ
ックを検出し、Bn_1ZS符号ブロックを検出したと
きは上記2つのシフトレジスタにラッチされているBn
_1ZS符号ブロックの正極側符号と負極側符号とを零
符号置換回路(4)によりn_1個の“0”符号に置き
換え、上記正極側のシフトレジスタから順次読み出され
る出力符号をバイポーラ信号の正極側符号として、また
上記負極側のシフトレジスタから順次読み出される出力
符号をバイポーラ信号の負極側符号として用いることに
より元の符号列を復号するようにしたディジタル伝送装
置の復号回路において、 Bn_2ZS符号変換則の置換ビット数n_2(n_2
>n_1)と上記Bn_1ZS符号変換則の置換ビット
数n_1とのビット差kに相当する段数のシフトレジス
タ(1′,2′)を上記2つのシフトレジスタ(1,2
)のそれぞれの最上位ビット側に付加することによりn
_2ビット構成の正負2組のシフトレジスタを構成し、 このn_2ビット構成になる正負2組のシフトレジスタ
にラッチされる受信符号の符号状態を監視して受信符号
中のBn_2ZS符号ブロックを検出するBn_2ZS
符号検出回路(5)を設け、このBn_2ZS符号検出
回路が受信符号中のBn_2ZS符号ブロックを検出し
たときは、上記正負2組のシフトレジスタにラッチされ
ているBn_2ZS符号ブロックの正極側符号と負極側
符号とを上記零符号置換回路(4)によりn_2個の“
0”符号に置き換えるようにしたことを特徴とするディ
ジタル伝送装置の復号回路。
[Claims] Two shift registers (1
, 2), and one shift register stores the received Bn
_1 The positive side sign of the bipolar signal according to the ZS code conversion rule is sequentially input and latched, and the negative side sign of the received bipolar signal is sequentially input and latched to the other shift register, and the latched signal is latched by these two shift registers. The code state of the received code is detected by the Bn_1ZS code detection circuit (
3) to detect the Bn_1ZS code block in the received code, and when the Bn_1ZS code block is detected, the Bn_1ZS code block latched in the above two shift registers is
The positive side code and the negative side code of the _1ZS code block are replaced with n_1 "0" codes by the zero code replacement circuit (4), and the output codes sequentially read from the positive side shift register are used as the positive side sign of the bipolar signal. Also, in a decoding circuit of a digital transmission device that decodes the original code string by using the output codes sequentially read from the negative side shift register as the negative side code of the bipolar signal, the Bn_2ZS code conversion rule is replaced. Number of bits n_2 (n_2
> n_1) and the number of replacement bits n_1 of the above Bn_1ZS code conversion rule.
) by adding n to the most significant bit side of each
Bn_2ZS constitutes two sets of positive and negative shift registers each having a _2-bit structure, and detects a Bn_2ZS code block in the received code by monitoring the code state of the received code latched by the two sets of positive and negative shift registers each having an n_2-bit structure.
A code detection circuit (5) is provided, and when this Bn_2ZS code detection circuit detects a Bn_2ZS code block in the received code, it detects the positive side code and the negative side of the Bn_2ZS code block latched in the two sets of positive and negative shift registers. The above zero sign replacement circuit (4) converts the code into n_2 “
1. A decoding circuit for a digital transmission device, characterized in that the decoding circuit replaces the code with a 0'' code.
JP2882888A 1988-02-12 1988-02-12 Decoding circuit for digital transmission equipment Pending JPH01205627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2882888A JPH01205627A (en) 1988-02-12 1988-02-12 Decoding circuit for digital transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2882888A JPH01205627A (en) 1988-02-12 1988-02-12 Decoding circuit for digital transmission equipment

Publications (1)

Publication Number Publication Date
JPH01205627A true JPH01205627A (en) 1989-08-18

Family

ID=12259250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2882888A Pending JPH01205627A (en) 1988-02-12 1988-02-12 Decoding circuit for digital transmission equipment

Country Status (1)

Country Link
JP (1) JPH01205627A (en)

Similar Documents

Publication Publication Date Title
US6195764B1 (en) Data encoder/decoder for a high speed serial link
US8159375B2 (en) Simplified receiver for use in multi-wire communication
JP2886214B2 (en) Encoding method and encoding device
JP2011502401A (en) Coding and decoding techniques with improved timing margin
JP3264670B2 (en) Data communication system
JPS63191442A (en) Data modulation interface
US8331405B2 (en) Mechanism for channel synchronization
JPH01205627A (en) Decoding circuit for digital transmission equipment
JPH01205628A (en) Code converting circuit for digital transmission equipment
JPS5840859B2 (en) data communication system
JP6192642B2 (en) Circuit apparatus and method for encoding and / or decoding
JPH02224432A (en) Apparatus and method of link transfer
JPH0279514A (en) Detection circuit for erroneous continuation of zero
JP2576526B2 (en) I / O signal monitoring circuit
JPS6386642A (en) Data transmission system
JPS6234422A (en) Transmission system for digital signal
JPH01231527A (en) Detecting system for c-bit rule error
JPH07202875A (en) Frame synchronization detection method
JPS63197151A (en) Serial data transfer system
JPH07141214A (en) Data transfer error detecting device
JPS6382038A (en) Digital communication system
JPH0352416A (en) B8zs pattern detection circuit
JPS6313446A (en) Data error correcting circuit
JPS5863253A (en) Digital series interface with decoded logic
JPS59107671A (en) Circuit for detecting error in code rule