JPH07121989A - Scramble recorder/scramble reproducer - Google Patents

Scramble recorder/scramble reproducer

Info

Publication number
JPH07121989A
JPH07121989A JP28602293A JP28602293A JPH07121989A JP H07121989 A JPH07121989 A JP H07121989A JP 28602293 A JP28602293 A JP 28602293A JP 28602293 A JP28602293 A JP 28602293A JP H07121989 A JPH07121989 A JP H07121989A
Authority
JP
Japan
Prior art keywords
error
scramble
data
parity
error correction
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
JP28602293A
Other languages
Japanese (ja)
Inventor
Yoshiaki Tanaka
美昭 田中
Shoji Ueno
昭治 植野
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan 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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP28602293A priority Critical patent/JPH07121989A/en
Publication of JPH07121989A publication Critical patent/JPH07121989A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To obtain a scrambler which can freely alter readability at the time of reproducing without providing a specific circuit. CONSTITUTION:An error correction encoder 13 of a scramble recorder inverts parity codes P, Q at a predetermined period. Data scrambled by using a user's bit of a subcode is added to an encoder 12 and recorded. A scramble reproducer decodes an error correction by an error correction decoder 13 with a reproduction parity as it is when the scrambled data is reproduced as it is. When the scrambled data is normally reproduced, the subcode is extracted from the reproduced data by the decoder 12 to extract data for indicating scrambling, the codes P, Q are returned to the original, and then an error is corrected by the decoder 13.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、不法コピーを防止等す
るために音声信号等をスクランブル記録するスクランブ
ル記録装置及びデスクランブル再生するスクランブル再
生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a scramble recording device for scramble recording an audio signal or the like to prevent illegal copying and a scramble reproducing device for descramble reproduction.

【0002】[0002]

【従来の技術】この種のスクランブル装置としては、例
えば特開平4−285763号公報に示されるように第
1、第2のアナログ音声信号を所定の周期で交互に切り
換えて第1の音声搬送波でFM変調した信号と第2の音
声搬送波でFM変調した信号を記録媒体に周波数多重記
録する方法が知られている。また、このスクランブル方
法を実現するために第1、第2のアナログ音声信号を所
定の周期で交互に切り換えるための回路が用いられてい
る。また、デジタルスクランブル方法では、第1、第2
の音声信号をフレーム単位で周期的に切り換える方法も
考えられる。
2. Description of the Related Art As a scrambler of this type, for example, as disclosed in Japanese Patent Application Laid-Open No. 4-285763, first and second analog audio signals are alternately switched at a predetermined cycle and a first audio carrier wave is used. There is known a method of frequency-multiplex-recording an FM-modulated signal and an FM-modulated signal with a second sound carrier on a recording medium. Further, in order to realize this scramble method, a circuit for alternately switching the first and second analog audio signals at a predetermined cycle is used. In the digital scrambling method, the first and second
Another possible method is to periodically switch the audio signal in the unit of frame.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来のスクランブル方法では、周期的に2つの音声信号を
切り換えるのみであるので、スクランブルの程度に自由
度がなく、したがって、再生信号の明瞭度(リーダビリ
ティ)を自由に変更することができないという問題点が
ある。また、デスクランブルが容易であるので実用上不
十分であり、更に周期的に切り換えるための特別な回路
が必要になるという問題点がある。
However, in the above-described conventional scrambling method, since only two audio signals are periodically switched, there is no degree of freedom in scrambling, and therefore the clarity of the reproduced signal (reader (Ability) cannot be changed freely. In addition, since descrambling is easy, it is not practically sufficient, and there is a problem that a special circuit for periodically switching is required.

【0004】本発明は上記従来の問題点に鑑み、特別な
回路を設けることなく再生時の明瞭度を自由に変更する
ことができるスクランブル記録装置及びスクランブル再
生装置を提供することを目的とする。
In view of the above-mentioned conventional problems, it is an object of the present invention to provide a scramble recording device and a scramble reproducing device which can freely change the clarity at the time of reproduction without providing a special circuit.

【0005】[0005]

【課題を解決するための手段】本発明は上記目的を達成
するために、リードソロモン符号を用いたエラー訂正方
法では、正常にエラー訂正を行えば訂正誤りが発生しな
いことに鑑み、スクランブルモードでは訂正誤りを故意
に発生させるようにしている。すなわち本発明によれ
ば、情報にパリティを付加してリードソロモン符号でエ
ラー訂正符号化する符号化手段と、データをスクランブ
ル記録しない場合に前記符号化手段により付加されるパ
リティをそのままにし、データをスクランブル記録する
場合にはパリティを所定の周期で反転すると共にパリテ
ィを反転したことを示すサイド情報を前記所定の周期毎
に付加して記録するスクランブル手段とを有するスクラ
ンブル記録装置が提供される。また、本発明によれば、
パリティを有する再生データのシンドロームを算出する
ことによりエラー訂正復号する復号手段と、スクランブ
ルされたデータをそのまま再生する場合には前記復号手
段が再生パリティをそのままにしてエラー訂正復号を行
うように制御し、スクランブルされたデータを正常に再
生する場合には再生データからサイド情報を抽出して再
生パリティを前記所定の周期毎に元に戻した後、前記復
号手段がエラー訂正復号を行うように制御するデスクラ
ンブル手段とを有するスクランブル再生装置が提供され
る。
In order to achieve the above object, the present invention provides an error correction method using a Reed-Solomon code in the scramble mode in view of the fact that no correction error occurs if error correction is normally performed. A correction error is intentionally generated. That is, according to the present invention, a coding unit that adds a parity to information and performs error correction coding with a Reed-Solomon code, and a parity that is added by the coding unit when data is not scramble-recorded is left unchanged, In the case of scramble recording, there is provided a scramble recording device having a scramble means for inverting the parity at a predetermined cycle and adding side information indicating that the parity has been inverted for each predetermined cycle. Further, according to the present invention,
Decoding means for performing error correction decoding by calculating the syndrome of reproduction data having parity, and when reproducing scrambled data as it is, the decoding means controls so as to perform error correction decoding with the reproduction parity as it is. When the scrambled data is normally reproduced, the side information is extracted from the reproduced data, the reproduction parity is returned to the original at each predetermined cycle, and then the decoding means is controlled to perform error correction decoding. There is provided a scramble reproduction device having a descramble means.

【0006】[0006]

【作用】本発明では、データをスクランブル記録する場
合にはパリティが所定の周期で反転され、この再生デー
タをそのままエラー訂正復号すると訂正誤りが発生し、
正常に再生することができない。再生データからサイド
情報(いわゆるサブコード等、以下サブコードという)
を抽出してパリティを元に戻してエラー訂正復号すると
訂正誤りが発生せず、正常に再生することができる。し
たがって、パリティ反転の周期を可変にすることにより
特別な回路を設けることなく再生時の明瞭度を自由に変
更することができる。
According to the present invention, when scramble-recording data, the parity is inverted at a predetermined cycle, and if this reproduced data is directly error-corrected and decoded, a correction error occurs,
It cannot be played normally. Side information from playback data (so-called subcode, etc., hereinafter referred to as subcode)
Is extracted, the parity is returned to the original state, and error correction decoding is performed, no correction error occurs and normal reproduction is possible. Therefore, by making the period of parity inversion variable, the clarity at the time of reproduction can be freely changed without providing a special circuit.

【0007】[0007]

【実施例】以下、図面を参照して本発明の実施例につい
て説明する。図1は本発明に係るスクランブル記録装置
の一実施例の概略を示すブロック図、図2は本発明に係
るスクランブル再生装置の一実施例の概略を示すブロッ
ク図、図3は図1のエラー訂正符号化部内のスクランブ
ル回路と図2のエラー訂正復号化部内のデスクランブル
回路の一例を示すブロック図、図4は図2のエラー訂正
復号部を詳細に示すブロック図、図5は図4のエラー訂
正復号部が2重リードソロモン符号のC1系列をエラー
訂正する動作を説明するためのフローチャート、図6は
図1のエラー訂正復号部が2重リードソロモン符号のC
2系列をエラー訂正する動作を説明するためのフローチ
ャートである。
Embodiments of the present invention will be described below with reference to the drawings. 1 is a block diagram showing an outline of an embodiment of a scramble recording device according to the present invention, FIG. 2 is a block diagram showing an outline of an embodiment of a scramble reproducing device according to the present invention, and FIG. 3 is an error correction of FIG. A block diagram showing an example of a scramble circuit in the encoding unit and a descramble circuit in the error correction decoding unit of FIG. 2, FIG. 4 is a block diagram showing the error correction decoding unit of FIG. 2 in detail, and FIG. 5 is an error of FIG. FIG. 6 is a flowchart for explaining the operation of the correction decoding unit for error-correcting the C1 sequence of the double Reed-Solomon code. FIG. 6 shows the operation of the error-correction decoding unit of FIG.
6 is a flowchart for explaining an operation of error correcting two streams.

【0008】入力端子11’にはデジタル記録されるP
CM信号とエラー訂正用のP、Qパリティコード等が入
力され、この入力信号はエンコーダ20によりユーザー
ズビット等のサブコードと共に所定のフォーマットでエ
ンコードされる。このエンコードされたデータはエラー
訂正符号化部30により、例えばC1系列のみのリード
ソロモン符号や、C1系列とC2系列の2重のリードソ
ロモン符号で訂正符号化され、出力バッファ50を介し
て出力端子16’に出力され、記録媒体に記録される。
Digitally recorded P is applied to the input terminal 11 '.
The CM signal and the P and Q parity codes for error correction are input, and this input signal is encoded by the encoder 20 in a predetermined format together with subcodes such as user's bits. The encoded data is corrected and coded by the error correction coding unit 30 using, for example, a Reed-Solomon code of only the C1 series or a double Reed-Solomon code of the C1 series and the C2 series, and output via the output buffer 50 to an output terminal. 16 'is output and recorded on the recording medium.

【0009】この実施例のエラー訂正符号化部30で
は、例えば図3に示すようなスクランブル回路を用いる
ことができ、ファンクションキー40からスクランブル
制御信号K’が入力されるとエラー訂正符号化部30に
おいてパリティコードP、Qが所定の周期(後述)で反
転される。また、このようにパリティコードP、Qが反
転された場合にはサブコードのユーザーズビットを用い
てスクランブルをかけたことを示すデータがエンコーダ
20により生成される。
The error correction coding unit 30 of this embodiment can use a scramble circuit as shown in FIG. 3, for example, and when the scramble control signal K'is input from the function key 40, the error correction coding unit 30. In, the parity codes P and Q are inverted at a predetermined cycle (described later). When the parity codes P and Q are inverted in this way, the encoder 20 generates data indicating that scrambling has been performed using the user's bits of the subcode.

【0010】次に、図2を参照して本実施例のスクラン
ブル再生装置の概略を説明する。入力端子11に入力す
る信号はPCM信号とエラー訂正用のP、Qパリティコ
ードとサブコード等が所定のフォーマットでエンコード
され、この入力信号が入力端子11に入力されると、デ
コーダ12により上記PCM信号と、P、Qコードとサ
ブコード等にデコードされ、図4に詳しく示すエラー訂
正復号部13に印加される。
Next, an outline of the scramble reproducing apparatus of this embodiment will be described with reference to FIG. The signal input to the input terminal 11 is a PCM signal and P and Q parity codes for error correction, a subcode, etc. are encoded in a predetermined format. When the input signal is input to the input terminal 11, the decoder 12 causes the PCM signal to be input. The signal, P, Q code, subcode, etc. are decoded and applied to the error correction decoding unit 13 shown in detail in FIG.

【0011】エラー訂正復号部13では例えばC1系列
とC2系列の2重のリードソロモン符号を用いてエラー
訂正を行い、特にファンクションキー14から正常化指
示部13Bを介してスクランブルモードが解除されてい
ない場合には制御信号KによりP、Qコードをそのまま
にしてシンドロームを算出し、他方、スクランブルモー
ドが解除されている場合にはサブコードから抽出された
上記周期でP、Qコードを反転し、元に戻してシンドロ
ームを算出することによりエラー訂正を行う。このエラ
ー訂正部3によりエラー訂正された信号は、出力バッフ
ァ15を介して出力端子16に出力される。なお、スク
ランブルモードは、ファンクションキー14から例えば
暗証番号を入力することにより解除される。
The error correction decoding unit 13 performs error correction using, for example, a double Reed-Solomon code of C1 series and C2 series, and the scramble mode is not released from the function key 14 via the normalization instructing section 13B. In this case, the syndrome is calculated by keeping the P and Q codes as they are by the control signal K, while when the scramble mode is released, the P and Q codes are inverted at the above cycle extracted from the sub code to The error correction is performed by returning to the above and calculating the syndrome. The signal error-corrected by the error correction unit 3 is output to the output terminal 16 via the output buffer 15. The scramble mode is canceled by inputting a password, for example, from the function key 14.

【0012】ここで、記録側のエラー訂正符号化部30
のスクランブル回路とエラー訂正復号部13内のデスク
ランブル回路は、図3に示すような同一の回路で構成す
ることができる。図3において入力端子17Aにはパリ
ティコードP、Qが供給され、このパリティコードP、
Qは反転バッファ18A又は非反転バッファ18Bを通
過して出力端子19に出力される。反転バッファ18A
は制御端子17Bに印加される制御信号Zにより制御さ
れ、非反転バッファ18Bは制御信号Zがインバータ1
8Cにより反転された制御信号Zにより制御される。
Here, the error correction coding unit 30 on the recording side
The scramble circuit and the descramble circuit in the error correction decoding unit 13 can be configured by the same circuit as shown in FIG. In FIG. 3, the parity code P, Q is supplied to the input terminal 17A, and the parity code P,
Q passes through the inverting buffer 18A or the non-inverting buffer 18B and is output to the output terminal 19. Inversion buffer 18A
Is controlled by the control signal Z applied to the control terminal 17B, and the non-inverting buffer 18B controls the control signal Z by the inverter 1
It is controlled by the control signal Z inverted by 8C.

【0013】したがって、図3に示すスクランブル回路
を図1に示すエラー訂正符号化部30内に設け、所定の
周期でコードP、Qを反転させることにより再生時の明
瞭度が異なるようにスクランブル記録することができ
る。また、図3に示すデスクランブル回路を図2に示す
エラー訂正復号部13(詳しくは図4に示す演算回路
4)内に設けることにより、スクランブルモード解除時
には上記周期でコードP、Qを反転して元に戻すことに
より訂正誤りが発生することなく正常にエラー訂正でき
る。
Therefore, the scramble circuit shown in FIG. 3 is provided in the error correction coding section 30 shown in FIG. 1, and the codes P and Q are inverted at a predetermined cycle so that the clarity at the time of reproduction is different from the scramble recording. can do. Further, by providing the descramble circuit shown in FIG. 3 in the error correction decoding unit 13 shown in FIG. 2 (specifically, the arithmetic circuit 4 shown in FIG. 4), the codes P and Q are inverted at the above cycle when the scramble mode is released. Then, the error is corrected normally without causing a correction error.

【0014】次に、図4に示すエラー訂正復号部13を
詳細に説明する。先ず、3ワード以上のエラーに対する
受信側シンドロームをS1、S2、S3、S4、S5と
し、エラー値をe1、e2、e3とすると次式が成り立
つ(以下の加算はmodulo 2加算( 排他的論理和) )。
Next, the error correction decoding unit 13 shown in FIG. 4 will be described in detail. First, let S1, S2, S3, S4, and S5 be the receiving-side syndromes for errors of 3 words or more, and let the error values be e1, e2, and e3, the following equation holds (the following addition is modulo 2 addition (exclusive OR) )).

【0015】[0015]

【数1】 S0= e1+ e2+ e3 S1=x1 *e1+x2 *e2+x3 *e3 S2=x12 *e1+x22 *e2+x32 *e3 S3=x13 *e1+x23 *e2+x33 *e3 S4=x14 *e1+x24 *e2+x34 *e3 S5=x15 *e1+x25 *e2+x35 *e3[Number 1] S0 = e1 + e2 + e3 S1 = x1 * e1 + x2 * e2 + x3 * e3 S2 = x1 2 * e1 + x2 2 * e2 + x3 2 * e3 S3 = x1 3 * e1 + x2 3 * e2 + x3 3 * e3 S4 = x1 4 * e1 + x2 4 * e2 + x3 4 * e3 S5 = x1 5 * e1 + x2 5 * e2 + x3 5 * e3

【0016】ここで、x1,x2,x3はエラーの位置
(エラーロケーション)を示す。また、3ワードエラー
が発生した場合、先ずエラー位置x1を仮定して上記シ
ンドロームの式を変形すると次式が得られる。
Here, x1, x2 and x3 indicate error positions (error locations). Further, when a 3-word error occurs, the following equation is obtained by first transforming the equation of the syndrome assuming the error position x1.

【0017】[0017]

【数2】 T0=S1+x1*S0 = (x1+x2)*e2+ (x1+x3)*e3 T1=S2+x1*S1 =x2 *(x1+x2)*e2+x3 *(x1+x3)*e3 T2=S3+x1*S2 =x22 *(x1+x2)*e2+x32 *(x1+x3)*e3 T3=S4+x1*S3 =x23 *(x1+x2)*e2+x33 *(x1+x3)*e3 T4=S5+x1*S4 =x24 *(x1+x2)*e2+x34 *(x1+x3)*e3 次に、この式を更に変形して、## EQU00002 ## T0 = S1 + x1 * S0 = (x1 + x2) * e2 + (x1 + x3) * e3 T1 = S2 + x1 * S1 = x2 * (x1 + x2) * e2 + x3 * (x1 + x3) * e3 T2 = S3 + x1 * S2 = x2 * 1 * 2 ) * E2 + x3 2 * (x1 + x3) * e3 T3 = S4 + x1 * S3 = x2 3 * (x1 + x2) * e2 + x3 3 * (x1 + x3) * e3 T4 = S5 + x1 * S4 = x2 4 * (x1 + x2) * e2 + x3 4 * * E3 Next, by further modifying this equation,

【0018】[0018]

【数3】T12 +T0*T2=P1 T22 +T1*T3=P2 T32 +T4*T2=P3 とすると、## EQU3 ## If T1 2 + T0 * T2 = P1 T2 2 + T1 * T3 = P2 T3 2 + T4 * T2 = P3,

【0019】[0019]

【数4】 P1= (x1+x2)*(x2+x3)2 *(x1+x3)*e2*e3 P2=x2 *x3 *(x1+x2)*(x2+x3)2 *(x1+x3)*e2*e3 P3=x22 *x33 *(x1+x2)*(x2+x3)2 *(x1+x3)*e2*e3 ここで、上記P1、P2、P3を与える各式(数4)か
らエラー位置x1を消去するために、
[Number 4] P1 = (x1 + x2) * (x2 + x3) 2 * (x1 + x3) * e2 * e3 P2 = x2 * x3 * (x1 + x2) * (x2 + x3) 2 * (x1 + x3) * e2 * e3 P3 = x2 2 * x3 3 * (x1 + x2) * (x2 + x3) 2 * (x1 + x3) * e2 * e3 Here, in order to erase the error position x1 from each equation (Equation 4) that gives P1, P2, and P3,

【0020】[0020]

【数5】A=P2/P1=x2*x3 B=P3/P2=x2*x3 とすると、位置xiの値が正しければ、 A=B …(1) が成り立ち、変形して A+B=D とする。## EQU00005 ## If A = P2 / P1 = x2 * x3 B = P3 / P2 = x2 * x3, and if the value of the position xi is correct, then A = B ... (1) holds, and A + B = D To do.

【0021】本実施例では、エラー位置xiの値を仮定
して演算回路4により上記Dを計算し、PCコントロー
ル部6によりDが「0」となる位置xiの値を求める。
この場合、位置xiの値は通常では「1」からn(nは
符号語の数)までの値を順次変化させ、このときDの値
が「0」となる位置xiの値は3個存在し、この3個の
値を演算レジスタ5に記憶させる。ここで、演算レジス
タ5に記憶された位置xiの値はx1、x2、x3であ
るので、これ以後はx1、x2、x3が既知であり、こ
の値x1、x2、x3を用いて以下のようにエラーの値
e1,e2,e3を求める。
In the present embodiment, the value of the error position xi is assumed, the arithmetic circuit 4 calculates the above D, and the PC control unit 6 obtains the value of the position xi at which D becomes "0".
In this case, the value of the position xi normally changes from “1” to n (n is the number of codewords) in sequence, and there are three values of the position xi at which the value of D becomes “0”. Then, these three values are stored in the arithmetic register 5. Here, since the values of the position xi stored in the arithmetic register 5 are x1, x2, and x3, x1, x2, and x3 are known after that, and the values x1, x2, and x3 are used as follows. Then, the error values e1, e2, e3 are obtained.

【0022】[0022]

【数6】 E=S2+(x1+x2)*S1+x1*x2*S0 を計算すると、 E=(x1+x3)*(x2+x3)*e3 したがって、 E/(x1+x3)*(x2+x3)=e3## EQU00006 ## E = S2 + (x1 + x2) * S1 + x1 * x2 * S0 is calculated, E = (x1 + x3) * (x2 + x3) * e3 Therefore, E / (x1 + x3) * (x2 + x3) = e3

【0023】を計算して先ず値e3を求め、次いでこの
値e3により以下のようにシンドロームを修正する。
First, the value e3 is calculated by calculating, and then the syndrome is corrected by the value e3 as follows.

【0024】[0024]

【数7】 S0m=S0+ e3= e1+ e2 S1m=S1+x3 *e3=x1 *e1+x2 *e2 S2m=S2+x33 *e3=x12 *e1+x22 *e2 次いで、## EQU00007 ## S0m = S0 + e3 = e1 + e2 S1m = S1 + x3 * e3 = x1 * e1 + x2 * e2 S2m = S2 + x3 3 * e3 = x1 2 * e1 + x2 2 * e2 Then,

【0025】[0025]

【数8】F=S1m+x1*S0m =(x1+x2)*e2 ∴F/(x1+x2)=e2 を計算し、最後に、 S0m+e2=e1## EQU8 ## F = S1m + x1 * S0m = (x1 + x2) * e2 ∴F / (x1 + x2) = e2 is calculated, and finally S0m + e2 = e1

【0026】を計算することにより、全てのエラーの位
置x1,x2,x3と値e1,e2,e3が求められ、
したがって、3ワードエラーが求められる。図4を参照
して本実施例のエラー訂正復号部13について説明する
と、先ず、後述する演算の制御プログラムは予めROM
8に記憶され、この制御プログラムはプログラムカウン
タ(PC)コントロール部6の制御によりプログラムカ
ウンタ(PC)7により読み出され、デコーダ9により
デコードされてシンドロームチェック部1と、シンドロ
ームレジスタ2と、入力セレクタ3と演算回路4に印加
される。
The positions x1, x2, x3 and the values e1, e2, e3 of all the errors are obtained by calculating
Therefore, a 3-word error is required. The error correction decoding unit 13 of the present embodiment will be described with reference to FIG.
This control program is stored in 8, and is read by a program counter (PC) 7 under the control of a program counter (PC) control unit 6 and decoded by a decoder 9 to generate a syndrome check unit 1, a syndrome register 2, and an input selector. 3 and the arithmetic circuit 4.

【0027】一例としてパリティが6個の場合のシンド
ロームチェック部1は、並列6段の加算器と、レジスタ
と、係数α〜α5 の乗算器により構成されている。各段
では、入力データWi(i=0〜5)に対して次のよう
な演算によりシンドロームS0〜S5が求められ、この
シンドロームS0〜S5は図4に示すシンドロームレジ
スタ2に格納される。
As an example, the syndrome check unit 1 in the case of 6 parities is composed of parallel 6-stage adders, registers, and multipliers of coefficients α to α 5 . In each stage, the syndromes S0 to S5 are obtained for the input data Wi (i = 0 to 5) by the following calculation, and the syndromes S0 to S5 are stored in the syndrome register 2 shown in FIG.

【0028】[0028]

【数9】S0=ΣWi S1=Σαi Wi S2=Σα2iWi S3=Σα3iWi S4=Σα4iWi S5=Σα5iWi## EQU9 ## S0 = ΣWi S1 = Σα i Wi S2 = Σα 2i Wi S3 = Σα 3i Wi S4 = Σα 4i Wi S5 = Σα 5i Wi

【0029】このシンドロームレジスタ2から読み出さ
れたシンドロームSiと、今回のエラーの位置xiと、
演算レジスタ5に格納されているエラーの位置と値の中
間演算結果xi、eiはデコーダ9からの選択信号に基
づいて入力セレクタ3により選択され、演算回路4によ
り積和演算が行われる。以下の演算に必要なデータの選
択および条件判定による分岐等は、シンドロームレジス
タ2に格納されているシンドロームSiと演算レジスタ
5に格納されている上記D(=A+B)に基づいてPC
コントロール部6により制御される。
The syndrome Si read out from the syndrome register 2 and the current error position xi,
The intermediate operation results xi and ei of the error position and the value stored in the operation register 5 are selected by the input selector 3 based on the selection signal from the decoder 9 and the product-sum operation is performed by the operation circuit 4. The branching and the like due to the selection of the data necessary for the following calculation and the condition determination are performed by the PC based on the syndrome Si stored in the syndrome register 2 and the D (= A + B) stored in the calculation register 5.
It is controlled by the control unit 6.

【0030】本実施例の動作を詳細に説明すると、演算
回路4により先ずシンドロームSiの値がチェックさ
れ、この値により訂正動作モードが決定される。 1.シンドロームSiの値が全て「0」の場合 この場合にはエラーが無いと判定される。この演算はS
iの値を順次加算した結果で判定され、すなわちΣSi
=0の場合にエラーフラグを「0」として終了する。 2.シンドロームSiの加算結果ΣSiが「0」でない
場合 先ず、エラーの数を1個と仮定し、このとき、
The operation of this embodiment will be described in detail. First, the arithmetic circuit 4 checks the value of the syndrome Si, and this value determines the correction operation mode. 1. When all the values of the syndrome Si are "0" In this case, it is determined that there is no error. This operation is S
It is determined by the result of sequentially adding the values of i, that is, ΣSi
When = 0, the error flag is set to “0” and the process ends. 2. When the addition result ΣSi of the syndrome Si is not “0” First, it is assumed that the number of errors is 1, and at this time,

【0031】[0031]

【数10】S0=x1 *e1 S1=x12 *e1 S2=x13 *e1 S3=x14 *e1## EQU10 ## S0 = x1 * e1 S1 = x1 2 * e1 S2 = x1 3 * e1 S3 = x1 4 * e1

【0032】となる。したがって、エラーが1個の場合
最低条件として、
It becomes Therefore, if there is one error, the minimum condition is

【0033】[0033]

【数11】A=S12 +S0*S2 B=S22 +S1*S3 C=S0*S3+S1*S2 として、A=B=C=0[Equation 11] As A = S1 2 + S0 * S2 B = S2 2 + S1 * S3 C = S0 * S3 + S1 * S2, A = B = C = 0

【0034】が成立する場合に、S1/S0=x1とし
て変数x1を求め、この変数x1の位置のデータ値をw
1eとしてw1e=w1+e1であるので、正しいデー
タ値w1はw1=w1e+e1となり、変数x1のデー
タ値w1eを正しい値w1に置き換えてエラーフラグ処
理し、訂正を完了する。
If the condition is satisfied, the variable x1 is obtained with S1 / S0 = x1, and the data value at the position of this variable x1 is set to w.
Since 1e is w1e = w1 + e1, the correct data value w1 becomes w1 = w1e + e1. The data value w1e of the variable x1 is replaced with the correct value w1 to perform error flag processing, and the correction is completed.

【0035】3.上記2においてA=B=C=0が成立
しない場合にエラー数が2個以上とする。ここで、演算
回路4の入力データはS0〜S5であり、先ず、エラー
の位置xiに、現実に存在しない値x1を代入して以下
のようにTi、Piを求める。
3. In the above 2, if A = B = C = 0 is not established, the number of errors is set to 2 or more. Here, the input data of the arithmetic circuit 4 is S0 to S5. First, the value x1 which does not actually exist is substituted for the error position xi, and Ti and Pi are obtained as follows.

【0036】[0036]

【数12】T0=S1+x1*S0 T1=S2+x1*S1 T2=S3+x1*S2 T3=S4+x1*S3 T4=S5+x1*S4 P1=T12 +T0*T2 P2=T22 +T1*T3 P3=T33 +T2*T4Equation 12] T0 = S1 + x1 * S0 T1 = S2 + x1 * S1 T2 = S3 + x1 * S2 T3 = S4 + x1 * S3 T4 = S5 + x1 * S4 P1 = T1 2 + T0 * T2 P2 = T2 2 + T1 * T3 P3 = T3 3 + T2 * T4

【0037】次に、x1を1からnまで順次変化させた
とき、 3−1.P1=P2=P3=0が成り立つ場合にはエラ
ー数は2個と判定することができる。このとき
Next, when x1 is sequentially changed from 1 to n, 3-1. When P1 = P2 = P3 = 0 holds, the number of errors can be determined to be two. At this time

【0038】[0038]

【数13】A=T1/T0 B=T3/T2(13) A = T1 / T0 B = T3 / T2

【0039】として、A+B=Dが「0」となるxiの
値を順次演算レジスタ5に記憶させる。なお、この演算
では、処理時間を短縮するために符号語の内、パリティ
部分を省略することも可能である。以上の演算により、
エラー数が2個の場合には変数xiの値がx1、x2と
なり、Dの値が2回「0」となるので、x1とx2の値
が求められる。そして、エラーの値e1、e2は
As a result, the value of xi at which A + B = D becomes "0" is sequentially stored in the arithmetic register 5. In this calculation, the parity part of the codeword can be omitted in order to reduce the processing time. By the above calculation,
When the number of errors is two, the values of the variable xi are x1 and x2, and the value of D is “0” twice. Therefore, the values of x1 and x2 are obtained. The error values e1 and e2 are

【0040】[0040]

【数14】e2=T0/(x1+x2) e1=S0+e2[Equation 14] e2 = T0 / (x1 + x2) e1 = S0 + e2

【0041】により求められ、また、エラーパターンが
求められるので、値w1、w2をそれぞれw1+e1、
w2+e2としてエラーフラグ処理して訂正を終了す
る。 3−2.P1,P2,P3が同時に「0」にならない場
合 本実施例では、3ワードエラーを訂正するために、前述
したP1、P2、P3を与える各式(数4)からエラー
位置x1を消去した下記の式を用いる。
The values w1 and w2 are calculated as w1 + e1 and w1 + e1, respectively.
The error flag processing is performed as w2 + e2, and the correction is completed. 3-2. When P1, P2 and P3 do not become "0" at the same time In this embodiment, in order to correct the 3-word error, the error position x1 is deleted from each equation (Equation 4) that gives P1, P2 and P3 described above. Is used.

【0042】[0042]

【数15】A=P2/P1 B=P3/P2[Expression 15] A = P2 / P1 B = P3 / P2

【0043】として、x1が正しければA=Bが成り立
つので、A+B=D=0となるxiの値を順次レジスタ
5に記憶させる。ここで、エラー数が3個の場合にはD
の値が3回「0」となるので、エラー位置x1、x2、
x3が求められ、次にこのエラー位置x1、x2、x3
からエラーの値e1、e2、e3を求める。先ず、
As a result, if x1 is correct, A = B holds. Therefore, the value of xi for A + B = D = 0 is sequentially stored in the register 5. Here, if the number of errors is 3, D
Value becomes “0” three times, so error positions x1, x2,
x3 is obtained, and then these error positions x1, x2, x3
The error values e1, e2, and e3 are obtained from First,

【0044】[0044]

【数16】E=x2*T0+T1 を計算すると、 E=(x1+x3)*(x2+x3)*e3 したがって、 E/(x1+x3)*(x2+x3)=e3When E = x2 * T0 + T1 is calculated, E = (x1 + x3) * (x2 + x3) * e3 Therefore, E / (x1 + x3) * (x2 + x3) = e3

【0045】を計算してe3を求め、このe3を用いて
以下のようにシンドロームを修正する。
Is calculated to obtain e3, and this e3 is used to correct the syndrome as follows.

【0046】[0046]

【数17】 S0m=S0+ e3= e1+ e2 S1m=S1+x3 *e3=x1 *e1+x2 *e2 S2m=S2+x32 *e3=x12 *e1+x22 *e2 次に、F=S1m+x1*S0mを計算して F=(x1+x2)*e2 ∴F/(x1+x2)=e2S0m = S0 + e3 = e1 + e2 S1m = S1 + x3 * e3 = x1 * e1 + x2 * e2 S2m = S2 + x3 2 * e3 = x1 2 * e1 + x2 2 * e2 Next, F = S1m + x1 * S0m is calculated and F = (X1 + x2) * e2 ∴F / (x1 + x2) = e2

【0047】を求め、最後にS0m+e2=e1を求め
ることにより全てのエラーの位置x1〜x3および値e
1〜e3が求められる。 3−3. D=0となるxiが無い場合 この場合にはエラー数は4個以上と考えられるのでエラ
ーフラグ処理のみを行い、訂正を行わない。
Then, by finally obtaining S0m + e2 = e1, all error positions x1 to x3 and the value e are obtained.
1 to e3 are required. 3-3. When there is no xi for D = 0 In this case, the number of errors is considered to be four or more, so only error flag processing is performed and no correction is performed.

【0048】ここで、前述のように通常のエラー訂正で
は、演算回路4によりシンドロームSiの値と、数11
に示す信号A、B、Cと数12に示す信号P1、P2、
P3がチェックされ、この値に基づいて以下のように訂
正動作モードが決定される。 1.シンドロームSiの値が全て「0」の場合・・・エ
ラー無し 2.シンドロームSiの加算結果ΣSiが「0」でない
場合、 (1)エラーの数が1個・・・・A=B=C=0が成立
する。 (2)エラーの数が2個・・・・A=B=C=0が成立
せず、P1=P2=P3=0が成立する。 (3)エラーの数が3個以上・・A=B=C=0が成立
せず、P1=P2=P3=0が成立しない。
Here, as described above, in the normal error correction, the value of the syndrome Si is calculated by the arithmetic circuit 4 and
Signals A, B and C shown in FIG.
P3 is checked and the corrective operation mode is determined based on this value as follows. 1. When all the values of the syndrome Si are "0" ... No error occurs. 2. When the addition result ΣSi of the syndrome Si is not “0”, (1) the number of errors is 1 ... A = B = C = 0. (2) The number of errors is 2 ... A = B = C = 0 does not hold, and P1 = P2 = P3 = 0 holds. (3) The number of errors is 3 or more ... A = B = C = 0 does not hold, and P1 = P2 = P3 = 0 does not hold.

【0049】ところで、前述した条件2の2(1)にお
いてエラーの数が1個の場合に書換え可能なデータ数は
CDでは24個中1個、DCCでは32個中1個、2
(2)においてエラーの数が2個の場合に書換え可能な
データ数はCDでは24個中2個、DCCでは32個中
2個、2(3)においてエラーの数が3個の場合に書換
え可能なデータ数はCDでは24個中3個、DCCでは
32個中3個であり、適度な数である。したがって、ス
クランブル記録する場合には、例えばこのような周期で
パリティを反転することにより、特別な回路を設けるこ
となく再生時の明瞭度を自由に変更することができる。
By the way, the number of rewritable data when the number of errors is 1 in 2 (1) of the condition 2 described above, the number of rewritable data is 1 out of 24 in the CD and 1 out of 32 in the DCC.
In (2), the number of rewritable data when the number of errors is 2 is 2 out of 24 in CD, 2 in 32 out of DCC, and 2 in 3 (3) when the number of errors is rewritable. The number of possible data is 3 out of 24 in CD and 3 out of 32 in DCC, which is an appropriate number. Therefore, in the case of scramble recording, the intelligibility at the time of reproduction can be freely changed without arranging a special circuit by inverting the parity in such a cycle.

【0050】次に、図5及び図6を参照してそれぞれ2
重リードソロモン符号のC1、C2系列をエラー訂正す
る処理について説明する。まず、図5を参照してC1訂
正処理を説明する。C1訂正処理がスタートすると(ス
テップ101)、先ず、次式(数18)の上段に示す式
〔C1〕によりシンドロームS0〜S3をチェックし
(ステップ102)、次いで、次式(数19)に示すシ
ンドロームS0〜S3を指数に変換(α→i)する(ス
テップ103)。
Next, referring to FIG. 5 and FIG.
The process of error correcting the C1 and C2 sequences of the multiple Reed-Solomon code will be described. First, the C1 correction process will be described with reference to FIG. When the C1 correction process starts (step 101), first, the syndromes S0 to S3 are checked by the equation [C1] shown in the upper part of the following equation (Equation 18) (step 102), and then the following equation (Equation 19) is shown. The syndromes S0 to S3 are converted into indices (α → i) (step 103).

【0051】[0051]

【数18】 〔C1〕 S0= W0+ W1+ W2+・・・・・+W23 S1=α23W0+α22W1+α21W2+・・・・・+W23 S2=α46W0+α44W1+α42W2+・・・・・+W23 S3=α69W0+α66W1+α63W2+・・・・・+W23 〔C2〕 S0= W0+ W1+ W2+・・・・・+W31 S1=α31 W0+α30 W1+α29 W2+・・・・・+W31 S2=α62 W0+α60 W1+α58 W2+・・・・・+W31 S3=α93 W0+α90 W1+α87 W2+・・・・・+W31 S4=α124 W0+α120 W1+α116 W2+・・・・・+W31 S5=α155 W0+α150 W1+α145 W2+・・・・・+W31[C1] S0 = W0 + W1 + W2 + ... + W23 S1 = α 23 W0 + α 22 W1 + α 21 W2 + ... + W23 S2 = α 46 W0 + α 44 W1 + α 42 W2 + ・ ・ ・ ・ ・ + W23 S3 = α 69 W0 + α 66 W1 + α 63 W2 + ... + W23 [C2] S0 = W0 + W1 + W2 + ... + W31 S1 = α 31 W0 + α 30 W1 + α 29 W2 + ・ ・ ・ ・ ・ + W31 S2 = α 62 W0 + α 60 W1 + α 58 W2 + ・ ・ ・ ・ ・ + W31 S3 = α 93 W0 + α 90 W1 + α 87 W2 + ・ ・ ・ ・ ・ + W31 S4 = α 124 W0 + α 120 W1 + α 116 W2 + ・ ・ ・ ・ ・ + W31 S5 = α 155 W0 + α 150 W1 + α 145 W2 + ・ ・ ・ ・・ + W31

【0052】[0052]

【数19】C1:S0 S1 S2 S3 C2:S0 S1 S2 S3 S4 S5[Formula 19] C1: S0 S1 S2 S3 C2: S0 S1 S2 S3 S4 S5

【0053】次いで、シンドロームS0〜S3が全て
「0」か否かを判別し(ステップ104)、YESの場
合にはC1エラーフラグF0、F1、F2に共に「0」
を書き込み(ステップ105)、次いでブロックアドレ
スを1つインクリメントし(ステップ106)、全ブロ
ックが終了するまで上記処理を繰り返す(ステップ10
7)。
Next, it is judged whether or not all the syndromes S0 to S3 are "0" (step 104). If YES, all of the C1 error flags F0, F1 and F2 are "0".
Is written (step 105), the block address is incremented by 1 (step 106), and the above process is repeated until all blocks are completed (step 10).
7).

【0054】他方、ステップ104においてシンドロー
ムS0〜S3が全て「0」でない場合には、先ず、次式
(数20)に基づいて1ワードエラーを検出するための
変形シンドロームσ1〜σ3を演算し、次いで、その次
の式(数21)により1ワードエラーか否かを判別する
(ステップ109)。
On the other hand, when all the syndromes S0 to S3 are not "0" in step 104, first, the modified syndromes σ1 to σ3 for detecting the one-word error are calculated based on the following equation (Equation 20), Then, it is determined by the following equation (Equation 21) whether or not there is a one-word error (step 109).

【0055】[0055]

【数20】σ1=S1 +S0*S2 σ2=S2 +S1*S3 σ3=S1*S2+S0*S3Σ1 = S1 + S0 * S2 σ2 = S2 + S1 * S3 σ3 = S1 * S2 + S0 * S3

【0056】[0056]

【数21】 σ1+σ2+σ3=0 1ワードエラー σ1+σ2+σ3≠0 1ワードエラー以上Σ1 + σ2 + σ3 = 0 1 word error σ1 + σ2 + σ3 ≠ 0 1 word error or more

【0057】そして、1ワードエラーの場合には次式
(数22)に基づいて1ワード訂正を行って訂正データ
Wiを書き込み(ステップ110)、次いで表1にも基
づいてC1エラーフラグF0に「1」を書き込む(ステ
ップ111)。次いで、ブロックアドレスを1つインク
リメントし(ステップ112)、ステップ107に進
む。
In the case of a 1-word error, 1-word correction is performed based on the following equation (Equation 22) to write the correction data Wi (step 110), and then C1 error flag F0 is set to "1" based on Table 1 as well. "1" is written (step 111). Next, the block address is incremented by 1 (step 112) and the process proceeds to step 107.

【0058】[0058]

【数22】〔1ワード訂正〕 エラーの位置: Xi=S1/S0 エラーの値 : Ei=S0 訂正 : Wi=S0+Di(Di…エラーデー
タ)
[Equation 22] [1 word correction] Error position: Xi = S1 / S0 Error value: Ei = S0 Correction: Wi = S0 + Di (Di ... error data)

【0059】[0059]

【表1】 [Table 1]

【0060】他方、ステップ109において1ワードエ
ラーでない場合には、次式(数23)により2ワードエ
ラーを検出するためのX1、X2、ψ1〜ψ3を演算
し、次いで、次式(数24)により2ワードエラーか否
かを判別する(ステップ114)。
On the other hand, if the one-word error is not found in step 109, X1, X2, ψ1 to ψ3 for detecting a two-word error are calculated by the following equation (equation 23), and then the following equation (equation 24). Then, it is determined whether or not there is a 2-word error (step 114).

【0061】[0061]

【数23】 [Equation 23]

【0062】[0062]

【数24】 ψ1+ψ2+ψ3=0 2ワードエラー ψ1+ψ2+ψ3≠0 2ワードエラー以上Ψ1 + ψ2 + ψ3 = 0 2 word error ψ1 + ψ2 + ψ3 ≠ 0 2 word error or more

【0063】そして、2ワードエラーの場合には次式
(数25)に基づいて2ワード訂正を行って(ステップ
115)次式(数9)により訂正データWi ,Wj を書
き込み(ステップ116)、次いで表1に示すようにC
1エラーフラグF0、F1に「1」を書き込む(ステッ
プ117)。次いで、ブロックアドレスを1つインクリ
メントし(ステップ118)、ステップ107に進む。
In the case of a 2-word error, 2-word correction is performed based on the following equation (Equation 25) (step 115), and the correction data Wi and Wj are written by the following equation (Equation 9) (step 116), Then, as shown in Table 1, C
1 "1" is written in the error flags F0 and F1 (step 117). Next, the block address is incremented by 1 (step 118) and the process proceeds to step 107.

【0064】[0064]

【数25】 [Equation 25]

【0065】[0065]

【数26】〔Wi ,Wj 訂正〕 S0=Ei+Ej S1=Xi*Ei+Xj*Ejより Xj*S0+S1=(Xi+Xj)*Ei Ei=(Xj*S0+S1)/C1 Ej=S0+Ei Wi=Ei+Di Wj=Ej+Dj[Equation 26] [Wi, Wj correction] From S0 = Ei + Ej S1 = Xi * Ei + Xj * Ej Xj * S0 + S1 = (Xi + Xj) * Ei Ei = (Xj * S0 + S1) / C1 Ej = S0 + Ei Wi = Ei + JiDj Wi

【0066】また、ステップ114において2ワードエ
ラーでない場合には表1に示すようにC1エラーフラグ
F0、F1、F2に共に「1」を書き込み(ステップ1
19)、次いで、ブロックアドレスを1つインクリメン
トし(ステップ120)、ステップ107に進む。
If no 2-word error occurs in step 114, "1" is written in both C1 error flags F0, F1, and F2 as shown in Table 1 (step 1
19), then the block address is incremented by 1 (step 120) and the routine proceeds to step 107.

【0067】次に、図6を参照してC2訂正処理を説明
する。C2訂正処理はC1訂正処理が終了した後スター
トし(ステップ121)、先ず、上式(数18)の下段
〔C2〕によりシンドロームS0〜S5をチェックし
(ステップ122)、次いで、上式(数19)の下段に
示すシンドロームS0〜S5を指数に変換(α→i)す
る(ステップ123)。次いで、C1エラーフラグを読
み出して次式(数27)によりエラーフラグの数N
(E)とエラー位置Xiを検出する(ステップ12
4)。
Next, the C2 correction process will be described with reference to FIG. The C2 correction process is started after the C1 correction process is completed (step 121), and first, the syndromes S0 to S5 are checked by the lower stage [C2] of the above equation (Equation 18) (step 122), and then the above equation (Equation 18). The syndromes S0 to S5 shown in the lower part of 19) are converted into indices (α → i) (step 123). Next, the C1 error flag is read and the number N of error flags is calculated by the following equation (Equation 27).
(E) and the error position Xi are detected (step 12
4).

【0068】[0068]

【数27】〔C1 Flag Calculate〕 Read :C1 Flag Location Count :C1 Flag Number Resister:C1 Flag Location X1,X2,X3,
X4,X5,X6
[C1 Flag Calculate] Read: C1 Flag Location Count: C1 Flag Number Resister: C1 Flag Location X1, X2, X3
X4, X5, X6

【0069】そして、シンドロームS0〜S5が全て
「0」か否かを判別することによりエラー数が「0」か
否かを判別し(ステップ126)、「0」の場合にはC
2エラーフラグF0、F1に「0」を書き込み(ステッ
プ127)、次いでブロックアドレスを1つインクリメ
ントし(ステップ128)、全ブロックが終了しない場
合にはステップ122に戻り、終了した場合にはこのC
2訂正処理を終了する(ステップ129)。
Then, it is determined whether the number of errors is "0" by determining whether all the syndromes S0 to S5 are "0" (step 126).
2 "0" is written in the error flags F0 and F1 (step 127), the block address is incremented by 1 (step 128), and if all blocks are not completed, the process returns to step 122, and if completed, this C
2 The correction process ends (step 129).

【0070】他方、ステップ126においてシンドロー
ムS0〜S5が全て「0」でない場合には上式(数2
0)により1ワードエラーか否かを判別する(ステップ
132)。そして、1ワードエラーの場合には上式(数
21)に基づいて1ワード訂正を行って訂正データWi
を書き込み(ステップ133)、次いでC2エラーフラ
グF0、F1に「0」を書き込む(ステップ134)。
次いで、ブロックアドレスを1つインクリメントし(ス
テップ135)、ステップ129に進む。
On the other hand, when all the syndromes S0 to S5 are not "0" in step 126, the above equation (Equation 2)
Based on 0), it is determined whether or not there is a one-word error (step 132). In the case of a 1-word error, 1-word correction is performed based on the above equation (Equation 21) to obtain the corrected data Wi.
Is written (step 133), and then “0” is written to the C2 error flags F0 and F1 (step 134).
Then, the block address is incremented by 1 (step 135) and the process proceeds to step 129.

【0071】そして、本発明ではステップ132におい
て1ワードエラーでない場合には、フレーム単位のエラ
ー数ERRが設定値N’を超えているか否かを判別し
(ステップ136)、超えない場合にはステップ136
以下に進み、超える場合にはイレージャルーチンに進
む。
Then, in the present invention, if the one-word error is not detected in step 132, it is judged whether or not the error number ERR in frame units exceeds the set value N '(step 136). 136
Go to the following, and if it exceeds, go to the erasure routine.

【0072】ステップ137では上式(数24)により
2ワードエラーか否かを判別し、2ワードエラーの場合
には上式(数25)に基づいて2ワード訂正を行って
(ステップ138)上式(数26)により訂正データW
i、Wjを書き込み(ステップ139)、次いでC2エラ
ーフラグF0、F1に「0」を書き込む(ステップ14
0)。次いで、ブロックアドレスを1つインクリメント
し(ステップ141)、ステップ129に進む。また、
ステップ137において2ワードエラーでない場合には
イレージャルーチンに進む。なお、イレージャルーチン
ではエラーフラグの数Nに応じて次のようにシンドロー
ムを修正する。
In step 137, it is determined whether or not there is a two-word error by the above equation (equation 24), and if there is a two-word error, two word correction is performed based on the above equation (equation 25) (step 138). Corrected data W by the formula (Equation 26)
i, Wj are written (step 139), and then "0" is written in the C2 error flags F0, F1 (step 14).
0). Next, the block address is incremented by 1 (step 141) and the process proceeds to step 129. Also,
If the two-word error is not found in step 137, the process proceeds to the erasure routine. In the erasure routine, the syndrome is corrected as follows according to the number N of error flags.

【0073】[0073]

【数28】〔6Erasure,Y6〕 T5=S5+E1*S4+E2*S3+E3*S2 +E4*S1+E5*S0 Y6=T5/I6 〔シンドローム修正〕 S0+Y6 →S0 S1+Y6*X6 →S1 S2+Y6*X62 →S2 S3+Y6*X63 →S3 S4+Y6*X64 →S4Equation 28] [6Erasure, Y6] T5 = S5 + E1 * S4 + E2 * S3 + E3 * S2 + E4 * S1 + E5 * S0 Y6 = T5 / I6 [syndrome correcting] S0 + Y6 → S0 S1 + Y6 * X6 → S1 S2 + Y6 * X6 2 → S2 S3 + Y6 * X6 3 → S3 S4 + Y6 * X6 4 → S4

【0074】[0074]

【数29】〔5Erasure,Y5〕 T4=S4+D1*S3+D2*S2+D1*S1+D
4*S0 Y5=T4/I5 〔シンドローム修正〕 S0+Y5 →S0 S1+Y5*X5 →S1 S2+Y5*X52 →S2 S3+Y5*X53 →S3
[Equation 29] [5Erasure, Y5] T4 = S4 + D1 * S3 + D2 * S2 + D1 * S1 + D
4 * S0 Y5 = T4 / I5 [Syndrome correction] S0 + Y5 → S0 S1 + Y5 * X5 → S1 S2 + Y5 * X5 2 → S2 S3 + Y5 * X5 3 → S3

【0075】[0075]

【数30】〔4Erasure,Y4〕 T3=S3+C1*S2+C2*S1+C3*S0 Y4=T3/I4 〔シンドローム修正〕 S0+Y4 →S0 S1+Y4*X4 →S1 S2+Y4*X42 →S2[4 Erasure, Y4] T3 = S3 + C1 * S2 + C2 * S1 + C3 * S0 Y4 = T3 / I4 [Syndrome correction] S0 + Y4 → S0 S1 + Y4 * X4 → S1 S2 + Y4 * X4 2 → S2

【0076】[0076]

【数31】〔3Erasure,Y3〕 T2=S2+B1*S1+B2*S0 Y3=T2/I3 〔シンドローム修正〕 S0+Y3 →S0 S1+Y3*X3 →S1[3 Erasure, Y3] T2 = S2 + B1 * S1 + B2 * S0 Y3 = T2 / I3 [Syndrome correction] S0 + Y3 → S0 S1 + Y3 * X3 → S1

【0077】[0077]

【数32】〔2Erasure,Y2〕 〔1Erasure,Y1〕 T1=S1+X1*S0 Y2=T1/I2 Y1=S0+Y2[Equation 32] [2Erasure, Y2] [1Erasure, Y1] T1 = S1 + X1 * S0 Y2 = T1 / I2 Y1 = S0 + Y2

【0078】[0078]

【発明の効果】以上説明したように本発明によれば、デ
ータをスクランブル記録する場合にはパリティが所定の
周期で反転されるので、この再生データをそのままエラ
ー訂正復号すると訂正誤りが発生し、正常に再生するこ
とができず、他方、再生データからサブコードを抽出し
てパリティを元に戻してエラー訂正復号すると訂正誤り
が発生せず、正常に再生することができる。したがっ
て、パリティ反転の周期を可変にすることにより特別な
回路を設けることなく再生時の明瞭度を自由に変更する
ことができる。
As described above, according to the present invention, when data is scrambled and recorded, the parity is inverted at a predetermined cycle. Therefore, if this reproduced data is error-corrected and decoded, a correction error occurs, When the subcode is extracted from the reproduction data, the parity is restored and the error correction decoding is performed, the correction error does not occur and the reproduction can be normally performed. Therefore, by making the period of parity inversion variable, the clarity at the time of reproduction can be freely changed without providing a special circuit.

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

【図1】本発明に係るスクランブル記録装置の一実施例
の概略を示すブロック図である。
FIG. 1 is a block diagram schematically showing an embodiment of a scramble recording device according to the present invention.

【図2】本発明に係るスクランブル再生装置の一実施例
の概略を示すブロック図である。
FIG. 2 is a block diagram showing an outline of one embodiment of a scramble reproduction device according to the present invention.

【図3】図1のエラー訂正符号化部内のスクランブル回
路と図2のエラー訂正復号部内のデスクランブル回路の
一例を示すブロック図である。
3 is a block diagram showing an example of a scramble circuit in the error correction coding unit of FIG. 1 and a descramble circuit in the error correction decoding unit of FIG.

【図4】図2のエラー訂正復号部を詳細に示すブロック
図である。
FIG. 4 is a block diagram showing the error correction decoding unit of FIG. 2 in detail.

【図5】図2のエラー訂正復号部が2重リードソロモン
符号のC1系列をエラー訂正する動作を説明するための
フローチャートである。
5 is a flowchart for explaining an operation of the error correction decoding unit of FIG. 2 for error correcting the C1 sequence of the double Reed-Solomon code.

【図6】図2のエラー訂正復号部が2重リードソロモン
符号のC2系列をエラー訂正する動作を説明するための
フローチャートである。
6 is a flowchart for explaining an operation of the error correction decoding unit of FIG. 2 for error correcting the C2 sequence of the double Reed-Solomon code.

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

1 シンドロームチェック部 2 シンドロームレジスタ 3 入力セレクタ 4 演算回路 5 演算レジスタ 6 PC(プログラムカウンタ)コントロール部 7 プログラムカウンタ(PC) 8 ROM 9,12 デコーダ 13 エラー訂正復号部(復号手段) 13B 正常化指示部(デコーダ12及びファンクショ
ンキー14と共にデスクランブル手段を構成する) 14,40 ファンクションキー 18A 非反転バッファ 18B 反転バッファ 18C インバータ 20 エンコーダ(エラー訂正符号化部30及びファン
クションキー40と共にスクランブル手段を構成する) 30 エラー訂正符号化部(符号化手段)
1 syndrome check unit 2 syndrome register 3 input selector 4 arithmetic circuit 5 arithmetic register 6 PC (program counter) control unit 7 program counter (PC) 8 ROM 9, 12 decoder 13 error correction decoding unit (decoding means) 13B normalization instruction unit (Descrambling means comprises decoder 12 and function key 14) 14,40 Function key 18A Non-inversion buffer 18B Inversion buffer 18C Inverter 20 Encoder (Error correction encoding section 30 and function key 40 constitute scrambling means) 30 Error correction coding unit (coding means)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 情報にパリティを付加してリードソロモ
ン符号でエラー訂正符号化する符号化手段と、 データをスクランブル記録しない場合に前記符号化手段
により付加されるパリティをそのままにし、データをス
クランブル記録する場合にはパリティを所定の周期で反
転すると共にパリティを反転したことを示すサイド情報
を前記所定の周期毎に付加して記録するスクランブル手
段とを有するスクランブル記録装置。
1. A coding means for adding parity to information and error-correcting coding with a Reed-Solomon code, and scramble recording of data while leaving the parity added by the coding means when data is not scrambled recorded. In this case, the scramble recording device includes a scramble unit that inverts the parity at a predetermined cycle and adds side information indicating that the parity has been inverted at each predetermined cycle and records the side information.
【請求項2】 パリティを有する再生データのシンドロ
ームを算出することによりエラー訂正復号する復号手段
と、 スクランブルされたデータをそのまま再生する場合には
前記復号手段が再生パリティをそのままにしてエラー訂
正復号を行うように制御し、スクランブルされたデータ
を正常に再生する場合には再生データからサイド情報を
抽出して再生パリティを前記所定の周期毎に元に戻した
後、前記復号手段がエラー訂正復号を行うように制御す
るデスクランブル手段とを有するスクランブル再生装
置。
2. Decoding means for performing error correction decoding by calculating the syndrome of reproduced data having parity, and when reproducing scrambled data as it is, the decoding means carries out error correction decoding while leaving reproduced parity as it is. When the scrambled data is reproduced normally, the side information is extracted from the reproduced data and the reproduction parity is returned to the original at each of the predetermined cycles, and then the decoding means performs error correction decoding. A scramble reproducing apparatus having a descrambling means for controlling to perform.
JP28602293A 1993-10-20 1993-10-20 Scramble recorder/scramble reproducer Pending JPH07121989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28602293A JPH07121989A (en) 1993-10-20 1993-10-20 Scramble recorder/scramble reproducer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28602293A JPH07121989A (en) 1993-10-20 1993-10-20 Scramble recorder/scramble reproducer

Publications (1)

Publication Number Publication Date
JPH07121989A true JPH07121989A (en) 1995-05-12

Family

ID=17698971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28602293A Pending JPH07121989A (en) 1993-10-20 1993-10-20 Scramble recorder/scramble reproducer

Country Status (1)

Country Link
JP (1) JPH07121989A (en)

Similar Documents

Publication Publication Date Title
US6487293B2 (en) Method and apparatus for reproducing ciphered data
US20040257900A1 (en) Data recording method, recording medium and reproduction apparatus
JPS58219852A (en) Correcting circuit of error
US5408477A (en) Error correction method
JP2002319242A (en) Method and device for recording, transmission device, method and device for reproduction, reception device, recording medium, and transmission medium
JP2002170333A (en) Method and device for recording information, and method and device for reproducing information
US7861136B2 (en) Error correcting apparatus and error correcting method
JP3996350B2 (en) Safe compact disc and player
US6826137B1 (en) Apparatus and method for authentication/copy protection of optical storage medium and the optical storage medium
JP2003323762A (en) Recording medium of digital data, recording method, recording device, reproducing method, reproducing device, transmission method, and transmission device
JP3321937B2 (en) Scramble playback device
JPH07121989A (en) Scramble recorder/scramble reproducer
JPS58190147A (en) Data transmitting method
JPH1021655A (en) Reproducing device, and recording and reproducing device
JPH02131625A (en) Error correction device
JP2004206814A (en) Data recording method, data reproducing method
JPS58219848A (en) Multiplier of galois field
WO2003098625A1 (en) Recording medium, recording method, recording device, and reproduction method and reproducer
JP3740256B2 (en) Error correction code decoding apparatus and error correction code decoding method
JP3167320B2 (en) Parity code forming method and circuit device for implementing the method
JPS6148233A (en) Error correcting device
JPH0824269B2 (en) Error correction method
JPS6224480A (en) Digital data recording and reproducing device
JP2002222524A (en) Optical disk device, and data randomizing method for the same
JPS6187279A (en) Decoding circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20011211