TW201901677A - Storage device, recording method and pre-fetch method - Google Patents

Storage device, recording method and pre-fetch method Download PDF

Info

Publication number
TW201901677A
TW201901677A TW106126215A TW106126215A TW201901677A TW 201901677 A TW201901677 A TW 201901677A TW 106126215 A TW106126215 A TW 106126215A TW 106126215 A TW106126215 A TW 106126215A TW 201901677 A TW201901677 A TW 201901677A
Authority
TW
Taiwan
Prior art keywords
host
data
storage device
power
access
Prior art date
Application number
TW106126215A
Other languages
Chinese (zh)
Other versions
TWI646551B (en
Inventor
簡介信
包鎰華
Original Assignee
慧榮科技股份有限公司
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 慧榮科技股份有限公司 filed Critical 慧榮科技股份有限公司
Priority to CN201810001496.2A priority Critical patent/CN108877856B/en
Priority to US15/954,307 priority patent/US10635601B2/en
Priority to JP2018079759A priority patent/JP6588595B2/en
Application granted granted Critical
Publication of TWI646551B publication Critical patent/TWI646551B/en
Publication of TW201901677A publication Critical patent/TW201901677A/en
Priority to US16/825,354 priority patent/US11494312B2/en

Links

Abstract

A storage device includes a flash memory array and a controller. The flash memory array stores a plurality of user data. After an initial process is finished, the controller accesses the user data stored in the flash memory array according to host instructions and an H2F mapping table, and records a plurality of address information about the user data in a power-on access table.

Description

儲存裝置以及預載方法  Storage device and preloading method  

本發明係有關於一種快閃式記憶體裝置及其預載方法。 The invention relates to a flash memory device and a preloading method thereof.

當系統上電時,固態硬碟往往也跟著直接上電。然而在固態硬碟上電後至固態硬碟被第一次存取之間,具有一空閒時間,為了有效的提昇固態硬碟的效能,我們有必要針對空閒時間進行更有效率的利用,進而提昇固態硬碟的存取速度。 When the system is powered up, solid-state hard drives are often powered up directly. However, after the SSD is powered on and the SSD is accessed for the first time, there is a free time. In order to effectively improve the performance of the SSD, it is necessary to use the idle time more efficiently. Increase the access speed of solid state drives.

有鑑於此,本發明提出一種儲存裝置,耦接至一主機,包括:一快閃式記憶體陣列、一動態隨機存取記憶體以及一控制器。上述快閃式記憶體陣列儲存一第一資料。上述動態隨機存取記憶體儲存一上電存取表,其中上述上電存取表用以紀錄上述主機於上述儲存裝置之前次上電後存取之上述第一資料之位址資訊。上述控制器在上述儲存裝置上電後之一閒置時間內,根據上述位址資訊將上述第一資料預先載入至上述動態隨機存取記憶體,以提高上述主機對上述儲存裝置之存取效率。 In view of the above, the present invention provides a storage device coupled to a host, including: a flash memory array, a dynamic random access memory, and a controller. The flash memory array stores a first data. The dynamic random access memory stores a power-on access table, wherein the power-on access table is used to record address information of the first data accessed by the host after the power-on of the storage device. The controller preloads the first data into the dynamic random access memory according to the address information during an idle time of the storage device to improve the access efficiency of the host to the storage device. .

根據本發明之一實施例,上述閒置時間係為上述儲存裝置上電後至上述主機開始存取上述儲存裝置之前的時 間。 According to an embodiment of the invention, the idle time is a time before the storage device is powered on until the host starts accessing the storage device.

根據本發明之一實施例,上述主機利用預先載入至上述動態隨機存取記憶體之上述第一資料,完成一初始化。 According to an embodiment of the invention, the host performs an initialization by using the first data preloaded into the dynamic random access memory.

根據本發明之另一實施例,上述上電存取表更紀錄上述主機於上述儲存裝置之前次上電後存取之上述第一資料之一先後順序,其中上述控制器根據上述先後順序,將一既定大小之上述第一資料預先載入至上述動態隨機存取記憶體,其餘的上述第一資料不預先載入至上述動態隨機存取記憶體,其中上述主機存取上述動態隨機存取記憶體以及上述快閃式記憶體陣列,以完成一初始化。 According to another embodiment of the present invention, the power-on access table further records a sequence of the first data accessed by the host after the power-on of the storage device, wherein the controller is configured according to the sequence The first data of a predetermined size is preloaded into the dynamic random access memory, and the remaining first data is not preloaded into the dynamic random access memory, wherein the host accesses the dynamic random access memory The body and the flash memory array described above to complete an initialization.

根據本發明之一實施例,當上述主機完成上述初始化後,上述主機發送一存取指令用以存取上述快閃式記憶體陣列之一第二資料,上述控制器根據上述存取指令將上述第二資料暫存於上述動態隨機存取記憶體,以提高上述主機對上述儲存裝置之存取效率。 According to an embodiment of the present invention, after the host completes the initialization, the host sends an access command for accessing a second data of the flash memory array, and the controller performs the above according to the access command. The second data is temporarily stored in the dynamic random access memory to improve the access efficiency of the host to the storage device.

本發明更提出一種預載方法,試用於一快閃式記憶體陣列,包括:對上述快閃式記憶體陣列上電;將一主機完成一初始化所需存取上述快閃式記憶體陣列之一第一資料之位址資訊,紀錄於一上電存取表;再次對上述快閃式記憶體陣列上電;根據上述上電存取表之上述位址資訊,將上述第一資料自上述快閃式記憶體陣列預先載入一動態隨機存取記憶體;以及利用上述第一資料,完成上述主機之上述初始化。 The present invention further provides a preloading method for testing a flash memory array, comprising: powering up the flash memory array; and accessing the flash memory array by a host to perform an initialization. The address information of the first data is recorded in a power-on access list; the flash memory array is powered on again; and the first data is from the above information according to the address information of the power-on access table The flash memory array is preloaded with a dynamic random access memory; and the initialization of the host is completed by using the first data.

根據本發明之一實施例,上述根據上述上電存取表將上述第一資料自上述快閃式記憶體陣列預先載入上述動 態隨機存取記憶體之步驟係執行於對上述快閃式記憶體陣列上電後至上述主機開始存取上述快閃式記憶體陣列之間的一閒置時間。 According to an embodiment of the present invention, the step of preloading the first data from the flash memory array into the dynamic random access memory according to the power-on access table is performed on the flash memory. After the body array is powered up, the host computer begins to access an idle time between the flash memory arrays.

根據本發明之一實施例,上述上電存取表更用以紀錄上述主機於上述快閃式記憶體陣列前次上電後存取之上述第一資料之一先後順序,其中上述根據上述上電存取表將上述第一資料自上述快閃式記憶體陣列預先載入上述動態隨機存取記憶體之步驟更包括:根據上述先後順序,將一既定大小之上述第一資料預先載入至上述動態隨機存取記憶體;以及不將上述第一資料超過上述既定大小的部份預先載入至上述動態隨機存取記憶體。 According to an embodiment of the present invention, the power-on access table is further configured to record a sequence of the first data accessed by the host after the previous power-on of the flash memory array, wherein the foregoing The step of preloading the first data from the flash memory array into the dynamic random access memory further includes: preloading the first data of a predetermined size to the first order according to the foregoing sequence And the dynamic random access memory; and the portion of the first data that does not exceed the predetermined size is preloaded into the dynamic random access memory.

根據本發明之一實施例,當上述初始化完成後,根據一存取指令將上述快閃式記憶體陣列之一第二資料搬移至上述動態隨機存取記憶體,以提高上述主機之存取效率,其中上述主機根據上述存取指令存取上述第二資料。 According to an embodiment of the present invention, after the initialization is completed, the second data of the flash memory array is moved to the dynamic random access memory according to an access instruction to improve the access efficiency of the host. The host accesses the second data according to the access instruction.

100‧‧‧儲存裝置 100‧‧‧ storage device

101‧‧‧快閃式記憶體陣列 101‧‧‧Flash memory array

102‧‧‧動態隨機存取記憶體 102‧‧‧ Dynamic Random Access Memory

103‧‧‧控制器 103‧‧‧ Controller

10‧‧‧主機 10‧‧‧Host

200A、200B‧‧‧上電存取表 200A, 200B‧‧‧Power access table

INS‧‧‧存取指令 INS‧‧‧ access instructions

S10~S16‧‧‧步驟流程 S10~S16‧‧‧Step procedure

S20~S26‧‧‧步驟流程 S20~S26‧‧‧Step process

第1圖係顯示根據本發明之一實施例所述之儲存裝置之方塊圖;第2A圖係顯示根據本發明之一實施例所述之上電存取表之示意圖;第2B圖係顯示根據本發明之另一實施例所述之上電存取表之示意圖;第3A圖係顯示根據本發明之一實施例所述之建立上電存 取表方法之流程圖;以及第3B圖係顯示根據本發明之一實施例所述之使用上電存取表方法之流程圖。 1 is a block diagram showing a storage device according to an embodiment of the present invention; FIG. 2A is a schematic view showing an upper power access table according to an embodiment of the present invention; and FIG. 2B is a view showing A schematic diagram of an upper power access table according to another embodiment of the present invention; FIG. 3A is a flowchart showing a method for establishing a power-on access list according to an embodiment of the present invention; and FIG. 3B is a diagram showing A flowchart of a method of using a power-on access list according to an embodiment of the present invention.

以下說明為本發明的實施例。其目的是要舉例說明本發明一般性的原則,不應視為本發明之限制,本發明之範圍當以申請專利範圍所界定者為準。 The following description is an embodiment of the present invention. The intent is to exemplify the general principles of the invention and should not be construed as limiting the scope of the invention, which is defined by the scope of the claims.

值得注意的是,以下所揭露的內容可提供多個用以實踐本發明之不同特點的實施例或範例。以下所述之特殊的元件範例與安排僅用以簡單扼要地闡述本發明之精神,並非用以限定本發明之範圍。此外,以下說明書可能在多個範例中重複使用相同的元件符號或文字。然而,重複使用的目的僅為了提供簡化並清楚的說明,並非用以限定多個以下所討論之實施例以及/或配置之間的關係。此外,以下說明書所述之一個特徵連接至、耦接至以及/或形成於另一特徵之上等的描述,實際可包含多個不同的實施例,包括該等特徵直接接觸,或者包含其它額外的特徵形成於該等特徵之間等等,使得該等特徵並非直接接觸。 It is noted that the following disclosure may provide embodiments or examples for practicing various features of the present invention. The specific elements and arrangements of the elements described below are merely illustrative of the spirit of the invention and are not intended to limit the scope of the invention. In addition, the following description may reuse the same component symbols or characters in various examples. However, the re-use is for the purpose of providing a simplified and clear description, and is not intended to limit the relationship between the various embodiments and/or configurations discussed below. In addition, the description of one of the features described in the following description is connected to, coupled to, and/or formed on another feature, etc., and may include a plurality of different embodiments, including direct contact of the features, or other additional Features are formed between the features and the like such that the features are not in direct contact.

第1圖係顯示根據本發明之一實施例所述之儲存裝置之方塊圖。如第1圖所示,儲存裝置100包括快閃式記憶體陣列101、動態隨機存取記憶體102以及控制器103,其中儲存裝置100耦接至主機10,並且主機10與儲存裝置100組成一系統,儲存裝置100產生並維持邏輯-物理(Host Logical-Flash Physical,H2F)對照表,記錄使用者資料的邏輯位址與物理位 址的對應關係。根據本發明之一實施例,儲存裝置100可為一採用USB、SATA、PATA、PCIE物理介面或是採用USB、NVME、AHCI、SCSI通信協定的固態硬碟。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram showing a storage device in accordance with an embodiment of the present invention. As shown in FIG. 1, the storage device 100 includes a flash memory array 101, a dynamic random access memory 102, and a controller 103. The storage device 100 is coupled to the host 10, and the host 10 and the storage device 100 are combined. The storage device 100 generates and maintains a Host-Logical-Flash Physical (H2F) comparison table, and records the correspondence between the logical address and the physical address of the user data. According to an embodiment of the invention, the storage device 100 can be a solid state hard disk using a USB, SATA, PATA, PCIE physical interface or a USB, NVME, AHCI, SCSI communication protocol.

假設儲存裝置100的資料儲存量為256GB,於系統開機後,控制器103除了依據H2F對照表提供主機10所需的使用者資料,並將這些使用者資料的邏輯位址或物理位址記錄至上電存取表。假設在上電存取表中一筆邏輯位址或物理位址的大小為2B,一筆邏輯位址或物理位址對應至4KB的使用者資料,則控制器103可建立8MB大小的上電存取表以記錄16GB大小的使用者資料的邏輯位址。其中,上電存取表記錄主機10所欲讀取或寫入的使用者資料,依據主機10的運作特性,上電存取表所記錄的使用者資料可能是作業系統、應用程式、或電腦遊戲的檔案,且上電存取表主要是記錄主機10所欲讀取的使用者資料,少部份是主機10所欲更新/寫入的使用者資料。 Assuming that the data storage capacity of the storage device 100 is 256 GB, after the system is powered on, the controller 103 provides the user data required by the host 10 according to the H2F comparison table, and records the logical address or physical address of the user data. Electric access table. Assuming that a logical address or a physical address is 2B in the power-on access table, and a logical address or a physical address corresponds to 4 KB of user data, the controller 103 can establish a power-on access of 8 MB. The table records the logical address of the 16 GB user data. The power-on access table records the user data that the host 10 wants to read or write. According to the operating characteristics of the host 10, the user data recorded by the power-on access table may be an operating system, an application, or a computer. The file of the game, and the power-on access table is mainly for recording the user data that the host 10 wants to read, and a small part is the user data that the host 10 wants to update/write.

當主機10開始初始化(Initializing)時,也會要求週邊裝置,例如儲存裝置100,開始初始化,然而,儲存裝置100完成初始化所需的時間比主機10完成初始化所需的時間短,因此,在儲存裝置100完成初始化後而主機10尚未完成初始化的期間(亦可稱為閒置時間),控制器103根據上電存取表所記錄之位址資訊,而將使用者資料自快閃式記憶體陣列101預先載入至動態隨機存取記憶體102,等主機10完成初始化並開始作業系統載入時,即主機10從儲存裝置100載入作業系統的檔案時,儲存裝置100可迅速地從動態隨機存取記憶體102,而非從快閃式記憶體陣列101,提供作業系統的檔案(即使用者資料) 至主機10,以縮短資料存取所需的時間。由於儲存裝置100可以迅速完成初始化,所以,閒置時間也可視為儲存裝置100上電後至主機10開始存取儲存裝置100之前的時間。 When the host 10 starts Initializing, peripheral devices, such as the storage device 100, are also required to start initialization. However, the time required for the storage device 100 to complete initialization is shorter than the time required for the host 10 to complete initialization, and therefore, is stored. After the device 100 completes initialization and the host 10 has not completed initialization (also referred to as idle time), the controller 103 sets the user data from the flash memory array according to the address information recorded by the power-on access table. 101 is preloaded into the DRAM 102, and when the host 10 completes initialization and starts the loading of the operating system, that is, when the host 10 loads the file of the operating system from the storage device 100, the storage device 100 can be quickly and dynamically randomly selected. Accessing the memory 102, rather than from the flash memory array 101, provides a file (i.e., user profile) of the operating system to the host 10 to reduce the time required for data access. Since the storage device 100 can complete the initialization quickly, the idle time can also be regarded as the time until the host device 10 starts to access the storage device 100 after the storage device 100 is powered on.

根據本發明之另一實施例,上電存取表的記錄較佳依據使用者資料的讀取順序而記錄。如此一來,假設控制器103無法在閒置時間將上電存取表所對應的所有使用者資料載入至動態隨機存取記憶體102,由於先載入的使用者資料可能將被主機10所先讀取,在資料讀取及處理的過程中,控制器103可繼續將上電存取表所對應的剩餘使用者資料載入至動態隨機存取記憶體102,等待主機10來讀取而達到本發明的目的。 According to another embodiment of the present invention, the recording of the power-on access table is preferably recorded in accordance with the reading order of the user data. As such, it is assumed that the controller 103 cannot load all the user data corresponding to the power-on access table into the DRAM 102 during the idle time, because the user data loaded first may be used by the host 10. First, during the data reading and processing, the controller 103 can continue to load the remaining user data corresponding to the power-on access table into the dynamic random access memory 102, waiting for the host 10 to read. The object of the invention is achieved.

根據本發明之另一實施例,控制器103依據快閃式記憶體陣列101的參數對上電存取表的記錄進行排列,其中,快閃式記憶體陣列101的參數包括:通道(Channel)數目或晶片致能(Chip Enable)數目,以加速使用者資料的讀取速度。 According to another embodiment of the present invention, the controller 103 arranges the records of the power-on access table according to the parameters of the flash memory array 101, wherein the parameters of the flash memory array 101 include: a channel. The number or number of Chip Enables to speed up the reading of user data.

根據本發明之另一實施例,上電存取表所對應的使用者資料的大小較佳小於動態隨機存取記憶體102的資料儲存量,如此一來,上電存取表所對應的全部使用者資料可儲存至動態隨機存取記憶體102。 According to another embodiment of the present invention, the size of the user data corresponding to the power-on access table is preferably smaller than the data storage capacity of the dynamic random access memory 102, and thus, all the corresponding power-on access tables are User data can be stored in the DRAM 102.

根據本發明之另一實施例,當上電存取表所對應的使用者資料的大小大於動態隨機存取記憶體102的資料儲存量時,控制器103僅將上電存取表所對應的部份使用者資料載入至動態隨機存取記憶體102,待這些使用者資料被主機10所先讀取之後,以上電存取表所對應的剩餘使用者資料替代已儲存於動態隨機存取記憶體102的使用者資料。 According to another embodiment of the present invention, when the size of the user data corresponding to the power-on access table is greater than the data storage capacity of the dynamic random access memory 102, the controller 103 only corresponds to the power-on access table. Some user data is loaded into the dynamic random access memory 102. After the user data is read by the host 10, the remaining user data corresponding to the above power access table is replaced by the dynamic random access. User data of the memory 102.

第2A圖係顯示根據本發明之一實施例所述之上電存取表之示意圖。根據本發明之一實施例,上電存取表200A用以紀錄使用者資料的邏輯位址,依據H2F對照表,控制器103可以得知每一使用者資料儲存於快閃式記憶體陣列101的位址,並存取之。在此僅以10筆存取資料進行說明解釋,並非以任何形式限定於此。 2A is a schematic diagram showing an upper power access table according to an embodiment of the present invention. According to an embodiment of the present invention, the power-on access table 200A is used to record the logical address of the user data. According to the H2F comparison table, the controller 103 can learn that each user data is stored in the flash memory array 101. Address and access it. The explanation is explained here with only 10 access materials, and is not limited thereto in any way.

第2B圖係顯示根據本發明之另一實施例所述之上電存取表之示意圖。根據本發明之一實施例,上電存取表200B如同小型的H2F對照表,紀錄使用者資料的邏輯位址以及物理位址。因此,控制器103可依據上電存取表得知每一使用者資料儲存於快閃式記憶體陣列101的位址,並存取之。在此僅以10筆存取資料進行說明解釋,並非以任何形式限定於此。 Figure 2B is a schematic diagram showing an over-powered access meter in accordance with another embodiment of the present invention. According to an embodiment of the present invention, the power-on access table 200B is like a small H2F look-up table, and records the logical address and physical address of the user data. Therefore, the controller 103 can learn, according to the power-on access table, that each user data is stored in the address of the flash memory array 101 and access it. The explanation is explained here with only 10 access materials, and is not limited thereto in any way.

第3A圖係顯示根據本發明之一實施例所述之建立上電存取表方法之流程圖,此建立上電存取表方法適用於儲存裝置100。首先,儲存裝置100執行初始化(步驟S10),其中,儲存裝置100的初始化可以由電源的再供應或主機10的主機命令所啟動。 FIG. 3A is a flow chart showing a method of establishing a power-on access list according to an embodiment of the present invention, and the method for establishing a power-on access list is applicable to the storage device 100. First, the storage device 100 performs initialization (step S10), wherein the initialization of the storage device 100 can be initiated by re-provisioning of the power source or host command of the host 10.

接著,依據主機指令及H2F對照表存取快閃式記憶體陣列之使用者資料(步驟S12)。儲存裝置100完成初始化後,等待接收來自於主機10的主機命令。假設主機10也完成初始化並開始作業系統載入,則主機命令主要是資料讀取命令以要求儲存裝置100提供作業系統的檔案。儲存裝置100依據主機命令以及H2F對照表讀取快閃式記憶體陣列101之使用者資料(作業系統的檔案),並將使用者資料輸出至主機10。除了資料讀取 命令之外,主機命令亦可能是資料寫入命令。 Then, the user data of the flash memory array is accessed according to the host command and the H2F comparison table (step S12). After the storage device 100 completes initialization, it waits to receive a host command from the host 10. Assuming host 10 also completes initialization and begins operating system loading, the host command is primarily a data read command to request storage device 100 to provide an archive of the operating system. The storage device 100 reads the user data (file of the operating system) of the flash memory array 101 according to the host command and the H2F comparison table, and outputs the user data to the host 10. In addition to the data read command, the host command may also be a data write command.

接著,將使用者資料的位址資訊記錄至上電存取表(步驟S14)並判斷上電存取表是否已儲滿位址資訊(步驟S16),如果上電存取表尚未儲滿位址資訊則繼續記錄位址資訊至上電存取表;如果上電存取表已儲滿位址資訊(例如:已儲存8MB位址資訊)則結束本發明建立上電存取表方法之執行。 Then, the address information of the user data is recorded to the power-on access table (step S14) and it is determined whether the power-on access table has filled the address information (step S16), if the power-on access table has not yet filled the address The information continues to record the address information to the power-on access table; if the power-on access table has filled the address information (for example, 8 MB address information has been stored), the method of establishing the power-on access table of the present invention is terminated.

第3B圖係顯示根據本發明之一實施例所述之使用上電存取表方法之流程圖,此建立上電存取表方法適用於儲存裝置100。 FIG. 3B is a flow chart showing a method of using a power-on access table according to an embodiment of the present invention, and the method for establishing a power-on access list is applicable to the storage device 100.

首先,儲存裝置100執行初始化(步驟S20),其中,儲存裝置100的初始化可以由電源的再供應或主機10的主機命令所啟動。 First, the storage device 100 performs initialization (step S20), wherein the initialization of the storage device 100 can be initiated by re-provisioning of the power source or host command of the host 10.

接著,判斷上電存取表是否存在(步驟S22),如果存在則執行步驟S24,否則結束本發明使用上電存取表方法之執行。 Next, it is judged whether or not the power-on access table exists (step S22), and if yes, step S24 is performed, otherwise the execution of the method of using the power-on access table of the present invention is ended.

接著,依據H2F對照表,依序將上電存取表所對應的使用者資料上傳至資料暫存器(步驟S24),其中,資料暫存器可為動態隨機存取記憶體102,如果上電存取表所對應的使用者資料的資料量大於資料暫存器的資料儲存量,則先上傳部份上電存取表所對應的使用者資料至資料暫存器,再上傳剩餘上電存取表所對應的使用者資料至資料暫存器。如果上電存取表的記錄如圖2B所示,則控制器103不需使用H2F對照表也能依序將上電存取表所對應的使用者資料上傳至資料暫存器。 Then, according to the H2F comparison table, the user data corresponding to the power-on access table is sequentially uploaded to the data temporary storage device (step S24), wherein the data temporary storage device can be the dynamic random access memory 102, if If the amount of data of the user data corresponding to the electric access table is greater than the data storage capacity of the data register, the user data corresponding to the power-on access table is first uploaded to the data register, and then the remaining power is uploaded. Access the user data corresponding to the table to the data register. If the record of the power-on access table is as shown in FIG. 2B, the controller 103 can sequentially upload the user data corresponding to the power-on access table to the data register without using the H2F comparison table.

接著,依據主機指令、上電存取表及H2F對照表存 取儲存裝置100(步驟S26)。儲存裝置100接收來自於主機10的主機命令,首先判斷主機命令中的邏輯位址是否記錄於上電存取表,如果是,則儲存裝置100直接提供資料暫存器所儲存的使用者資料至主機10;反之,儲存裝置100依據主機指令及H2F對照表存取儲存於快閃式記憶體陣列101之使用者資料。 Next, the storage device 100 is stored in accordance with the host command, the power-on access table, and the H2F look-up table (step S26). The storage device 100 receives the host command from the host 10, first determines whether the logical address in the host command is recorded in the power-on access table, and if so, the storage device 100 directly provides the user data stored in the data register to The host device 10; otherwise, the storage device 100 accesses the user data stored in the flash memory array 101 according to the host command and the H2F comparison table.

以上所述為實施例的概述特徵。所屬技術領域中具有通常知識者應可以輕而易舉地利用本發明為基礎設計或調整以實行相同的目的和/或達成此處介紹的實施例的相同優點。所屬技術領域中具有通常知識者也應了解相同的配置不應背離本創作的精神與範圍,在不背離本創作的精神與範圍下他們可做出各種改變、取代和交替。說明性的方法僅表示示範性的步驟,但這些步驟並不一定要以所表示的順序執行。可另外加入、取代、改變順序和/或消除步驟以視情況而作調整,並與所揭露的實施例精神和範圍一致。 The above is an overview feature of the embodiment. Those having ordinary skill in the art should be able to use the present invention as a basis for design or adaptation to achieve the same objectives and/or achieve the same advantages of the embodiments described herein. It should be understood by those of ordinary skill in the art that the same configuration should not depart from the spirit and scope of the present invention, and various changes, substitutions and substitutions can be made without departing from the spirit and scope of the present invention. The illustrative methods are merely illustrative of the steps, but are not necessarily performed in the order presented. The steps may be additionally added, substituted, changed, and/or eliminated, as appropriate, and are consistent with the spirit and scope of the disclosed embodiments.

Claims (9)

一種儲存裝置,耦接至一主機,包括:一快閃式記憶體陣列,儲存一第一資料;一動態隨機存取記憶體,儲存一上電存取表,其中上述上電存取表用以紀錄上述主機於上述儲存裝置之前次上電後存取之上述第一資料之位址資訊;以及一控制器,其中上述控制器在上述儲存裝置上電後之一閒置時間內,根據上述位址資訊將上述第一資料預先載入至上述動態隨機存取記憶體,以提高上述主機對上述儲存裝置之存取效率。  A storage device is coupled to a host, comprising: a flash memory array for storing a first data; and a dynamic random access memory for storing a power-on access table, wherein the power-on access table is used And recording, by the controller, the address information of the first data accessed by the host after the power-on of the storage device; and a controller, wherein the controller is in an idle time after the storage device is powered on, according to the bit The address information preloads the first data into the dynamic random access memory to improve the access efficiency of the host to the storage device.   如申請專利範圍第1項所述之儲存裝置,其中上述閒置時間係為上述儲存裝置上電後至上述主機開始存取上述儲存裝置之前的時間。  The storage device of claim 1, wherein the idle time is a time before the storage device is powered on until the host starts to access the storage device.   如申請專利範圍第1項所述之儲存裝置,其中上述主機利用預先載入至上述動態隨機存取記憶體之上述第一資料,完成一初始化。  The storage device of claim 1, wherein the host performs an initialization by using the first data preloaded into the dynamic random access memory.   如申請專利範圍第1項所述之儲存裝置,其中上述上電存取表更紀錄上述主機於上述儲存裝置之前次上電後存取之上述第一資料之一先後順序,其中上述控制器根據上述先後順序,將一既定大小之上述第一資料預先載入至上述動態隨機存取記憶體,其餘的上述第一資料不預先載入至上述動態隨機存取記憶體,其中上述主機存取上述動態隨機存取記憶體以及上述快閃式記憶體陣列,以完成一初始化。  The storage device of claim 1, wherein the power-on access table further records a sequence of the first data accessed by the host after the power-on of the storage device, wherein the controller is based on In the above sequence, the first data of a predetermined size is preloaded into the dynamic random access memory, and the remaining first data is not preloaded into the dynamic random access memory, wherein the host accesses the foregoing Dynamic random access memory and the above flash memory array to complete an initialization.   如申請專利範圍第4項所述之儲存裝置,其中當上述主機 完成上述初始化後,上述主機發送一存取指令用以存取上述快閃式記憶體陣列之一第二資料,上述控制器根據上述存取指令將上述第二資料暫存於上述動態隨機存取記憶體,以提高上述主機對上述儲存裝置之存取效率。  The storage device of claim 4, wherein, after the host completes the initialization, the host sends an access command for accessing a second data of the flash memory array, the controller is configured according to The access command temporarily stores the second data in the dynamic random access memory to improve access efficiency of the host to the storage device.   一種預載方法,適用於一快閃式記憶體陣列,包括:對上述快閃式記憶體陣列上電;將一主機完成一初始化所需存取上述快閃式記憶體陣列之一第一資料之位址資訊,紀錄於一上電存取表;再次對上述快閃式記憶體陣列上電;根據上述上電存取表之上述位址資訊,將上述第一資料自上述快閃式記憶體陣列預先載入一動態隨機存取記憶體;以及利用上述第一資料,完成上述主機之上述初始化。  A preloading method, applicable to a flash memory array, comprising: powering on the flash memory array; and accessing a first data of the flash memory array by a host to perform an initialization The address information is recorded in a power-on access table; the flash memory array is powered on again; and the first data is saved from the flash memory according to the address information of the power-on access table. The body array is preloaded with a dynamic random access memory; and the initialization of the host is completed by using the first data.   如申請專利範圍第6項所述之預載方法,其中上述根據上述上電存取表將上述第一資料自上述快閃式記憶體陣列預先載入上述動態隨機存取記憶體之步驟係執行於對上述快閃式記憶體陣列上電後至上述主機開始存取上述快閃式記憶體陣列之間的一閒置時間。  The preloading method of claim 6, wherein the step of preloading the first data from the flash memory array into the dynamic random access memory according to the power-on access table is performed An idle time between when the flash memory array is powered up and when the host begins to access the flash memory array.   如申請專利範圍第6項所述之預載方法,其中上述上電存取表更用以紀錄上述主機於上述快閃式記憶體陣列前次上電後存取之上述第一資料之一先後順序,其中上述根據上述上電存取表將上述第一資料自上述快閃式記憶體陣列預先載入上述動態隨機存取記憶體之步驟更包括: 根據上述先後順序,將一既定大小之上述第一資料預先載入至上述動態隨機存取記憶體;以及不將上述第一資料超過上述既定大小的部份預先載入至上述動態隨機存取記憶體。  The preloading method of claim 6, wherein the power-on access table is further configured to record one of the first data accessed by the host after the previous power-on of the flash memory array. a sequence, wherein the step of preloading the first data from the flash memory array into the dynamic random access memory according to the power-on access table according to the foregoing power-on access table further comprises: performing a predetermined size according to the foregoing sequence The first data is preloaded into the dynamic random access memory; and the portion in which the first data exceeds the predetermined size is not preloaded into the dynamic random access memory.   如申請專利範圍第8項所述之預載方法,其中當上述初始化完成後,根據一存取指令將上述快閃式記憶體陣列之一第二資料搬移至上述動態隨機存取記憶體,以提高上述主機之存取效率,其中上述主機根據上述存取指令存取上述第二資料。  The preloading method of claim 8, wherein, after the initializing is completed, moving a second data of the flash memory array to the dynamic random access memory according to an access command, The access efficiency of the host is improved, wherein the host accesses the second data according to the access instruction.  
TW106126215A 2017-05-10 2017-08-03 Storage device, recording method and pre-fetch method TWI646551B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201810001496.2A CN108877856B (en) 2017-05-10 2018-01-02 Storage device, recording method and preloading method
US15/954,307 US10635601B2 (en) 2017-05-10 2018-04-16 Flash memory devices and prefetch methods thereof
JP2018079759A JP6588595B2 (en) 2017-05-10 2018-04-18 Storage device, recording method, and prefetch method
US16/825,354 US11494312B2 (en) 2017-05-10 2020-03-20 Flash memory devices and prefetch methods thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201762504140P 2017-05-10 2017-05-10
US62/504,140 2017-05-10

Publications (2)

Publication Number Publication Date
TWI646551B TWI646551B (en) 2019-01-01
TW201901677A true TW201901677A (en) 2019-01-01

Family

ID=65803390

Family Applications (2)

Application Number Title Priority Date Filing Date
TW106126215A TWI646551B (en) 2017-05-10 2017-08-03 Storage device, recording method and pre-fetch method
TW106129948A TWI650641B (en) 2017-05-10 2017-09-01 Storage device and refresh method

Family Applications After (1)

Application Number Title Priority Date Filing Date
TW106129948A TWI650641B (en) 2017-05-10 2017-09-01 Storage device and refresh method

Country Status (1)

Country Link
TW (2) TWI646551B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738289B2 (en) * 2001-02-26 2004-05-18 Sandisk Corporation Non-volatile memory with improved programming and method therefor
US7046568B2 (en) * 2002-09-24 2006-05-16 Sandisk Corporation Memory sensing circuit and method for low voltage operation
US7443757B2 (en) * 2002-09-24 2008-10-28 Sandisk Corporation Non-volatile memory and method with reduced bit line crosstalk errors
US7594135B2 (en) * 2003-12-31 2009-09-22 Sandisk Corporation Flash memory system startup operation
US7224614B1 (en) * 2005-12-29 2007-05-29 Sandisk Corporation Methods for improved program-verify operations in non-volatile memories
US20090172246A1 (en) * 2007-12-26 2009-07-02 Sandisk Il Ltd. Device and method for managing initialization thereof
TWI514140B (en) * 2013-02-05 2015-12-21 Via Tech Inc Non-volatile memory apparatus and operating method thereof
JP2016181106A (en) * 2015-03-24 2016-10-13 富士通株式会社 Information processing apparatus and program
WO2017039386A1 (en) * 2015-09-04 2017-03-09 엘지전자(주) Apparatus and method for transmitting or receiving broadcast signal

Also Published As

Publication number Publication date
TWI650641B (en) 2019-02-11
TW201901436A (en) 2019-01-01
TWI646551B (en) 2019-01-01

Similar Documents

Publication Publication Date Title
JP6142081B2 (en) Volatile memory architecture and related controllers in non-volatile memory devices
US10108366B2 (en) Non-volatile memory apparatus and operating method thereof
US6704852B2 (en) Control device applicable to flash memory card and method for building partial lookup table
US20190073132A1 (en) Method and system for active persistent storage via a memory bus
US9400744B2 (en) Magnetic random access memory journal for multi-level cell flash memory
US8065482B2 (en) Storage system and method for striping data
KR101347285B1 (en) Method for prefetching of hard disk drive, recording medium and apparatus therefor
US10977171B2 (en) Method for creating multi-namespace and accessing data therein
TWI541819B (en) Method for performing error correction, and associated memory apparatus thereof and associated controller thereof
US20100042773A1 (en) Flash memory storage system and data writing method thereof
US11275678B2 (en) Data storage device with spare blocks for replacing bad block in super block and operating method thereof
US20170038969A1 (en) Data storage device and operating method thereof
US20200218653A1 (en) Controller, data storage device, and operating method thereof
KR20160025292A (en) Data storage device, data processing system including the same and operating method thereof
TWI523030B (en) Method for managing buffer memory, memory controllor, and memory storage device
US11494312B2 (en) Flash memory devices and prefetch methods thereof
US11061614B2 (en) Electronic apparatus having data retention protection and operating method thereof
US20200310981A1 (en) Controller, memory system and operating method thereof
TWI714830B (en) Management method of metadata and memory device using the same
US20180329649A1 (en) Flash Memory Devices and Prefetch Methods Thereof
JP2009175877A (en) Semiconductor memory
TWI646551B (en) Storage device, recording method and pre-fetch method
US20170083235A1 (en) Device capable of using external volatile memory and device capable of releasing internal volatile memory
US11133060B2 (en) Data storage device and operating method thereof
US20220391133A1 (en) Memory controller and memory system including the same