TW202131319A - Value adjusting method, memory control circuit unit and memory storage device for flash memory - Google Patents

Value adjusting method, memory control circuit unit and memory storage device for flash memory Download PDF

Info

Publication number
TW202131319A
TW202131319A TW109103869A TW109103869A TW202131319A TW 202131319 A TW202131319 A TW 202131319A TW 109103869 A TW109103869 A TW 109103869A TW 109103869 A TW109103869 A TW 109103869A TW 202131319 A TW202131319 A TW 202131319A
Authority
TW
Taiwan
Prior art keywords
data
physical erasing
unit
threshold value
memory
Prior art date
Application number
TW109103869A
Other languages
Chinese (zh)
Other versions
TWI711048B (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 TW109103869A priority Critical patent/TWI711048B/en
Application granted granted Critical
Publication of TWI711048B publication Critical patent/TWI711048B/en
Publication of TW202131319A publication Critical patent/TW202131319A/en

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

A value adjusting method, a memory control circuit unit and a memory storage device for flash memory are provided. The method can be applied to a flash memory with a three-dimensional (3D) structure, an embedded memory device, or a solid-state hard disk. The method includes: writing at least one data to at least one second physical erasing unit of at least one first physical erasing unit, and obtaining a distribution state of valid data in plurality of physical erasing units; adjusting a specific threshold value according to the distribution state; and when the number of the at least one first physical erasing unit is less than the specific threshold value, performing a valid data merging operation.

Description

快閃記憶體之資料整理方法、控制電路單元與儲存裝置Data sorting method, control circuit unit and storage device of flash memory

本發明是有關於一種快閃記憶體之資料整理方法、快閃記憶體控制電路單元與快閃記憶體儲存裝置。The invention relates to a flash memory data sorting method, a flash memory control circuit unit and a flash memory storage device.

數位相機、行動電話與MP3播放器在這幾年來的成長十分迅速,使得消費者對儲存媒體的需求也急速增加。由於可複寫式非揮發性記憶體模組(例如,快閃記憶體)具有資料非揮發性、省電、體積小,以及無機械結構等特性,所以非常適合內建於上述所舉例的各種可攜式多媒體裝置中。Digital cameras, mobile phones and MP3 players have grown rapidly in the past few years, which has led to a rapid increase in consumer demand for storage media. Since the rewritable non-volatile memory module (for example, flash memory) has the characteristics of non-volatile data, power saving, small size, and no mechanical structure, it is very suitable for the built-in various types of memory modules mentioned above. In portable multimedia devices.

一般來說,可複寫式非揮發性記憶體模組具有多個實體抹除單元,並且記憶體管理電路會邏輯地分割為多個區域。此些區域中通常會包括資料區與閒置區。當從主機系統接收到寫入指令與欲寫入之資料時,記憶體管理電路會從閒置區中提取實體抹除單元,並且將資料寫入至所提取的實體抹除單元中,以替換資料區的實體抹除單元。當可複寫式非揮發性記憶體模組的閒置區中閒置的實體抹除單元的個數為非大於一特定門檻值時,記憶體管理電路會執行一有效資料合併操作。例如,記憶體管理電路會從資料區中挑選有效資料最少的多個實體抹除單元(亦稱為,來源實體抹除單元),並從此些來源實體抹除單元中複製有效資料至閒置區中的至少一實體抹除單元(亦稱為,目的實體抹除單元)。之後,記憶體管理電路會將前述的來源實體抹除單元執行抹除操作並重新將該些來源實體抹除單元關聯置閒置區中以增加閒置區中實體抹除單元的數量。此外,記憶體管理電路還會將前述的目的實體抹除單元關連至資料區。Generally speaking, a rewritable non-volatile memory module has multiple physical erasing units, and the memory management circuit is logically divided into multiple regions. These areas usually include data areas and idle areas. When receiving the write command and the data to be written from the host system, the memory management circuit extracts the physical erasing unit from the idle area and writes the data to the extracted physical erasing unit to replace the data The physical erasure unit of the zone. When the number of idle physical erasing units in the idle area of the rewritable non-volatile memory module is not greater than a specific threshold value, the memory management circuit performs an effective data merging operation. For example, the memory management circuit selects multiple physical erasing units (also known as source physical erasing units) with the least effective data from the data area, and copies valid data from these source physical erasing units to the free area At least one physical erasing unit (also referred to as a destination physical erasing unit). After that, the memory management circuit executes the erasing operation on the aforementioned source physical erasing units and re-associates the source physical erasing units in the idle area to increase the number of physical erasing units in the idle area. In addition, the memory management circuit also connects the aforementioned target physical erasing unit to the data area.

然而,依據有效資料在可複寫式非揮發性記憶體模組中的分布的不同,在執行有效資料合併操作時也會有不同的執行效率。例如,假設有五個來源實體抹除單元,並且在使用此五個來源實體抹除單元執行有效資料合併操作後僅增加一個實體抹除單元至閒置區中。在另一例子中,假設有兩個來源實體抹除單元,並且在使用此兩個來源實體抹除單元執行有效資料合併操作後僅增加一個實體抹除單元至閒置區中。相較於第一個例子來說,第二個例子在執行有效資料合併操作時所需存取的實體抹除單元較少,故第二個例子具有較佳的執行效率。特別是,當有效資料合併操作的執行效率較差時,會連帶地影響到主機系統對可複寫式非揮發性記憶體模組進行寫入時的效能。However, depending on the distribution of valid data in the rewritable non-volatile memory module, there will be different execution efficiencies when performing valid data merging operations. For example, suppose there are five source physical erasing units, and only one physical erasing unit is added to the idle area after the five source physical erasing units are used to perform a valid data merging operation. In another example, suppose there are two source physical erasing units, and only one physical erasing unit is added to the idle area after the two source physical erasing units are used to perform a valid data merging operation. Compared with the first example, the second example requires fewer physical erasing units to access when performing effective data merging operations, so the second example has better execution efficiency. In particular, when the execution efficiency of the effective data merging operation is poor, it will also affect the performance of the host system when writing to the rewritable non-volatile memory module.

因此,如何避免讓有效資料合併操作影響主機系統對可複寫式非揮發性記憶體模組進行寫入時的效能,是本領域技術人員所欲解決的問題之一。Therefore, how to prevent the effective data merging operation from affecting the performance of the host system when writing to the rewritable non-volatile memory module is one of the problems that those skilled in the art want to solve.

本發明提供一種快閃記憶體之資料整理方法、快閃記憶體控制電路單元與快閃記憶體儲存裝置,可以避免讓有效資料合併操作影響主機系統對可複寫式非揮發性記憶體模組進行寫入時的效能。The present invention provides a flash memory data sorting method, a flash memory control circuit unit, and a flash memory storage device, which can prevent the effective data merging operation from affecting the host system's processing of the rewritable non-volatile memory module Performance when writing.

本發明提出一種快閃記憶體之資料整理方法,用於一可複寫式非揮發性記憶體模組,其中所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區,所述方法包括:將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元;獲得所述多個實體抹除單元中的有效資料的一分布狀態;根據所述分布狀態調整一特定門檻值;以及當所述第一實體抹除單元的數量小於所述特定門檻值時,執行一有效資料合併操作。The present invention provides a flash memory data sorting method for a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical erasing units, the The rewritable non-volatile memory module includes an idle area, at least one first physical erasing unit of the plurality of physical erasing units is associated with the idle area, and the method includes: storing at least one data At least one second physical erasing unit written into the first physical erasing unit; obtaining a distribution state of valid data in the plurality of physical erasing units; adjusting a specific threshold value according to the distribution state And when the number of the first physical erasure unit is less than the specific threshold value, perform a valid data merging operation.

在本發明的一實施例中,獲得所述多個實體抹除單元中的有效資料的所述分布狀態的步驟包括:獲得所述資料的一資料量;獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。In an embodiment of the present invention, the step of obtaining the distribution status of the valid data in the plurality of physical erasing units includes: obtaining a data amount of the data; obtaining the distribution status of the effective data in the plurality of physical erasing units The number of at least one third physical erasing unit of, wherein the effective data amount of each third physical erasing unit is changed after the data is written into the second physical erasing unit.

在本發明的一實施例中,根據所述分布狀態調整所述特定門檻值的步驟包括:根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。In an embodiment of the present invention, the step of adjusting the specific threshold value according to the distribution state includes: adjusting the specific threshold value according to the amount of data and the number of the third physical erasing units.

在本發明的一實施例中,根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的步驟包括:獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商;若所述第三實體抹除單元的數量不大於一第一門檻值且所述第一數值介於一第一範圍內時,調低所述特定門檻值。In an embodiment of the present invention, the step of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit includes: obtaining a first value, wherein the first value is The quotient of the amount of data divided by the number of the third physical erasing unit; if the number of the third physical erasing unit is not greater than a first threshold and the first value is within a first range , Lower the specific threshold value.

在本發明的一實施例中,根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的步驟還包括:若所述第三實體抹除單元的數量大於一第二門檻值時,調高所述特定門檻值。In an embodiment of the present invention, the step of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit further includes: if the number of the third physical erasing unit is greater than a first When the threshold value is two, increase the specific threshold value.

在本發明的一實施例中,所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。In an embodiment of the present invention, the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is less than the number of the first physical erasing unit Thirty percent.

在本發明的一實施例中,僅當所述資料的一資料量等於一特定資料量時,執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的步驟。In an embodiment of the present invention, only when a data amount of the data is equal to a specific data amount, the step of obtaining the distribution state of the valid data in the plurality of physical erasing units is performed.

本發明提出一種快閃記憶體控制電路單元,用於控制一可複寫式非揮發性記憶體模組,所述記憶體控制電路單元包括:主機介面、記憶體介面與記憶體管理電路。主機介面用以耦接至一主機系統。記憶體介面用以耦接至所述可複寫式非揮發性記憶體模組。其中所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區。記憶體管理電路耦接至所述主機介面以及所述記憶體介面,並用以執行下述運作:將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元;獲得所述多個實體抹除單元中的有效資料的一分布狀態;根據所述分布狀態調整一特定門檻值;以及當所述第一實體抹除單元的數量小於所述特定門檻值時,執行一有效資料合併操作。The present invention provides a flash memory control circuit unit for controlling a rewritable non-volatile memory module. The memory control circuit unit includes a host interface, a memory interface, and a memory management circuit. The host interface is used for coupling to a host system. The memory interface is used for coupling to the rewritable non-volatile memory module. The rewritable non-volatile memory module has a plurality of physical erasing units, the rewritable non-volatile memory module includes an idle area, and at least one of the plurality of physical erasing units The first physical erasing unit is associated with the idle area. The memory management circuit is coupled to the host interface and the memory interface, and is configured to perform the following operation: write at least one data to at least one second physical erasing unit in the first physical erasing unit Obtain a distribution state of the valid data in the plurality of physical erasure units; adjust a specific threshold value according to the distribution state; and when the number of the first physical erasure units is less than the specific threshold value, Perform an effective data merging operation.

在本發明的一實施例中,在獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作中,記憶體管理電路更用以執行下述運作:獲得所述資料的一資料量;獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。In an embodiment of the present invention, in the operation of obtaining the distribution state of the effective data in the plurality of physical erasing units, the memory management circuit is further configured to perform the following operation: obtain one of the data Data amount; obtaining the number of at least one third physical erasing unit in the plurality of physical erasing units, wherein each of the third entities is changed after the data is written to the second physical erasing unit The effective data amount of the erase unit.

在本發明的一實施例中,根據所述分布狀態調整所述特定門檻值的步驟包括:根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。In an embodiment of the present invention, the step of adjusting the specific threshold value according to the distribution state includes: adjusting the specific threshold value according to the amount of data and the number of the third physical erasing units.

在本發明的一實施例中,在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中,記憶體管理電路更用以執行下述運作:獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商;若所述第三實體抹除單元的數量不大於所述第一門檻值且所述第一數值介於一第一範圍內時,調低所述特定門檻值。In an embodiment of the present invention, in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing units, the memory management circuit is further configured to perform the following operations: A first value, where the first value is the quotient of dividing the amount of data by the number of the third physical erasing unit; if the number of the third physical erasing unit is not greater than the first threshold And when the first value is within a first range, the specific threshold value is lowered.

在本發明的一實施例中,在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中,記憶體管理電路更用以執行下述運作:若所述第三實體抹除單元的數量大於一第二門檻值時,調高所述特定門檻值。In an embodiment of the present invention, in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit, the memory management circuit is further configured to perform the following operations: When the number of the third physical erasing units is greater than a second threshold, the specific threshold is increased.

在本發明的一實施例中,所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。In an embodiment of the present invention, the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is less than the number of the first physical erasing unit Thirty percent.

在本發明的一實施例中,僅當所述資料的一資料量等於一特定資料量時,執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作。In an embodiment of the present invention, only when a data amount of the data is equal to a specific data amount, the operation of obtaining the distribution state of the effective data in the plurality of physical erasing units is performed.

本發明提出一種快閃記憶體儲存裝置,包括:連接介面單元、可複寫式非揮發性記憶體模組與記憶體控制電路單元。連接介面單元用以耦接至一主機系統。所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區。記憶體控制電路單元耦接至所述連接介面單元與所述可複寫式非揮發性記憶體模組,並用以執行下述運作:將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元;獲得所述多個實體抹除單元中的有效資料的一分布狀態;根據所述分布狀態調整一特定門檻值;以及當所述第一實體抹除單元的數量小於所述特定門檻值時,執行一有效資料合併操作。The present invention provides a flash memory storage device, including: a connection interface unit, a rewritable non-volatile memory module, and a memory control circuit unit. The connection interface unit is used for coupling to a host system. The rewritable non-volatile memory module has a plurality of physical erasing units, the rewritable non-volatile memory module includes an idle area, and at least one of the plurality of physical erasing units A physical erasing unit is associated with the idle area. The memory control circuit unit is coupled to the connection interface unit and the rewritable non-volatile memory module, and is configured to perform the following operation: write at least one data into the first physical erasing unit At least one second physical erasing unit; obtaining a distribution state of the valid data in the plurality of physical erasing units; adjusting a specific threshold value according to the distribution state; and when the first physical erasing unit When the quantity is less than the specific threshold value, a valid data merging operation is executed.

在本發明的一實施例中,在獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作中,記憶體控制電路單元更用以執行下述運作:獲得所述資料的一資料量;獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。In an embodiment of the present invention, in the operation of obtaining the distribution state of the valid data in the plurality of physical erasing units, the memory control circuit unit is further configured to perform the following operation: A data amount; obtaining the number of at least one third physical erasing unit in the plurality of physical erasing units, wherein the data is written to the second physical erasing unit and then each of the third physical erasing units is changed The effective data volume of the physical erasure unit.

在本發明的一實施例中,根據所述分布狀態調整所述特定門檻值的運作包括:根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。In an embodiment of the present invention, the operation of adjusting the specific threshold value according to the distribution state includes: adjusting the specific threshold value according to the amount of data and the number of third physical erasing units.

在本發明的一實施例中,在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中,記憶體控制電路單元更用以執行下述運作:獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商;若所述第三實體抹除單元的數量不大於一第一門檻值且所述第一數值介於一第一範圍內時,調低所述特定門檻值。In an embodiment of the present invention, in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing units, the memory control circuit unit is further configured to perform the following operations: A first value, where the first value is the quotient of dividing the amount of data by the number of the third physical erasing unit; if the number of the third physical erasing unit is not greater than a first threshold And when the first value is within a first range, the specific threshold value is lowered.

在本發明的一實施例中,在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中,記憶體控制電路單元更用以執行下述運作:若所述第三實體抹除單元的數量大於一第二門檻值時,調高所述特定門檻值。In an embodiment of the present invention, in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing units, the memory control circuit unit is further configured to perform the following operations: When the number of the third physical erasing units is greater than a second threshold, the specific threshold is increased.

在本發明的一實施例中,所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。In an embodiment of the present invention, the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is less than the number of the first physical erasing unit Thirty percent.

在本發明的一實施例中,僅當所述資料的一資料量等於一特定資料量時,執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作。In an embodiment of the present invention, only when a data amount of the data is equal to a specific data amount, the operation of obtaining the distribution state of the effective data in the plurality of physical erasing units is performed.

基於上述,本發明的快閃記憶體之資料整理方法、快閃記憶體控制電路單元與快閃記憶體儲存裝置可以根據有效資料在可複寫式非揮發性記憶體模組中的分布狀態,動態地調整用於判斷是否執行有效資料合併操作的特定門檻值,藉此避免讓有效資料合併操作影響主機系統對可複寫式非揮發性記憶體模組進行寫入時的效能,且可以提升有效資料合併操作的效能。Based on the above, the flash memory data sorting method, flash memory control circuit unit, and flash memory storage device of the present invention can dynamically change according to the distribution status of valid data in the rewritable non-volatile memory module. Adjust the specific threshold value used to determine whether to perform a valid data merging operation, so as to prevent the valid data merging operation from affecting the performance of the host system when writing to the rewritable non-volatile memory module, and to improve the effective data The effectiveness of the merge operation.

一般而言,記憶體儲存裝置(亦稱,記憶體儲存系統或快閃記憶體儲存裝置)包括可複寫式非揮發性記憶體模組(rewritable non-volatile memory module)與控制器(亦稱,控制電路)。通常記憶體儲存裝置是與主機系統一起使用,以使主機系統可將資料寫入至記憶體儲存裝置或從記憶體儲存裝置中讀取資料。Generally speaking, memory storage devices (also known as memory storage systems or flash memory storage devices) include rewritable non-volatile memory modules and controllers (also known as, Control circuit). Generally, the memory storage device is used together with the host system, so that the host system can write data to the memory storage device or read data from the memory storage device.

圖1是根據本發明的一範例實施例所繪示的主機系統、記憶體儲存裝置及輸入/輸出(I/O)裝置的示意圖。圖2是根據本發明的另一範例實施例所繪示的主機系統、記憶體儲存裝置及I/O裝置的示意圖。FIG. 1 is a schematic diagram of a host system, a memory storage device, and an input/output (I/O) device according to an exemplary embodiment of the present invention. FIG. 2 is a schematic diagram of a host system, a memory storage device, and an I/O device according to another exemplary embodiment of the present invention.

請參照圖1與圖2,主機系統11一般包括處理器111、隨機存取記憶體(random access memory, RAM)112、唯讀記憶體(read only memory, ROM)113及資料傳輸介面114。處理器111、隨機存取記憶體112、唯讀記憶體113及資料傳輸介面114皆耦接至系統匯流排(system bus)110。1 and FIG. 2, the host system 11 generally includes a processor 111, a random access memory (RAM) 112, a read only memory (ROM) 113, and a data transmission interface 114. The processor 111, the random access memory 112, the read-only memory 113, and the data transmission interface 114 are all coupled to a system bus 110.

在本範例實施例中,主機系統11是透過資料傳輸介面114與記憶體儲存裝置10耦接。例如,主機系統11可經由資料傳輸介面114將資料儲存至記憶體儲存裝置10或從記憶體儲存裝置10中讀取資料。此外,主機系統11是透過系統匯流排110與I/O裝置12耦接。例如,主機系統11可經由系統匯流排110將輸出訊號傳送至I/O裝置12或從I/O裝置12接收輸入訊號。In this exemplary embodiment, the host system 11 is coupled to the memory storage device 10 through the data transmission interface 114. For example, the host system 11 can store data to the memory storage device 10 or read data from the memory storage device 10 via the data transmission interface 114. In addition, the host system 11 is coupled to the I/O device 12 through the system bus 110. For example, the host system 11 can transmit output signals to the I/O device 12 or receive input signals from the I/O device 12 via the system bus 110.

在本範例實施例中,處理器111、隨機存取記憶體112、唯讀記憶體113及資料傳輸介面114可設置在主機系統11的主機板20上。資料傳輸介面114的數目可以是一或多個。透過資料傳輸介面114,主機板20可以經由有線或無線方式耦接至記憶體儲存裝置10。記憶體儲存裝置10可例如是隨身碟201、記憶卡202、固態硬碟(Solid State Drive, SSD)203或無線記憶體儲存裝置204。無線記憶體儲存裝置204可例如是近距離無線通訊(Near Field Communication, NFC)記憶體儲存裝置、無線傳真(WiFi)記憶體儲存裝置、藍牙(Bluetooth)記憶體儲存裝置或低功耗藍牙記憶體儲存裝置(例如,iBeacon)等以各式無線通訊技術為基礎的記憶體儲存裝置。此外,主機板20也可以透過系統匯流排110耦接至全球定位系統(Global Positioning System, GPS)模組205、網路介面卡206、無線傳輸裝置207、鍵盤208、螢幕209、喇叭210等各式I/O裝置。例如,在一範例實施例中,主機板20可透過無線傳輸裝置207存取無線記憶體儲存裝置204。In this exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113, and the data transmission interface 114 may be disposed on the motherboard 20 of the host system 11. The number of data transmission interfaces 114 may be one or more. Through the data transmission interface 114, the motherboard 20 can be coupled to the memory storage device 10 in a wired or wireless manner. The memory storage device 10 may be, for example, a flash drive 201, a memory card 202, a solid state drive (SSD) 203, or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a Near Field Communication (NFC) memory storage device, a wireless fax (WiFi) memory storage device, a Bluetooth (Bluetooth) memory storage device, or a Bluetooth low energy memory device. Storage devices (for example, iBeacon) and other memory storage devices based on various wireless communication technologies. In addition, the motherboard 20 can also be coupled to a Global Positioning System (GPS) module 205, a network interface card 206, a wireless transmission device 207, a keyboard 208, a screen 209, a speaker 210, etc. through the system bus 110. Type I/O device. For example, in an exemplary embodiment, the motherboard 20 can access the wireless memory storage device 204 through the wireless transmission device 207.

在一範例實施例中,所提及的主機系統為可實質地與記憶體儲存裝置配合以儲存資料的任意系統。雖然在上述範例實施例中,主機系統是以電腦系統來作說明,然而,圖3是根據本發明的另一範例實施例所繪示的主機系統與記憶體儲存裝置的示意圖。請參照圖3,在另一範例實施例中,主機系統31也可以是數位相機、攝影機、通訊裝置、音訊播放器、視訊播放器或平板電腦等系統,而記憶體儲存裝置30可為其所使用的安全數位(Secure Digital, SD)卡32、小型快閃(Compact Flash, CF)卡33或嵌入式儲存裝置34等各式非揮發性記憶體儲存裝置。嵌入式儲存裝置34包括嵌入式多媒體卡(embedded Multi Media Card, eMMC)341及/或嵌入式多晶片封裝(embedded Multi Chip Package, eMCP)儲存裝置342等各類型將記憶體模組直接耦接於主機系統的基板上的嵌入式儲存裝置。In an exemplary embodiment, the host system mentioned is any system that can substantially cooperate with a memory storage device to store data. Although in the above exemplary embodiment, the host system is described as a computer system, FIG. 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention. 3, in another exemplary embodiment, the host system 31 can also be a system such as a digital camera, a video camera, a communication device, an audio player, a video player, or a tablet computer, and the memory storage device 30 can be used for it. Various non-volatile memory storage devices such as a Secure Digital (SD) card 32, a Compact Flash (CF) card 33, or an embedded storage device 34 are used. The embedded storage device 34 includes an embedded Multi Media Card (eMMC) 341 and/or an embedded Multi Chip Package (embedded Multi Chip Package, eMCP) storage device 342. The memory module is directly coupled to the Embedded storage device on the substrate of the host system.

圖4是根據本發明的一範例實施例所繪示的記憶體儲存裝置的概要方塊圖。FIG. 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention.

請參照圖4,記憶體儲存裝置10包括連接介面單元402、記憶體控制電路單元404(亦稱為,快閃記憶體控制電路單元)與可複寫式非揮發性記憶體模組406。4, the memory storage device 10 includes a connection interface unit 402, a memory control circuit unit 404 (also referred to as a flash memory control circuit unit), and a rewritable non-volatile memory module 406.

連接介面單元402用以將記憶體儲存裝置10耦接至主機系統11。在本範例實施例中,連接介面單元402是符合高速周邊零件連接介面(Peripheral Component Interconnect Express, PCI Express)標準,且相容於快速非揮發性記憶體(NVM express)介面標準。具體而言,快速非揮發性記憶體介面標準為一種主機系統與記憶體裝置之間通訊的協議,其定義了記憶體儲存裝置之控制器與主機系統之作業系統之間的暫存器介面、指令集與功能集,並藉由對記憶體儲存裝置的介面標準最佳化,來促進以PCIe介面為主的記憶體儲存裝置之資料存取速度與資料傳輸速率。然而,在另一範例實施例中,連接介面單元402亦可以是符合其他適合的標準。此外,連接介面單元402可與記憶體控制電路單元404封裝在一個晶片中,或者連接介面單元402是佈設於一包含記憶體控制電路單元404之晶片外。The connection interface unit 402 is used to couple the memory storage device 10 to the host system 11. In this exemplary embodiment, the connection interface unit 402 complies with the Peripheral Component Interconnect Express (PCI Express) standard and is compatible with the fast non-volatile memory (NVM express) interface standard. Specifically, the fast non-volatile memory interface standard is a protocol for communication between a host system and a memory device, which defines the register interface between the controller of the memory storage device and the operating system of the host system. The instruction set and function set, and by optimizing the interface standard of the memory storage device, promote the data access speed and data transfer rate of the memory storage device based on the PCIe interface. However, in another exemplary embodiment, the connection interface unit 402 may also comply with other suitable standards. In addition, the connection interface unit 402 and the memory control circuit unit 404 can be packaged in one chip, or the connection interface unit 402 can be arranged outside a chip including the memory control circuit unit 404.

記憶體控制電路單元404用以執行以硬體型式或韌體型式實作的多個邏輯閘或控制指令並且根據主機系統11的指令在可複寫式非揮發性記憶體模組406中進行資料的寫入、讀取與抹除等運作。The memory control circuit unit 404 is used to execute a plurality of logic gates or control commands implemented in a hardware type or a firmware type, and perform data processing in the rewritable non-volatile memory module 406 according to the instructions of the host system 11 Operations such as writing, reading, and erasing.

可複寫式非揮發性記憶體模組406是耦接至記憶體控制電路單元404並且用以儲存主機系統11所寫入之資料。可複寫式非揮發性記憶體模組406可以是單階記憶胞(Single Level Cell, SLC)NAND型快閃記憶體模組(即,一個記憶胞中可儲存1個位元的快閃記憶體模組)、多階記憶胞(Multi Level Cell, MLC)NAND型快閃記憶體模組(即,一個記憶胞中可儲存2個位元的快閃記憶體模組)、複數階記憶胞(Triple Level Cell,TLC)NAND型快閃記憶體模組(即,一個記憶胞中可儲存3個位元的快閃記憶體模組)、其他快閃記憶體模組或其他具有相同特性的記憶體模組。The rewritable non-volatile memory module 406 is coupled to the memory control circuit unit 404 and used to store data written by the host system 11. The rewritable non-volatile memory module 406 can be a single level cell (SLC) NAND flash memory module (that is, a flash memory that can store 1 bit in a memory cell). Modules), Multi Level Cell (MLC) NAND flash memory modules (that is, a flash memory module that can store 2 bits in a memory cell), and multiple-level memory cells ( Triple Level Cell, TLC) NAND flash memory module (ie, a flash memory module that can store 3 bits in a memory cell), other flash memory modules or other memories with the same characteristics Body module.

可複寫式非揮發性記憶體模組406中的每一個記憶胞是以電壓(以下亦稱為臨界電壓)的改變來儲存一或多個位元。具體來說,每一個記憶胞的控制閘極(control gate)與通道之間有一個電荷捕捉層。透過施予一寫入電壓至控制閘極,可以改變電荷補捉層的電子量,進而改變記憶胞的臨界電壓。此改變記憶胞之臨界電壓的操作亦稱為“把資料寫入至記憶胞”或“程式化(programming)記憶胞”。隨著臨界電壓的改變,可複寫式非揮發性記憶體模組406中的每一個記憶胞具有多個儲存狀態。透過施予讀取電壓可以判斷一個記憶胞是屬於哪一個儲存狀態,藉此取得此記憶胞所儲存的一或多個位元。Each memory cell in the rewritable non-volatile memory module 406 stores one or more bits with a change in voltage (hereinafter also referred to as a threshold voltage). Specifically, there is a charge trapping layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge trapping layer can be changed, thereby changing the threshold voltage of the memory cell. This operation of changing the threshold voltage of the memory cell is also referred to as "writing data into the memory cell" or "programming the memory cell". As the threshold voltage changes, each memory cell in the rewritable non-volatile memory module 406 has multiple storage states. By applying the read voltage, it is possible to determine which storage state a memory cell belongs to, thereby obtaining one or more bits stored in the memory cell.

在本範例實施例中,可複寫式非揮發性記憶體模組406的記憶胞會構成多個實體程式化單元,並且此些實體程式化單元會構成多個實體抹除單元。具體來說,同一條字元線上的記憶胞會組成一或多個實體程式化單元。若每一個記憶胞可儲存2個以上的位元,則同一條字元線上的實體程式化單元至少可被分類為下實體程式化單元與上實體程式化單元。例如,一記憶胞的最低有效位元(Least Significant Bit,LSB)是屬於下實體程式化單元,並且一記憶胞的最高有效位元(Most Significant Bit,MSB)是屬於上實體程式化單元。一般來說,在MLC NAND型快閃記憶體中,下實體程式化單元的寫入速度會大於上實體程式化單元的寫入速度,及/或下實體程式化單元的可靠度是高於上實體程式化單元的可靠度。In this exemplary embodiment, the memory cells of the rewritable non-volatile memory module 406 constitute multiple physical programming units, and these physical programming units constitute multiple physical erasing units. Specifically, the memory cells on the same character line form one or more physical programming units. If each memory cell can store more than 2 bits, the physical programming unit on the same character line can be at least classified into a lower physical programming unit and an upper physical programming unit. For example, the Least Significant Bit (LSB) of a memory cell belongs to the lower physical programming unit, and the Most Significant Bit (MSB) of a memory cell belongs to the upper physical programming unit. Generally speaking, in MLC NAND flash memory, the writing speed of the lower physical programming unit is higher than that of the upper physical programming unit, and/or the reliability of the lower physical programming unit is higher than that of the upper physical programming unit. The reliability of the physical programming unit.

在本範例實施例中,實體程式化單元為程式化的最小單元。即,實體程式化單元為寫入資料的最小單元。例如,實體程式化單元為實體頁面(page)或是實體扇(sector)。若實體程式化單元為實體頁面,則此些實體程式化單元通常包括資料位元區與冗餘(redundancy)位元區。資料位元區包含多個實體扇,用以儲存使用者資料,而冗餘位元區用以儲存系統資料(例如,錯誤更正碼等管理資料)。在本範例實施例中,資料位元區包含32個實體扇,且一個實體扇的大小為512位元組(byte, B)。然而,在其他範例實施例中,資料位元區中也可包含8個、16個或數目更多或更少的實體扇,並且每一個實體扇的大小也可以是更大或更小。另一方面,實體抹除單元為抹除之最小單位。亦即,每一實體抹除單元含有最小數目之一併被抹除之記憶胞。例如,實體抹除單元為實體區塊(block)。In this exemplary embodiment, the physical programming unit is the smallest programming unit. That is, the physical programming unit is the smallest unit for writing data. For example, the physical programming unit is a physical page (page) or a physical sector (sector). If the physical programming unit is a physical page, these physical programming units usually include a data bit area and a redundancy bit area. The data bit area includes multiple physical sectors for storing user data, and the redundant bit area is used for storing system data (for example, management data such as error correction codes). In this exemplary embodiment, the data bit area includes 32 physical sectors, and the size of one physical sector is 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also include 8, 16, or more or less physical sectors, and the size of each physical sector can also be larger or smaller. On the other hand, the physical erasure unit is the smallest unit of erasure. That is, each physical erasing unit contains one of the smallest number of memory cells to be erased. For example, the physical erasing unit is a physical block.

圖5是根據本發明的一範例實施例所繪示的記憶體控制電路單元的概要方塊圖。FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention.

請參照圖5,記憶體控制電路單元404包括記憶體管理電路502、主機介面504及記憶體介面506。5, the memory control circuit unit 404 includes a memory management circuit 502, a host interface 504, and a memory interface 506.

記憶體管理電路502用以控制記憶體控制電路單元404的整體運作。具體來說,記憶體管理電路502具有多個控制指令,並且在記憶體儲存裝置10運作時,此些控制指令會被執行以進行資料的寫入、讀取與抹除等運作。以下說明記憶體管理電路502的操作時,等同於說明記憶體控制電路單元404的操作。The memory management circuit 502 is used to control the overall operation of the memory control circuit unit 404. Specifically, the memory management circuit 502 has a plurality of control commands, and when the memory storage device 10 is operating, these control commands are executed to perform operations such as writing, reading, and erasing data. The following description of the operation of the memory management circuit 502 is equivalent to the description of the operation of the memory control circuit unit 404.

在本範例實施例中,記憶體管理電路502的控制指令是以韌體型式來實作。例如,記憶體管理電路502具有微處理器單元(未繪示)與唯讀記憶體(未繪示),並且此些控制指令是被燒錄至此唯讀記憶體中。當記憶體儲存裝置10運作時,此些控制指令會由微處理器單元來執行以進行資料的寫入、讀取與抹除等運作。In this exemplary embodiment, the control commands of the memory management circuit 502 are implemented in firmware. For example, the memory management circuit 502 has a microprocessor unit (not shown) and a read-only memory (not shown), and these control commands are burned into the read-only memory. When the memory storage device 10 is operating, these control commands are executed by the microprocessor unit to perform operations such as writing, reading, and erasing data.

圖6與圖7是根據一範例實施例所繪示之管理實體抹除單元的範例示意圖。6 and 7 are schematic diagrams illustrating examples of the management entity erasing unit according to an exemplary embodiment.

必須瞭解的是,在此描述可複寫式非揮發性記憶體模組406之實體抹除單元的運作時,以“提取”、“分組”、“劃分”、“關聯”等詞來操作實體抹除單元是邏輯上的概念。也就是說,可複寫式非揮發性記憶體模組之實體抹除單元的實際位置並未更動,而是邏輯上對可複寫式非揮發性記憶體模組的實體抹除單元進行操作。It must be understood that when describing the operation of the physical erasing unit of the rewritable non-volatile memory module 406, the words "extract", "grouping", "division", and "association" are used to operate the physical erasing unit. The division unit is a logical concept. In other words, the actual location of the physical erasing unit of the rewritable non-volatile memory module is not changed, but the physical erasing unit of the rewritable non-volatile memory module is logically operated.

請參照圖6,記憶體控制電路單元404(或記憶體管理電路502)會將實體抹除單元410(0)~410(N)邏輯地分組為資料區602、閒置區604、系統區606與取代區608。Referring to FIG. 6, the memory control circuit unit 404 (or the memory management circuit 502) logically groups the physical erasing units 410(0)~410(N) into a data area 602, an idle area 604, a system area 606 and Replace area 608.

邏輯上屬於資料區602與閒置區604的實體抹除單元是用以儲存來自於主機系統11的資料。具體來說,資料區602的實體抹除單元是被視為已儲存資料的實體抹除單元,而閒置區604的實體抹除單元是用以替換資料區602的實體抹除單元。也就是說,當從主機系統11接收到寫入指令與欲寫入之資料時,記憶體管理電路502會使用從閒置區604中提取實體抹除單元來寫入資料,以替換資料區602的實體抹除單元。The physical erasing units logically belonging to the data area 602 and the idle area 604 are used to store data from the host system 11. Specifically, the physical erasing unit of the data area 602 is regarded as a physical erasing unit of stored data, and the physical erasing unit of the idle area 604 is a physical erasing unit used to replace the data area 602. That is, when receiving a write command and data to be written from the host system 11, the memory management circuit 502 will use the physical erasing unit extracted from the idle area 604 to write the data to replace the data area 602 Physical erasure unit.

邏輯上屬於系統區606的實體抹除單元是用以記錄系統資料。例如,系統資料包括關於可複寫式非揮發性記憶體模組的製造商與型號、可複寫式非揮發性記憶體模組的實體抹除單元數、每一實體抹除單元的實體程式化單元數等。The physical erasing unit logically belonging to the system area 606 is used to record system data. For example, the system data includes information about the manufacturer and model of the rewritable non-volatile memory module, the number of physical erasing units of the rewritable non-volatile memory module, and the physical programming unit of each physical erasing unit Count etc.

邏輯上屬於取代區608中的實體抹除單元是用於壞實體抹除單元取代程序,以取代損壞的實體抹除單元。具體來說,倘若取代區608中仍存有正常之實體抹除單元並且資料區602的實體抹除單元損壞時,記憶體管理電路502會從取代區608中提取正常的實體抹除單元來更換損壞的實體抹除單元。The physical erasing unit logically belonging to the replacement area 608 is used for the replacement process of the bad physical erasing unit to replace the damaged physical erasing unit. Specifically, if there are still normal physical erasing units in the replacement area 608 and the physical erasing unit of the data area 602 is damaged, the memory management circuit 502 will extract the normal physical erasing unit from the replacement area 608 to replace Damaged physical erasure unit.

特別是,資料區602、閒置區604、系統區606與取代區608之實體抹除單元的數量會根據不同的記憶體規格而有所不同。此外,必須瞭解的是,在記憶體儲存裝置10的運作中,實體抹除單元關聯至資料區602、閒置區604、系統區606與取代區608的分組關係會動態地變動。例如,當閒置區604中的實體抹除單元損壞而被取代區608的實體抹除單元取代時,則原本取代區608的實體抹除單元會被關聯至閒置區604。In particular, the number of physical erasing units in the data area 602, the idle area 604, the system area 606, and the replacement area 608 will vary according to different memory specifications. In addition, it must be understood that during the operation of the memory storage device 10, the grouping relationship of the physical erasing unit associated with the data area 602, the idle area 604, the system area 606, and the replacement area 608 will dynamically change. For example, when the physical erasing unit in the idle area 604 is damaged and replaced by the physical erasing unit in the replacement area 608, the physical erasing unit in the original replacement area 608 will be associated with the idle area 604.

請參照圖7,記憶體控制電路單元404(或記憶體管理電路502)會配置邏輯位址LBA(0)~LBA(H)以映射資料區602的實體抹除單元,其中每一邏輯位址具有多個邏輯單元以映射對應之實體抹除單元的實體程式化單元。並且,當主機系統11欲寫入資料至邏輯位址或更新儲存於邏輯位址中的資料時,記憶體控制電路單元404(或記憶體管理電路502)會從閒置區604中提取一個實體抹除單元作為作動實體抹除單元來寫入資料,以輪替資料區602的實體抹除單元。並且,當此作為作動實體抹除單元的實體抹除單元被寫滿時,記憶體控制電路單元404(或記憶體管理電路502)會再從閒置區604中提取空的實體抹除單元作為作動實體抹除單元,以繼續寫入對應來自於主機系統11之寫入指令的更新資料。此外,當閒置區604中可用的實體抹除單元的數目小於預設值時,記憶體控制電路單元404(或記憶體管理電路502)會執行有效資料合併操作(亦稱為,垃圾蒐集(garbage collection)操作)來整理資料區602中的有效資料,以將資料區602中無儲存有效資料的實體抹除單元重新關聯至閒置區604。Referring to FIG. 7, the memory control circuit unit 404 (or the memory management circuit 502) will be configured with logical addresses LBA(0)~LBA(H) to map the physical erasing unit of the data area 602, where each logical address There are multiple logical units to map the physical programming unit corresponding to the physical erasing unit. Moreover, when the host system 11 wants to write data to the logical address or update the data stored in the logical address, the memory control circuit unit 404 (or the memory management circuit 502) extracts a physical erase from the idle area 604 The erasing unit is used as an active physical erasing unit to write data to alternate the physical erasing unit of the data area 602. And, when the physical erasing unit, which is the active physical erasing unit, is full, the memory control circuit unit 404 (or the memory management circuit 502) will extract the empty physical erasing unit from the idle area 604 as the active unit. The physical erasing unit continues to write the update data corresponding to the write command from the host system 11. In addition, when the number of available physical erasing units in the idle area 604 is less than the preset value, the memory control circuit unit 404 (or the memory management circuit 502) will perform an effective data merging operation (also known as garbage collection (garbage collection)). collection) operation) to sort the valid data in the data area 602, so as to re-associate the physical erasing units that do not store valid data in the data area 602 to the idle area 604.

為了識別每個邏輯位址的資料被儲存在哪個實體抹除單元,在本範例實施例中,記憶體控制電路單元404(或記憶體管理電路502)會記錄邏輯位址與實體抹除單元之間的映射。例如,在本範例實施例中,記憶體控制電路單元404(或記憶體管理電路502)會在可複寫式非揮發性記憶體模組406中儲存邏輯-實體映射表來記錄每一邏輯位址所映射的實體抹除單元。當欲存取資料時記憶體控制電路單元404(或記憶體管理電路502)會將邏輯-實體映射表載入至緩衝記憶體508來維護,並且依據邏輯-實體映射表來寫入或讀取資料。In order to identify which physical erasing unit the data of each logical address is stored in, in this exemplary embodiment, the memory control circuit unit 404 (or the memory management circuit 502) records the logical address and the physical erasing unit Mapping between. For example, in this exemplary embodiment, the memory control circuit unit 404 (or the memory management circuit 502) stores a logical-physical mapping table in the rewritable non-volatile memory module 406 to record each logical address The mapped physical erasure unit. When data is to be accessed, the memory control circuit unit 404 (or the memory management circuit 502) loads the logical-physical mapping table into the buffer memory 508 for maintenance, and writes or reads according to the logical-physical mapping table material.

值得一提的是,由於緩衝記憶體508的容量有限無法儲存記錄所有邏輯位址之映射關係的映射表,因此,在本範例實施例中,記憶體控制電路單元404(或記憶體管理電路502)會將邏輯位址LBA(0)~LBA(H)分組為多個邏輯區域LZ(0)~LZ(M),並且為每一邏輯區域配置一個邏輯-實體映射表。特別是,當記憶體控制電路單元404(或記憶體管理電路502)欲更新某個邏輯位址的映射時,對應此邏輯位址所屬之邏輯區域的邏輯-實體映射表會被載入至緩衝記憶體508來被更新。It is worth mentioning that, due to the limited capacity of the buffer memory 508, it is impossible to store a mapping table that records the mapping relationship of all logical addresses. Therefore, in this exemplary embodiment, the memory control circuit unit 404 (or the memory management circuit 502) ) Will group the logical addresses LBA(0)~LBA(H) into multiple logical zones LZ(0)~LZ(M), and configure a logical-physical mapping table for each logical zone. In particular, when the memory control circuit unit 404 (or the memory management circuit 502) wants to update the mapping of a certain logical address, the logical-physical mapping table corresponding to the logical region to which the logical address belongs will be loaded into the buffer The memory 508 will be updated.

在另一範例實施例中,記憶體管理電路502的控制指令亦可以程式碼型式儲存於可複寫式非揮發性記憶體模組406的特定區域(例如,記憶體模組中專用於存放系統資料的系統區)中。此外,記憶體管理電路502具有微處理器單元(未繪示)、唯讀記憶體(未繪示)及隨機存取記憶體(未繪示)。特別是,此唯讀記憶體具有開機碼(boot code),並且當記憶體控制電路單元404被致能時,微處理器單元會先執行此開機碼來將儲存於可複寫式非揮發性記憶體模組406中之控制指令載入至記憶體管理電路502的隨機存取記憶體中。之後,微處理器單元會運轉此些控制指令以進行資料的寫入、讀取與抹除等運作。In another exemplary embodiment, the control commands of the memory management circuit 502 can also be stored in a specific area of the rewritable non-volatile memory module 406 in the form of code (for example, the memory module is dedicated to storing system data). System area). In addition, the memory management circuit 502 has a microprocessor unit (not shown), a read-only memory (not shown), and a random access memory (not shown). In particular, the read-only memory has a boot code, and when the memory control circuit unit 404 is enabled, the microprocessor unit will first execute the boot code to store it in the rewritable non-volatile memory The control commands in the volume module 406 are loaded into the random access memory of the memory management circuit 502. After that, the microprocessor unit runs these control commands to perform data writing, reading, and erasing operations.

此外,在另一範例實施例中,記憶體管理電路502的控制指令亦可以一硬體型式來實作。例如,記憶體管理電路502包括微控制器、記憶胞管理電路、記憶體寫入電路、記憶體讀取電路、記憶體抹除電路與資料處理電路。記憶胞管理電路、記憶體寫入電路、記憶體讀取電路、記憶體抹除電路與資料處理電路是耦接至微控制器。記憶胞管理電路用以管理可複寫式非揮發性記憶體模組406的記憶胞或其群組。記憶體寫入電路用以對可複寫式非揮發性記憶體模組406下達寫入指令序列以將資料寫入至可複寫式非揮發性記憶體模組406中。記憶體讀取電路用以對可複寫式非揮發性記憶體模組406下達讀取指令序列以從可複寫式非揮發性記憶體模組406中讀取資料。記憶體抹除電路用以對可複寫式非揮發性記憶體模組406下達抹除指令序列以將資料從可複寫式非揮發性記憶體模組406中抹除。資料處理電路用以處理欲寫入至可複寫式非揮發性記憶體模組406的資料以及從可複寫式非揮發性記憶體模組406中讀取的資料。寫入指令序列、讀取指令序列及抹除指令序列可各別包括一或多個程式碼或指令碼並且用以指示可複寫式非揮發性記憶體模組406執行相對應的寫入、讀取及抹除等操作。在一範例實施例中,記憶體管理電路502還可以下達其他類型的指令序列給可複寫式非揮發性記憶體模組406以指示執行相對應的操作。In addition, in another exemplary embodiment, the control commands of the memory management circuit 502 can also be implemented in a hardware type. For example, the memory management circuit 502 includes a microcontroller, a memory cell management circuit, a memory writing circuit, a memory reading circuit, a memory erasing circuit, and a data processing circuit. The memory cell management circuit, the memory writing circuit, the memory reading circuit, the memory erasing circuit and the data processing circuit are coupled to the microcontroller. The memory cell management circuit is used to manage the memory cells or groups of the rewritable non-volatile memory module 406. The memory write circuit is used to issue a write command sequence to the rewritable non-volatile memory module 406 to write data into the rewritable non-volatile memory module 406. The memory read circuit is used to issue a read command sequence to the rewritable non-volatile memory module 406 to read data from the rewritable non-volatile memory module 406. The memory erasing circuit is used to issue an erasing command sequence to the rewritable non-volatile memory module 406 to erase data from the rewritable non-volatile memory module 406. The data processing circuit is used for processing data to be written to the rewritable non-volatile memory module 406 and data read from the rewritable non-volatile memory module 406. The write command sequence, the read command sequence, and the erase command sequence may each include one or more program codes or command codes and are used to instruct the rewritable non-volatile memory module 406 to perform corresponding writing and reading. Take and erase operations. In an exemplary embodiment, the memory management circuit 502 can also send other types of command sequences to the rewritable non-volatile memory module 406 to instruct to perform corresponding operations.

請再次參照圖5,主機介面504是耦接至記憶體管理電路502並且用以接收與識別主機系統11所傳送的指令與資料。也就是說,主機系統11所傳送的指令與資料會透過主機介面504來傳送至記憶體管理電路502。在本範例實施例中,主機介面504是相容於PCI Express標準。然而,必須瞭解的是本發明不限於此,主機介面504亦可以是相容於PATA標準、IEEE 1394標準、SATA標準、USB標準、SD標準、UHS-I標準、UHS-II標準、MS標準、MMC標準、eMMC標準、UFS標準、CF標準、IDE標準或其他適合的資料傳輸標準。Please refer to FIG. 5 again, the host interface 504 is coupled to the memory management circuit 502 and used for receiving and identifying commands and data sent by the host system 11. In other words, the commands and data sent by the host system 11 will be sent to the memory management circuit 502 through the host interface 504. In this exemplary embodiment, the host interface 504 is compatible with the PCI Express standard. However, it must be understood that the present invention is not limited to this. The host interface 504 can also be compatible with the PATA standard, IEEE 1394 standard, SATA standard, USB standard, SD standard, UHS-I standard, UHS-II standard, MS standard, MMC standard, eMMC standard, UFS standard, CF standard, IDE standard or other suitable data transmission standards.

記憶體介面506是耦接至記憶體管理電路502並且用以存取可複寫式非揮發性記憶體模組406。也就是說,欲寫入至可複寫式非揮發性記憶體模組406的資料會經由記憶體介面506轉換為可複寫式非揮發性記憶體模組406所能接受的格式。具體來說,若記憶體管理電路502要存取可複寫式非揮發性記憶體模組406,記憶體介面506會傳送對應的指令序列。例如,這些指令序列可包括指示寫入資料的寫入指令序列、指示讀取資料的讀取指令序列、指示抹除資料的抹除指令序列、以及用以指示各種記憶體操作(例如,改變讀取電壓準位或執行垃圾回收操作等等)的相對應的指令序列。這些指令序列例如是由記憶體管理電路502產生並且透過記憶體介面506傳送至可複寫式非揮發性記憶體模組406。這些指令序列可包括一或多個訊號,或是在匯流排上的資料。這些訊號或資料可包括指令碼或程式碼。例如,在讀取指令序列中,會包括讀取的辨識碼、記憶體位址等資訊。The memory interface 506 is coupled to the memory management circuit 502 and used to access the rewritable non-volatile memory module 406. In other words, the data to be written into the rewritable non-volatile memory module 406 is converted into a format acceptable by the rewritable non-volatile memory module 406 through the memory interface 506. Specifically, if the memory management circuit 502 needs to access the rewritable non-volatile memory module 406, the memory interface 506 will send the corresponding command sequence. For example, these command sequences may include a write command sequence instructing to write data, a read command sequence instructing to read data, an erase command sequence instructing to erase data, and various memory operations (for example, changing read Take the voltage level or execute the garbage collection operation, etc.) corresponding to the instruction sequence. These command sequences are generated by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 through the memory interface 506, for example. These command sequences can include one or more signals, or data on the bus. These signals or data may include script codes or program codes. For example, in the read command sequence, the read identification code, memory address and other information will be included.

在一範例實施例中,記憶體控制電路單元404還包括錯誤檢查與校正電路508、緩衝記憶體510與電源管理電路512。In an exemplary embodiment, the memory control circuit unit 404 further includes an error checking and correction circuit 508, a buffer memory 510, and a power management circuit 512.

錯誤檢查與校正電路508是耦接至記憶體管理電路502並且用以執行錯誤檢查與校正操作以確保資料的正確性。具體來說,當記憶體管理電路502從主機系統11中接收到寫入指令時,錯誤檢查與校正電路508會為對應此寫入指令的資料產生對應的錯誤更正碼(error correcting code, ECC)及/或錯誤檢查碼(error detecting code,EDC),並且記憶體管理電路502會將對應此寫入指令的資料與對應的錯誤更正碼及/或錯誤檢查碼寫入至可複寫式非揮發性記憶體模組406中。之後,當記憶體管理電路502從可複寫式非揮發性記憶體模組406中讀取資料時會同時讀取此資料對應的錯誤更正碼及/或錯誤檢查碼,並且錯誤檢查與校正電路508會依據此錯誤更正碼及/或錯誤檢查碼對所讀取的資料執行錯誤檢查與校正操作。The error checking and correcting circuit 508 is coupled to the memory management circuit 502 and used to perform error checking and correcting operations to ensure the correctness of the data. Specifically, when the memory management circuit 502 receives a write command from the host system 11, the error checking and correction circuit 508 will generate a corresponding error correcting code (ECC) for the data corresponding to the write command. And/or error detecting code (EDC), and the memory management circuit 502 will write the data corresponding to the write command and the corresponding error correction code and/or error check code to the rewritable non-volatile In the memory module 406. After that, when the memory management circuit 502 reads data from the rewritable non-volatile memory module 406, it will read the error correction code and/or error check code corresponding to the data at the same time, and the error check and correction circuit 508 Based on this error correction code and/or error check code, error checking and correction operations will be performed on the read data.

緩衝記憶體510是耦接至記憶體管理電路502並且用以暫存來自於主機系統11的資料與指令或來自於可複寫式非揮發性記憶體模組406的資料。電源管理電路512是耦接至記憶體管理電路502並且用以控制記憶體儲存裝置10的電源。The buffer memory 510 is coupled to the memory management circuit 502 and used to temporarily store data and commands from the host system 11 or data from the rewritable non-volatile memory module 406. The power management circuit 512 is coupled to the memory management circuit 502 and used to control the power of the memory storage device 10.

圖8A與圖8B是根據一範例實施例所繪示之有效資料的分布與有效資料的變化量的統計圖。8A and 8B are statistical diagrams of the distribution of the effective data and the variation of the effective data drawn according to an exemplary embodiment.

請參圖8A,如統計圖701所示,假設在初始狀態,可複寫式非揮發性記憶體模組406具有10個實體抹除單元且此些實體抹除單元的有效資料量皆為一個實體抹除單元的容量的100%。當記憶體管理電路502將至少一資料寫入至閒置區604的中的至少一實體抹除單元後,假設前述的10個實體抹除單元的有效資料量皆變為一個實體抹除單元的容量的75%,如統計圖702所示。而統計圖703用於表示此10個實體抹除單元的每個實體抹除單元的有效資料量的變化量,而此變化量可以用以觀察實體抹除單元的有效資料的分布狀態。如統計圖703所示,可以看出在將資料寫入至閒置區604的中的至少一實體抹除單元後,每個實體抹除單元的有效資料量皆減少一個實體抹除單元的容量的25%。換句話說,在將資料寫入至閒置區604的中的至少一實體抹除單元後,有效資料量有變化的實體抹除單元的數量較多(即,10個)且有效資料量的變化程度較平均。Please refer to FIG. 8A. As shown in the statistical graph 701, suppose that in the initial state, the rewritable non-volatile memory module 406 has 10 physical erasing units and the effective data amount of these physical erasing units is one entity. Wipe 100% of the capacity of the unit. After the memory management circuit 502 writes at least one data into at least one physical erasing unit in the idle area 604, it is assumed that the effective data amount of the aforementioned 10 physical erasing units becomes the capacity of one physical erasing unit. 75%, as shown in statistical graph 702. The statistical graph 703 is used to represent the variation of the effective data amount of each physical erasing unit of the 10 physical erasing units, and this variation can be used to observe the distribution state of the effective data of the physical erasing unit. As shown in the statistical graph 703, it can be seen that after writing data to at least one physical erasing unit in the idle area 604, the effective data amount of each physical erasing unit is reduced by the capacity of one physical erasing unit. 25%. In other words, after writing data to at least one physical erasing unit in the idle area 604, the number of physical erasing units whose effective data amount has changed is larger (ie, 10) and the effective data amount has changed. The degree is more average.

而由統計圖703可看出,有效資料是平均地分散在前述10個實體抹除單元中(即,有效資料的分布狀態較分散)。特別是,在有效資料的分布狀態較分散的情況下,在執行有效資料合併操作時需使用數量較多的來源實體抹除單元(例如,四個來源實體抹除單元) 才能增加一個實體抹除單元至閒置區604中,此情況會造成有效資料合併操作的效率低落。此時若記憶體管理電路502調高特定門檻值,可以在啟動有效資料合併操作時閒置區604中保留更多的實體抹除單元。藉由此方式,當有效資料合併操作與主機系統11的寫入操作交錯執行時,可以讓主機系統11的資料寫入閒置區604的實體抹除單元中而避免閒置區604中沒有足夠可以用於額外寫入的實體抹除單元,進而提升主機系統11的寫入效能。It can be seen from the statistical graph 703 that the effective data is evenly dispersed in the aforementioned 10 physical erasure units (that is, the distribution of the effective data is relatively scattered). In particular, when the distribution of valid data is scattered, it is necessary to use a larger number of source entity erasure units (for example, four source entity erasure units) to add a physical erasure unit when performing effective data merging operations. Units are placed in the idle area 604. This situation will cause the efficiency of the effective data merging operation to be low. At this time, if the memory management circuit 502 raises the specific threshold value, more physical erasing units can be reserved in the idle area 604 when the effective data merging operation is started. In this way, when the effective data merging operation and the writing operation of the host system 11 are interleaved, the data of the host system 11 can be written into the physical erasing unit of the free area 604, and the free area 604 cannot be used. The physical erasing unit for additional writing further enhances the writing performance of the host system 11.

在另一範例中,請參圖8B,如統計圖704所示,假設在初始狀態,可複寫式非揮發性記憶體模組406具有10個實體抹除單元且此些實體抹除單元的有效資料量皆為一個實體抹除單元的容量的100%。當記憶體管理電路502將至少一資料寫入至閒置區604的中的至少一實體抹除單元後,假設前述的10個實體抹除單元的有效資料量變為如統計圖705所示。而統計圖706用於表示此10個實體抹除單元的每個實體抹除單元的有效資料量的變化量,而此變化量可以用以觀察實體抹除單元的有效資料的分布狀態。如統計圖706所示,可以看出在將資料寫入至閒置區604的中的至少一實體抹除單元後,有效資料量的變化集中在第1至第6個實體抹除單元。在此情況下,代表有效資料在可複寫式非揮發性記憶體模組406中的分布狀態較不分散(即,較集中)。特別是,在有效資料的分布狀態較不分散的情況下,在執行有效資料合併操作時可以使用數量較少的來源實體抹除單元(例如,兩個來源實體抹除單元)來增加一個實體抹除單元至閒置區604中,此情況會有較佳的有效資料合併操作的效率。而此時記憶體管理電路502可以調低(或維持)特定門檻值。若記憶體管理電路502調低特定門檻值,可以較晚啟動有效資料合併操作以讓主機系統11執行更多的寫入,進而提升主機系統11的寫入效能。此外,由於有效資料較集中,可以使用較少的來源實體抹除單元來增加閒置區604中的實體抹除單元的數量,此情況也可以提升有效資料合併操作的執行效能。In another example, please refer to FIG. 8B. As shown in the statistical graph 704, it is assumed that in the initial state, the rewritable non-volatile memory module 406 has 10 physical erasing units and the effectiveness of these physical erasing units The data volume is 100% of the capacity of a physical erasing unit. After the memory management circuit 502 writes at least one data into at least one physical erasing unit in the idle area 604, it is assumed that the effective data amount of the aforementioned 10 physical erasing units becomes as shown in the statistical graph 705. The statistical graph 706 is used to represent the variation of the effective data amount of each physical erasing unit of the 10 physical erasing units, and this variation can be used to observe the distribution state of the effective data of the physical erasing unit. As shown in the statistical graph 706, it can be seen that after data is written into at least one physical erasing unit in the idle area 604, the effective data amount changes concentrated in the first to sixth physical erasing units. In this case, it means that the distribution state of the valid data in the rewritable non-volatile memory module 406 is less scattered (ie, more concentrated). In particular, when the distribution of valid data is relatively non-dispersed, a smaller number of source physical erasing units (for example, two source physical erasing units) can be used to add a physical erasing unit when performing a valid data merging operation. Excluding the cells to the free area 604, in this case, the efficiency of the effective data merging operation will be better. At this time, the memory management circuit 502 can lower (or maintain) the specific threshold value. If the memory management circuit 502 lowers the specific threshold value, the effective data merging operation can be started later to allow the host system 11 to perform more writes, thereby improving the write performance of the host system 11. In addition, since the effective data is more concentrated, fewer source physical erasing units can be used to increase the number of physical erasing units in the idle area 604, which can also improve the performance of the effective data merging operation.

圖9是根據一範例實施例所繪示之調整用於執行有效資料合併操作的特定門檻值的方法的流程圖。在圖9的範例中,記憶體管理電路502會獲得可複寫式非揮發性記憶體模組406的實體抹除單元中的有效資料的分布狀態,並根據此分布狀態來調整用於執行有效資料合併操作的特定門檻值。FIG. 9 is a flowchart of a method for adjusting a specific threshold for performing a valid data merging operation according to an exemplary embodiment. In the example of FIG. 9, the memory management circuit 502 obtains the distribution status of the valid data in the physical erasing unit of the rewritable non-volatile memory module 406, and adjusts the valid data for execution according to the distribution status The specific threshold of the merge operation.

更詳細來說,請參照圖9,首先,在步驟S801中,記憶體管理電路502將至少一資料寫入至閒置區604的實體抹除單元(亦稱為,第一實體抹除單元中)的至少一實體抹除單元(亦稱為,第二實體抹除單元)。特別是,在一實施例中,當前述所寫入的資料的資料量等於某一特定資料量(例如,10個實體抹除單元可以儲存的資料量)時,記憶體管理電路502才會啟動執行前述步驟S801以獲得第一實體抹除單元中的有效資料的分布狀態的運作。In more detail, please refer to FIG. 9. First, in step S801, the memory management circuit 502 writes at least one piece of data into the physical erasing unit (also referred to as the first physical erasing unit) in the idle area 604 At least one physical erasing unit (also referred to as a second physical erasing unit). In particular, in one embodiment, the memory management circuit 502 will be activated only when the amount of data written in the foregoing is equal to a certain amount of data (for example, the amount of data that can be stored by 10 physical erasing units) The operation of performing the aforementioned step S801 to obtain the distribution status of the valid data in the first physical erasing unit.

接著,在步驟S803中,記憶體管理電路502會獲得前述所寫入的資料的資料量。在步驟S805中,記憶體管理電路502會獲得可複寫式非揮發性記憶體模組406中的至少一實體抹除單元(亦稱為,第三實體抹除單元)的數量。特別是,將前述資料寫入至第二實體抹除單元後,每一個第三實體抹除單元的有效資料量因而被改變。換句話說,第三實體抹除單元是代表在執行前述步驟S801的寫入操作後,有效資料量改變的實體抹除單元。而此些第三實體抹除單元可以是位於資料區602或其他區域,在此不作限制。Next, in step S803, the memory management circuit 502 obtains the data amount of the written data. In step S805, the memory management circuit 502 obtains the number of at least one physical erasing unit (also referred to as a third physical erasing unit) in the rewritable non-volatile memory module 406. In particular, after the aforementioned data is written into the second physical erasing unit, the effective data amount of each third physical erasing unit is thus changed. In other words, the third physical erasing unit represents a physical erasing unit whose effective data amount changes after the write operation in step S801 is performed. The third physical erasing units may be located in the data area 602 or other areas, and there is no limitation here.

之後,記憶體管理電路502會根據前述的資料量以及第三實體抹除單元的數量調整特定門檻值。更詳細來說,在步驟S807中,記憶體管理電路502會獲得第一數值,而此第一數值是將前述的資料量除以第三實體抹除單元的數量所獲得的商。第一數值代表平均一個實體抹除單元減少的有效資料量。之後,在步驟S809中,記憶體管理電路502會判斷第三實體抹除單元的數量是否大於第一門檻值。第一門檻值例如為在執行步驟S801前閒置區中的實體抹除單元的數量(即,第一實體抹除單元的數量)的百分之十,然而本發明並不用以限制第一門檻值。當第三實體抹除單元的數量不大於第一門檻值時,在步驟S811中,記憶體管理電路502還會判斷第一數值是否介於第一範圍內。在本實施例中,記憶體管理電路502還會判斷第一數值是否介於一最小值(例如,80%)與一最大值(例如,120%)之間,然而本發明並不用以限制第一範圍。After that, the memory management circuit 502 adjusts the specific threshold value according to the aforementioned amount of data and the number of third physical erasing units. In more detail, in step S807, the memory management circuit 502 obtains a first value, and the first value is a quotient obtained by dividing the aforementioned amount of data by the number of third physical erasing units. The first value represents the effective amount of data reduced by an average physical erasure unit. After that, in step S809, the memory management circuit 502 determines whether the number of third physical erasing units is greater than the first threshold. The first threshold is, for example, ten percent of the number of physical erasing units (ie, the number of first physical erasing units) in the idle area before step S801 is performed. However, the present invention is not used to limit the first threshold. . When the number of third physical erasing units is not greater than the first threshold value, in step S811, the memory management circuit 502 also determines whether the first value is within the first range. In this embodiment, the memory management circuit 502 also determines whether the first value is between a minimum value (for example, 80%) and a maximum value (for example, 120%). However, the present invention is not used to limit the first value. One range.

當第一數值介於第一範圍內時,在步驟S813中,記憶體管理電路502會調低用於執行有效資料合併操作的特定門檻值。本發明並不用於限定此特定門檻值需被調低多少。舉例來說,假設在圖9的初始形況下特定門檻值是被設定為五,而在步驟S813中,特定門檻值最低可以被記憶體管理電路502調整為三(即,最多將特定門檻值減二)。特別是,當第三實體抹除單元的數量小於第一門檻值且第一數值介於第一範圍內時,代表有效資料在可複寫式非揮發性記憶體模組406中的分布狀態較不分散(即,較集中),而調低特定門檻值可以較晚啟動有效資料合併操作以讓主機系統11執行更多的寫入,進而提升主機系統11的寫入效能。此外,由於有效資料較集中,可以使用較少的來源實體抹除單元來增加閒置區604中的實體抹除單元的數量,此方式也可以提升有效資料合併操作的執行效能。When the first value is within the first range, in step S813, the memory management circuit 502 will lower the specific threshold for performing the effective data merging operation. The present invention is not used to limit how much the specific threshold value needs to be lowered. For example, suppose that the specific threshold value is set to five in the initial situation of FIG. 9, and in step S813, the minimum specific threshold value can be adjusted to three by the memory management circuit 502 (that is, the specific threshold value is set at most Minus two). In particular, when the number of third physical erasing units is less than the first threshold and the first value is within the first range, it means that the distribution of valid data in the rewritable non-volatile memory module 406 is relatively poor. Distributed (ie, more concentrated), and lowering the specific threshold value can start the effective data merging operation later to allow the host system 11 to perform more writes, thereby improving the write performance of the host system 11. In addition, since the effective data is more concentrated, fewer source physical erasing units can be used to increase the number of physical erasing units in the idle area 604. This method can also improve the performance of the effective data merging operation.

然而,當第一數值不介於第一範圍內時,在步驟S814中,記憶體管理電路502不會調整用於執行有效資料合併操作的特定門檻值。However, when the first value is not within the first range, in step S814, the memory management circuit 502 does not adjust the specific threshold value for performing the effective data merging operation.

當第三實體抹除單元的數量大於第一門檻值時,在步驟S815中,記憶體管理電路502會判斷第三實體抹除單元的數量是否大於第二門檻值。第二門檻值例如為在執行步驟S801前閒置區中的實體抹除單元的數量(即,第一實體抹除單元的數量)的百分之三十,然而本發明並不用以限制第二門檻值。When the number of third physical erasing units is greater than the first threshold, in step S815, the memory management circuit 502 determines whether the number of third physical erasing units is greater than the second threshold. The second threshold is, for example, 30% of the number of physical erasing units (ie, the number of first physical erasing units) in the idle area before step S801 is performed. However, the present invention is not used to limit the second threshold. value.

當第三實體抹除單元的數量不大於第二門檻值時,在步驟S814中,記憶體管理電路502不會調整用於執行有效資料合併操作的特定門檻值。當第三實體抹除單元的數量大於第二門檻值時,在步驟S817中,記憶體管理電路502會調高用於執行有效資料合併操作的特定門檻值。本發明並不用於限定此特定門檻值需被調高多少。舉例來說,假設在圖9的初始形況下特定門檻值是被設定為五,而在步驟S817中,特定門檻值最高可以被記憶體管理電路502調整為八(即,最多將特定門檻值加三)。特別是,當第三實體抹除單元的數量大於第二門檻值時,代表有效資料在可複寫式非揮發性記憶體模組406中的分布狀態較分散,而調高特定門檻值可以在啟動有效資料合併操作時閒置區中保留更多的實體抹除單元。藉由此方式,當有效資料合併操作與主機系統11的寫入操作交錯執行時,可以讓主機系統11的資料寫入閒置區的實體抹除單元中而避免閒置區604中沒有足夠可以用於額外寫入的實體抹除單元,進而提升主機系統11的寫入效能。When the number of the third physical erasing units is not greater than the second threshold value, in step S814, the memory management circuit 502 does not adjust the specific threshold value for performing the effective data merging operation. When the number of the third physical erasing units is greater than the second threshold, in step S817, the memory management circuit 502 will increase the specific threshold for performing the effective data merging operation. The present invention is not used to limit how much the specific threshold value needs to be adjusted. For example, suppose that the specific threshold value is set to five in the initial situation of FIG. 9, and in step S817, the maximum specific threshold value can be adjusted to eight by the memory management circuit 502 (that is, the specific threshold value is set at most Plus three). In particular, when the number of third physical erasure units is greater than the second threshold, it means that the distribution of valid data in the rewritable non-volatile memory module 406 is relatively scattered, and the specific threshold can be increased at the start During the effective data merging operation, more physical erasure units are reserved in the idle area. In this way, when the effective data merging operation and the writing operation of the host system 11 are interleaved, the data of the host system 11 can be written into the physical erasing unit of the free area, and the free area 604 cannot be used. The additional physical erasing unit for writing further improves the writing performance of the host system 11.

之後,當閒置區的實體抹除單元的數量(即,第一實體抹除單元的數量)小於特定門檻值時,記憶體管理電路502會執行有效資料合併操作。After that, when the number of physical erasing units in the idle area (ie, the number of first physical erasing units) is less than a certain threshold, the memory management circuit 502 will perform a valid data merging operation.

在此需說明的是,雖然圖9的範例是先執行步驟S809再執行S815,然而在其他實施例中,也可以先執行步驟S815再執行S809。It should be noted here that although the example in FIG. 9 is to perform step S809 first and then perform S815, in other embodiments, step S815 may be performed first and then S809 is performed.

圖10是根據一範例實施例所繪示之資料整理方法的流程圖。FIG. 10 is a flowchart of a data sorting method according to an exemplary embodiment.

請參照圖10,在步驟S901中,記憶體管理電路502將至少一資料寫入至第一實體抹除單元中的至少一第二實體抹除單元,並獲得多個實體抹除單元中的有效資料的一分布狀態。在步驟S903中,記憶體管理電路502根據分布狀態調整特定門檻值。當第一實體抹除單元的數量小於特定門檻值時,在步驟S905中,記憶體管理電路502執行有效資料合併操作。Referring to FIG. 10, in step S901, the memory management circuit 502 writes at least one piece of data to at least one second physical erasing unit in the first physical erasing unit, and obtains valid data in the plurality of physical erasing units A distribution state of the data. In step S903, the memory management circuit 502 adjusts a specific threshold value according to the distribution state. When the number of the first physical erasing units is less than the specific threshold value, in step S905, the memory management circuit 502 performs a valid data merging operation.

綜上所述,本發明的快閃記憶體之資料整理方法、快閃記憶體控制電路單元與快閃記憶體儲存裝置可以根據有效資料在可複寫式非揮發性記憶體模組中的分布狀態,動態地調整用於判斷是否執行有效資料合併操作的特定門檻值,藉此避免讓有效資料合併操作影響主機系統對可複寫式非揮發性記憶體模組進行寫入時的效能,且可以提升有效資料合併操作的效能。In summary, the flash memory data sorting method, flash memory control circuit unit and flash memory storage device of the present invention can be based on the distribution status of valid data in the rewritable non-volatile memory module , Dynamically adjust the specific threshold used to determine whether to perform a valid data merging operation, so as to prevent the valid data merging operation from affecting the performance of the host system when writing to the rewritable non-volatile memory module, and can improve The efficiency of effective data merging operations.

30、10:記憶體儲存裝置 31、11:主機系統 110:系統匯流排 111:處理器 112:隨機存取記憶體 113:唯讀記憶體 114:資料傳輸介面 12:輸入/輸出(I/O)裝置 20:主機板 201:隨身碟 202:記憶卡 203:固態硬碟 204:無線記憶體儲存裝置 205:全球定位系統模組 206:網路介面卡 207:無線傳輸裝置 208:鍵盤 209:螢幕 210:喇叭 32:SD卡 33:CF卡 34:嵌入式儲存裝置 341:嵌入式多媒體卡 342:嵌入式多晶片封裝儲存裝置 402:連接介面單元 404:記憶體控制電路單元 406:可複寫式非揮發性記憶體模組 502:記憶體管理電路 504:主機介面 506:記憶體介面 508:錯誤檢查與校正電路 510:緩衝記憶體 512:電源管理電路 602:資料區 604:閒置區 606:系統區 608:取代區 LBA(0)~LBA(H):邏輯位址 LZ(0)~LZ(M):邏輯區域 701~706:統計圖 S801:將至少一資料寫入至第一實體抹除單元中的至少一第二實體抹除單元的步驟 S803:獲得前述資料的資料量的步驟 S805:獲得至少一第三實體抹除單元的數量,其中將前述資料寫入至第二實體抹除單元後改變每一個第三實體抹除單元的有效資料量的步驟 S807:獲得一第一數值,其中第一數值為將前述資料量除以第三實體抹除單元的數量的商的步驟 S809:判斷第三實體抹除單元的數量是否大於第一門檻值的步驟 S814:不調整用於執行有效資料合併操作的特定門檻值的步驟 S811:判斷第一數值是否介於第一範圍內的步驟 S813:調低用於執行有效資料合併操作的特定門檻值的步驟 S815:判斷第三實體抹除單元的數量是否大於第二門檻值的步驟 S817:調高用於執行有效資料合併操作的特定門檻值的步驟 S901:將至少一資料寫入至第一實體抹除單元中的至少一第二實體抹除單元,並獲得多個實體抹除單元中的有效資料的一分布狀態的步驟 S903:根據分布狀態調整一特定門檻值的步驟 S905:當第一實體抹除單元的數量小於特定門檻值時,執行有效資料合併操作的步驟30, 10: Memory storage device 31, 11: host system 110: system bus 111: processor 112: Random Access Memory 113: read-only memory 114: Data Transmission Interface 12: Input/output (I/O) device 20: Motherboard 201: flash drive 202: Memory Card 203: Solid State Drive 204: wireless memory storage device 205: Global Positioning System Module 206: network interface card 207: wireless transmission device 208: keyboard 209: Screen 210: Horn 32: SD card 33: CF card 34: Embedded storage device 341: Embedded Multimedia Card 342: Embedded multi-chip package storage device 402: connection interface unit 404: Memory control circuit unit 406: rewritable non-volatile memory module 502: Memory Management Circuit 504: Host Interface 506: Memory Interface 508: error checking and correction circuit 510: buffer memory 512: power management circuit 602: Data Area 604: Idle Area 606: System Area 608: Replacement Area LBA(0)~LBA(H): logical address LZ(0)~LZ(M): logical zone 701~706: Statistical graph S801: A step of writing at least one data to at least one second physical erasing unit in the first physical erasing unit S803: Steps to obtain the data volume of the aforementioned data S805: Obtain the quantity of at least one third physical erasing unit, wherein the step of changing the effective data amount of each third physical erasing unit after writing the aforementioned data to the second physical erasing unit S807: A step of obtaining a first value, where the first value is the quotient of the amount of data divided by the number of third physical erasure units S809: Step of judging whether the number of erasure units of the third entity is greater than the first threshold S814: Steps not to adjust the specific threshold used to perform effective data merging operations S811: Step of judging whether the first value is within the first range S813: Steps to lower the specific threshold for performing effective data merging operations S815: Step of judging whether the number of erasure units of the third entity is greater than the second threshold S817: Steps to increase the specific threshold for performing effective data merging operations S901: A step of writing at least one data to at least one second physical erasing unit in a first physical erasing unit, and obtaining a distribution state of valid data in a plurality of physical erasing units S903: Step of adjusting a specific threshold value according to the distribution state S905: When the number of the first physical erasure unit is less than a specific threshold value, perform a step of merging valid data

圖1是根據本發明的一範例實施例所繪示的主機系統、記憶體儲存裝置及輸入/輸出(I/O)裝置的示意圖。 圖2是根據本發明的另一範例實施例所繪示的主機系統、記憶體儲存裝置及I/O裝置的示意圖。 圖3是根據本發明的另一範例實施例所繪示的主機系統與記憶體儲存裝置的示意圖。 圖4是根據本發明的一範例實施例所繪示的記憶體儲存裝置的概要方塊圖。 圖5是根據本發明的一範例實施例所繪示的記憶體控制電路單元的概要方塊圖。 圖6與圖7是根據一範例實施例所繪示之管理實體抹除單元的範例示意圖。 圖8A與圖8B是根據一範例實施例所繪示之有效資料的分布與有效資料的變化量的統計圖。 圖9是根據一範例實施例所繪示之調整用於執行有效資料合併操作的特定門檻值的方法的流程圖。 圖10是根據一範例實施例所繪示之資料整理方法的流程圖。FIG. 1 is a schematic diagram of a host system, a memory storage device, and an input/output (I/O) device according to an exemplary embodiment of the present invention. FIG. 2 is a schematic diagram of a host system, a memory storage device, and an I/O device according to another exemplary embodiment of the present invention. 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the present invention. FIG. 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the present invention. FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the present invention. 6 and 7 are schematic diagrams illustrating examples of the management entity erasing unit according to an exemplary embodiment. 8A and 8B are statistical diagrams of the distribution of the effective data and the variation of the effective data drawn according to an exemplary embodiment. FIG. 9 is a flowchart of a method for adjusting a specific threshold for performing a valid data merging operation according to an exemplary embodiment. FIG. 10 is a flowchart of a data sorting method according to an exemplary embodiment.

S901:將至少一資料寫入至第一實體抹除單元中的至少一第二實體抹除單元,並獲得多個實體抹除單元中的有效資料的一分布狀態的步驟S901: A step of writing at least one data to at least one second physical erasing unit in a first physical erasing unit, and obtaining a distribution state of valid data in a plurality of physical erasing units

S903:根據分布狀態調整一特定門檻值的步驟S903: Step of adjusting a specific threshold value according to the distribution state

S905:當第一實體抹除單元的數量小於特定門檻值時,執行有效資料合併操作的步驟S905: When the number of the first physical erasure unit is less than a specific threshold value, perform a step of merging valid data

Claims (21)

一種快閃記憶體之資料整理方法,用於一可複寫式非揮發性記憶體模組,其中所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區,所述方法包括: 將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元; 獲得所述多個實體抹除單元中的有效資料的一分布狀態; 根據所述分布狀態調整一特定門檻值;以及 當所述第一實體抹除單元的數量小於所述特定門檻值時,執行一有效資料合併操作。A flash memory data sorting method is used in a rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical erasing units, and the rewritable non-volatile memory module The non-volatile memory module includes an idle area, and at least one first physical erase unit of the plurality of physical erase units is associated with the idle area, and the method includes: Writing at least one data to at least one second physical erasing unit in the first physical erasing unit; Obtaining a distribution state of valid data in the plurality of physical erasing units; Adjusting a specific threshold value according to the distribution state; and When the number of the first physical erasing units is less than the specific threshold value, a valid data merging operation is performed. 如申請專利範圍第1項所述的快閃記憶體之資料整理方法,其中獲得所述多個實體抹除單元中的有效資料的所述分布狀態的步驟包括: 獲得所述資料的一資料量; 獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。According to the data organization method of flash memory described in claim 1, wherein the step of obtaining the distribution state of the effective data in the plurality of physical erasing units includes: Obtain a data amount of the data; Obtain the number of at least one third physical erasing unit in the plurality of physical erasing units, wherein each of the third physical erasing units is changed after writing the data to the second physical erasing unit The amount of effective data. 如申請專利範圍第2項所述的快閃記憶體之資料整理方法,其中根據所述分布狀態調整所述特定門檻值的步驟包括: 根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。As described in the second item of the scope of patent application, the flash memory data sorting method, wherein the step of adjusting the specific threshold value according to the distribution state includes: The specific threshold is adjusted according to the amount of data and the number of erasure units of the third entity. 如申請專利範圍第3項所述的快閃記憶體之資料整理方法,其中根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的步驟包括: 獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商; 若所述第三實體抹除單元的數量不大於一第一門檻值且所述第一數值介於一第一範圍內時,調低所述特定門檻值。In the flash memory data sorting method described in item 3 of the scope of patent application, the step of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit includes: Obtaining a first value, where the first value is the quotient obtained by dividing the amount of data by the number of the third physical erasing unit; If the number of the third physical erasing units is not greater than a first threshold value and the first value is within a first range, the specific threshold value is lowered. 如申請專利範圍第4項所述的快閃記憶體之資料整理方法,其中根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的步驟還包括: 若所述第三實體抹除單元的數量大於一第二門檻值時,調高所述特定門檻值。As described in item 4 of the scope of patent application, the flash memory data sorting method, wherein the step of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit further includes: If the number of the third physical erasing units is greater than a second threshold, the specific threshold is increased. 如申請專利範圍第5項所述的快閃記憶體之資料整理方法,其中所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。The flash memory data sorting method as described in item 5 of the scope of patent application, wherein the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is Thirty percent of the number of the first physical erasing unit. 如申請專利範圍第1項所述的快閃記憶體之資料整理方法,其中僅當所述資料的一資料量等於一特定資料量時,執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的步驟。As described in the first item of the scope of patent application, the flash memory data organization method, wherein only when a data amount of the data is equal to a specific data amount, the effective data in the plurality of physical erasing units is obtained The steps of the distribution state. 一種快閃記憶體控制電路單元,用於控制一可複寫式非揮發性記憶體模組,所述記憶體控制電路單元包括: 一主機介面,用以耦接至一主機系統; 一記憶體介面,用以耦接至所述可複寫式非揮發性記憶體模組,其中所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區; 一記憶體管理電路,耦接至所述主機介面以及所述記憶體介面, 其中所述記憶體管理電路用以將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元, 其中所述記憶體管理電路更用以獲得所述多個實體抹除單元中的有效資料的一分布狀態, 其中所述記憶體管理電路更用以根據所述分布狀態調整一特定門檻值, 當所述第一實體抹除單元的數量小於所述特定門檻值時,所述記憶體管理電路更用以執行一有效資料合併操作。A flash memory control circuit unit is used to control a rewritable non-volatile memory module. The memory control circuit unit includes: A host interface for coupling to a host system; A memory interface for coupling to the rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical erasing units, and the rewritable non-volatile memory module The volatile memory module includes an idle area, and at least one first physical erasing unit of the plurality of physical erasing units is associated with the idle area; A memory management circuit coupled to the host interface and the memory interface, The memory management circuit is used for writing at least one data to at least one second physical erasing unit in the first physical erasing unit, The memory management circuit is further used to obtain a distribution state of the effective data in the plurality of physical erasing units, The memory management circuit is further used to adjust a specific threshold value according to the distribution state, When the number of the first physical erasing units is less than the specific threshold value, the memory management circuit is further used to perform a valid data merging operation. 如申請專利範圍第8項所述的快閃記憶體控制電路單元,其中在獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作中, 所述記憶體管理電路更用以獲得所述資料的一資料量, 所述記憶體管理電路更用以獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。The flash memory control circuit unit described in item 8 of the scope of patent application, wherein in the operation of obtaining the distribution state of the effective data in the plurality of physical erasing units, The memory management circuit is further used to obtain a data amount of the data, The memory management circuit is further used to obtain the number of at least one third physical erasing unit among the plurality of physical erasing units, wherein the data is changed every time after writing the data to the second physical erasing unit 1. The effective data amount of the third entity erasing unit. 如申請專利範圍第9項所述的快閃記憶體控制電路單元,其中在根據所述分布狀態調整所述特定門檻值的運作中, 所述記憶體管理電路更用以根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。The flash memory control circuit unit as described in item 9 of the scope of patent application, wherein in the operation of adjusting the specific threshold value according to the distribution state, The memory management circuit is further configured to adjust the specific threshold value according to the amount of data and the number of the third physical erasing units. 如申請專利範圍第10項所述的快閃記憶體控制電路單元,其中在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中, 所述記憶體管理電路更用以獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商, 若所述第三實體抹除單元的數量不大於一第一門檻值且所述第一數值介於一第一範圍內時,所述記憶體管理電路更用以調低所述特定門檻值。The flash memory control circuit unit described in claim 10, wherein in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit, The memory management circuit is further used to obtain a first value, wherein the first value is a quotient of the amount of data divided by the number of the third physical erasing unit, If the number of the third physical erasing units is not greater than a first threshold value and the first value is within a first range, the memory management circuit is further used to lower the specific threshold value. 如申請專利範圍第11項所述的快閃記憶體控制電路單元,其中在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中, 若所述第三實體抹除單元的數量大於一第二門檻值時,所述記憶體管理電路更用以調高所述特定門檻值。The flash memory control circuit unit described in item 11 of the scope of patent application, wherein in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit, If the number of the third physical erasing units is greater than a second threshold, the memory management circuit is further configured to increase the specific threshold. 如申請專利範圍第12項所述的快閃記憶體控制電路單元,其中所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。The flash memory control circuit unit according to item 12 of the scope of patent application, wherein the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is Thirty percent of the number of the first physical erasure unit. 如申請專利範圍第8項所述的快閃記憶體控制電路單元,其中僅當所述資料的一資料量等於一特定資料量時,所述記憶體管理電路執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作。The flash memory control circuit unit described in item 8 of the scope of patent application, wherein only when a data amount of the data is equal to a specific data amount, the memory management circuit executes to obtain the plurality of physical erasures The operation of the distribution state of the valid data in the unit. 一種快閃記憶體儲存裝置,包括: 一連接介面單元,用以耦接至一主機系統; 一可複寫式非揮發性記憶體模組,其中所述可複寫式非揮發性記憶體模組具有多個實體抹除單元,所述可複寫式非揮發性記憶體模組包括一閒置區,所述多個實體抹除單元中的至少一第一實體抹除單元被關聯至所述閒置區;以及 一記憶體控制電路單元,耦接至所述連接介面單元與所述可複寫式非揮發性記憶體模組, 其中所述記憶體控制電路單元用以將至少一資料寫入至所述第一實體抹除單元中的至少一第二實體抹除單元, 其中所述記憶體控制電路單元更用以並獲得所述多個實體抹除單元中的有效資料的一分布狀態, 其中所述記憶體控制電路單元更用以根據所述分布狀態調整一特定門檻值, 當所述第一實體抹除單元的數量小於所述特定門檻值時,所述記憶體控制電路單元更用以執行一有效資料合併操作。A flash memory storage device, including: A connection interface unit for coupling to a host system; A rewritable non-volatile memory module, wherein the rewritable non-volatile memory module has a plurality of physical erasing units, and the rewritable non-volatile memory module includes an idle area, At least one first physical erasing unit of the plurality of physical erasing units is associated with the idle area; and A memory control circuit unit, coupled to the connection interface unit and the rewritable non-volatile memory module, The memory control circuit unit is used for writing at least one data to at least one second physical erasing unit in the first physical erasing unit, The memory control circuit unit is further used to obtain a distribution state of the effective data in the plurality of physical erasing units, The memory control circuit unit is further used to adjust a specific threshold value according to the distribution state, When the number of the first physical erasing units is less than the specific threshold value, the memory control circuit unit is further used to perform a valid data merging operation. 如申請專利範圍第15項所述的快閃記憶體儲存裝置,其中在獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作中, 所述記憶體控制電路單元更用以獲得所述資料的一資料量, 所述記憶體控制電路單元更用以獲得所述多個實體抹除單元中的至少一第三實體抹除單元的數量,其中將所述資料寫入至所述第二實體抹除單元後改變每一所述第三實體抹除單元的有效資料量。The flash memory storage device described in claim 15, wherein in the operation of obtaining the distribution state of the effective data in the plurality of physical erasing units, The memory control circuit unit is further used to obtain a data amount of the data, The memory control circuit unit is further used to obtain the number of at least one third physical erasing unit in the plurality of physical erasing units, wherein the data is changed after being written to the second physical erasing unit The effective data amount of each of the third physical erasure units. 如申請專利範圍第16項所述的快閃記憶體儲存裝置,其中在根據所述分布狀態調整所述特定門檻值的運作中, 所述記憶體控制電路單元更用以根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值。The flash memory storage device described in the 16th item of the scope of patent application, wherein in the operation of adjusting the specific threshold value according to the distribution state, The memory control circuit unit is further configured to adjust the specific threshold value according to the amount of data and the number of the third physical erasing units. 如申請專利範圍第17項所述的快閃記憶體儲存裝置,其中在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中, 所述記憶體控制電路單元更用以獲得一第一數值,其中所述第一數值為將所述資料量除以所述第三實體抹除單元的數量的商, 若所述第三實體抹除單元的數量不大於一第一門檻值且所述第一數值介於一第一範圍內時,所述記憶體控制電路單元更用以調低所述特定門檻值。The flash memory storage device described in the scope of patent application, wherein in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit, The memory control circuit unit is further used to obtain a first value, wherein the first value is a quotient of the amount of data divided by the number of the third physical erasing unit, If the number of the third physical erasing units is not greater than a first threshold value and the first value is within a first range, the memory control circuit unit is further used to lower the specific threshold value . 如申請專利範圍第18項所述的快閃記憶體儲存裝置,其中在根據所述資料量以及所述第三實體抹除單元的數量調整所述特定門檻值的運作中, 若所述第三實體抹除單元的數量大於一第二門檻值時,所述記憶體控制電路單元更用以調高所述特定門檻值。The flash memory storage device described in item 18 of the scope of patent application, wherein in the operation of adjusting the specific threshold value according to the amount of data and the number of the third physical erasing unit, If the number of the third physical erasing units is greater than a second threshold, the memory control circuit unit is further used to increase the specific threshold. 如申請專利範圍第19項所述的快閃記憶體儲存裝置,其中所述第一門檻值為所述第一實體抹除單元的數量的百分之十且所述第二門檻值為所述第一實體抹除單元的數量的百分之三十。The flash memory storage device according to item 19 of the scope of patent application, wherein the first threshold value is ten percent of the number of the first physical erasing unit and the second threshold value is the Thirty percent of the number of first physical erasure units. 如申請專利範圍第15項所述的快閃記憶體儲存裝置,其中僅當所述資料的一資料量等於一特定資料量時,所述記憶體控制電路單元執行獲得所述多個實體抹除單元中的有效資料的所述分布狀態的運作。The flash memory storage device according to the 15th patent application, wherein only when a data amount of the data is equal to a specific data amount, the memory control circuit unit executes to obtain the plurality of physical erasures The operation of the distribution state of the valid data in the unit.
TW109103869A 2020-02-07 2020-02-07 Value adjusting method, memory control circuit unit and memory storage device for flash memory TWI711048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109103869A TWI711048B (en) 2020-02-07 2020-02-07 Value adjusting method, memory control circuit unit and memory storage device for flash memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109103869A TWI711048B (en) 2020-02-07 2020-02-07 Value adjusting method, memory control circuit unit and memory storage device for flash memory

Publications (2)

Publication Number Publication Date
TWI711048B TWI711048B (en) 2020-11-21
TW202131319A true TW202131319A (en) 2021-08-16

Family

ID=74202488

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109103869A TWI711048B (en) 2020-02-07 2020-02-07 Value adjusting method, memory control circuit unit and memory storage device for flash memory

Country Status (1)

Country Link
TW (1) TWI711048B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI793932B (en) * 2021-12-21 2023-02-21 建興儲存科技股份有限公司 Solid state storage device and associated write control method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298605A (en) * 2013-07-17 2015-01-21 光宝科技股份有限公司 Method of grouping blocks used for garbage collection action in solid state drive
US9632705B2 (en) * 2014-12-17 2017-04-25 Sandisk Technologies Llc System and method for adaptive memory layers in a memory device
SG11201707296QA (en) * 2016-11-11 2018-06-28 Huawei Tech Co Ltd Storage system and system garbage collection method
US10552288B2 (en) * 2016-12-12 2020-02-04 International Business Machines Corporation Health-aware garbage collection in a memory system
TWI649653B (en) * 2017-08-30 2019-02-01 群聯電子股份有限公司 Data storage method, memory storage device and memory control circuit unit
WO2019062231A1 (en) * 2017-09-27 2019-04-04 北京忆恒创源科技有限公司 Garbage collection method and storage device
WO2019105029A1 (en) * 2017-11-29 2019-06-06 北京忆恒创源科技有限公司 Deallocating command processing method and storage device thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI793932B (en) * 2021-12-21 2023-02-21 建興儲存科技股份有限公司 Solid state storage device and associated write control method

Also Published As

Publication number Publication date
TWI711048B (en) 2020-11-21

Similar Documents

Publication Publication Date Title
TWI681295B (en) Memory management method, memory control circuit unit and memory storage device
CN109491588B (en) Memory management method, memory control circuit unit and memory storage device
TWI700635B (en) Data writing method, memory control circuit unit and memory storage apparatus
TWI731338B (en) Memory control method, memory storage device and memory control circuit unit
TWI656531B (en) Average wear method, memory control circuit unit and memory storage device
TWI658361B (en) Memory management method, memory control circuit unit and memory storage apparatus
TWI725416B (en) Data writing method, memory controlling circuit unit and memory storage device
TWI705331B (en) Valid data merging method, memory control circuit unit and memory storage device
TWI650639B (en) Memory management method, memory control circuit unit and mempry storage device
TW201725588A (en) Data writing method, memory control circuit unit and memory storage apparatus
TW202046113A (en) Data writing method, memory control circuit unit and memory storage device
CN109273033B (en) Memory management method, memory control circuit unit and memory storage device
TW202305598A (en) Method for managing memory buffer, memory control circuit unit and memory storage apparatus
TWI635495B (en) Data writing method, memory control circuit unit and memory storage apparatus
TWI711048B (en) Value adjusting method, memory control circuit unit and memory storage device for flash memory
TW202109536A (en) Memory control method, memory storage device and memory control circuit unit
TWI730600B (en) Data writing method, memory controlling circuit unit and memory storage device
CN112394883A (en) Data merging method, memory storage device and memory control circuit unit
CN111240602B (en) Data sorting method of flash memory, control circuit unit and storage device
CN112445418B (en) Memory control method, memory storage device and memory control circuit unit
TWI823792B (en) Mapping table updating method, memory storage device and memory control circuit unit
CN117632038B (en) Wear leveling method, memory storage device and memory control circuit unit
TWI831366B (en) Data writing method, memory storage device and memory control circuit unit
TWI769386B (en) Data erasing method, memory control circuit unit and memory storage device
CN113220213B (en) Data writing method, memory control circuit unit and memory storage device