Information
-
Patent Application
-
20040088635
-
Publication Number
20040088635
-
Date Filed
August 15, 200321 years ago
-
Date Published
May 06, 200420 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
CIRC code decoding includes for each input frame a one-symbol delay operation of every second data symbol and the inversion of parity symbols, C1 word decoding, de-interleaving, C2 word decoding, and a two-symbol delay op-eration before output. The error correction capabilities can be improved if the C1 word decoding, de-interleaving and C2 word decoding are carried out twice (double pass operation) before the two-symbol delay operation and out-put. The invention allows double pass operation as well as sin-gle pass operation and uses a single memory with minimum capacity, wherein to three parts of the memory specific operations are assigned and wherein the memory is con-trolled in a special way.
Description
[0001] The invention relates to a method and to an apparatus for decoding CIRC (cross interleave Reed-Solomon code) error correction code, in particular a decoding with increased correction performance for burst errors or random errors in digital data read from an optical storage medium.
BACKGROUND
[0002] For example, an encoding process for CIRC code with a (28, 24) Reed-Solomon code (C2 code) is performed for twenty-four data symbols, with each symbol having a word length of eight bits. In typical audio applications each audio sample is represented by 16 bits. If above CIRC code is used for channel coding such digital audio signal, each sample can be represented by two 8-bit symbols. Thus each 8-bit symbol represents either the 8 MSBs or the 8 LSBs of one audio sample of one of the two channels of stereophonic audio data. These data symbols having a first state of arrangement are transformed to a second state of arrangement by an interleaving operation. The further encoding process of the (32, 28) Reed-Solomon code (C1 code word) is then executed for the 28 symbols that are now in the second arrangement state.
[0003]
FIG. 1 shows circuitry for the conventional CIRC code decoding of such RS code. The main processing steps in such CIRC decoder are:
[0004] a) Delaying every second incoming data symbol by one symbol in a stage 1SYMDEL, wherein some of the delayed symbols become inverted;
[0005] b) Decoding the RS code C1 (32, 28, 5) in a stage CLDEC, thereby correcting erroneous symbols;
[0006] c) De-interleaving in a stage UNEQDEL;
[0007] d) Decoding the RS code C2 (28, 24, 5) in a stage C2DEC, thereby correcting erroneous symbols;
[0008] e) Delaying some of the C2 decoded data symbols by two symbols in a stage 2SYMDEL.
[0009] Every 32 incoming data symbols form one frame and are supplied to circuit 1SYMDEL, in which the even numbered symbols only are delayed by one data symbol period, i.e. an amount of one frame. The 32 symbols output from circuit 1SYMDEL are supplied to a C1 decoder CLDEC, wherein the actual decoding of the (32, 28, 5) Reed-Solomon code (Cl code word) is executed and wherein up to two erroneous symbols in a C1 code word are corrected. In case three or more errors are detected in the C1 decoder, the C1 pointer (i.e. an erasure flag) is set for all data symbols in the current C1 code word.
[0010] The data symbols and erasure flags are further processed in the de-interleaving stage UNEQDEL that includes delay lines of unequal length. The output of stage UNEQDEL is supplied to a C2 decoder C2DEC. In the de-interleave stage UNEQDEL the erasure flag of each data symbol generated from the C1 decoder is de-interleaved in a manner similar to the de-interleaving of the data. Up to four errors can be corrected in the C2 decoder, using said C1 erasure flag. If correction of up to four errors has been performed, the C1 erasure flags will be cleared. If there are more than four errors, either the C1 erasure flag is copied into the C2 code word, or an erasure flag is set for all symbols of a C2 code word. The last stage in the CIRC decoding is a two-symbol delay 2SYMDEL.
[0011] Various conventional methods for CIRC code decoding have been published, for example in EP-A-0 497 593, U.S. Pat. No. 4,476,562, U.S. Pat. No. 4,497,058, U.S. Pat. No. 4,546,474, U.S. Pat. No. 5,276,674 and EP-A-0 156 440. In these conventional decoding methods error processing is performed according to the so-called erasure correction method, in which the location of the error symbol is indicated by pointer information and the necessary correction is performed on this error symbol. In the case of above-mentioned C1 and C2 code word, detection and correction of up to double errors can be performed, and if the error location is already known, correction of up to four erasures or errors can be performed. Therefore, in order to increase the error correction capability, it is preferable to perform the erasure correction method when decoding the error. Furthermore, the erasure correction method has been found to be effective particularly in correcting burst errors.
[0012] The conventional decoding methods like that depicted in FIG. 1 can not double process blocks of the CIRC code, which would improve the error correction capabilities. To provide this additional feature one can either spend additional circuitry for a conventional CIRC decoder, or modify a conventional CIRC decoder.
[0013] In EP-A-0 278 383 a decoding method has been published that uses the conventional decoding method, i.e. a conventional CIRC decoder, but allows double processing of the CIRC code. In ‘double processing’, the C1 decoding and the C2 decoding are executed twice in a specific order: the C1 code word are supplied to a C1 decoder in which the actual decoding of the (32, 28) Reed-Solomon code is executed. Correction of up to two errors is possible. If three or more errors are detected in the C1 decoder, a C1 pointer is set for all symbols in the C1 code word. The corrected data and the C1 error pointers are further processed in a de-interleaving stage. The output of the de-interleaving stage is supplied to a C2 decoder in which erasure correction of up to four erasures is executed using the C1 pointer or pointers. Upon completion of the erasure correction in the C2 decoder, the C1 poin-ter/s is/are cleared and no pointer information is transferred to the second C2 decoding cycle. During the second cycle the data from the C2 decoder is supplied to an interleaver that returns the data in the original reproduction order. Thereafter starts the second decoding cycle, which repeats the first decoding cycle. Therefore the double processing of the CIRC code is achieved using an additional interleaving stage.
[0014] In U.S. Pat. No. 4,637,021 a decoding method is described that performs double processing of the CIRC code, but no single pass processing is possible. Error detection and correction are effected by the processing of blocks of data bytes, using a C1 decoder and a C2 decoder. In order to maximise the speed at which the data is processed, the C1 and C2 decoders operate concurrently on data stored in a system memory, wherein the C1 decoder operates on corresponding data prior to the C2 decoder. Error processing of up to double-error correction is executed in the first C1 decoding stage, and double-error correction is executed in the C2 decoding stage by referring to pointer information that is derived from the C1 decoding stage. The C1 pointer information is not used to increase the error correction capability of the error correction system but to check the quality of the decoding pro-cess.
[0015] The sequence of data bytes read by the C1 and C2 decoders from the system memory is as follows: The first C1 decoder processes a C1 block of data symbol bytes (32 bytes). The first C2 decoder then processes a C2 block of data bytes (28 bytes) that has been processed already by the C1 decoder. This concludes the first pass. A second C1 decoder processes data bytes that have been processed already by the first pass, and a second C2 decoder processes data bytes that have been processed already by the first pass and the second C1 decoder. This concludes the second pass. A decoder cycle comprises the execution of both, the first pass and the second pass. Upon termination of each decoder cycle, the address counter is incremented, and a further decoding cycle is carried out.
[0016] New data is written into the system memory immediately after data symbol (C1 block) input into the input buffer is ready. Thus, in operation, the reading of the four decoders continually advances through the system memory until all available data has been processed.
[0017] For the de-interleaver implementation and for data controlling a different method is used. The de-interleaver block is implemented into the memory. It has 256*32 bytes and consists of two blocks, a C1 block having 128*32 bytes and a C2 block having 128*32 bytes. The C1 block is addressed from row 112 to 239. The C2 block is addressed from row 240 to row 255 and then from row 0 to row 111. The memory is circular. The first C1 decoder processes a C1 block of 32 data bytes and is initially positioned for reading the C1 block at address 112. In each succeeding decoder cycle (i.e. execution of two passes by both, the C1 decoder and the C2 decoder) the C1 decoder is positioned for, and reads, the C1 block at the next successive higher address. Thus, for the second cycle the C1 block is positioned at memory address position 113. The first C2 decoder processes a C2 block of 28 data bytes and is initially positioned for reading the C2 block at memory address 0. The bytes comprising a C2 block lie along a diagonal line in the two-dimensional memory space. In successive decoding cycles the bytes comprising a C2 block are changed. The second C1 decoder is initially positioned for reading the C1 block at memory address 240 and the second C2 decoder is initially positioned for reading the C2 block at memory address 113. The executions of the four decoding passes do continually advance through the memory. As long as unprocessed data is still in memory, the decoding cycles will be continued. If all data in the memory has been corrected, the operation of the error correction system is completed.
INVENTION
[0018] However, CIRC code decoding according to the teaching given in U.S. Pat. No. 4,637,021 has some disadvantages:
[0019] a) The one-symbol delay operation and the inversion of parity symbols in a frame is performed using additional circuitry;
[0020] b) The two-symbol delay operation is performed using additional circuitry;
[0021] c) The memory requires 256 banks, each bank consisting of 32 bytes, with their associated erasure flag. Thus, the memory capacity is significantly higher than that of two CIRC blocks, of which each block comprises 109 banks only;
[0022] d) Single pass operation of the CIRC decoder is not possible.
[0023] A problem to be solved by the invention is to provide a CIRC code decoding that allows double pass operation as well as single pass operation, avoids unnecessary additional circuitry and requires a minimum memory capacity only. This problem is solved by the method disclosed in claim 1.
[0024] An apparatus that utilises this method is disclosed in claim 6.
[0025] The appropriately delayed C1 code words are supplied to a C1 decoder in which the actual decoding of the (32, 28) Reed-Solomon code is executed. Correction of up to two errors is possible. If three or more errors are detected in the C1 decoder, a C1 pointer is set for all symbols in the C1 code word. The corrected data and the C1 error pointers are further processed in a de-interleaving stage. The output of the de-interleaving stage is supplied to a C2 decoder, in which erasure correction of up to four erasures is executed using the C1 pointer or pointers. Thereafter starts, if desired, the second decoding cycle, which repeats above first decoding cycle. Thereby e.g. 28 preliminarily corrected output words of the first-pass C2 decoding stored in the memory, together with the e.g. four parity bits or words (or corresponding error correction bits) still stored in the memory, form the e.g. 32 input data symbols for the second-pass C1 decoding. Thereby ‘double processing’ of the CIRC code is achieved.
[0026] According to the invention, the one-symbol and the two-sym-bol delay operations of the CIRC code decoding and the avai-lability of double as well as single pass CIRC code decoding are achieved by a special controlling and addressing of the memory. Advantageously, no additional hardware is required, and a reduced capacity of the memory is sufficient.
[0027] For double pass decoding, all data bytes in the memory are corrected twice using a single decoder. For the de-interlea-ver implementation, a smaller memory size of 218*32 is used instead of 256*32 like in the above-mentioned decoding method (218 corresponds to the above mentioned two-fold CIRC block length). The invention uses the erasure correction method of the RS code. The correction of a large burst error of corrupted C1 code words is very effective in case of low input error rate, if each C1 code word contains up to 6 random errors.
[0028] In principle, the inventive method is suited for decoding error correction code, e.g. CIRC code, including the steps:
[0029] storing a current frame of coded data symbols including error correction bits into a first part of a memory;
[0030] writing said current frame of data symbols, thereby delaying part of the data symbols by one data symbol period, into a second part of said memory, these data symbols then representing a C1 code word;
[0031] reading said C1 code word from said memory, carrying out on said C1 code word a C1 decoding including a first error correction, and writing the corrected C1 code word into said second part of said memory;
[0032] reading said corrected C1 code word from said memory, carrying out on said corrected C1 code word a de-interleaving and a C2 decoding including a second error correction or an erasure correction;
[0033] storing the resulting corrected C2 code word into a third part of said memory;
[0034] reading said corrected C2 code word from said third part of said memory, delaying part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part of said memory;
[0035] outputting the corrected data symbols of the current frame from said third part of said memory,
[0036] or the steps:
[0037] storing a current frame of coded data symbols including error correction bits into a first part of a memory;
[0038] writing said current frame of data symbols, thereby delaying part of the data symbols by one data symbol period, into a second part of said memory, these data symbols then representing a C1 code word;
[0039] reading said C1 code word from said memory, carrying out on said C1 code word a preliminary C1 decoding including a first preliminary error correction, and writing the preliminarily corrected C1 code word into said second part of said memory;
[0040] reading said preliminarily corrected C1 code word from said memory, carrying out on said preliminarily corrected C1 code word a de-interleaving and a preliminary C2 decoding including a second preliminary error correction or a preliminary erasure correction, and writing the resulting preliminarily corrected C2 code word into said second part of said memory;
[0041] reading said preliminarily corrected C2 code word from said memory, carrying out on said preliminarily corrected C2 code word together with the required ones of said error correction bits a further C1 decoding including a first error correction, and writing the further corrected C1 code word into said second part of said memory;
[0042] reading said further corrected C1 code word from said memory, carrying out on said further corrected C1 code word a de-interleaving and a further C2 decoding including a second error correction or an erasure correction;
[0043] storing the resulting further corrected C2 code word into a third part of said memory;
[0044] reading said corrected C2 code word from said third part of said memory, delaying part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part of said memory;
[0045] outputting the corrected data symbols of the current frame from said third part of said memory.
[0046] Advantageous additional embodiments of the inventive method are disclosed in the respective dependent claims.
[0047] In principle the inventive apparatus for decoding error correction code, e.g. CIRC code, includes:
[0048] an RS decoder;
[0049] a memory into a first part of which a current frame of coded data symbols including error correction bits is stored;
[0050] a controller controlling the writing of said current frame of data symbols, thereby delaying part of the data symbols by one data symbol period, into a second part of said memory, these data symbols then representing a C1 code word, wherein said controller further controls:
[0051] reading said C1 code word from said memory, carrying out in said RS decoder on said C1 code word a C1 decoding inclu-ding a first error correction, and writing the corrected C1 code word into said second part of said memory;
[0052] reading said corrected C1 code word from said memory, carrying out on said corrected C1 code word a de-interleaving and in said RS decoder a C2 decoding including a second error correction or an erasure correction;
[0053] storing the resulting corrected C2 code word into a third part of said memory;
[0054] reading said corrected C2 code word from said third part of said memory, delaying part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part of said memory;
[0055] means for outputting the corrected data symbols of the current frame from said third part of said memory,
[0056] or includes:
[0057] a single RS decoder;
[0058] a memory into a first part of which a current frame of coded data symbols including error correction bits is stored;
[0059] a controller controlling the writing of said current frame of data symbols, thereby delaying part of the data symbols by one data symbol period, into a second part of said memory, these data symbols then representing a C1 code word, wherein said controller further controls:
[0060] reading said C1 code word from said memory, carrying out in said RS decoder on said C1 code word a preliminary C1 decoding including a first preliminary error correction, and writing the preliminarily corrected C1 code word into said second part of said memory;
[0061] reading said preliminarily corrected C1 code word from said memory, carrying out on said preliminarily corrected C1 code word a de-interleaving and in said RS decoder a preli-minary C2 decoding including a second preliminary error correction or a preliminary erasure correction, and writing the resulting preliminarily corrected C2 code word into said second part of said memory;
[0062] reading said preliminarily corrected C2 code word from said memory, carrying out in said RS decoder on said preli-minarily corrected C2 code word together with the required ones of said error correction bits a further C1 decoding including a first error correction, and writing the further corrected C1 code word into said second part of said memory;
[0063] reading said further corrected C1 code word from said memory, carrying out on said further corrected C1 code word a de-interleaving and in said RS decoder a further C2 decoding including a second error correction or an erasure correction;
[0064] storing the resulting corrected C2 code word into a third part of said memory;
[0065] reading said corrected C2 code word from said third part of said memory, delaying part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part of said memory;
[0066] means for outputting the corrected data symbols of the current frame from said third part of said memory.
[0067] Advantageous additional embodiments of the inventive apparatus are disclosed in the respective dependent claims.
DRAWINGS
[0068] Exemplary embodiments of the invention are described with reference to the accompanying drawings, which show in:
[0069]
FIG. 1 functional block diagram of a conventional CIRC code decoder;
[0070]
FIG. 2 block diagram of an inventive CIRC code decoder for double and single pass operation;
[0071]
FIG. 3 flow chart for the CIRC code decoding, for double as well as single pass operation;
[0072]
FIG. 4 one-symbol delay data flow in the M1 memory that is part of the RAM in FIG. 2;
[0073]
FIG. 5 circuitry for calculating address values for the M1 memory;
[0074]
FIG. 6 memory M2, that is part of the RAM in FIG. 2, and the start positions of the c2—1 and c2—2 decoders and the assembling of a C2 code word from different banks of the M2 memory;
[0075]
FIG. 7 circuitry for calculating address values for the M2 memory;
[0076]
FIG. 8 data flow in the M3 memory during the two-symbol delay operation in the CIRC code decoding;
[0077]
FIG. 9 correction results for a conventional and for the inventive CIRC code decoding.
EXEMPLARY EMBODIMENTS
[0078]
FIG. 2 shows the main components of the inventive CIRC code decoder, wherein D represents a data line or data bus and A represents an address line or address bus. Double and single pass operation is implemented in this architecture.
[0079] A data stream acq_d coming from an acquisition stage is stored into an input logic inp_log that is capable of storing 32 symbols. This input logic also receives a next-frame start signal nxf and a byte clock bc. If a sufficient amount of data is available in a buffer of the input logic, a complete frame is stored into a M1 part of a RAM memory. The decoder device includes a conventional RS decoder RSDEC wherein the above-mentioned erasure correction method for RS code is implemented. RSDEC is capable of correcting up to four erasures or up to two errors, or any combinations of errors and erasures according to the condition 2*t+E<d, wherein t is the number of errors in a code word and E is the number of erasures and d is the Hamming distance of the RS code, e.g. d=5 for audio compact disc applications.
[0080] Determining and addressing locations in the memory RAM, the transfer of data or data bytes to or from the RAM, the one-symbol and two-symbol delay operations, the de-interleaving operation, and read and write operations are performed using a controller CONTR. The memory RAM includes for instance 224 banks, each of which includes 32 bytes with their associated erasure flag. The memory includes three parts:
[0081] the M1 part (e.g. banks 218-220) is used for the one-sym-bol delay operation;
[0082] the M2 part (e.g. banks 0-217) is used for the de-interleaving operation;
[0083] the M3 part (e.g. banks 221-223) is used for the two-sym-bol delay operation.
[0084] RSDEC receives the required data from, and sends respective data to the corresponding parts of memory RAM. Following the above-described two-symbol delay operation, in each case 24 data bytes together with their associated erasure flags are loaded from the M3 part of memory RAM into an output logic out_log, that outputs the error corrected data aud_D and may also output a frame start information fr_strt and a byte clock bc.
[0085] As shown in FIG. 3, the first operations in the CIRC decoder in flow block 31 are the initialisation of controller CONTR, the setting of memory RAM for double pass or single pass operation, and the reset of counters. Banks 0-217 of the M2 memory are used for double pass and banks 108-217 for single pass operation of the CIRC decoder. Two passes of C1 decoding and two passes of C2 decoding are executed in the double pass mode, and one pass of C1 decoding and one pass of C2 decoding in the single pass mode. In double pass operation, the c1—1 decoding (“—1” denotes the first pass) has its start position in bank 108, the c2—1 decoding has its start position in bank 0, the c1—2 decoding (“—2” denotes the second pass) has its start position in bank 217, the c2—2 decoding has its start position in bank 109. In single pass operation, the c1—1 decoding and the c2—1 decoding have their start positions at bank 108 and bank 0, respectively.
[0086] If a sufficient amount of data is available in the buffer of the input logic, a frame is stored into bank 218 of the M1 memory and the one-symbol delay operation is executed is as stated in step 32 and flow block 33.
[0087] As mentioned above, a frame of 32 symbols from the input logic inp_log is loaded into a corresponding bank (bank address bk_add_ml 218 in FIGS. 4a and 4c, 219 in FIG. 4b and 220 in FIG. 4c) of the M1 memory as depicted in FIG. 4. The arrow ‘wrt’ points in a rotating manner to that one of the bank addresses 218 to 220 into which the data are currently to be written.
[0088]
FIG. 5 shows the calculation of the address values bk_add_ml for the M1 memory part, and the basic address calculation for the M2 memory. The current M1 bank write address is calculated according to the formula
bk_add_m1_w=ofst_m1+count_m1_w ,
[0089] wherein the value count_m1_w stems from a write address counter count_m1_w and defines the M1 memory bank address for writing and ofst_m1 is a fixed offset having a value of ‘218’. If count_ml_w>2, counter count_ml_w is reset to zero.
[0090] A counter count_b has three outputs (one is not depicted in FIG. 5) and outputs the symbol address SYMADRBK in a bank, and an even or odd symbol ev/od for the M1 memory. This counter is normally clocked by the byte clock bc.
[0091] The M1 bank read addresses for the M1 memory depend on the value ‘0’ or ‘1’ of the even or odd symbol ev/od and are calculated according to the formulas:
bk
—
add
—
m
1—r—0=ofst_m1+count—m1—r even
bk
—
add
—
m
1—r1=ofst—m1+(count—m1—r+2)mod 3, odd
[0092] wherein the value count_m1_r stems from a read address counter count_m1_r. If count_m1_r>2, counter count_m1_r is reset to zero. If ev/od is ‘1’, i.e. odd, to the original counter value count_m1_r the value ‘2’ is added, and that result passes a modulo-3-circuit ‘mod3’ before being added to ofst_ml.
[0093] A symbol from the M1 memory is loaded into a temporal register TR. One byte of this symbol becomes inverted, except in case the output value SYMADRBK of counter count_b has a value of 12, 13, 14, 15, 28, 29, 30, or 31, cf. FIG. 1 C1DEC input. The correspondingly adapted count_b value is written via the tri-state data bus DBS into a bank of the M2 memory.
[0094] Delayed symbols are stored into the corresponding bank of the M2 memory, whereby e.g. ‘108’ is the start position in the M2 memory.
[0095] The M2 bank write address bk_add_m2_w is calculated according to the formula:
bk
—
add
—
m
2—w=(ofst_c1—1+count—m2—w)mod 218/109,
[0096] wherein ofst_c1—1 is an offset value according to the M2 start area in the memory that changes as described below, count_m2_w is the output value of a counter count_m2_w, and ‘mod 218/109’ denotes here and in the following ‘mod 218’ in case of double pass operation and ‘mod 109’ in case of single pass operation, and is the function of a corresponding modulo circuit. If count_m2_w>mod (218/109−1), counter count_m2_w is reset to zero.
[0097] The different address values bk_add_m1, bk add_m2_w and SYMADRBK are output via an address bus ADRBS at different time periods. Address values bk_add_m1 and SYMADRBK represent two parts of a common address value.
[0098] The counters count_ml_w, count_ml_r and count_m2_w are clocked by next-frame signal nxf. Counter count_b is clocked by the byte clock bc and counts from 0 to 31. The data flow in the M1 memory is repeated after three nxf signals, i.e. FIG. 4a and FIG. 4d are identical with respect to the M1 part.
[0099] The first pass operation of the C1 decoder is executed (see block 34 in FIG. 3) after a one-symbol delay operation. A C1 code word is read from the M2 memory to the syndrome generator of the RS decoder. Decoding and correction of a C1 code word is performed and a corrected code word is stored into the M2 memory.
[0100] The C1 bank address during the read and write operations is calculated according to the formula:
bk
—
add
—
c
1—fp=(ofst—c1—1+count—rsd)mod 218/109,
[0101] wherein ofst_c1—1 has a fixed value of 108 and the output value of a process counter count_rsd (not depicted in FIG. 5) defines the number of a process in the CIRC decoder.
[0102] The double pass operation of the of CIRC decoder includes the following steps, wherein each of the steps increments the process counter:
[0103] a) c1—1 decoding, correction;
[0104] b) de-interleaving for c2—1 decoder;
[0105] c) c2—1 decoding, correction;
[0106] d) c1—2 decoding, correction;
[0107] e) de-interleaving for c2—2 decoder;
[0108] f) c2—2 decoding, correction.
[0109] Each data symbol of the incoming CIRC encoded data is handled two times.
[0110] The single pass operation of the CIRC decoder includes the following steps:
[0111] a) c1—1 decoding, correction;
[0112] b) de-interleaving for c2—1 decoder;
[0113] c) c2—1 decoding, correction.
[0114] The size of the M2 memory is 218*32*9. M2 has two halves. FIG. 6a depicts the start positions of the c1—1, c1—2, c2—1 and c2—2 decoders in memory M2, and the assembling of a C2 code word from different banks of the M2 memory. The vertical position represents the memory bank address bk_add running from 0 to 217, and the horizontal position represents the symbol address sym_add running from 0 to 31. From symbol address 28 to 31 the parity part PARP of the C1 code words is arranged. The bank address offset values ofst_c1—1, ofst_c1—2, ofst_c2—1 and ofst_c2—2 for above processing steps are 108, 217, 0 and 109, respectively, and represent the start positions in the memory for a new frame.
[0115] New data is loaded from the M1 memory into banks 108 to 217 of the M2 memory (part 1) and handled by the c1—1 and c2—1 decoders. If the 109 banks have been used already by the c1—1 decoder, it continues with bank 0. The c1—2 and the c2—2 decoders handle old data in part 2 of the M2 memory.
[0116] As an alternative, the start positions 108 and 217, and 0 and 109 can be exchanged, i.e. the four processing sequences can start in the other memory half instead.
[0117] In the first pass, in each succeeding decoder cycle a corrected C1 word from the C1 decoder is written at the same bank address. The next C1 word from the M1 memory is written into the next successively higher bank address of the M2 memory. For example:
[0118] a) Write the C1 code word from the M1 memory into bank address #108 of the M2 memory;
[0119] b) Read this C1 code word from bank address #108 of the M2 memory and load it into the C1 decoder;
[0120] c) Write the corrected C1 code word from the C1 decoder into bank address #108 of the M2 memory;
[0121] d) Write the C1 code word from the M1 memory into bank address #109 of the M2 memory;
[0122] e) Read this C1 code word from bank address #109 of the M2 memory and load it into the C1 decoder;
[0123] f) Write the corrected C1 code word from the C1 decoder into bank address #109 of the M2 memory, and so on.
[0124] In the second pass, in each succeeding decoder cycle the input for the C1 decoder is read from the next successively higher memory bank address. The corrected C1 code word is loaded into that same memory bank address. The symbols of a C2 code words lie along a diagonal line in the M2 memory space. In successive decoding cycles, the data symbols representing a C2 code word are changed. The initial data symbol for writing a C2 code word is at memory bank address 0 and at data symbol address 0. After the first pass, a corrected C2 code word is loaded into the same position (memory bank address, data symbol address). After the second pass, a corrected C2 code word is loaded into the M3 memory.
[0125]
FIG. 7 illustrates in detail the calculation of address values for the M2 memory part. Advantageously, counter count_b can be used for different counting purposes and defines a symbol address in the current bank. A count mode signal cnt_mod coming from controller CONTR in FIG. 2 defines the current pass of the RS decoder and the corresponding count mode of counter count_b:
[0126] a) count_mode=00 C1 decoder, first pass;
[0127] b) count_mode=01 C2 decoder, first pass;
[0128] c) count_mode=10 C1 decoder, second pass;
[0129] d) count_mode=11 C2 decoder, second pass.
[0130] During the C1 processing count_b runs from zero up to 32, whereas during the C2 processing count_b runs from zero up to 28. During these time periods counter count_b is not clocked by the byte clock bc, but by the increment +1sym_add of the symbol address.
[0131] A multiplexer mux4 having four inputs selects a bank address bk_add_c1_fp at input 1 upon cnt_mod =00 (fp means first pass). A de-interleaved C1 code word is transformed into a C2 code word, and the first pass of the C2 decoder is executed (block 35 in FIG. 3). A C2 code word is written into the syndrome generator of the RS decoder. Decoding and correction of the C2 code word is performed and a corrected code word is stored into the M2 memory.
[0132]
FIG. 6
b
depicts the assembling of a C2 code word from different banks of the M2 memory. The first line shows bank address numbers and the second line the corresponding symbol address numbers in the memory bank. The 28 bank addresses required during the read/write operations are calculated according to the formula:
bk
—
add
—
c
2—fp=(ofst—c2—1+count—rsd+4*count—b) mod 218/109,
[0133] wherein count_b defines the symbol address in the current bank address.
[0134] Multiplexer mux4 selects a bank address bk_add_c2_fp at input 2 upon cnt_mod=01. The second pass of the C1 decoder, or the C2 decoder is executed, depending on double pass operation mode of the CIRC decoder (c2—1 decoder, block 37 in FIG. 3) being switched on or off. A C1 code word is read from the M2 memory and loaded into the syndrome generator of RS decoder. Decoding and correction of a C1 code word is performed and a corrected code word is stored into the M2 memory. The bank address during the read/write operations is calculated according to the formula:
bk
—
add
—
c
1—sp=(ofst—c1—2+count—rsd)mod 218/109.
[0135] Multiplexer mux4 selects a bank address bk_add_c1_sp at input 3 upon cnt_mod=10 (sp means second pass). A deinter-leaved C1 code word is transformed into a C2 code word, and the second pass of the C2 decoder is executed (c2—1 decoder, block 38 in FIG. 3). A C2 code word is written into the syndrome generator of the RS decoder. Decoding and correction of a C2 code word is performed, and a corrected code word is stored into the M2 memory. The 28 bank addresses required during the read/write operations are calculated according to the formula:
bk
—
add
—
c
2—sp=(ofst—c2—2+count—rsd+4*count—b)mod 218/109
[0136] Multiplexer mux4 selects a bank address bk_add_c2_sp at input 4 upon cnt_mod=11. A C2 code word is also stored into the m3 memory depend on double or single pass of CIRC deco-der. The following rules in ‘C’ notation describe the read/ write addressing in the M2 and M3 memories.
1|
|
If(single pass) {
for(count_b=0; count_b<28; + +count_b) {
bk_add_c2_fp = (ofst_c2_1 + count_rsd + 4 times ac-
cumu-
lated count_b) mod
109;
M3[ofst_m3] [count_b] = M2[bk + add_c2_fp] [count_b];
}
} else if(double pass) {
for(count_b=0; count_b<28; + +count_b) {
bk_add_c2_sp = (ofst_c2_2 + count_rsd + 4 times ac-
cumu-
lated count_b) mod
218;
M3[ofst_m3] [count_b] = M2[bk + add_c2_sp] [count_b];
}
|
[0137] Instead of multiplying count_b by factor 4, the current value count_b is accumulated four times in order to save a multiplier.
[0138] The counter count_rsd is clocked by a next-process signal +1proc. In single pass operation the counter is reset if count_rsd >mod 108, whereas in double pass operation the counter is reset if count_rsd >mod 217.
[0139] A first output of counter count_b delivers the symbol address SYMADRBK in a bank. SYMADRBK is transferred together with the output of mux4 via address bus ADRBS. A further output signal bk_add_m2 of this counter, stating the bank address in M2, is combined in an adder with a delayed output signal of this adder, which output signal for the purpose of delaying is intermediately stored in a temporal register TR1. The adder output signal passes through an AND gate to a further adder that receives the output signal of count_rsd as its second input signal. The second input of the AND gate receives logic value ‘1’ if count_rsd has the value ‘01’ or ‘11’, else logic value ‘0’.
[0140] The output signal of the further adder passes through a mod 218/109 stage to the first input of four adders. The first one of these four adders receives at its second input an offset value ofst_c1—1=108, and provides its output signal to input 1 of mux4. The second, third and fourth one of these four adders receives at its second input an offset value ofst_c2—1=0, ofst_c1—2=217, ofst_c2—2=109, respectively, and provides its output signal to input 2, 3, or 4 of mux4, respectively.
[0141] If performing the double pass operation of the CIRC decoder, the two-symbol delay operation (block 39 in FIG. 3) is performed after the second pass operation of the C2 decoder.
[0142] If performing the single pass operation of the CIRC decoder, the two-symbol delay operation (block 39 in FIG. 3) is performed after the first pass operation of the C2 decoder.
[0143]
FIG. 8 illustrates the data flow within the M3 memory part during the two-symbol delay operation in the CIRC decoder, wherein the M3 memory includes three banks: bk—221, bk—222 and bk—223. After C2 decoding and correction, data m2mem from the M2 memory is loaded into bank bk—221. The two-sym-bol delay task includes two steps:
[0144] a) Reading the delayed data and transferring it to the output logic out_log;
[0145] b) Overwriting the M3 memory.
[0146] The following first table can be used to generate the addresses during the first step.
2|
|
count_b01234567891011
bank221221221221223223223223221221221221
sym add016745672389
|
count_b121314151617181920212223
bank223223223223221221221221223223223223
sym add1213141545101120212223
|
In this table are:
a) ‘count_b’ -> count value of the counter;
b) ‘bank’ -> bank_address ‘bk’ in the RAM;
c) ‘sym_add’ -> symbol address in a bank.
[0147] The following second table can be used to generate the read/ write addresses during the second pass or step. ‘bank_r’ is the bank_address ‘bk’ in the RAM for reading, whereas ‘bank_w’ is the bank_address ‘bk’ in the RAM for writing.
3|
|
count_b01234567891011
bank_r222222222222221221221221222222222222
sym_add45671617222312131415
bank_w223223223223222222222222223223223223
sym_add4567456712131415
|
count_b121314151617181920212223
bank_r221221221221222222222222221221221221
sym_add181924252021222320212627
bank_w222222222222223223223223222222222222
sym_add121314152021222320212223
|
[0148] Output data OPLOG from ‘bk—223’ are provided to output logic ‘out_log’. The counters of controller CONTR are updated following step 39 of the flow diagram in FIG. 3, and the CIRC decoder is then ready to process the next frame coming from the input logic.
[0149] The flagged bytes rate FLGBR vs. input error rate IPERRR results of a conventional and of the inventive double pass CIRC decoder are depicted in FIG. 9. The correction results of a conventional CIRC decoder CCIRCDEC are shown by solid lines, and the correction results of the inventive CIRC decoder NCIRCDEC by dashed lines. Each curve is constructed from four different input error rate measurements. The following error combinations were input for the correction:
[0150] a) Burst ‘brst’ error of 20 C1 code words ‘cdw’ having 3 errors in each C1 code word.
[0151] Here, and in the following error patterns, the “errors in each C1 code word” are random errors.
[0152] b) Burst error of 20 C1 code words having 4 errors in each C1 code word.
[0153] c) Burst error of 20 C1 code words having 5 errors in each C1 code word.
[0154] d) Burst error of 20 C1 code words having 6 errors in each C1 code word.
[0155] e) Burst error of 30 C1 code words having 3 errors in each C1 code word.
[0156] f) Burst error of 30 C1 code words having 4 errors in each C1 code word.
[0157] g) Burst error of 30 C1 code words having 5 errors in each C1 code word.
[0158] h) Burst error of 30 C1 code words having 6 errors in each C1 code word.
[0159] i) Burst error of 40 C1 code words having 3 errors in each C1 code word.
[0160] j) Burst error of 40 C1 code words having 4 errors in each C1 code word.
[0161] k) Burst error of 40 C1 code words having 5 errors in each C1 code word.
[0162] l) Burst error of 40 C1 code words having 6 errors in each C1 code word.
[0163] The inventive CIRC decoder and a conventional CIRC decoder can correct burst errors of 14 completely corrupted C1 code words.
[0164] It is apparent that, compared with a conventional CIRC decoder, the inventive CIRC decoder is able to correct burst errors of 20 C1 code words having 3 or 4 errors in each code word. In case each code word having 5 and 6 errors, the decoder is not able to correct the burst error, but the flagged byte rate FLGBR of the audio data is still significantly lower than with a conventional CIRC decoder. Better correcting performance is also obtained with ‘30 C1 code word’ burst errors. The inventive CIRC decoder is able to correct burst errors of 30 C1 code words having three errors in each code word, and the flagged byte rate FLGBR is also lower for higher error numbers per code word.
[0165] The invention can be also be applied to other digital storage media like Video CD and CD-ROM, and to the decoding of code similar to CIRC code.
Claims
- 1. Method for decoding (inp_log, RSDEC, out_log, CONTR, RAM) error correction code, e.g. CIRC code, characterised by the steps:
storing a current frame of coded data symbols including error correction bits into a first part (M1) of a memory (RAM); writing (33) said current frame of data symbols, thereby delaying (1SYMDEL) part of the data symbols by one data symbol period, into a second part (M2) of said memory, these data symbols then representing a C1 code word; reading (34) said C1 code word from said memory, carrying out on said C1 code word a C1 decoding (CLDEC) including a first error correction, and writing the corrected C1 code word into said second part (M2) of said memory; reading (35) said corrected C1 code word from said memory, carrying out on said corrected C1 code word a de-interleaving (UNEQDEL) and a C2 decoding (C2DEC) including a second error correction or an erasure correction; storing the resulting corrected C2 code word into a third part (M3) of said memory; reading (39) said c6rrected C2 code word from said third part (M3) of said memory, delaying (2SYMDEL) part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part (M3) of said memory; outputting (out_log) the corrected data symbols of the current frame from said third part (M3) of said memory.
- 2. Method for decoding (inp_log, RSDEC, out_log, CONTR, RAM) error correction code, e.g. CIRC code, characterised by the steps:
storing a current frame of coded data symbols including error correction bits into a first part (M1) of a memory (RAM); writing (33) said current frame of data symbols, thereby delaying (1SYMDEL) part of the data symbols by one data symbol period, into a second part (M2) of said memory, these data symbols then representing a C1 code word; reading (34) said C1 code word from said memory, carrying out on said C1 code word a preliminary C1 decoding (CLDEC) including a first preliminary error correction, and writing the preliminarily corrected C1 code word into said second part (M2) of said memory; reading (35) said preliminarily corrected C1 code word from said memory, carrying out on said preliminarily corrected C1 code word a de-interleaving (UNEQDEL) and a preliminary C2 decoding (C2DEC) including a second preliminary error correction or a preliminary erasure correction, and writing the resulting preliminarily corrected C2 code word into said second part (M2) of said memory; reading (37) said preliminarily corrected C2 code word from said memory, carrying out on said preliminarily corrected C2 code word together with the required ones of said error correction bits a further C1 decoding (C1DEC) including a first error correction, and writing the further corrected C1 code word into said second part (M2) of said memory; reading (38) said further corrected C1 code word from said memory, carrying out on said further corrected C1 code word a de-interleaving (UNEQDEL) and a further C2 decoding (C2DEC) including a second error correction or an erasure correction; storing the resulting further corrected C2 code word into a third part (M3) of said memory; reading (39) said corrected C2 code word from said third part (M3) of said memory, delaying (2SYMDEL) part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part (M3) of said memory; outputting (out_log) the corrected data symbols of the current frame from said third part (M3) of said memory.
- 3. Method according to claim 1 or 2, wherein said first part (M1) of a said memory (RAM) consists of a first number—e.g. three—of banks (bk), into which banks each succeeding frame of data symbols is written in a rotational manner.
- 4. Method according to one of claims 1 to 3, wherein said second part (M2) of said memory (RAM) consists of a second number of banks (bk), which number is twice that of the number of banks of the blocks of said error correction code, and which second part (M2) of said memory is used for said de-interleaving.
- 5. Method according to one of claims 1 to 4, wherein said third part (M3) of a said memory (RAM) consists of a third number—e.g. three—of banks (bk).
- 6. Apparatus for decoding (inp_log, RSDEC, out_log, CONTR, RAM) error correction code, e.g. CIRC code, said apparatus including:
an RS decoder (RSDEC); a memory (RAM) into a first part (Ml) of which a current frame of coded data symbols including error correction bits is stored; a controller (CONTR) controlling the writing (33) of said current frame of data symbols, thereby delaying (1SYMDEL) part of the data symbols by one data symbol period, into a second part (M2) of said memory, these data symbols then representing a C1 code word, wherein said controller (CONTR) further controls:
reading (34) said C1 code word from said memory, carrying out in said RS decoder on said C1 code word a C1 decoding (CLDEC) including a first error correction, and writing the corrected C1 code word into said second part (M2) of said memory; reading (35) said corrected C1 code word from said memory, carrying out on said corrected C1 code word a de-interleaving (UNEQDEL) and in said RS decoder a C2 decoding (C2DEC) including a second error correction or an erasure correction; storing the resulting corrected C2 code word into a third part (M3) of said memory; reading (39) said corrected C2 code word from-said third part (M3) of said memory, delaying (2SYMDEL) part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part (M3) of said memory; means (out_log) for outputting the corrected data symbols of the current frame from said third part (M3) of said memory.
- 7. Apparatus for decoding (inp_log, RSDEC, out_log, CONTR, RAM) error correction code, e.g. CIRC code, said apparatus including:
a single RS decoder (RSDEC); a memory (RAM) into a first part (M1) of which a current frame of coded data symbols including error correction bits is stored; a controller (CONTR) controlling the writing (33) of said current frame of data symbols, thereby delaying (1SYMDEL) part of the data symbols by one data symbol period, into a second part (M2) of said memory, these data symbols then representing a C1 code word, wherein said controller (CONTR) further controls:
reading (34) said C1 code word from said memory, carrying out in said RS decoder on said C1 code word a preliminary C1 decoding (CLDEC) including a first preliminary error correction, and writing the preliminarily corrected C1 code word into said second part (M2) of said memory; reading (35) said preliminarily corrected C1 code word from said memory, carrying out on said preliminarily corrected C1 code word a de-interleaving (UNEQDEL) and in said RS decoder a preliminary C2 decoding (C2DEC) including a second preliminary error correction or a preliminary erasure correction, and writing the resulting preliminarily corrected C2 code word into said second part (M2) of said memory; reading (37) said preliminarily corrected C2 code word from said memory, carrying out in said RS decoder on said preliminarily corrected C2 code word together with the required ones of said error correction bits a further C1 decoding (C1DEC) including a first error correction, and writing the further corrected C1 code word into said second part (M2) of said memory; reading (38) said further corrected C1 code word from said memory, carrying out on said further corrected C1 code word a de-interleaving (UNEQDEL) and in said RS decoder a further C2 decoding (C2DEC) including a second error correction or an erasure correction; storing the resulting corrected C2 code word into a third part (M3) of said memory; reading (39) said corrected C2 code word from said third part (M3) of said memory, delaying (2SYMDEL) part of the code word data symbols by two data symbol periods, and writing the resulting corrected data symbols into said third part (M3) of said memory; means (out_log) for outputting the corrected data symbols of the current frame from said third part (M3) of said memory.
- 8. Apparatus according to claim 6 or 7, wherein said first part (M1) of a said memory (RAM) consists of a first number—e.g. three—of banks (bk), into which banks each succeeding frame of data symbols is written in a rotational manner.
- 9. Apparatus according to one of claims 6 to 8, wherein said second part (M2) of said memory (RAM) consists of a second number of banks (bk), which number is twice that of the number of banks of the blocks of said error correction code, and which second part (M2) of said memory is used for said de-interleaving.
- 10. Apparatus according to one of claims 6 to 9, wherein said third part (M3) of a said memory (RAM) consists of a third number—e.g. three—of banks (bk).
Priority Claims (1)
Number |
Date |
Country |
Kind |
01103804.9 |
Feb 2001 |
EP |
|
PCT Information
Filing Document |
Filing Date |
Country |
Kind |
PCT/EP02/01105 |
2/4/2002 |
WO |
|