JPS61287314A - Scrambler/descrambler circuit - Google Patents

Scrambler/descrambler circuit

Info

Publication number
JPS61287314A
JPS61287314A JP60129196A JP12919685A JPS61287314A JP S61287314 A JPS61287314 A JP S61287314A JP 60129196 A JP60129196 A JP 60129196A JP 12919685 A JP12919685 A JP 12919685A JP S61287314 A JPS61287314 A JP S61287314A
Authority
JP
Japan
Prior art keywords
circuit
exclusive
output
stage
shift register
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
JP60129196A
Other languages
Japanese (ja)
Inventor
Junichi Asada
浅田 淳一
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60129196A priority Critical patent/JPS61287314A/en
Publication of JPS61287314A publication Critical patent/JPS61287314A/en
Pending legal-status Critical Current

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

PURPOSE:To simplify the circuit by resetting a counter circuit into the initial state while an exclusive OR between an input to a shift register and an output of the 8th stage as a reset pulse synchronous with a clock of 1-bit width so as to eliminate the need for a one-shot pulse generating circuit required for a conventional circuit. CONSTITUTION:An exclusive OR between the input to the shift register 2 and the output of the 8th stage are used to reset a synchronous counter circuit 5 synchronously with a clock signal S1. If disadvantage exists in an input data S6, the counter circuit 5 detecting the disadvantage counts the clock signal S1 by 32 bits and when the disadvantage is not eliminated during the period, a carry output S5 is outputted to invert an output of the exclusive NOR. When the disadvantage is lost, a reset pulse S4 being an output of the exclusive OR circuit 4 ORing exclusively the output of a selection circuit 1 and the output of the 8th stage of the shift register 2 loads all '0' to Q1-Q5 of the counter circuit 5 synchronously with the clock signal S1 to set the counter circuit 5 to the initial state. Thus, the conventional one-shot pulse generating circuit is omitted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、CCITT勧告V、35に準拠したスクラン
ブラ・デスクランブラ回路に関し、特に特定の繰り返し
パターンが存在する不利状態の検出回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a scrambler/descrambler circuit compliant with CCITT Recommendation V, 35, and more particularly to a detection circuit for an adverse condition in which a specific repeating pattern exists.

〔概要〕〔overview〕

本発明のスクランブラ・デスクランブラ回路は、シフト
レジスタの入力と8段目出力の排他的論理和を1ビット
幅のクロックで同期したリセットパルスとして計数回路
を初期状態にリセットすることにより、 従来必要として単一パルス発生回路を不要としたもので
ある。
The scrambler/descrambler circuit of the present invention resets the counting circuit to its initial state by using the exclusive OR of the input of the shift register and the output of the 8th stage as a reset pulse synchronized with a 1-bit width clock, thereby solving the problems that were previously required. This eliminates the need for a single pulse generation circuit.

〔従来の技術〕[Conventional technology]

従来、この種のスクランブラ・デスクランブラ回路は、
第3図および第4図に示すように、スクランブラとして
動作する場合は、選択回路lで入力端子13より入力さ
れるスクランブラ・デスクランブラ切替え信号S7によ
ってA側が選択され、入力端子11よりスクランブルさ
れる入力データS6が排他的否定論理和回路6の出力と
排他的論理和回路7で排他的論理和をとられ、選択回路
1の出力として入力端子12より入力されるクロック信
号S1によってシフトされる20段のシフトレジスタ2
の入力となる。このシフトレジスタ2の3段目出力と2
0段目出力が排他的論理和回路3で排他的論理和をとら
れ、さらに排他的否定論理和回路6で、排他的論理和回
路3の出力と、不利状態を検出する計数回路5aのキャ
リー出力S5が排他的否定論理和をとられた後、排他的
論理和回路7で、排他的否定論理和回路6の出力は入力
データS6と排他的論理和をとられ、出力端子14へ出
力されるとともに選択回路1へ再び入力される。以上の
繰り返しで人力データS6にスクランブルがかけられる
Conventionally, this type of scrambler/descrambler circuit is
As shown in FIGS. 3 and 4, when operating as a scrambler, the A side is selected by the scrambler/descrambler switching signal S7 inputted from the input terminal 13 in the selection circuit l, and the scrambler is inputted from the input terminal 11. The input data S6 is subjected to an exclusive OR with the output of the exclusive NOR circuit 6 and is shifted by the clock signal S1 input from the input terminal 12 as the output of the selection circuit 1. 20-stage shift register 2
becomes the input. The third stage output of this shift register 2 and 2
The output of the 0th stage is subjected to an exclusive OR in an exclusive OR circuit 3, and further, in an exclusive NOR circuit 6, the output of the exclusive OR circuit 3 and a carry of the counting circuit 5a for detecting an unfavorable state are obtained. After the output S5 is subjected to an exclusive NOR, the output of the exclusive NOR circuit 6 is subjected to an exclusive OR with the input data S6, and is output to the output terminal 14. At the same time, the signal is input again to the selection circuit 1. By repeating the above steps, the manual data S6 is scrambled.

このとき、特定の繰り返しパターンが存在するような不
利状態を検出するために、計数回路5aでクロック信号
S1を32ビツト計数し、その間不利状態が連続した場
合は、計数回路5aよりキャリー出力S5を発生し排他
的否定論理和回路6の出力を反転させ、不利状態を阻止
する。また不利状態がない場合シフトレジスタ2の1段
目と、9段目出力の排他的論理和をとる排他的論理和回
路4でトリガパルスS2を発生し、論理積回路8でクロ
ック信号S1で打ち抜かれたパルスs3で単一パルス発
生回路9を動作させる。単一パルス発生回路9では1ク
ロツクの半周期内のりセットパルスS4aを発生し、計
数回路5aをクロック信号S1に非同期で初期状態にリ
セットする。
At this time, in order to detect an unfavorable state in which a specific repeating pattern exists, the counting circuit 5a counts the clock signal S1 by 32 bits, and if the unfavorable state continues during that time, the counting circuit 5a outputs a carry output S5. This occurs and the output of the exclusive NOR circuit 6 is inverted to prevent the disadvantageous state. If there is no disadvantageous state, the exclusive OR circuit 4 that takes the exclusive OR of the outputs of the first stage and the ninth stage of the shift register 2 generates a trigger pulse S2, and the AND circuit 8 generates a trigger pulse S2 using the clock signal S1. The single pulse generation circuit 9 is operated with the removed pulse s3. The single pulse generating circuit 9 generates a reset pulse S4a within a half period of one clock, and resets the counting circuit 5a to the initial state asynchronously to the clock signal S1.

またデスクランブラとして動作する場合は、選択回路1
で切替え信号S7によりB側が選択され、次段のシフト
レジスタ2へ入力される。以後上記スクランブラと同様
の動作を行い出力端子14にデスクランブルデータとし
て出力される。
In addition, when operating as a descrambler, the selection circuit 1
The B side is selected by the switching signal S7 and input to the shift register 2 at the next stage. Thereafter, it performs the same operation as the scrambler described above and is outputted to the output terminal 14 as descrambled data.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のスクランブラ・デスクランブラ回路は、
不利状態を検出、阻止するために単一パルス発生回路9
が必要であり、回路が複雑になるという欠点がある。
The conventional scrambler/descrambler circuit described above is
Single pulse generation circuit 9 to detect and prevent adverse conditions
The disadvantage is that the circuit is complicated.

本発明の目的は、上記の欠点を除去することにより、単
一パルス発生回路が不要な簡単な回路構成のスクランブ
ラ・デスクランブラ回路を提供することにある。
An object of the present invention is to provide a scrambler/descrambler circuit with a simple circuit configuration that does not require a single pulse generation circuit by eliminating the above-mentioned drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のスクランブラ・デスクランブラ回路は、スクラ
ンブルデータとデスクランブルデータとの入力を直列入
力とするシフトレジスタ(2)と、この選択回路の出力
を直列入力とするシフトレジスタ(2)と、このシフト
レジスタの3段目出力と20段目出力の排他的論理和を
とる第1の排他的論理和回路(3)と、クロック信号を
計数する計数回路(5)と、上記選択回路の出力と上記
シフトレジスタの8段目出力の排他的論理和をとり上記
クロック信号に同期して上記計数回路のリセットパルス
を出力する第2の排他的論理和回路(4)と、上記第1
の排他的論理和回路の出力と上記計数回路の出力の排他
的否定論理和をとる排他的否定論理和回路(6)と、こ
の排他的否定論理和回路(6)の出力と入力データ信号
の排他的論理和をとり上記選択回路および出力端子に出
力する第3の排他的論理和回路(7)とを備えたことを
特徴とする。
The scrambler/descrambler circuit of the present invention includes a shift register (2) that receives scrambled data and descrambled data as serial inputs, a shift register (2) that receives the output of this selection circuit as serial inputs, and A first exclusive OR circuit (3) that takes the exclusive OR of the output of the third stage and the output of the 20th stage of the shift register, a counting circuit (5) that counts the clock signal, and the output of the selection circuit. a second exclusive OR circuit (4) that performs an exclusive OR of the outputs of the eighth stage of the shift register and outputs a reset pulse for the counting circuit in synchronization with the clock signal;
An exclusive NOR circuit (6) which takes the exclusive NOR of the output of the exclusive OR circuit and the output of the counting circuit, and an exclusive NOR circuit (6) which takes the exclusive NOR of the output of the exclusive NOR circuit (6) and the output of the input data signal. The present invention is characterized by comprising a third exclusive OR circuit (7) which calculates an exclusive OR and outputs the result to the selection circuit and the output terminal.

〔作 用〕[For production]

本発明は、シフトレジスタの入力と8段目出力の排他的
論理和を1ピント幅のクロックで同期したリセットパル
スとして計数回路を初期状態にリセットすることにより
、従来必要としていたリセットパルス発生用の単一パル
ス発生回路が不要となる。
The present invention resets the counting circuit to its initial state by using the exclusive OR of the input of the shift register and the output of the 8th stage as a reset pulse synchronized with a 1-pin width clock. A single pulse generation circuit is not required.

〔実施例〕〔Example〕

以下、本発明について図面を参照して説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

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

本実施例は、入力端子13から入力される切替え信号S
7によりスクランブルデータとデスクランブルデータの
人力を直列入力とするシフトレジスタ1と、この選択回
路1の出力を入力とする20段のシフトレジスタ2と、
このシフトレジスタ2の3段目出力と20段目出力の排
他的論理和をとる第1の排他的論理和回路3と、入力端
子12に入力されるクロック信号SLにより計数する同
期式の計数回路5と、選択回路1の出力とシフトレジス
タ2の8段目出力の排他的論理和をとりクロック信号S
1に同期して計数回路5のリセットパルスS2を出力す
る第2の排他的論理和回路4と、排他的論理和回路3の
出力と計数回路5のキャリー出力S5の排他的否定論理
和をとる排他的否定論理和回路6と、この排他的否定論
理和回路6の出力と入力データ信号S6の排他的論理和
をとり選択回路1および出力端子14に出力する第3の
排他的論理和回路7とを備えている。
In this embodiment, the switching signal S input from the input terminal 13 is
7, a shift register 1 receives scrambled data and descrambled data manually as input in series, and a 20-stage shift register 2 receives the output of this selection circuit 1 as input,
A first exclusive OR circuit 3 that takes the exclusive OR of the output of the third stage and the output of the 20th stage of the shift register 2, and a synchronous counting circuit that performs counting using the clock signal SL input to the input terminal 12. 5, the exclusive OR of the output of the selection circuit 1 and the output of the 8th stage of the shift register 2, and generates the clock signal S.
A second exclusive OR circuit 4 outputs a reset pulse S2 of the counting circuit 5 in synchronization with 1, and an exclusive NOR of the output of the exclusive OR circuit 3 and the carry output S5 of the counting circuit 5 is performed. an exclusive NOR circuit 6; and a third exclusive OR circuit 7 which performs the exclusive OR of the output of the exclusive NOR circuit 6 and the input data signal S6 and outputs the exclusive OR to the selection circuit 1 and the output terminal 14. It is equipped with

すなわち、本発明の特徴はシフトレジスタの入力と8段
目出力との排他的論理積を用いて計数回路5のリセット
をクロック信号S1に同期して行うようにした点にある
。従って計数回路5としては同期式の回路が用いられる
That is, the feature of the present invention is that the counting circuit 5 is reset in synchronization with the clock signal S1 using the exclusive AND of the input of the shift register and the output of the eighth stage. Therefore, as the counting circuit 5, a synchronous type circuit is used.

次に、第2図に示す動作タイミングチャートを参照して
、本実施例の動作について説明する。スクランブラとし
て動作する場合は、選択回路lで入力端子13より人力
されるスクランブラ・デスクランブラ切替え信号S7に
よってA側が選択され、排他的論理和回路7で排他的否
定論理和回路6の出力と排他的論理和をとられる入力端
子11より入力された入力データが選択回路1より出力
され、入力端子12より入力されたクロック信号S1に
よってシフトされる20段のシフトレジスタ2へ入力さ
れる。このシフトレジスタ2の3段目出力と20段目出
力の排他的論理和が排他的論理和回路3でとられ、その
出力が不利状態を検出する計数回路5のキャリー出力S
5と排他的否定論理和回路6で排他的否定論理和をとら
れる。排他的否定論理和回路6の出力は入ノ]データS
6と排他的論理和回路7で排他的論理和をとられ出力端
子14ヘスクランプルデータとして出力されるとともに
、再び選択回路1へ人力され、同様の動作が繰り返され
る。
Next, the operation of this embodiment will be explained with reference to the operation timing chart shown in FIG. When operating as a scrambler, the A side is selected by the scrambler/descrambler switching signal S7 input from the input terminal 13 in the selection circuit l, and the output of the exclusive NOR circuit 6 is selected in the exclusive OR circuit 7. Input data input from the input terminal 11 that is subjected to the exclusive OR is outputted from the selection circuit 1 and inputted to the 20-stage shift register 2 which is shifted by the clock signal S1 input from the input terminal 12. The exclusive OR of the third stage output and the 20th stage output of the shift register 2 is taken by the exclusive OR circuit 3, and the output is a carry output S of the counting circuit 5 that detects a disadvantageous state.
5 and an exclusive NOR circuit 6 performs exclusive NOR. The output of the exclusive NOR circuit 6 is the input data S
6 and the exclusive OR circuit 7 and output as scrambled data to the output terminal 14, the data is input again to the selection circuit 1 and the same operation is repeated.

また、入力データS6に不利状態がある場合は、不利状
態を検出する計数回路5でクロック信号S1を32ビツ
ト計数し、その間に不利状態が解除されない場合は、キ
ャリー出力S5を出力し排他的否定論理和出力を反転す
る。結果として入力データが反転され不利状態が消滅す
る。また計数回路5で32ビツト計数する間に不利状態
が消滅した場合は、選択回路1の出力とシフトレジスタ
2の8段目出力の排他的論理和をとった排他的論理和回
路4の出力であるリセットパルスS4で、計数回路5を
クロック信号Slに同期してQ1〜Q5ヘオールOをロ
ードし初期状態に設定する。
Furthermore, if the input data S6 has a disadvantageous state, the counting circuit 5 for detecting the disadvantageous state counts the clock signal S1 in 32 bits, and if the disadvantageous state is not canceled during that time, a carry output S5 is output and exclusive negation is performed. Inverts the OR output. As a result, the input data is inverted and the disadvantageous state disappears. If the disadvantageous state disappears while the counting circuit 5 is counting 32 bits, the output of the exclusive OR circuit 4 which is the exclusive OR of the output of the selection circuit 1 and the output of the 8th stage of the shift register 2 is used. With a certain reset pulse S4, the counting circuit 5 is loaded with the Q1 to Q5 heel O in synchronization with the clock signal Sl and set to the initial state.

デスクランラとして動作する場合は、選択回路1で入力
端子13より入力されるスクランブラ・デスクランブラ
切替え信号S7によりB側が選択され、次段のシフトレ
ジスタ2へ入力される。以後、上記スクランブラと同様
の動作を行い出力端子14ヘデスクランブルデータとし
て出力される。
When operating as a descrambler, the B side is selected by the scrambler/descrambler switching signal S7 inputted from the input terminal 13 in the selection circuit 1, and inputted to the next stage shift register 2. Thereafter, it performs the same operation as the scrambler described above and is outputted to the output terminal 14 as descrambled data.

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

以上説明したように本発明は、従来は不利状態を検出す
るために20段のシフトレジスタの1段目出力と9段目
出力の排他的論理和をとっていたが、それを1ビツト簡
のシフトレジスタの入力と8段目出力の排他的論理和を
1ビット幅のクロックで同期したパルスとし計数回路を
初期状態にリセットすることにより、従来の単一パルス
発生回路を省略できる効果がある。
As explained above, the present invention conventionally takes the exclusive OR of the output of the first stage and the output of the ninth stage of a 20-stage shift register to detect a disadvantageous state. By using the exclusive OR of the input of the shift register and the output of the eighth stage as a pulse synchronized with a 1-bit width clock and resetting the counting circuit to the initial state, there is an effect that the conventional single pulse generation circuit can be omitted.

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

第1図は本発明の一実施例を示すブロック図。 第2図は第1図の動作タイミング図。 第3図は従来のスクランブラ・デスクランブラ回路の一
例のブロック図。 第4図は第3図の動作タイミング図。 1・・・選択回路、2・・・シフトレジスタ、3.4.
7・・・排他的論理和回路、5.5a・・・計数回路、
6・・・排他的否定論理和回路、11.12.13・・
・入力端子、14・・・出力端子、Sl・・・クロック
信号、S2・・・トリガパルス、S3・・・パルス、S
4、S4a・・・リセットパルス、S5・・・キャリー
出力、S6・・・入力データ、S7・・・切替え信号。
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is an operation timing diagram of FIG. 1. FIG. 3 is a block diagram of an example of a conventional scrambler/descrambler circuit. FIG. 4 is an operation timing diagram of FIG. 3. 1... Selection circuit, 2... Shift register, 3.4.
7... Exclusive OR circuit, 5.5a... Counting circuit,
6... Exclusive NOR circuit, 11.12.13...
・Input terminal, 14... Output terminal, Sl... Clock signal, S2... Trigger pulse, S3... Pulse, S
4, S4a...Reset pulse, S5...Carry output, S6...Input data, S7...Switching signal.

Claims (1)

【特許請求の範囲】[Claims] (1)スクランブルデータとデスクランブルデータとの
入力を切り替える選択回路(1)と、 この選択回路の出力を直列入力とするシフトレジスタ(
2)と、 このシフトレジスタの3段目出力と20段目出力の排他
的論理和をとる第1の排他的論理和回路(3)と、 クロック信号を計数する計数回路(5)と、上記選択回
路の出力と上記シフトレジスタの8段目出力の排他的論
理和をとり上記クロック信号に同期して上記計数回路の
リセットパルスを出力する第2の排他的論理和回路(4
)と、 上記第1の排他的論理和回路の出力と上記計数回路の出
力の排他的否定論理和をとる排他的否定論理和回路(6
)と、 この排他的否定論理和回路(6)の出力と入力データ信
号の排他的論理和をとり上記選択回路および出力端子に
出力する第3の排他的論理和回路(7)と を備えたことを特徴とするスクランブラ・デスクランブ
ラ回路。
(1) A selection circuit (1) that switches input between scrambled data and descrambled data, and a shift register (1) that uses the output of this selection circuit as a serial input.
2), a first exclusive OR circuit (3) that takes the exclusive OR of the third stage output and the 20th stage output of this shift register, a counting circuit (5) that counts clock signals, and the above-mentioned A second exclusive OR circuit (4
), and an exclusive NOR circuit (6) which takes the exclusive NOR of the output of the first exclusive OR circuit and the output of the counting circuit
), and a third exclusive OR circuit (7) that performs the exclusive OR of the output of the exclusive NOR circuit (6) and the input data signal and outputs the result to the selection circuit and the output terminal. A scrambler/descrambler circuit characterized by:
JP60129196A 1985-06-13 1985-06-13 Scrambler/descrambler circuit Pending JPS61287314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60129196A JPS61287314A (en) 1985-06-13 1985-06-13 Scrambler/descrambler circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60129196A JPS61287314A (en) 1985-06-13 1985-06-13 Scrambler/descrambler circuit

Publications (1)

Publication Number Publication Date
JPS61287314A true JPS61287314A (en) 1986-12-17

Family

ID=15003515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60129196A Pending JPS61287314A (en) 1985-06-13 1985-06-13 Scrambler/descrambler circuit

Country Status (1)

Country Link
JP (1) JPS61287314A (en)

Similar Documents

Publication Publication Date Title
JPS61287314A (en) Scrambler/descrambler circuit
JPS62245833A (en) Protecting stage number switching circuit
JPH0431211B2 (en)
JP4679735B2 (en) Field discrimination method, field discrimination circuit, and field discrimination device
JP2757714B2 (en) Frame pulse generation circuit
JPH03259639A (en) Frame synchronization system
JP2870242B2 (en) Competitive synchronization protection circuit
JPH0370314A (en) Clock interrupt detection circuit
JP2002271427A (en) Noise removing circuit
KR950003029B1 (en) Method for generating control signal for image signal processing system
KR0183777B1 (en) Detection apparatus of color burst phase twist
JPS63116537A (en) Synchronization protecting circuit
JPH10126231A (en) Chattering removing circuit
JPS63151237A (en) Frame synchronization protecting circuit
JP2693798B2 (en) Control signal generation circuit
JP2770352B2 (en) Window pulse phase control circuit
JPS61101139A (en) Synchronizing signal detector
SU781801A1 (en) Time-spaced pulse shaper
JPH09149020A (en) Frame counter
JPH02156743A (en) Frame synchronization protection system
JPH0282724A (en) Parity counting circuit
JPH06188949A (en) Data break detecting circuit
JPH0370312A (en) Burst period clock generating circuit
JPH0281526A (en) Synchronization detection circuit
JPS5815323A (en) Phase shifting circuit