JP2008124640A - Encoding apparatus and encoding method - Google Patents
Encoding apparatus and encoding method Download PDFInfo
- Publication number
- JP2008124640A JP2008124640A JP2006304199A JP2006304199A JP2008124640A JP 2008124640 A JP2008124640 A JP 2008124640A JP 2006304199 A JP2006304199 A JP 2006304199A JP 2006304199 A JP2006304199 A JP 2006304199A JP 2008124640 A JP2008124640 A JP 2008124640A
- Authority
- JP
- Japan
- Prior art keywords
- state
- data
- input data
- input
- basic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
【課題】回路規模をより縮小する。
【解決手段】ステートマシンは、クロックごとの入力データI0乃至I5に応じて、ステート0乃至ステート5のそれぞれにおいて定められた入力データを符号化データに変換する変換テーブルに従い、符号化データを出力するとともに、次のクロックにおけるステートを決定する。それぞれの変換テーブルには、終結パターンを含む入力データI0乃至I5に対応した、符号化データO、ステートの遷移先to、および終結処理確認ビットTが規定されている。本発明は、例えば、記録装置に適用することができる。
【選択図】図4A circuit scale is further reduced.
A state machine outputs encoded data in accordance with a conversion table for converting input data determined in each of states 0 to 5 into encoded data in accordance with input data I0 to I5 for each clock. At the same time, the state in the next clock is determined. Each conversion table defines encoded data O, a state transition destination to, and a termination process confirmation bit T corresponding to input data I0 to I5 including termination patterns. The present invention can be applied to, for example, a recording apparatus.
[Selection] Figure 4
Description
本発明は、符号化装置および符号化方法に関し、特に、データを記録媒体に記録する場合により好適な符号化装置および符号化方法に関する。 The present invention relates to an encoding device and an encoding method, and more particularly to an encoding device and an encoding method that are more suitable when data is recorded on a recording medium.
通常、磁気ディスクや光ディスクなどの記録媒体に信号を記録する場合、再生時に読み出される信号の振幅制御およびクロック再生が正常に行われるように、信号を予め変調符号化し、変調符号化によって得られた変調符号が記録される。 Usually, when a signal is recorded on a recording medium such as a magnetic disk or an optical disk, the signal is pre-modulated and coded so that amplitude control and clock reproduction of the signal read at the time of reproduction are normally performed. A modulation code is recorded.
変調符号化には、入力された信号に対して、所定の制限を加えるための所定の変調符号の符号化テーブルが用いられる。入力された信号は、符号化テーブルに基づいて、所定の変調符号に符号化され、信号に所定の制限を加えた変調符号の信号として記録される。なお、制限として、例えば、符号の0,1の個数を十分長い範囲で均等にできるDCフリー制限や、連続する0の個数の最小長、最大長がそれぞれd,kとなる(d,k)制限などが用いられる。
For modulation coding, a coding table of a predetermined modulation code for applying a predetermined restriction to the input signal is used. The input signal is encoded into a predetermined modulation code based on the encoding table, and is recorded as a modulation code signal obtained by adding a predetermined restriction to the signal. As a restriction, for example, a DC-free restriction that allows the number of
このような変調符号のひとつとして、Blu-ray disk(商標)の変調に用いられている17PP(Parity Preserve/Prohibit Repeated Minimum Transition Runlength)符号がある。17PP符号においては、符号化の前後でパリティが保たれているため、すなわち、符号化しようとする信号における1の数の和が偶数である場合、変調符号の1の数の和が偶数となり、符号化しようとする信号における1の数の和が奇数である場合、変調符号の1の数の和が奇数となるので、符号化前にDCコントロール、すなわち符号の0と1の個数が同じ数だけ表れるように制御することができる。さらに、17PP符号においては、連続して出現する最短マーク長の数が6回までとされており、PRML(Partial Response Maximum Likelihood)再生におけるデータの検出能力を向上させることができる。
As one of such modulation codes, there is a 17PP (Parity Preserve / Prohibit Repeated Minimum Transition Runlength) code used for the modulation of Blu-ray disk (trademark). In the 17PP code, since parity is maintained before and after encoding, that is, when the sum of the numbers of 1 in the signal to be encoded is an even number, the sum of the numbers of 1 in the modulation code is an even number, When the sum of the numbers of 1 in the signal to be encoded is an odd number, the sum of the numbers of 1s of the modulation codes is an odd number. Therefore, DC control is performed before encoding, that is, the number of
17PP符号は、フレームシンクパターンとデータ部から構成される。 The 17PP code is composed of a frame sync pattern and a data part.
17PP符号のフレームシンクパターン、すなわち同期信号部分のパターンは、例えば、本出願人が特願平10−237044号出願において提案している、図1に示されるフレームシンクパターン決定テーブルに従う。 The frame sync pattern of the 17PP code, that is, the pattern of the sync signal portion, follows, for example, the frame sync pattern determination table shown in FIG. 1 proposed by the present applicant in Japanese Patent Application No. 10-237044.
図1に示されるように、フレームシンクパターン決定テーブルは、フレームステート、フレームナンバ、およびフレームシンクパターンを表す。さらに、フレームシンクパターンは、Sync-body、およびSync-IDより構成される。フレームステートは、FS0乃至FS6の7通りのうちのいずれか1つとされる。フレームナンバは、0乃至30の31通りとされ、7通りのフレームステートに分類される。具体的には、フレームナンバ0はフレームステートFS0に分類され、フレームナンバ1,5,7,23,24はそれぞれフレームステートFS1に分類され、フレームナンバ2,18,19,26,30はそれぞれフレームステートFS2に分類され、フレームナンバ3,4,11,15,17はそれぞれフレームステートFS3に分類され、フレームナンバ6,10,12,28,29はそれぞれフレームステートFS4に分類され、フレームナンバ8,9,16,20,22はそれぞれフレームステートFS5に分類され、フレームナンバ13,14,21,25,27はそれぞれフレームステートFS6に分類される。Sync-bodyは、出力される30ビットのフレームシンクパターンのうちの最初の24ビットであり、「#01 010 000 000 010 000 000 010」とされる。
As shown in FIG. 1, the frame sync pattern determination table represents a frame state, a frame number, and a frame sync pattern. Further, the frame sync pattern is composed of Sync-body and Sync-ID. The frame state is any one of seven types FS0 to FS6. There are 31 frame numbers from 0 to 30, and the frame number is classified into 7 frame states. Specifically,
なお、図1において「#」で表されるSync-bodyにおける最初の1ビットは、前のフレームが終結処理で終わった場合「1」とされ、そうでない場合「0」とされる。Sync-IDは、出力されるフレームシンクパターンの残り6ビットであり、フレームナンバを分類するフレームステートごとに7通りのうちのいずれか1つとされる。具体的には、Sync-IDは、フレームステートがFS0の場合は「000 001」とされ、フレームステートがFS1の場合は「010 010」とされ、フレームステートがFS2の場合は「101 000」とされ、フレームステートがFS3の場合は「100 001」とされ、フレームステートがFS4の場合は「000 100」とされ、フレームステートがFS5の場合は「001 001」とされ、フレームステートがFS6の場合は「010 000」とされる。 Note that the first 1 bit in the Sync-body represented by “#” in FIG. 1 is “1” when the previous frame ends with the termination process, and “0” otherwise. The Sync-ID is the remaining 6 bits of the output frame sync pattern, and is any one of the 7 types for each frame state for classifying the frame number. Specifically, the Sync-ID is “000 001” when the frame state is FS0, “010 010” when the frame state is FS1, and “101 000” when the frame state is FS2. When the frame state is FS3, it is “100 001”, when the frame state is FS4, it is “000 100”, when the frame state is FS5, it is “001 001”, and when the frame state is FS6. Is "010 000".
このように、フレームシンクパターン決定テーブルによれば、フレームナンバに応じて、対応するフレームシンクパターンが決定される。 Thus, according to the frame sync pattern determination table, the corresponding frame sync pattern is determined according to the frame number.
17PP符号のデータ部は、例えば、本出願人が特願平10−150280号出願において提案している、図2に示される符号化テーブルに従う可変長符号化方式によって符号化される。すなわち、17PP符号の符号化においては、図2の符号化テーブルに従って、入力ビットに対する出力ビットが決定される。 The data portion of the 17PP code is encoded by, for example, the variable length encoding method according to the encoding table shown in FIG. 2 proposed by the present applicant in Japanese Patent Application No. 10-150280. That is, in the 17PP code encoding, output bits for input bits are determined according to the encoding table of FIG.
図2の符号化テーブルによれば、通常の処理である基本処理においては、入力ビットが「00 00 00 00」であった場合、出力ビットとして「010 100 100 100」が出力され、入力ビットが「00 00 10 00」であった場合、出力ビットとして「000 100 100 100」が出力され、入力ビットが「00 00 00」であった場合、出力ビットとして「010 100 000」が出力され、入力ビットが「00 00 01」であった場合、出力ビットとして「010 100 100」が出力され、入力ビットが「00 00 10」であった場合、出力ビットとして「000 100 000」が出力され、入力ビットが「00 00 11」であった場合、出力ビットとして「000 100 100」が出力される。 According to the encoding table of FIG. 2, in the basic process which is a normal process, when the input bit is “00 00 00 00”, “010 100 100 100” is output as the output bit, and the input bit is When “00 00 10 00”, “000 100 100 100” is output as the output bit, and when the input bit is “00 00 00”, “010 100 000” is output as the input bit. When the bit is “00 00 01”, “010 100 100” is output as the output bit, and when the input bit is “00 00 10”, “000 100 000” is output as the input bit. When the bit is “00 00 11”, “000 100 100” is output as the output bit. It is a force.
さらに、入力ビットが「00 01」であった場合、出力ビットとして「000 100」が出力され、入力ビットが「00 10」であった場合、出力ビットとして「010 000」が出力され、入力ビットが「00 11」であった場合、出力ビットとして「010 100」が出力され、入力ビットが「01」であった場合、出力ビットとして「010」が出力され、入力ビットが「10」であった場合、出力ビットとして「001」が出力される。また、入力ビットが「11」で、かつ、1つ前の出力ビットが「xx1」(xは0または1のいずれでもよい)であった場合、出力ビットとして「000」が出力され、入力ビットが「11」で、かつ、1つ前の出力ビットが「xx0」(xは0または1のいずれでもよい)であった場合、出力ビットとして「101」が出力される。 Further, when the input bit is “00 01”, “000 100” is output as the output bit, and when the input bit is “00 10”, “010 000” is output as the output bit. Is “00 11”, “010 100” is output as the output bit, and when the input bit is “01”, “010” is output as the output bit and the input bit is “10”. In this case, “001” is output as an output bit. When the input bit is “11” and the previous output bit is “xx1” (x may be 0 or 1), “000” is output as the output bit, Is “11” and the previous output bit is “xx0” (x may be 0 or 1), “101” is output as the output bit.
また、図2の符号化テーブルによれば、特殊処理として、入力ビットが「11 01 11」で、かつ、次のクロックにおける出力ビット(1つ後の出力ビット)が「010」である場合、出力ビットとして「001 000 000」が出力される。 Further, according to the encoding table of FIG. 2, as special processing, when the input bit is “11 01 11” and the output bit in the next clock (the next output bit) is “010”, “001 000 000” is output as an output bit.
さらに、図2の符号化テーブルによれば、終結処理として、フレームの最後の入力ビットが「00 00」であった場合、出力ビットとして「010 100」が出力され、フレームの最後の入力ビットが「00」であった場合、出力ビットとして「000」が出力される。 Furthermore, according to the encoding table of FIG. 2, as the termination process, when the last input bit of the frame is “00 00”, “010 100” is output as the output bit, and the last input bit of the frame is If it is “00”, “000” is output as an output bit.
このような符号化テーブルに基づいて17PP符号の符号化を行う場合、図2の符号化テーブルのより上に配置されている入力ビットの出力ビットへの変換が優先される。すなわち、「00 00 00 00」である入力ビットは、図2の符号化テーブルにおける最も上の「00 00 00 00」である入力ビットと、上から3番目の「00 00 00」である入力ビットとに該当するが、図2の符号化テーブルにおけるより上側の入力ビットが優先されるので、「00 00 00 00」である入力ビットは、「010 100 100 100」である出力ビットに変換される。このとき、入力されるデータにおけるビット列が特殊処理の入力ビットに該当する場合は、特殊処理の変換が優先される。また、入力されるデータのフレームの終端が終結処理に該当するときは、終結処理の変換がなされる。 When encoding the 17PP code based on such an encoding table, priority is given to the conversion of the input bits arranged above the encoding table of FIG. 2 into output bits. That is, the input bit that is “00 00 00 00” is the input bit that is “00 00 00 00” at the top in the encoding table of FIG. 2 and the input bit that is “00 00 00” that is the third from the top. 2, but the upper input bit in the coding table of FIG. 2 is given priority, so that the input bit “00 00 00 00” is converted to the output bit “010 100 100 100”. . At this time, when the bit string in the input data corresponds to the input bit of the special process, the conversion of the special process has priority. Further, when the end of the frame of the input data corresponds to the termination process, the termination process is converted.
このデータ部を符号化する構成をハードウェアで実装する方法として、2通りの方法が考えられる。1つは、入力データが符号化テーブルに定められている入力ビットに該当するまで(出力ビットを特定するまで)入力データをためこみ符号化する方法であり、1つは、ステートマシンを用いて1クロックごとに符号化データを出力する方法である。 Two methods are conceivable as a method of mounting the configuration for encoding the data portion by hardware. One is a method of convolutionally encoding input data until the input data corresponds to an input bit defined in the encoding table (until an output bit is specified), and one is using a state machine. In this method, encoded data is output every clock.
前者の方法では、符号化データが断続的に出力されるため、すなわち出力ビットが、1クロック分の3ビットであったり、4クロック分の12ビットであったりするため、遅延回路により遅延量を調整する必要がある。 In the former method, since encoded data is output intermittently, that is, the output bits are 3 bits for 1 clock or 12 bits for 4 clocks, the delay amount is reduced by a delay circuit. It needs to be adjusted.
一方、後者の方法では、入力ビットがステートマシンにより符号化され、符号化された出力ビットが連続して(1クロックごとに3ビットずつ)出力されるため、符号化後の遅延回路は不要となる(例えば、非特許文献1参照)。 On the other hand, in the latter method, the input bits are encoded by the state machine, and the encoded output bits are output continuously (3 bits for each clock), so that a delay circuit after encoding is unnecessary. (For example, see Non-Patent Document 1).
しかしながら、非特許文献1の方法には、図2における終結処理が考慮されておらず、正しく符号化されないという問題点がある。
However, the method of Non-Patent
現状、終結処理が考慮されたステートマシンは提案されていないため、ステートマシンを用いて17PP符号の符号化を行う構成をハードウェアで実装することはできない。 At present, a state machine that considers termination processing has not been proposed, and a configuration for encoding a 17PP code using a state machine cannot be implemented by hardware.
本発明は、このような状況に鑑みてなされたものであり、回路規模をより縮小することができるようにするものである。 The present invention has been made in view of such a situation, and makes it possible to further reduce the circuit scale.
本発明の一側面の符号化装置は、基本データ長が2ビットの入力データを、基本符号長が3ビットの17PP(Parity Preserve/Prohibit Repeated Minimum Transition Runlength)符号に変換する符号化装置であって、入力データがフレームの終端であることを示す終端信号を生成する生成手段と、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化する符号化手段とを備える。 An encoding apparatus according to an aspect of the present invention is an encoding apparatus that converts input data having a basic data length of 2 bits into a 17PP (Parity Preserve / Prohibit Repeated Minimum Transition Runlength) code having a basic code length of 3 bits. Generating means for generating an end signal indicating that the input data is the end of the frame, and input of the first three basic data lengths among the six basic data length input data input in order up to the previous one The first state to be transited when the data is “11 01 11” and the 17PP code for the input data next to the input data of the three basic data lengths is “010”, up to the previous one Transition is made when the input data of the first four basic data lengths among the input data of the six basic data lengths input in order is “00 00 00 00” or “00 00 10 00” In the second state, the transition is made when the first two basic data length input data among the six basic data length input data input in order up to the previous one is “00 00”. 3 state, 4th state, 1 to be transited when the input data of the first basic data length among the 6 basic data length input data input in order up to the previous one is “00” The fifth state that is shifted when the last bit of the 17PP code with the basic code length of the previous 3 bits is 0, and the last bit of the 17PP code with the basic code length of the previous 3 bits is 1 Sixth states to be transitioned in a certain case, the first state to the sixth state in which the correspondence relationship between the input data having six basic data lengths and the 17PP code having one basic code length is defined. Of the states, the fifth state and the previous The fourth state has priority over the sixth state, the third state has priority over the fourth state, the second state has priority over the third state, A state machine that makes a state transition so that the first state is prioritized over the second state, and input data having six basic data lengths in the fourth state to the sixth state When the input data of the first two basic data lengths is “00 00”, or the input data of the first basic data length of the six basic data length input data is “00”, When input data that is “00 00” or input data that is “00” is the end of the frame, input data that is “00 00” or input data that is “00” is not the end of the frame. Different from sign The 17PP code is configured as a state machine defined for 6 basic data length input data, and the input data is converted into 17PP based on the 6 basic data length input data and the termination signal input in order. Coding means for coding the code.
前記入力データと前記17PP符号との前記対応関係は、前記第1乃至第6の状態ごとの状態テーブルによって規定されるようにすることができる。 The correspondence relationship between the input data and the 17PP code can be defined by a state table for each of the first to sixth states.
前記状態テーブルには、順に入力された6つの基本データ長の入力データに対応して、1つの基本符号長の17PP符号、第1の状態乃至第6の状態のうちの遷移する状態、および6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」または「00」であり、かつ前記フレームの終端であるかを示す情報が規定されるようにすることができる。 In the state table, corresponding to the input data of six basic data lengths input in order, a 17PP code of one basic code length, a transition state from the first state to the sixth state, and 6 Information indicating whether the input data of the first two basic data lengths among the input data of the two basic data lengths is “00 00” or “00” and the end of the frame is specified. be able to.
前記第5の状態および前記第6の状態は、前記入力データの符号化が開始される状態である初期状態であり、前記初期状態は、前記フレームにおける前記符号列の前に配置される同期信号パターンの最後のビットによって、前記第5の状態または前記第6の状態のいずれかであるかが決定されるようにすることができる。 The fifth state and the sixth state are initial states in which encoding of the input data is started, and the initial state is a synchronization signal arranged before the code string in the frame The last bit of the pattern may determine whether the fifth state or the sixth state.
6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」または「00」であり、かつ前記フレームの終端であるかを示す情報に基づいて、次のフレームにおける前記同期信号パターンの先頭の1ビットが決定されるようにすることができる。 Based on the information indicating whether the input data of the first two basic data lengths among the input data of the six basic data lengths is “00 00” or “00” and the end of the frame, The first bit of the sync signal pattern in the frame can be determined.
本発明の一側面の符号化方法は、基本データ長が2ビットの入力データを、基本符号長が3ビットの17PP符号に変換する符号化方法であって、入力データがフレームの終端であることを示す終端信号を生成し、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化するステップを含む。 An encoding method according to an aspect of the present invention is an encoding method for converting input data having a basic data length of 2 bits into a 17PP code having a basic code length of 3 bits, and the input data is a frame end. The first three basic data length input data among the six basic data length input data input in order up to the previous one is “11 01 11”, and The first state that is transitioned when the 17PP code for the next input data of the input data of three basic data lengths is “010”, the input data of the six basic data lengths input in order up to the previous one When the input data of the first four basic data lengths is “00 00 00 00” or “00 00 10 00”, the second state is changed, and the six basics input in order up to the previous one The third state to be transitioned when the input data of the first two basic data lengths among the input data of the data length is “00 00”, the six basic data lengths input in order up to the previous one The fourth state to be shifted when the input data of the first basic data length among the input data of “0” is “00”, the last bit of the 17PP code having the basic code length of the previous three bits is 0 A fifth state that is transitioned in some cases, and a sixth state that is transitioned in the case where the last bit of the 17PP code of the previous three-bit basic code length is 1, Of the first to sixth states in which the correspondence between the input data of the basic data length and the 17PP code of one basic code length is defined, the fifth state and the sixth state The fourth state has priority and the fourth state The third state has priority over the state, the second state has priority over the third state, and the first state has priority over the second state, The state machine is a state machine, and in the fourth state to the sixth state, the first two basic data length input data among the six basic data length input data is “00 00”. Or when the input data of the first basic data length among the six basic data length input data is “00”, the input data of “00 00” or the input data of “00” is When it is the end, 17PP code different from the 17PP code when the input data of “00 00” or the input data of “00” is not the end of the frame is specified for the input data of six basic data lengths Is configured as a state machine that is, based on the input data and the termination signal of the six basic data length entered sequentially, comprising the step of encoding the input data to the 17PP code.
本発明の一側面においては、入力データがフレームの終端であることを示す終端信号が生成され、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、第5の状態および第6の状態に対して第4の状態が優先され、第4の状態に対して第3の状態が優先され、第3の状態に対して第2の状態が優先され、第2の状態に対して第1の状態が優先されるように、状態遷移するステートマシンであって、第4の状態乃至第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データがフレームの終端であるとき、「00 00」である入力データまたは「00」である入力データがフレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび終端信号を基に、入力データが17PP符号に符号化される。
In one aspect of the present invention, a termination signal indicating that the input data is the end of the frame is generated, and the first three basic data among the six basic data length input data sequentially input up to the previous one The first state to be transited when the input data of the data length is “11 01 11” and the 17PP code for the input data next to the input data of the three basic data lengths is “010”, 1 Transition is made when the input data of the first four basic data lengths among the input data of the six basic data lengths input in order up to the previous one is “00 00 00 00” or “00 00 10 00”. Transition to the second state, when the input data of the first two basic data lengths among the six basic data length input data sequentially input up to the previous one is “00 00” A fourth state to be transited when the first basic data length input data among the six basic data length input data sequentially input up to the previous one is “00”, The fifth state that is shifted when the last bit of the previous 17-bit code of the 3-bit basic code length is 0, and the last bit of the previous 17-bit code of the 3-bit basic code length is In the sixth state to which the transition is made when the number is 1, the first state through the state in which the correspondence relationship between the input data having six basic data lengths and the 17PP code having one basic code length are defined Of the sixth states, the fourth state has priority over the fifth state and the sixth state, the third state has priority over the fourth state, and the third state has priority over the third state.
以上のように、本発明の側面によれば、17PP符号の符号化を行うことができる。特に、本発明の側面によれば、回路規模をより縮小することができる。 As described above, according to the aspect of the present invention, it is possible to encode the 17PP code. In particular, according to the aspect of the present invention, the circuit scale can be further reduced.
以下に本発明の実施の形態を説明するが、本発明の構成要件と、明細書又は図面に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、明細書又は図面に記載されていることを確認するためのものである。したがって、明細書又は図面中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. Correspondences between the constituent elements of the present invention and the embodiments described in the specification or the drawings are exemplified as follows. This description is intended to confirm that the embodiments supporting the present invention are described in the specification or the drawings. Therefore, even if there is an embodiment that is described in the specification or the drawings but is not described here as an embodiment that corresponds to the constituent elements of the present invention, that is not the case. It does not mean that the form does not correspond to the constituent requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.
本発明の一側面の符号化装置は、基本データ長が2ビットの入力データを、基本符号長が3ビットの17PP(Parity Preserve/Prohibit Repeated Minimum Transition Runlength)符号に変換する符号化装置であって、入力データがフレームの終端であることを示す終端信号を生成する生成手段(例えば、図3のフレームカウンタ11)と、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化する符号化手段(例えば、図3のデータ符号化部18)とを備える。
An encoding apparatus according to an aspect of the present invention is an encoding apparatus that converts input data having a basic data length of 2 bits into a 17PP (Parity Preserve / Prohibit Repeated Minimum Transition Runlength) code having a basic code length of 3 bits. Generation means (for example, the
前記入力データと前記17PP符号との前記対応関係は、前記第1乃至第6の状態ごとの状態テーブル(例えば、図5乃至図10の変換テーブル)によって規定されるようにすることができる。 The correspondence relationship between the input data and the 17PP code can be defined by a state table for each of the first to sixth states (for example, the conversion tables of FIGS. 5 to 10).
前記状態テーブルには、順に入力された6つの基本データ長の入力データに対応して、1つの基本符号長の17PP符号、第1の状態乃至第6の状態のうちの遷移する状態、および6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」または「00」であり、かつ前記フレームの終端であるかを示す情報が規定されるようにすることができる。 In the state table, corresponding to the input data of six basic data lengths input in order, a 17PP code of one basic code length, a transition state from the first state to the sixth state, and 6 Information indicating whether the input data of the first two basic data lengths among the input data of the two basic data lengths is “00 00” or “00” and the end of the frame is specified. be able to.
前記第5の状態および前記第6の状態は、前記入力データの符号化が開始される状態である初期状態であり、前記初期状態は、前記フレームにおける前記符号列の前に配置される同期信号パターンの最後のビットによって、前記第5の状態または前記第6の状態のいずれかであるかが決定されるようにすることができる。 The fifth state and the sixth state are initial states in which encoding of the input data is started, and the initial state is a synchronization signal arranged before the code string in the frame The last bit of the pattern may determine whether the fifth state or the sixth state.
6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」または「00」であり、かつ前記フレームの終端であるかを示す情報に基づいて、次のフレームにおける前記同期信号パターンの先頭の1ビットが決定されるようにすることができる。 Based on the information indicating whether the input data of the first two basic data lengths among the input data of the six basic data lengths is “00 00” or “00” and the end of the frame, The first bit of the sync signal pattern in the frame can be determined.
本発明の一側面の符号化方法は、基本データ長が2ビットの入力データを、基本符号長が3ビットの17PP符号に変換する符号化方法であって、入力データがフレームの終端であることを示す終端信号を生成し(例えば、図11のステップS13)、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化するステップ(例えば、図11のステップS19)を含む。 An encoding method according to an aspect of the present invention is an encoding method for converting input data having a basic data length of 2 bits into a 17PP code having a basic code length of 3 bits, and the input data is a frame end. (For example, step S13 in FIG. 11), the input data of the first three basic data lengths among the input data of the six basic data lengths input in order up to the previous one are “11”. 01 11 ”, and the first state to be transitioned to when the 17PP code for the input data next to the input data of the three basic data lengths is“ 010 ”. The second state that is shifted when the input data of the first four basic data lengths among the six basic data length input data is “00 00 00 00” or “00 00 10 00”, 1 The third state that is shifted when the first two basic data length input data among the six basic data length input data input in order before is “00 00”. The fourth state that is shifted when the input data of the first basic data length among the input data of the six basic data lengths input in order is “00”, the basic code length of the previous three bits The fifth state that is changed when the last bit of the 17PP code is 0, and the sixth state that is changed when the last bit of the 17PP code having the basic code length of 3 bits immediately before is 1 Each of the first to sixth states in which a correspondence relationship between input data having six basic data lengths and a 17PP code having one basic code length is defined. For the state and the sixth state The fourth state has priority, the third state has priority over the fourth state, the second state has priority over the third state, and the second state A state machine that makes a state transition so that the first state is prioritized, and in the fourth to sixth states, the first two basics among the six basic data length input data When the input data of the data length is “00 00”, or when the input data of the first basic data length of the six basic data length input data is “00”, the input data is “00 00” Alternatively, when the input data of “00” is the end of the frame, the input data of “00 00” or the 17PP code different from the 17PP code when the input data of “00” is not the end of the frame is 6 One group A step of encoding the input data into a 17PP code based on the six basic data length input data and the termination signal, which are configured in order as the state machine defined for the input data of the data length (for example, Step S19) of FIG. 11 is included.
以下、本発明の一実施の形態として、17PP符号の符号化を行う記録装置について説明する。 Hereinafter, as an embodiment of the present invention, a recording apparatus that performs 17PP encoding will be described.
図3は、本発明を適用した記録装置1の一実施の形態を示すブロック図である。
FIG. 3 is a block diagram showing an embodiment of the
図3に示されるように、記録装置1は、フレームカウンタ11、フレームシンクパターン決定部12、遅延回路13、遅延回路14、遅延回路15、遅延回路16、遅延回路17、データ符号化部18、および符号列出力部19から構成される。
As shown in FIG. 3, the
なお、記録装置1には、1クロックに2ビットのデータが入力される。1フレームのデータは644クロックであるので、1フレームとして入力されるデータは1288ビットとなる。
The
フレームカウンタ11は、Frame SyncおよびRUB(Recording Unit Block) Syncの入力を受け付ける。Frame Syncは、644クロックごと、すなわち1フレームごとに、フレームの先頭のデータ列と同時に入力される信号である。RUB Syncは、Frame Syncとは異なるポートから入力される1ビットのデータであり、31フレームごとにFrame Syncと同時に入力される。言い換えれば、RUB Syncは、フレームナンバ0であるフレームを特定する信号である。また、RUB Syncは、31×n(nは自然数)フレームごとに入力されるようにしてもよい。
The
フレームカウンタ11は、入力されたフレームの数をカウントする。フレームカウンタ11は、RUB Syncによって特定されたフレームナンバ0であるフレームからカウントされたフレームの数によって、現在のフレームのフレームナンバを算出し、フレームシンクパターン決定部12に供給する。
The
また、フレームカウンタ11は、1フレームごとに供給されるFrame Syncに基づいて、後述するデータ符号化部18を構成するステートマシンのステートを初期化するための信号であるステートマシン初期化信号を生成する。また、フレームカウンタ11は、フレームナンバに応じて、ステートマシンにおいて最初のステートを決定する情報である初期ステート情報を生成する。さらに、フレームカウンタ11は、1フレームごとに供給されるFrame Syncに基づいて、データ列におけるフレームの終端の入力ビットが入力される時刻から5クロック分遡った時刻から、その終端の入力ビットが入力される時刻まで、フレームの終端であることを示す信号である終端フラグを生成する。フレームカウンタ11は、生成したステートマシン初期化信号、初期ステート情報、および終端フラグをデータ符号化部18に供給する。
Further, the
なお、フレームの終端であることを示す終端フラグは、データ列のうちの、フレームの終端の5クロック分の入力ビットがデータ符号化部18に入力される期間において継続して、データ符号化部18に入力される。
The end flag indicating the end of the frame continues in the period in which the input bits for 5 clocks at the end of the frame of the data string are input to the
フレームシンクパターン決定部12は、図1に示されるフレームシンクパターン決定テーブルを有し、フレームカウンタ11から供給されたフレームナンバに基づいて、フレームシンクパターンを決定する。フレームシンクパターン決定部12は、フレームシンクパターン決定テーブルに従って決定された30ビットのフレームシンクパターンを、1クロックに3ビットずつ10クロックにわたって、符号列出力部19に供給する。
The frame sync
また、フレームシンクパターン決定部12は、フレームシンクパターンを符号列出力部19に供給した後、セレクタ信号を生成し、符号列出力部19に供給する。ここで、セレクタ信号は、それぞれのフレームについての644クロックのうちの最初の10クロック分をフレームシンクパターンとし、残りの634クロックを符号化された符号化データであるデータ部とするための信号である。すなわち、セレクタ信号によって、符号列出力部19において、1フレームにおけるフレームシンクパターンと符号化データとの境界が決定される。
The frame sync
遅延回路13は、図示せぬ外部の機器から2ビットずつ入力されたデータ列を2ビットごとに1クロック遅延させて、遅延回路14およびデータ符号化部18に供給する。
The
遅延回路14は、入力されたデータ列を2ビットごとにさらに1クロック遅延させる。
The
すなわち、遅延回路14は、遅延回路13から供給された1クロック遅延された2ビットのデータをさらに1クロック遅延させて、遅延回路15およびデータ符号化部18に供給する。
That is, the
遅延回路15は、入力されたデータ列を2ビットごとにさらに1クロック遅延させる。
The
すなわち、遅延回路15は、遅延回路14から供給された2クロック遅延された2ビットのデータをさらに1クロック遅延させて、遅延回路16およびデータ符号化部18に供給する。
That is, the
遅延回路16は、入力されたデータ列を2ビットごとにさらに1クロック遅延させる。
The
すなわち、遅延回路16は、遅延回路15から供給された3クロック遅延された2ビットのデータをさらに1クロック遅延させて、遅延回路17およびデータ符号化部18に供給する。
That is, the
遅延回路17は、入力されたデータ列を2ビットごとにさらに1クロック遅延させる。
The
すなわち、遅延回路17は、遅延回路16から供給された4クロック遅延された2ビットのデータをさらに1クロック遅延させて、データ符号化部18に供給する。
That is, the
すなわち、図示せぬ外部の機器から入力されたデータ列を基準として、遅延のない2ビットの入力データI5、遅延回路13により出力される1クロック遅延された2ビットの入力データI4、遅延回路14により出力される2クロック遅延された2ビットの入力データI3、遅延回路15により出力される3クロック遅延された2ビットの入力データI2、遅延回路16により出力される4クロック遅延された2ビットの入力データI1、遅延回路17により出力される5クロック遅延された2ビットの入力データI0からなる、6クロック分の12ビットのデータがデータ符号化部18に同時に供給される。
That is, with reference to a data string input from an external device (not shown), 2-bit input data I5 without delay, 2-bit input data I4 delayed by one clock output from the
データ符号化部18は、後述するステートマシンにより構成される。データ符号化部18を構成するステートマシンは、フレームカウンタ11から供給されたステートマシン初期化信号によって、初期化される。また、データ符号化部18を構成するステートマシンの初期ステート(初期状態)は、フレームカウンタ11から供給された初期ステート情報によって決定される。
The
データ符号化部18は、外部の機器および遅延回路13乃至遅延回路17より供給される6クロック分の入力データI0乃至I5の同時の入力を受け付ける。ステートマシンであるデータ符号化部18は、入力データI0乃至I5を符号化し、入力データI0乃至I5に対する3ビットの符号化データOを1クロックごとに出力する。データ符号化部18は、1クロックに3ビットずつの符号化データOを符号列出力部19に供給する。
The
また、データ符号化部18は、フレームカウンタ11から供給された終端フラグに基づいて、データ列のうちの1フレームの最後の2ビットである入力データI0乃至I4のいずれか1つに対して、フレームの終端であることを示す終端情報を付加する。終端情報は、データ符号化部18の内部において、5クロック分連続する終端フラグによって、フレームの最後の2ビットのデータである入力データI0乃至I4のいずれか1つに対して付加される。
Further, the
また、データ符号化部18は、終結処理確認ビットTを符号列出力部19に供給する。終結処理確認ビットTは、符号化されるフレームが終結処理で終了しているか否かを示す信号であり、フレームの終端が終結処理を行う終結パターンである場合「1」となり、終結パターンでない場合「0」となる。
In addition, the
符号列出力部19は、フレームシンクパターン決定部12から供給されるフレームシンクパターンおよびセレクタ信号、並びにデータ符号化部18から供給される符号化データOおよび終結処理確認ビットTに基づいて、17PP符号列を出力する。
The code
より具体的には、符号列出力部19は、供給されたフレームシンクパターンおよび符号化データOからなるビット列から、セレクタ信号によって、644クロックのフレーム区間のうちの最初の10クロックにおいてフレームシンクパターンを選択し、残りの634クロックにおいてデータ部を構成する符号化データOを選択する。また、符号列出力部19は、1フレーム前の終結処理確認ビットTを保持し、1フレーム前の終結処理確認ビットTに基づいて、今フレームで出力されるフレームシンクパターンのSync-bodyの最初の1ビットを決定する。
More specifically, the code
なお、出力される17PP符号列は、1クロックで3ビットとなるので、1フレーム分で1932ビットとなる。 Since the output 17PP code string is 3 bits per clock, it is 1932 bits per frame.
次に、データ符号化部18を構成するステートマシンについて説明する。
Next, a state machine constituting the
図4は、データ符号化部18を構成するステートマシンについて説明する図である。
FIG. 4 is a diagram for explaining the state machine constituting the
図4に示されるように、ステートマシンはステート0乃至ステート5の6つの状態からなる。
As shown in FIG. 4, the state machine has six states,
ステート0は、1クロック前の3ビットの出力ビットのうちの最後のビットが0である場合のステートである。例えば、図1のフレームシンクパターン決定テーブルにおけるSync-IDの最後のビットが0である場合、すなわち、図1のフレームシンクパターン決定テーブルにおけるフレームステートがFS1,FS2,FS4、またはFS6である場合、初期ステートは、ステート0となる。
ステート0であるステートマシンは、1クロックでステート1、ステート2、またはステート5のいずれかに遷移するか、またはステート0のままとされる。
A state machine that is in
ステート1は、1クロック前の3ビットの出力ビットのうちの最後のビットが1である場合のステートである。例えば、図1のフレームシンクパターン決定テーブルにおけるSync-IDの最後のビットが1である場合、すなわち、図1のフレームシンクパターン決定テーブルにおけるフレームステートがFS0,FS3、またはFS5である場合、初期ステートは、ステート1となる。
ステート1であるステートマシンは、1クロックでステート0、ステート2、またはステート5のいずれかに遷移するか、またはステート1のままとされる。
The state machine that is
データ符号化部18を構成するステートマシンにおいて、初期ステートがステート0であるか、ステート1であるかは、フレームカウンタ11から供給される初期ステート情報によって決定される。
In the state machine constituting the
ステート2は、「00 …」である入力データを処理するためのステートである。すなわち、入力データとして、図2の符号化テーブルに示される「00 01」(すなわち、「00」である入力データI0と「01」である入力データI1)、「00 10」(すなわち、「00」である入力データI0と「10」である入力データI1)、および「00 11」(すなわち、「00」である入力データI0と「11」である入力データI1)のいずれかが入力された場合、ステートはステート2に遷移する。
ステート2であるステートマシンは、1クロックでステート0またはステート3のいずれかに遷移する。
The state machine in
ステート3は、「00 00 …」である入力データを処理するためのステートである。すなわち、入力データとして、図2の符号化テーブルに示される「00 00 00」(すなわち、「00」である入力データI0と「00」である入力データI1と「00」である入力データI2)、「00 00 01」(すなわち、「00」である入力データI0と「00」である入力データI1と「01」である入力データI2)、「00 00 10」(すなわち、「00」である入力データI0と「00」である入力データI1と「10」である入力データI2)、および「00 00 11」(すなわち、「00」である入力データI0と「00」である入力データI1と「11」である入力データI2)のいずれかが入力された場合、ステートはステート3に遷移する。
ステート3であるステートマシンは、1クロックでステート0またはステート4のいずれかに遷移する。
The state machine in
ステート4は、「00 00 00 00」、または「00 00 10 00」である入力データを処理するためのステートである。すなわち、入力データとして、図2の符号化テーブルに示される「00 00 00 00」(すなわち、「00」である入力データI0と「00」である入力データI1と「00」である入力データI2と「00」である入力データI3)、または「00 00 10 00」(すなわち、「00」である入力データI0と「00」である入力データI1と「10」である入力データI2と「00」である入力データI3)が入力された場合、ステートはステート4に遷移する。
ステート4であるステートマシンは、1クロックでステート0に遷移する。
The state machine in
ステート5は、特殊処理のためのステートである。すなわち、図2の符号化テーブルに示される「11 01 11」(すなわち、「11」である入力データI0と「01」である入力データI1と「11」である入力データI2)が入力された場合、ステートはステート5に遷移する。
ステート5であるステートマシンは、1クロックでステート0に遷移するか、またはステート5のままとされる。
A state machine that is in
このような構成により、ステートマシンは、クロックごとの入力データに応じて、ステート0乃至ステート5のそれぞれにおいて定められた入力データを符号化データに変換する変換テーブルに従い、符号化データを出力するとともに、次のクロックにおけるステートを決定することができる。
With this configuration, the state machine outputs encoded data according to a conversion table that converts input data determined in each of
図5乃至図10は、ステートマシンのステート0乃至ステート5における変換テーブルの構成を示す図である。
5 to 10 are diagrams showing the configuration of the conversion table in the
図5乃至図10に示される各ステートの変換テーブルにおいて、I0乃至I5は、それぞれ、2ビットずつに区切られた、外部の機器および遅延回路13乃至遅延回路17から入力される入力データI0乃至入力データI5を示す。入力データI0乃至I5のうち、入力データI0が時間的に最も早く記録装置1に入力され、データ列において、入力データI0、入力データI1、入力データI2、入力データI3、入力データI4、入力データI5の順に配置されている。図5乃至図10において、「t」が付された入力データI0乃至I4のいずれかは、データ符号化部18によって終端情報が付加されているものである。入力データI0乃至入力データI4のいずれに終端情報が付加されるかは、フレームカウンタ11から供給される、フレームの先頭を示すFrame-syncから生成された終端フラグに基づいて決定される。
In the state conversion tables shown in FIGS. 5 to 10, I0 to I5 are input data I0 to I5 input from an external device and the
図5乃至図10において、Oは、クロックごとに出力される3ビットの符号化データを示す。図5乃至図10において、Tは、終結処理確認ビットを示し、終結処理確認ビットTは、フレームの終端が終結パターンである場合「1」となり、終結パターンでない場合「0」となる。また、終結処理確認ビットTに基づいて、フレームシンクパターンのsync-bodyにおける最初の1ビットが決定される。 5 to 10, O indicates 3-bit encoded data output for each clock. 5 to 10, T indicates a termination process confirmation bit. The termination process confirmation bit T is “1” when the end of the frame is a termination pattern, and “0” when the frame is not a termination pattern. Further, based on the termination process confirmation bit T, the first 1 bit in the sync-body of the frame sync pattern is determined.
図5乃至図10において、toは、ステートの遷移先、すなわち、次のクロックにおけるステート0乃至ステート5のうちのいずれか1つのステートを示す。
5 to 10, to indicates a state transition destination, that is, any one of the
なお、図5乃至図10の入力データI0乃至I5において、空欄は、どのようなデータであってもよいことを示す。また、入力データI0乃至I5において、「*」で表されるデータ(ビット)は0または1のいずれの値でもよいことを示し、ステートの遷移先toにおいて、「X」で表される値は0乃至5のいずれの値でもよいことを示す。 In the input data I0 to I5 in FIGS. 5 to 10, the blank indicates that any data may be used. In addition, in the input data I0 to I5, the data (bit) represented by “*” may be any value of 0 or 1. In the state transition destination to, the value represented by “X” is It indicates that any value of 0 to 5 is acceptable.
このように、ステートマシンのステート0乃至ステート5における変換テーブルには、入力データI0乃至I5に対応した、符号化データO、ステートの遷移先to、および終結処理確認ビットTが規定されている。
Thus, in the conversion table in
なお、以下の説明においては、所定のクロックにおいて、例えば、入力データI0として「ab」(a,bはそれぞれ0または1)が入力され、入力データI1として「cd」(c,dはそれぞれ0または1)が入力され、入力データI2として「ef」(e,fはそれぞれ0または1)が入力され、入力データI3として「gh」(g,hはそれぞれ0または1)が入力され、入力データI4として「ij」(i,jはそれぞれ0または1)が入力され、入力データI5として「km」(k,mはそれぞれ0または1)が入力されることを、(I0,I1,I2,I3,I4,I5)=(ab cd ef gh ij km)と表すこととする。 In the following description, for example, “ab” (a and b are 0 or 1 respectively) is input as input data I0 and “cd” (c and d are 0 respectively) as input data I1 at a predetermined clock. Or 1) is input, "ef" (e and f are each 0 or 1) is input as input data I2, and "gh" (g and h are 0 or 1 respectively) is input and input. It is assumed that “ij” (i and j are 0 or 1 respectively) is input as the data I4 and “km” (k and m are 0 or 1 respectively) is input as the input data I5 (I0, I1, I2 , I3, I4, I5) = (ab cd ef gh ij km).
なお、以下の説明において、「*」は、0または1のいずれの値でもよいことを示す。さらに、tは、終端情報が付加されていることを示す。 In the following description, “*” indicates that any value of 0 or 1 may be used. Furthermore, t indicates that termination information is added.
まず、ステート0における変換の詳細について説明する。
First, details of the conversion in
図5に示されるステート0の変換テーブルに従えば、所定のクロックにおいて(I0,I1,I2,I3,I4,I5)=(11t ** ** ** ** **)がデータ符号化部18に入力された場合、データ符号化部18から符号化データOとして「101」が出力される。また、入力データがフレームの終端のデータのみである、すなわち、1フレーム分のデータの入力が終了したことになるので、遷移先のステートは「X」となる。すなわち、次のクロックにおいて、次のフレームのデータが入力され、ステートは初期化されるので、どのステートに遷移してもよいことになる。また、終結処理ではないので、「0」である終結処理確認ビットTが出力される。
According to the
なお、実際には、フレームの終端以降のデータは存在しないので、データの終端を示す「t」以降の「*」は何も入力されないことを表す。 Actually, since there is no data after the end of the frame, “*” after “t” indicating the end of the data indicates that nothing is input.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01t ** ** ** **)であるとき、符号化データOとして「101」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01t ** ** ** **), “101” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11t ** ** **)であるとき、符号化データOとして「101」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11t ** ** **), “101” is output as the encoded data O, and the state is Transition to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00t ** **)であるとき、符号化データOとして「101」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00t **), “101” is output as encoded data O, and the state is the state Transition to 1. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11t 00 00t **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00 00 0*)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00 00 0 *), “001” is output as the encoded data O, and the state is
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00 1* **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00 1 **), “001” is output as encoded data O, and the state is the state Transition to 5. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 01 ** **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 01 ** **), “001” is output as the encoded data O, and the state is the state Transition to 5. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)であるとき、符号化データOとして「101」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **), “101” is output as the encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10 ** ** ** ** **)であるとき、符号化データOとして「001」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (10 ** ** ** ** **), “001” is output as the encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (01 ** ** ** ** **), “010” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)であるとき、符号化データOとして「000」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。さらに、終結処理であることを示す終結処理確認ビットTとして「1」が出力される。 When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (00t ** ** ** ** **), “000” is output as the encoded data O. . Further, since the input data is only the data at the end of the frame, the transition destination state is “X”, and the transition may be made to any state. Further, “1” is output as a termination process confirmation bit T indicating termination process.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00t ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00t ** ** ** **), “010” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00 0* ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00 0 ** ** ** **), “010” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00 1* ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00 1 * ** ** **), “000” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 01 ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 01 ** ** ** **), “000” is output as encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 1* ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 1 * ** ** ** **), “010” is output as encoded data O, The state transitions to
次に、ステート1における変換の詳細について説明する。
Next, details of the conversion in
図6に示されるステート1の変換テーブルに従えば、所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11t ** ** ** ** **)であるとき、符号化データOとして「000」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
According to the
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01t ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01t ** ** ** **), “000” is output as encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11t ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11t ** ** **), “000” is output as encoded data O, and the state is Transition to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00t ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00t **), “000” is output as the encoded data O, and the state is the state Transition to 0. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00 00t **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00 00t **), “001” is output as the encoded data O, and the state is
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00 00 0*)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00 00 0 *), “001” is output as the encoded data O, and the state is
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 00 1* **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 00 1 **), “001” is output as encoded data O, and the state is the state Transition to 5. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 01 11 01 ** **)であるとき、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 01 ** **), “001” is output as the encoded data O, and the state is the state Transition to 5. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **), “000” is output as the encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10 ** ** ** ** **)であるとき、符号化データOとして「001」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (10 ** ** ** ** **), “001” is output as the encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (01 ** ** ** ** **), “010” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)であるとき、符号化データOとして「000」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。さらに、終結処理であることを示す終結処理確認ビットTとして「1」が出力される。 When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (00t ** ** ** ** **), “000” is output as the encoded data O. . Further, since the input data is only the data at the end of the frame, the transition destination state is “X”, and the transition may be made to any state. Further, “1” is output as a termination process confirmation bit T indicating termination process.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00t ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00t ** ** ** **), “010” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00 0* ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00 0 ** ** ** **), “010” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00 1* ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00 1 * ** ** **), “000” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 01 ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 01 ** ** ** **), “000” is output as encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 1* ** ** ** **)であるとき、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 1 * ** ** ** **), “010” is output as encoded data O, The state transitions to
次に、ステート2における変換の詳細について説明する。
Next, details of the conversion in
図7に示されるステート2の変換テーブルに従えば、所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)であるとき、符号化データOとして「100」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。さらに、終結処理であることを示す終結処理確認ビットTとして「1」が出力される。
According to the
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート3に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (01 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (10 ** ** ** ** **), “000” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
次に、ステート3における変換の詳細について説明する。
Next, details of the conversion in
図8に示されるステート3の変換テーブルに従えば、所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)であるとき、符号化データOとして「000」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
According to the
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 00 ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート4に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at the predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 00 ** ** ** **), “100” is output as the encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 ** ** ** ** **), “000” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (01 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10t ** ** ** ** **)であるとき、符号化データOとして「000」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。 When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (10t ** ** ** ** **), “000” is output as encoded data O. . Further, since the input data is only the data at the end of the frame, the transition destination state is “X”, and the transition may be made to any state. Further, since it is not a termination process, “0” is output as the termination process confirmation bit T.
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10 00 ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート4に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (1 00 ** ** ** ** **), “100” is output as encoded data O, and the state Transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(10 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (10 ** ** ** ** **), “000” is output as encoded data O, The state transitions to
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
次に、ステート4における変換の詳細について説明する。
Next, details of the conversion in
図9に示されるステート4の変換テーブルに従えば、所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)であるとき、符号化データOとして「100」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
According to the
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(00 ** ** ** ** **)であるとき、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When input data at a predetermined clock is (I0, I1, I2, I3, I4, I5) = (00 ** ** ** ** **), “100” is output as encoded data O, The state transitions to
次に、ステート5における変換の詳細について説明する。
Next, details of the conversion in
図10に示されるステート5の変換テーブルに従えば、所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
According to the conversion table of
所定のクロックにおける入力データが(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)であるとき、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
When the input data in a predetermined clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **), “000” is output as the encoded data O, The state transitions to
以上のように、データ符号化部18を構成するステートマシンは、ステートごとに定められた変換テーブルに従って、1クロックごとに、ステートを遷移させると共に、符号化されたデータを出力する。
As described above, the state machine constituting the
図11は、記録装置1における、17PP符号の符号化の処理を説明するフローチャートである。
FIG. 11 is a flowchart for explaining the 17PP code encoding process in the
記録装置1は、外部の機器から、所定のフレームにおける先頭のビットが入力されたとき、符号化の処理を開始する。
The
ステップS11において、フレームカウンタ11は、Frame SyncおよびRUB Syncの入力を受け付ける。
In step S11, the
ステップS12において、フレームカウンタ11は、フレームナンバを算出する。より具体的には、フレームカウンタ11は、RUB Syncによって特定されたフレームナンバ0のフレームからカウントされたフレームの数によって、現在のフレームのフレームナンバを算出し、フレームシンクパターン決定部12に供給する。
In step S12, the
ステップS13において、フレームカウンタ11は、ステートマシン初期化信号、初期ステート情報、および終端フラグを生成する。フレームカウンタ11は、生成したステートマシン初期化信号、初期ステート情報、および終端フラグをデータ符号化部18に供給する。
In step S13, the
ステップS14において、フレームシンクパターン決定部12は、フレームシンクパターン決定テーブルに従い、フレームカウンタ11から供給されたフレームナンバに基づいて、フレームシンクパターンを決定する。フレームシンクパターン決定部12は、フレームシンクパターン決定テーブルに従って決定された30ビットのフレームシンクパターンを、1クロックに3ビットずつ10クロックにわたって、符号列出力部19に供給する。
In step S14, the frame sync
ステップS15において、フレームシンクパターン決定部12は、セレクタ信号を生成する。フレームシンクパターン決定部12は、生成したセレクタ信号を、符号列出力部19に供給する。
In step S15, the frame sync
ステップS16において、データ符号化部18は、フレームカウンタ11から供給されたステートマシン初期化信号によって、ステートマシン(としての自分自身)を初期化する。
In step S <b> 16, the
ステップS17において、データ符号化部18は、フレームカウンタ11から供給された初期ステート情報によって、初期ステートを決定する。初期ステートは、フレームシンクパターン決定テーブルに従い、フレームナンバに応じて決定される。
In step S <b> 17, the
ステップS18において、データ符号化部18は、入力データの入力を受け付ける。より詳細には、データ符号化部18は、外部の機器および遅延回路13乃至遅延回路17より供給される6クロック分の入力データI0乃至I5の入力を、1クロックに2ビットずつ受け付ける。
In step S18, the
ステップS19において、データ符号化部18は、符号化処理を行う。より具体的には、ステートマシンとしてのデータ符号化部18は、入力データI0乃至I5を符号化する。データ符号化部18は、符号化により得られた符号化データO、および終結処理確認ビットTを符号列出力部19に供給する。
In step S19, the
ここで、図12のフローチャートを参照して、ステップS19に対応する、符号化処理の詳細について説明する。 Here, the details of the encoding process corresponding to step S19 will be described with reference to the flowchart of FIG.
ステップS31において、データ符号化部18は、フレームカウンタ11から供給された初期ステート情報に応じて、ステートマシンのステートを初期ステートに遷移させる。
In step S31, the
すなわち、ステートマシンとしてのデータ符号化部18のステートは、初期ステートに遷移する。
That is, the state of the
ステップS32において、データ符号化部18は、そのステートにおける変換テーブルに従って、入力データI0乃至I5に対応する符号化データO、および「0」である終結処理確認ビットTを出力する。
In step S32, the
ステップS33において、データ符号化部18は、そのステートにおける変換テーブルの遷移先に従って、ステートマシンのステートを次のステートに遷移させる。
In step S33, the
すなわち、ステートマシンとしてのデータ符号化部18のステートは、そのステートにおける変換テーブルの遷移先に従って、次のステートに遷移する。
That is, the state of the
ステップS34において、データ符号化部18は、入力データI0に終端情報が付加されているか否かを判定する。すなわち、データ符号化部18は、遷移したステートにおいて、入力データI0がフレームの終端のデータであるか否かを判定する。
In step S34, the
ステップS34において、データ符号化部18は、入力データI0に終端情報が付加されていないと判定した場合、すなわち、遷移したステートにおいて、入力データI0がフレームの終端のデータでない場合、処理はステップS32に戻り、入力データI0に終端情報が付加されていると判定されるまで、ステップS32およびステップS33の処理が繰り返される。
In step S34, if the
一方、ステップS34において、データ符号化部18は、入力データI0に終端情報が付加されていると判定した場合、すなわち、遷移したステートにおいて、入力データI0がフレームの終端のデータである場合、処理はステップS35に進む。
On the other hand, if the
ステップS35において、データ符号化部18は、そのステートにおける変換テーブルに従って、入力データI0に対応する符号化データO、および終結処理確認ビットTを出力し、処理は終了する。このとき、入力データI0が「00」であった場合、「1」である終結処理確認ビットTが出力され、入力データI0が「00」以外であった場合、「0」である終結処理確認ビットTが出力される。
In step S35, the
このようにして、データ符号化部18は、ステートマシンのステートを遷移することで、それぞれのステートにおける変換テーブルに従った符号化データO、および終結処理確認ビットTを出力する。
In this way, the
ここで、以下に、基本処理、特殊処理、および終結処理のそれぞれに該当する入力データに対するステートマシンの処理の具体的な例について説明する。 Here, a specific example of state machine processing for input data corresponding to each of basic processing, special processing, and termination processing will be described below.
まず、基本処理の入力データとして、「00 00 10 00 10 11」が入力された場合について説明する。なお、このときの初期ステート情報は、ステート1を示すものとする。
First, a case where “00 00 10 00 10 11” is input as input data for basic processing will be described. Note that the initial state information at this time indicates
「00 00 10 00 10 11」は6クロック分のデータであり、最初のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 00 10 00 10 11)となる。このとき、ステートマシンにおけるステートは、ステート1である。図6に示されるステート1の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
“00 00 10 00 10 11” is data for 6 clocks, and input data in the first clock is (I0, I1, I2, I3, I4, I5) = (00 00 10 00 10 11). At this time, the state in the state machine is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 10 00 10 11 **)となり、このときのステートはステート2であるので、図7に示されるステート2の変換テーブルに従えば、符号化データOとして「100」が出力され、ステートはステート3に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (00 10 00 10 11 **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(10 00 10 11 ** **)となり、このときのステートはステート3であるので、図8に示されるステート3の変換テーブルに従えば、符号化データOとして「100」が出力され、ステートはステート4に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (10 00 10 11 ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 10 11 ** ** **)となり、このときのステートはステート4であるので、図9に示されるステート4の変換テーブルに従えば、符号化データOとして「100」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (00 10 11 ** ** **), and the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(10 11 ** ** ** **)となり、このときのステートはステート0であるので、図5に示されるステート0の変換テーブルに従えば、符号化データOとして「001」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (10 11 ** ** ** **), and the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(11 ** ** ** ** **)となり、このときのステートはステート1であるので、図6に示されるステート1の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力され、入力された「00 00 10 00 10 11」に対する変換は終了する。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (11 ** ** ** ** **). Since the state at this time is
このようにして、基本処理の入力データとして、「00 00 10 00 10 11」が入力されたときの、データ符号化部18の出力は、「000 100 100 100 001 000」となる。なお、このように出力される符号化データは、図2に示される符号化テーブルに従っていることは明らかである。
In this way, when “00 00 10 00 10 11” is input as input data for basic processing, the output of the
次に、特殊処理を含む入力データとして、「00 10 11 01 11 01」が入力された場合について説明する。図2の符号化テーブルに示されるように、入力されるデータが「11 01 11」で、かつ、次のクロックの出力ビットが「010」であるとき、その変換は特殊処理として扱われる。なお、このときの初期ステート情報は、ステート0を示すものとする。
Next, a case where “00 10 11 01 11 01” is input as input data including special processing will be described. As shown in the encoding table of FIG. 2, when the input data is “11 01 11” and the output bit of the next clock is “010”, the conversion is treated as a special process. Note that the initial state information at this time indicates
「00 10 11 01 11 01」は6クロック分のデータであり、最初のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 10 11 01 11 01)となる。このとき、ステートマシンにおけるステートは、ステート0である。図5に示されるステート0の変換テーブルに従えば、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
“00 10 11 01 11 01” is data for 6 clocks, and the input data in the first clock is (I0, I1, I2, I3, I4, I5) = (00 10 11 01 11 01). At this time, the state in the state machine is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(10 11 01 11 01 **)となり、このときのステートはステート2であるので、図7に示されるステート2の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (10 11 01 11 01 **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(11 01 11 01 ** **)となり、このときのステートはステート0であるので、図5に示されるステート0の変換テーブルに従えば、符号化データOとして「001」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (11 01 11 01 ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(01 11 01 ** ** **)となり、このときのステートはステート5であるので、図10に示されるステート5の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート5に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (01 11 01 ** ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(11 01 ** ** ** **)となり、このときのステートはステート5であるので、図10に示されるステート5の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (11 01 ** ** ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(01 ** ** ** ** **)となり、このときのステートはステート0であるので、図5に示されるステート0の変換テーブルに従えば、符号化データOとして「010」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力され、入力された「00 10 11 01 11 01」に対する変換は終了する。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (01 ** ** ** ** **). Since the state at this time is
このようにして、特殊処理を含む入力データとして、「00 10 11 01 11 01」が入力されたときの、データ符号化部18の出力は、「010 000 001 000 000 010」となる。なお、このように出力される符号化データは、図2に示される符号化テーブルに従っていることは明らかである。
In this way, when “00 10 11 01 11 01” is input as input data including special processing, the output of the
次に、終結処理を含む入力データとして、「00 10 11 00 00t」が入力された場合について説明する。図2の符号化テーブルに示されるように、入力されるデータが「00 00」で、かつ、フレームの終端であるとき、その変換は終結処理として扱われる。なお、このときの初期ステート情報は、ステート0を示すものとする。
Next, a case where “00 10 11 00 00t” is input as input data including termination processing will be described. As shown in the encoding table of FIG. 2, when the input data is “00 00” and the end of the frame, the conversion is treated as a termination process. Note that the initial state information at this time indicates
「00 10 11 00 00t」は5クロック分のデータであり、最初のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 10 11 00 00t **)となる。このとき、ステートマシンにおけるステートは、ステート0である。図5に示されるステート0の変換テーブルに従えば、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
“00 10 11 00 00t” is data for 5 clocks, and the input data in the first clock is (I0, I1, I2, I3, I4, I5) = (00 10 11 00 00t **). At this time, the state in the state machine is
なお、フレームの終端を表す「t」以降の「*」は、上述したように、何も入力されないことを表す。 Note that “*” after “t” indicating the end of the frame indicates that nothing is input as described above.
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(10 11 00 00t ** **)となり、このときのステートはステート2であるので、図7に示されるステート2の変換テーブルに従えば、符号化データOとして「000」が出力され、ステートはステート0に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (10 11 00 00t ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(11 00 00t ** ** **)となり、このときのステートはステート0であるので、図5に示されるステート0の変換テーブルに従えば、符号化データOとして「101」が出力され、ステートはステート1に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data in the next clock is (I0, I1, I2, I3, I4, I5) = (11 00 00t ** ** **), and the state at this time is the
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00 00t ** ** ** **)となり、このときのステートはステート1であるので、図6に示されるステート1の変換テーブルに従えば、符号化データOとして「010」が出力され、ステートはステート2に遷移する。また、終結処理ではないので、終結処理確認ビットTとして「0」が出力される。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (00 00t ** ** ** **). Since the state at this time is
次のクロックにおける入力データは(I0,I1,I2,I3,I4,I5)=(00t ** ** ** ** **)となり、このときのステートはステート2であるので、図7に示されるステート2の変換テーブルに従えば、符号化データOとして「100」が出力される。また、入力データがフレームの終端のデータのみであるので、遷移先のステートは「X」となり、どのステートに遷移してもよいことになる。さらに、終結処理確認ビットTとして「1」が出力され、入力された「00 10 11 00 00t」に対する変換は終了する。
The input data at the next clock is (I0, I1, I2, I3, I4, I5) = (00t ** ** ** ** **), and the state at this time is
このようにして、終結処理を含む入力データとして、「00 10 11 00 00t」が入力されたときの、データ符号化部18の出力は、「010 000 101 010 100」となる。なお、このように出力される符号化データは、図2に示される符号化テーブルに従っていることは明らかである。
In this way, when “00 10 11 00 00t” is input as input data including termination processing, the output of the
このように、入力データは、データ符号化部18を構成するステートマシンによって、図2に示される符号化テーブルに従った符号化データに符号化される。
In this way, the input data is encoded into encoded data according to the encoding table shown in FIG. 2 by the state machine constituting the
図11のフローチャートの説明に戻り、ステップS20において、符号列出力部19は、フレームシンクパターン決定部12から供給されるフレームシンクパターンおよびセレクタ信号、並びにデータ符号化部18から供給される符号化データOおよび終結処理確認ビットTに基づいて、17PP符号列を出力し、処理は終了する。
Returning to the description of the flowchart of FIG. 11, in step S <b> 20, the code
このようにして、記録装置1は、ステートマシンによって、終結処理が考慮された17PP符号の符号化を行うことができる。
In this way, the
以上のように、符号化テーブルを用いるようにした場合には、17PP符号の符号化を行うことができる。また、入力データがフレームの終端であることを示す終端信号を生成し、
1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、第5の状態および第6の状態に対して第4の状態が優先され、第4の状態に対して第3の状態が優先され、第3の状態に対して第2の状態が優先され、第2の状態に対して第1の状態が優先されるように、状態遷移するステートマシンであって、第4の状態乃至第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データがフレームの終端であるとき、「00 00」である入力データまたは「00」である入力データがフレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび終端信号を基に、入力データを17PP符号に符号化するようにした場合には、回路規模をより縮小することができる。
As described above, when the encoding table is used, the 17PP code can be encoded. In addition, it generates a termination signal indicating that the input data is the end of the frame,
The input data of the first three basic data lengths among the input data of the six basic data lengths input in order up to the previous one is “11 01 11”, and the input data of the three basic data lengths The first four basic data of the six basic data length input data sequentially input in the first state that is shifted when the 17PP code for the next input data is “010” The second state to be transitioned when the long input data is “00 00 00 00” or “00 00 10 00”. Among the input data of the six basic data lengths input in order up to the previous one The third state to be transitioned when the input data of the first two basic data lengths are “00 00”, the first basic of the input data of the six basic data lengths input in order up to the previous one De The fourth state to be transitioned when the input data of the data length is “00”, and the fifth state to be transitioned when the last bit of the 17PP code having the basic code length of the previous 3 bits is 0. And a sixth state that is transitioned when the last bit of the 17PP code having a basic code length of 3 bits immediately before is 1, each of which has six basic data length input data, Of the first to sixth states in which the correspondence with one basic code length 17PP code is defined, the fourth state has priority over the fifth and sixth states, State transition is performed such that the third state has priority over the
以上においては、本発明を記録装置に適用した実施の形態について説明したが、本発明は、17PP符号の符号化を行う符号化装置に適用することができる。 In the above, an embodiment in which the present invention is applied to a recording apparatus has been described. However, the present invention can be applied to an encoding apparatus that performs encoding of a 17PP code.
また、本発明の実施の形態は、上述した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲において種々の変更が可能である。 The embodiments of the present invention are not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the present invention.
1 記録装置, 11 フレームカウンタ, 12 フレームシンクパターン決定部, 13乃至17 遅延回路, 18 データ符号化部, 19 符号列出力部
DESCRIPTION OF
Claims (6)
入力データがフレームの終端であることを示す終端信号を生成する生成手段と、
1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化する符号化手段と
を備える符号化装置。 In an encoding device that converts input data having a basic data length of 2 bits into a 17PP (Parity Preserve / Prohibit Repeated Minimum Transition Runlength) code having a basic code length of 3 bits,
Generating means for generating an end signal indicating that the input data is the end of the frame;
The input data of the first three basic data lengths among the input data of the six basic data lengths input in order up to the previous one is “11 01 11”, and the input data of the three basic data lengths The first four basic data of the six basic data length input data sequentially input in the first state that is shifted when the 17PP code for the next input data is “010” The second state to be transitioned when the long input data is “00 00 00 00” or “00 00 10 00”. Among the input data of the six basic data lengths input in order up to the previous one The third state to be transitioned when the input data of the first two basic data lengths are “00 00”, the first basic of the input data of the six basic data lengths input in order up to the previous one De The fourth state to be transitioned when the input data of the data length is “00”, and the fifth state to be transitioned when the last bit of the 17PP code having the basic code length of the previous 3 bits is 0. And a sixth state that is transitioned when the last bit of the 17PP code having a basic code length of 3 bits immediately before is 1, each of which has six basic data length input data, Of the first to sixth states in which the correspondence with one basic code length 17PP code is defined, the fourth state has priority over the fifth and sixth states. The third state has priority over the fourth state, the second state has priority over the third state, and the first state has priority over the second state. As a priority, a state machine that makes a state transition, the fourth state In the sixth state, when the input data of the first two basic data lengths among the input data of the six basic data lengths is “00 00”, or the first of the input data of the six basic data lengths When the input data of the basic data length of “00” is “00”, the input data of “00 00” or the input data of “00” is the end of the frame, the input data of “00 00” or “ The 17PP code different from the 17PP code when the input data of “00” is not the end of the frame is configured as a state machine defined for the input data of the six basic data lengths, and the six basics input in order An encoding apparatus comprising: encoding means for encoding input data into a 17PP code based on input data having a data length and the termination signal.
請求項1に記載の符号化装置。 The encoding apparatus according to claim 1, wherein the correspondence relationship between the input data and the 17PP code is defined by a state table for each of the first to sixth states.
請求項2に記載の符号化装置。 In the state table, corresponding to the input data of six basic data lengths input in order, a 17PP code of one basic code length, a transition state from the first state to the sixth state, and 6 Information indicating whether or not the first two basic data length input data of the two basic data length input data is “00 00” or “00” and is the end of the frame The encoding device according to claim 2, wherein:
前記初期状態は、前記フレームにおける前記符号列の前に配置される同期信号パターンの最後のビットによって、前記第5の状態または前記第6の状態のいずれかであるかが決定される
請求項1に記載の符号化装置。 The fifth state and the sixth state are initial states in which encoding of the input data is started,
2. The initial state is determined as to whether the fifth state or the sixth state is determined by the last bit of a synchronization signal pattern arranged before the code string in the frame. The encoding device described in 1.
請求項4に記載の符号化装置。 Based on the information indicating whether the input data of the first two basic data lengths among the input data of the six basic data lengths is “00 00” or “00” and the end of the frame, The encoding apparatus according to claim 4, wherein the first bit of the synchronization signal pattern in a frame is determined.
入力データがフレームの終端であることを示す終端信号を生成し、
1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の3つの基本データ長の入力データが「11 01 11」であり、かつ、その3つの基本データ長の入力データの次の入力データに対する17PP符号が「010」である場合に遷移させられる第1の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の4つの基本データ長の入力データが「00 00 00 00」または「00 00 10 00」である場合に遷移させられる第2の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合に遷移させられる第3の状態、1つ前までに順に入力された6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合に遷移させられる第4の状態、1つ前の3ビットの基本符号長の17PP符号の最後のビットが0である場合に遷移させられる第5の状態、および1つ前の3ビットの基本符号長の17PP符号の最後のビットが1である場合に遷移させられる第6の状態であって、それぞれ、6つの基本データ長の入力データと、1つの基本符号長の17PP符号との対応関係が規定されている第1の状態乃至第6の状態のうち、前記第5の状態および前記第6の状態に対して前記第4の状態が優先され、前記第4の状態に対して前記第3の状態が優先され、前記第3の状態に対して前記第2の状態が優先され、前記第2の状態に対して前記第1の状態が優先されるように、状態遷移するステートマシンであって、前記第4の状態乃至前記第6の状態において、6つの基本データ長の入力データのうちの最初の2つの基本データ長の入力データが「00 00」である場合、または6つの基本データ長の入力データのうちの最初の基本データ長の入力データが「00」である場合、「00 00」である入力データまたは「00」である入力データが前記フレームの終端であるとき、「00 00」である入力データまたは「00」である入力データが前記フレームの終端でないときの17PP符号と異なる17PP符号が、6つの基本データ長の入力データに対して規定されているステートマシンとして構成され、順に入力された6つの基本データ長の入力データおよび前記終端信号を基に、入力データを17PP符号に符号化する
ステップを含む符号化方法。 In an encoding method for converting input data having a basic data length of 2 bits into a 17PP (Parity Preserve / Prohibit Repeated Minimum Transition Runlength) code having a basic code length of 3 bits,
Generate a termination signal indicating that the input data is the end of the frame,
The input data of the first three basic data lengths among the input data of the six basic data lengths input in order up to the previous one is “11 01 11”, and the input data of the three basic data lengths The first four basic data of the six basic data length input data sequentially input in the first state that is shifted when the 17PP code for the next input data is “010” The second state to be transitioned when the long input data is “00 00 00 00” or “00 00 10 00”. Among the input data of the six basic data lengths input in order up to the previous one The third state to be transitioned when the input data of the first two basic data lengths are “00 00”, the first basic of the input data of the six basic data lengths input in order up to the previous one De The fourth state to be transitioned when the input data of the data length is “00”, and the fifth state to be transitioned when the last bit of the 17PP code having the basic code length of the previous 3 bits is 0. And a sixth state that is transitioned when the last bit of the 17PP code having a basic code length of 3 bits immediately before is 1, each of which has six basic data length input data, Of the first to sixth states in which the correspondence with one basic code length 17PP code is defined, the fourth state has priority over the fifth and sixth states. The third state has priority over the fourth state, the second state has priority over the third state, and the first state has priority over the second state. As a priority, a state machine that makes a state transition, the fourth state In the sixth state, when the input data of the first two basic data lengths among the input data of the six basic data lengths is “00 00”, or the first of the input data of the six basic data lengths When the input data of the basic data length of “00” is “00”, the input data of “00 00” or the input data of “00” is the end of the frame, the input data of “00 00” or “ The 17PP code different from the 17PP code when the input data of “00” is not the end of the frame is configured as a state machine defined for the input data of the six basic data lengths, and the six basics input in order An encoding method including a step of encoding input data into a 17PP code based on input data having a data length and the termination signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006304199A JP2008124640A (en) | 2006-11-09 | 2006-11-09 | Encoding apparatus and encoding method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006304199A JP2008124640A (en) | 2006-11-09 | 2006-11-09 | Encoding apparatus and encoding method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2008124640A true JP2008124640A (en) | 2008-05-29 |
Family
ID=39508966
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006304199A Withdrawn JP2008124640A (en) | 2006-11-09 | 2006-11-09 | Encoding apparatus and encoding method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2008124640A (en) |
-
2006
- 2006-11-09 JP JP2006304199A patent/JP2008124640A/en not_active Withdrawn
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100753966B1 (en) | Modulation / demodulation device and method with continuous minimum run length limitation | |
| RU2153200C2 (en) | Method for converting sequences of m-bit information words into modulated signal, method for manufacturing of record carrier, encoder, writing device, signal and record carrier | |
| JP3541439B2 (en) | Signal modulation method and apparatus, and signal demodulation apparatus and method | |
| JP2002271205A (en) | Modulation method, modulator, demodulation method, demodulator, information recoding medium, information transmitting method and information transmitting equipment | |
| JP2005339792A (en) | Record carrier | |
| US6639525B2 (en) | Method of converting a stream of databits of a binary information signal into a stream of databits of a constrained binary channel signal, device for encoding, signal comprising a stream of databits of a constrained binary channel signal, record carrier, and device for decoding | |
| KR100597326B1 (en) | Modulation device and method and distribution medium | |
| KR100954986B1 (en) | Modulation Device And Method | |
| JPH1186458A (en) | Modulating device and modulating method, demodulating device and demodulating method, and transmission medium | |
| JP4138031B2 (en) | Encoding device from n-bit source word to corresponding m-bit channel word, and reverse decoding device | |
| JP3935217B2 (en) | Conversion from a sequence of m-bit information words to a modulated signal | |
| JP3664091B2 (en) | Modulation method, modulation device, demodulation method, demodulation device, method of recording on information recording medium, information transmission method and information transmission device | |
| JP2003288760A (en) | Modulation method, modulator, recording medium, demodulation method, and demodulator | |
| JP2008124640A (en) | Encoding apparatus and encoding method | |
| JP2003536315A (en) | Device for encoding a stream of data bits of a binary source signal into a stream of data bits for a binary channel signal, a memory means, a device for recording information, a record carrier, a device for encoding, and a device for reproducing | |
| US20030123173A1 (en) | Method and apparatus for encoding data to guarantee isolated transitions in a magnetic recording system | |
| JP4224825B2 (en) | Digital data modulator | |
| JP4059211B2 (en) | Demodulation method and demodulator | |
| JP3692974B2 (en) | Encoding method, encoding device, recording medium, and program | |
| JP4124263B2 (en) | Signal modulation method and apparatus, signal demodulation apparatus and method, recording medium, recording medium manufacturing method, and manufacturing apparatus | |
| JP3018980B2 (en) | Recording code converter | |
| JP2000011551A (en) | Recording code converting method and decoding method, and synchronizing signal inserting method | |
| JP4059210B2 (en) | Information recording medium | |
| JP2007213658A (en) | Demodulation apparatus and method, program, and recording medium | |
| JPH04302865A (en) | Magnetic recording and reproducing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20100202 |