JPH0746479B2 - Code converter - Google Patents
Code converterInfo
- Publication number
- JPH0746479B2 JPH0746479B2 JP29677885A JP29677885A JPH0746479B2 JP H0746479 B2 JPH0746479 B2 JP H0746479B2 JP 29677885 A JP29677885 A JP 29677885A JP 29677885 A JP29677885 A JP 29677885A JP H0746479 B2 JPH0746479 B2 JP H0746479B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- group
- code word
- bit
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M5/00—Conversion of the form of the representation of individual digits
- H03M5/02—Conversion to or from representation by pulses
- H03M5/04—Conversion to or from representation by pulses the pulses having two levels
- H03M5/14—Code representation, e.g. transition, for a given bit cell depending on the information in one or more adjacent bit cells, e.g. delay modulation code, double density code
- H03M5/145—Conversion to or from block codes or representations thereof
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、ディジタル信号を記録する際に用いる、直流
成分を含まないRun Lenght Limited(DCフリーRLL)符
号を得るための符号変換装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code conversion device for obtaining a Run Lenght Limited (DC free RLL) code which does not contain a DC component, which is used when recording a digital signal.
従来の技術 ディジタルVTRのようなロータリートランスによる直流
成分遮断特性を示す伝送路を通して、ディジタル信号を
記録・再生する場合には、記録符号自身に直流成分を含
まないDCフリー符号を使用することが望ましい。2. Description of the Related Art When recording / reproducing a digital signal through a transmission line showing a DC component cutoff characteristic by a rotary transformer such as a digital VTR, it is desirable to use a DC free code that does not include a DC component in the recording code itself. .
更に、同一2進値の連続ビット数をd以上k以下に制限
するRLL符号の使用が望まれる。Furthermore, it is desired to use an RLL code that limits the number of consecutive bits of the same binary value to d or more and k or less.
通常、DCフリーRLL符号はmビットのデータ語をmより
大なるnビットの符号語に変換することによって得ら
れ、データ語の1ビット長をTとすると、符号語の1ビ
ット長 となる。Normally, a DC-free RLL code is obtained by converting an m-bit data word into an n-bit code word that is larger than m. Letting 1 bit length of the data word be T, the 1-bit length of the code word is Becomes
したがって、DCフリーRLL符号における2進値の最小反
転間隔Tmin=d・Tωとなる。Therefore, the minimum inversion interval T min = d · T ω of the binary value in the DC-free RLL code.
ところで、再生信号におけるビット誤り率に関し、伝送
路の高周波成分遮断特性の影響を少なくするために、T
minは大であること、再生時におけるピークシフトやジ
ッタ等の時間軸変動による影響を少なくするためにTω
は大であること、セルフクロック機能が得やすいという
点からkは小であることが、それぞれ望ましい。By the way, regarding the bit error rate in the reproduced signal, in order to reduce the influence of the high frequency component cutoff characteristic of the transmission line, T
min is large, and T ω is set in order to reduce the influence of fluctuations on the time axis such as peak shift and jitter during playback.
Is large, and it is desirable that k is small from the viewpoint of easily obtaining the self-clocking function.
従来、上記観点から種々のDCフリーRLL符号が開発され
ており、4/8変換符号(特開昭57−195308号公報)もそ
の一例である。Conventionally, various DC-free RLL codes have been developed from the above viewpoint, and the 4/8 conversion code (Japanese Patent Laid-Open No. 57-195308) is one example.
4/8変換符号は、前記定義に例えば、d=2,k=9,m=4,n
=8、Tω=0.5TなるDCフリーRLL符号であり、m=4
ビットのデータ語をn=8ビットの符号語に変換するこ
とにより、変換後の8ビットの符号語どうしの接続によ
って生じるビット列において、同一2進値の連続ビット
数を2以上9以下に制限すると共に、このビット列には
直流成分を含まない。The 4/8 conversion code has, for example, d = 2, k = 9, m = 4, n in the above definition.
= 8, T ω = 0.5T, DC-free RLL code, m = 4
By converting a data word of bits to a code word of n = 8 bits, the number of consecutive bits of the same binary value is limited to 2 or more and 9 or less in the bit string generated by the connection between the converted 8-bit code words. At the same time, this bit string does not include a DC component.
一般的に、直流成分を含まないDCフリー符号というの
は、次に示す性質を有する符号を言う。In general, a DC-free code that does not include a DC component refers to a code that has the following properties.
〔DCフリー符号〕:符号語どうしの接続によって生じる
ビット列において、そのビット列の先頭からビット列中
の任意ビットまでの、1と0の個数の差で定数するDSV
(Digital Sum Variation)は常に有限である。[DC-free code]: In a bit string generated by connecting code words, a DSV that is constant with the difference between the number of 1s and 0s from the beginning of the bit string to any bit in the bit string
(Digital Sum Variation) is always finite.
n2の符号に関しては、ビット単位でのDSVの制御は
できないので、通常、符号語単位で制御を行いDSVを有
限に保つ。With respect to the code of n2, the DSV cannot be controlled in bit units, so normally, the control is performed in code word units and the DSV is kept finite.
つまり、1つ前の符号語の最終ビットでのDSVの値DSV1
に対して、これから送出する符号語としては、DSV1とは
逆極性のディスパリティーDP(符号語内での1と0の個
数差)を有する符号語を選択的に用いる。That is, the DSV value DSV 1 at the last bit of the immediately preceding codeword
On the other hand, as a code word to be transmitted from now on, a code word having a disparity DP (a difference in the number of 1s and 0s in the code word) having a polarity opposite to that of DSV 1 is selectively used.
こうすることで、DSVは発散することはなく常に有限と
なる。By doing this, the DSV will never diverge and will always be finite.
4/8変換符号に限らず、n2なる従来のDCフリーRLL符
号のほとんどは、DP=0の符号語に関しては、1で始ま
る符号語(表パターン)Zと、表パターンの符号語の1
と0,0と1をすべて反転させた裏パターンの符号語と
を一組にしてデータ語1語に対応させる。Not only the 4/8 conversion code, but most of the conventional DC-free RLL codes of n2 are codewords (table pattern) Z starting from 1 and 1 of the codewords of the table pattern for the codeword of DP = 0.
And a code word of the reverse pattern in which 0, 0 and 1 are all inverted are paired to correspond to one data word.
DP=0であるから、符号語単位でDSVは増加しないの
で、d,k制限を満たすように表パターンと裏パターンを
選択的に用いる。Since DP = 0, the DSV does not increase in codeword units, and therefore the front pattern and the back pattern are selectively used so as to satisfy the d, k restriction.
DP≠0の符号語に関しては、DP>0とDP<0の共にして
始まる表パターンの符号語α,βと、符号語α,βの裏
パターン,の4語を一組にし、d,k制限及びDSV制限
を満たすために、これら4語を選択的に用いる。For a code word of DP ≠ 0, four words of a code pattern α and β of a front pattern starting with both DP> 0 and DP <0 and a back pattern of the code words α and β are paired, and d, These four words are selectively used to meet the k and DSV constraints.
以上示したようにして、従来のDCフリーRLL符号はd,k制
限及びDSV制限を満たしており、たとえば4/8変換符号の
他に、d=2なる9/16変換符号(特開昭57−195308)な
どのDCフリーRLL符号が得られている。As described above, the conventional DC-free RLL code satisfies the d, k restriction and the DSV restriction. For example, in addition to the 4/8 conversion code, a 9/16 conversion code with d = 2 (Japanese Patent Laid-Open No. 57-57 (1988)). DC-free RLL codes such as −195308) have been obtained.
なお、9/16変換符号においては、データ語のビット数m
=9,符号語のビット数n=16、したがって、Tω=9/16
T0.56T,であり、4/8変換符号のTω=0.5Tよりも大に
できる。In the 9/16 conversion code, the number of bits in the data word is m
= 9, the number of bits of the codeword n = 16, and therefore T ω = 9/16
T0.56T is, can to a large than 4/8 conversion code T ω = 0.5T.
ここで、従来のDCフリーRLL符号を生成する回路のブロ
ック図を第15図に示す。Here, FIG. 15 shows a block diagram of a circuit for generating a conventional DC-free RLL code.
第15図に示す回路は、データ列からmビット単位のパラ
レルのデータ語を生成する、シリアル−パラレル変換器
(S/P)50からのmビットのデータ語に対応する、nビ
ットの符号語αを生成するROM(Read Only Memory)51
と、符号語αとディスパリティーの異なるnビットの符
号語βを生成するROM52と、符号語α,βとその1と
0、0と1を反転させた符号語α,βのそれぞれの裏パ
ターン,を生成し、d,k,DSV制限を満たすようにこ
れら4語α,β,,のうち1語を選択し、この符号
語をシリアルに変換して送出する制御選択回路53とによ
り成る。The circuit shown in FIG. 15 is an n-bit code word corresponding to an m-bit data word from a serial-parallel converter (S / P) 50, which generates an m-bit parallel data word from a data string. ROM (Read Only Memory) 51 that generates α
And a ROM 52 that generates an n-bit code word β having a disparity different from that of the code word α, and the back patterns of the code words α and β and the code words α and β obtained by inverting the code words α and β and 0 and 1, respectively. , And one of these four words α, β, so as to satisfy the d, k, DSV restrictions, and the control selection circuit 53 for converting this code word into serial and sending it out.
第15図におけるROM51,52は各々アドレスmビット、出力
nビットであり、したがって、各々のROMの容量VE=2n
・mビットとなる。Each of the ROMs 51 and 52 in FIG. 15 has an address of m bits and an output of n bits. Therefore, the capacity of each ROM is V E = 2 n.
・ It becomes m bits.
なお、ROM51の出力に現われるのがディスパリティーDP
=0なる符号語Zの場合、ROM52の出力には意味のある
符号語は現われない。The disparity DP appears in the output of ROM51.
In the case of the code word Z of = 0, no meaningful code word appears in the output of the ROM 52.
一方、このようにして得られるシリアルの符号語を、デ
ータ語に復号する回路構成のブロック図を第16図に示
す。On the other hand, FIG. 16 shows a block diagram of a circuit configuration for decoding the serial code word thus obtained into a data word.
第16図において、シリアル−パラレル変換器(S/P)54
は、シリアルの符号語をnビットパラレルに変換し、RO
M55は、このビットパラレルの符号語に対応するmビッ
トのデータ語を復号する。したがってROM55の容量VD=2
n・mビットとなる。In FIG. 16, a serial-parallel converter (S / P) 54
Converts a serial code word to n-bit parallel and RO
The M55 decodes the m-bit data word corresponding to this bit-parallel code word. Therefore, ROM55 capacity V D = 2
There are n · m bits.
発明が解決しようとする問題点 上述のようにしてDCフリーRLL符号を構成でき、更に、
符号語長nを大にするに従って、Tωを広げてゆくこと
ができる。たとえば、d=2,n=20に対してm=12(T
ω=0.6T),d=2,n=24に対してm=15(Tω=0.625
T)なるDCフリーRLL符号が得られる。Problems to be Solved by the Invention The DC-free RLL code can be configured as described above, and further,
According to a codeword length n to large, it can be Yuku to expand the T ω. For example, for d = 2, n = 20, m = 12 (T
ω = 0.6T), d = 2, n = 24, m = 15 (T ω = 0.625
T) DC-free RLL code is obtained.
しかしながら、Tωを大にするために、さらに符号語長
nを大にすると、第15図におけるROM51,52及び第16図に
おけるROM55の容量は増大し、特にROM55の容量は指数関
数的に増大してしまい、符号語長が30ビットにもなる
と、ROM55に要するメモリ容量VD=2030・mm×109=
mギガビットにもなり、回路規模として非現実的にな
る。However, if the codeword length n is further increased in order to increase T ω , the capacities of the ROMs 51 and 52 in FIG. 15 and the ROM 55 in FIG. 16 increase, especially the capacity of the ROM 55 increases exponentially. If the code word length reaches 30 bits, the memory capacity required for the ROM 55 is V D = 20 30 · mm × 10 9 =
It will become m-gigabit, and the circuit scale becomes unrealistic.
逆に言うと、従来のDCフリーRLL符号を用いる限りにお
いては、たとえば を実現するためには膨大なメモリーを要するという問題
点がある。Conversely, as long as the conventional DC-free RLL code is used, for example, There is a problem that a huge amount of memory is required to realize.
更に、nが奇数の場合、DP=0の符号語は存在しないの
で、従来のDCフリーRLL符号ではデータ語1語に必ず符
号語4語(前記α,,β,)を対応させなければな
らず、nが偶数の場合に比べて不利となる。Further, when n is an odd number, there is no code word with DP = 0, so in the conventional DC-free RLL code, one code word must be associated with four code words (the above α, β). However, it is more disadvantageous than when n is an even number.
したがって、nが奇数のDCフリーRLL符号はほとんど用
いられることはなく、符号語長選択の自由度に関する大
きな制約であり、克服すべき問題点である。Therefore, a DC-free RLL code in which n is an odd number is rarely used, which is a large constraint on the degree of freedom in selecting a codeword length, which is a problem to be overcome.
本発明の目的は、上記従来例の問題点を解決し、従来の
DCフリーRLL符号よりも高密度記録に適したDCフリーRLL
符号を、現実的な回路規模で実現する符号変換装置を提
供することである。The object of the present invention is to solve the problems of the above-mentioned conventional example,
DC-free RLL suitable for higher density recording than DC-free RLL code
It is an object of the present invention to provide a code conversion device that realizes a code with a realistic circuit scale.
問題点を解決するための手段 本発明の第1の特徴はmビットのデータ語をnビットの
符号語に変換して、変換後の符号語どうしの接続によっ
て生じるビット列における、同一2進値の連続ビット数
をd以上k以下に制限すると共に、前記ビット列におけ
る“1"と“0"の個数差DSVを有限に保つ符号変換装置に
おいて、mビットのデータ語を入力とし、当該符号語を
接続して得るビット列における同一2進値の連続ビット
が、1以上になるようにnビットの符号語を出力するm/
n符号変換手段と、前記m/n符号変換手段の出力の連続す
るg個よりなる符号語グループ中の“1"と“0"の個数差
GDPを演算するグループディスパリティ演算手段と、前
記グループディスパリティ演算手段の出力を累積演算す
るディジタルサムバリエーション演算手段と、前記ディ
ジタルサムバリエーション演算手段に加えるグループデ
ィスパリティ演算手段の出力の極性を、前記ディジタル
サムバリエーション演算手段の出力の極性と異なるよう
に制御するグループディスパリティ極性制御手段と、前
記グループディスパリティ極性制御手段で選択された極
性に応じて、前記符号語グループにおける“1"を“0"、
“0"を“1"にすべて反転させるか反転させないかを制御
する符号語グループ反転制御手段とを備えることであ
る。A first feature of the present invention is to convert an m-bit data word into an n-bit code word, and to convert the same binary value in a bit string generated by connecting the converted code words. In a code conversion device that limits the number of consecutive bits to d or more and k or less, and keeps the number difference DSV of "1" and "0" in the bit string finite, inputs an m-bit data word and connects the code word Output an n-bit codeword so that consecutive bits of the same binary value in the bit string obtained by
Difference between the number of "1" and "0" in the code word group consisting of n code conversion means and the continuous g output of the m / n code conversion means
The group disparity calculating means for calculating GDP, the digital sum variation calculating means for cumulatively calculating the output of the group disparity calculating means, and the polarity of the output of the group disparity calculating means added to the digital sum variation calculating means are "1" in the code word group is set to "0" in accordance with the group disparity polarity control means for controlling the polarity to be different from the output polarity of the digital sum variation calculation means and the polarity selected by the group disparity polarity control means. ",
And a codeword group inversion control means for controlling whether or not all “0” s are inverted to “1” s.
また本発明の第2の特徴は、前記本発明の第1の特徴に
おけるm/n符号変換手段の代りに、mビットのデータ語
を入力し、当該符号語を接続して得るビット列における
同一2進値の連続ビット数がd以上k以下になるよう
に、nビットの符号語を出力するm/n符号変換手段を備
え、更に、前記本発明の第1の特徴に加えて、先行する
符号語グループの最後の符号語と、現在の符号語グルー
プの先頭の符号語を接続して得られるビット列におけ
る、同一2進値の連続ビットがd以上k以下でないと
き、前記先行する符号語グループの最後の符号語を他の
符号語に置換する符号語置換手段を備えることである。A second feature of the present invention is that, in place of the m / n code conversion means in the first feature of the present invention, an m-bit data word is input and the same 2 in a bit string obtained by connecting the code words is input. M / n code conversion means for outputting an n-bit codeword so that the number of consecutive bits of the base value is not less than d and not more than k is provided, and in addition to the first feature of the present invention, the preceding code When the last codeword of the word group and the first codeword of the current codeword group are connected, and the consecutive bits of the same binary value in the bit string are not d or more and k or less, the preceding codeword group That is, a code word replacing unit that replaces the last code word with another code word is provided.
さらに本発明の第3の特徴は、上記第1,第2の特徴に加
え、符号語置換手段の出力に現われる制御を受けた符号
語グループを構成するg個の符号語の各々を複数に分割
し、この分割した部分のビットパターンを互いに区別で
きる値を出力する仮復号手段と、前記仮復号手段の出力
値に基づいて前記g個の各符号語に対応するデータ語を
復号する最終復号手段とを備えることである。Furthermore, the third feature of the present invention is that, in addition to the above first and second features, each of the g code words forming the controlled code word group appearing at the output of the code word replacing means is divided into a plurality of parts. Then, the temporary decoding means for outputting a value capable of distinguishing the bit patterns of the divided parts from each other, and the final decoding means for decoding the data word corresponding to each of the g code words based on the output value of the temporary decoding means. And to prepare.
作用 前記本発明の第1の特徴は、DCフリー符号における符号
語を分割生成することと等価である。つまり、従来のDC
フリー符号における符号語は、本発明のg個の符号語よ
りなる符号語グループ(以下、単にグループと記す)に
対応する。したがって、データ語の符号語への変換、あ
るいは符号語のデータ語への変換のいずれにおいても、
その最小単位は符号語であり、グループではない。この
結果、グループ長が大になってもメモリ容量の増大を防
ぐことができる。Operation The first feature of the present invention is equivalent to dividing and generating the code word in the DC free code. That is, conventional DC
The code word in the free code corresponds to a code word group (hereinafter simply referred to as a group) made up of g code words of the present invention. Therefore, in either conversion of data words to code words or conversion of code words to data words,
The smallest unit is a codeword, not a group. As a result, it is possible to prevent the memory capacity from increasing even if the group length becomes large.
本発明の第2の特徴は、上記第1の特徴と同じくDCフリ
ー符号を分割生成し、メモリ容量の増大を防ぐのに加え
て、そのDCフリー符号が同一2進値の連続ビット数をd
以上k以下に制限するDCフリーRLL符号であることであ
る。したがって、より高密度なディジタル信号記録を可
能にする。A second feature of the present invention is that, like the first feature, the DC-free code is divided and generated to prevent an increase in the memory capacity.
It is a DC-free RLL code that is limited to k or less. Therefore, higher density digital signal recording is possible.
本発明の第3の特徴における仮復号手段により、nビッ
トの符号語を識別するのに要するビット数をnより小共
通して用いることができ、本発明の第1の特徴を導入す
ることによる無用なメモリー容量の増大を防げる。With the provisional decoding means according to the third aspect of the present invention, the number of bits required to identify an n-bit codeword can be used in common with a value smaller than n, and the first aspect of the present invention is introduced. You can prevent the unnecessary memory capacity from increasing.
以下、本発明の3つの特徴の各々について、実施例を用
いて詳細に説明する。Hereinafter, each of the three features of the present invention will be described in detail using examples.
実施例1 本実施例は、前記本発明の第1,2の特徴に関する。Example 1 This example relates to the first and second features of the present invention.
第2図に示す本発明のグループの構成において、Ci(i
=1,2,……,g)はそれぞれ同一のd,k制限を満たすRLL符
号、niはRLL符号Ciのビット数を表わす。In the group structure of the present invention shown in FIG. 2, C i (i
= 1,2, ..., g) represents the RLL code satisfying the same d and k restrictions, and n i represents the number of bits of the RLL code C i .
すなわち、本発明におけるグループはg個のRLL符号に
より成り、グループビット数 となる。That is, the group in the present invention is composed of g RLL codes, and the group bit number Becomes
ここで、CWiをRLL符号Ciを構成する符号語DWiをCWiが対
応するデータ語、miをDWiのビット数、 と定義すると、この場合のTω/T=m′/n′となる。Here, CW i is the code word DW i forming the RLL code C i , the data word corresponding to CW i , m i is the number of bits of DW i , If defined as, T ω / T = m ′ / n ′ in this case.
第2図におけるRLL符号Ciに求められる条件というの
は、前記CWiとCWi+1(i=1,……,g−1)を接続するこ
とによって生じるビット列においても、その始端及び終
端を除いて、d,k制限を満たすことだけである。The condition required for the RLL code C i in FIG. 2 is that even in the bit string generated by connecting the CW i and CW i + 1 (i = 1, ... It only satisfies the d, k constraint, except.
すなわち、RLL符号Ciがどのような符号化則によって得
られたにはかかわらず、RLL符号C1〜Cgを順次連結して
得るグループに関して、その始端と終端を除いて、完全
にd,k制限を満たしておればよい。That is, regardless of what encoding rule the RLL code C i was obtained with, regarding the group obtained by sequentially concatenating the RLL codes C 1 to C g , except for the start end and the end thereof, d, It suffices if the k limit is satisfied.
始端部と終端部に関しては、d制限を満たしていなくて
も、グループどうしを接続することによって、d制限を
満たせばよい。なお、始端及び終端においてもk制限違
反は許されない。Regarding the start end and the end, even if the d limit is not satisfied, the d limit may be satisfied by connecting the groups. It should be noted that violation of the k limit is not allowed at the beginning and the end.
このように、d,k制限を満たすように制御したグループG
2と、G2に先行するグループG1との接続に関しては、G1
の最終ビットでのDSVの値DSV1の極性Sn1に対して、グル
ープG2における“1"と“0"の個数差で定義するグループ
ディスパリティーGDP2の極性Sn2とが異なるようにG2を
制御する。In this way, the group G controlled to satisfy the d, k constraint
G1 for the connection between 2 and the group G1 preceding G2
The value of DSV at the last bit of is set to G2 so that the polarity S n2 of the group disparity GDP 2 defined by the number difference between “1” and “0” in group G2 is different from the polarity S n1 of DSV 1. Control.
すなわち、Sn1≠Sn2のときはG2をそのまま用い、Sn1=S
n2のときは、G2における全ビットに関し“1"を“0",
“0"を“1"に反転させる。こうすることで、反転後のG2
におけるGDP2の極性は−Sn2となり、Sn1≠Sn2が得られ
る。That is, when S n1 ≠ S n2 , G2 is used as it is, and S n1 = S
When n2 , set “1” to “0” for all bits in G2,
Invert “0” to “1”. By doing this, G2 after reversal
The polarity of GDP 2 at −S n2 is S n1 ≠ S n2 .
なお、DSV1=0又はGDP2=0の場合はDSVの制御を次の
グループに持ち越すようにするので、これらの場合には
G2を反転させても、させなくてもどちらでも良いが、本
実施例では反転させないものとする。If DSV 1 = 0 or GDP 2 = 0, DSV control is carried over to the next group. In these cases,
G2 may or may not be inverted, but it is not inverted in this embodiment.
上述のように定めることで、DSVは発散方向に増大し続
けることなく、DCフリーとなる。By defining as described above, the DSV becomes DC-free without continuously increasing in the diverging direction.
一方、DSV制限を満たすために制御したグループG2をグ
ループG1に接続する場合に、グループどうしの接続部に
d,k制限違反が生じる場合がある。On the other hand, when connecting the group G2 controlled to meet the DSV restriction to the group G1,
Violations of d, k restrictions may occur.
このような場合にはG1の最終の符号語CWgを置き換え
る。すなわち、グループどうしの接続を表わす第3図に
おいて、G1の最後の符号語CWgと、DSV制限を満たすため
の制御を受けたG2の先頭の符号語CW1との接続におい
て、d,k制限を満たさない場合には、CWgを置き換える。In such a case, the final codeword CW g of G1 is replaced. That is, in FIG. 3 showing the connection between groups, in the connection between the last codeword CW g of G1 and the first codeword CW 1 of G2 that is controlled to satisfy the DSV restriction, If is not satisfied, replace CW g .
たとえばd=2の場合、第4図(a)のようにd制限違
反が生じる場合には、CWgとして第4図(a)の場合と
は最終ビットの異なる符号語を選んで置き換えると、第
4図(b)のようにd制限を満足する。k制限について
も同様である。For example, in the case of d = 2, when a d restriction violation occurs as shown in FIG. 4 (a), if CW g is selected and replaced with a code word having a final bit different from that in the case of FIG. 4 (a), The d limit is satisfied as shown in FIG. The same applies to the k limit.
このように、CWgとしては“0"で終わる符号語と“1"で
終わる符号語を組み合わせることで、グループどうしを
接続してもd,k制限を満足させ得る。In this way, by combining codewords ending with “0” and codewords ending with “1” as CW g, it is possible to satisfy the d, k restriction even if groups are connected.
以下、d=2,k=12,かつg個のRLL符号のビット数niは
すべて22である場合を例に、具体的に説明する。Hereinafter, an example where d = 2, k = 12, and the number of bits n i of the g RLL code are all 22, will be described in detail.
まず、本実施例で用いるRLL符号について。First, the RLL code used in this embodiment.
本実施例におけるRLL符号を構成する符号語CWを分類す
るために、第5図に示すような符号語の特徴を表わすパ
ラメータを導入する。つまり、符号語のビット数をnと
すると、 Lブロック:lビット同一2進値TBが連続する始端部, Rブロック:rビット同一2進値LBが連続する終端部, Bブロック:b(=n−l−r)ビットよりなる中間部 である。In order to classify the codewords CW that make up the RLL code in this embodiment, parameters that show the characteristics of the codewords as shown in FIG. 5 are introduced. In other words, assuming that the number of bits of the code word is n, L block: a start end portion where 1-bit same binary value TB continues, R block: end portion where r-bit same binary value LB continues, B block: b (= It is an intermediate part consisting of (n-1r) bits.
d=2,k=12の場合における前記符号語CWとしては、次
の条件を満たすものに限る。The code word CW in the case of d = 2 and k = 12 is limited to those satisfying the following conditions.
(i) 1l11,1r11 (ii) Bブロックにおいては完全にd,k制限を満た
す。(I) 111,1r11 (ii) The B block completely satisfies the d, k constraint.
上記(ii)は、Bブロックにおいてはdビット以上kビ
ット以下の“0"と“1"が交互に続くことを示す(b=0
を除く)。The above (ii) indicates that "0" and "1" of d bits or more and k bits or less continue alternately in the B block (b = 0.
except for).
更に、l及びrに関して次のパラメータF,Eを導入す
る。Furthermore, the following parameters F and E are introduced for l and r.
F=0(l=1),F=1(2l6),F=2(7l
11) E=0(r=1),E=1(2r6),F=2(7r
11) 以上のように定めた4つのパラメータ(TB,F,E,LB)に
基づいて、符号語どうしの接続を制御するが、この制御
というのは、第6図に示す第1符号語W1と第2符号語W2
との接続において、W1のRブロックとW2のLブロックに
よる接続部においてもd,k制限を満たすようにすること
を意味する。F = 0 (l = 1), F = 1 (2l6), F = 2 (7l
11) E = 0 (r = 1), E = 1 (2r6), F = 2 (7r
11) The connection between the code words is controlled based on the four parameters (TB, F, E, LB) defined as described above. This control is based on the first code word W1 shown in FIG. And the second code word W2
It means that the connection between the R block of W1 and the L block of W2 also satisfies the d, k restriction.
以下では、この符号語どうしの接続に関する規則を接続
則と呼ぶ。Below, the rule regarding the connection of these codewords is called the connection rule.
本実施例におけるRLL符号では、前記4つのパラメータ
(TB,F,E,LB)を用いて符号語の組み合わせを規定して
おり、第1表は第2図におけるRLL符号Ci(i=2,〜,g
−1)に関し、第2表は第2図におけるRLL符号C1,第3
表は第2図におけるRLL符号Cgに関する。なお、RLL符号
Cgのみ、ディスパリティーDPに関する制限を要す。In the RLL code in this embodiment, the combination of code words is defined by using the four parameters (TB, F, E, LB), and Table 1 shows RLL code C i (i = 2 in FIG. 2). , ~, G
-1), Table 2 shows RLL code C 1 and 3 in FIG.
The table relates to the RLL code C g in FIG. RLL code
Only C g requires restrictions on disparity DP.
第1〜3表において、“CW−No."は符号語の組み合わせ
番号と、その組み合わせを構成する符号語の識別番号で
あり、1つの組み合わせを構成する符号語には同一のデ
ータ語を対応させる (DP,TB,F,E,LB)は符号語に関するパラメータであり、
“×”印は無関係であることを示し、Aは1つの組み合
わせ内では同一値をとることを示す。又、“EXAMPLE"は
そのパラメータによって表わせる符号語の一例を示す。In Tables 1 to 3, "CW-No." Is a combination number of code words and an identification number of code words forming the combination, and the same data word corresponds to the code words forming one combination. Let (DP, TB, F, E, LB) is a parameter related to the codeword,
The "x" mark indicates irrelevant, and A indicates the same value within one combination. Further, "EXAMPLE" indicates an example of the code word that can be represented by the parameter.
更に“WORD"は“CW−No."を書き換えて、符号語の構造
をわかり易くしたものであり、“CW"にF,E,LBの値を付
加して示している。なお“−”は裏パターンを意味す
る。Further, "WORD" is a rewriting of "CW-No." To make the structure of the code word easy to understand, and the values of F, E, and LB are added to "CW". In addition, "-" means a back pattern.
たとえばCW210はF=2,E=1,LB=0なる表パターン
(“1"で始まる)の符号語,▲▼はCW210の
裏パターンである。For example, CW210 is a code word of a front pattern (starting with "1") where F = 2, E = 1, and LB = 0, and ▲ ▼ is a back pattern of CW210.
以下、第1〜3表について説明する。Hereinafter, Tables 1 to 3 will be described.
〔第1表の説明〕 第1表に示す符号語の組み合わせは、第2図におけるRL
L符号Ci(i=2,3,……,g−1)に共通し、次のように
組み合わせている。[Explanation of Table 1] The combination of code words shown in Table 1 is RL in FIG.
The L code C i (i = 2, 3, ..., G-1) is common and is combined as follows.
(1.1) F≠1,E≠1,TB=1、LB=1の符号語CW(F,E,
1)は、CW(F,E,1)の裏パターン とCW(F,E,1)とF,E,TBの値が等しくLB=0の符号語CW
(F,E,0)と、CW(F,E,0)の裏パターン と組み合わせる(“CW−No."=1,4,13,16)。(1.1) Code word CW (F, E, F = 1, E ≠ 1, TB = 1, LB = 1
1) is the back pattern of CW (F, E, 1) And CW (F, E, 1) and F, E, TB are equal and LB = 0 code word CW
Back pattern of (F, E, 0) and CW (F, E, 0) (“CW-No.” = 1,4,13,16).
(1.2) F≠1,E=1,TB=1の符号語CW(F,1,×)は、
CW(F,1,×)の裏パターン と組み合わせる(“CW−No."=2,3,14,15)。なお、
“×”は0及び1のいずれも可能であることを示す。(1.2) The code word CW (F, 1, ×) of F ≠ 1, E = 1, TB = 1 is
CW (F, 1, ×) back pattern (“CW-No.” = 2,3,14,15). In addition,
“X” indicates that both 0 and 1 are possible.
(1.3) F=1,E≠1,TB=1,LB=1の符号語CW(1,E,
1)は、CW(1,E,1)とF,E及びTBの値が等しくLB=0の
符号語CW(1,E,D)と組み合わせる(“CW−No."=5,6,1
1,12)。(1.3) Codeword CW with F = 1, E ≠ 1, TB = 1, LB = 1 (1, E,
1) is combined with CW (1, E, 1) and codeword CW (1, E, D) in which the values of F, E and TB are equal and LB = 0 (“CW−No.” = 5,6, 1
1,12).
(1.4) F=1,E=1の符号語CW(1,1,×)及びCW(1,
1,×)の裏パターン は、他の符号語とは組み合わせないで単独でデータ語に
対応させる(“CW−No."=7,8,9,10)。(1.4) Codewords CW (1,1, ×) and CW (1, where F = 1 and E = 1
1, x) back pattern Corresponds to a data word alone without being combined with other code words (“CW-No.” = 7,8,9,10).
以上示した(1.1)〜(1.4)の符号語の組み合わせによ
り、第7図に示すように、符号語どうしを接続した場合
においても必ずd,k制限を満たすことができる。By combining the codewords (1.1) to (1.4) shown above, as shown in FIG. 7, even when the codewords are connected, it is possible to satisfy the d, k restriction without fail.
第7図の“PARAMETERS"において、E,LBは第6図の第1
符号語W1のRブロックに関する値であり、Fは第6図の
W2のLブロックに関する値であり、YはW2のF≠1の場
合において、W2を裏パターンにする場合はY=“1"、表
パターンにする場合はY=“0"とする値であり、Sはd,
k制限を満たすために先行する符号語W1を置き換える場
合にのみ有効なパラメータであり、LB=SなるW1の方を
選ぶ。なお、“−”はW1には無関係であることを示す。
又、第7図における“EXAMPLE"は前記各パラメータの値
に対応する、W1のRブロック,W2のLブロックの状態を
例示している。In “PARAMETERS” in FIG. 7, E and LB are the numbers in FIG.
It is a value relating to the R block of the code word W1, and F is shown in FIG.
It is a value related to the L block of W2, and Y is a value of Y = “1” when W2 is a back pattern and Y = “0” when W2 is a back pattern in the case of F ≠ 1 of W2. , S is d,
It is a parameter that is effective only when the preceding codeword W1 is replaced to satisfy the k constraint, and W1 with LB = S is selected. Note that "-" indicates that it has nothing to do with W1.
Further, "EXAMPLE" in FIG. 7 exemplifies states of the R block of W1 and the L block of W2 corresponding to the values of the respective parameters.
第7図に示す符号語どうしの接続則をまとめると次のよ
うになる。なお、W1に先行する符号語W0及びW0に続く符
号語W1のTBは既に確定しているものとする。The connection rules for the code words shown in FIG. 7 are summarized as follows. It is assumed that the code word W0 preceding W1 and the TB of the code word W1 following W0 are already determined.
(I.1) (W2のF=0)又は(W1のE=0かつW2のF
=2)のとき、W2のTB=W1のLBとなるようにW2を選択し
て用いる。(I.1) (W2 F = 0) or (W1 E = 0 and W2 F
= 2), W2 is selected and used so that TB of W2 = LB of W1.
(I.2) (W1のF1かつW2のF=2)のとき、W2のT
B≠W1のLBとなるようにW2を選択して用いる。(I.2) When (F1 of W1 and F = 2 of W2), T of W2
W2 is selected and used so that LB of B ≠ W1.
(I.3) (W2のF=1かつW1のE=0)のとき、W1のT
Bを変えることなくW1のLB=W2のTBとなるようにW1を選
択して用いる。(I.3) When (F of W2 is 1 and E of W1 is 0), T of W1
Select W1 so that LB of W1 = TB of W2 without changing B.
(I.4) (W2のF=1かつW1のE=1)のとき、W1,W2
共そのまま用いる。(I.4) When (F = 1 of W2 and E = 1 of W1), W1, W2
Both are used as they are.
(I.5) (W2のF=1かつW1のE=2)のとき、W1のT
Bを変えることなくW1のLB≠W2のTBとなるようにW1を選
択して用いる。(I.5) When (F of W2 = 1 and E of W1 = 2), T of W1
W1 is selected and used so that LB of W1 ≠ TB of W2 without changing B.
上記(I.1)は第7図No.=1,2,5〜8,15,16に相当し、こ
の場合、LB=TBであるから接続部における同一2進値の
連続ビット数をBLENはBLEN=r+lとなる。The above (I.1) corresponds to No. = 1,2,5 to 8,15,16 in FIG. 7, and in this case, LB = TB, so the number of consecutive bits of the same binary value in the connection part is BLEN. Becomes BLEN = r + 1.
ここで、F=0のとき、前記定義よりl=1であるか
ら、BLEN=1+rとなり、1r11であるからd=2
BLEN12=kとなって、d,k制限を満たす。Here, when F = 0, since 1 = 1 from the above definition, BLEN = 1 + r, and 1r11, so d = 2
BLEN12 = k, which satisfies the d, k limit.
一方、E=0,F=2のとき、前記定義よりr=1,7l
11であるからd<7BLEN=r+l=1+l12=kと
なりd,k制限を満たす。On the other hand, when E = 0 and F = 2, from the above definition, r = 1,7l
Since it is 11, d <7 BLEN = r + 1 + 1 + 112 = k and the d, k restriction is satisfied.
上記(I.2)は第7図におけるNo.=13,14,19,20に相当
し、このとき、LB≠TBであり前記定義よりE1(2
r11),F=2(7l11)であるからd,k制限を満
たす。The above (I.2) corresponds to No. = 13,14,19,20 in FIG. 7, where LB ≠ TB and E1 (2
Since r11) and F = 2 (7l11), the d, k restriction is satisfied.
上記(I.3)は第7図におけるNo.=3,4に相当し、この
とき、LB=TBであるから前記BLEN=l+rとなるが、前
記定義よりE=0(r=1),F=1(2l6)であ
るからd<3BLEN7<kとなってd,k制限を満た
す。The above (I.3) corresponds to No. = 3,4 in FIG. 7, and at this time, since LB = TB, so BLEN = l + r, but from the above definition, E = 0 (r = 1), Since F = 1 (2l6), d <3 BLEN7 <k and the d, k restriction is satisfied.
上記(I.4)は第7図におけるNo.=9〜12に相当し、LB
≠TBの場合(No.10,11)は前記定義よりE=1(2r
6),F=1(2l6)であるからd,k制限を満た
す。The above (I.4) corresponds to No. = 9 to 12 in Fig. 7, and LB
If ≠ TB (No. 10, 11), E = 1 (2r
6) and F = 1 (2l6), the d, k constraint is satisfied.
一方、LB=TBの場合(No.9,12)は前記BLEN=r+lと
なるが、4r+l12であるからd<4BLEN12=
kとなり、d,k制限を満たす。On the other hand, when LB = TB (No. 9 and 12), BLEN = r + l, but 4r + l12, so d <4BLEN12 =
k, which satisfies the d, k constraint.
上記(I.5)は第7図におけるNo.=19,20に相当し、こ
のときLB≠TBであり、前記定義よりE=2(7r1
1),F=1(2l6)であるから、d,k制限を満た
す。The above (I.5) corresponds to No. = 19,20 in FIG. 7, where LB ≠ TB, and E = 2 (7r1) from the above definition.
Since 1) and F = 1 (2l6), the d, k constraint is satisfied.
以上示したように、前記(1.1)〜(1.4)の符号語の組
み合わせと、(I.1)〜(I.5)の接続則により、d=2,
k=12を満たすRLL符号を得る。As described above, due to the combination of the codewords of (1.1) to (1.4) and the connection rule of (I.1) to (I.5), d = 2,
Obtain an RLL code that satisfies k = 12.
なお、上記接続則(I.3)及び(I.5)でW1のTBを変化さ
せないのは、W1のTBまで変化させると、W1に先行する符
号語W0、あるいはW0よりも前の符号語にまで逆上って制
御しなければならなくなるからである。In addition, the reason why the TB of W1 is not changed in the above connection rules (I.3) and (I.5) is that when the TB of W1 is changed, the codeword W0 preceding W1 or the codeword preceding W0 This is because you have to go up to and control it.
又、W1を変化させる場合((I.3),(I.5),W1のE≠
1)においては、前記符号語の組み合わせ(1.1),
(1.3)からわかるように、E≠1の符号語に関してはT
B,Fの値が等しく、LB=0とLB=1の符号語を必ず組み
合わせているので、W1を置き換えてもW1のLブロックに
関するパラメータは不変であり、したがってW1に先行す
る符号語W0とW1の接続部における同一2進値の連続ビッ
ト数は、やはり2以上12以下になりd,k制限を満たす。Also, when W1 is changed ((I.3), (I.5), E of W1 ≠
In 1), the combination of the codewords (1.1),
As can be seen from (1.3), for codewords with E ≠ 1, T
Since the values of B and F are the same and the codewords of LB = 0 and LB = 1 are always combined, the parameter related to the L block of W1 does not change even if W1 is replaced, and therefore the codeword W0 preceding W1 The number of consecutive bits of the same binary value in the connection part of W1 is also 2 or more and 12 or less, which satisfies the d, k limit.
〔第2表の説明〕 第2表に示す符号語の組み合わせは、第2図におけるRL
L符号C1に関し、第1表の組み合わせにおけるF=1の
符号語について、表パターンの組み合わせと裏パターン
の組み合わせを一組にすることで得られる。つまり、前
記組み合わせ則(1.1)〜(1.4)において、F=1の符
号語に関して、F≠1の場合の組み合わせ則を適用して
組み合わせたものに他ならない。 [Explanation of Table 2] The combination of the code words shown in Table 2 is RL in FIG.
Regarding the L code C 1 , it can be obtained by combining the combination of the front pattern and the back pattern for the code word of F = 1 in the combination of Table 1. That is, in the combination rules (1.1) to (1.4), the code word of F = 1 is applied by applying the combination rule in the case of F ≠ 1.
したがって、RLL符号C1に関する限り、F=1の符号語
を特別に区別する必要はなく、更に、後述するグループ
どうしの接続則との関係から、RLL符号C1におけるF=
1の符号語はF=2の符号語として取り扱う。Therefore, as far as the RLL code C 1 is concerned, it is not necessary to specially distinguish the code word of F = 1, and further, from the relationship with the connection rule between groups described later, F = in the RLL code C 1
The code word of 1 is handled as a code word of F = 2.
なお、第2表に従って組み合わせたRLL符号C1と、第1
表に従って組み合わせたRLL符号C2との接続も、前記接
続則(I.1)〜(I.5)に従い、第1表の場合と同様にし
てd,k制限を満たす。The RLL code C 1 combined according to Table 2 and the first
The connection with the RLL code C 2 combined according to the table also satisfies the d, k restriction in the same manner as in the case of Table 1 according to the connection rules (I.1) to (I.5).
〔第3表の説明〕 第3表に示す符号語の組み合わせは、第2図におけるRL
L符号Cgに関し、第1表の組み合わせにおけるE=1の
符号語についてLB=0の符号語と、LB=1の符号語を組
み合わせたものである。つまり、前記組み合わせ則(1.
1)〜(1.4)において、E=1の符号語に関して、E≠
1の場合の組み合わせ則を適用して組み合わせたものに
他ならない。 [Explanation of Table 3] The combinations of code words shown in Table 3 are RL in FIG.
Regarding the L code C g , the code word of LB = 0 and the code word of LB = 1 are combined with respect to the code word of E = 1 in the combination of Table 1. That is, the combination rule (1.
1) to (1.4), for a codeword with E = 1, E ≠
It is nothing but a combination of applying the combination rule in the case of 1.
したがって、RLL符号Cgに関する限り、E=1の符号語
を特別に区別する必要はなく、更に、後述するグループ
どうしの接続則との関係から、RLL符号CgにおけるE=
1の符号語はE=2の符号語と見なして取り扱う。Therefore, as far as the RLL code C g is concerned, it is not necessary to specifically distinguish the code word of E = 1, and further, from the relationship with the connection rule between groups described later, E = in the RLL code C g .
The code word of 1 is treated as a code word of E = 2.
なお、第3表に示す符号語の組み合わせにおいては、1
つの組み合わせを構成する符号語のディスパリティーの
絶対値は等しく、かつ、同一2進値で始まる2つの符号
語に関しては、ディスパリティーの値そのものが等しく
なければならない。In the combination of code words shown in Table 3, 1
The absolute values of disparities of the codewords that form one combination must be equal, and the disparity values themselves must be equal for two codewords that start with the same binary value.
たとえば、第3表“CW−No."=1.3,1.4の符号語は共に
“1"で始まり、そのディスパリティーDPも共にAであ
る。したがって、それらの裏パターン(“CW−No."=1.
2,1.1)どうしのディスパリティーDPも共に−Aとな
る。For example, the code words in Table 3 "CW-No." = 1.3,1.4 both start with "1" and their disparity DP is also A. Therefore, their back pattern (“CW-No.” = 1.
2,1.1) Both disparity DPs are also -A.
又、第3表におけるAはディスパリティーとして存在し
得るすべての値を代表させた記号であり、特定の1つの
値を示すものではない。Further, A in Table 3 is a symbol that represents all the values that can exist as disparity, and does not indicate one specific value.
このようなディスパリティーに関する制約が必要な理由
を次に示す。グループどうしの接続において、G1のCWg
を置き換える場合に、“0"でおわCWg0と、“1"でおわる
CWg1のディスパリティーが異なれば、G1のCWgを置き換
えることによりG1の最終ビットでのDSVの値DSV1が変わ
る。The reason why such a restriction on disparity is necessary is as follows. CW g of G1 when connecting groups
When replacing, it ends with a CW g0 with a “0” and with a “1”
If the disparity of CW g1 is different, replacing the CW g of G1 will change the DSV value DSV 1 at the last bit of G1.
もし、DSV1の極性が反転してしまうと、G2を反転させな
ければならず、したがってG1のCWgを再び変化させるこ
とになり、DSV1の極性が再び反転し、永久にCWgは定ま
らない。If the polarity of DSV 1 is reversed, G2 must be reversed, thus changing the CW g of G1 again, the polarity of DSV 1 is reversed again, and CW g is permanently determined. Absent.
このように、CWgに関してはDSV1の極性反転を起こさな
いような符号語の組み合わせを必要とし、このような組
み合わせとしてはディスパリティーが、AとA又はAと
A±2のTBが等しい2つの符号語(及びそれらのすべて
の“1"と“0"を反転させた符号語)を用いればよい。Thus, for CW g , a combination of code words that does not cause DSV 1 polarity inversion is required, and for such a combination, disparity is equal to TB of A and A or A and A ± 2. It is sufficient to use one codeword (and a codeword obtained by inverting all “1” and “0” thereof).
本実施例では、グループディスパリティを計算する手段
が容易である、ディスパリティーが等しい方の組み合わ
せを選んでいる。In the present embodiment, a combination having the same disparity is selected because the means for calculating the group disparity is easy.
この場合にも、G1のCWgを置き換えなければならない
が、置き換えた場合にもディスパリティーが等しいため
に、DSV1を計算し直す必要はない。In this case as well, the CW g of G1 must be replaced, but even if it is replaced, DSV 1 does not need to be recalculated because the disparities are equal.
第1表に従って組み合わせたRLL符号Cg-1と、第3表に
従って組み合わせたRLL符号Cgとの接続も、前記続続則
(I.1)(I.5)に従い、第1表の場合と同様にして、d,
k制限を満たす。The RLL code C g-1 in combination according to Table 1, the connection to the RLL code C g in combination according to Table 3 also, in accordance with the successively law (I.1) (I.5), in the case of Table 1 Similarly, d,
meet the k-limit.
以上示したように、第1〜3表に示した符号語の組み合
わせと、前記(I.1)〜(I.5)の接続則により、グルー
プの始端と終端を除くグループの中間部でd,k制限を必
ず満足できる。 As shown above, due to the combination of the code words shown in Tables 1 to 3 and the connection rules of (I.1) to (I.5) above, d in the middle part of the group excluding the beginning and end of the group , k limit can always be satisfied.
次に、グループどうしの接続について説明する。Next, connection between groups will be described.
グループどうしの接続を示す第8図において、“DV"は
先行するグループG1の最終ビットでのDSVの値DSV1に関
し、DSV10ならばDV=1,DSV1<0ならばDV=−1とす
る値、“GP"はG1に続く“1"で始まるグループG2のグル
ープディスパリティーGDP2に関し、GDP2=0ならばGP=
0,GDP2>0ならばGP=1,GDP2<0ならばGP=−1とする
値、“GI"は、G2を反転させないときはGI=0,反転させ
るときはGI=1とする値,“E′”は、G1のCWgのE=
0ならばE′=0,E1ならばE′=2とする値、
“F′”はG2のCW1のF=0ならばF′=0,F1ならば
F′=2とする値,“Sg"は、G1のCWgの選択に関し、Sg
=TBはCWgの最終ビットLBがTBに等しい方のCWgを選択
し、Sg=TBはLB≠TBなるCWgの方を選択することを示す
値であり、“LB"はSgによる選択後のG1の最終ビットの
値である。In FIG. 8 showing the connection between the groups, “DV” is related to the DSV value DSV 1 at the last bit of the preceding group G 1 , DV = 1 if DSV 1 0, DV = −1 if DSV 1 <0 "GP" is the group disparity GDP 2 of the group G2 that starts with "1" following G1. If GDP 2 = 0, then GP =
If 0, GDP 2 > 0, GP = 1; if GDP 2 <0, GP = −1; “GI” is GI = 0 when G2 is not inverted, and GI = 1 when it is inverted. The value, "E '", is E of CW g of G1
If 0, E ′ = 0, if E1, E ′ = 2,
"F '" is F = 0 if F of CW 1 of G2' values and = 0, F1 if F '= 2, "S g " relates to the selection of CW g of G1, S g
= TB is the last bit of LB CW g selects the CW g towards equal to TB, S g = TB is a value indicating a selection of the direction of LB ≠ TB becomes CW g, "LB" is S g It is the value of the last bit of G1 after selection by.
第8図において、グループG2の反転,不反転を制御する
値GIはDV及びGPのみによって定まり、GP=0又はGP=−
DVのときGI=0,それ以外のGP,DVに対してはGI=1とな
る。In FIG. 8, the value GI for controlling the inversion / non-inversion of the group G2 is determined only by DV and GP, and GP = 0 or GP = −
GI = 0 for DV, and GI = 1 for other GP and DV.
本実施例ではG2の先頭ビットが“1"のものを基準にして
いるので、GPは“1"で始まるG2に関する値である。した
がって、GI=0はG2の先頭ビットTB=1を示し、GI=1
はTB=0を示す。In this embodiment, since the head bit of G2 is "1" as a reference, GP is a value related to G2 starting with "1". Therefore, GI = 0 indicates the first bit TB = 1 of G2, and GI = 1
Indicates TB = 0.
一方、G1のCWgの置き換えを制御する値Sgは、GI,E′,
F′によって定まり、E′=2かつF′=2の場合のみL
B≠TBなるCWgを選び、E′≠2又はF′≠2の場合には
LB=TBなるCWgを選ぶ。On the other hand, the value S g that controls the replacement of CW g of G1 is GI, E ′,
Determined by F ', L only if E' = 2 and F '= 2
Select CW g such that B ≠ TB, and if E ′ ≠ 2 or F ′ ≠ 2
Select CW g where LB = TB.
なお、第8図におけるNo.=2〜4に関し、11ビット連
続する“1"又は“0"を2ビット連続する“1"又は“0"に
置き換えても、d=2,k=12となる制限を満足すること
がわかる。つまり、CWgに関してE1の符号語をE′
=2の符号語としてまとめて取り扱い、かつ、CW1に関
してF1の符号語をF′=2の符号語としてまとめて
取り扱っても、d,k制限を満たすことがわかる。Regarding No. = 2 to 4 in Fig. 8, even if 11 bits consecutive "1" or "0" is replaced by 2 bits consecutive "1" or "0", d = 2, k = 12 It turns out that the following restrictions are satisfied. That is, the codeword of E1 is E ′ with respect to CW g.
It can be seen that even if the codewords of F1 = C2 are handled collectively as codewords of = 2 and the codewords of F1 with respect to CW 1 are handled collectively as codewords of F ′ = 2, the d, k restriction is satisfied.
以上示したようにg個のDCフリーでないRLL符号により
グループを構成し、グループ間でDSVの制御を行うこと
により、DCフリーRLL符号が得られる。As described above, a DC-free RLL code can be obtained by forming a group with g non-DC-free RLL codes and controlling the DSV between the groups.
なお、d=2,k=12,n=22に対して、第1表に従って組
み合わせを行った結果得られる符号語の組数N1=34423
(>32768=215)、第2表に従って組み合わせを行った
結果得られる符号語の組数N2=21986(>16384=
214),第3表に従って組み合わせた結果得られる符号
語の組数N3=16645(>16384=214)となる。Note that the number of code word pairs N 1 = 34423 obtained as a result of combining d = 2, k = 12, and n = 22 according to Table 1.
(> 32768 = 2 15), the number of sets of code words obtained as a result of the combination according to table 2 N 2 = twenty-one thousand nine hundred and eighty-six (> 16384 =
2 14 ), and the number of code word pairs obtained as a result of combining in accordance with Table 3 is N 3 = 16645 (> 16384 = 2 14 ).
従って、m1=mg=14,mi=15(2ig−1)となる
から、Tω/T={28+15(g−2)}/22・g<0.682と
なり、 g=6のとき、 が得られる。Therefore, m 1 = m g = 14, m i = 15 (2ig-1), so T ω /T={28+15(g-2)}/22·g<0.682, and when g = 6, Is obtained.
Tω/T=0.667は従来の4/8変換におけるTω/T=0.5に
対して、約33%も広くできる。 T ω /T=0.667 for T ω /T=0.5 in the conventional 4/8 conversion may about 33% wider.
以上、d=2,k=12,ni=22(iig)を例に、符号
語の選択別・組み合わせ則、符号語どうしの接続則及
び、グループどうしの接続則について示したが、これら
の規則は任意のd,k,niに容易に拡張できる。As described above, the d = 2, k = 12, n i = 22 (iig) example has been shown for the selection / combination rule of codewords, the connection rule between codewords, and the connection rule between groups. The rules can easily be extended to any d, k, n i .
すなわち、前記規則において、符号語長ni及び1グルー
プを構成するRLL符号語g(2)は、d,k及びDSV制限
を満たすための条件には一切関係しない。That is, in the above rule, the code word length n i and the RLL code word g (2) forming one group have nothing to do with the conditions for satisfying the d, k and DSV restrictions.
たとえば、d=2,k=12の場合、前記条件(i),(i
i)を満たす符号語に関しては、その符号語長に依ら
ず、前記規則に従う限りにおいて必ずd,k制限を満た
し、DSVも発散しない。For example, when d = 2 and k = 12, the conditions (i) and (i
For a codeword that satisfies i), regardless of the codeword length, as long as the above rule is followed, the d, k restriction is always satisfied, and the DSV does not diverge.
したがって、1グループを構成するRLL符号の符号長
は、それぞれ独立に設定でき、すべて等しくても、すべ
て異なっていてもよい。Therefore, the code lengths of the RLL codes that form one group can be set independently of each other, and may be the same or different.
更に、前記条件(i)を次に示す条件(i)′に一般化
することができる。Further, the above condition (i) can be generalized to the following condition (i) '.
(i)′xlk−d+1,d−xrk−d+1
1xd−1 なお、d=1のときに限り、l,r1とする。ここで、
前記F,Eを次式(1)のように拡張する。(I) 'xlk-d + 1, d-xrk-d + 1
1 × d−1 Note that l and r1 are set only when d = 1. here,
The F and E are expanded as in the following equation (1).
ただし、dzk−dである。 However, it is dzk-d.
このように定めて、前記接続則に従って符号語どうしを
接続しても、d,k制限を満たすことは次のことからわか
る。It can be seen from the following that the d, k limit is satisfied even if the codewords are connected according to the connection rule defined in this way.
E=0のとき、TB=LBとなるように制御する結果、 d=d−x+xr+ld−1+k−d+1=k, F=0のとき、TB=LBとなるように制御する結果、 d=d−x+xr+lk−d+1+d−1=k, E=1かつF=1のとき、TB≠LBは明らかにd,k制限を
満たし、TB=LBの場合も d<d+2r+dk−z+z=k, E=2、かつF≠0、又はE≠0かつF=2の場合は、
TB≠LBになるように、第1符号語又は第2符号語を制御
するので、d,k制限を満たす。When E = 0, the result of controlling so that TB = LB is: d = d−x + xr + ld−1 + k−d + 1 = k, When F = 0, the result of controlling so that TB = LB, d = d− When x + xr + lk-d + 1 + d-1 = k, E = 1 and F = 1, TB ≠ LB obviously satisfies the d, k constraint, and when TB = LB, d <d + 2r + dk-z + z = k, E = 2, and If F ≠ 0, or E ≠ 0 and F = 2,
Since the first codeword or the second codeword is controlled so that TB ≠ LB, the d, k restriction is satisfied.
ちなみに、条件(i)′におけるx、式(1)における
zの値としては、式(2)及び式(3)に示す値をとる
とき、符号語の組数は最大になることが、計算機を用い
ることで容易に確められる。By the way, when the values of x in the condition (i) ′ and z in the formula (1) take the values shown in the formulas (2) and (3), the number of codeword pairs becomes maximum. It can be easily confirmed by using.
x=MAX(1,〔d/2〕),又はx=MAX(1,d−〔d/2〕)
……(2) z=〔k/2〕又はz=k−〔k/2〕 ……(3) ただし、MAX(A,B)はA,Bのうち大きい方の値をとるこ
とを示し、〔A〕はAを越えない最大の整数値をとるこ
とを示す。x = MAX (1, [d / 2]), or x = MAX (1, d- [d / 2])
(2) z = [k / 2] or z = k- [k / 2] (3) However, MAX (A, B) indicates that the larger value of A and B is taken. , [A] indicates that it takes a maximum integer value that does not exceed A.
前記d=2,k=12においては、x=1,z=6、k−d+1
=11となり、この一般化した結果は前記条件(i)に矛
盾しない。When d = 2 and k = 12, x = 1, z = 6, k−d + 1
= 11, and this generalized result is consistent with the condition (i).
本実施例はd=2,k=12,ni=22,g=6のみならず、d=
2,k=13,ni=19,g=9においてもTω/T=0.667TなるDC
フリーRLL符号も実現できる他、従来では得られない数
多くのDCフリーRLL符号を実現できる。In this embodiment, not only d = 2, k = 12, n i = 22, g = 6 but also d =
DC that T ω /T=0.667T even at 2, k = 13, n i = 19, g = 9
Free RLL codes can be realized, and many DC-free RLL codes that cannot be obtained by conventional methods can be realized.
次に、本実施例の実現化手段について、グループを生成
するためのグループ生成回路と、グループどうしを接続
するためのグループ接続回路に分けて説明する。Next, the implementation means of the present embodiment will be described separately for the group generation circuit for generating groups and the group connection circuit for connecting the groups.
まず、第9図に示すグループ生成回路について。First, regarding the group generation circuit shown in FIG.
第9図はグループ内でd,k制限を満たすように、符号語
の選択・接続を制御するための回路である。FIG. 9 shows a circuit for controlling the selection / connection of codewords so as to satisfy the d, k restrictions within the group.
第9図において、データ語生成回路1はmiビットのデー
タ語DWiを生成する。符号語生成回路2は、データDWiに
対応するniビットの符号語CWia、及びそのL,Rブロック
に関するパラメータF,Eを生成し、符号語生成回路3
は、データDWiに対応するniビットの符号語CWibを生成
し、符号語CWia,CWibについてはシリアルで送出する。In FIG. 9, the data word generation circuit 1 generates a data word DW i of m i bits. The code word generation circuit 2 generates the code word CW ia of n i bits corresponding to the data DW i and the parameters F and E related to the L and R blocks thereof, and the code word generation circuit 3
Generates a code word CW ib of n i bits corresponding to the data DW i , and sends the code words CW ia and CW ib serially.
ここで、符号語CWiaとCWibは第1〜3表に従って組み合
わせた符号語であり、そのLブロックを構成する2進値
TBが互いに等しいものを選ぶ。更に、表パターンと裏パ
ターンを組み合わせている場合には表パターンを選ぶも
のとする。なお、第1表において、他の符号語と組み合
わせない符号語については、符号変換回路2で生成する
ものと定める。Here, the code words CW ia and CW ib are code words that are combined according to Tables 1 to 3, and the binary values that form the L block
Choose those with TB equal to each other. Furthermore, when the front pattern and the back pattern are combined, the front pattern is selected. It should be noted that in Table 1, code words that are not combined with other code words are defined to be generated by the code conversion circuit 2.
保持回路4及び保持回路5はW1のRブロックに関するパ
ラメータE及びLBの値を保持する。なお、LBの値は符号
語の最終ビットの値でよい。The holding circuits 4 and 5 hold the values of the parameters E and LB relating to the R block of W1. The value of LB may be the value of the last bit of the codeword.
Y生成回路6は第7図に従って、W2を表パターンにする
か裏パターンにするかを制御する値Yを生成する。ただ
し、グループにおける最初の符号語CW1に関しては、グ
ループ内では必ず表パターンにすると定めているので
(前記第8図の説明参照)、CW1に対してはY=0でな
ければならない。The Y generation circuit 6 generates a value Y for controlling whether W2 is a front pattern or a back pattern according to FIG. However, since the first code word CW 1 in the group is defined as a table pattern within the group (see the description of FIG. 8 above), it is necessary that Y = 0 for CW 1 .
このため制御信号を生成するのがカウンタ7であり、符
号語生成回路出力のCWia,CWibがグループ内での第何番
目の符号語であるかを計数し、その値iを送出すると共
に、第1番目の符号語であることを示す信号(i=1)
を生成する。Therefore, the control signal is generated by the counter 7, which counts the number of the code word in the group CW ia , CW ib of the code word generation circuit output, and sends out the value i. , A signal indicating that it is the first codeword (i = 1)
To generate.
排他的論理和(EXOR)ゲート8の出力には、Yの値に応
じて、CWia′(=CWia(Y=0)又はCWiaの裏パターン
▲▼(Y=1))が現われ、同じくEXORゲート
9の出力にはCWib′(=CWib(Y=0)又は▲
▼(Y=1))が現われる。At the output of the exclusive OR (EXOR) gate 8, CW ia ′ (= CW ia (Y = 0) or the back pattern ▲ ▼ (Y = 1) of CW ia ) appears according to the value of Y. Similarly, the output of the EXOR gate 9 is CW ib ′ (= CW ib (Y = 0) or ▲
▼ (Y = 1)) appears.
EXORゲート8の出力はniビット遅延回路10へ送り、EXOR
ゲート9の出力はniビット遅延回路11へ送る。The output of the EXOR gate 8 is sent to the n i bit delay circuit 10 for EXOR
The output of the gate 9 is sent to the n i bit delay circuit 11.
なお、符号語CWia′及びCWib′の長さはniビットであ
る。The code words CW ia ′ and CW ib ′ have a length of n i bits.
一方、EXORゲート8の出力に現われる符号語の先頭ビッ
トTBの値を保持するのが、保持回路12である。On the other hand, the holding circuit 12 holds the value of the first bit TB of the code word appearing at the output of the EXOR gate 8.
保持回路12の出力と、符号語生成回路2の出力であるCW
iaのLブロックに関するパラメータFと、先行する符号
語W1のRブロックに関するパラメータE,LBを保持してい
る、保持回路4と保持回路5の出力とを用いて、第7図
に従って、W1してniビット遅延回路10の出力を選ぶなら
ばS=0、niビット遅延回路11の出力を選ぶならばS=
1とする値Sを生成するのが、S生成回路13である。CW that is the output of the holding circuit 12 and the output of the codeword generation circuit 2
Using the parameter F for the L block of ia and the parameters E, LB for the R block of the preceding codeword W1 and the outputs of the holding circuit 4 and the holding circuit 5, according to FIG. If the output of the n i- bit delay circuit 10 is selected, S = 0, and if the output of the n i- bit delay circuit 11 is selected, S =
The S generation circuit 13 generates the value S of 1.
なお、niビット遅延回路10の出力がグループの最後の符
号語であるCWga′の場合には、CWga′に続く符号語は次
のグループの先頭の符号語であり、グループどうしの接
続によってもd,k制限を満たすための制御は、DSVの制御
の後に行うので、ここでは強制的にniビット遅延回路10
の出力を選ぶ(S=0)ものとする。この制御を行うの
がカウンタ7の出力(i=1)である。When the output of the n i bit delay circuit 10 is CW ga ′ which is the last code word of the group, the code word following CW ga ′ is the first code word of the next group and the connection between the groups. Also, since the control for satisfying the d, k limit is performed after the DSV control, here, the n i bit delay circuit 10 is forcibly forced.
The output of is selected (S = 0). This control is performed by the output (i = 1) of the counter 7.
スイッチ14は、Sの値に応じて、niビット遅延回路10の
出力と、niビット遅延回路11の出力を選択して送出す
る。The switch 14 selects and outputs the output of the n i bit delay circuit 10 and the output of the n i bit delay circuit 11 according to the value of S.
この結果、スイッチ14の出力には符号語CWi-1′(=CW
i−1,a′又はCWi−1,b′が現われる。As a result, the code word CW i-1 ′ (= CW i
i-1, a 'or CW i-1, b ' appears.
第10図にg=6の場合における第9図の動作に関するタ
イミングチャートを示す。第10図における添字はCWia,C
Wibにおけるiの値に対応する。たとえばF1はCW1a及びC
W1bのLブロックに関するパラメータFの値である。FIG. 10 shows a timing chart regarding the operation of FIG. 9 when g = 6. The subscript in Fig. 10 is CW ia , C
Corresponds to the value of i in W ib . For example, F 1 is CW 1a and C
It is the value of the parameter F for the L block of W 1b .
第9図の回路及び第10図のタイミングチャートにより、
前記符号語どうしの接続則(I.1)〜(I.5)を実現で
き、グループ内でd,k制限を満たすグループが得られ
る。According to the circuit of FIG. 9 and the timing chart of FIG.
The connection rules (I.1) to (I.5) of the codewords can be realized, and a group satisfying the d, k restriction can be obtained within the group.
次に、第1図に示すグループ接続回路について説明す
る。Next, the group connection circuit shown in FIG. 1 will be described.
第1図は、DSVを有限に保ちつつ、グループどうしを接
続してもd,k制限を満たす、DCフリーRLL符号を得るため
の回路であり、グループ生成回路15(第9図)、DSV制
御回路、d,k制御回路より成る。グループ生成回路.DSV
制御回路は、DSVを有限に抑えるためのグループの反転
(グループの1を0、0を1にすべて反転させる)、不
反転を制御するためのものであり、グループ内の1と0
の個数差グループディスパリティーGDPを求める、GDP演
算回路16と、GDP<0ならばGP=−1,GDP=0ならばGP=
0,GDP>0ならばGP=1とする値GPを生成するGP生成回
路17と、先行するグループの最終ビットでのDSVの値を
保持する保持回路18と、DSV0ならばDV=0,DSV<0な
らばDV=1を生成するDV生成回路19と、GPとDVに基づい
て第9図に従ってグループを反転させるならばGI=1,不
反転ならばGI=0とする値GIを生成するGI生成回路20
と、GI=0ならばGDP′=GDP,GI=1ならばGDP′=−GD
Pを選択する選択回路21と、DSV+GDP′を求める加算器2
2と、1グループ遅延回路23と排他的論理和(EXOR)ゲ
ート24とにより成る。FIG. 1 shows a circuit for obtaining a DC-free RLL code that satisfies the d, k limits even if groups are connected while keeping DSV finite. Group generation circuit 15 (FIG. 9), DSV control Circuit, d, k control circuit. Group generation circuit .DSV
The control circuit is for controlling group inversion (reversing all 1s in a group to 0 and 0s to 1) and non-inversion in order to keep DSV finite.
GDP calculation circuit 16 for obtaining the number difference group disparity GDP of G, and if GDP <0, GP = −1, and if GDP = 0, GP =
If 0, GDP> 0, a GP generation circuit 17 that generates a value GP that sets GP = 1, a holding circuit 18 that holds the DSV value at the last bit of the preceding group, and if DSV0, DV = 0, DSV If it is <0, the DV generation circuit 19 that generates DV = 1 and the value GI that sets GI = 1 if the group is inverted according to FIG. 9 based on GP and DV and GI = 0 if it is not inverted GI generation circuit 20
And GI = 0, GDP '= GDP, GI = 1 GDP' =-GD
Selection circuit 21 for selecting P and adder 2 for obtaining DSV + GDP '
2 and one group delay circuit 23 and an exclusive OR (EXOR) gate 24.
グループ生成回路15から送出されて来るグループをGj+1
とすると、このグループGj+1の反転・不反転は、Gj+1に
関するグループディスパリティーGDPj+1が求まった後に
行わなければならない。このために、1グループ遅延回
路23が必要となる。The group sent from the group generation circuit 15 is G j + 1
When the inverted and non-inverted for this group G j + 1 has to be done after the group disparity GDP j + 1 is Motoma' about G j + 1. Therefore, the one-group delay circuit 23 is required.
又、グリープ生成回路15の出力にGj+1の先頭ビットが現
われると同時に、1グループ遅延回路23の出力には、G
j+1に先行するグループGjの先頭ビットが現われる。Further, at the same time that the head bit of G j + 1 appears in the output of the group generation circuit 15, the output of the 1-group delay circuit 23 is
The first bit of group G j preceding j + 1 appears.
このとき、GPj,DVj-1を生成し、Gjに対するGIjを得、GI
jの値に応じてEXORゲート24の出力にはGj′(=Gj(GIj
=0)又はGjの反転パターンj(GIj=1))が現わ
れる。At this time, it generates GP j, the DV j-1, to obtain a GI j for G j, GI
According to the value of j , the output of the EXOR gate 24 is G j ′ (= G j (GI j
= 0) or an inversion pattern j (GI j = 1)) of G j appears.
なお、GPjはGjのグループディスパリティーGDPjに対応
するGPの値、DVj-1はGjに先行するグループGj-1の最終
ビットでのDSVの値DSVj-1に対応するDVの値であり、こ
れらの値とGIjに関しては1グループ間保持する。Incidentally, GP j the value of GP corresponding to the group disparity GDP j of G j, DV j-1 corresponds to the DSV value DSV j-1 in the last bit of the group G j-1 preceding the G j These are DV values, and these values and GI j are held for one group.
GPj DVj,GIjと共に、DSVj=DSVj-1+GDPj′なるGjの最
終ビットでのDSVの値DSVjを求め保持回路18に保持す
る。そして、GPjが求まった直後GDP演算器16の内容をク
リアする。Along with GP j DV j and GI j , the DSV value DSV j at the final bit of G j such that DSV j = DSV j-1 + GDP j ′ is obtained and held in the holding circuit 18. Then, immediately after the GP j is obtained, the contents of the GDP calculator 16 are cleared.
以上のように定めることで、連続して現われるグループ
列の各グループに関して、DSVを発散させないように反
転・不反転の制御を実現できる。With the above settings, inversion / non-inversion control can be realized so that the DSV does not diverge for each group in the group sequence that appears continuously.
d,k制御回路は、DSV制限を満たすための制御が終わった
グループどうしを接続しても、d,k制限を満たすため
に、先行するグループの最後の符号語を置き換えるか否
かを制御するためのものであり、先行するグループGの
最後の符号語のRブロックに関するパラメータE,LBと、
グループGに続くグループの先頭の符号語のLブロック
に関するパラメータFの値を保持する保持回路25と、こ
れらE,F,LBの値並びに前記GIの値を基に第8図に従っ
て、グループGの最後の符号語を置き換えるならばSg=
1,置き換えないならばSg=0なる値Sgを生成するSg生成
回路26と、1グループ遅延回路27と、EXORゲート28と、
ngビット遅延回路29,30とスイッチ31とにより成る。The d, k control circuit controls whether or not to replace the last codeword of the preceding group to satisfy the d, k limit even if the groups that have been controlled to satisfy the DSV limit are connected. And the parameters E, LB relating to the R block of the last codeword of the preceding group G,
Based on the holding circuit 25 for holding the value of the parameter F relating to the L block of the first code word of the group following the group G and the values of these E, F, LB and the value of GI, the group G S g = if the last codeword is replaced
1, S g generation circuit 26 that generates a value S g of S g = 0 if not replaced, 1-group delay circuit 27, EXOR gate 28,
It comprises n g bit delay circuits 29, 30 and a switch 31.
なお、グループ生成回路15は前記m/n符号変換手段、GDP
演算回路16は前記グループディスパリティ演算手段、保
持回路18,加算器22は前記ディジタルサムバリエーショ
ン演算手段、GP生成回路17,DV生成回路19,GI生成回路2
0,選択回路21は前記グループディスパリティー極性制御
手段、EXORゲート24,28は前記符号語グループ反転制御
手段、Sg生成回路26とスイッチ31は前記符号語置換手段
にそれぞれ対応する。Note that the group generation circuit 15 uses the m / n code conversion means, GDP
The arithmetic circuit 16 is the group disparity arithmetic means, the holding circuit 18 and the adder 22 are the digital sum variation arithmetic means, the GP generation circuit 17, the DV generation circuit 19, and the GI generation circuit 2
0, the selection circuit 21 corresponds to the group disparity polarity control means, the EXOR gates 24 and 28 correspond to the code word group inversion control means, and the S g generation circuit 26 and the switch 31 correspond to the code word replacement means.
以下、データ語生成回路15の出力に現われる符号語C
Wi′(j)は、第9図におけるスイッチ14の出力に現われ
るj番目のグループGjの第i番目の符号語を表わし、CW
ib′(j)は第9図におけるniビット遅延回路11の出力に
現われるGjの第1番目の符号語を表わすものとする。な
おCWg′(j)のみCWga′(j)に定まっているから、CWg′
(j)としないでCWga′(j)と記す。Below, the code word C appearing at the output of the data word generation circuit 15
W i ′ (j) represents the i-th codeword of the j-th group G j appearing at the output of the switch 14 in FIG.
It is assumed that ib ' (j) represents the first code word of G j appearing at the output of the n i bit delay circuit 11 in FIG. The CW g '(j) only CW ga' because they definite to (j), CW g '
without the (j) referred to as a CW ga '(j).
今、グループ生成回路15から送られて来る符号語をグル
ープGj+1の第1番目の符号語CW1(j+1)とし、CW1(j+1)の
先頭ビットがグループ生成回路15の出力aに現われると
き、1グループ遅延回路23の出力には符号語CW1′(j)の
先頭ビットが現われ、EXORゲート24の出力には、GI生成
回路20の出力GIjに応じて、CW1″(j)(=CWi′(j)(GIj
=0),又はCW1′(j)の反転パターン▲
▼(GIj=1))の先頭ビットが現われ、ngビット遅延
回路29の出力には、グループGj-1の最後の符号語CWga″
(j-1)の先頭ビットが現われる。Now, the code word sent from the group generation circuit 15 is the first code word CW 1 (j + 1) of the group G j + 1 , and the first bit of CW 1 (j + 1) is the group generation circuit 15 Of the code word CW 1 ′ (j) appears at the output of the 1-group delay circuit 23 and appears at the output of the EXOR gate 24 according to the output GI j of the GI generation circuit 20. CW 1 ″ (j) (= CW i ′ (j) (GI j
= 0), or the inversion pattern of CW 1 ′ (j) ▲
▼ (GI j = 1)) appears, and the output of the n g bit delay circuit 29 shows the last code word CW ga ″ of the group G j-1.
The first bit of (j-1) appears.
一方、符号語CWga″(j-1)と先頭ビットの値、Lブロッ
クに関するパラメータFの値及び、Rブロックに関する
パラメータEの値が等しく、Rブロックを構成する2進
値が異なる符号語CWgb′(j-1)は、グループ生成回路15
の出力b,1グループ遅延回路27,EXORゲート28及び、ngビ
ット遅延回路30を通して得られる。On the other hand, the code word CW ga ″ (j−1) , the value of the first bit, the value of the parameter F for the L block, and the value of the parameter E for the R block are the same, and the code word CW having different binary values forming the R block gb ′ (j-1) is the group generation circuit 15
Output b, 1 group delay circuit 27, EXOR gate 28, and ng bit delay circuit 30.
すなわち、符号語CWga″(j-1)とCWgb″(j-1)は全く同じ
経路を経るので、符号語CWga″(j-1)の先頭ビットがng
ビット遅延回路29の出力に現われるのと同時に、符号語
CWgb″(j-1)の先頭ビットがngビット遅延回路30の出力
に現われる。That is, since the codewords CW ga ″ (j-1) and CW gb ″ (j-1) take exactly the same path, the first bit of the codeword CW ga ″ (j-1) is n g
At the same time as it appears at the output of the bit delay circuit 29,
The first bit of CW gb ″ (j-1) appears at the output of ng bit delay circuit 30.
更に、保持回路25に保持している、符号語CWga″(j-1)
のRブロックに関するパラメータE,LBの値Ej-1,LB
j-1と、符号語CW1′(j)のLブロックに関するパラメー
タFの値Fjと、GI生成回路20からの制御信号GIjを基
に、Sg生成回路26は第8図に従って符号語CWga″(j-1)
をCWgb″(j-1)に置換えるか否かの制御信号Sg,j−1を
生成する。なお、制御信号Sgはngビット遅延回路の出力
が、グループの最終の符号語である場合にのみSg=1に
なり得、それ以外の符号語の場合はすべてSg=0とす
る。又、第8図におけるE′,F′はEj-1,Fjに基づい
て、Sg生成回路20の中で変換する。Furthermore, the code word CW ga ″ (j-1) held in the holding circuit 25
Values of parameters E and LB for the R block of E j-1 , LB
Based on j−1 , the value F j of the parameter F relating to the L block of the code word CW 1 ′ (j) , and the control signal GI j from the GI generation circuit 20, the S g generation circuit 26 codes according to FIG. Word CW ga ″ (j-1)
To CW gb ″ (j-1) is generated to generate a control signal S g, j−1 . The control signal S g is the output of the n g bit delay circuit and is the final code word of the group. Can be S g = 1 only, and all other codewords are S g = 0. Further, E ′ and F ′ in FIG. 8 are based on E j−1 and F j . Then, the conversion is performed in the S g generation circuit 20.
スイッチ31は、制御信号Sg,j−1=0の場合は符号語C
Wga″(j-1)を選択しSg,j−1=0の場合は符号語C
Wgb″(j-1)を選択し出力とする。The switch 31 receives the code word C when the control signal S g, j−1 = 0.
If W ga ″ (j-1) is selected and S g, j−1 = 0, then the code word C
Select W gb ″ (j-1) to output.
この結果、スイッチ31の出力にはd,k制限されたDCフリ
ー符号が得られる。As a result, a DC-free code limited in d, k is obtained at the output of the switch 31.
第11図に、第1図の動作に関するタイミングチャートを
示す。第11図において、符号語Aの1と0,0と1とをす
べて反転させた符号語をと表わしている。FIG. 11 shows a timing chart regarding the operation of FIG. In FIG. 11, a code word obtained by inverting all 1, 0, 0 and 1 of the code word A is represented as.
第1図の回路と第11図のタイミングチャートを用いるこ
とにより、DCフリーRLL符号が得られる。A DC-free RLL code can be obtained by using the circuit of FIG. 1 and the timing chart of FIG.
第12図は復号回路のブロック図であり、復号語CWiをCWi
に対応するデータ語DWiに復号するためのものである。FIG. 12 is a block diagram of the decoding circuit. The decoded word CW i is represented by CW i
For decoding into a data word DW i corresponding to.
第12図において、第1図のスイッチ31の出力に現われる
d,k及びDSV制限されたビット列は、保持回路32を通して
排他的論理和(EXOR)ゲート33の一方の入力端子に加え
る。なお、保持回路32は1ビット単位で動作する。In FIG. 12, it appears at the output of switch 31 in FIG.
The d, k and DSV limited bit strings are applied to one input terminal of the exclusive OR (EXOR) gate 33 through the holding circuit 32. The holding circuit 32 operates in 1-bit units.
他方、保持回路34はグループの先頭ビットGTBを取り込
み、その否定値GTBを1グループ間保持し続け、EXORゲ
ート33のもう一方の入力端子に加える。On the other hand, the holding circuit 34 takes in the head bit GTB of the group, keeps the negated value GTB for one group, and applies it to the other input terminal of the EXOR gate 33.
この結果、EXORゲート33の出力には必ず1で始まるグル
ープGjが現われる。As a result, the output of the EXOR gate 33 always shows the group G j starting with 1.
このGjは、第1図のグループ生成回路15の出力aに現わ
れるグループGjと等しい。This G j is equal to the group G j appearing at the output a of the group generation circuit 15 in FIG.
シリアル−パラレル変換器35は、グループGjから符号語
CWiを取り出して、パラレルにして送出する。The serial-to-parallel converter 35 outputs the code word from the group G j.
Take out CW i and send in parallel.
データ語復号回路36は、パラレルのCWiと、このCWiが、
グループGjの何番目の符号語かを表わす値iを計数し、
この値iを送出するカウンタ37の出力iを基に、符号語
CWiに対応するデータ語DWiを復号する。In the data word decoding circuit 36, the parallel CW i and this CW i are
The value i representing the number of the code word of the group G j is counted,
Based on the output i of the counter 37 that outputs this value i,
Decode the data word DW i corresponding to CW i .
以上のように、本実施例によりDCフリーRLL復号の生成
及び、DCフリーRLL符号からデータ語の復号を行うこと
ができる。As described above, according to the present embodiment, it is possible to generate the DC-free RLL decoding and to decode the data word from the DC-free RLL code.
実施例2 本発明の第2の実施例は前記本発明の第3の特徴に関
し、符号語CWiをデータ語DWiに復号する場合に用する回
路規模を、従来より小さくできる符号変換装置である。Second Embodiment The second embodiment of the present invention relates to the third feature of the present invention, and is a code conversion device capable of reducing the circuit scale used when decoding the code word CW i into the data word DW i as compared with the conventional one. is there.
以下、本実施例について、前記d=2,k=12,ni=22(1
ig)なるDCフリーRLL符号を想定して説明する。Hereinafter, for the present embodiment, the d = 2, k = 12, n i = 22 (1
ig) will be described.
第13図は、本実施例を実現するための回路構成を示すブ
ロック図であり、第12図の復号回路に加えて、符号語を
表パターンに変換する(F=1の符号語を除く)回路
と、22ビットの符号語を14ビットと8ビットに分割し、
それぞれに対応するビットパターン番号BP1,BP2を生成
する仮復号回路と、BP1,BP2に基づいてデータ語を復号
する最終復号回路により成る。仮復号回路及び最終復号
回路は前記仮復号手段及び最終復号手段にそれぞれ対応
する。FIG. 13 is a block diagram showing a circuit configuration for realizing this embodiment. In addition to the decoding circuit of FIG. 12, codewords are converted into a table pattern (excluding codewords of F = 1). The circuit and the 22-bit codeword are divided into 14-bit and 8-bit,
It is composed of a temporary decoding circuit that generates bit pattern numbers BP 1 and BP 2 corresponding to each, and a final decoding circuit that decodes a data word based on BP 1 and BP 2 . The temporary decoding circuit and the final decoding circuit correspond to the temporary decoding means and the final decoding means, respectively.
第12図の説明の際に示したように、排他的論理和ゲート
33の出力には1で始まるグループGjが現われる。このグ
ループGjを構成する符号語CWi(1ig)は、グル
ープ内でd,k制限を満たすために表パターン又は裏パタ
ーンのいずれかの形をしている。As shown in the explanation of Figure 12, the exclusive OR gate
In the output of 33, the group G j starting with 1 appears. The code words CW i (1 ig) forming this group G j have either a front pattern or a back pattern in order to satisfy the d, k restriction within the group.
復号に用いる情報量をできるだけ少なくするという観点
から、表パターンと裏パターンを組み合わせている符号
語については、すべて表パターンにしてから復号する。From the viewpoint of reducing the amount of information used for decoding as much as possible, all the code words that combine the front pattern and the back pattern are converted into the front pattern and then decoded.
第1〜3表よりわかるように、表パターンと裏パターン
を組み合わせるのは、符号語のLブロックに関するパラ
メータFの値が1でない符号語であるか又は、グループ
の先頭の符号語CW1の場合である。As can be seen from Tables 1 to 3, the combination of the front pattern and the back pattern is a code word in which the value of the parameter F relating to the L block of the code word is not 1 or the code word CW 1 at the head of the group. Is.
第13図において、保持回路38は符号語の先頭ビットTBを
保持し、F=1検出回路39は符号語のLブロックに関す
るパラメータFの値が1ならば(F=1)=1,1でない
ならば(F=1)=0なる値(F=1)を出力とする。In FIG. 13, the holding circuit 38 holds the first bit TB of the code word, and the F = 1 detection circuit 39 does not hold (F = 1) = 1,1 if the value of the parameter F for the L block of the code word is 1. If so, a value (F = 1) = 0 (F = 1) is output.
NORゲート40はTBと(F=1)を入力とするので、その
出力はTB=0かつF≠1のときのみ1となる。したがっ
て、F=1を検出するのに必要な6ビット分(F=1:2
l6)の遅延回路41を通って来る符号語は、NORゲ
ート40の出力が1のときのみ、EXORゲート42で表パター
ンに変換される。Since the NOR gate 40 receives TB and (F = 1) as its inputs, its output becomes 1 only when TB = 0 and F ≠ 1. Therefore, the 6 bits required to detect F = 1 (F = 1: 2
The code word coming through the delay circuit 41 of 16) is converted into a table pattern by the EXOR gate 42 only when the output of the NOR gate 40 is 1.
EXORゲート42の出力に現われるシリアルの符号語を、シ
リアル−パラレル変換器35で22ビットパラレルの符号語
に変換し、このうち、先頭ビットから14ビットを仮復号
回路43へ送り、最終ビットから8ビットを仮復号回路44
へ送る。The serial code word appearing at the output of the EXOR gate 42 is converted by the serial-parallel converter 35 into a 22-bit parallel code word. Of these, 14 bits from the first bit are sent to the temporary decoding circuit 43, and 8 bits from the last bit. Bit temporary decoding circuit 44
Send to.
このとき、使用する符号語のRブロックにおける同一2
進値の連続ビット数rを6以下に限定しておくと、仮復
号回路43の入力14ビットは10ビット、仮復号回路44の入
力8ビットは6ビットで互いに区別できる。At this time, the same 2 in the R block of the codeword used
If the number of consecutive bits r of the decimal value is limited to 6 or less, the input 14 bits of the temporary decoding circuit 43 can be distinguished from each other by 10 bits and the input 8 bits of the temporary decoding circuit 44 by 6 bits.
なおr6としたときの符号語の組数は、第1表の組み
合わせに従うとき33295(>215),第2表に従うとき21
266(>214),第3表に従うとき16553(>214)であ
る。又、14ビットにおけるビットパターン数BP1=949
(<210=1024),8ビットにおけるビットパターン数BP2
=64(=26)である。The number of code word pairs when r6 is 33295 (> 2 15 ) according to the combinations in Table 1 and 21 when according to Table 2.
266 (> 2 14 ) and 16553 (> 2 14 ) according to Table 3. Also, the number of bit patterns in 14 bits BP 1 = 949
(<2 10 = 1024), the number of bit patterns in 8 bits BP 2
= 64 (= 26 ).
符号語CWiと(BP1,BP2)の組は1対1に対応するから、
この(BP1,BP2)に基づいて符号語CWiに対応するデータ
語DWiを復号しても、何ら不都合は生じない。Since the pair of code words CW i and (BP 1 , BP 2 ) has a one-to-one correspondence,
The (BP 1, BP 2) also on the basis of decoded data word DW i corresponding to the code word CW i, no any inconvenience.
最終復号回路45はこの仮復号した(BP1,BP2)に対応す
るデータ語を出力とする。The final decoding circuit 45 outputs the data word corresponding to the provisionally decoded (BP 1 , BP 2 ).
この仮復号回路43,44及び最終復号回路45が、第12図に
おけるデータ語復号回路36に対応し、カウンタ37からの
出力iの値により、最終復号回路45は(BP1,BP2)に対
応するデータ語を第1〜3表のいずれかに従って復号す
るかを決定する。The temporary decoding circuits 43, 44 and the final decoding circuit 45 correspond to the data word decoding circuit 36 in FIG. 12, and the final decoding circuit 45 becomes (BP 1 , BP 2 ) according to the value of the output i from the counter 37. It is decided whether to decode the corresponding data word according to any one of Tables 1 to 3.
本実施例を用いることにより、22ビットの符号語CWiを
復号するのに要するメモリーは、仮復号回路43に関して
は、アドレス14ビット出力10ビットであるからV1=214
・10ビット,仮復号回路44に関しては、アドレス8ビッ
ト、出力6ビットであるから、V2=28・6ビット、最終
復号回路45に関しては、アドレス16ビット、出力15(又
は14)ビットであるから、V3=216・15ビット、合計V
=V1+V2+V31.1Mビットとなる。By using this embodiment, the memory required to decode the 22-bit code word CW i is 14 bits for the address and 10 bits for the temporary decoding circuit 43. Therefore, V 1 = 2 14
- 10-bit, with respect to the provisional decoding circuit 44, address 8 bits, because the output is 6 bits, for V 2 = 2 8 - 6 bits, a final decoding circuit 45, address 16 bits, the output 15 (or 14) bits Therefore, V 3 = 2 16 · 15 bits, total V
= V 1 + V 2 + V 3 1.1 Mbits.
従来の復号回路ではアドレス22ビット、出力15ビットで
あるから、メモリー容量V′=222・1560Mビットであ
るから、本実施例を用いることにより、復号回路に要す
るメモリー容量を約1/60にでき、非常に経済的である。Address 22 bits in the conventional decoding circuit, since the output is 15 bits, since a memory capacity V '= 2 22 · 1560M bits, by using the present embodiment, about 1/60 the amount of memory required for the decoding circuit Yes, it is very economical.
本実施例は、d=2,k=12,ni=22の場合に限らず、d=
1,k=∞の場合を除いて、すべてのRLL符号の復号に用い
ることができる。The present embodiment is not limited to the case of d = 2, k = 12, ni = 22, and d =
It can be used for decoding all RLL codes except for the case of 1, k = ∞.
実施例3 本発明の第3の実施例は、前記本発明の第3の特徴に関
し、データ語と符号語の対応関係を以下で説明するよう
に定めることで、第1〜3表に従って組み合わせた符号
語の組とデータ語の対応関係を、共通の符号語生成回路
と、データ語復号回路で実現するためのものである。Third Embodiment The third embodiment of the present invention is related to the third feature of the present invention and is combined according to Tables 1 to 3 by determining the correspondence relationship between the data word and the code word as described below. This is for realizing the correspondence between a set of code words and a data word by a common code word generation circuit and data word decoding circuit.
なお、本実施例は、第9図におけるデータ語生成回路1,
符号語生成回路2,3及び第13図における最終復号回路45
の構成のみに関し、その他の回路及びその動作に関して
は全く不変である。In this embodiment, the data word generation circuit 1 in FIG.
Codeword generation circuits 2 and 3 and final decoding circuit 45 in FIG.
Only the configuration of the above, and other circuits and the operation thereof are completely unchanged.
以下、本実施例について、図面を用いて詳細に説明する
が、本実施例においても、前記d=2,k=12,ni=22(i
=1〜g)なるDCフリーRLL符号を例に用いるものとす
る。Hereinafter, the present embodiment will be described in detail with reference to the drawings. Also in this embodiment, d = 2, k = 12, ni = 22 (i
= 1 to g), the DC-free RLL code is used as an example.
d=2,k=12,ni=22に対して、前記条件(i)′,(i
i)に従って符号語を選別し、第1表に従って組み合わ
せた符号語の組CWC1の数N1=34423,第2表に従って組み
合わせた符号語の組CWC2の数N2=21986,第3表に従って
組み合わせた符号語の組CWC3の数N3=16645である。た
だし、式(1)におけるz=6である。For d = 2, k = 12, n i = 22, the above conditions (i) ′, (i
i) Number of codeword pairs CWC 1 combined according to Table 1 according to Table 1 N 1 = 34423, number of codeword pairs CWC 2 combined according to Table 2 N 2 = 21986, according to Table 3 The number N 3 of the combination CWC3 of codewords is 16645. However, z = 6 in Formula (1).
したがって、符号語の組CWC1には15ビット(N1>215)
のデータ語,符号語の組CWC2には14ビット(N2>214)
のデータ語、符号語の組CWC3には14ビット(N3>214)
のデータ語をそれぞれ対応させることができる。Therefore, the code word set CWC1 has 15 bits (N 1 > 2 15 ).
Data word, code word pair CWC2 has 14 bits (N 2 > 2 14 )
Data word, code word pair CWC3 has 14 bits (N 3 > 2 14 )
The data words can be associated with each other.
ここで、第9図における符号語生成回路2を、第14図に
示すように、ROM(Read Onli Memory)46と、パラレル
−シリアル変換器(P/S)47により構成し、第9図にお
ける符号語生成回路3を、ROM48とパラレル−シリアル
変換器(P/S)48で構成するものとする。Here, the code word generation circuit 2 in FIG. 9 is configured by a ROM (Read Onli Memory) 46 and a parallel-serial converter (P / S) 47, as shown in FIG. The code word generation circuit 3 is composed of a ROM 48 and a parallel-serial converter (P / S) 48.
第14図におけるROM46はアドレス15ビット、出力26ビッ
ト(符号語22ビット、F,E各2ビット)であり、データ
語生成回路1からの常に15ビットよりなるデータ語D
Wi′を、DWi′に対応する22ビットの符号語CWiaと、そ
のLブロック及びRブロックに関するパラメータF,Eの
値を出力とする。The ROM 46 in FIG. 14 has an address of 15 bits and an output of 26 bits (code word 22 bits, F and E 2 bits each), and the data word D is always 15 bits from the data word generation circuit 1.
Let W i ′ be the output of the 22-bit codeword CW ia corresponding to DW i ′ and the values of the parameters F and E for the L block and the R block.
パラレル−シリアル変換器47は、ROM46からの22ビッ
ト、パラレルの符号語CWiaをシリアルに変換して送出す
る。The parallel-serial converter 47 converts the 22-bit parallel code word CW ia from the ROM 46 into serial and sends it out.
一方、ROM48はアドレス15ビット、出力22ビットであ
り、データ語DWi′に対応する22ビットの符号語CWibを
出力とする。On the other hand, the ROM 48 has an address of 15 bits and an output of 22 bits, and outputs a 22-bit code word CW ib corresponding to the data word DW i ′.
ただし、符号語CWiaとCWibは同一2進値(F≠1のとき
は1のみ)で始まる、第1〜3表に従って組み合わせた
符号語である。However, the code words CW ia and CW ib are code words combined according to Tables 1 to 3, starting with the same binary value (only 1 when F ≠ 1).
パラレル−シリアル変換器49は、ROM48からの22ビット
パラレルの符号語CWibをシリアルに変換して送出する。The parallel-serial converter 49 converts the 22-bit parallel code word CW ib from the ROM 48 into serial and sends it out.
次に、3種類のデータ語と符号語の組、つまり、15ビッ
トのデータ語と符号語の組CWC1、14ビットのデータ語と
符号語の組CWC2及び14ビットのデータ語と符号語の組CW
C3に関する対応関係を、1組のROM(第14図ROM46,48)
で実現するための手法について説明する。Next, there are three types of data word and code word pairs, that is, a 15-bit data word and code word pair CWC1, a 14-bit data word and code word pair CWC2, and a 14-bit data word and code word pair. CW
Correspondence relationship for C3 is shown as a set of ROM (Fig. 14 ROM46, 48)
A method for realizing this will be described.
第14図におけるROM46,48のアドレスは共に15ビットであ
るから、15ビットのデータ語に対応できる符号語の組CW
C1の生成に関しては、データ語生成回路1は入力のデー
タ列から15ビットのデータ語を取り込み、それをそのま
まデータ語DWi(2ig−1)としてROM46,48に送
ればよい。Since the addresses of ROMs 46 and 48 in FIG. 14 are both 15 bits, the code word set CW that can correspond to a 15-bit data word is
Regarding the generation of C1, the data word generation circuit 1 may fetch a 15-bit data word from the input data string and send it as it is to the ROMs 46 and 48 as the data word DW i (2ig-1).
しかしながら、14ビットのデータ語にしか対応できない
符号語の組CWC2,CWC3の生成に関しては、データ語生成
回路1は入力のデータ列から14ビットのデータ語D
W1′,又はDWg′を取り込み、それに1ビットのダミー
を付加して得る15ビットのデータ語DW1又はDWgを、ROM4
6,48に送らねばならない。However, regarding the generation of the code word pair CWC2, CWC3 that can handle only 14-bit data words, the data word generation circuit 1 uses the 14-bit data word D from the input data string.
ROM 15 is used to store a 15-bit data word DW 1 or DW g obtained by taking in W 1 ′ or DW g ′ and adding a 1-bit dummy to it.
Must be sent to 6,48.
本実施例では、データ語DWg′に関してはその最下位ビ
ット(LSB)の次に0を付加してDWgとし、データ語D
W1′に関してはその最上位ビット(MSB)の上に0を付
加してDW1とする。すなわち、DW1=0・DW1′,DWg=D
Wg′・Oである。以下、データ語及びROMのアドレスに
関しては、Aは15ビットの値、A′は14ビットの値、
A″は13ビットの値を表わし、0・X′は15ビットの値
のうちMSB=0でMSBに続く14ビットの値がX′,X′・0
は上位14ビットの値がX′でLSB=0なる15ビット値、
0・X″・0はMSB=LSB=0でMSBとLSBに囲まれた13ビ
ットの値がX″であることを示す。In this embodiment, with respect to the data word DW g ′, 0 is added next to the least significant bit (LSB) to make DW g , and the data word DW g
Regarding W 1 ′, 0 is added to the most significant bit (MSB) to make it DW 1 . That is, DW 1 = 0.DW 1 ′, DW g = D
W g ′ · O. In the following, regarding data words and ROM addresses, A is a 15-bit value, A'is a 14-bit value,
A ″ represents a 13-bit value, and 0 · X ′ is the MSB = 0 of the 15-bit value and the 14-bit value following the MSB is X ′, X ′ · 0.
Is a 15-bit value whose upper 14-bit value is X'and LSB = 0,
0 · X ″ · 0 indicates that MSB = LSB = 0 and the 13-bit value surrounded by MSB and LSB is X ″.
したがって、前記DW1はそのMSB=0,下位14ビットの値が
DW1′である15ビットよりなる値を表わし、DWgはその上
位14ビットの値はDWg′、LSB=0なる15ビットよりなる
値であることを表わす。Therefore, the DW 1 has its MSB = 0, the value of the lower 14 bits is
DW 1 ′ represents a value consisting of 15 bits, and DW g represents that the value of the upper 14 bits thereof is a value consisting of 15 bits of DW g ′ and LSB = 0.
このように定めると、ROM46,48のアドレス0・X′には
符号語の組CWC2、アドレスZ′・0には符号語の組CWC3
がそれぞれ存在しなければならない。Thus, the code word set CWC2 is set at the addresses 0 and X'of the ROM 46 and 48, and the code word set CWC3 is set at the address Z'.0.
Must exist respectively.
したがって、ROM46,48のアドレス0・X′にはN2=2198
6組ある符号語の組CWC2の内、16384組を選んで記憶さ
せ、ROM46,48のアドレスZ′・0には、N3=16645組あ
る符号語の組CWC3の内16384組を選んで記憶させる。Therefore, N 2 = 2198 is assigned to the addresses 0 and X'of the ROMs 46 and 48.
Of the six sets certain codeword set CWC2, is stored to choose 16384 pairs, stored in the address Z '· 0 of ROM46,48, N 3 = 16645 sets there to choose 16384 sets of code words set CWC3 Let
しかしながら、アドレス0・X′とZ′・0に共通のア
ドレス0・X″・0が存在し、この0・X′・0なるア
ドレスには、符号語の組CWC2とCWC3に共通の符号語の組
が存在しなければならない。However, there is an address 0 · X ″ · 0 that is common to addresses 0 · X ′ and Z ′ · 0, and at this address 0 · X ′ · 0, a codeword common to the codeword set CWC2 and CWC3. Must exist.
ここで、第2表と第3表を見ると、第3表における1で
始まる符号語の組を共通の符号語の組にできることがわ
かる。Here, looking at Tables 2 and 3, it can be seen that the set of code words starting with 1 in Table 3 can be a common set of code words.
何故ならば、第3表におけるすべての符号語の組CWC3に
ディスパリティーに関する制約があるのに対し、第2表
における符号語の組CWC2にはディスパリティーに関する
制約はないので、ディスパリティーに関する制約のある
第3表における符号語の組を、共通の符号語の組として
選ばなければならないのが理由の第1。This is because, while all codeword sets CWC3 in Table 3 have restrictions on disparity, the codeword set CWC2 in Table 2 has no restrictions on disparity. The first reason is that the codeword set in Table 3 must be selected as a common codeword set.
次いで、第2表における符号語の組CWC2のうち、1で始
まる符号語の組のみを第9図における符号語生成回路2,
3、つまり、第14図におけるROM46,48で生成すると定め
ているので、第3表における0で始まる符号語の組は、
共通の符号語の組にはできないということが理由の第2
である。Next, among the code word sets CWC2 in Table 2, only the code word sets starting with 1 are selected as the code word generating circuit 2 in FIG.
3, that is, since it has been determined that the ROM 46, 48 in FIG. 14 generates the codeword group starting with 0 in Table 3,
The second reason is that it cannot be a common codeword pair
Is.
以上のようにして選んだ共通の符号語の組のうち、アド
レス0・X″・0を満たすのに必要な213=8192組の符
号語の組を、第14図におけるROM46,48のアドレス0・
X″・0(X″=0〜8191)に順次記憶させる。Of the common code word groups selected as described above, 2 13 = 8192 code word groups necessary for satisfying the address 0 · X ″ · 0 are set to the addresses of the ROMs 46 and 48 in FIG. 0
The data is sequentially stored in X ″ · 0 (X ″ = 0 to 8191).
ここで、符号語の組CWC3の数N3における、パラメータF,
Eに関する内訳N3(F,E)を第4表に示す。ただし、N
3(F,E)は、符号語の組CWC3のうち、L,Rブロックに関
するパラメータの値がF,Eである符号語の組数を表わ
す。Here, in the number N 3 of the code word set CWC3, the parameter F,
Table 4 shows a breakdown of E, N 3 (F, E). However, N
3 (F, E) represents the number of codeword pairs in the codeword pair CWC3 whose parameter values for the L and R blocks are F and E.
14ビットのデータ語と符号語の組CWC3を1対1に対応さ
せるには、符号語の組CWC3は214=16384組でよく、第4
表から16645−16384=261組の符号語の組を除外して得
る、16384組の符号語の組CWC3の内訳N3′(F,E)の一例
を第5表に示す。In order to make the 14-bit data word and code word set CWC3 correspond one-to-one, the code word set CWC3 may be 2 14 = 16384 sets, and the fourth
Table 5 shows an example of the breakdown N 3 ′ (F, E) of 16384 code word sets CWC3 obtained by excluding 16645−16384 = 261 code word sets from the table.
第5表に示す符号語の組のうち、F=1なる符号語の組
にのみ0で始まる符号語の組があり、その個数はN3′
(1,E)/2である。したがって、第5表において1で始
まるF=1なる符号語の組はそれぞれ、N3′(1,0)/2
=2600,N3′(1,1)/2=3341である。 Of the code word sets shown in Table 5, only the code word set with F = 1 has a set of code words starting with 0, and the number is N 3 ′.
It is (1, E) / 2. Therefore, the set of code words F = 1 starting with 1 in Table 5 is N 3 ′ (1,0) / 2, respectively.
= 2600, N 3 ′ (1,1) / 2 = 3341.
第6表に、第5表に示す符号語の組から、符号語の組CW
C2,CWC3に共通な符号の組の選択例を示す。Table 6 shows the code word set CW from the code word set shown in Table 5.
An example of selecting a code set common to C2 and CWC3 is shown.
第6表において、ROM46,48の内容の項には、ディスパリ
ティーがAで、Lブロックを構成する2進値が1,Lブロ
ックにおける1の連続ビット数に関するパラメータの値
がF,Rブロックを構成する2進値がLB,Rブロックにおけ
るLBの連続ビット数に関するパラメータの値がEなる符
号語CW(A,F,E,LB)を記している。In Table 6, the disparity is A, the binary value constituting the L block is 1, and the parameter value relating to the number of consecutive bits of 1 in the L block is the F and R blocks in Table 6 in the contents of the ROMs 46 and 48. A code word CW (A, F, E, LB) whose binary value is LB, and whose parameter value relating to the number of consecutive bits of LB in the R block is E is shown.
たとえば、1で始まるF=2,E=0,LB=1なるディスパ
リティーAの符号語はCW(A,2,0,1)となる。なお、第
6表におけるディスパリティーA〜Hは互いに等しくし
ても、異っていてもよく、組み合わせた符号語のディス
パリティーが等しいことのみを表わしているだけであ
る。For example, the code word of disparity A starting from 1 and having F = 2, E = 0, and LB = 1 is CW (A, 2,0,1). It should be noted that the disparities A to H in Table 6 may be equal to or different from each other, and only represents that the disparities of the combined codewords are equal.
次に、残りの符号語のCWC2,CWC3にデータ語を対応さ
せ、第14図におけるROM46,48に記憶させるが、この場
合、異なる15ビットの入力に対して、同一の符号語が同
一のROM出力とならないようにすればよい。 Next, the data words are made to correspond to the remaining code words CWC2 and CWC3 and stored in the ROMs 46 and 48 in FIG. 14, but in this case, the same code word has the same ROM for different 15-bit inputs. It should not be output.
たとえば、第6表に示す共通の符号語の組に基づいて定
めた符号語の組CWC3とデータ語との対頓関係を第7表に
示す。For example, Table 7 shows the relationship between the codeword set CWC3 determined based on the common codeword set shown in Table 6 and the data word.
第7表における各記号の意味は第6表の場合と同じであ
り、符号語の組とデータ語の関係は、第6表におけるF
=1の符号語の組CWC3(F=1)に対応するデータ語を
0・X″・0とすると符号語の組CWC3(F=1)を構成
する符号語の裏パターンの符号語よりなる符号語の組 に対応するデータ語は1・X″・0である。The meaning of each symbol in Table 7 is the same as in Table 6, and the relationship between the code word set and the data word is F in Table 6.
When the data word corresponding to the code word set CWC3 (F = 1) of = 1 is 0 · X ″ · 0, the code word is composed of the code words of the back pattern of the code words forming the code word set CWC3 (F = 1). Codeword set The data word corresponding to is 1 · X ″ · 0.
一例として、第6表における符号語の組CW(D,1,1,0)
とCW(D,1,1,1)に対応するデータ語を0・(4458)・
0とすると、 にはデータ語1・(4458)・0を対応させる。As an example, the code word set CW (D, 1,1,0) in Table 6
And the data word corresponding to CW (D, 1,1,1) is 0 ・ (4458) ・
If 0, The data word 1 (4458) 0 is associated with.
一方、第6表における共通の符号語の組として用いてい
る22組の符号語の組CW(P,0,1,0),CW(P,0,1,1)を除
いた、2251組の符号語の組CCW3に属する符号語の組CW
(Q,0,1,0),CW(Q,0,1,1)には、2251語残っているLSB
=0のデータ語1(0〜1857)・0及び1・(7799〜81
91)・0を対応させる。 On the other hand, 2251 sets excluding 22 sets of codewords CW (P, 0,1,0) and CW (P, 0,1,1) used as common codeword sets in Table 6 Codeword set CW belonging to codeword set CW3
(Q, 0,1,0), CW (Q, 0,1,1) has 2251 remaining LSBs
= 0 data word 1 (0-1857), 0 and 1 (7799-81)
91) ・ Correspond to 0.
第6表、及び第7表に示したデータ語X′・0と符号語
の組CWC3との対応関係により、第5表に示した16384組
の符号語の組のすべてが、第14図におけるROM46,48の互
いに異なるX′・0なるアドレスに存在することにな
る。Due to the correspondence between the data word X ′ · 0 and the code word set CWC3 shown in Tables 6 and 7, all of the 16384 code word sets shown in Table 5 are shown in FIG. The ROMs 46 and 48 exist at different addresses X'.0.
一方、符号語の組CWC2に関しては、第6表に示す共通の
符号語の組の他に、0・X″・1なるデータ語に対応さ
せる符号語の組が残っている。On the other hand, with respect to the code word set CWC2, in addition to the common code word set shown in Table 6, there are remaining code word sets corresponding to the data words 0 · X ″ · 1.
ところで、第6表における1で始まるE=1の符号語の
組のうち、ROM48に記憶している符号語は、第1,第2表
に従って符号語を生成する場合には、グループを構成す
る符号語とはならない。By the way, the code words stored in the ROM 48 out of the set of code words of E = 1 starting with 1 in Table 6 constitute a group when the code words are generated according to Tables 1 and 2. It cannot be a codeword.
何故ならば、第1,2表において1で始まるE=1の符号
語はその裏パターンのみと組み合わせており、この裏パ
ターンの符号語は第9図における符号語生成回路2,3、
つまり第14図におけるROM46,48で直接生成するのではな
く、ROM46で生成する1で始まる符号語を後続で反転さ
せて得ている。したがって、第1,2表に従って符号語を
生成する場合には、E=1の符号語に関して第9図にお
けるS生成回路13は必ずniビット遅延回路10の出力を選
択するので、niビット遅延回路11の出力が何であって
も、スイッチ14の出力に影響はないからである。This is because the code word of E = 1 starting with 1 in Tables 1 and 2 is combined only with the back pattern, and the code word of this back pattern is the code word generation circuit 2, 3 in FIG.
That is, it is not directly generated by the ROMs 46 and 48 in FIG. 14, but is obtained by inverting the code word starting with 1 generated by the ROM 46 afterward. Therefore, when generating a code word in accordance with the first and second tables so selects the output of the S generation circuit 13 n i bit delay circuit 10 always in FIG. 9 with respect to the code words of E = 1, n i bit This is because whatever the output of the delay circuit 11, the output of the switch 14 is not affected.
以上のことから、第6表におけるROM48の内容の項に示
しているE=1の符号語を、ROM46の0・X″・1なる
アドレスに記憶させることができ、たとえば第8表のよ
うになる。From the above, the code word of E = 1 shown in the item of contents of ROM 48 in Table 6 can be stored in the address of ROM 46, 0 · X ″ · 1, as shown in Table 8 for example. Become.
同じく、第7表におけるROM48の内容の項に示している
E=1の符号語をROM46の1・X″・1なるアドレスに
記憶させることができ、たとえば第9表のようになる。Similarly, the code word of E = 1 shown in the section of contents of ROM 48 in Table 7 can be stored in the address of ROM 46 at 1 · X ″ · 1, as shown in Table 9 for example.
なお、1・X″・1なるアドレスは符号語の組CWC1にの
み関するので、ディスパリティーに関する制約はなく、
F=1なる0で始まる符号語の組もROM46の出力として
許されるので、第9表に示すデータ語と符号語の対応関
係には何ら問題はない。 Note that the address 1 · X ″ · 1 relates only to the codeword set CWC1, so there is no restriction on disparity.
Since a set of codewords starting from 0 with F = 1 is also allowed as the output of the ROM 46, there is no problem in the correspondence between the datawords and the codewords shown in Table 9.
なお、第8,9表における記号及び意味は第6,7表と同一で
あるが、第8表におけるアドレス0・X″・1(X″=
4458〜8191),及び第9表におけるアドレス1・Z″・
1(Z″=0〜1857,4458〜8191)に符号語が存在する
のはROM46のみであり、ROM48におけるこれらのアドレス
には符号語は存在しない。The symbols and meanings in Tables 8 and 9 are the same as those in Tables 6 and 7, but the address 0 · X ″ · 1 (X ″ =
4458-8191), and address 1 · Z ″ · in Table 9
1 (Z ″ = 0 to 1857, 4458 to 8191) has a code word only in the ROM 46, and these addresses in the ROM 48 have no code word.
以上の結果、対応する符号語の組、あるいは符号語が1
つも定まっていないROM46,48のアドレスは第6〜9表か
ら、0・X″・1(X″=0〜4457),1・Z″・1
(Z″=1858〜4457)であることがわかる。As a result, the corresponding codeword set or codeword is 1
The addresses of the ROMs 46 and 48 which have not been determined are 0, X ", 1 (X" = 0-4457), 1, Z ", 1 from Tables 6-9.
It can be seen that (Z ″ = 1858 to 4457).
なお、第6〜9表における符号語の組、及び符号語はす
べて、第3表に従って組み合わせた符号語の組のうちの
第5表に示す16384組に含まれる。It should be noted that all of the code word sets and the code words in Tables 6 to 9 are included in the 16384 sets shown in Table 5 among the code word sets combined according to Table 3.
第5表に示す16384組の符号語の組を構成する符号語に
関して、第1表に従って組み合わせた結果得られる符号
語の組CWC13の数N13=N3(0,0)+N3(1,0)+N3(2,
0)+2(N3(0,1)+N3(1,1)+N3(2,1))=25710
となる。この理由は、第5表におけるE=1の符号語の
組を構成する符号語をCWga,CWgbとすると、第1表に従
う限りにおいては、これらの符号語に異なるデータ語を
対応させることができることによる。The number of code word pairs CWC13 obtained as a result of combining the code words forming the 16384 code word groups shown in Table 5 according to Table 1 is N 13 = N 3 (0,0) + N 3 (1, 0) + N 3 (2,
0) + 2 (N 3 (0,1) + N 3 (1, 1) + N 3 (2, 1)) = 25710
Becomes The reason for this is that if the codewords forming the set of codewords of E = 1 in Table 5 are CW ga and CW gb , different datawords must be associated with these codewords as long as they follow Table 1. It depends on what you can do.
同じく、第5表に示す16384組の符号語の組を構成する
符号語に関して、第2表に従って組み合わせた結果得ら
れる符号語の組CWC23の数N23=N3(0,0)+2・N3(0,
1)+N3(1,0)/2+2・(N3(1,1)/2)+N3(2,0)+
2・N3(2,1)=16428となる。Similarly, the number of code word sets CWC23 obtained as a result of combining the code words forming the 16384 code word sets shown in Table 5 according to Table 2 is N 23 = N 3 (0,0) + 2 · N 3 (0,
1) + N 3 (1,0) / 2 + 2 ・ (N 3 (1,1) / 2) + N 3 (2,0) +
2 · N 3 (2,1) = 16428.
この理由は、第5表におけるF=1の符号語の組の半分
は0で始まるので、これらは符号語の組CWC2には含まれ
ないことと、先に示したように、第5表における1組の
E=1の符号語の組は、符号語の組CWC2において2組の
符号語になるためである。The reason for this is that since half of the F = 1 codeword sets in Table 5 begin with 0, they are not included in the codeword set CWC2. This is because one set of E = 1 codewords becomes two codewords in the codeword set CWC2.
これらのことから、符号語の組CWC2はN2−N23=5558組
が残っているので、0・X″・1(X″=0〜4457)に
対応するのに十分であり、符号語の組CWC1はN1−4458−
N13=4257組が残っているので、1・Z″・1(Z′=1
858〜4457)に十分対応できる。From these, the code word set CWC2 is sufficient to correspond to 0 · X ″ · 1 (X ″ = 0 to 4457) because N 2 −N 23 = 5558 sets remain. Set CWC1 is N 1 −4458−
Since N 13 = 4257 pairs remain, 1 · Z ″ · 1 (Z ′ = 1
858-4457).
なお、Rブロックにおける同一2進値の連続ビット数を
6以下、つまりE1の符号語の組だけを用いる場合に
おける符号語の組CWC1の数N1′=33295,符号語の組CWC2
の数N2′=21266となり、この場合にも0・X″・1
(X″=0〜4457)、1・Z″・1(Z″=1858〜445
7)に十分対応できる。It should be noted that the number of consecutive bits of the same binary value in the R block is 6 or less, that is, the number of code word sets CWC1 when only the code word sets of E1 are used N 1 ′ = 33295, code word set CWC2
The number N 2 ′ = 21266, and in this case also 0 · X ″ · 1
(X ″ = 0-4457), 1 · Z ″ · 1 (Z ″ = 1858 to 445)
It can cope with 7) enough.
以上示したように、本実施例により第1〜3表に示す3
種の符号語の組とデータ語の対応関係を1種類のROMで
実現できる。この結果、第12図におけるデータ語復号回
路36も1種類で済む。As shown above, 3 shown in Tables 1 to 3 according to this embodiment.
Correspondence between a set of different code words and data words can be realized by one kind of ROM. As a result, only one type of data word decoding circuit 36 in FIG. 12 is required.
さらに、E1の符号語のみを用いる場合にも1種類の
ROM符号語生成回路を構成できるので、データ語復号回
路も1種類となり、しかもこの場合は実施例をそのまま
適用でき、復号回路は第13図で実現できる。Furthermore, even when only the E1 codeword is used, one type of
Since the ROM code word generation circuit can be configured, the number of data word decoding circuits also becomes one, and in this case, the embodiment can be applied as it is, and the decoding circuit can be realized in FIG.
この結果、復号に要する総メモリー容量を約1.1Mビット
にできる。As a result, the total memory capacity required for decoding can be reduced to about 1.1 Mbits.
本実施例d=2,k=12,ni=22なるDCフリーRLL符号を例
に示したが、他のDCフリーRLL符号の場合にも拡張でき
ることは言うまでもなく、本実施例の場合と同様の効果
が得られる。Although the present embodiment d = 2, k = 12, n i = 22 consists DC-free RLL code shown in the example, it goes without saying that can be extended to the case of other DC-free RLL code, as in the present embodiment The effect of is obtained.
このように、本実施例の実用的効果は非常に大である。As described above, the practical effect of this embodiment is very large.
発明の効果 以上示したように、本発明は、g個の連続するRLL符号
を用いて構成するグループ単位にDSVに関する制御を行
うため、グループ長が長くなっても符号変換は各RLL符
号に対して行うので、符号変換に要するメモリー容量は
グループ長とは直接関係がなくなる。EFFECTS OF THE INVENTION As described above, according to the present invention, since DSV control is performed for each group configured by using g consecutive RLL codes, code conversion is performed on each RLL code even if the group length becomes long. The memory capacity required for code conversion is not directly related to the group length.
この結果、たとえば、従来のDCフリーRLL符号では回路
規模の非現実性により実現できなかったd=2,k=12,T
ω=0.667TなるDCフリーRLL符号を、現実的な回路規模
で実現した本発明の実用的効果は大きく、ディジタルVT
R等の超高密度記録に用いて好適なる結果が得られる。As a result, for example, d = 2, k = 12, T which could not be realized by the conventional DC-free RLL code due to the unrealistic circuit scale.
The DC-free RLL code of ω = 0.667T is realized on a realistic circuit scale, and the practical effect of the present invention is great.
Suitable results are obtained when used for ultra-high density recording such as R.
更に、本発明はd=2,k=12に限らず、任意のd,kに拡張
できる一般性を有するので、システムに最適なDCフリー
RLL符号を実現し得る符号変換装置を提供できる。Furthermore, the present invention is not limited to d = 2, k = 12, but has the generality of being able to be extended to any d, k, and therefore DC-free that is optimal for the system.
A code conversion device that can realize an RLL code can be provided.
第1図は本発明の一実施例におけるグループ接続回路の
ブロック図、第2図はグループの構成図、第3図はグル
ープどうしの接続図、第4図はグループどうしの接続則
の一例を示す説明図、第5図は符号語の構造図、第6図
は符号語どうしの接続図、第7図は符号語どうしの接続
則を表わす説明図、第8図はグループどうしの接続則を
表わす説明図、第9図はグループ生成回路のブロック
図、第10図はグループ生成回路のタイミングチャート、
第11図はグループ接続回路のタイミングチャート、第12
図は復号回路の一般的なブロック図、第13図は復号回路
の詳細なブロック図、第14図は符号語生成回路のブロッ
ク図、第15図は従来の符号変換回路のブロック図、第16
図は従来の復号回路のブロック図である。 1……データ語生成回路、2,3……符号語生成回路、4,
5,12,18,25,32,34,38……保持回路、6……Y生成回
路、7,37……カウンタ、10,11……niビット遅延回路、1
3……S生成回路、14,31……スイッチ、15……グループ
生成回路、16……GDP演算回路、17……GP生成回路、19
……DV生成回路、20……GI生成回路、21……選択回路、
22……加算器、23,27……1グループ遅延回路、26……S
g生成回路、29,30……ngビット遅延回路、35,50,54……
シリアル−パラレル変換器、36……データ語復号回路、
39……F=1検出回路、41……遅延回路、43,44……仮
復号回路、45……最終復号回路、46,48,51,52,55……RO
M、47,49……パラレル−シリアル変換器。FIG. 1 is a block diagram of a group connection circuit according to an embodiment of the present invention, FIG. 2 is a block diagram of groups, FIG. 3 is a connection diagram of groups, and FIG. 4 is an example of connection rules of groups. Explanatory diagram, FIG. 5 is a structural diagram of code words, FIG. 6 is a connection diagram of code words, FIG. 7 is an explanatory diagram showing a connection rule of code words, and FIG. 8 is a connection rule of groups. Explanatory diagram, FIG. 9 is a block diagram of the group generation circuit, FIG. 10 is a timing chart of the group generation circuit,
FIG. 11 is a timing chart of the group connection circuit,
The figure is a general block diagram of a decoding circuit, Fig. 13 is a detailed block diagram of a decoding circuit, Fig. 14 is a block diagram of a codeword generation circuit, Fig. 15 is a block diagram of a conventional code conversion circuit, and 16th.
The figure is a block diagram of a conventional decoding circuit. 1 ... Data word generation circuit, 2, 3 ... Code word generation circuit, 4,
5,12,18,25,32,34,38 …… Holding circuit, 6 …… Y generation circuit, 7,37 …… Counter, 10,11 …… n i bit delay circuit, 1
3 ... S generation circuit, 14,31 ... Switch, 15 ... Group generation circuit, 16 ... GDP arithmetic circuit, 17 ... GP generation circuit, 19
...... DV generation circuit, 20 …… GI generation circuit, 21 …… Selection circuit,
22 …… Adder, 23,27 …… 1 group delay circuit, 26 …… S
g generation circuit, 29,30 …… n g- bit delay circuit, 35,50,54 ……
Serial-parallel converter, 36 ... Data word decoding circuit,
39 ... F = 1 detection circuit, 41 ... delay circuit, 43,44 ... temporary decoding circuit, 45 ... final decoding circuit, 46,48,51,52,55 ... RO
M, 47, 49 ... Parallel-serial converter.
Claims (2)
変換して、変換後の符号語どうしの接続によって生じる
ビット列における、同一2進値の連続ビット数をd以上
k以下に制限すると共に、前記ビット列における“1"と
“0"の個数差DSVを有限に保つ符号変換装置において、
mビットのデータ語の入力とし、少なくともg個の当該
符号語を接続して得るビット列における同一2進数の連
続ビット数を、d以上k以下になるようにnビットの符
号語を出力するm/n符号変換手段と、前記m/n符号変換手
段の出力の連続するg個よりなる符号語グループ中の
“1"と“0"の個数差GDPを演算するグループディスパリ
ティ演算手段と、前記グループディスパリティ演算手段
の出力を累積演算するディジタルサムバリエーション演
算手段と、前記ディジタルサムバリエーション演算手段
に加えるグループディスパリティ演算手段の出力の極性
を、前記ディジタルサムバリエーション演算手段の出力
の極性と異なるように制御するグループディスパリティ
極性制御手段と、前記グループディスパリティ極性制御
手段で選択された極性に応じて、前記符号語グループに
おける“1"を“0"、“0"を“1"にすべて反転させるか反
転させないかを制御する符号語グループ反転制御手段
と、先行する符号語グループの最後の符号語と現在の符
号語グループの先頭の符号語を接続して得られるビット
列における、同一2進値の連続ビット数がd以上k以下
でないとき、前記先行する符号語グループの最後の符号
語を他の符号語に置換する符号語置換手段とを備えるこ
とを特徴とする符号変換装置。1. A m-bit data word is converted into an n-bit code word, and the number of consecutive bits of the same binary value in a bit string generated by connecting the converted code words is limited to d or more and k or less. At the same time, in the code conversion device that keeps the number difference DSV between “1” and “0” in the bit string finite,
An m-bit data word is input, and an n-bit code word is output so that the number of consecutive bits of the same binary number in a bit string obtained by connecting at least g relevant code words is d or more and k or less. n code conversion means, group disparity calculation means for calculating the number difference GDP between "1" and "0" in a group of g consecutive code words output from the m / n code conversion means, and the group The polarity of the output of the digital sum variation calculation means for cumulatively calculating the output of the disparity calculation means and the output of the group disparity calculation means added to the digital sum variation calculation means differ from the polarity of the output of the digital sum variation calculation means. The group disparity polarity control means for controlling and the polarity selected by the group disparity polarity control means. Then, the code word group inversion control means for controlling whether or not to invert all "1" s to "0" s and "0" s to "1" s in the code word group, and the last of the preceding code word group. When the number of consecutive bits of the same binary value in the bit string obtained by connecting the codeword and the first codeword of the current codeword group is not d or more and k or less, the last codeword of the preceding codeword group is set. A code conversion device comprising: a code word replacement unit that replaces with another code word.
変換して、変換後の符号語どうしの接続によって生じる
ビット列における、同一2進値の連続ビット数をd以上
k以下に制限すると共に、前記ビット列における“1"と
“0"の個数差DSVを有限に保つ符号変換装置において、
mビットのデータ語の入力とし、少なくともg個の当該
符号語を接続して得るビット列における同一2進値の連
続ビット数を、d以上k以下になるようにnビットの符
号語を出力するm/n符号変換手段と、前記m/n符号変換手
段の出力の連続するg個よりなる符号語グループ中の
“1"と“0"の個数差GDPを演算するグループディスパリ
ティ演算手段と、前記グループディスパリティ演算手段
の出力を累積演算するディジタルサムバリエーション演
算手段と、前記ディジタルサムバリエーション演算手段
に加えるグループディスパリティ演算手段の出力の極性
を、前記ディジタルサムバリエーション演算手段の出力
の極性と異なるように制御するグループディスパリティ
極性制御手段と、前記グループディスパリティ極性制御
手段で選択された極性に応じて、前記符号語グループに
おける“1"を“0"、“0"を“1"にすべて反転させるか反
転させないかを制御する符号語グループ反転制御手段
と、先行する符号語グループの最後の符号語と現在の符
号語グループの先頭の符号語を接続して得られるビット
列における、同一2進値の連続ビット数がd以上k以下
でないとき、前記先行する符号語グループの最後の符号
語を他の符号語に置換する符号語置換手段と、符号語置
換手段の出力に現われる制御を受けた符号語グループを
構成するg個の符号語の各々を複数に分割し、この分割
した部分のビットパターンを互いに区別できる値を出力
する仮復号手段と、前記仮復号手段の出力値に基づいて
前記g個の各符号語に対応するデータ語を復号する最終
復号手段とを備えることを特徴とする符号変換装置。2. An m-bit data word is converted into an n-bit code word, and the number of consecutive bits of the same binary value in a bit string generated by the connection of the converted code words is limited to d or more and k or less. At the same time, in the code conversion device that keeps the number difference DSV between “1” and “0” in the bit string finite,
An m-bit data word is input, and an n-bit code word is output so that the number of consecutive bits of the same binary value in a bit string obtained by connecting at least g relevant code words is d or more and k or less. / n code conversion means, group disparity calculation means for calculating a difference GDP between "1" and "0" in a group of g consecutive code words output from the m / n code conversion means, The polarity of the output of the digital sum variation calculation means for cumulatively calculating the output of the group disparity calculation means and the output of the group disparity calculation means added to the digital sum variation calculation means differ from the polarity of the output of the digital sum variation calculation means. Group disparity polarity control means that controls the group disparity polarity and the polarity selected by the group disparity polarity control means. Then, the code word group inversion control means for controlling whether or not to invert all "1" s to "0" s and "0" s to "1" s in the code word group, and the last of the preceding code word group. When the number of consecutive bits of the same binary value in the bit string obtained by connecting the codeword and the first codeword of the current codeword group is not d or more and k or less, the last codeword of the preceding codeword group is set. Each of the code word replacing means for replacing with another code word and each of the g code words forming the controlled code word group appearing in the output of the code word replacing means are divided into a plurality of bits, and the bits of the divided portion are divided. It is characterized by comprising provisional decoding means for outputting a value capable of distinguishing patterns from each other, and final decoding means for decoding a data word corresponding to each of the g number of code words based on the output value of the provisional decoding means. Code converter .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29677885A JPH0746479B2 (en) | 1985-12-27 | 1985-12-27 | Code converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP29677885A JPH0746479B2 (en) | 1985-12-27 | 1985-12-27 | Code converter |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62188073A JPS62188073A (en) | 1987-08-17 |
JPH0746479B2 true JPH0746479B2 (en) | 1995-05-17 |
Family
ID=17838008
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP29677885A Expired - Lifetime JPH0746479B2 (en) | 1985-12-27 | 1985-12-27 | Code converter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0746479B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20010041154A (en) | 1998-12-21 | 2001-05-15 | 요트.게.아. 롤페즈 | Device for encoding n-bit source words into corresponding m-bit channel words and decoding m-bit channel words into corresponding n-bit source words |
-
1985
- 1985-12-27 JP JP29677885A patent/JPH0746479B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPS62188073A (en) | 1987-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3590209B2 (en) | Modulation coding method | |
US4882583A (en) | Modified sliding block code for limiting error propagation | |
KR20000029826A (en) | System for implementing run length limited codes | |
JP2000332613A (en) | Modulation device and demodulation device | |
BG105877A (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 | |
JP2006209953A (en) | Data modulation method using short block encoder | |
US20090267811A1 (en) | Code design with decreased transition density and reduced running digital sum | |
JP4489973B2 (en) | Decoding to encode from n-bit source word to corresponding m-bit channel word and vice versa where the transform is parity inversion | |
JP2002280907A (en) | Modulation method, modulator, demodulation method, demodulator, information recording medium, information transmission method and information transmitter | |
JPH0746479B2 (en) | Code converter | |
WO1996032780A1 (en) | Device and method for converting/decoding code and recording medium | |
KR100727690B1 (en) | Apparatus for Implementing Extended Partial Response Maximum Probability (EPRML) Channel | |
JPH11154873A (en) | Encoding circuit, encoding method, digital signal transmission equipment, and digital magnetic recording device | |
JP2001244817A (en) | Encoding device | |
JP2003087121A (en) | Block coding/decoding method and apparatus for increasing code rate | |
JPH02265329A (en) | Code inverse converter | |
JP4059211B2 (en) | Demodulation method and demodulator | |
JP4059253B2 (en) | Modulation method, modulation device, and information recording medium | |
JPH06268526A (en) | Signal processing system | |
JPH02119434A (en) | Coding circuit and decoding circuit | |
JPS61145934A (en) | Decoder for run length limited code | |
JP3903989B2 (en) | Modulation method, demodulation method | |
JP4059210B2 (en) | Information recording medium | |
JPH0787383B2 (en) | Decoding device for run-length limited code | |
KR0185944B1 (en) | Method for coding using (1, 7) encoded code |