[go: up one dir, main page]

TW200415457A - Data accessing method - Google Patents

Data accessing method Download PDF

Info

Publication number
TW200415457A
TW200415457A TW92121077A TW92121077A TW200415457A TW 200415457 A TW200415457 A TW 200415457A TW 92121077 A TW92121077 A TW 92121077A TW 92121077 A TW92121077 A TW 92121077A TW 200415457 A TW200415457 A TW 200415457A
Authority
TW
Taiwan
Prior art keywords
data
correct
block
data block
patent application
Prior art date
Application number
TW92121077A
Other languages
Chinese (zh)
Other versions
TWI318347B (en
Inventor
Dao-Ning Guo
Ching-Yu Chen
Meng-Huang Ju
Pei-Jie Hu
Original Assignee
Via Tech Inc
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 Via Tech Inc filed Critical Via Tech Inc
Publication of TW200415457A publication Critical patent/TW200415457A/en
Application granted granted Critical
Publication of TWI318347B publication Critical patent/TWI318347B/en

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Optical Recording Or Reproduction (AREA)
  • Error Detection And Correction (AREA)

Abstract

A method for accessing data from a storage medium according to requirements of a host is disclosed. The storage medium stores a plurality of data blocks that each one of them further includes a plurality of data sectors and an error correction code used for recovering errors of the data block. Each one of the data sectors further includes an error detection code used for detecting correctness of associated data sector. When a data block is verified to include at least one incorrect data sectors by means of the error detection codes, those correct data sectors rather than all the data sectors are stored into a specific position of a data buffer. The whole data block is next re-fetched and stored into the same position of the data buffer used to occupied by the data block, those stored correct data sectors are then re-fetched to overwrite corresponding ones in the data buffer. Thereafter, the incorrect data sectors are re-detected to verify their correctness again. Not only those correct data sectors will be faultless protected, but also upgrade data access performance.

Description

【發明所屬之技術領域】 本發明係有關於一種用 尤指在光電系統中,先將已 存,以於重新讀取資料時, 高所讀取資料正確度的資料 於儲存裝置之資料讀取方法, 驗證為正確的部分資料另行儲 可用來覆寫其對應部分,以提 讀取方法。 【先前技術】[Technical field to which the invention belongs] The present invention relates to a method for reading data stored in a storage device, especially in an optoelectronic system. Method, part of the data verified as correct can be used to overwrite its corresponding part to improve the reading method. [Prior art]

光碟儲存裝置(optica] H 车來一亩3m disc storage device )近Optical disc storage device (optica) H car comes to an acre 3m disc storage device

電腦週邊設備,其技術與相關規格 :也不辦有所進展。這其中,數位視訊光碟⑷gltal video disc ,簡摇DVD、^ ^ ^ a , . α )作為新一代光碟儲存規格的主流 曰顯的趨冑’其應用也曰趨廣泛。在對DVD讀取 速度要求日益提昇的情況下,如何同時加強資料讀取的正 確性’並兼顧一理想的價格/效能比,就成為的 課題。 以下先對DVD之資料儲存方式做個簡要說明。首先, DVD以20 64個位元組組成一資料區段(data sect〇r),其 格式如圖一所示。圖一中,該資料區段包含丨2列,每一列 為1 72位兀組長,内容依序包含4位元組的ID、2位元組的Computer peripherals, their technology and related specifications: No progress has been made. Among them, digital video discs (⑷gltal video disc, simple DVD, ^ ^ ^ a,. Α) as the mainstream of the new generation of optical disc storage specifications have become increasingly popular, and their applications are becoming more widespread. With the increasing requirements for DVD reading speed, how to strengthen the accuracy of data reading at the same time and take into account an ideal price / performance ratio has become a problem. The following first briefly describes the data storage method of DVD. First, the DVD consists of 20 64 bytes of a data sector (data sector), whose format is shown in Figure 1. In Figure 1, the data section contains 2 columns, each column is a 72-bit group leader, and the content sequentially contains a 4-byte ID and a 2-byte group.

ID錯誤偵測(ID Error Detection,IED )碼、6位元組的 版權處理資訊(Copyright Management Information, CPR —MAI ) 、20 48個位元組的主要資料(Dq到‘η )以及4位 元組的錯誤债測碼(Error Detection Code,EDC)。其 中’EDC係以循環冗餘檢查(CyCHc ReduncjanCy check,ID Error Detection (IED) code, 6-byte copyright management information (CPR-MAI), 20 to 48-byte main data (Dq to 'η), and 4-bit The group's Error Detection Code (EDC). Among them, EDC is based on cyclic redundancy check (CyCHc ReduncjanCy check,

第7頁 200415457 五、發明說明(2) CRC )的方式進行編碼,用於偵測此資料區段的正確性。 其次,為提供資料更好的保護,DVD將1 6個資料區 段’以RSPC (Reed Solomon Product Code)的編碼方 式,組成一資料區塊(data block),如圖二所示。圖二 中,該資料區塊包含了 1 6個區段,共1 9 2 (= 1 2 X 1 6 )列、 1 7 2行的資料,再加上由r s P C編碼方式所產生之p 〇與p I。 其中’P0為外碼同位(outer - code parity)資料,係以 母一行為單位逐行產生,長度為1 6位元組;p I為内碼同位 (inner-code pari ty )資料,則以包含p〇資料在内共2〇8 (=1 9 2 + 1 6 )列之每一列為單位逐列產生,長度為丨〇位元 組。此處整個資料區塊(Bu到‘7181 )係作為一錯誤更正 碼(error correction code,ECC)區塊來處理,PQ 與 pi 即是錯誤更正碼,用於資料錯誤的修正。 在習用的DVD技術中,係採用如圖三的架構來進行資 料讀取。圖三中,DVD碟片31〇上的資料,由讀取頭3ιι讀 取後’依序經過類比訊號處理器312、EFMPLUS解調器314 的處理,成為列貧料3丨5,再由記憶體控制器32〇透過列資 料介面316將其存入記憶體321中。當記憶體321中的資料 可構成一ECC資料區塊時,Rspc解碼器317 存取記憶細中的資料區塊,執行= = ,碼士,進而更正錯誤的資料。接著,錯誤偵測碼處理哭 取該資料區塊内的資料區段,並計算每一區段的。錯Page 7 200415457 V. Description of the invention (2) CRC) is used to detect the correctness of this data segment. Secondly, in order to provide better protection of the data, the DVD will compose a data block of 16 data sections ′ with RSPC (Reed Solomon Product Code) encoding, as shown in Figure 2. In Figure 2, the data block contains 16 sections with a total of 192 (= 1 2 X 1 6) columns and 172 rows of data, plus p generated by the rs PC coding method. With p I. Among them, 'P0 is outer-code parity data, which is generated row by row with a parent-line unit, with a length of 16 bytes; p I is inner-code pari ty data. Each row of 208 (= 1 9 2 + 16) columns including p0 data is generated row by row with a unit length of 0 bytes. Here, the entire data block (Bu to ‘7181) is treated as an error correction code (ECC) block. PQ and pi are error correction codes, which are used to correct data errors. In the conventional DVD technology, the structure shown in Figure 3 is used for data reading. In Figure 3, the data on the DVD disc 31 is read by the reading head 3m, and then processed by the analog signal processor 312 and the EFMPLUS demodulator 314 in order, and becomes a lean material 3 丨 5, which is then stored in memory The body controller 32 stores it into the memory 321 through the row data interface 316. When the data in the memory 321 can constitute an ECC data block, the Rspc decoder 317 accesses the data block in the memory and executes ==, code, and then corrects the erroneous data. Then, the error detection code processes the data segments in the data block and calculates the value of each segment. wrong

St::值若錯誤偵測碼皆正確,即經由主機介面31 9將 貝;、迗至主機322。因此,在讀取一DVD資料區塊的St :: If the error detection codes are all correct, it will be sent to the host 322 through the host interface 319. Therefore, when reading a DVD data block

第8頁 200415457 五、發明說明(3) 過程中,會先進行該資料區塊之對應P〇與?1資料的解碼及 錯誤的更正,再驗證每一資料區段的錯誤偵測碼,以 所讀取資料的正確性。 ” 若务現1 6個錯誤偵測碼中有任何一個不正確,則有兩 種4用的處理方法。第一種是利用原已讀取之資料區塊, 重新執行整個解碼與驗證的過程,直至所有錯誤偵測碼皆 為正確為止。第二種方法則是從DVD上重新讀取該資料區 塊’再加以解碼與驗證,若仍有錯誤則再次重新讀取,如 =反覆進行,直到所有錯誤偵測碼皆為正確為止。前述之 習,DVD技術有兩項主要缺點,一為記憶體321的存取次數 2夕,一為其修正資料錯誤時,係採重新讀取及解碼整個 貧料區塊的方式。此二者皆會嚴重影響DVD的資料讀取速 率及效能。 、 狀中華民國第88 1 2 1 2 59號專利,名稱為「DVD資料讀取 裝置及方法^ ,即針對前述習用技術問題提出改進。請參 閱圖四,其為該專利所提之改良裝置的方塊圖。如圖四所 不,其主要透過特殊的硬體設計,首先由列資料介面及第 人内馬同位解碼為4 1 6、錯誤偵測碼產生器4 1 7與列資料 :緩衝區41 8進行PI資料的解碼,及產生每一資料區段的錯 铁偵測碼,接著才存至記憶體421中,如此即避免了前述 習知技術於解碼p I資料盥古十曾辑庙 貝兴4异錯块偵測碼時,皆須存取 憶體所造成的負擔。豆女,i_二才白/貝仔取口己 八_人再猎由錯誤偵測碼檔案4 2 2、 錯誤偵測碼處理器4 2 4盥RSPC &踩哭9 β λα % 次 …解碼為426的設計,於進行Ρ〇 Μ料解碼及錯誤更正的同時夺丨 ^ J J ^ 利用錯祆更正結果來修改先Page 8 200415457 V. Description of the invention (3) During the process, the corresponding P0 and? 1 Decoding and error correction of data, and then verify the error detection code of each data segment to correct the read data. ”If any of the 16 error detection codes is incorrect, there are two kinds of processing methods. The first is to use the previously read data blocks to re-execute the entire decoding and verification process. Until all error detection codes are correct. The second method is to re-read the data block from the DVD 'and then decode and verify it. If there are still errors, re-read it again, such as = repeatedly, Until all error detection codes are correct. As mentioned above, DVD technology has two main disadvantages, one is the number of accesses to memory 321, and the other is to read and decode again when it corrects data errors. The entire lean block method. Both of these will seriously affect the data read rate and performance of the DVD. The state of the Republic of China patent No. 88 1 2 1 2 59, entitled "DVD data reading device and method ^, That is to say, to improve the conventional technical problems. Please refer to Figure 4, which is a block diagram of the improved device mentioned in the patent. As shown in Figure 4, it is mainly through special hardware design, first by the data interface and the first person. Neima parity Decoded as 4 1 6, error detection code generator 4 1 7 and row data: buffer 41 8 decodes PI data and generates error detection codes for each data segment, and then saves it to memory 421 In this way, it avoids the burden caused by the above-mentioned conventional techniques when decoding p I data to decode the heterogeneous block detection code of the ancient ten-year-old temple Beixing 4 erroneous block. Dou, i_ 二 才Bai / Pei Zikou mouth has eight people_ hunting again by error detection code file 4 2 2, error detection code processor 4 2 4 RSPC & cry 9 β λα% times ... decoded to 426 design, in Simultaneously decode the POM data and correct errors at the same time. ^ JJ ^ Use the error correction result to modify the first

200415457200415457

五、發明說明(4) 所所產生之錯誤偵測碼。最 確,則將所讀取資料經由主 外,若錯誤偵測碼並非完全 區塊時,該專利還提供一種 資料區塊中’已驗證為正確 高資料讀取的效率。雖然該 加以改進,但就如圖四的架 較複雜的電路結構,於是不 七加晶片的面積與成本。 後,若所有錯誤偵測碼都正 機介面428傳送給主機43〇。另 正確,而導致需重複讀取資料 資料讀取方法,可將要重讀之 的資料區段跳過不讀,藉以提 專利可對前述習知技術的問^ 構所示,其需要額外的硬體與 僅提高晶片設計的困難度, 更 有鑑於此, 取方法,能在沿 (firmware)的 外錯誤修正的效 本發明的著眼點 用圖三較簡單的 方式達成修正錯 能。 ’即在於提出一 架構下,以韌體 誤資料之目的, 種資料 同時可5. Description of the invention (4) The error detection code generated. Mostly, the read data is passed through the main and external, if the error detection code is not a complete block, the patent also provides a data block 'which has been verified to be correct and the data read efficiency is high. Although it should be improved, it has a more complicated circuit structure as shown in Figure 4, so it does not increase the area and cost of the chip. Then, if all error detection codes are transmitted to the host 43 through the host interface 428. It is also correct, which leads to the need to repeatedly read the data. The reading method of the data can be skipped and not read. The patent can be used to illustrate the problem of the conventional technology, which requires additional hardware. In addition to only increasing the difficulty of chip design, and in view of this, taking a method, the effect of error correction outside the firmware can be achieved in the simpler way of FIG. 3 to achieve the error correction capability. ’Is to propose a framework for the purpose of firmware error data,

提 【發明内容】 本發明之主 〜主機對一儲存 置包含複數個資 段,且具有一錯 正 每一 資料區 確性。 包含不 先前所 要目的, 裝置之讀 料區塊, 誤更正碼 段則包含 較佳實施 料區塊中 正確的資 儲存之正 係提供 取作業 每一資 ,用以 一錯誤 例之方 經驗證 料區段 確資料 一種資料讀取 實施例 包含複 料區塊 。較佳 料區塊 對該資 偵測碼 法係利 為正確 ’而導 區段覆 ,用於 用一特[Summary of the Invention] The host of the present invention, the host-to-storage device, contains a plurality of resources, and has the correctness of each data area. Contains the material reading block of the device that is not previously required, and the error correction code segment contains the correct data storage in the better implementation material block. The correct system provides each operation of fetching data to verify the data with an error case. Section Confirmation Data A data reading embodiment includes multiple blocks. The better material blocks are correct for the detection code method of the data.

中的儲;f 數個資诗 進行錯I 偵測該ΐ 定的記个 區段,j 1賣資料E 區段之正 塊,來儲存一資 資料區塊 時,可將F. Several asset poems. Error I. Detect the specified number of segments. J 1 sells the positive block of the E segment to store a data block.

第10頁 200415457Page 10 200415457

保護先前已驗證為正確的資料區段,藉以 料的機率。此外,在較佳實施例的實作上,=^ =取資 硬體架構,搭配韌體的方式來達成,因此_ :f用習知的 設計,所以可同時節省製造的成本。 而頟夕的硬體 為使貴審查委員對於本發明能有更、仓止^ 認同,茲配合圖式詳述本發明的實施方i 解Η 、 %如后。 【實施方式】 η:為例,詳述本發明之資料讀取方 =式。必須強调’本發明的實施並不限侧。: =衣置,*其包含複數個資料區塊’每—資料區塊 數個貨料區段,且具有一錯誤更正碼,用以對整個資料: 塊進行錯誤更正,每一資料區段則另包含一錯誤偵測碼, 用於偵測該資料區段之正確性。只要具有如上之資料儲存 與錯誤修正方式,本發明都可有效提昇正確讀取資料的= 率 〇 如前所述,DVD係以2 0 6 4個位元組組成格式如圖一之 一資料區段’其中包含4位元組的錯誤偵測碼,用以摘測 資料區段的正確性。此外,D V D更進一步以R S P C編碼方 式,將1 6個資料區段組成如圖二所示之一ECC資料區塊, 其包含由RSPC編碼方式所產生之p〇與pi資料,用於資料錯 誤的更正。因而,可運用本發明所提之方法,對讀取DVD 資料所產生的錯誤進行修正。 圖五為本發明較佳實施例用於DVD資料讀取錯誤之修Probability of protecting data segments that have previously been verified to be correct. In addition, in the implementation of the preferred embodiment, = ^ = is obtained by using a hardware architecture and a firmware approach. Therefore, _: f uses a conventional design, which can save manufacturing costs at the same time. In order to make your reviewer agree more and more with the present invention, the hardware of Xixi is hereby described in detail with reference to the embodiment i of the present invention. [Embodiment] η: As an example, the data reading method of the present invention is detailed. It must be emphasized that the implementation of the present invention is not limited. : = Clothing set, * which contains a plurality of data blocks' each — data blocks, a number of material sections, and has an error correction code for the entire data: block error correction, each data section is It also contains an error detection code for detecting the correctness of the data segment. As long as the data storage and error correction methods are as described above, the present invention can effectively improve the rate of correctly reading data. As mentioned earlier, the DVD is composed of 206 bytes. The format is shown in the data area of Figure 1. The 'segment' contains a 4-byte error detection code to test the correctness of the data segment. In addition, the DVD further uses RSPC encoding to compose 16 data sectors into one of the ECC data blocks shown in Figure 2. It contains p0 and pi data generated by RSPC encoding and is used for data errors. correct. Therefore, the method mentioned in the present invention can be used to correct errors caused by reading DVD data. FIG. 5 is a diagram of a preferred embodiment of the present invention for repairing DVD data read errors.

200415457 五、發明說明" — ------ 二方法的動作流程圖,其係在圖三架構下進行以下之步 驟· 2圯憶體3 2 1中提供一特定的記憶區塊; ;磲片3 1 0上一新的資料區塊讀入記憶體32 i ; 用該新資料區塊之⑼與^資料,對新資料區塊 ^ 9 '正,並利用新貧料區塊内各資料區段的錯誤偵 測碼,偵測各資料區段之正確性; 5 3 ·判斷各資料區段是否皆為正確; 5 4 ·右各資料區段皆為正確,則傳送該新資料區塊至 主機3 2 2,並回到步驟5 !; ··若資料區段並非全部正確,則將正確的資料區段 存入該特定記憶區塊中; 5 6 ·重新將該新資料區塊讀入記憶體3 1内同一位 置;以及 5 7 ·將存入該特定記憶區塊中之正確資料區段,覆寫 至S憶體3 2 1中重讀之新資料區塊的對應位置,再回到步 驟5 2 〇 應注意的是’因在步驟5 7中已將正確的資料區段覆寫 在記憶體321中,所以當重回步驟52後,可直接跳過這些 王4的資料區段(不管重新執行一次的錯誤偵測碼是否^ 確)’而專注在發生錯誤資料區段的處理上,於是能進一 步縮短運算的時間。此外,在實際的實施方面,可將上述 步驟轉換成相對應的勃體程式後’即可在圖三的硬體架構 中執行’而不需如習知技術般’必須增加錯誤偵測碼檔案200415457 V. Description of the invention----------- Operation flow chart of the second method, which performs the following steps under the framework of Fig. 3 · 2 memory body 3 2 1 provides a specific memory block; The cymbal 3 1 0 reads the new data block into the memory 32 i; Use the data and the ^ data of the new data block to align the new data block ^ 9 ', and use each of the new data blocks. Data segment error detection code to detect the correctness of each data segment; 5 3 · Determine whether each data segment is correct; 5 4 · The right data segment is correct, then send the new data area Block to the host 3 2 2 and return to step 5; ··· If the data section is not all correct, then store the correct data section in the specific memory block; 5 6 · Re-add the new data block Read the same position in memory 31; and 5 7 · Overwrite the correct data section stored in the specific memory block to the corresponding position of the new data block reread in S memory body 3 2 1 and then Return to step 5 2 〇 It should be noted that 'the correct data section has been overwritten in the memory 321 in step 57, so when returning After step 52, the king may skip data section (whether re-execution of the error detection code is a correct ^) 4 'and focus on the process error occurred in the data section, so can further shorten the calculation time. In addition, in terms of actual implementation, after the above steps can be converted into the corresponding body program, it can be executed in the hardware architecture of FIG. 3 without the need to add error detection code files.

200415457 五、發明說明(7)200415457 V. Description of Invention (7)

4 2 2等硬體元件後才能f篇。L ^ ^ ^ ^ . 此外,本發明可應用於具讀F 2 only after 4 2 2 and other hardware components. L ^ ^ ^ ^. In addition, the present invention can be applied to reading

貝1月、匕技光電系統,諸如唯讀光碟機(CD-ROM 广式數位視訊光碟機(DVD-ROM drive)、DVD播 I I"60 ^ 取料的正確性;而齡伟每厂 可以是記憶體中的任U;,:的特定的記憶區塊”則 &六術 A A ^ 4心[塊,只要該區塊不會被其他程式 體i式的實際内ΐ在ΐ = ϊ遭致破壞:可。至於該· 習本發明技術者當可依據其需求做變更。 热 ' f係引用較佳貫施例詳細說明本發明,而非限 而作些微的改變及類技藝人士皆能明瞭’適當 π胳雠太八叩整’仍將不失本發明之要義所在,亦 之精神和範圍。綜上所述,本發明實施之呈 體性,誠已符合專剎、、土士 a t ^ ^ ^ 眚審杳Ig貞4 Ϊ 中所規定之發明專利要件,謹請 貝番查委貝惠予.視,並賜准專利為禱。In January, the photoelectric technology system such as CD-ROM (CD-ROM drive, DVD-ROM drive), DVD broadcast I " 60 ^ the correctness of the material; Is a specific memory block in memory ": & six arts AA ^ 4 heart [blocks, as long as the block will not be inherently implicated by other programs i = ϊ = ϊ Damage caused: Yes. As for those skilled in the invention, they can make changes according to their needs. Hot 'f refers to the preferred embodiments to explain the invention in detail, but not limited to minor changes and those skilled in the art can It is clear that 'appropriate π 雠 太 八 叩 整' will still not lose the essence of the present invention, but also the spirit and scope. In summary, the physical nature of the implementation of the present invention has been in line with the special brake, and the toast ^ ^ ^ 眚 Examination of Igzhen 4 Ϊ requirements for invention patents, I would like to ask Bei Fanchai Beihui to see, and grant the patent as a prayer.

第13頁 200415457 圖式簡單說明 【圖式簡單說明】 圖一係DVD資料區段格式之示意圖。 圖二係DVD資料區塊格式之示意圖。 圖三係習用之DVD資料讀取架構之方塊圖。 圖四係一改良之DVD資料讀取架構之方塊圖。 圖五係本發明較佳實施例用於DVD資料讀取錯誤之修 正方 法的動作流程圖。 圖式 之圖號說明: 310 - 碟片 311- 讀取頭 312- 類比訊號處理器 313- EFM資料 314- EFMPLUS解調器 315- 列資料 316- 列資料介面 317- RSPC解碼器 318- 錯誤偵測碼處理器 319- 主機介面 320 - 記憶體控制器 321- 記憶體 322- 主機 410- 碟片 411- 讀取頭Page 13 200415457 Schematic description [Schematic description] Figure 1 is a schematic diagram of the DVD data sector format. Figure 2 is a schematic diagram of the DVD data block format. Figure 3 is a block diagram of a conventional DVD data reading architecture. Figure 4 is a block diagram of an improved DVD data reading architecture. Fig. 5 is a flow chart of a method for correcting a DVD data reading error according to a preferred embodiment of the present invention. Explanation of drawing numbers of the drawings: 310-disc 311-reading head 312-analog signal processor 313-EFM data 314-EFMPLUS demodulator 315-column data 316-column data interface 317-RSPC decoder 318-error detection Code processor 319- Host interface 320-Memory controller 321- Memory 322- Host 410- Disc 411- Read head

第14頁Page 14

200415457 圖式簡單說明 4 1 2 - 類比訊號處理器 413- EFM 資料 414- EFMPLUS 解調器 4 1 5 -列資料 4 1 6 - 列資料介面及第一次内碼同位解碼器 4 1 7 -錯誤偵測碼產生器 ' 4 1 8 - 列資料緩衝區 420 -記憶體控制器 4 2 1 - 記憶體 4 2 2 -錯誤偵測碼檔案 _ 4 2 4 - 錯誤偵測碼處理器 426- RSPC解碼器 428- 主機介面 4 3 0 - 主機 50〜57- 本發明用於DVD資料讀取錯誤之修正方法的動作流 ’ 程 ‘200415457 Brief description of the diagram 4 1 2-Analog signal processor 413-EFM data 414-EFMPLUS demodulator 4 1 5-Column data 4 1 6-Column data interface and first internal code parity decoder 4 1 7-Error Code generator '4 1 8-Row data buffer 420-Memory controller 4 2 1-Memory 4 2 2-Error code file _ 4 2 4-Error code processor 426- RSPC decoding 428- Host interface 4 3 0-Host 50 ~ 57- The operation flow of the method for correcting DVD data reading error according to the present invention

第15頁Page 15

Claims (1)

200415457 六、申請專利範圍 1 · 一種資料讀取方法,係用於一主機對一儲存裝置之讀取 作業’該儲存裝置包含複數個資料區塊,每一資 包含複數個資料區段以及一錯誤更正碼 correctjon code,ECC),用以對該資料區塊進行錯誤 更正,每一該資料區段則包含一錯誤偵測碼(aar detection code,EDC),用於偵測該資料區段之正確 性,該方法包含以下步驟: (a )提供一特定的記憶區塊; (b )將該儲存裝置之一新資料區塊讀入一記憶體; (c )利用該新資料區塊之錯誤更正碼,對該新資料區 塊進行錯誤更正,並利用該新資料區塊内各資料 區段的錯誤偵測碼,偵測各資料區段之正確性; (d )判斷各資料區段是否皆為正確,若是則傳送該新 資料區塊至該主機,並回到步驟(b ),若至少有 一資料區段不正確,則接續以下步驟; (e )將正確的資料區段存入該特定記憶區塊中; (f )重新將該新資料區塊讀入該記憶體内;以及 (g )將存入該特定記憶區塊中之正確資料區段, 至該記憶體中重讀之新資料區塊的對應位置1寫 回到步驟(c )。 ’再 2 ·如申,專利範圍第丨項所述之方法,其中該儲存骏 n頃光碟機(CD—R0M drive)、唯讀式數位視訊可 D —ROM drive)、DVD 播放機(DVD Piayer)、、機 碟機所讀取。 4 VD ± RW200415457 6. Scope of Patent Application1. A data reading method is used for reading from a host to a storage device. The storage device contains a plurality of data blocks, each of which contains a plurality of data sections and an error. Correctjon code (ECC) is used to correct errors in the data block. Each data segment contains an aar detection code (EDC) to detect the correctness of the data segment. The method includes the following steps: (a) providing a specific memory block; (b) reading a new data block of the storage device into a memory; (c) using the new data block to correct errors Code to correct the new data block, and use the error detection code of each data section in the new data block to detect the correctness of each data section; (d) determine whether each data section is correct For correctness, if it is, then send the new data block to the host, and return to step (b), if at least one data section is incorrect, continue with the following steps; (e) save the correct data section into the specific Memory block (F) re-read the new data block into the memory; and (g) the correct data section that will be stored in the specific memory block to the corresponding new data block re-read in the memory Bit 1 is written back to step (c). 'Further 2 · As claimed, the method described in item 丨 of the patent scope, wherein the storage device is a CD-ROM drive, a read-only digital video can be a D-ROM drive, and a DVD player (DVD Piayer) ), Read by the drive. 4 VD ± RW 第16頁 200415457 六、申請專利範圍 3. 如申請專利範圍第1項所述之方法,其中該錯誤更正碼 包含以 RSPC (Reed Solomon Product Code)方式編碼 的外碼同位(outer-code parity,P0)資料與内碼同 位(inner-code parity,P0)資料 ° 4. 如申請專利範圍第1項所述之方法,其中該特定的記憶 區塊係位於該記憶體内。 5. 如申請專利範圍第1項所述之方法,其中步驟(f )係將 該新資料區塊重新讀入該記憶體之同一位置。Page 16 200415457 VI. Patent Application Range 3. The method described in item 1 of the patent application range, wherein the error correction code includes outer-code parity (P0) encoded in RSPC (Reed Solomon Product Code) ) Data and inner-code parity (P0) data ° 4. The method as described in item 1 of the scope of patent application, wherein the specific memory block is located in the memory. 5. The method according to item 1 of the scope of patent application, wherein step (f) is re-reading the new data block into the same location in the memory. 6. —種資料讀取方法,係用於一主機對一儲存裝置之讀取 作業,該儲存裝置包含複數個資料區塊,每一資料區塊 包含複數個資料區段以及一錯誤更正碼(error correction code,ECC),用以對該資料區塊進行錯誤 更正,每一該資料區段則包含一錯誤偵測碼(e r r 〇 r d e t e c t i ο n c o d e,E D C ),用於損測該資料區段之正確 性,該方法包含以下步驟: 讀入一資料區塊; 利用該資料區塊之錯誤更正碼,對該資料區塊進行 錯誤更正;6. —A method for reading data, which is used for a host to read a storage device. The storage device includes a plurality of data blocks, and each data block includes a plurality of data sections and an error correction code ( error correction code (ECC), which is used to correct errors in the data block. Each data segment contains an error detection code (err 〇rdetecti ο ncode, EDC), which is used to damage the data segment. Correctness, the method includes the following steps: reading a data block; using the error correction code of the data block to correct the data block incorrectly; 利用該資料區塊内各資料區段的錯誤偵測碼,偵測 各該資料區段之正確性;及 當至少有一該資料區段不正確時,執行下列步驟: 儲存該貧料區段之正確者, 重新t買入該資料區塊, 將所儲存之該正確資料區段覆寫至重新讀入之Use the error detection code of each data segment in the data block to detect the correctness of each data segment; and when at least one of the data segments is incorrect, perform the following steps: Store the lean data segment If it is correct, re-buy the data block, and overwrite the stored correct data section to re-read it. 第17頁 200415457 六、申請專利範圍 该貢料區塊的對應位置;及 =複利用該錯誤更正碼進行錯 =僧測石馬以偵須各該資料區 ς〗正、利用該 到全部該資料區段皆正確為止。崔性之步驟,直 7.如申請專利範圍第6項所述之方法,其 由唯讀光碟機(CD~r〇m drive)、唯讀式亥儲存裝置可 (DVD-ROM drive)、dvD 播放機(DVD plav ^視戒光碟機 碟機所讀取。 er)、或DVD±rw 8·如申請專利範圍第6項所述之方法,其中該錯 包含以RSPC (Reed s〇1〇m〇n Product C〇de )曰方式編:馬 的外碼同位(〇uter〜c〇de parity,P0)資料與内石馬= 位(inner-code parity,P〇)資料。 9 ·如申請專利範圍第6項所述之方法,其中當所有的該資 料區段皆正確後,即傳送該正確之資料區塊至該主"機胃。 I 〇·如申請專利範圍第6項所述之方法,其中重新讀入該資 料區塊之步驟,係將該資料區塊重新讀入該資料區塊胃 所佔用記憶體之同—位f上。 II ·如申請專利範圍第1 〇項所述之方法’其中當至少有— 該資料區段不正確時,該資料區段之該正確者係儲存 於該記憶體之特定位置中。 1 2 · —種在光電系統中,用以在讀取到不正確資料時仍可 確保資料正確性之方法,包含以下步驟: 讀入一資料區塊,其中該資料區塊包含複數個資 料區段,且該資料區塊包含至少一不正確的資料區Page 17 200415457 VI. The corresponding position of the tribute block in the scope of the patent application; and = Reuse the error correction code to make a mistake = The monk measures the stone horse to detect each of the data areas〗 正 uses all of the data The segments are all correct. Cui Xing's steps. 7. The method described in item 6 of the scope of patent application, which consists of a CD-ROM drive, a DVD-ROM drive, and a dvD player. (DVD plav ^ read or read by the optical disc drive. Er), or DVD ± rw 8. The method as described in item 6 of the scope of patent application, wherein the error includes RSPC (Reed s〇1〇m〇n Product Code) means: Horse's outer code parity (〇uter ~ code parity, P0) data and inner stone horse = inner-code parity (P〇) data. 9. The method as described in item 6 of the scope of patent application, wherein when all the data sections are correct, the correct data block is transmitted to the master " stomach. I. The method as described in item 6 of the scope of patent application, wherein the step of re-reading the data block is re-reading the data block into the same position f of the memory occupied by the stomach of the data block. . II. The method as described in item 10 of the scope of patent application, wherein when at least-the data section is incorrect, the correct one of the data section is stored in a specific location in the memory. 1 2 · —A method for ensuring the correctness of data when an incorrect data is read in an optoelectronic system, including the following steps: Read a data block, where the data block contains a plurality of data areas Segment, and the data block contains at least one incorrect data area 第18頁 200415457 六、申請專利範圍 段; 儲存該資料區塊中的正確資料區段; 重新讀入該資料區塊;及 將所儲存之該正碟資料區段覆寫至重新讀入之該 資料區塊的對應位置上。 1 3 ·如申請專利範圍第丨2項所述之方法,更包含偵測每個 該資料區段正確性之方法,其包含下列步驟: 利用該資料區塊之錯誤更正碼(e r r 〇 r correction code,ECC)以對該資料區塊進行錯誤更 正;及 利用該資料區塊内每個该資料區段的錯誤偵測碼 (error detect ion code,EDC )以偵測每個該資料區 段之正確性。 1 4 ·如申請專利範圍第1 3項所述之方法,更包含重複執行 重新讀入該資料區塊、儲存该資料區塊中的該正確資 料區段、覆寫該正確的資料區段、偵測每個該資料區 段正確性性,直到全部該資料區段皆正確為止的步 驟。 1 5 ·如申請專利範圍第1 2項所述之方法,其中該光電系統 係唯讀光碟機(CD-ROM drive)、唯讀式數位視訊光碟 機(DVD-ROM drive)、DVD 播放機(DVD player)、或 DVD ± RW 碟機。 1 6 ·如申請專利範圍第1 3項所述之方法,其中該錯誤更正 碼包含以RSPC (Reed Solomon Product Code )方式編Page 18 200415457 VI. The scope of the patent application; Store the correct data section in the data block; re-read the data block; and overwrite the stored data section of the original disc to the re-read The corresponding position of the data block. 1 3 · The method described in item 2 of the patent application scope further includes a method for detecting the correctness of each data segment, which includes the following steps: Use the error correction code of the data block (err 〇r correction code (ECC) to correct the data block; and use the error detection ion code (EDC) of each of the data blocks in the data block to detect the error of each of the data blocks. Correctness. 1 4 · The method described in item 13 of the scope of patent application further includes repeatedly executing the data block to be re-read, storing the correct data section in the data block, overwriting the correct data section, The step of detecting the correctness of each data segment until all the data segments are correct. 15 · The method described in item 12 of the scope of patent application, wherein the photoelectric system is a CD-ROM drive, a DVD-ROM drive, or a DVD player ( DVD player), or DVD ± RW drive. 16 · The method as described in item 13 of the scope of patent application, wherein the error correction code includes RSPC (Reed Solomon Product Code) 第19頁 200415457 六、申請專利範圍 碼的外碼同位(〇 u t e r - c 〇 d e p a r i t y,P 0 )資料與内碼 同位(inner-code parity ,P0)資料。 1 7.如申請專利範圍第1 2項所述之方法,其中當所有的該 資料區段皆正確後,即傳送該正確之資料區塊至與該 光電系統耦合之主機。 1 8.如申請專利範圍第1 2項所述之方法,其中重新讀入該 貢料區塊之步驟’係將該貧料區塊重新讀入該貢料區 塊所佔用記憶體之同一位置上。Page 19 200415457 VI. Patent application scope The outer code parity (〇 u t er-c d e p a r i t y, P 0) data and inner code parity (inner-code parity (P 0) data. 17. The method according to item 12 of the scope of patent application, wherein when all the data sections are correct, the correct data blocks are transmitted to a host coupled to the optoelectronic system. 1 8. The method as described in item 12 of the scope of patent application, wherein the step of re-reading the tribute block is to re-read the lean block into the same location of the memory occupied by the tribute block on. 1 9.如申請專利範圍第1 8項所述之方法,其中該正確資料 區段係儲存於該記憶體之特定位置中。19. The method according to item 18 of the scope of the patent application, wherein the correct data section is stored in a specific location in the memory. 第20頁Page 20
TW92121077A 2003-02-10 2003-08-01 Method for verifying data from a storage device TWI318347B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US44584503P 2003-02-10 2003-02-10

Publications (2)

Publication Number Publication Date
TW200415457A true TW200415457A (en) 2004-08-16
TWI318347B TWI318347B (en) 2009-12-11

Family

ID=34272374

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92121077A TWI318347B (en) 2003-02-10 2003-08-01 Method for verifying data from a storage device

Country Status (2)

Country Link
CN (1) CN1282186C (en)
TW (1) TWI318347B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100380499C (en) * 2004-09-13 2008-04-09 威盛电子股份有限公司 Method for collecting playing data files in single control chip
CN102981969A (en) * 2012-11-21 2013-03-20 记忆科技(深圳)有限公司 Method for deleting repeated data and solid hard disc thereof

Also Published As

Publication number Publication date
CN1514440A (en) 2004-07-21
TWI318347B (en) 2009-12-11
CN1282186C (en) 2006-10-25

Similar Documents

Publication Publication Date Title
US8166369B2 (en) Method for error processing in optical disk memories
US6751771B2 (en) Method and apparatus for error processing in optical disk memories
US6363511B1 (en) Device and method for decoding data streams from storage media
EP0278700A2 (en) Error correction methods and apparatus
JPH1155129A (en) Error correction and parallel check for product code
TWI251738B (en) Method and apparatus for error code correction
JP2003516598A (en) Error correction device
JP3945602B2 (en) Correction inspection method and correction inspection apparatus
JP3713179B2 (en) Device for accessing DVD data
JPS62292026A (en) Method and apparatus for decoding coded symbol block
JPH04222029A (en) Method for correcting error
US20040181736A1 (en) Method of generating error detection codes
TW200415457A (en) Data accessing method
CN101165799A (en) Defect detection system and method
TWI226612B (en) Data accessing apparatus and method
US20050193287A1 (en) Data accessing method
JP2605270B2 (en) Error correction and checking device
JPH05218883A (en) Decoder circuit
US6615384B1 (en) Encoding/decoding method and apparatus and disk storage device
JP2692085B2 (en) Error correction method
US20090259891A1 (en) Defect detection apparatus for optical disc and method thereof
US9294133B1 (en) Method and apparatus for error correction
JPS63298777A (en) Correction system for error detection
JP4652137B2 (en) Method for accessing DVD data
JP3279501B2 (en) Error correction and error detection method for mass storage controller

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees