[go: up one dir, main page]

JP2008010064A - Data coding circuit, data recorder, and pi/po arithmetic processing method - Google Patents

Data coding circuit, data recorder, and pi/po arithmetic processing method Download PDF

Info

Publication number
JP2008010064A
JP2008010064A JP2006179023A JP2006179023A JP2008010064A JP 2008010064 A JP2008010064 A JP 2008010064A JP 2006179023 A JP2006179023 A JP 2006179023A JP 2006179023 A JP2006179023 A JP 2006179023A JP 2008010064 A JP2008010064 A JP 2008010064A
Authority
JP
Japan
Prior art keywords
error correction
correction code
buffer
data
column
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006179023A
Other languages
Japanese (ja)
Inventor
Saneyuki Okamoto
実幸 岡本
Masato Fuma
正人 夫馬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2006179023A priority Critical patent/JP2008010064A/en
Publication of JP2008010064A publication Critical patent/JP2008010064A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Error Detection And Correction (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data coding circuit which accelerates processing by reducing the number of times of memory access for ECC processing. <P>SOLUTION: Sector data is scrambled by a scramble arithmetic circuit 105, thereafter written in a memory 101, and input to a PI arithmetic circuit 106 and a PO arithmetic circuit 107. The PI arithmetic circuit 106 carries out PI coding arithmetic processing to the sector data of one line each, writes the obtained PI code in a memory 101, and inputs it in the PO arithmetic circuit 107 simultaneously. The PO arithmetic circuit 107 reads a PO code stored in a buffer 108 already, sets a syndrome arithmetic formula for calculating the PO code from the PO code, input sector data and a PI code, calculates a PO code of each column, and writes it back in the buffer 108. When processing for an IECC block is finished, the PO code in the buffer 108 is written in the memory 101. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、データ符号化回路、データ記録装置およびPI/PO演算処理方法に関し、特に、行方向(PI方向)および列方向(PO方向)の積符号化処理によって誤り訂正符号を生成・付加する際に用いて好適なものである。   The present invention relates to a data encoding circuit, a data recording apparatus, and a PI / PO arithmetic processing method, and particularly generates and adds an error correction code by product encoding processing in a row direction (PI direction) and a column direction (PO direction). It is suitable for use.

通信、コンピュータ、放送、映像メディア等の分野においては、データの信頼性向上、さらには、記録システムにおける高記録密度化のために、一般に、エラー訂正符号が用いられている。特に、最近では、データ処理能力の向上に伴い、高度な訂正能力を有するエラー訂正符号が用いられるようになってきている。   In the fields of communication, computer, broadcasting, video media, etc., error correction codes are generally used to improve data reliability and to increase recording density in a recording system. In particular, recently, with the improvement of data processing capability, error correction codes having a high correction capability have been used.

高画質の映像を提供するDVD(Digital Versatile Disc)再生装置においても、訂正能力の高いリードソロモン(RS)積符号と呼ばれるエラー訂正符号が用いられ、伝送系で発生したエラーを訂正できるようになっている。   Even in a DVD (Digital Versatile Disc) playback device that provides high-quality video, an error correction code called a Reed-Solomon (RS) product code having a high correction capability is used, and an error generated in a transmission system can be corrected. ing.

積符号は、縦横の異なる方向のエラー訂正符号を組み合わせたもので、情報データブロックの横方向に対して付加された内符号のPI(Parity Inner)符号と、情報データブロックおよびPI符号からなるブロックの縦方向に対して付加された外符号のPO(Parity Outer)符号からなっている。これらPI符号およびPO符号を情報データブロックに付加して構成されたブロックがECCブロックである。   The product code is a combination of error correction codes in different vertical and horizontal directions. The inner code PI (Parity Inner) code added in the horizontal direction of the information data block, and a block consisting of the information data block and the PI code It is composed of an outer code PO (Parity Outer) code added in the vertical direction. A block formed by adding these PI code and PO code to an information data block is an ECC block.

図12に、DVD記録装置に適用されるECCブロックのデータ構造を示す。図示の如く、ECCブロックは、208行×181列のデータからなっており、192行目〜208行目と、172列目〜181列目には、それぞれPO符号とPI符号が付加される。このうち、PI符号は各行のセクタデータに付加され、PO符号は各列のセクタデータとPI符号にそれぞれ付加される。   FIG. 12 shows the data structure of an ECC block applied to the DVD recording apparatus. As shown in the figure, the ECC block is composed of data of 208 rows × 181 columns, and a PO code and a PI code are added to the 192nd to 208th rows and the 172nd to 181th columns, respectively. Of these, the PI code is added to the sector data of each row, and the PO code is added to the sector data and PI code of each column.

図13は、ホストからデータ符号化回路にデータが供給されてからディスクに記録されるまでの処理の流れを示す図である。ここでは、一般に、以下の手順に従って、処理が行われる。   FIG. 13 is a diagram showing the flow of processing from when data is supplied from the host to the data encoding circuit until it is recorded on the disk. Here, processing is generally performed according to the following procedure.

(1) ホスト側からメモリにデータが書き込まれる(図13(a)参照)。   (1) Data is written into the memory from the host side (see FIG. 13A).

(2) メモリからデータが読み出され、ヘッダとEDC(Error Detection Code)の付加処理が行われる(図13(b)参照)。さらに、ヘッダとEDCが付加されたデータに対してスクランブル処理が行われ(図13(c)参照)、スクランブル後のデータがメモリに書き戻される。   (2) Data is read from the memory, and header and EDC (Error Detection Code) addition processing is performed (see FIG. 13B). Further, scramble processing is performed on the data to which the header and EDC are added (see FIG. 13C), and the scrambled data is written back to the memory.

(3) ECC回路でPI符号が演算され、メモリに書き込まれる(図13(d)参照)。このとき、メモリに対して、行毎に、リードとライトが1回ずつ発生する。   (3) The PI code is calculated by the ECC circuit and written in the memory (see FIG. 13D). At this time, a read and a write occur once for each row in the memory.

(4) ECC回路でPO符号が演算され、メモリに書き込まれる(図13(e)参照)。このとき、メモリに対して、列毎に、リードとライトが1回ずつ発生する。   (4) The PO code is calculated by the ECC circuit and written in the memory (see FIG. 13E). At this time, a read and a write occur once for each column in the memory.

(5) メモリから行毎にデータが読み出され、変調回路に出力される(図13(f)参照)。変調回路は、入力されたデータを変調して記録信号を生成し、順次、記録系に出力する。記録系は、入力された記録信号に応じて、ディスクに対する書き込み動作を実行する。   (5) Data is read from the memory for each row and output to the modulation circuit (see FIG. 13F). The modulation circuit modulates the input data to generate a recording signal, and sequentially outputs it to the recording system. The recording system performs a writing operation on the disc in accordance with the input recording signal.

なお、DVD記録装置で必要となるECCエンコード処理、つまり、情報データに対してPI符号およびPO符号を生成・付加する際の処理として、たとえば、以下の特許文献1に記載の処理手法が知られている。
特開2002−93058号公報
For example, a processing method described in Patent Document 1 below is known as an ECC encoding process required for a DVD recording apparatus, that is, a process for generating and adding a PI code and PO code to information data. ing.
JP 2002-93058 A

DVD記録装置や、現在商品化が進められている次世代DVD記録装置では、既存のCD記録装置と同様、高速でディスクに記録を行う、いわゆる「高倍速記録」への対応が望まれている。こうした「高倍速記録」を装置側で実現するためには、書き込み処理時に行われるECCエンコード処理を高速化させる必要がある。この場合、特に、高速化についてボトルネックとなっているメモリ(一般的にはD−RAMまたはSDRAM)へのアクセス回数を如何に低減させるかが問題となる。   In DVD recording devices and next-generation DVD recording devices that are currently being commercialized, like existing CD recording devices, it is desired to cope with so-called “high-speed recording” in which recording is performed on a disk at high speed. . In order to realize such “high-speed recording” on the apparatus side, it is necessary to speed up the ECC encoding process performed during the writing process. In this case, in particular, the problem is how to reduce the number of accesses to the memory (generally D-RAM or SDRAM) which is a bottleneck for speeding up.

本発明は、このような状況を考慮してなされたものであり、ECC処理の際のメモリアクセス回数を低減させることにより処理の高速化を図り得るデータ符号化回路、データ記録装置およびPI/PO演算処理方法を提供することを課題とする。   The present invention has been made in view of such a situation, and a data encoding circuit, a data recording apparatus, and a PI / PO that can increase the processing speed by reducing the number of memory accesses during ECC processing. It is an object to provide an arithmetic processing method.

請求項1の発明は、データ符号化回路において、ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、前記スクランブル処理後のデータから行方向の誤り訂正符号を生成する行方向の誤り訂正符号演算部と、前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成する列方向の誤り訂正符号演算部と、前記列方向の誤り訂正符号演算部によって生成された列方向の誤り訂正符号を格納するバッファと、前記スクランブル後のデータと前記行方向の誤り訂正符号および列方向の誤り訂正符号を格納するメモリとを備え、前記列方向の誤り訂正符号演算部は、前記スクランブル演算部から前記スクランブル後のデータが入力され、あるいは、前記行方向の誤り訂正符号演算部から前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、前記列方向の誤り訂正符号演算部による演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記バッファに格納された後、該バッファから前記列方向の誤り訂正符号が読み出され、前記メモリに格納されることを特徴とする。   According to the first aspect of the present invention, in the data encoding circuit, a scramble operation unit that scrambles data input from the host, and a row direction error correction that generates a row direction error correction code from the scrambled data. Generated by a code calculation unit, a column-direction error correction code calculation unit that generates a column-direction error correction code from the scrambled data and the row-direction error correction code, and the column-direction error correction code calculation unit A buffer for storing the column-direction error correction code, and a memory for storing the scrambled data, the row-direction error correction code and the column-direction error correction code, and the column-direction error correction code calculation The unit receives the scrambled data from the scramble calculation unit, or from the error correction code calculation unit in the row direction. In response to the input of the error correction code in the row direction, the error correction code in the column direction stored in the buffer is read, and the read error correction code in the column direction and the input data or the row direction An error correction code in the column direction is newly generated from the error correction code of the column and written back to the buffer, and the error correction code in the column direction corresponding to the error correction unit is calculated by the calculation process by the error correction code calculation unit in the column direction. After being stored in the buffer, the error correction code in the column direction is read from the buffer and stored in the memory.

この発明によれば、ECCエンコード処理時におけるメモリへのアクセスが、(1)スクランブルデータの書き込み、(2)PI符号(行方向の誤り訂正符号)の書き込み、および、(3)PO符号(列方向の誤り訂正符号)の書き込みに抑制される。よって、上述した従来技術の場合に比べ、ECC処理の際のメモリアクセス回数を顕著に低減させることができ、よって、符号化処理の高速化を図ることができる。   According to the present invention, access to the memory during ECC encoding processing includes (1) writing scrambled data, (2) writing PI code (error correction code in the row direction), and (3) PO code (column Direction error correction code). Therefore, compared with the above-described conventional technique, the number of memory accesses during the ECC process can be remarkably reduced, and the speed of the encoding process can be increased.

請求項2の発明は、請求項1に記載のデータ符号化回路において、前記メモリには、変調回路への読み出し順に応じて、先頭アドレスから順次、前記データ、行方向の誤り訂正符号および列方向の誤り訂正符号の格納領域が設定され、前記バッファに格納された前記列方向の誤り訂正符号は、前記メモリ上の対応する列方向の誤り訂正符号の格納領域にそれぞれ格納されることを特徴とする。   According to a second aspect of the present invention, in the data encoding circuit according to the first aspect, in the memory, the data, the error correction code in the row direction, and the column direction are sequentially stored in the memory in accordance with the reading order to the modulation circuit. The error correction code storage area is set, and the column-direction error correction code stored in the buffer is stored in the corresponding column-direction error correction code storage area on the memory, respectively. To do.

この発明によれば、データをメモリから読み出して記録系に転送する際、マッピング領域の先頭アドレスから最終アドレスまで順次単調に1行ずつデータをメモリから読み出して、記録系に出力すればよい。よって、この発明によれば、請求項1の発明における効果に加え、さらに、データ読み出し時におけるメモリへのアクセス制御を単純化できるとの効果を奏することができる。   According to the present invention, when data is read from the memory and transferred to the recording system, the data is read out from the memory one line at a time in a monotonous manner from the start address to the final address of the mapping area and output to the recording system. Therefore, according to the present invention, in addition to the effect of the invention of claim 1, it is possible to achieve an effect that the access control to the memory at the time of data reading can be simplified.

請求項3の発明は、請求項1または2に記載のデータ符号化回路において、前記バッファは、第1のバッファと第2のバッファから構成され、前記列方向の誤り訂正符号演算部における演算処理時に使用されるバッファが、前記誤り訂正単位毎に、前記第1のバッファと前記第2のバッファの間で切り替えられ、これら2つのバッファのうち一方のバッファに格納された前記列方向の誤り訂正符号は、他方のバッファが前記列方向の誤り訂正符号演算部における演算処理時に使用されている期間において読み出され、前記メモリに格納されることを特徴とする。   According to a third aspect of the present invention, in the data encoding circuit according to the first or second aspect, the buffer includes a first buffer and a second buffer, and the arithmetic processing in the error correction code arithmetic unit in the column direction The buffer used sometimes is switched between the first buffer and the second buffer for each error correction unit, and the error correction in the column direction stored in one of the two buffers is performed. The code is read out during a period in which the other buffer is used during the calculation process in the error correction code calculation unit in the column direction, and is stored in the memory.

この発明によれば、メモリに対するPO符号(列方向の誤り訂正符号)の書き込み処理が、次のECCブロック(誤り訂正単位)に対するPO符号化処理期間において行われる。よって、各ECCブロックに対する符号化処理の所要時間は、メモリに対するPO符号の書き込み処理を行わない分だけ削減され得る。このため、この発明によれば、ホストからデータ符号化回路に対するデータ転送制御の円滑化を図ることができる。   According to the present invention, the writing process of the PO code (column direction error correction code) to the memory is performed in the PO encoding process period for the next ECC block (error correction unit). Therefore, the time required for the encoding process for each ECC block can be reduced by the amount that the PO code writing process for the memory is not performed. Therefore, according to the present invention, smooth data transfer control from the host to the data encoding circuit can be achieved.

請求項4の発明は、データ符号化回路において、ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、前記スクランブル処理後のデータから行方向の誤り訂正符号を生成する行方向の誤り訂正符号演算部と、前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成する列方向の誤り訂正符号演算部と、前記列方向の誤り訂正符号演算部によって生成された列方向の誤り訂正符号を格納するバッファと、前記スクランブル後のデータと前記行方向の誤り訂正符号を格納するメモリとを備え、前記列方向の誤り訂正符号演算部は、前記スクランブル演算部から前記スクランブル後のデータが入力され、あるいは、前記行方向の誤り訂正符号演算部から前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、前記列方向の誤り訂正符号演算部による演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記バッファに格納された後、前記メモリから1行ずつ前記データと前記行方向の誤り訂正符号が変調回路に出力され、且つ、当該出力の合間の前記列方向の誤り訂正符号の出力タイミングにおいて、該バッファから1行ずつ前記列方向の誤り訂正符号が読み出され、前記変調回路に出力されることを特徴とする。   According to a fourth aspect of the present invention, in the data encoding circuit, a scramble operation unit that scrambles data input from a host, and a row direction error correction that generates a row direction error correction code from the scrambled data. Generated by a code calculation unit, a column-direction error correction code calculation unit that generates a column-direction error correction code from the scrambled data and the row-direction error correction code, and the column-direction error correction code calculation unit A buffer for storing the error correction code in the column direction, a memory for storing the scrambled data and the error correction code in the row direction, and the error correction code calculation unit in the column direction includes the scramble calculation unit The scrambled data is input from the above, or the error correction code in the row direction is input from the error correction code calculation unit in the row direction. The column-direction error correction code stored in the buffer is read in response to the input, and a column is newly created from the read column-direction error correction code and the input data or row-direction error correction code. An error correction code in the direction is generated and written back to the buffer. After the error correction code in the column direction corresponding to the error correction unit is stored in the buffer in the calculation process by the error correction code calculation unit in the column direction, The data and the error correction code in the row direction are output from the memory to the modulation circuit one row at a time, and the column direction is output row by row from the buffer at the output timing of the error correction code in the column direction between the outputs. The error correction code is read out and output to the modulation circuit.

この発明によれば、ECCエンコード処理時におけるメモリへのアクセスが、(1)スクランブルデータの書き込み、および、(2)PI符号(行方向の誤り訂正符号)の書き込みに抑制される。よって、上記請求項1の発明に比べ、さらに、ECC処理の際のメモリアクセス回数を低減させることができ、よって、符号化処理の高速化を図ることができる。   According to the present invention, access to the memory during the ECC encoding process is suppressed to (1) writing scrambled data and (2) writing PI code (error correction code in the row direction). Therefore, compared with the first aspect of the invention, the number of memory accesses during the ECC process can be further reduced, and the speed of the encoding process can be increased.

加えて、この発明によれば、メモリに対してPO符号(列方向の誤り訂正符号)が書き込まれないため、上記請求項1の発明に比べ、PO符号の格納領域分だけメモリの記憶領域を削減することができ、メモリのサイズを減少させることができる。   In addition, according to the present invention, since the PO code (column-direction error correction code) is not written to the memory, the storage area of the memory is increased by the storage area of the PO code as compared to the invention of claim 1 above. Can be reduced, and the size of the memory can be reduced.

請求項5の発明は、データ符号化回路において、ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、前記スクランブル処理後のデータから行方向の誤り訂正符号を生成し、且つ、前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成するPI/PO演算部と、前記PI/PO演算部によって生成された行方向の誤り訂正符号を該行方向の誤り訂正符号に対応する前記データとともに格納するPI用バッファと、前記PI/PO演算部によって生成された列方向の誤り訂正符号を格納するPO用バッファと、前記スクランブル後のデータと前記行方向の誤り訂正符号および列方向の誤り訂正符号を格納するメモリとを備え、前記PI/PO演算部は、前記列方向の誤り訂正符号の演算処理の際、前記PI用バッファから前記データと前記行方向の誤り訂正符号を読み出すとともに、前記PO用バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した前記データおよび行方向の誤り訂正符号と前記列方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、前記PI/PO演算部によって前記列方向の誤り訂正符号の演算処理が行われた際に、前記PI用バッファから前記データと前記行方向の誤り訂正符号が読み出されて前記メモリに格納され、前記PI/PO演算部による列方向の誤り訂正符号の演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記PO用バッファに格納された後、該PO用バッファから前記列方向の誤り訂正符号が読み出され、前記メモリに格納されることを特徴とする。   According to a fifth aspect of the present invention, in the data encoding circuit, a scramble operation unit that scrambles data input from a host, a row direction error correction code is generated from the scrambled data, and the scramble A PI / PO operation unit that generates a column direction error correction code from the processed data and the row direction error correction code, and a row direction error correction code generated by the PI / PO operation unit A PI buffer that is stored together with the data corresponding to the error correction code, a PO buffer that stores the column-direction error correction code generated by the PI / PO calculation unit, the scrambled data, and the row-direction data A memory for storing an error correction code and an error correction code in a column direction, and the PI / PO operation unit performs error correction in the column direction In the arithmetic operation of the signal, the data and the row-direction error correction code are read from the PI buffer, the column-direction error correction code stored in the PO buffer is read, and the read data and An error correction code in the column direction is newly generated from the error correction code in the row direction and the error correction code in the column direction and written back to the buffer, and the PI / PO operation unit calculates the error correction code in the column direction. Is performed, the data and the row-direction error correction code are read from the PI buffer and stored in the memory, and the PI / PO operation unit calculates the column-direction error correction code. After the error correction code in the column direction for the error correction unit is stored in the PO buffer, the error correction code in the column direction is read from the PO buffer, Characterized in that it is stored in the serial memory.

この発明によれば、ECCエンコード処理時におけるメモリへのアクセスが、(1)スクランブルデータとPI符号(行方向の誤り訂正符号)の書き込み(PI用バッファからメモリへの転送)、および、(2)PO符号(列方向の誤り訂正符号)の書き込みに抑制される。よって、上述した従来技術の場合に比べ、ECC処理の際のメモリアクセス回数を顕著に低減させることができ、よって、符号化処理の高速化を図ることができる。   According to the present invention, access to the memory at the time of ECC encoding processing includes (1) writing scrambled data and PI code (error correction code in the row direction) (transfer from PI buffer to memory), and (2 ) It is suppressed to write PO code (error correction code in the column direction). Therefore, compared with the above-described conventional technique, the number of memory accesses during the ECC process can be remarkably reduced, and the speed of the encoding process can be increased.

加えて、この発明によれば、PI符号とPO符号の演算処理がPI/PO演算処理部を共用して行われるため、回路規模を削減でき、且つ、データ符号化回路における消費電力を抑制することができる。   In addition, according to the present invention, since the PI code and PO code arithmetic processing is performed in common with the PI / PO arithmetic processing unit, the circuit scale can be reduced and the power consumption in the data encoding circuit can be reduced. be able to.

請求項6の発明は、請求項5に記載のデータ符号化回路において、前記メモリには、変調回路への読み出し順に応じて、先頭アドレスから順次、前記データ、行方向の誤り訂正符号および列方向の誤り訂正符号の格納領域が設定され、前記PO用バッファに格納された前記列方向の誤り訂正符号は、前記メモリ上の対応する列方向の誤り訂正符号の格納領域にそれぞれ格納されることを特徴とする。   According to a sixth aspect of the present invention, in the data encoding circuit according to the fifth aspect, in the memory, the data, the error correction code in the row direction, and the column direction are sequentially stored in the memory in accordance with the reading order to the modulation circuit. The error correction code storage area is set, and the column-direction error correction code stored in the PO buffer is stored in the corresponding column-direction error correction code storage area on the memory, respectively. Features.

この発明によれば、請求項5の発明における効果に加え、さらに、上記請求項2と同様、データ読み出し時におけるメモリへのアクセス制御を単純化できるとの効果を奏することができる。   According to the present invention, in addition to the effect of the invention of claim 5, as in the case of claim 2, the effect of simplifying the access control to the memory at the time of data reading can be achieved.

請求項7の発明は、請求項5または6に記載のデータ符号化回路において、前記PO用バッファは、第1のバッファと第2のバッファから構成され、前記PI/PO演算回路における前記列方向の誤り訂正符号の演算処理時に使用されるバッファが、前記誤り訂正単位毎に、前記第1のバッファと前記第2のバッファの間で切り替えられ、これら2つのバッファのうち一方のバッファに格納された前記列方向の誤り訂正符号は、他方のバッファが前記PO演算回路における演算処理時に使用されている期間において読み出され、前記メモリに格納されることを特徴とする。   According to a seventh aspect of the present invention, in the data encoding circuit according to the fifth or sixth aspect, the PO buffer includes a first buffer and a second buffer, and the column direction in the PI / PO operation circuit The buffer used in the error correction code calculation process is switched between the first buffer and the second buffer for each error correction unit, and stored in one of these two buffers. Further, the error correction code in the column direction is read out and stored in the memory during a period in which the other buffer is used during arithmetic processing in the PO arithmetic circuit.

この発明によれば、上記請求項3の発明と同様、各ECCブロック(誤り訂正単位)に対する符号化処理の所要時間を削減することができ、このため、ホストからデータ符号化回路に対するデータ転送制御の円滑化を図ることができる。   According to the present invention, the time required for the encoding process for each ECC block (error correction unit) can be reduced as in the third aspect of the invention, and therefore, data transfer control from the host to the data encoding circuit is possible. Can be facilitated.

請求項8の発明は、データ符号化回路において、ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、前記スクランブル処理後のデータから行方向の誤り訂正符号と列方向の誤り訂正符号を生成するPI/PO演算部と、前記PI/PO演算部によって生成された行方向の誤り訂正符号を該行方向の誤り訂正符号に対応する前記データとともに格納するPI用バッファと、前記PI/PO演算部によって生成された列方向の誤り訂正符号を格納するPO用バッファと、前記スクランブル後のデータと前記行方向の誤り訂正符号を格納するメモリとを備え、前記PI/PO演算部は、前記列方向の誤り訂正符号の演算処理の際、前記PI用バッファから前記データと前記行方向の誤り訂正符号を読み出すとともに、前記PO用バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した前記データおよび行方向の誤り訂正符号と前記列方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、前記PI/PO演算部によって前記列方向の誤り訂正符号の演算処理が行われた際に、前記PI用バッファから前記データと前記行方向の誤り訂正符号が読み出されて前記メモリに格納され、前記PI/PO演算部による列方向の誤り訂正符号の演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記PO用バッファに格納された後、前記メモリから1行ずつ前記データと前記行方向の誤り訂正符号が変調回路に出力され、且つ、当該出力の合間の前記列方向の誤り訂正符号の出力タイミングにおいて、該PO用バッファから1行ずつ前記列方向の誤り訂正符号が読み出され、前記変調回路に出力されることを特徴とする。   According to an eighth aspect of the present invention, in the data encoding circuit, a scramble operation unit that scrambles the data input from the host, and an error correction code in the row direction and an error correction code in the column direction from the scrambled data. A PI / PO operation unit to be generated; a PI buffer for storing the error correction code in the row direction generated by the PI / PO operation unit together with the data corresponding to the error correction code in the row direction; and the PI / PO A PO buffer for storing a column-direction error correction code generated by the calculation unit; and a memory for storing the scrambled data and the row-direction error correction code, wherein the PI / PO calculation unit includes: During the calculation process of the error correction code in the column direction, the data and the error correction code in the row direction are read from the PI buffer, The column-direction error correction code stored in the PO buffer is read, and a new column-direction error correction code is generated from the read data, row-direction error correction code, and column-direction error correction code. When data is written back to the buffer and the column / direction error correction code is processed by the PI / PO operation unit, the data and the row direction error correction code are read from the PI buffer. After the error correction code corresponding to the error correction unit is stored in the PO buffer and is stored in the buffer for the error correction code in the column direction by the PI / PO operation unit. The data and the row-direction error correction code are output to the modulation circuit row by row, and at the output timing of the column-direction error correction code between the outputs, the PO Error correction code of the column line by line from the buffer is read out, characterized in that it is output to the modulation circuit.

この発明によれば、ECCエンコード処理時におけるメモリへのアクセスが、(1)スクランブルデータとPI符号(行方向の誤り訂正符号)の書き込み(PI用バッファからメモリへの転送)に抑制される。よって、上述した従来技術の場合に比べ、ECC処理の際のメモリアクセス回数を顕著に低減させることができ、よって、符号化処理の高速化を図ることができる。   According to the present invention, access to the memory during the ECC encoding process is suppressed by (1) writing of scrambled data and PI code (error correction code in the row direction) (transfer from the PI buffer to the memory). Therefore, compared with the above-described conventional technique, the number of memory accesses during the ECC process can be remarkably reduced, and the speed of the encoding process can be increased.

加えて、この発明によれば、PI符号とPO符号(列方向の誤り訂正符号)の演算処理がPI/PO演算処理部を共用して行われるため、回路規模を削減でき、且つ、データ符号化回路における消費電力を抑制することができる。   In addition, according to the present invention, since the PI code and PO code (column-direction error correction code) calculation processing is performed in common with the PI / PO calculation processing unit, the circuit scale can be reduced, and the data code Power consumption in the circuit can be suppressed.

さらに、この発明によれば、メモリに対してPO符号が書き込まれないため、上記請求項1の発明に比べ、PO符号の格納領域分だけメモリの記憶領域を削減することができ、メモリのサイズを減少させることができる。   Further, according to the present invention, since the PO code is not written to the memory, the memory area of the memory can be reduced by the storage area of the PO code as compared with the invention of claim 1 above, and the size of the memory can be reduced. Can be reduced.

請求項9の発明は、請求項1乃至8の何れか一項に記載のデータ符号化回路を備えるデータ記録装置である。   A ninth aspect of the present invention is a data recording apparatus comprising the data encoding circuit according to any one of the first to eighth aspects.

請求項10の発明は、PI/PO演算処理方法において、入力データから行方向の誤り訂正符号を生成し、生成した前記行方向の誤り訂正符号をメモリに書き込むとともに列方向の誤り訂正符号の演算に供するPI演算工程と、前記入力データと前記行方向の誤り訂正符号から前記列方向の誤り訂正符号を生成し、生成した前記列方向の誤り訂正符号をバッファに書き込むPO演算工程と、誤り訂正単位分の前記列方向の誤り訂正符号が前記バッファに格納された後、前記列方向の誤り訂正符号を前記バッファから読み出して前記メモリに書き込むPO書き込み工程とを備え、前記PO演算工程は、生成した前記列方向の誤り訂正符号をバッファに格納するとともに、前記データあるいは前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻すことを特徴とする。   According to a tenth aspect of the present invention, in the PI / PO calculation processing method, an error correction code in a row direction is generated from input data, the generated error correction code in the row direction is written in a memory, and an error correction code in the column direction is calculated. A PI operation step, a PO operation step of generating the column-direction error correction code from the input data and the row-direction error correction code, and writing the generated column-direction error correction code in a buffer; and error correction A PO writing step of reading the column-direction error correction code from the buffer and writing it into the memory after the unit-wise error correction code for a unit is stored in the buffer, The column direction error correction code is stored in a buffer, and the data or the row direction error correction code is input in response to the input. The column-direction error correction code stored in the buffer is read, and a new column-direction error correction code is generated from the read column-direction error correction code and the input data or row-direction error correction code. And writing back to the buffer.

この発明によれば、PI/PO演算処理時におけるメモリアクセス回数を顕著に抑制することができる。   According to the present invention, the number of memory accesses during PI / PO calculation processing can be remarkably suppressed.

なお、請求項1の発明は、以下に示す実施形態中、実施例1によって具現化されている。また、請求項2の発明は、以下に示す実施形態中、実施例2によって具現化されている。また、請求項3の発明は、以下に示す実施形態中、実施例4によって具現化されている。また、請求項4の発明は、以下に示す実施形態中、実施例3によって具現化されている。また、請求項5の発明は、以下に示す実施形態中、実施例5によって具現化されている。また、請求項6の発明は、以下に示す実施形態中、実施例5の構成に実施例2の構成を組み合わせることによって具現化されている。また、請求項7の発明は、以下に示す実施形態中、実施例5の構成に実施例4の構成を組み合わせることによって具現化されている。さらに、請求項8の発明は、以下に示す実施形態中、実施例5の構成に実施例3の構成を組み合わせることによって具現化されている。   In addition, invention of Claim 1 is embodied by Example 1 in embodiment shown below. Moreover, the invention of claim 2 is embodied by Example 2 in the following embodiments. Moreover, the invention of claim 3 is embodied by Example 4 in the following embodiments. Further, the invention of claim 4 is embodied by Example 3 in the following embodiments. Moreover, the invention of claim 5 is embodied by Example 5 in the following embodiments. The invention of claim 6 is embodied by combining the configuration of the second embodiment with the configuration of the fifth embodiment in the following embodiment. The invention of claim 7 is embodied by combining the configuration of the fourth embodiment with the configuration of the fifth embodiment in the following embodiment. Furthermore, the invention of claim 8 is embodied by combining the configuration of the third embodiment with the configuration of the fifth embodiment in the following embodiment.

ただし、以下の実施の形態は、あくまでも、本発明を実現する際の一つの例示形態であって、本発明ないし各構成要件の用語の意義は、以下の実施の形態に記載されたものに制限されるものではない。   However, the following embodiment is merely an exemplary form for realizing the present invention, and the meaning of the term of the present invention or each constituent element is limited to that described in the following embodiment. Is not to be done.

上記の如く本発明によれば、ECC処理の際のメモリアクセス回数を低減させることができ、これによりデータ符号化処理の高速化を図ることができる。   As described above, according to the present invention, it is possible to reduce the number of memory accesses during ECC processing, thereby speeding up data encoding processing.

本発明のその他の効果ないし意義は、以下に示す実施の形態の説明により更に明らかとなろう。ただし、本発明に特徴は、以下の実施形態によって何ら制限されるものではない。   Other effects and meanings of the present invention will become more apparent from the following description of embodiments. However, the features of the present invention are not limited by the following embodiments.

以下、本発明の実施の形態につき図面を参照して説明する。なお、本実施の形態は、DVD記録装置に本発明を適用した場合の構成例を示すものである。   Embodiments of the present invention will be described below with reference to the drawings. This embodiment shows a configuration example when the present invention is applied to a DVD recording apparatus.

図1に、実施例に係るディスク記録装置の構成を示す。   FIG. 1 shows a configuration of a disk recording apparatus according to the embodiment.

図において、101は、SDRAM等によって構成されたメモリ、102は、データに対しIDを付加するID付加回路、103は、ID付加回路102によって付加されたIDに対し誤り検出符号を演算して付加するIED演算回路である。なお、IDは、各セクタの論理アドレスである。IDとIEDは、上記図13(b)に示すヘッダの一部を構成する。   In the figure, 101 is a memory constituted by SDRAM or the like, 102 is an ID addition circuit for adding an ID to data, 103 is an error detection code added to the ID added by the ID addition circuit 102 and added. This is an IED arithmetic circuit. The ID is a logical address of each sector. The ID and IED constitute a part of the header shown in FIG.

104は、各セクタ内のデータに対し誤り検出符号を演算・付加するEDC演算回路、105は、各セクタ内のデータにスクランブル処理を施すスクランブル演算回路、106は、スクランブル処理されたデータに対しPI方向(行方向)の誤り訂正符号(PI符号)を演算・付加するPI演算回路、107は、スクランブル処理されたデータとPI符号に対しPO方向(列方向)の誤り訂正符号(PO符号)を演算・付加するPO演算回路、108は、PO演算回路107における演算処理結果(PO符号)を格納するバッファである。   Reference numeral 104 denotes an EDC arithmetic circuit that calculates and adds an error detection code to the data in each sector, 105 denotes a scramble arithmetic circuit that scrambles the data in each sector, and 106 denotes a PI for the scrambled data. A PI operation circuit 107 that calculates and adds an error correction code (PI code) in the direction (row direction), 107 generates an error correction code (PO code) in the PO direction (column direction) for the scrambled data and the PI code. A PO operation circuit 108 for operation / addition is a buffer for storing an operation processing result (PO code) in the PO operation circuit 107.

200は、メモリ101から読み出されたデータに所定の変調を施して記録信号を生成する変調回路、300は、変調回路200から入力された記録信号に基づきディスク上にデータを記録する光ピックアップである。   Reference numeral 200 denotes a modulation circuit that performs predetermined modulation on the data read from the memory 101 to generate a recording signal. Reference numeral 300 denotes an optical pickup that records data on the disk based on the recording signal input from the modulation circuit 200. is there.

本実施例では、ホストからID付加回路102に対してセクタ単位でデータが供給される。このデータは、IED演算回路103とEDC演算回路104にてヘッダとEDCが付加された後、スクランブル演算回路105に入力される。   In this embodiment, data is supplied from the host to the ID adding circuit 102 in units of sectors. This data is input to the scramble arithmetic circuit 105 after the header and EDC are added by the IED arithmetic circuit 103 and the EDC arithmetic circuit 104.

スクランブル演算回路105は、入力されたデータにスクランブル処理を施し、メモリ101に書き込む。このとき同時に、スクランブル処理後のデータが、PI演算回路106とPO演算回路107にそれぞれ入力される。   The scramble arithmetic circuit 105 performs scramble processing on the input data and writes it to the memory 101. At the same time, the scrambled data is input to the PI operation circuit 106 and the PO operation circuit 107, respectively.

PI演算回路106は、入力されたデータに対し、1行ずつ、誤り訂正符号演算(PI符号演算)を実行し、得られたPI符号をその行のデータに付加するようにしてメモリ101に書き込む。このとき同時に、各行のPI符号が順次PO演算回路107に入力される。   The PI operation circuit 106 performs an error correction code operation (PI code operation) on the input data line by line, and writes the obtained PI code to the memory 101 so as to be added to the data of that line. . At the same time, the PI code of each row is sequentially input to the PO operation circuit 107.

PO演算回路107は、スクランブル演算回路105から入力された1セクタ分のデータと、PI演算回路106から入力されたPI符号から、後述の如く、PO符号を算出するためのシンドローム演算式を設定し、この演算式をもとに、各列のPO符号を算出する。そして、算出したPO符号を、バッファ108に書き込む。   The PO operation circuit 107 sets a syndrome operation expression for calculating a PO code from the data for one sector input from the scramble operation circuit 105 and the PI code input from the PI operation circuit 106, as will be described later. Based on this arithmetic expression, the PO code of each column is calculated. Then, the calculated PO code is written in the buffer 108.

図2は、PO演算回路107における処理動作を示す図である。   FIG. 2 is a diagram illustrating a processing operation in the PO arithmetic circuit 107.

ホストからデータ転送が開始された後、最初の1セクタ分のデータとこれに対応するPI符号が、1行ずつ、スクランブル演算回路105とPI演算回路106からPO演算回路107に入力されると(同図(a)参照)、PO演算回路107は、これらデータをもとに、PO符号を算出するためのシンドローム演算式を設定し、この演算式をもとに、誤り訂正符号演算(PO符号演算)を実行する(同図(b)参照)。そして、この演算で求めたPO符号(演算途中のPO符号)を、バッファ108に書き込む(同図(c)参照)。   After the data transfer is started from the host, when the first sector of data and the corresponding PI code are input to the PO operation circuit 107 from the scramble operation circuit 105 and the PI operation circuit 106 one by one ( The PO calculation circuit 107 sets a syndrome calculation formula for calculating a PO code based on these data, and an error correction code calculation (PO code) based on this calculation formula. (Calculation) is executed (see (b) in the figure). Then, the PO code (PO code in the middle of calculation) obtained by this calculation is written in the buffer 108 (see FIG. 5C).

その後、次の行のデータとこれに対応するPI符号が、スクランブル演算回路105とPI演算回路106からPO演算回路107に入力されると(同図(d)参照)、PO演算回路107は、既にバッファ108に書き込まれているPO符号をバッファ108から読み出し、読み出したPO符号と、入力された1行分のデータおよびPI符号から、再度、PO符号を算出するためのシンドローム演算式を設定する。そして、この演算式をもとに、今回入力された1行分のデータおよびPI符号と、バッファ108から読み出したPO符号を用いて誤り訂正符号演算(PO符号演算)を実行し(同図(e)参照)、この演算で求めたPO符号(演算途中のPO符号)を、バッファ108に書き戻す(同図(f)参照)。   Thereafter, when the next row of data and the corresponding PI code are input from the scramble arithmetic circuit 105 and the PI arithmetic circuit 106 to the PO arithmetic circuit 107 (see FIG. 4D), the PO arithmetic circuit 107 The PO code already written in the buffer 108 is read from the buffer 108, and a syndrome arithmetic expression for calculating the PO code is set again from the read PO code and the input data and PI code for one row. . Based on this arithmetic expression, error correction code calculation (PO code calculation) is executed using the data and PI code input this time and the PO code read from the buffer 108 (FIG. e)), and the PO code (PO code in the middle of calculation) obtained by this calculation is written back to the buffer 108 (see (f) in the figure).

さらに、続いて、次の1行分のデータとこれに対応するPI符号が、PO演算回路107に入力されると、上記と同様、PO演算回路107は、既にバッファ108に書き込まれているPO符号をバッファ108から読み出し、読み出したPO符号と、入力された1行分のデータおよびPI符号から、再度、PO符号を算出するためのシンドローム演算式を設定する。そして、この演算式をもとに、今回入力された1行分のデータおよびPI符号と、バッファ108から読み出したPO符号を用いて誤り訂正符号演算(PO符号演算)を実行し、この演算で求めたPO符号(演算途中のPO符号)を、バッファ108に書き戻す。   Further, when the data for the next line and the PI code corresponding thereto are input to the PO operation circuit 107, the PO operation circuit 107 is already written in the buffer 108 as described above. The code is read from the buffer 108, and a syndrome calculation formula for calculating the PO code is set again from the read PO code, the input data for one row, and the PI code. Based on this arithmetic expression, an error correction code calculation (PO code calculation) is performed using the data and PI code input this time and the PO code read from the buffer 108. The obtained PO code (PO code in the middle of calculation) is written back to the buffer 108.

以下、同様に、PO演算回路107は、1ECCブロック分の最終行のデータとこれに対応するPI符号が入力されるまで、バッファ108に対するPO符号の読み出しおよび書き込みと、誤り訂正符号の演算(PO符号演算)を実行する。そして、これにより1ECCブロック分の全ての行のデータおよびPI符号に基づくPO符号がバッファ108に書き込まれると、バッファ108に格納されたPO符号が読み出され、メモリ101内の対応領域にそのまま書き込まれる。これにより、メモリ101内に、1ECCブロック分のデータがマッピングされる。   Similarly, the PO operation circuit 107 reads and writes the PO code to the buffer 108 and calculates the error correction code (PO) until the last row of data for one ECC block and the corresponding PI code are input. Sign operation). Then, when the PO code based on the data of all the ECC blocks and the PI code is written in the buffer 108, the PO code stored in the buffer 108 is read and written in the corresponding area in the memory 101 as it is. It is. As a result, data for one ECC block is mapped in the memory 101.

なお、図示のとおり、バッファ108のサイズは、1ECC分のPO符号と同じサイズとなっている。   As shown in the figure, the size of the buffer 108 is the same as the PO code for one ECC.

次に、図3を参照して、データ符号化回路100の処理動作について説明する。   Next, the processing operation of the data encoding circuit 100 will be described with reference to FIG.

ホストから、ID付加回路102、IED演算回路103およびEDC演算回路104を介して、1セクタ分のデータがスクランブル演算回路105に入力されると(S101)、入力されたデータに対してスクランブル処理が施され(S102)、スクランブル処理後のデータがメモリ101の対応領域に書き込まれる(S103)。同時に、スクランブル後のデータは、スクランブル演算回路105から、PI演算回路106とPO演算回路107にそれぞれ入力される(S104、105)。   When data for one sector is input from the host to the scramble operation circuit 105 via the ID addition circuit 102, the IED operation circuit 103, and the EDC operation circuit 104 (S101), the input data is scrambled. Applied (S102), and the scrambled data is written in the corresponding area of the memory 101 (S103). At the same time, the scrambled data is input from the scramble arithmetic circuit 105 to the PI arithmetic circuit 106 and the PO arithmetic circuit 107, respectively (S104, 105).

この入力を受けて、PI演算回路106は、1セクタ分のデータに対し、行毎に、誤り訂正符号演算(PI符号演算)を実行し(S106)、得られたPI符号を各行のデータに付加するようにして、メモリ101の対応領域に書き込む(S107)。このとき同時に、PI演算回路106は、各行のPI符号を順次PO演算回路107に入力する(S108)。   In response to this input, the PI operation circuit 106 executes error correction code calculation (PI code calculation) for each row of data for one sector (S106), and converts the obtained PI code into data of each row. In addition, the data is written in the corresponding area of the memory 101 (S107). At the same time, the PI operation circuit 106 sequentially inputs the PI code of each row to the PO operation circuit 107 (S108).

一方、S105にて、スクランブル後のデータが、スクランブル演算回路105からPO演算回路107に入力されると、PO演算回路107は、上記図2を参照して説明したとおり、既にバッファ108に書き込まれているPO符号をバッファ108から読み出し(S109)、読み出したPO符号と、入力された1行分のデータから、PO符号を算出するためのシンドローム演算式を設定する。そして、PO演算回路107は、この演算式をもとに、今回入力された1行分のデータと、バッファ108から読み出したPO符号を用いて誤り訂正符号演算(PO符号演算)を実行し、PO符号を求める(S110)。   On the other hand, when the scrambled data is input from the scramble arithmetic circuit 105 to the PO arithmetic circuit 107 in S105, the PO arithmetic circuit 107 is already written in the buffer 108 as described with reference to FIG. The current PO code is read from the buffer 108 (S109), and a syndrome arithmetic expression for calculating the PO code is set from the read PO code and the input data for one row. Then, the PO operation circuit 107 executes an error correction code operation (PO code operation) using the data for one row input this time and the PO code read from the buffer 108 based on this operation expression, A PO code is obtained (S110).

さらに、S108にて、各行のPI符号がPI演算回路106からPO演算回路107に入力されると、PO演算回路107は、スクランブルデータが入力されたときと同様、既にバッファ108に書き込まれているPO符号をバッファ108から読み出し(S109)、読み出したPO符号と、今回入力されたPI符号から、PO符号を算出するためのシンドローム演算式を設定する。そして、PO演算回路107は、この演算式をもとに、今回入力されたPI符号と、バッファ108から読み出したPO符号を用いて誤り訂正符号演算(PO符号演算)を実行し、PO符号を求める(S110)。   Furthermore, when the PI code of each row is input from the PI operation circuit 106 to the PO operation circuit 107 in S108, the PO operation circuit 107 has already been written in the buffer 108 as when the scrambled data is input. The PO code is read from the buffer 108 (S109), and a syndrome calculation formula for calculating the PO code is set from the read PO code and the PI code inputted this time. Then, the PO operation circuit 107 executes error correction code operation (PO code operation) using the PI code input this time and the PO code read from the buffer 108 based on this operation expression, Obtain (S110).

このようにして求められたPO符号は、順次、バッファ108に書き込まれる(S111)。これらの処理は、当該セクタの全ての行に対する処理が終了するまで繰り返される。   The PO codes obtained in this way are sequentially written in the buffer 108 (S111). These processes are repeated until the processes for all the rows in the sector are completed.

当該セクタの全ての行に対する処理が終了すると、PO符号の演算処理とバッファへの書き込み処理が1ECCブロックを構成する最後のセクタデータとそのPI符号まで実行されたかが判別される(S112)。   When the processing for all the rows in the sector is completed, it is determined whether the calculation processing of the PO code and the writing processing to the buffer have been executed up to the last sector data constituting one ECC block and its PI code (S112).

S112における判別がNOであれば、S101に戻り、1ECCブロックを構成する次のセクタに対するスクランブル処理と、PI符号およびPO符号の演算処理が実行される。これにより、スクランブルされた1セクタ分のデータとそれに対応するPI符号がメモリ101に書き込まれ、さらに、先頭セクタから当該セクタまでのPO符号がバッファ108に格納される。   If the determination in S112 is NO, the process returns to S101, and the scramble process for the next sector constituting one ECC block and the calculation process of the PI code and the PO code are executed. As a result, the scrambled data for one sector and the corresponding PI code are written into the memory 101, and the PO code from the first sector to the sector is stored in the buffer 108.

S101からS111までの処理が1ECCブロックを構成する最終行のセクタデータとそのPI符号まで実行されると(S112:YES)、バッファ108に格納されている1ECCブロック分のPO符号が読み出され、メモリ101内の対応領域にそのまま書き込まれる(S113)。これにより、メモリ101内に、1ECCブロック分のセクタデータ、PI符号およびPO符号がマッピングされ、当該ECCブロックに対する符号化処理が終了する。   When the processing from S101 to S111 is executed up to the sector data of the last row constituting one ECC block and its PI code (S112: YES), the PO code for one ECC block stored in the buffer 108 is read, It is written as it is into the corresponding area in the memory 101 (S113). As a result, sector data, PI code, and PO code for one ECC block are mapped in the memory 101, and the encoding process for the ECC block ends.

このようにしてメモリ101内にマッピングされた1ECCブロック分のデータは、1行ずつ、変調回路200へと読み出され、所定の変調が施される。そして、この変調処理により生成された記録信号が光ピックアップ300に供給され、ディスクに対するデータ記録が行われる。   The data for one ECC block mapped in the memory 101 in this way is read line by line to the modulation circuit 200 and subjected to predetermined modulation. Then, the recording signal generated by this modulation processing is supplied to the optical pickup 300, and data recording on the disc is performed.

本実施例によれば、1ECCブロック分のデータをメモリ101にマッピングする際のメモリアクセスが、以下に3工程に抑制される。
(1)スクランブル演算回路105にて生成されたスクランブルデータの書き込み、
(2)PI演算回路106にて生成されたPI符号の書き込み、および、
(3)バッファ108に格納されたPO符号の書き込み
According to the present embodiment, memory access when mapping data for one ECC block to the memory 101 is suppressed to the following three steps.
(1) Writing of scramble data generated by the scramble calculation circuit 105,
(2) writing of the PI code generated by the PI operation circuit 106, and
(3) Write of PO code stored in buffer 108

よって、本発明によれば、上記の従来技術の場合に比べ、ECCエンコード処理の際のメモリアクセス回数を大幅に低減させることができ、これにより、データ符号化処理の高速化を図ることができる。   Therefore, according to the present invention, the number of memory accesses during the ECC encoding process can be greatly reduced as compared with the case of the above-described prior art, thereby speeding up the data encoding process. .

本実施例は、メモリ101に対するデータマッピングの方法を改良するものである。   In this embodiment, the data mapping method for the memory 101 is improved.

図4(a)は、セクタデータとPI符号およびPO符号を、ECCブロックのデータ構造のまま、メモリにマッピングしたときの状態を示すものである。   FIG. 4A shows a state in which sector data, PI code, and PO code are mapped to a memory while maintaining the ECC block data structure.

この場合、データ記録時には、セクタ1の先頭から1行ずつデータおよびPI符号が読み出され(同図、読み出し1)、変調回路200に出力される。そして、セクタ1の全ての行について読み出しが終了すると、次に、セクタ1に対応するPO符号が読み出され(同図、読み出し2)、この読み出しが終わると、セクタ2に戻って、セクタ2の先頭から1行ずつデータとPI符号が読み出される。以下、同様に、1ECCブロックの最後まで、各セクタのデータおよびPI符号とPO符号が交互に読み出され、変調回路200に出力される。   In this case, at the time of data recording, data and PI code are read line by line from the head of sector 1 (read 1 in the figure) and output to modulation circuit 200. When all the rows in sector 1 have been read, the PO code corresponding to sector 1 is then read out (read 2 in the figure). When this reading is completed, the process returns to sector 2 and sector 2 The data and the PI code are read line by line from the top of the line. Hereinafter, similarly, the data of each sector and the PI code and PO code are alternately read up to the end of one ECC block and output to the modulation circuit 200.

このように、図4(a)のマッピング方法によれば、データ記録時に、セクタ領域とPO符号領域から交互にデータを読み出す必要があり、メモリ101に対するアクセス制御が複雑になるとの問題が生じる。本実施例は、この問題を回避するものである。   As described above, according to the mapping method of FIG. 4A, it is necessary to read data alternately from the sector area and the PO code area at the time of data recording, which causes a problem that access control to the memory 101 becomes complicated. The present embodiment avoids this problem.

図4(b)は、本実施例におけるデータマッピング方法を示すものである。   FIG. 4B shows a data mapping method in this embodiment.

このマッピング方法では、セクタm(m=1、2、…、16)のマッピング領域とセクタm+1のマッピング領域の間に、セクタmに対応するPO符号をマッピングするための領域(PO領域)が確保される。そして、上記図3の処理によってバッファ108に1ECCブロック分のPO符号が格納されると、バッファ108から各セクタに対応するPO符号が読み出され、それぞれ、メモリ100上の対応するPO領域に書き込まれる。   In this mapping method, an area (PO area) for mapping the PO code corresponding to sector m is secured between the mapping area of sector m (m = 1, 2,..., 16) and the mapping area of sector m + 1. Is done. When the PO code for one ECC block is stored in the buffer 108 by the processing of FIG. 3, the PO code corresponding to each sector is read from the buffer 108 and written to the corresponding PO area on the memory 100. It is.

このマッピング方法によれば、データ記録時には、マッピング領域の先頭アドレスから最終アドレスまで順次単調に1行ずつデータを読み出し、変調回路200に出力すればよい。よって、本実施例によれば、図4(a)のマッピング方法に比べ、データ読み出し時におけるメモリ101へのアクセス制御を単純化することができる。   According to this mapping method, at the time of data recording, data may be read out one line at a time from the first address to the last address of the mapping area and output to the modulation circuit 200. Therefore, according to the present embodiment, access control to the memory 101 at the time of data reading can be simplified as compared with the mapping method of FIG.

本実施例は、実施例1に比べ、メモリ101に対するアクセス頻度をさらに低減しようとするものである。すなわち、上記実施例1では、バッファ108に格納されたPO符号を一旦メモリ101に書き込み、その後、メモリ101からPO符号を読み出して変調回路200に出力するようにしたが、本実施例では、図5の構成例に示すように、バッファ108に格納されたPO符号を、メモリ101に書き込まずに、直接、変調回路200に出力するようにしている。   The present embodiment is intended to further reduce the access frequency to the memory 101 compared to the first embodiment. In other words, in the first embodiment, the PO code stored in the buffer 108 is once written in the memory 101, and then the PO code is read from the memory 101 and output to the modulation circuit 200. As shown in the configuration example 5, the PO code stored in the buffer 108 is directly output to the modulation circuit 200 without being written in the memory 101.

図6は、変調回路200に対するデータ出力時の処理フローである。   FIG. 6 is a processing flow when data is output to the modulation circuit 200.

処理が開始されると、変数Kに1がセットされ(S201)、まず、セクタ1の先頭から順次1行分のデータおよびPI符号が読み出され変調回路200に出力される(S202)。この出力処理がセクタ1について終了すると(S203:YES)、セクタ1に対応するPO符号がバッファ108から読み出され、変調回路200に出力される(S204)。   When the processing is started, 1 is set to the variable K (S201). First, data and PI codes for one row are read out sequentially from the head of the sector 1 and output to the modulation circuit 200 (S202). When this output processing is completed for sector 1 (S203: YES), the PO code corresponding to sector 1 is read from buffer 108 and output to modulation circuit 200 (S204).

このようにしてPO符号の読み出しがなされると、変数Kに1が加算され(S206)、セクタ2の先頭から順次1行分のデータおよびPI符号が読み出され変調回路200に出力される(S202)。この出力処理がセクタ2について終了すると(S203:YES)、セクタ2に対応するPO符号がバッファ108から読み出され、変調回路200に出力される(S204)。   When the PO code is read in this way, 1 is added to the variable K (S206), and one row of data and the PI code are sequentially read from the head of the sector 2 and output to the modulation circuit 200 ( S202). When this output processing is completed for sector 2 (S203: YES), the PO code corresponding to sector 2 is read from buffer 108 and output to modulation circuit 200 (S204).

以下、セクタ16まで同様の処理が実行され、変調回路200に対し、メモリ101とバッファ108から交互に、データおよびPI符号と、PO符号が出力される(S205)。そして、セクタ16に対する処理が終了すると(S205:YES)、当該ECCブロックについての処理が終了される。   Thereafter, the same processing is executed up to the sector 16, and data, PI code, and PO code are alternately output from the memory 101 and the buffer 108 to the modulation circuit 200 (S205). When the process for the sector 16 is completed (S205: YES), the process for the ECC block is terminated.

本実施例によれば、バッファ108からメモリ101に対してPO符号が書き込まれないため、当該書き込み時のメモリアクセスと、メモリ101からPO符号を読み出すときのメモリアクセスが、上記実施例1に比べ削減される。よって、本実施例によれば、上記実施例1に比べ、メモリ101に対するアクセス頻度をさらに低減することができ、データ符号化処理の高速化を図ることができる。   According to the present embodiment, since the PO code is not written from the buffer 108 to the memory 101, the memory access at the time of writing and the memory access at the time of reading the PO code from the memory 101 are compared with the first embodiment. Reduced. Therefore, according to the present embodiment, compared with the first embodiment, the access frequency to the memory 101 can be further reduced, and the data encoding process can be speeded up.

また、本実施例によれば、メモリ101に対してPO符号が書き込まれないため、上記実施例1に比べ、PO符号の格納領域分だけメモリの記憶領域を削減することができ、メモリ101のサイズを減少させることができる。   Further, according to the present embodiment, since the PO code is not written in the memory 101, the storage area of the memory can be reduced by the storage area of the PO code as compared with the first embodiment. The size can be reduced.

本実施例は、上記実施例1に比べ、1ECCブロック分のデータのエンコード処理に要する時間を短くしようとするものである。   This embodiment is intended to shorten the time required for encoding processing of data for one ECC block as compared with the first embodiment.

図7に、本実施例の構成を示す。本実施例では、上記実施例1に比べ、PO符号を格納するためのバッファが一つ追加されている。本実施例では、PO符号化処理の際に用いるバッファが、1ECCブロック毎に、バッファA110とバッファB111の間で切り替えられる。   FIG. 7 shows the configuration of this embodiment. In the present embodiment, one buffer for storing the PO code is added as compared with the first embodiment. In the present embodiment, the buffer used in the PO encoding process is switched between the buffer A 110 and the buffer B 111 for each ECC block.

図8は、PO符号化処理時におけるバッファA110とバッファB111の使用状態を示すものである。なお、同図中、「ブロック」は、ECCブロックを意味している。   FIG. 8 shows the usage state of the buffer A110 and the buffer B111 during the PO encoding process. In the figure, “block” means an ECC block.

ブロックnに対する符号化処理時には、PO符号の書き込み/読み出し用バッファとして、バッファA110が用いられる。ブロックnに対する符号化処理が終了すると、符号化処理時に使用されるバッファがバッファA110からバッファB111に切り替えられ、次のブロックn+1に対する符号化処理時には、バッファB110に対してPO符号の書き込み/読み出しが実行される。   During the encoding process for the block n, the buffer A110 is used as a PO code writing / reading buffer. When the encoding process for the block n is completed, the buffer used during the encoding process is switched from the buffer A110 to the buffer B111. During the encoding process for the next block n + 1, writing / reading of the PO code to / from the buffer B110 is performed. Executed.

バッファA110に格納されているPO符号(ブロックnに対するPO符号)は、ブロックn+1に対しPO符号化処理が行われている途中にバッファA110から読み出され、メモリ101に書き込まれる。そして、ブロックn+1に対する符号化処理が終了すると、符号化処理時に使用されるバッファが再びバッファB111からバッファA110に切り替えられ、次のブロックn+2に対する符号化処理時には、バッファA110に対してPO符号の書き込み/読み出しが実行される。   The PO code (PO code for block n) stored in the buffer A 110 is read from the buffer A 110 and written to the memory 101 while the PO encoding process is being performed on the block n + 1. When the encoding process for the block n + 1 is completed, the buffer used during the encoding process is switched again from the buffer B111 to the buffer A110. During the encoding process for the next block n + 2, the PO code is written into the buffer A110. / Reading is executed.

このように、本実施例によれば、メモリ101に対するPO符号の書き込み処理が、そのブロックの符号化処理の際ではなく、次のブロックに対するPO符号化処理期間において行われる。よって、各ブロックに対する符号化処理の所要時間は、メモリ101に対するPO符号の書き込み処理を行わない分だけ削減され得る。このため、本実施例によれば、ホストからデータ符号化回路100に対するデータ転送制御の円滑化を図ることができる。   Thus, according to the present embodiment, the PO code writing process for the memory 101 is performed during the PO encoding process period for the next block, not during the encoding process for the block. Therefore, the time required for the encoding process for each block can be reduced by the amount that the PO code writing process for the memory 101 is not performed. Therefore, according to the present embodiment, it is possible to facilitate data transfer control from the host to the data encoding circuit 100.

なお、本実施例においても、上記実施例2に示したデータマッピング方法を適用できる。こうすると、上記実施例2で説明した如く、変調回路200に対するデータ読み出し時のメモリアクセス制御を単純化することができる。   In this embodiment, the data mapping method shown in the second embodiment can be applied. In this way, as described in the second embodiment, memory access control at the time of data reading with respect to the modulation circuit 200 can be simplified.

本実施例は、実施例1に比べ、回路規模の削減と低消費電力化を図ろうとするものである。   This embodiment is intended to reduce the circuit scale and reduce the power consumption compared to the first embodiment.

図9に、本実施例の構成を示す。本実施例では、上記実施例1に比べ、スクランブル後の1行分のデータとそれに対応するPI符号を格納するためのバッファ(PI用バッファ121)が追加されている。また、PI/PO演算処理回路120が、PI符号とPO符号の演算処理に共用される構成となっている。   FIG. 9 shows the configuration of this embodiment. In the present embodiment, compared to the first embodiment, a buffer (PI buffer 121) for storing data for one row after scramble and the corresponding PI code is added. Further, the PI / PO arithmetic processing circuit 120 is configured to be shared by the PI code and PO code arithmetic processing.

図10に、本実施例における符号化処理時の処理フローを示す。   FIG. 10 shows a processing flow during the encoding process in the present embodiment.

ホストから、ID付加回路102、IED演算回路103およびEDC演算回路104を介して、1セクタ分のデータがスクランブル演算回路105に入力されると(S301)、入力されたデータに対してスクランブル処理が施され(S302)、スクランブル処理後の1行分のデータがPI/PO演算回路120に入力される(S303)。これを受けて、PI/PO演算回路120は、PI符号の演算を実行し(S304)、得られたPI符号を1行分のデータとともにPI用バッファ121に書き込む(S305)。   When data for one sector is input from the host to the scramble operation circuit 105 via the ID addition circuit 102, the IED operation circuit 103, and the EDC operation circuit 104 (S301), the input data is scrambled. The data for one row after the scramble processing is input to the PI / PO arithmetic circuit 120 (S303). Receiving this, the PI / PO operation circuit 120 executes the operation of the PI code (S304), and writes the obtained PI code together with the data for one row in the PI buffer 121 (S305).

次に、PI/PO符号演算回路120は、PI用バッファ121からデータとPI符号を読み出し(S306)、さらに、既にPO用バッファ307に格納されているPO符号をPO用バッファ307から読み出し、上記図2を参照して説明した如くして、PO符号演算を実行する(S308)。すなわち、読み出したPO符号と、1行分のデータおよびPI符号から、PO符号を算出するためのシンドローム演算式を設定し、この演算式をもとにPO符号演算を実行する。PI/PO符号演算回路120は、これにより算出されたPO符号をPO用バッファに書き戻す(S309)。   Next, the PI / PO code calculation circuit 120 reads the data and PI code from the PI buffer 121 (S306), and further reads the PO code already stored in the PO buffer 307 from the PO buffer 307. As described with reference to FIG. 2, the PO code calculation is executed (S308). That is, a syndrome calculation formula for calculating the PO code is set from the read PO code, data for one row, and the PI code, and the PO code calculation is executed based on the calculation formula. The PI / PO code calculation circuit 120 writes the PO code calculated thereby back to the PO buffer (S309).

しかして、PO符号の演算処理が行われると、PI用バッファ121に格納されているデータおよびPI符号がメモリ101に書き込まれる(S310)。そして、PI/PO演算回路120による処理が当該セクタの全ての行のデータについて行われていなければ(S311:NO)、S303に戻り、当該セクタ内の次の行のデータに対する処理が実行される。   Thus, when the calculation process of the PO code is performed, the data and PI code stored in the PI buffer 121 are written into the memory 101 (S310). If the processing by the PI / PO arithmetic circuit 120 has not been performed for the data of all the rows in the sector (S311: NO), the processing returns to S303, and the processing for the data of the next row in the sector is executed. .

この処理は、PI/PO演算回路120による処理が当該セクタ内の全ての行のデータについて行われるまで繰り返される(S311)。そして、当該セクタに対する処理が終了すると(S311:YES)、S311を介してS301に戻り、次のセクタに対する処理が実行される。   This processing is repeated until the processing by the PI / PO arithmetic circuit 120 is performed for the data of all the rows in the sector (S311). When the process for the sector is completed (S311: YES), the process returns to S301 via S311 and the process for the next sector is executed.

S301からS312の処理は、1ECCブロックを構成する全てのセクタに対する処理が終了するまで、繰り返し実行される(S312)。そして、1ECCブロックを構成する全てのセクタに対する処理が終了すると(S312:YES)、PO符号用バッファ122に格納されているPO符号が読み出され、メモリ101に書き込まれる。   The processing from S301 to S312 is repeatedly executed until the processing for all sectors constituting one ECC block is completed (S312). When the processing for all sectors constituting one ECC block is completed (S312: YES), the PO code stored in the PO code buffer 122 is read and written to the memory 101.

本実施例によれば、PI符号とPO符号の演算処理がPI/PO演算処理回路120を共用して行われるため、上記実施例1のようにPI符号用とPO符号用に個別に演算処理回路を配する場合に比べ、回路規模を削減でき、且つ、消費電力を抑制することができる。   According to the present embodiment, the calculation processing of the PI code and the PO code is performed by sharing the PI / PO calculation processing circuit 120, so that the calculation processing is individually performed for the PI code and the PO code as in the first embodiment. Compared with the case where a circuit is provided, the circuit scale can be reduced and power consumption can be suppressed.

なお、本実施例においても、上記実施例2に示したデータマッピング方法を適用できる。こうすると、上記実施例2で説明した如く、変調回路200に対するデータ読み出し時のメモリアクセス制御を単純化することができる。   In this embodiment, the data mapping method shown in the second embodiment can be applied. In this way, as described in the second embodiment, memory access control at the time of data reading with respect to the modulation circuit 200 can be simplified.

また、本実施例においても、上記実施例3に示した如く、PO用バッファ122に格納されたPO符号を、直接、変調回路200に出力するよう構成することができる。こうすると、上記実施例3で説明した如く、メモリ101に対するアクセス頻度を低減することができ、また、メモリ101のサイズを減少させることができる。   Also in this embodiment, as shown in the third embodiment, the PO code stored in the PO buffer 122 can be directly output to the modulation circuit 200. In this way, as described in the third embodiment, the access frequency to the memory 101 can be reduced, and the size of the memory 101 can be reduced.

さらに、本実施例においても、上記実施例4に示した如く、PO用バッファ122を2つのバッファにて構成することができる。こうすると、上記実施例4で説明した如く、各ブロックに対する符号化処理の所要時間を短縮化することができ、これにより、ホストからデータ符号化回路100に対するデータ転送制御の円滑化を図ることができる。   Further, in this embodiment, as shown in the fourth embodiment, the PO buffer 122 can be constituted by two buffers. In this way, as described in the fourth embodiment, the time required for the encoding process for each block can be shortened, thereby facilitating the data transfer control from the host to the data encoding circuit 100. it can.

以上、本発明の実施形態につき、種々の実施例を例示しながら説明したが、本発明は、これらの実施例に限定されるものではない。また、本発明の実施形態は、これら実施例の他にも種々想定され得る。   The embodiments of the present invention have been described with reference to various examples. However, the present invention is not limited to these examples. In addition to these examples, various embodiments of the present invention can be envisaged.

たとえば、図11に示す如く、スクランブル演算回路105とPI演算回路106およびPO演算回路107の間にバッファ130、131を介在させ、これらバッファ130、131に一旦データを格納した後に、随時、データをPI演算回路106とPO演算回路107に供給するようにすることもできる。   For example, as shown in FIG. 11, buffers 130 and 131 are interposed between the scramble arithmetic circuit 105, the PI arithmetic circuit 106, and the PO arithmetic circuit 107. After data is temporarily stored in these buffers 130 and 131, the data is stored as needed. It is also possible to supply to the PI operation circuit 106 and the PO operation circuit 107.

また、上記実施の形態には、DVD記録装置に本発明を適用した場合の構成例と処理動作を例示したが、HDDVD記録装置に本発明を適用することもできる。   In the above embodiment, the configuration example and the processing operation when the present invention is applied to the DVD recording apparatus are illustrated, but the present invention can also be applied to the HDDVD recording apparatus.

この他、本発明の実施形態は、特許請求の範囲に記載の発明の範囲内において、種々変更が可能である。   In addition, the embodiments of the present invention can be variously modified within the scope of the invention described in the claims.

実施例1に係るディスク記録装置の構成を示す図1 is a diagram illustrating a configuration of a disk recording apparatus according to a first embodiment. 実施例1に係るPO演算回路の処理動作を説明する図FIG. 6 is a diagram for explaining the processing operation of the PO arithmetic circuit according to the first embodiment. 実施例1に係るデータ符号化回路の処理フローチャートProcess Flowchart of Data Encoding Circuit According to Embodiment 1 実施例2に係るデータマッピング方法を説明する図FIG. 6 is a diagram for explaining a data mapping method according to the second embodiment. 実施例3に係るディスク記録装置の構成を示す図FIG. 10 is a diagram illustrating a configuration of a disk recording apparatus according to a third embodiment. 実施例3に係る変調回路にデータを供給する際のフローチャートFlowchart for supplying data to the modulation circuit according to the third embodiment. 実施例4に係るディスク記録装置の構成を示す図The figure which shows the structure of the disc recording device based on Example 4. FIG. 実施例4に係るバッファA、Bの使用方法を説明する図FIG. 6 is a diagram for explaining how to use the buffers A and B according to the fourth embodiment. 実施例5に係るディスク記録装置の構成を示す図FIG. 10 is a diagram illustrating a configuration of a disk recording device according to a fifth embodiment. 実施例5に係るデータ符号化回路の処理フローチャートProcess Flowchart of Data Encoding Circuit According to Embodiment 5 実施の形態に係るディスク記録装置の変更例を示す図The figure which shows the example of a change of the disk recording device which concerns on embodiment DVD記録装置におけるECCブロックのデータ構造を示す図The figure which shows the data structure of the ECC block in a DVD recording device ECCブロックが構成されるまでの一般的な処理の流れを示す図The figure which shows the flow of a general process until an ECC block is comprised.

符号の説明Explanation of symbols

100 データ符号化回路
101 メモリ
105 スクランブル演算回路
106 PI演算回路
107 PO演算回路
110 バッファA(第1のバッファ)
111 バッファB(第2のバッファ)
121 PI用バッファ
122 PO用バッファ
DESCRIPTION OF SYMBOLS 100 Data encoding circuit 101 Memory 105 Scramble arithmetic circuit 106 PI arithmetic circuit 107 PO arithmetic circuit 110 Buffer A (1st buffer)
111 Buffer B (second buffer)
121 PI buffer 122 PO buffer

Claims (10)

ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、
前記スクランブル処理後のデータから行方向の誤り訂正符号を生成する行方向の誤り訂正符号演算部と、
前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成する列方向の誤り訂正符号演算部と、
前記列方向の誤り訂正符号演算部によって生成された列方向の誤り訂正符号を格納するバッファと、
前記スクランブル後のデータと前記行方向の誤り訂正符号および列方向の誤り訂正符号を格納するメモリとを備え、
前記列方向の誤り訂正符号演算部は、前記スクランブル演算部から前記スクランブル後のデータが入力され、あるいは、前記行方向の誤り訂正符号演算部から前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、
前記列方向の誤り訂正符号演算部による演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記バッファに格納された後、該バッファから前記列方向の誤り訂正符号が読み出され、前記メモリに格納される、
ことを特徴とするデータ符号化回路。
A scramble operation unit that scrambles data input from the host;
A row direction error correction code calculation unit for generating a row direction error correction code from the scrambled data; and
A column-direction error correction code calculation unit that generates a column-direction error correction code from the scrambled data and the row-direction error correction code;
A buffer for storing a column-direction error correction code generated by the column-direction error correction code calculation unit;
A memory for storing the scrambled data and the error correction code in the row direction and the error correction code in the column direction;
The column-direction error correction code calculation unit receives the scrambled data from the scramble calculation unit, or receives the row-direction error correction code from the row-direction error correction code calculation unit. In response, the error correction code in the column direction stored in the buffer is read, and the error correction code in the column direction is newly calculated from the read error correction code in the column direction and the input data or the error correction code in the row direction. And write back to the buffer,
After the error correction code in the column direction for the error correction unit is stored in the buffer in the calculation process by the error correction code calculation unit in the column direction, the error correction code in the column direction is read from the buffer, Stored in memory,
A data encoding circuit characterized by the above.
請求項1に記載のデータ符号化回路において、
前記メモリには、変調回路への読み出し順に応じて、先頭アドレスから順次、前記データ、行方向の誤り訂正符号および列方向の誤り訂正符号の格納領域が設定され、前記バッファに格納された前記列方向の誤り訂正符号は、前記メモリ上の対応する列方向の誤り訂正符号の格納領域にそれぞれ格納される、
ことを特徴とするデータ符号化回路。
The data encoding circuit according to claim 1, wherein
In the memory, storage areas for the data, the error correction code in the row direction, and the error correction code in the column direction are set in order from the top address according to the reading order to the modulation circuit, and the column stored in the buffer The direction error correction code is respectively stored in the storage area of the corresponding column direction error correction code on the memory.
A data encoding circuit characterized by the above.
請求項1または2に記載のデータ符号化回路において、
前記バッファは、第1のバッファと第2のバッファから構成され、前記列方向の誤り訂正符号演算部における演算処理時に使用されるバッファが、前記誤り訂正単位毎に、前記第1のバッファと前記第2のバッファの間で切り替えられ、
これら2つのバッファのうち一方のバッファに格納された前記列方向の誤り訂正符号は、他方のバッファが前記列方向の誤り訂正符号演算部における演算処理時に使用されている期間において読み出され、前記メモリに格納される、
ことを特徴とするデータ符号化回路。
The data encoding circuit according to claim 1 or 2,
The buffer is composed of a first buffer and a second buffer, and a buffer used at the time of calculation processing in the error correction code calculation unit in the column direction is the first buffer and the buffer for each error correction unit. Switched between the second buffer,
The error correction code in the column direction stored in one of the two buffers is read during a period in which the other buffer is used during the calculation process in the error correction code calculation unit in the column direction. Stored in memory,
A data encoding circuit characterized by the above.
ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、
前記スクランブル処理後のデータから行方向の誤り訂正符号を生成する行方向の誤り訂正符号演算部と、
前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成する列方向の誤り訂正符号演算部と、
前記列方向の誤り訂正符号演算部によって生成された列方向の誤り訂正符号を格納するバッファと、
前記スクランブル後のデータと前記行方向の誤り訂正符号を格納するメモリとを備え、
前記列方向の誤り訂正符号演算部は、前記スクランブル演算部から前記スクランブル後のデータが入力され、あるいは、前記行方向の誤り訂正符号演算部から前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、
前記列方向の誤り訂正符号演算部による演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記バッファに格納された後、前記メモリから1行ずつ前記データと前記行方向の誤り訂正符号が変調回路に出力され、且つ、当該出力の合間の前記列方向の誤り訂正符号の出力タイミングにおいて、該バッファから1行ずつ前記列方向の誤り訂正符号が読み出され、前記変調回路に出力される、
ことを特徴とするデータ符号化回路。
A scramble operation unit that scrambles data input from the host;
A row direction error correction code calculation unit for generating a row direction error correction code from the scrambled data; and
A column-direction error correction code calculation unit that generates a column-direction error correction code from the scrambled data and the row-direction error correction code;
A buffer for storing a column-direction error correction code generated by the column-direction error correction code calculation unit;
A memory for storing the scrambled data and the error correction code in the row direction;
The column-direction error correction code calculation unit receives the scrambled data from the scramble calculation unit, or receives the row-direction error correction code from the row-direction error correction code calculation unit. In response, the error correction code in the column direction stored in the buffer is read, and the error correction code in the column direction is newly calculated from the read error correction code in the column direction and the input data or the error correction code in the row direction. And write back to the buffer,
After the column-direction error correction code corresponding to the error correction unit is stored in the buffer in the calculation process by the column-direction error correction code calculation unit, the data and the row-direction error correction code from the memory one row at a time Are output to the modulation circuit, and at the output timing of the error correction code in the column direction between the outputs, the error correction code in the column direction is read from the buffer one row at a time and output to the modulation circuit. The
A data encoding circuit characterized by the above.
ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、
前記スクランブル処理後のデータから行方向の誤り訂正符号を生成し、且つ、前記スクランブル処理後のデータと前記行方向の誤り訂正符号から列方向の誤り訂正符号を生成するPI/PO演算部と、
前記PI/PO演算部によって生成された行方向の誤り訂正符号を該行方向の誤り訂正符号に対応する前記データとともに格納するPI用バッファと、
前記PI/PO演算部によって生成された列方向の誤り訂正符号を格納するPO用バッファと、
前記スクランブル後のデータと前記行方向の誤り訂正符号および列方向の誤り訂正符号を格納するメモリとを備え、
前記PI/PO演算部は、前記列方向の誤り訂正符号の演算処理の際、前記PI用バッファから前記データと前記行方向の誤り訂正符号を読み出すとともに、前記PO用バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した前記データおよび行方向の誤り訂正符号と前記列方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、
前記PI/PO演算部によって前記列方向の誤り訂正符号の演算処理が行われた際に、前記PI用バッファから前記データと前記行方向の誤り訂正符号が読み出されて前記メモリに格納され、
前記PI/PO演算部による列方向の誤り訂正符号の演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記PO用バッファに格納された後、該PO用バッファから前記列方向の誤り訂正符号が読み出され、前記メモリに格納される、
ことを特徴とするデータ符号化回路。
A scramble operation unit that scrambles data input from the host;
A PI / PO arithmetic unit that generates a row direction error correction code from the scrambled data, and generates a column direction error correction code from the scrambled data and the row direction error correction code;
A PI buffer for storing a row-direction error correction code generated by the PI / PO operation unit together with the data corresponding to the row-direction error correction code;
A PO buffer for storing a column-direction error correction code generated by the PI / PO operation unit;
A memory for storing the scrambled data and the error correction code in the row direction and the error correction code in the column direction;
The PI / PO operation unit reads the data and the error correction code in the row direction from the PI buffer and stores the error correction code in the PO direction in the column direction during the calculation process of the error correction code in the column direction. Read a column direction error correction code, generate a new column direction error correction code from the read data and row direction error correction code and the column direction error correction code, and write back to the buffer,
When the PI / PO operation unit performs the error correction code processing in the column direction, the data and the error correction code in the row direction are read from the PI buffer and stored in the memory.
After the column-direction error correction code for the error correction unit is stored in the PO buffer in the column-direction error correction code calculation processing by the PI / PO operation unit, the column-direction error is output from the PO buffer. A correction code is read and stored in the memory;
A data encoding circuit characterized by the above.
請求項5に記載のデータ符号化回路において、
前記メモリには、変調回路への読み出し順に応じて、先頭アドレスから順次、前記データ、行方向の誤り訂正符号および列方向の誤り訂正符号の格納領域が設定され、前記PO用バッファに格納された前記列方向の誤り訂正符号は、前記メモリ上の対応する列方向の誤り訂正符号の格納領域にそれぞれ格納される、
ことを特徴とするデータ符号化回路。
The data encoding circuit according to claim 5, wherein
In the memory, storage areas for the data, the error correction code in the row direction, and the error correction code in the column direction are set sequentially from the top address according to the reading order to the modulation circuit, and stored in the PO buffer. The column-direction error correction codes are respectively stored in storage regions of corresponding column-direction error correction codes on the memory.
A data encoding circuit characterized by the above.
請求項5または6に記載のデータ符号化回路において、
前記PO用バッファは、第1のバッファと第2のバッファから構成され、前記PI/PO演算回路における前記列方向の誤り訂正符号の演算処理時に使用されるバッファが、前記誤り訂正単位毎に、前記第1のバッファと前記第2のバッファの間で切り替えられ、
これら2つのバッファのうち一方のバッファに格納された前記列方向の誤り訂正符号は、他方のバッファが前記PO演算回路における演算処理時に使用されている期間において読み出され、前記メモリに格納される、
ことを特徴とするデータ符号化回路。
The data encoding circuit according to claim 5 or 6,
The PO buffer is composed of a first buffer and a second buffer, and a buffer used when calculating the error correction code in the column direction in the PI / PO operation circuit is provided for each error correction unit. Switched between the first buffer and the second buffer;
The error correction code in the column direction stored in one of these two buffers is read and stored in the memory during a period in which the other buffer is used during arithmetic processing in the PO arithmetic circuit. ,
A data encoding circuit characterized by the above.
ホストから入力されたデータにスクランブル処理を施すスクランブル演算部と、
前記スクランブル処理後のデータから行方向の誤り訂正符号と列方向の誤り訂正符号を生成するPI/PO演算部と、
前記PI/PO演算部によって生成された行方向の誤り訂正符号を該行方向の誤り訂正符号に対応する前記データとともに格納するPI用バッファと、
前記PI/PO演算部によって生成された列方向の誤り訂正符号を格納するPO用バッファと、
前記スクランブル後のデータと前記行方向の誤り訂正符号を格納するメモリとを備え、
前記PI/PO演算部は、前記列方向の誤り訂正符号の演算処理の際、前記PI用バッファから前記データと前記行方向の誤り訂正符号を読み出すとともに、前記PO用バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した前記データおよび行方向の誤り訂正符号と前記列方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻し、
前記PI/PO演算部によって前記列方向の誤り訂正符号の演算処理が行われた際に、前記PI用バッファから前記データと前記行方向の誤り訂正符号が読み出されて前記メモリに格納され、
前記PI/PO演算部による列方向の誤り訂正符号の演算処理にて誤り訂正単位分の列方向の誤り訂正符号が前記PO用バッファに格納された後、前記メモリから1行ずつ前記データと前記行方向の誤り訂正符号が変調回路に出力され、且つ、当該出力の合間の前記列方向の誤り訂正符号の出力タイミングにおいて、該PO用バッファから1行ずつ前記列方向の誤り訂正符号が読み出され、前記変調回路に出力される、
ことを特徴とするデータ符号化回路。
A scramble operation unit that scrambles data input from the host;
A PI / PO operation unit for generating an error correction code in a row direction and an error correction code in a column direction from the scrambled data;
A PI buffer for storing a row-direction error correction code generated by the PI / PO operation unit together with the data corresponding to the row-direction error correction code;
A PO buffer for storing a column-direction error correction code generated by the PI / PO operation unit;
A memory for storing the scrambled data and the error correction code in the row direction;
The PI / PO operation unit reads the data and the error correction code in the row direction from the PI buffer and stores the error correction code in the PO direction in the column direction during the calculation process of the error correction code in the column direction. Read a column direction error correction code, generate a new column direction error correction code from the read data and row direction error correction code and the column direction error correction code, and write back to the buffer,
When the PI / PO operation unit performs the error correction code processing in the column direction, the data and the error correction code in the row direction are read from the PI buffer and stored in the memory.
After the column-direction error correction code corresponding to the error correction unit is stored in the PO buffer in the column-direction error correction code calculation processing by the PI / PO operation unit, the data and the data are stored one line at a time from the memory. An error correction code in the row direction is output to the modulation circuit, and the error correction code in the column direction is read from the PO buffer one row at a time at the output timing of the error correction code in the column direction between the outputs. And output to the modulation circuit,
A data encoding circuit characterized by the above.
請求項1乃至8の何れか一項に記載のデータ符号化回路を備えるデータ記録装置。   A data recording apparatus comprising the data encoding circuit according to any one of claims 1 to 8. 入力データから行方向の誤り訂正符号を生成し、生成した前記行方向の誤り訂正符号をメモリに書き込むとともに列方向の誤り訂正符号の演算に供するPI演算工程と、
前記入力データと前記行方向の誤り訂正符号から前記列方向の誤り訂正符号を生成し、生成した前記列方向の誤り訂正符号をバッファに書き込むPO演算工程と、
誤り訂正単位分の前記列方向の誤り訂正符号が前記バッファに格納された後、前記列方向の誤り訂正符号を前記バッファから読み出して前記メモリに書き込むPO書き込み工程と
を備え、
前記PO演算工程は、生成した前記列方向の誤り訂正符号をバッファに格納するとともに、前記データあるいは前記行方向の誤り訂正符号が入力されることに応じて、前記バッファに格納されている前記列方向の誤り訂正符号を読み出し、読み出した列方向の誤り訂正符号と前記入力されたデータあるいは行方向の誤り訂正符号から新たに列方向の誤り訂正符号を生成して前記バッファに書き戻す、
ことを特徴とするPI/PO演算処理方法。
A PI calculation step of generating an error correction code in a row direction from input data, writing the generated error correction code in the row direction in a memory, and serving for calculation of an error correction code in a column direction;
A PO operation step of generating an error correction code in the column direction from the input data and the error correction code in the row direction, and writing the generated error correction code in the column direction into a buffer;
A PO writing step of reading the error correction code in the column direction from the buffer and writing it in the memory after the error correction code in the column direction for the error correction unit is stored in the buffer;
The PO operation step stores the generated error correction code in the column direction in the buffer, and the column stored in the buffer in response to the input of the data or the error correction code in the row direction. A direction error correction code is read out, a column direction error correction code is newly generated from the read column direction error correction code and the input data or row direction error correction code, and written back to the buffer.
A PI / PO calculation processing method characterized by the above.
JP2006179023A 2006-06-29 2006-06-29 Data coding circuit, data recorder, and pi/po arithmetic processing method Pending JP2008010064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006179023A JP2008010064A (en) 2006-06-29 2006-06-29 Data coding circuit, data recorder, and pi/po arithmetic processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006179023A JP2008010064A (en) 2006-06-29 2006-06-29 Data coding circuit, data recorder, and pi/po arithmetic processing method

Publications (1)

Publication Number Publication Date
JP2008010064A true JP2008010064A (en) 2008-01-17

Family

ID=39068130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006179023A Pending JP2008010064A (en) 2006-06-29 2006-06-29 Data coding circuit, data recorder, and pi/po arithmetic processing method

Country Status (1)

Country Link
JP (1) JP2008010064A (en)

Similar Documents

Publication Publication Date Title
JP2004348824A (en) ECC encoding method and ECC encoding device
US7080293B2 (en) Error correction coding method for a high-density storage media
JP4620541B2 (en) Error detection code calculation circuit, error detection code calculation method, and recording apparatus
JP5115914B2 (en) Digital data encoding apparatus, DVD recording apparatus and method
CN1329911C (en) Scrambling method, writing data generating method, and repeated data writing method
TWI284889B (en) Information processing apparatus
US7475324B2 (en) Encoding apparatus for storing data to disk
JP2008010064A (en) Data coding circuit, data recorder, and pi/po arithmetic processing method
JP2011233186A (en) Disk storage unit and data restoration method
US20050097293A1 (en) Pipeline processing system and information processing apparatus
JP2008159198A (en) Error correction apparatus and recording and playback apparatus
JP2005332544A (en) Data encoding circuit, data encoding method, and data recording apparatus
JP3773740B2 (en) Decoding device
JP4076907B2 (en) Error correction method and error correction device
US7334180B2 (en) Optical encoding method
JP5380556B2 (en) Disk storage device and data restoration method
JP2005332545A (en) Data encoding circuit, data encoding method, and data recording apparatus
JP4071789B2 (en) Memory address generation apparatus and method
JP2005332543A (en) Data encoding circuit, data encoding method, and data recording apparatus
US7738339B2 (en) Data recording devices and methods thereof
JP3995693B2 (en) Code error correction detection device
JPH10154941A (en) Error correction circuit
JP2006236534A (en) Information recording / reproducing method and apparatus
JP2005353194A (en) Digital data reproducing apparatus, digital data recording apparatus and digital data recording and reproducing apparatus
JP2008123648A (en) Data encoding circuit and optical disk device