TW201222321A - Data storage verification method - Google Patents

Data storage verification method Download PDF

Info

Publication number
TW201222321A
TW201222321A TW100139301A TW100139301A TW201222321A TW 201222321 A TW201222321 A TW 201222321A TW 100139301 A TW100139301 A TW 100139301A TW 100139301 A TW100139301 A TW 100139301A TW 201222321 A TW201222321 A TW 201222321A
Authority
TW
Taiwan
Prior art keywords
data
flag
storage
processing unit
data processing
Prior art date
Application number
TW100139301A
Other languages
Chinese (zh)
Other versions
TWI444848B (en
Inventor
Guo-He Huang
Rui-Lin Yan
Zheng-Zhong Ye
jun-qi Ye
Original Assignee
Sitronix Technology Corp
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 Sitronix Technology Corp filed Critical Sitronix Technology Corp
Publication of TW201222321A publication Critical patent/TW201222321A/en
Application granted granted Critical
Publication of TWI444848B publication Critical patent/TWI444848B/zh

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention discloses a data storage verification method, which is applied in a data storage device. The data storage verification method sets a first flag when data is being written into a storage unit of the data storage device; sets a second flag when the data is read from the storage unit; and determines whether to re-store the data according to the first flag and the second flag. The invention simplifies the verification steps of the data storage device, and reduces the data read/write number of the data storage device as well.

Description

201222321 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明係有關於一種資料處理方法’特別疋指一種 資料儲存之驗證方法。 [0002] [先前技術】 在現今科技發達的年代,電腦系統無玎避免地成為 民眾生活上不可或缺的資訊處理工具,對於電腦資訊、 網路資訊、個人資料等等皆是日常生活中不斷重複使用 〇 〇 以及存取。電腦系統除了滿足民眾在工作上的需求,更 另外滿足了民眾對於旅行與娛樂各方面的全部需求,譬 如財務明細、帳號密碼、私密文件和照片、商業文件以 及智慧創作等資料,都可透過電腦系統操作或儲存在電 腦系統的硬碟中,甚至是近期發展出的攜帶式儲存裝置 ’例如:隨身碟與記憶卡。 為了加快資料存取的效能,習知資料儲存技術中發 展出了利用快取記憶體減少資料存取的負擔,但習知資 料存取技術仍有其缺失,請參閱第一 A圖至第一£:圖,立 為習知資料儲存技術之示意圖。如第_A圖至第圖所 示,一控制單元10電性連接至儲存裝置20,儲存穿置 設置-資料處理單元22、—記憶體區物與—儲純塊 26中’且習知資料儲存技術係在錯存區塊26建立一第一 資料區塊A 262A與一第一資料區塊B 26 ,以用於驗證 資料儲存過程中的資料完整性,且第—資料區塊A 2似 與第二資料區塊B 2㈣分別為奇數資料區塊與偶數資料 區塊。 100139301 如,-A圖所示,控制單元1〇傳送—第 表單编號A0101 第3頁/共33頁 、料02至 1002066635-0 201222321 儲存裝置,且儲存裝㈣接續寫人記憶體區塊24,接著 ,儲存裝置20寫入第-資料1()2至儲存區塊^時如第— :示,儲存裝置20寫入第一資料1〇2至第一資料區W ,…、後如第-C圖所示,儲存裝置2Q自第—資料區塊 A 262A讀取至記憶體區塊14之第二位址… 圖所示’將第一資料m寫入至儲存區_之第—資料區 «簡,如此儲存裝㈣藉由第—資料區塊八26_ 第-資料區塊B 262B分別儲存有第—資料1〇2,用以確、 認第-資料102儲存無誤,因此控制單元1〇不需針對第_ 資料102重新建立資料。201222321 VI. Description of the Invention: [Technical Field of the Invention] [0001] The present invention relates to a data processing method, particularly to a method of verifying data storage. [0002] [Prior Art] In today's technologically advanced era, computer systems are indispensable to become an indispensable information processing tool for people's lives. Computer information, online information, personal information, etc. are constantly in daily life. Reuse 〇〇 and access. In addition to meeting the needs of the people at work, the computer system also meets all the needs of the public for all aspects of travel and entertainment, such as financial details, account passwords, private documents and photos, business documents and smart creations, all through the computer. The system is operated or stored on a hard drive of a computer system, or even a recently developed portable storage device such as a flash drive and a memory card. In order to speed up the efficiency of data access, the burden of using data memory to reduce data access has been developed in the conventional data storage technology. However, the conventional data access technology still lacks it. Please refer to Figure A to Figure 1. £: Figure, which is a schematic diagram of the conventional data storage technology. As shown in the figure _A to the figure, a control unit 10 is electrically connected to the storage device 20, and stores the wear setting-data processing unit 22, the memory area and the storage block 26, and the conventional data. The storage technology establishes a first data block A 262A and a first data block B 26 in the error block 26 for verifying the data integrity during the data storage process, and the first data block A 2 The second data block B 2 (four) is an odd data block and an even data block, respectively. 100139301 As shown in Figure -A, the control unit 1 transmits - Form No. A0101 Page 3 / Total 33, Material 02 to 1002066635-0 201222321 Storage device, and storage device (4) Continue to write the memory block 24, next, when the storage device 20 writes the first data 1 () 2 to the storage block ^ as shown in the first -:, the storage device 20 writes the first data 1 〇 2 to the first data area W, ... As shown in Fig. C, the storage device 2Q is read from the first data block A 262A to the second address of the memory block 14... The first data m is written to the storage area _ The data area «Simplified, such a storage device (4) is stored by the first data block VIII 26_--data block B 262B with the first data 1 〇 2, to confirm, recognize the first - data 102 is stored correctly, so the control unit 1〇 There is no need to re-create the data for the _data 102.

同理’如第二A圖至第二E圖所示,第二資料1〇4之 存取方式如上述’但是控制單元1G由於電源中斷或傳送 線路接觸不良或溢位運算等因素,而導致第二資料1〇4之 資料傳輸中斷,也就是如第二A圖至第圖所示,資料之 處理單元22僅將第二資料104完整地寫入第二資料區塊a 264A並未將第二資料104完整地寫入至第二資料區塊b 264B,而未完成第二資料1〇4之儲存動作,因此資料處理 單元22藉由第二資料區塊a 264績第二資料區塊B 未儲存相同資料,其中第二D圖之第二資料區塊β 2⑽所 儲存之第二資料104以虛線表示第二資料1〇4 存,由於資料處理單元22依據第二D圖所示之儲存 斷第二資料m需重新儲存至第二資料區灿叫 如第二E圖所示’以確認第二資料1〇4確實_ 區 塊26中’抑或重新執行第二續至第二C圖所示之儲存動 作並一併執行第一E圖所示之蚀产紅仏 ⑽之儲存。 切存動作’以完成第二資料 100139301 表單編號A0101 第4頁/共33頁 1002066635-0 201222321 由上述可知’由於習知資料儲存技術因每一筆資料 需重複在儲存區塊分別寫入一資料區塊績_資料區塊B 而造成儲存一筆資料時使用之空間容量過大的問題而 無法針對儲存裝置讀存”進行有效彻,同時上述 習知資料儲存技術造成儲存I置的資料讀寫次數增加, 對於儲存裳置的使用壽命是相當大的損耗。9 有妙此’本發贿出—„_存之驗證方法, =善習知資料儲存技術之占用儲存空間的問題,兼且 0 [0003] 100139301 :::—,以增加資料存取效二 【發明内容】 方法本目的,在於提供一種資料儲存之驗證 其減少㈣“讀,^加 取效率以及使用壽命。 &罝之資料存 本發明係提供-種資料儲存之驗 一資料儲純置,„_存之驗衫法’其應用於 料處理單元寫人-先使用:資 :定-第-旗標1後使用該資料處== 存早續儲存之該資料並設定 70讀取· 旗標與第二旗標判斷是否重新儲標’再依據第- 第-旗標與第二旗標應用於資料儲存:二此本發明以 資料讀取次數與占用之儲存空間驗證’因而減少 用第—旗標與第二旗標驗證储存單由於本發明利 此簡化儲存單元之驗證方:::儲存完成,因 數。 热需増加資料讀寫之次 1002066635-0 201222321 之功效更有進—步之瞭解與認識,謹佐以較佳之實施例 圖及配合詳細之說明,說明如後: 【實施方式】 [0004] 100139301 凊參閱第三圖’其為本發明之資料儲存之驗證方法 之實把例之仇程圖。如圖所示,本發明之資料儲存之 驗證方法铺於—資料儲存1置30,Μ依據步驟5⑽ 所不,其如第四Α圖所示’資料儲存裝置30使用-資料處 理早兀32自一控制單元40接收-第-資料402並將第-資 料402寫入至該資料儲存裝測之—第—儲存單元μ之一 第一位址342,其中本實施例之第-儲存單元32為一記憶 體單元。 接續’依據步驟川0所示,其如第四B圖所示,使 用貢料處理單元32讀取該第-儲存單元34之第-位址342 内之第—資料402並寫入至—第二儲存單元⑽之第一儲存 位置362,同時,資料處理單元犯於第一資料術完整地 寫入第-儲存位置362後,方設定—第—旗標37,其中本 實施例之第-旗標37設定於—第二儲存單㈣之—第二 儲存位置364 ’該第二儲存位置364不影響資料之存取, 因此資料處理單元32在第-資料術完整地寫入至第二儲 存單元36時設定該第-旗標37 ;接續,按步驟si2〇所干 ’其如第四C圖所示’本實施例之資料處理單從讀取^ 一儲存位置362之第一資料402並回存至第—儲存單元^ 之第-位址342,且資料處理單元32於完整地讀取第—資 料402後,設定第二旗標38至第一儲存單元34之奸' 址344,且該第二位址344不影響第一儲存單元以夂 存取,由☆本實施例之第-旗標37與第二旗標 表單编號A0101 第6頁/共33頁 白I里16 100206 201222321 ‘位元之使用 用 - 丨田即,储存空間。此外, 上述之第一資料402更可設置一檢杳 概笪碼,使資料處理單 32依據該檢查碼分別步驟sn〇設定^银標37以及在舟 驟S120設定第二旗標38。 饮歹鄉6130所示,如第四ϋ圖所示 Ο 〜叫不,資料虚 理單元32分別自第—儲存單心與第二铸存單元36讀取 第一旗標37與第二旗標38,以依據第-旗標37與第二旗 標38之數值,而判斷資料儲存裝置3()是否重新鍺存第―、 資料402 ’本實施例之資料處理單元_利用第—旗標π 與第二旗標38之互斥或邏輯運算結果,以獲得—運算:吉 果(圖未示)並由該運算結果判斷是否重新儲存第一資料 402’當第-旗標37與第二旗標38之運算結果為相等,也 就是第-旗標37與第二旗標38之互斥或運算結果為〇時, 軌行步驟S140,當第-旗標37與第二旗標38之運算結果 不相等,也就是第一旗標37與第二旗標38之互斥或運算 結果為1時,執行步驟S150。Similarly, as shown in the second A to the second E, the access mode of the second data 1〇4 is as described above, but the control unit 1G is caused by factors such as power interruption or poor transmission line contact or overflow operation. The data transmission of the second data 1〇4 is interrupted, that is, as shown in the second A to the figure, the processing unit 22 of the data only writes the second data 104 completely into the second data block a 264A. The second data 104 is completely written to the second data block b 264B, and the storage operation of the second data 1〇4 is not completed. Therefore, the data processing unit 22 performs the second data block B by the second data block a 264. The same data is not stored, wherein the second data 104 stored in the second data block β 2 (10) of the second D picture is represented by a broken line as the second data 1〇4, because the data processing unit 22 stores according to the second D picture. The second data m needs to be re-stored to the second data area as shown in the second E picture to confirm the second data 1〇4 indeed _ block 26 or re-execute the second continuation to the second C picture The storage action is shown and the storage of the eclipse (10) shown in Figure E is performed. "Save the action" to complete the second data 100139301 Form No. A0101 Page 4 / Total 33 pages 1002066635-0 201222321 As can be seen from the above, 'Because the conventional data storage technology needs to be repeated in the storage block, each data area is written separately. Block performance _ data block B causes the problem of excessive space capacity when storing a piece of data and cannot be read and stored for the storage device. At the same time, the above-mentioned conventional data storage technology causes the number of reading and writing of the data stored in the I file to increase. For the service life of the stored skirt is a considerable loss. 9 There is a wonderful 'this bribe out _ _ _ verification method, = good knowledge of the storage technology of the storage space, and 0 [0003] 100139301:::-, to increase data access efficiency 2 [Invention content] The purpose of the method is to provide a data storage verification to reduce (4) "reading, ^ adding efficiency and service life. & The system provides a data storage test, a data storage pure set, „_存的试衫法', which is applied to the material processing unit to write people-first use: capital: fixed-first-flag 1 Material == Save the data stored in the early storage and set 70 reading · Flag and second flag to determine whether to re-mark 'and then according to the first - flag and the second flag for data storage: two The present invention verifies the storage space with the number of data reads and the occupied space. Thus, the verification of the storage list by the first flag and the second flag is reduced. Since the present invention simplifies the verification of the storage unit::: storage is completed, factor. The need for reading and reading data is 1002066635-0 201222321. The effect of the step is better. The understanding and understanding of the steps are better. The preferred embodiment diagram and the detailed description are as follows: [Embodiment] [0004] 100139301第三 Refer to the third figure, which is the embodiment of the verification method of the data storage of the present invention. As shown in the figure, the verification method of the data storage of the present invention is laid out in the data storage 1 setting 30, and according to the step 5 (10), as shown in the fourth drawing, the data storage device 30 is used - the data processing is as early as 32 A control unit 40 receives the -th data 402 and writes the first data 402 to the first address 342 of the first storage unit μ of the data storage device, wherein the first storage unit 32 of the embodiment is A memory unit. According to the step 0, as shown in FIG. 4B, the tributary processing unit 32 reads the first data 402 in the first address 342 of the first storage unit 34 and writes it to the first The first storage location 362 of the storage unit (10), and at the same time, the data processing unit commits the first data to the first storage location 362, and then sets the first flag - 37, wherein the flag of the embodiment The flag 37 is set to - the second storage list (four) - the second storage location 364 'the second storage location 364 does not affect the access of the data, so the data processing unit 32 is completely written to the second storage unit in the first data schema At 36 o'clock, the first flag is set; continuation, according to the step si2, as shown in FIG. 4C, the data processing list of the present embodiment reads from the first data 402 of the storage location 362 and returns. And storing the first address 342 of the first storage unit ^, and after the data processing unit 32 completely reads the first data 402, setting the second flag 38 to the first address 344 of the first storage unit 34, and the The second address 344 does not affect the first storage unit to be accessed by 夂, by the ☆th flag of the present embodiment - A0101 form two flag Page number 6 / I of 33 in 16 white using 100,206,201,222,321 'bits only - Shu Tian i.e., storage space. In addition, the first data 402 may be further provided with a check code, so that the data processing unit 32 sets the silver mark 37 according to the check code step sn1 and the second flag 38 in the step S120. As shown in the fourth section of the drinking water township 6130, as shown in the fourth drawing, the data imaginary unit 32 reads the first flag 37 and the second flag from the first storage unit and the second casting unit 36, respectively. 38. Based on the values of the first flag 37 and the second flag 38, determine whether the data storage device 3() re-stores the first and the data 402. The data processing unit of the embodiment uses the first flag π. The result of the exclusive or logical operation with the second flag 38 is obtained by the operation: Jiguo (not shown) and judged by the result of the operation whether to re-store the first data 402' when the first flag 37 and the second flag The operation result of the label 38 is equal, that is, when the mutual exclusion or operation result of the first flag 37 and the second flag 38 is ,, the track step S140, when the first flag 37 and the second flag 38 are operated The result is not equal, that is, when the mutual exclusion or operation result of the first flag 37 and the second flag 38 is 1, step S150 is performed.

100139301 按,步驟S140所示,由於第一旗標37與第二旗標38 兩者相等,故資料處理單元32不重新儲存該第—資料4〇2 ’按步驟S150所示,由於第一旗標37與第二旗標38兩者 不相等,資料處理單元32重新儲存該第一資料4〇2,也就 是資料處理單元32重新讀取第一位址342之第一資料4〇2 並寫入第一儲存單元36並設定第一旗標37,以及重新將 第儲存位置362上的第一資料4〇2讀取至第一儲存單元 34並設定第二旗標38。 以上所述之第一旗標37與第二旗標38係分別儲存在 第儲存單元36與第一儲存單元34不同於第一資料4〇2之 表軍編號Α〇Ι〇ι 第 7 頁/共 33 頁 1002066635-0 201222321 ^ ,本發明不侷限於此,第一旗標37與第一 一、:〇2更可在第二儲存單元36中儲存於相同位置,且第 旗標37係位於第—資料4G2之後,第二旗標38與第-資 ^ 更可在第一儲存單元34中一併儲存於相同位置36之 資料儲存位置’例如:上述實施例之資料處理單元32於完 成寫入第-資料4G2至第二儲存單元36之—第—儲存位置 寺併將第一旗標37設定於第一儲存位置362,且第 旗標37係位於第_資料4()2之末段,同理,資料處理單 心2於完成將第二儲存單元⑽之第一資料4〇2讀取至第一 :子單元34之第-位址342時’-併將第二旗標38設定於 第一位址342上,並位於第一資料4〇2之末段。 100139301 凊參閱第五圖,其為本發明之第一旗標與第二旗標 之實施例之波形圖,並請一並參閱第四A圖至第四D圖 如圖所示,第—旗標37與第二旗標38依據資料之儲存 過程可區分為複數週期ΤΙ、T2、T3、T4,其中週期"與 T3為資料處理單元32將資料寫入第二儲存單元%之週期 ,週期T2與T4為資料處理單元32將資料自第二儲存單元 36讀取出之週期,本實施例之第一旗標37與第二旗標μ 之初始值皆為0,而進入週期n後係由第一旗標37先反相 而自〇轉變為1,進入週期了2後係由第二旗標38由丨轉變為 0,且因第一旗標37與第二旗標38之反相與否係由資料於 第二儲存單元36之儲存動作與讀取動作所決定,所以資 料處理單元32再依據上述將第一旗標37於週期^自i轉變 為0,且第二旗標38於週期T4自1轉變為〇,也就是說本實 施例之第一旗標37與第二旗標38於週期T2與以為相同數 值,即表示資料已完成儲存,所以資料處理單元不重 表單編號A0101 第8頁/共33頁 ^ 1002066635-0 201222321 新儲存資料。 Ο 之第—旗標37與第二_38為μ 單元32即重新_料,也就是心 重新如第四㈣至第四C圖所示之儲存動作。此 L 例亦可將第—旗標37與第二旗_之判斷方 相反模式’也就是第一旗標37與第二旗標38之 异州果相等時,資料處理單元32重新铸存資料 旗標37與第二旗標38之運算結果*相等時,資料處理單 元32不重新儲存資料。 由上述可知,本發賴由第—旗標37與第二旗標Μ 得知是否需要判斷資料是否需要重新儲存,因而避免驗 證儲存需重複儲存資料,所以本發明藉由第_旗標心 第二旗標38驗證資料儲存是否完成,而減少資料讀寫次 數’且減少占用之儲存空間,進而可延長f料儲存裝置 3 0之使用壽命。100139301, as shown in step S140, since the first flag 37 and the second flag 38 are equal, the data processing unit 32 does not re-store the first data 4〇2' as shown in step S150, because the first flag The flag 37 and the second flag 38 are not equal, and the data processing unit 32 re-stores the first data 4〇2, that is, the data processing unit 32 re-reads the first data 4〇2 of the first address 342 and writes The first storage unit 36 is entered and the first flag 37 is set, and the first data 4〇2 on the storage location 362 is read again to the first storage unit 34 and the second flag 38 is set. The first flag 37 and the second flag 38 described above are respectively stored in the storage unit 36 and the first storage unit 34 different from the first data 4〇2. A total of 33 pages 1002066635-0 201222321 ^ , the present invention is not limited thereto, the first flag 37 and the first one: 〇 2 can be stored in the same location in the second storage unit 36, and the flag 37 is located After the first data 4G2, the second flag 38 and the first resource can be stored in the first storage unit 34 in the data storage location of the same location 36. For example, the data processing unit 32 of the above embodiment finishes writing. Entering the first-data 4G2 to the first storage location temple of the second storage unit 36 and setting the first flag 37 to the first storage location 362, and the flag 37 is located at the end of the _th 4()2 Similarly, the data processing unit 2 completes reading the first data 4〇2 of the second storage unit (10) to the first: the first address 342 of the subunit 34'- and sets the second flag 38 It is on the first address 342 and is located at the end of the first data 4〇2. 100139301 第五 Refer to the fifth figure, which is a waveform diagram of an embodiment of the first flag and the second flag of the present invention, and please refer to the fourth A picture to the fourth D picture as shown in the figure, the first flag The standard 37 and the second flag 38 can be divided into a complex period ΤΙ, T2, T3, and T4 according to the storage process of the data, wherein the period " and T3 are periods in which the data processing unit 32 writes the data into the second storage unit %, the period T2 and T4 are the periods in which the data processing unit 32 reads the data from the second storage unit 36. The initial values of the first flag 37 and the second flag μ in this embodiment are both 0, and after entering the period n, The first flag 37 is inverted first and then self-turned to 1, and after entering the period 2, the second flag 38 is changed from 丨 to 0, and the first flag 37 and the second flag 38 are inverted. Whether or not the data is determined by the storage operation and the reading operation of the second storage unit 36, the data processing unit 32 further converts the first flag 37 to 0 from the period according to the above, and the second flag 38 In the period T4, the transition from 1 to 〇, that is, the first flag 37 and the second flag 38 of the embodiment are the same in the period T2. The value indicates that the data has been stored, so the data processing unit is not heavy. Form No. A0101 Page 8 of 33 ^ 1002066635-0 201222321 New data stored. The first flag - 37 and the second _38 are the μ unit 32, that is, the re-feed, that is, the heart is again stored as shown in the fourth (four) to fourth C pictures. The L example can also re-cast the data when the first flag 37 and the second flag_the opposite party's mode are the same as the first flag 37 and the second flag 38. When the result of the operation of the flag 37 and the second flag 38 is equal, the data processing unit 32 does not re-store the data. It can be seen from the above that the present invention is determined by the first flag 37 and the second flag 是否 whether it is necessary to determine whether the data needs to be re-stored, thereby avoiding the need to repeatedly store the data for verification storage, so the present invention is based on the The second flag 38 verifies whether the data storage is completed, and reduces the number of data read and writes' and reduces the storage space occupied, thereby prolonging the service life of the f material storage device 30.

復參閱第四A圖至第四D圖,第一旗標37係設定於第 二儲存單元36,第二旗標38係設定於第—儲存單元^ , 此外,如第六A圖至第六D圖所示,本發明之第一旗標π 與第二旗標38更可分別蚊於-第三儲存單元__第 四儲存單元52中,其t本實施例之第三儲存單元5〇與第 四儲存單元52為資料儲存裝置30之暫存器。此外,本發 明更可將第-旗標37與第二旗標38之二攔位設定於資料 之末段,再由資料處理單元犯讀取該些欄位,以判斷第 一旗標37與第二旗標38是否相等。以上實施例之第一旗 標37與第二旗標38係設定於不同儲存單元,伸本發明不 100139301 限於此,更可設定於同一儲存單元, 表單編號Λ010〗 第9 f/共33頁 例如··第一旗標3 7與 1002066635-0 201222321 第二旗標38皆設定於第二儲存單元。 综上所述’本發縣-種㈣儲存之驗證方法,盆 先藉由寫人資料至第—儲存單元與第二儲存單元時分別 設定第-旗標與第二旗標,以提供資料處理單元判斷資 料紀錄是否需要設定,或者藉由第—儲存單元與第二儲 存單元讀取出資料時分別設定第一期標與第二旗標,以 用於判斷資料紀錄是否需要設定,如此減少資料讀寫次 數,以及減少占用之儲存空間。 雖然本發明已以較佳實施例揭露如上然其並非用 以限定本發明’任何熟習此技藝者,在不脫離本發明之 精神和範圍内,當可作些許之更動與潤飾,因此本發明 之保護範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明】 [0005] 第一A圖為習知資料儲存技術之示意圖; 第一 B圖為習知資料儲存技術之示意圖; 第一 C圖為習知資料儲存技術之示意圖; 第一 D圖為習知資料儲存技術之示意圖; 第二A圖為習知資料儲存技術之示意圖; 第二B圖為習知資料儲存技術之示意圖; 第二C圖為習知資料儲存技術之示意圖; 第二D圖為習知資料儲存技術之示意圖; 第二E圖為習知資料儲存技術之示意圖; 第三圖為本發明之驗證方法之一較佳實施例之流程圖; 第四A圖為本發明之接收資料之一較佳實施例之示意圖; 第四B圖為本發明之設定第一旗標之一較佳實施例之示意 圖, 100139301 表單編號ΜΠ01 第10頁/共33頁 1002066635-0 201222321 第四c圖為本發明之設定第二旗標之一較佳實施例之示意 圖; 第四D圖為本發明之讀取第一旗標與第二旗標之一較佳實 施例之示意圖; 第五圖為本發明之第一旗標與第二旗標之一實施例之波 形圖; 第六A圖為本發明之接收資料之另一較佳實施例之示意圖 第六B圖為本發明之設定第一旗標之另一較佳實施例之示 〇 意圖; 第六C圖為本發明之設定第二旗標之另一較佳實施例之示 意圖;以及 第六D圖為本發明之讀取第一旗標與第二旗標之另一較佳 實施例之示意圖。 [0006]Referring to the fourth to fourth figures D, the first flag 37 is set in the second storage unit 36, the second flag 38 is set in the first storage unit ^, and, in addition, as shown in the sixth A to sixth As shown in FIG. D, the first flag π and the second flag 38 of the present invention are respectively mosquito-in the third storage unit__the fourth storage unit 52, which is the third storage unit 5 of the embodiment. The fourth storage unit 52 is a register of the data storage device 30. In addition, the present invention can further set the second flag of the first flag 37 and the second flag 38 at the end of the data, and then the data processing unit commits to read the fields to determine the first flag 37 and Whether the second flag 38 is equal. The first flag 37 and the second flag 38 of the above embodiment are set in different storage units, and the invention is not limited to 100139301, and can be set in the same storage unit, the form number Λ 010 〗 9 f / total 33 pages, for example ··The first flag 3 7 and 1002066635-0 201222321 The second flag 38 is set in the second storage unit. To sum up the verification method of 'Benfa County-species (4) storage, the basin first sets the first flag and the second flag by writing the person data to the first storage unit and the second storage unit to provide data processing. The unit determines whether the data record needs to be set, or sets the first period flag and the second flag separately when the data is read by the first storage unit and the second storage unit, so as to determine whether the data record needs to be set, thereby reducing the data. The number of reads and writes, as well as reducing the storage space occupied. While the present invention has been described in its preferred embodiments, the invention is not intended to limit the invention, and the invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application attached. BRIEF DESCRIPTION OF THE DRAWINGS [0005] The first A is a schematic diagram of a conventional data storage technology; the first B is a schematic diagram of a conventional data storage technology; the first C is a schematic diagram of a conventional data storage technology; Figure D is a schematic diagram of a conventional data storage technique; Figure 2A is a schematic diagram of a conventional data storage technique; Figure 2B is a schematic diagram of a conventional data storage technique; and Figure 2C is a schematic diagram of a conventional data storage technique; The second diagram is a schematic diagram of a conventional data storage technology; the second diagram is a schematic diagram of a conventional data storage technology; the third diagram is a flow chart of a preferred embodiment of the verification method of the present invention; A schematic diagram of a preferred embodiment of the received data of the present invention; FIG. 4B is a schematic diagram of a preferred embodiment of setting a first flag of the present invention, 100139301 Form No. ΜΠ 01 Page 10 / Total 33 Page 1002066635-0 201222321 The fourth c is a schematic diagram of a preferred embodiment of setting a second flag of the present invention; and the fourth D is a schematic diagram of a preferred embodiment of reading the first flag and the second flag of the present invention The fifth picture is A waveform diagram of an embodiment of the first flag and the second flag of the invention; a sixth diagram is a schematic diagram of another preferred embodiment of the received data of the present invention; Another preferred embodiment of the present invention is shown; FIG. 6C is a schematic diagram of another preferred embodiment of setting a second flag of the present invention; and FIG. 6D is a first flag for reading the present invention A schematic diagram of another preferred embodiment of the second flag. [0006]

【主要元件符號說明】 10 控制單元 102 第一資料 104 第二資料 20 儲存裝置 22 資料處理單元 24 記憶體區塊 242 第一位址 244 第二位址 26 儲存區塊 262A 第一資料區塊A[Main component symbol description] 10 Control unit 102 First data 104 Second data 20 Storage device 22 Data processing unit 24 Memory block 242 First address 244 Second address 26 Storage block 262A First data block A

262B第一資料區塊B 表單編號A0101 第11頁/共33頁262B First Data Block B Form No. A0101 Page 11 of 33

1002066635-0 100139301 201222321 264A 第二資料區塊A 264B 第二資料區塊B 30 資料儲存裝置 32 資料處理單元 34 第一儲存單元 342 第一位址 344 第二位址 36 第二儲存單元 362 第一儲存位置 364 第二儲存位置 37 第一旗標 38 第二旗標 40 控制單元 402 第一資料 50 第三儲存單元 52 第四儲存單元 100139301 表單編號A0101 第12頁/共33頁 1002066635-01002066635-0 100139301 201222321 264A Second data block A 264B Second data block B 30 Data storage device 32 Data processing unit 34 First storage unit 342 First address 344 Second address 36 Second storage unit 362 First Storage location 364 second storage location 37 first flag 38 second flag 40 control unit 402 first data 50 third storage unit 52 fourth storage unit 100139301 form number A0101 page 12 / total page 332066635-0

Claims (1)

201222321 七、申請專利範圍: 1 . 一種資料儲存之驗證方法,其用於儲存一資料至一資料儲 存裝置,該資料存取方法包含: 使用一資料處理單元寫入該資料至該資料儲存裝置之一儲 存單元並設定一第一旗標; 使用該資料處理單元讀取該儲存單元内之該資料並設定一 第二旗標;以及 依據該第一旗標與該第二旗標判斷是否重新儲存該資料。 2 .如申請專利範圍第1項所述之驗證方法,其中該資料處理 ^ 單元依據該第一旗標與該第二旗標之數值相等,而不重新 儲存該資料;該資料處理單元依據該第一旗標與該第二旗 標之數值不相等,而重新儲存該資料。 3 .如申請專利範圍第1項所述之驗證方法,其中該資料處理 單元依據該第一旗標與該第二旗標之數值不相等,而重新 建立該資料;該資料處理單元依據該第一旗標與該第二旗 標之數值相等,而不重新儲存該資料。 4 .如申請專利範圍第1項所述之驗證方法,其中該資料處理 單元邏輯運算該第一旗標與該第二旗標產生一運算結果, 該資料處理單元依據該運算結果判斷是否重新儲存該資料 〇 5 .如申請專利範圍第4項所述之驗證方法,其中該資料處理 單元互斥或邏輯運算該第一旗標與該第二旗標產生該運算 結果。 6 .如申請專利範圍第1項所述之驗證方法,其中該資料設置 一檢查碼。 100139301 表單編號A0101 第13頁/共33頁 1002066635-0 201222321 7 .如申請專利範圍第6項所述之驗證方法,其中於寫入該資 料至該資料儲存裝置之一儲存單元之步驟中,該資料處理 單元依據該檢查碼設定該第一旗標。 8 .如申請專利範圍第6項所述之資料儲存之驗證方法,其中 於使用該資料處理單元讀取該儲存單元内之該資料之步驟 中,該資料處理單元依據該檢查碼設定該第二旗標。 9 .如申請專利範圍第1項所述之資料儲存之驗證方法,其中 該第一旗標與該第二旗標係設定於該資料儲存裝置之不同 儲存位置。 10 .如申請專利範圍第1項所述之資料儲存之驗證方法,其中 該第一旗標與該第二旗標係設定於該資料儲存裝置之同一 儲存位置。 100139301 表單編號A0101 第14頁/共33頁 1002066635-0201222321 VII. Patent application scope: 1. A method for verifying data storage for storing a data to a data storage device, the data access method comprising: using a data processing unit to write the data to the data storage device a storage unit and setting a first flag; using the data processing unit to read the data in the storage unit and setting a second flag; and determining whether to re-storage according to the first flag and the second flag The information. 2. The verification method according to claim 1, wherein the data processing unit is equal to the value of the second flag according to the first flag, and the data is not re-stored; the data processing unit is configured according to the The first flag is not equal to the value of the second flag, and the data is re-stored. 3. The verification method according to claim 1, wherein the data processing unit re-establishes the data according to the first flag and the second flag are not equal; the data processing unit is based on the first A flag is equal to the value of the second flag without re-storing the data. 4. The verification method according to claim 1, wherein the data processing unit logically operates the first flag and the second flag to generate an operation result, and the data processing unit determines whether to re-storage according to the operation result. The method of claim 4, wherein the data processing unit mutually exclusive or logically operates the first flag and the second flag to generate the operation result. 6. The verification method according to claim 1, wherein the data is set with a check code. </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; The data processing unit sets the first flag according to the check code. 8. The method for verifying data storage according to claim 6, wherein in the step of using the data processing unit to read the data in the storage unit, the data processing unit sets the second according to the check code Flag. 9. The method of verifying data storage as described in claim 1, wherein the first flag and the second flag are set at different storage locations of the data storage device. 10. The method of verifying data storage as described in claim 1, wherein the first flag and the second flag are set in the same storage location of the data storage device. 100139301 Form No. A0101 Page 14 of 33 1002066635-0
TW100139301A 2010-10-29 2011-10-28 Data storage verification method TW201222321A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US40805810P 2010-10-29 2010-10-29

Publications (2)

Publication Number Publication Date
TW201222321A true TW201222321A (en) 2012-06-01
TWI444848B TWI444848B (en) 2014-07-11

Family

ID=46552363

Family Applications (2)

Application Number Title Priority Date Filing Date
TW100139297A TWI525440B (en) 2010-10-29 2011-10-28 A data latching device for starting an electronic device and a method of starting the electronic device
TW100139301A TW201222321A (en) 2010-10-29 2011-10-28 Data storage verification method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW100139297A TWI525440B (en) 2010-10-29 2011-10-28 A data latching device for starting an electronic device and a method of starting the electronic device

Country Status (1)

Country Link
TW (2) TWI525440B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9613194B2 (en) 2014-06-18 2017-04-04 Noodoe Corporation Function control methods and systems for wearable electronic devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9613194B2 (en) 2014-06-18 2017-04-04 Noodoe Corporation Function control methods and systems for wearable electronic devices

Also Published As

Publication number Publication date
TWI444848B (en) 2014-07-11
TW201217976A (en) 2012-05-01
TWI525440B (en) 2016-03-11

Similar Documents

Publication Publication Date Title
TWI358068B (en) Writing method for non-volatile memory and control
TWI362668B (en) Method for promoting management efficiency of an non-volatile memory storage device, non-volatile memory storage device therewith, and controller therewith
TW200929224A (en) Data writing method for flash memory and controller thereof
TW201003392A (en) Data accessing method for flash memory and storage system and controller using the same
TW201019107A (en) Method for managing a memory apparatus, and associated memory apparatus thereof
TW201011755A (en) Flash memory system and its data recovery method
TW200915327A (en) Method of protecting data for power failure and controller using the same
TW200945037A (en) Data writing method, and flash storage system and controller using the same
TW201005746A (en) Memory storage device and control method thereof
TW200506609A (en) Data storage device, management information updating method in data storage device, and computer program
TW200951979A (en) Data writing method for flash memory and storage system and controller using the same
JP2011520188A (en) Memory system copyback optimization
TW201103025A (en) Logical block management method for a flash memory and control circuit and storage system using the same
TW200935422A (en) Flash memory data writing method and controller thereof
CN102301345A (en) Hybrid memory device
TW200917270A (en) Wear leveling method and controller using the same
TW201217968A (en) Data writing method, memory controller and memory storage apparatus
CN101661431B (en) Block management method for flash memory, flash storage system and controller
TW201110129A (en) Method for accessing a flash memory and associated memory device
US9384125B2 (en) Method for accessing flash memory having pages used for data backup and associated memory device
TW201104420A (en) Memory device and data management method thereof
CN111475425A (en) Method for managing flash memory module and related flash memory controller and electronic device
TW200921385A (en) Storage system for improving efficiency in accessing flash memory and method for the same
CN106575273A (en) Systems and methods for expanding memory for system on chip
TWI470432B (en) Electronic system and flash memory managing method thereof