[go: up one dir, main page]

TWI453654B - Storage and method for performing data backup - Google Patents

Storage and method for performing data backup Download PDF

Info

Publication number
TWI453654B
TWI453654B TW098126050A TW98126050A TWI453654B TW I453654 B TWI453654 B TW I453654B TW 098126050 A TW098126050 A TW 098126050A TW 98126050 A TW98126050 A TW 98126050A TW I453654 B TWI453654 B TW I453654B
Authority
TW
Taiwan
Prior art keywords
data
character
encoded
flash memory
interval
Prior art date
Application number
TW098126050A
Other languages
Chinese (zh)
Other versions
TW201106252A (en
Inventor
Chiang Chung Tang
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW098126050A priority Critical patent/TWI453654B/en
Publication of TW201106252A publication Critical patent/TW201106252A/en
Application granted granted Critical
Publication of TWI453654B publication Critical patent/TWI453654B/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

儲存器及其資料備份方法 Storage and data backup method thereof

本發明涉及一種儲存器設計方法,尤其是一種儲存器及其資料備份方法。 The invention relates to a storage device design method, in particular to a storage device and a data backup method thereof.

電腦系統突發斷電後的資料備份技術,已經被廣泛應用於儲存器設計領域。參閱圖1所示,為傳統的儲存器設計,當電腦系統斷電後,系統控制晶片16將記憶體10中的資料直接拷貝到快閃記憶體(Flash memory)18,在電腦系統恢復供電時,再將快閃記憶體18中的數據傳回至記憶體10。但是,這種資料備份方法是將資料明碼儲存在快閃記憶體18中,資料保密性不足。同時,為了保證資料備份的完整性,快閃記憶體18的儲存容量必須大於等於記憶體10的儲存容量,導致快閃記憶體18的使用率太低(1:1),增加了資料備份成本。 The data backup technology after the sudden power outage of the computer system has been widely used in the field of storage design. Referring to FIG. 1, for the conventional memory design, after the computer system is powered off, the system control chip 16 directly copies the data in the memory 10 to the flash memory 18, when the computer system resumes power supply. The data in the flash memory 18 is then transmitted back to the memory 10. However, this method of data backup is to store the data in the flash memory 18, and the data confidentiality is insufficient. At the same time, in order to ensure the integrity of the data backup, the storage capacity of the flash memory 18 must be greater than or equal to the storage capacity of the memory 10, resulting in the usage rate of the flash memory 18 is too low (1:1), which increases the data backup cost. .

鑒於以上內容,有必要提供一種儲存器,其可在電子設備斷電後,將記憶體中的資料進行編碼壓縮後儲存至快閃記憶體,當電子設備恢復供電後,再將快閃記憶體中的資料解碼傳回至記憶體。 In view of the above, it is necessary to provide a storage device that can encode and compress the data in the memory and store it in the flash memory after the electronic device is powered off, and then flash the memory when the electronic device resumes power supply. The data in the decoding is passed back to the memory.

鑒於以上內容,還有必要提供一種利用上述儲存器進行資料備份的方法,其可在電子設備斷電後,將記憶體中的資料進行編碼壓縮後儲存至快閃記憶體,當電子設備恢復供電後,再將快閃記憶 體中的資料解碼傳回至記憶體。 In view of the above, it is also necessary to provide a method for backing up data by using the above storage device, which can encode and compress the data in the memory and store it in the flash memory after the electronic device is powered off, and restore the power supply when the electronic device resumes power supply. After that, the flash memory will be The data in the body is decoded back to the memory.

所述儲存器,包括備份電源、電源控制器、電源控制程式、系統控制晶片和快閃記憶體,該電源控制器與備份電源和電源控制程式連接,該系統控制晶片與電源控制器連接,其中,該系統控制晶片和快閃記憶體之間連接有現場可編程閘陣列。 The storage device includes a backup power supply, a power controller, a power control program, a system control chip, and a flash memory. The power controller is connected to a backup power supply and a power control program, and the system controls the connection between the chip and the power controller. A field programmable gate array is connected between the system control chip and the flash memory.

所述利用上述儲存器進行資料備份的方法,包括如下步驟:當電子設備斷電時,啟動備份電源;系統控制晶片將記憶體中的資料讀出,寫入現場可編程閘陣列;現場可編程閘陣列對該資料進行編碼,將編碼後的資料儲存至快閃記憶體。 The method for backing up data by using the foregoing storage device includes the following steps: when the electronic device is powered off, starting the backup power supply; the system control chip reads the data in the memory and writes the data into the field programmable gate array; The gate array encodes the data and stores the encoded data in flash memory.

相較於習知技術,所述的儲存器資料備份方法及相應的儲存器,在電子設備斷電後,將記憶體中的資料進行編碼後儲存至快閃記憶體,當電子設備恢復供電後,再將快閃記憶體中的資料解碼傳回至記憶體。由於快閃記憶體中儲存的資料經過了編碼保護,提高了資料備份的安全性。另外,由於編碼後的資料經過了壓縮,快閃記憶體中可以備份比記憶體容量更多的資料,降低了資料備份的成本。 Compared with the prior art, the storage data backup method and the corresponding storage device encode the data in the memory to the flash memory after the electronic device is powered off, and when the electronic device resumes power supply, Then decode the data in the flash memory back to the memory. Since the data stored in the flash memory is encoded and protected, the security of the data backup is improved. In addition, since the encoded data is compressed, the flash memory can back up more data than the memory capacity, reducing the cost of data backup.

10‧‧‧記憶體 10‧‧‧ memory

11‧‧‧北橋 11‧‧‧ North Bridge

12‧‧‧連接器 12‧‧‧Connector

13‧‧‧備份電源 13‧‧‧Backup power supply

14‧‧‧電源控制器 14‧‧‧Power Controller

15‧‧‧電源控制程式 15‧‧‧Power Control Program

16‧‧‧系統控制晶片 16‧‧‧System Control Wafer

17‧‧‧FPGA 17‧‧‧FPGA

18‧‧‧快閃記憶體 18‧‧‧Flash memory

19‧‧‧POL 19‧‧‧POL

20‧‧‧DDR2 DIMM 20‧‧‧DDR2 DIMM

S1‧‧‧當斷電時,啟動備份電源 S1‧‧‧ When the power is off, start the backup power supply

S2‧‧‧系統控制晶片將記憶體中的資料讀出,寫入FPGA The S2‧‧‧ system control chip reads the data in the memory and writes it to the FPGA.

S3‧‧‧FPGA對該資料進行編碼後儲存至快閃記憶體 S3‧‧‧FPGA encodes the data and stores it in flash memory

S4‧‧‧當電源恢復時,FPGA將快閃記憶體中的資料進行解碼後傳送至系統控制晶片 S4‧‧‧ When the power is restored, the FPGA decodes the data in the flash memory and transmits it to the system control chip.

S5‧‧‧系統控制晶片將解碼後的數據傳回記憶體 The S5‧‧‧ system control chip transfers the decoded data back to the memory

圖1係現有技術中儲存器的硬體架構圖。 Figure 1 is a hardware architecture diagram of a prior art memory.

圖2係本發明資料備份方法中所使用儲存器的硬體架構圖。 2 is a hardware architecture diagram of a memory used in the data backup method of the present invention.

圖3係圖2儲存器中的現場可編程閘陣列的邏輯線路圖。 3 is a logic diagram of a field programmable gate array in the memory of FIG. 2.

圖4係本發明資料備份方法較佳實施方式的流程圖。 4 is a flow chart of a preferred embodiment of the data backup method of the present invention.

參閱圖2所示,係本發明資料備份方法中所使用儲存器的硬體架 構圖。該儲存器5透過連接器(如PCI-E介面)12與北橋11連接,北橋11透過資料線(如DDR2資料線)與記憶體10連接。其中,所述儲存器5包括:備份電源13、電源控制器14、電源控制程式15、系統控制晶片(如System-on-Chip,SoC)16、現場可編程閘陣列(Field Programmable Gate Array,FPGA)17、快閃記憶體(Flash Memory)18、降壓線路(如Point of Load,POL線路)19、記憶體模組20等。在本實施方式中,所述記憶體模組20為:DDR2 DIMM(Dual In-line Memory Modules,雙列直插式記憶體模組),所述電源控制程式15可以固化在一個晶片中,如PROM(Programmable Read-Only Memory,可編程唯讀記憶體)。 Referring to FIG. 2, the hardware frame of the storage used in the data backup method of the present invention is shown. Composition. The memory 5 is connected to the north bridge 11 through a connector (such as a PCI-E interface) 12, and the north bridge 11 is connected to the memory 10 through a data line (such as a DDR2 data line). The storage device 5 includes: a backup power supply 13, a power controller 14, a power control program 15, a system control chip (such as a System-on-Chip, SoC) 16, and a Field Programmable Gate Array (FPGA). 17) Flash memory 18, step-down line (such as Point of Load, POL line) 19, memory module 20, and the like. In the embodiment, the memory module 20 is: DDR2 DIMMs (Dual In-line Memory Modules), and the power control program 15 can be solidified in a chip, such as PROM (Programmable Read-Only Memory).

系統控制晶片16透過資料線(如PCI-E資料線)與連接器12連接,電源控制器14透過資料線與備份電源13和電源控制程式15連接,電源控制程式15透過資料線與降壓電路19連接,電源控制器14和電源控制程式15透過資料線(如Inter Integrated Circuit,I2C資料線)與連接器12連接,系統控制晶片16透過資料線與記憶體模組20連接。相比現有技術中的儲存器5(參閱圖1所示)的系統控制晶片16直接與快閃記憶體18連接,而圖2中的系統控制晶片16透過現場可編程閘陣列17與快閃記憶體18連接,該現場可編程閘陣列17的邏輯線路圖參閱圖3所示。 The system control chip 16 is connected to the connector 12 through a data line (such as a PCI-E data line). The power controller 14 is connected to the backup power source 13 and the power control program 15 through the data line. The power control program 15 transmits the data line and the step-down circuit. 19, the power controller 14 and the power control program 15 are connected to the connector 12 through a data line (such as an Inter Integrated Circuit, I2C data line), and the system control chip 16 is connected to the memory module 20 through the data line. The system control chip 16 is directly connected to the flash memory 18 compared to the prior art memory 5 (see FIG. 1), while the system control chip 16 of FIG. 2 is passed through the field programmable gate array 17 and flash memory. The body 18 is connected, and the logic circuit diagram of the field programmable gate array 17 is shown in FIG.

參閱圖3所示,係圖2儲存器5中的現場可編程閘陣列17的邏輯線路圖。在本實施方式中,該現場可編程閘陣列17包括:機率運算單元21、緩存區22、區間電路23、二進位化單元24、延時區25、位址重定單元26等。其中,所述緩存區22與機率運算單元21和區 間電路23連接,所述區間電路23與機率運算單元21、二進位化單元24和位址重定單元26連接,所述延時區25與位址重定單元26連接。其中,現場可編程閘陣列17的具體功能參見圖4中步驟S3的描述。 Referring to Figure 3, a logic circuit diagram of the field programmable gate array 17 in the memory 5 of Figure 2 is shown. In the present embodiment, the field programmable gate array 17 includes a probability operation unit 21, a buffer area 22, an interval circuit 23, a binary unit 24, a delay area 25, an address resizing unit 26, and the like. Wherein, the buffer area 22 and the probability operation unit 21 and the area The inter-circuit circuit 23 is connected, and the interval circuit 23 is connected to the probability operation unit 21, the binary unit 24, and the address re-determination unit 26, and the delay region 25 is connected to the address re-determination unit 26. The specific function of the field programmable gate array 17 is described in the description of step S3 in FIG.

參閱圖4所示,係本發明資料備份方法較佳實施方式的流程圖。 Referring to FIG. 4, it is a flow chart of a preferred embodiment of the data backup method of the present invention.

步驟S1,當電子設備(如電腦)斷電時,電源控制程式15向電源控制器14發送電源控制指令,然後,電源控制器14根據該電源控制指令啟動備份電源13。此後,由備份電源13提供電源給記憶體10和系統控制晶片16,以保證記憶體10中的資料暫時不會丟失。 In step S1, when the electronic device (such as a computer) is powered off, the power control program 15 sends a power control command to the power controller 14, and then the power controller 14 activates the backup power source 13 according to the power control command. Thereafter, power is supplied from the backup power source 13 to the memory 10 and the system control chip 16 to ensure that the data in the memory 10 is temporarily not lost.

步驟S2,系統控制晶片16透過北橋11和連接器12,將記憶體10中的資料讀出,寫入現場可編程閘陣列17。 In step S2, the system control chip 16 reads the data in the memory 10 through the north bridge 11 and the connector 12, and writes the data into the field programmable gate array 17.

步驟S3,現場可編程閘陣列17對該資料進行編碼,將編碼後的資料儲存至快閃記憶體18。由於經過現場可編程閘陣列17編碼後的資料經過了壓縮,所占位元較少,快閃記憶體中18可以備份比記憶體10容量更多的資料,提高了快閃記憶體18的利用率,降低了資料備份的成本。另外,由於快閃記憶體18中儲存的資料經過了編碼保護,可避免重要的運算資料直接暴露在快閃記憶體18中,增加了資料保密性。 In step S3, the field programmable gate array 17 encodes the data and stores the encoded data in the flash memory 18. Since the data encoded by the field programmable gate array 17 is compressed, the occupied bits are less, and the flash memory 18 can back up more data than the memory 10, thereby improving the utilization of the flash memory 18. Rate, reducing the cost of data backup. In addition, since the data stored in the flash memory 18 is encoded and protected, important operational data can be prevented from being directly exposed to the flash memory 18, thereby increasing data confidentiality.

如下所述,是現場可編程閘陣列17對資料進行編碼的具體過程。 As described below, it is a specific process in which the field programmable gate array 17 encodes data.

(1)現場可編程閘陣列17的機率運算單元21利用無損資料編碼演算法,計算字元序列(如ASCII碼中的256個字元)中每個字元的累加出現機率,並將該字元序列中每個字元的累加出現機率儲存在緩存區22中。在本實施方式中,無損資料編碼演算法為算術編 碼(Arithmetic Coding)。 (1) The probability operation unit 21 of the field programmable gate array 17 uses the lossless data encoding algorithm to calculate the cumulative occurrence probability of each character in the character sequence (such as 256 characters in the ASCII code), and the word is generated. The cumulative occurrence probability of each character in the meta-sequence is stored in the buffer area 22. In this embodiment, the lossless data encoding algorithm is arithmetic programming Code (Arithmetic Coding).

(2)當該字元序列中所有字元的累加出現機率都已計算完畢時,機率運算單元21向緩存區22發出編碼指令(以Ae表示),將緩存區22中每個字元的累加出現機率傳送至區間電路23。 (2) When the cumulative occurrence probability of all the characters in the character sequence has been calculated, the probability operation unit 21 issues an encoding instruction (indicated by Ae) to the buffer area 22, and accumulates each character in the buffer area 22. The probability of occurrence is transmitted to the interval circuit 23.

(3)區間電路23根據該字元序列中每個字元的累加出現機率計算出該字元序列中每個字元的編碼區間,並從機率運算單元21獲取待編碼資料(以Data表示,如“ABBAC”),根據該字元序列中每個字元的編碼區間計算出待編碼資料中最後一個字元的編碼區間。 (3) The interval circuit 23 calculates the coding interval of each character in the character sequence according to the cumulative occurrence probability of each character in the character sequence, and acquires the data to be encoded from the probability operation unit 21 (indicated by Data, For example, "ABBAC"), the coding interval of the last character in the data to be encoded is calculated according to the coding interval of each character in the character sequence.

(4)區間電路23將待編碼資料中最後一個字元的編碼區間大小(以Count表示)傳送給位址重定單元26。同時,區間電路23將待編碼資料中最後一個字元的編碼區間傳送給二進位化單元24。位址重定單元26從延時區25中取出待編碼資料編碼前的位址(以Address表示),根據待編碼資料中最後一個字元的編碼區間大小,重新定位待編碼資料的位址,並將待編碼資料重新定位後的位址傳送給快閃記憶體18。同時,二進位化單元24將待編碼資料中最後一個字元的編碼區間轉換成二進位資料,並傳送給快閃記憶體18。 (4) The section circuit 23 transmits the size of the encoding section (indicated by Count) of the last character in the data to be encoded to the address resizing unit 26. At the same time, the interval circuit 23 transmits the coding interval of the last character in the data to be encoded to the binary unit 24. The address resizing unit 26 extracts the address (indicated by Address) before encoding the data to be encoded from the delay region 25, and relocates the address of the data to be encoded according to the size of the encoding interval of the last character in the data to be encoded, and The address after re-positioning of the data to be encoded is transmitted to the flash memory 18. At the same time, the binary unit 24 converts the coding interval of the last character in the data to be encoded into binary data and transmits it to the flash memory 18.

(5)當待編碼資料中最後一個字元的編碼區間轉換成二進位資料後,使能訊號(以Signal表示)從延時區25中傳送給快閃記憶體18。 (5) After the coding interval of the last character in the data to be encoded is converted into binary data, the enable signal (indicated by Signal) is transmitted from the delay zone 25 to the flash memory 18.

以下舉例說明利用算術編碼進行資料編碼的過程:假設有一個以A、B、C、D、E五個出現機率均等的字元組成的字 元序列,則A、B、C、D、E的初始機率如下:A:0→1/5,B:1/5→2/5,C:2/5→3/5,D:3/5→4/5,E:4/5→1。 The following example illustrates the process of encoding data using arithmetic coding: Suppose there is a word consisting of five characters with equal probability of A, B, C, D, and E. The initial probability of A, B, C, D, E is as follows: A: 0 → 1/5, B: 1/5 → 2/5, C: 2/5 → 3/5, D: 3/ 5→4/5, E:4/5→1.

假設需要編碼的資料為“ABBAC”,則A、B、C、D、E的累加出現機率為:A:1/5→2/6→2/7→2/8→3/9→3/10;B:1/5→1/6→2/7→3/8→3/9→3/10;C:1/5→1/6→1/7→1/8→1/9→2/10;D:1/5→1/6→1/7→1/8→1/9→1/10;E:1/5→1/6→1/7→1/8→1/9→1/10。 Assuming that the code to be encoded is “ABBAC”, the cumulative probability of A, B, C, D, E is: A: 1/5 → 2/6 → 2/7 → 2/8 → 3/9 → 3/ 10; B: 1/5 → 1/6 → 2/7 → 3/8 → 3/9 → 3/10; C: 1/5 → 1/6 → 1/7 → 1/8 → 1/9 → 2/10; D: 1/5 → 1/6 → 1/7 → 1/8 → 1/9 → 1/10; E: 1/5 → 1/6 → 1/7 → 1/8 → 1 9→1/10.

根據A、B、C、D、E的累加出現機率計算出A、B、C、D、E的編碼區間為:A:[0,3/10);B:[3/10,6/10);C:[6/10,8/10);D:[8/10,9/10);E:[9/10,1)。 According to the cumulative probability of A, B, C, D, E, the coding intervals of A, B, C, D, and E are calculated as: A: [0, 3/10); B: [3/10, 6/10 ); C: [6/10, 8/10); D: [8/10, 9/10); E: [9/10, 1).

接著,根據字元序列A、B、C、D、E的編碼區間計算出待編碼資料“ABBAC”中最後一個字元“C”的編碼區間:A:[0,3/10); B:[0+3/10*3/10,0+3/10*6/10)=[9/100,18/100);B:[9/100+9/100*3/10,9/100+9/100*6/10)=[117/1000,144/1000);A:[117/1000+27/1000*0,117/1000+27/1000*3/10)=[1170/10000,1251/10000);C:[1170/10000+81/10000*6/10,1170/10000+81/10000*8/10)=[12186/100000,12348/100000)=[0.12186,0.12348)。 Then, the coding interval of the last character "C" in the data to be encoded "ABBAC" is calculated according to the coding interval of the character sequence A, B, C, D, E: A: [0, 3/10); B: [0+3/10*3/10, 0+3/10*6/10)=[9/100,18/100); B:[9/100+9/100*3/10,9 /100+9/100*6/10)=[117/1000,144/1000); A:[117/1000+27/1000*0,117/1000+27/1000*3/10)=[1170 /10000,1251/10000);C:[1170/10000+81/10000*6/10,1170/10000+81/10000*8/10)=[12186/100000,12348/100000)=[0.12186,0.12348 ).

所以,待編碼資料“ABBAC”中最後一個字元“C”的編碼區間為:[0.12186,0.12348),將“12186(10進制數)”轉換成二進位數字為:10111110011010。待編碼資料“ABBAC”的壓縮比為:(1-14/20)* 100%=30%,待編碼資料越多,壓縮比更好。 Therefore, the coding interval of the last character "C" in the data to be encoded "ABBAC" is: [0.12186, 0.12348), and the conversion of "12186 (decimal number)" into a binary digit is: 10111110011010. The compression ratio of the data to be encoded "ABBAC" is: (1-14/20)* 100%=30%. The more data to be encoded, the better the compression ratio.

步驟S4,當電子設備電源恢復時,FPGA現場可編程閘陣列17將快閃記憶體18中的資料進行解碼後傳送至系統控制晶片16。資料解碼的過程是資料編碼過程的逆操作,參閱步驟S3中關於資料編碼過程的描述,在此不再贅述。 In step S4, when the electronic device power is restored, the FPGA field programmable gate array 17 decodes the data in the flash memory 18 and transmits it to the system control chip 16. The process of data decoding is the inverse of the data encoding process. Refer to the description of the data encoding process in step S3, and details are not described herein.

步驟S5,系統控制晶片16透過連接器12和北橋11,將解碼後的數據傳回記憶體10。 In step S5, the system control chip 16 transmits the decoded data back to the memory 10 through the connector 12 and the north bridge 11.

最後應說明的是,以上實施方式僅用以說明本發明的技術方案而非限制,儘管參照較佳實施方式對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and the present invention is not limited thereto. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that Modifications or equivalents are made without departing from the spirit and scope of the invention.

S1‧‧‧當斷電時,啟動備份電源 S1‧‧‧ When the power is off, start the backup power supply

S2‧‧‧系統控制晶片將記憶體中的資料讀出,寫入FPGA The S2‧‧‧ system control chip reads the data in the memory and writes it to the FPGA.

S3‧‧‧FPGA對該資料進行編碼後儲存至快閃記憶體 S3‧‧‧FPGA encodes the data and stores it in flash memory

S4‧‧‧當電源恢復時,FPGA將快閃記憶體中的資料進行解碼後傳送至系統控制晶片 S4‧‧‧ When the power is restored, the FPGA decodes the data in the flash memory and transmits it to the system control chip.

S5‧‧‧系統控制晶片將解碼後的數據傳回記憶體 The S5‧‧‧ system control chip transfers the decoded data back to the memory

Claims (8)

一種儲存器,包括備份電源、電源控制器、電源控制程式、系統控制晶片和快閃記憶體,該電源控制器與備份電源和電源控制程式連接,該系統控制晶片與電源控制器連接,其中:該系統控制晶片和快閃記憶體之間連接有現場可編程閘陣列,所述現場可編程閘陣列包括:機率運算單元、緩存區、區間電路、二進位化單元、延時區、位址重定單元,其中:所述機率運算單元,用於計算字元序列中每個字元的累加出現機率,並將其儲存在緩存區中;所述機率運算單元,還用於當該字元序列中所有字元的累加出現機率都已計算完畢時,將緩存區中每個字元的累加出現機率傳送至區間電路;所述區間電路,用於根據該字元序列中每個字元的累加出現機率計算出該字元序列中每個字元的編碼區間;所述區間電路,還用於從機率運算單元獲取待編碼資料,根據該字元序列中每個字元的編碼區間計算出待編碼資料中最後一個字元的編碼區間,並將待編碼資料中最後一個字元的編碼區間大小傳送給位址重定單元,同時將待編碼資料中最後一個字元的編碼區間傳送給二進位化單元;所述位址重定單元,用於根據待編碼資料中最後一個字元的編碼區間大小,重新定位待編碼資料的位址,並將待編碼資料重新定位後的位址傳送給快閃記憶體;所述二進位化單元,用於將待編碼資料中最後一個字元的編碼區間轉換成二進位資料,並傳送給快閃記憶體;及當待編碼資料中最後一個字元的編碼區間轉換成二進位資料後,使能訊 號從延時區中傳送給快閃記憶體。 A storage device includes a backup power supply, a power controller, a power control program, a system control chip, and a flash memory. The power controller is coupled to a backup power supply and a power control program. The system controls the chip to be connected to the power controller, wherein: A field programmable gate array is connected between the system control chip and the flash memory, and the field programmable gate array includes: a probability operation unit, a buffer area, an interval circuit, a binary unit, a delay area, and an address resizing unit. The probability operation unit is configured to calculate an accumulated occurrence probability of each character in the character sequence and store it in a buffer area; the probability operation unit is further configured to use all of the character sequence When the cumulative occurrence probability of the character has been calculated, the cumulative occurrence probability of each character in the buffer area is transmitted to the interval circuit; the interval circuit is configured to generate an occurrence probability according to each character in the character sequence Calculating a coding interval of each character in the sequence of characters; the interval circuit is further configured to obtain the data to be encoded from the probability operation unit, according to The coding interval of each character in the character sequence calculates the coding interval of the last character in the data to be encoded, and transmits the coding interval of the last character in the data to be encoded to the address resizing unit, and is to be encoded. The coding interval of the last character in the data is transmitted to the binary unit; the address resizing unit is configured to reposition the address of the data to be encoded according to the coding interval size of the last character in the data to be encoded, and The address of the data to be encoded is relocated to the flash memory; the binary unit is configured to convert the coding interval of the last character in the data to be encoded into binary data and transmit the data to the flash memory. And when the coding interval of the last character in the data to be encoded is converted into binary data, enable the message The number is transferred from the delay zone to the flash memory. 如申請專利範圍第1項所述之儲存器,其中,該儲存器透過連接器與北橋連接到記憶體。 The storage device of claim 1, wherein the reservoir is connected to the memory through a connector and a north bridge. 如申請專利範圍第2項所述之儲存器,其中,所述連接器為PCI-E介面。 The storage device of claim 2, wherein the connector is a PCI-E interface. 一種利用申請專利範圍第1項中的儲存器進行資料備份的方法,該方法包括如下步驟:當電子設備斷電時,啟動備份電源;系統控制晶片將記憶體中的資料讀出,寫入現場可編程閘陣列;現場可編程閘陣列對該資料進行編碼,將編碼後的資料儲存至快閃記憶體;其中,所述步驟現場可編程閘陣列對該資料進行編碼包括:機率運算單元利用無損資料編碼演算法,計算字元序列中每個字元的累加出現機率,並將該字元序列中每個字元的累加出現機率儲存在緩存區中;當該字元序列中所有字元的累加出現機率都已計算完畢時,機率運算單元向緩存區發出編碼指令,將緩存區中每個字元的累加出現機率傳送至區間電路;區間電路根據該字元序列中每個字元的累加出現機率計算出該字元序列中每個字元的編碼區間,並從機率運算單元獲取待編碼資料,根據該字元序列中每個字元的編碼區間計算出待編碼資料中最後一個字元的編碼區間;區間電路將待編碼資料中最後一個字元的編碼區間大小傳送給位址重定單元,同時,將待編碼資料中最後一個字元的編碼區間傳送給二進位化單元;位址重定單元根據待編碼資料中最後一個字元的編碼區間大小,重新定 位待編碼資料的位址,並將待編碼資料重新定位後的位址傳送給快閃記憶體;二進位化單元將待編碼資料中最後一個字元的編碼區間轉換成二進位資料,並傳送給快閃記憶體;及當待編碼資料中最後一個字元的編碼區間轉換成二進位資料後,使能訊號從延時區中傳送給快閃記憶體。 A method for backing up data by using the storage in the first item of the patent application scope, the method comprising the steps of: starting the backup power supply when the electronic device is powered off; the system control chip reads the data in the memory and writes the data to the site. a programmable gate array; the field programmable gate array encodes the data, and stores the encoded data into the flash memory; wherein the step of the field programmable gate array encodes the data includes: the probability operation unit utilizes the lossless a data encoding algorithm that calculates an accumulative probability of occurrence of each character in the sequence of characters, and stores the cumulative occurrence probability of each character in the sequence of characters in the buffer; when all characters in the sequence of characters When the cumulative occurrence probability has been calculated, the probability operation unit sends an encoding instruction to the buffer area, and the cumulative occurrence probability of each character in the buffer area is transmitted to the interval circuit; the interval circuit accumulates each character according to the character sequence. The probability of occurrence calculates the coding interval of each character in the character sequence, and obtains the data to be encoded from the probability operation unit, according to the word The coding interval of each character in the meta-sequence calculates the coding interval of the last character in the data to be encoded; the interval circuit transmits the coding interval size of the last character in the data to be encoded to the address re-revision unit, and at the same time, The coding interval of the last character in the encoded data is transmitted to the binary unit; the address resizing unit is reset according to the coding interval of the last character in the data to be encoded. The address of the data to be encoded is transmitted to the flash memory, and the address of the last character in the data to be encoded is converted into binary data and transmitted. For the flash memory; and when the coding interval of the last character in the data to be encoded is converted into binary data, the enable signal is transmitted from the delay zone to the flash memory. 如申請專利範圍第4項所述之儲存器資料備份方法,其中,該方法還包括步驟:當電子設備電源恢復時,現場可編程閘陣列將快閃記憶體中的資料進行解碼後傳送至系統控制晶片;及系統控制晶片將解碼後的數據傳回記憶體。 The storage device data backup method of claim 4, wherein the method further comprises the step of: when the electronic device power is restored, the field programmable gate array decodes the data in the flash memory and transmits the data to the system. The control chip; and the system control chip transfers the decoded data back to the memory. 如申請專利範圍第4項所述之儲存器資料備份方法,其中,所述步驟啟動備份電源包括:電源控制程式向電源控制器發送電源控制指令;及電源控制器根據該電源控制指令啟動備份電源。 The storage device data backup method of claim 4, wherein the step of starting the backup power supply comprises: the power control program sending a power control command to the power controller; and the power controller starting the backup power according to the power control command . 如申請專利範圍第4項所述之儲存器資料備份方法,其中,所述字元序列為ASCII碼中的256個字元。 The storage data backup method of claim 4, wherein the character sequence is 256 characters in ASCII code. 如申請專利範圍第7項所述之儲存器資料備份方法,其中,所述無損資料編碼演算法為算術編碼。 The storage data backup method of claim 7, wherein the lossless data encoding algorithm is arithmetic coding.
TW098126050A 2009-08-03 2009-08-03 Storage and method for performing data backup TWI453654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098126050A TWI453654B (en) 2009-08-03 2009-08-03 Storage and method for performing data backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098126050A TWI453654B (en) 2009-08-03 2009-08-03 Storage and method for performing data backup

Publications (2)

Publication Number Publication Date
TW201106252A TW201106252A (en) 2011-02-16
TWI453654B true TWI453654B (en) 2014-09-21

Family

ID=44814282

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098126050A TWI453654B (en) 2009-08-03 2009-08-03 Storage and method for performing data backup

Country Status (1)

Country Link
TW (1) TWI453654B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4150766A4 (en) * 2020-05-11 2023-10-25 Ascava, Inc. Exploiting locality of prime data for efficient retrieval of data that has been losslessly reduced using a prime data sieve

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103238A1 (en) * 2002-11-26 2004-05-27 M-Systems Flash Disk Pioneers Ltd. Appliance, including a flash memory, that is robust under power failure
US20080189484A1 (en) * 2007-02-07 2008-08-07 Junichi Iida Storage control unit and data management method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103238A1 (en) * 2002-11-26 2004-05-27 M-Systems Flash Disk Pioneers Ltd. Appliance, including a flash memory, that is robust under power failure
US20080189484A1 (en) * 2007-02-07 2008-08-07 Junichi Iida Storage control unit and data management method

Also Published As

Publication number Publication date
TW201106252A (en) 2011-02-16

Similar Documents

Publication Publication Date Title
CN101957784B (en) Memory and data backup method thereof
US9425828B2 (en) Memory device and memory system
US9619324B2 (en) Error correction in non—volatile memory
TWI342490B (en) Flash memory data read/write processing method
TWI652689B (en) Apparatuses and methods for performing intra-module databus inversion operations
KR102778855B1 (en) Controller and memory system having the same
JP2008299855A (en) MEMORY SYSTEM WITH MULTICHANNEL ERROR CORRECTION CODER USING EMBEDDED MEMORY AND METHOD THEREOF
TWI527040B (en) Data writing method, memory storage device and memory controller
TWI487380B (en) A data processing device, a video coding / decoding device and a data processing system
KR102190391B1 (en) Memory controller including joint source-channel encoder circuit or joint source-channel decoder circuit, and storage device having the memory controller
WO2020199490A1 (en) Dual-mode error detection memory and dual-mode error detection method
CN110178126A (en) Bus encoding using on-chip memory
US20160378621A1 (en) Apparatus, system, and method of storage and retrieval of local volatile memory content of non-volatile storage memory
Zhang et al. Realizing transparent OS/Apps compression in mobile devices at zero latency overhead
CN105915890B (en) SVAC coding and decoding video chip checking device and methods based on FPGA
TWI453654B (en) Storage and method for performing data backup
CN204481959U (en) A kind of image processing platform of high reliability
KR20170012006A (en) Memory controller and memory system including the same
US10496317B2 (en) Memory system including memories having different characteristics and operation method thereof
KR100688549B1 (en) On-the-fly BCC Codec System and Method Supporting Nonvolatile Memory
CN119811461A (en) An ECC protection control system and method for AHB interface RAM
KR20160118914A (en) Memory storage device
US10126979B2 (en) Bus encoding using metadata
CN203433827U (en) Double-storage and double-interface USB (Universal Serial Bus) flash disk
US20180041612A1 (en) System and method for out-of-stream order compression of multi-media tiles in a system on a chip

Legal Events

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