1. Field of the Invention
The present invention relates to a circuit and a method for encoding data, and a data recorder. In particular, the present invention is suitably used when error correction codes are added by product encoding of row (PI) and column (PO) directions.
2. Description of the Related Art
When data is recorded on a digital versatile disk (DVD), an error correction code is added for each ECC block. This error correction is carried out by using product codes. Error correction codes of row (PI) and column (PO) directions are added to data of one ECC block spread in the memory.
The PO code corresponding to each column of a PI code area is stored in an overlapped portion of the PI and PO code areas. This is a case where processing of the PO direction is executed after processing of the PI direction. Conversely, however, even when the processing of the PI direction is executed after the processing of the PO direction, because of product code characteristics, the overlapped portion of the PI and PO code areas exhibits the same error correction operation.
In the conventional error correction encoding circuit 100 shown in
Then, data are read line by line from the memory 101 to the PI arithmetic operation circuit 104, and a PI code is calculated for each line. The obtained PI code is added to its corresponding data to be written in the memory 101 (
Accordingly, after the ECC block has been constituted, data is read for each line, and output to a modulation circuit 200 (
Incidentally, in the error correction encoding circuit 100 shown in
On the other hand, a relation with a DVD standard requires 11.08 Mbps as user data transfer rate during recording when data is recorded at a speed multiplied by 1. This is expressed to be 0.6925 Mword/S by a word (16 bits) unit.
In the error correction encoding circuit 100 shown in
CL1=6.5×0.6925=4.5 MHz (1)
This clock frequency is in the case of recording at a speed multiplied by 1. When the speed is multiplied by 16, a clock frequency CL16 is represented by the following equation.
CL16=4.5×16=72 MHz (2)
Further, when an overhead of memory access is estimated to be about 1.3 to 1.5, a clock frequency is represented by the following equation.
CL16=94 to 108 MHz (3)
In reality, memory access in addition to the process (1) to (8) is required. Accordingly, an operation clock of the memory must be much higher.
However, the memory of such a high clock frequency is expensive. Thus, a cost problem occurs when the memory is mounted on a DVD recorder or the like. Additionally, the high operation clock frequency of the memory brings about a problem with an increase in power consumption of the memory. On the other hand, if the operation clock frequency of the memory is reduced, encoding is not finished in time, causing a fear of losing real-timeness of the recording operation.
JP 2001-298371 A describes a technology of reducing the number of times of accessing a memory by simultaneously performing PI and PO arithmetic operations.
The present invention has been made to solve the problems, and an object of the present invention is to secure real-timeness of a recording operation even with a memory of a low operation clock frequency by reducing the number of times of accessing the memory, and to simultaneously allow reduction in power consumption and in memory costs.
According to a first aspect of the present invention, there is provided a data encoding circuit including: an EDC arithmetic operation unit for adding an error detection code to data; a scrambling arithmetic operation unit for scrambling the data to which the error detection code has been added by the EDC arithmetic operation unit; a PI arithmetic operation unit for adding an error correction code of a PI direction to the data scrambled by the scrambling arithmetic operation unit; a PO arithmetic operation unit for adding an error correction code of a PO direction to the data scrambled by the scrambling arithmetic operation unit; and a memory for writing/reading data in accordance with an operation clock, in which data from a host is input to the EDC arithmetic operation unit and the scrambling arithmetic operation unit to be processed before writing of the data in the memory, and then error correction codes are added to the data written from the scrambling unit in the memory by the PI arithmetic operation unit and the PO arithmetic operation unit.
According to a second aspect of the present invention, there is provided a method of encoding data, including: an EDC arithmetic operation step of adding an error detection code to data; a scrambling arithmetic operation step of scrambling the data to which the error detection code has been added in the EDC arithmetic operation step; a PI arithmetic operation step of adding an error correction code of a PI direction to the data scrambled in the scrambling arithmetic operation step; a PO arithmetic operation step of adding an error correction code of a PO direction to the data scrambled in the scrambling arithmetic operation step; a step of processing data from a host in the EDC arithmetic operation step and the scrambling arithmetic operation step; a step of writing the processed date in a memory; and a step of adding error correction codes to the data written in the memory in the PI arithmetic operation step and the PO arithmetic operation step.
According to a third aspect of the present invention, there is provided a data recorder equipped with a data encoding circuit for adding an error correction code to recorded data, the data encoding circuit including: an EDC arithmetic operation unit for adding an error detection code to data; a scrambling arithmetic operation-unit for scrambling the data to which the error detection code has been added by the EDC arithmetic operation unit; a PI arithmetic operation unit for adding an error correction code of a PI direction to the data scrambled by the scrambling arithmetic operation unit; a PO arithmetic operation unit for adding an error correction code of a PO direction to the data scrambled by the scrambling arithmetic operation unit; and a memory for writing/reading data in accordance with an operation clock, in which data from a host is input to the EDC arithmetic operation unit and the scrambling arithmetic operation unit to be processed before writing of the data in the memory, and then error correction codes are added to the data written from the scrambling unit in the memory by the PI arithmetic operation unit and the PO arithmetic operation unit.
According to each aspect of the present invention, prior to its writing in the memory, the data from the host is input to the EDC arithmetic operation unit and the scrambling arithmetic operation unit to be processed, and then the error correction codes are added to the data written in the memory from the scrambling arithmetic operation unit by the PI arithmetic operation unit and the PO arithmetic operation unit. Accordingly, it is possible to omit memory access when the data is written from the host in the memory, and memory access when the data is read from the memory to the EDC arithmetic operation unit. Thus, it is possible to reduce an operation clock frequency of the memory.
For example, if the present invention is applied to a DVD recorder, in accordance with the equations (1) to (3), in the case of a speed multiplied by 1, the operation clock frequency of the memory is represented as follows.
CL1=4.5×0.6925=3.11 MHz
In the case of a speed multiplied by 16, the operation clock frequency is represented as follows.
CL16=3.11×16=50 MHz
Further, when an overhead of memory access is estimated to be 1.3 to 1.5, the operation clock frequency is represented as follows.
CL16=65 to 75 MHz
The above, other objects and novel features of the present invention will become more completely apparent upon reading the following embodiments in conjunction with the accompanying drawings, wherein:
The embodiments of the present invention will be described with reference to the accompanying drawings. The embodiments show configuration examples when the present invention is applied to a DVD recorder.
A memory 101 includes an SDRAM or the like. A PI arithmetic operation circuit 104 calculates and adds an error correction code of a PI direction (row direction) to scrambled data. A PO arithmetic operation circuit 105 calculates and adds an error correction code of a PO direction (column direction) to the scrambled data. An EDC arithmetic operation circuit 110 calculates and adds an error detection code to the data. A scrambling arithmetic operation circuit 111 executes scrambling for the data to which the error detection code has been added. A modulation circuit 200 executes predetermined modulation for the input data to generate a recording signal. An optical pickup 300 applies a laser beam corresponding to the recording signal input from the modulation circuit 200 to write data in the optical disk.
According to this embodiment, recorded data is input from a host to the EDC arithmetic operation circuit 110. Each time data of one ECC block is input, the EDC arithmetic operation circuit 110 calculates and adds an error detection code to the data and outputs this data to the scrambling arithmetic operation circuit 111. The scrambling arithmetic operation circuit 111 executes scrambling on the data of one ECC block input from the EDC arithmetic operation circuit 110, and sequentially writes the data in the memory 101.
When data of one sector (sector data) is input from the host to the EDC arithmetic operation circuit 110 (S101), a header containing a sector ID or the like is added to the sector data, followed by error detection code calculation (S102). The EDC code calculated here is added to the sector data and input to the scrambling arithmetic operation circuit 111 (S103). The scrambling arithmetic operation circuit 111 executes scrambling on the input sector data (S104). Then, the scrambled sector data is written in the memory 101 (S105). The process of steps S101 to S105 is repeated until the data of one ECC block has been written in the memory 101 (S106).
Thus, after the data of one ECC block has been written in the memory 101, then data of one line is read from the memory 101 to the PI arithmetic operation circuit 104 (S107). Then, the PI arithmetic operation circuit 104 executes on the data error correction code calculation (PI code calculation), and an obtained PI code is added to the data and written in the memory 101 (S108). This process is repeated until completion for data of all the lines (S109).
Then, data of one column is read from the memory 101 to the PO arithmetic operation circuit 105 (S110), and the PO arithmetic operation circuit 105 executes error correction code calculation (PO code calculation) on the data. An obtained PO code is added to the data and written in the memory 101 (S111). This process is repeated until completion for data of all the columns (including PI codes) (S112).
When ECC block data shown in
According to this embodiment, prior to its wiring in the memory 101, the data from the host is input to the EDC arithmetic operation circuit 110 and the scrambling arithmetic operation circuit 111 to be processed, and then the error correction codes are added to the data written from the scrambling arithmetic operation circuit 111 in the memory 101 by the PI arithmetic operation circuit 104 and PO arithmetic operation circuit 105. Thus, it is possible to omit memory access when the data is written from the host in the memory and memory access when the data is read from the memory to the EDC arithmetic operation circuit. As a result, it is possible to reduce an operation clock frequency of the memory 101.
By replacing the PI arithmetic operation circuit 104 with a PI arithmetic operation circuit 112 as described below, it is possible to further reduce the number of times of accessing the memory 101.
In the process of steps S101 to S106, after the data of one ECC block has been written in the memory 101, data of one column is first read from the memory 101 to the PO arithmetic operation circuit 105 (S120), and then at the PO arithmetic operation circuit 105, error correction code calculation (PO code calculation) on the data is executed. An obtained PO code is added to the data and written in the memory 101 (S121). This process is repeated until completion for data of all the columns (S122).
Then, data of one line is read from the memory 101 to the PI arithmetic operation circuit 112 (S123), and the PI arithmetic operation circuit 112 executes error correction code calculation (PI code calculation) on the data. An obtained PI code is added to the data and output to the modulation circuit 200 (S124). This process is repeated until completion for data of all the lines (S125).
According to this embodiment, as compared with Embodiment 1, it is possible to omit memory access when the data is read from the memory 101 to the modulation circuit 200 and memory access when the error correction code of the PI direction is written from the PI arithmetic operation circuit in the memory. As a result, it is possible to further reduce an operation clock frequency of the memory 101.
In addition, since PI codes are not written in the memory, the memory capacity that would be required for the PI codes can be saved. Alternatively, a free memory area created due to the fact that the PI codes are not written in the memory can be used as a work area for another process. In an ECC block including data of the rows and columns whose numbers are shown in
Hereinabove, description has been made of the present invention with reference to the embodiments. However, the present invention is not limited to the above-mentioned embodiments. The present invention can be modified variously as appropriate within the technical thoughts described in the scope of the claims appended hereto.
Number | Date | Country | Kind |
---|---|---|---|
2004-152518 (P) | May 2004 | JP | national |