TWI648634B - Memory management method, memory storage device and memory control circuit unit - Google Patents

Memory management method, memory storage device and memory control circuit unit Download PDF

Info

Publication number
TWI648634B
TWI648634B TW106139704A TW106139704A TWI648634B TW I648634 B TWI648634 B TW I648634B TW 106139704 A TW106139704 A TW 106139704A TW 106139704 A TW106139704 A TW 106139704A TW I648634 B TWI648634 B TW I648634B
Authority
TW
Taiwan
Prior art keywords
instruction
time interval
past
memory
receiving time
Prior art date
Application number
TW106139704A
Other languages
Chinese (zh)
Other versions
TW201923599A (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 TW106139704A priority Critical patent/TWI648634B/en
Application granted granted Critical
Publication of TWI648634B publication Critical patent/TWI648634B/en
Publication of TW201923599A publication Critical patent/TW201923599A/en

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本發明的一範例實施例提供一種記憶體管理方法,包括:從主機系統接收多個指令;計數對應於所述指令的最新閒置時間與過去平均指令接收時間間隔;若最新閒置時間大於第一門檻值且過去平均指令接收時間間隔大於第二門檻值,動態地將記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式。藉此,可降低記憶體儲存裝置的耗電量,且可避免記憶體儲存裝置在不同工作模式之間太頻繁地切換。An exemplary embodiment of the present invention provides a memory management method, including: receiving a plurality of instructions from a host system; counting a latest idle time corresponding to the instruction and a past average instruction receiving time interval; if the latest idle time is greater than the first threshold The value and the past average command receiving time interval is greater than the second threshold, dynamically switching the operating mode of the memory storage device from the first operating mode to the second operating mode. Thereby, the power consumption of the memory storage device can be reduced, and the memory storage device can be prevented from switching too frequently between different operating modes.

Description

記憶體管理方法、記憶體儲存裝置及記憶體控制電路單元Memory management method, memory storage device, and memory control circuit unit

本發明是有關於一種記憶體管理方法、記憶體儲存裝置及記憶體控制電路單元。The invention relates to a memory management method, a memory storage device and a memory control circuit unit.

數位相機、行動電話與MP3播放器在這幾年來的成長十分迅速,使得消費者對儲存媒體的需求也急速增加。由於可複寫式非揮發性記憶體模組(rewritable non-volatile memory module)(例如,快閃記憶體)具有資料非揮發性、省電、體積小,以及無機械結構等特性,所以非常適合內建於上述所舉例的各種可攜式多媒體裝置中。Digital cameras, mobile phones and MP3 players have grown very rapidly in recent years, and the demand for storage media has increased rapidly. Because 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. It is built into various portable multimedia devices exemplified above.

一般來說,記憶體儲存裝置可能會預設有一個固定的門檻值,用來判斷是否進入閒置模式或省電模式。當記憶體儲存裝置長時間未接收到來自主機系統的指令使得其閒置時間超過此門檻值時,記憶體儲存裝置會進入此閒置模式或省電模式,以節省電力消耗。此外,在進入閒置模式時,記憶體儲存裝置通常會利用此閒置時間將緩衝記憶體中的資料寫入可複寫式非揮發性記憶體模組中。然而,若記憶體儲存裝置太過於頻繁地進入閒置模式或省電模式,則可能會大幅增加對於可複寫式非揮發性記憶體模組的讀寫頻率,縮短可複寫式非揮發性記憶體模組的使用壽命。In general, the memory storage device may be pre-set with a fixed threshold value to determine whether to enter the idle mode or the power saving mode. When the memory storage device has not received an instruction from the host system for a long time such that its idle time exceeds the threshold, the memory storage device enters the idle mode or the power saving mode to save power consumption. In addition, when entering the idle mode, the memory storage device usually uses the idle time to write the data in the buffer memory into the rewritable non-volatile memory module. However, if the memory storage device enters the idle mode or the power saving mode too frequently, the read/write frequency of the rewritable non-volatile memory module may be greatly increased, and the rewritable non-volatile memory mode may be shortened. The service life of the group.

本發明的範例實施例提供一種記憶體管理方法、記憶體儲存裝置及記憶體控制電路單元,可根據兩種不同意義的參數來決定是否切換工作模式,延長可複寫式非揮發性記憶體模組的使用壽命。An exemplary embodiment of the present invention provides a memory management method, a memory storage device, and a memory control circuit unit, which can determine whether to switch the working mode according to two different meaning parameters, and extend the rewritable non-volatile memory module. The service life.

本發明的一範例實施例提供一種記憶體管理方法,其用於包括計數電路、工作模式控制器及可複寫式非揮發性記憶體模組的記憶體儲存裝置,所述記憶體管理方法包括:從主機系統接收多個指令;由所述計數電路計數對應於所述指令的最新閒置時間與對應於所述指令的過去平均指令接收時間間隔;若所述最新閒置時間大於第一門檻值且所述過去平均指令接收時間間隔大於第二門檻值,由所述工作模式控制器動態地將所述記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式;以及若所述最新閒置時間未大於所述第一門檻值或所述過去平均指令接收時間間隔未大於所述第二門檻值,由所述工作模式控制器將所述記憶體儲存裝置的所述工作模式維持於所述第一工作模式,其中所述記憶體儲存裝置操作於所述第一工作模式的耗電量高於所述記憶體儲存裝置操作於所述第二工作模式的耗電量。An exemplary embodiment of the present invention provides a memory management method for a memory storage device including a counting circuit, a working mode controller, and a rewritable non-volatile memory module, the memory management method including: Receiving, by the host system, a plurality of instructions; counting, by the counting circuit, a latest idle time corresponding to the instruction and a past average instruction receiving time interval corresponding to the instruction; if the latest idle time is greater than the first threshold and The past average command receiving time interval is greater than a second threshold value, and the working mode controller dynamically switches the working mode of the memory storage device from the first working mode to the second working mode; and if the latest idle state The time is not greater than the first threshold or the past average command receiving time interval is not greater than the second threshold, and the operating mode of the memory storage device is maintained by the operating mode controller a first mode of operation, wherein the memory storage device operates in the first mode of operation and consumes more power than the memory Device operates in the second operating mode the power consumption is saved.

在本發明的一範例實施例中,由所述計數電路計數所述指令的所述過去平均指令接收時間間隔的步驟包括:計數第一過去指令接收時間間隔與第二過去指令接收時間間隔;以及計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的加權平均以獲得所述過去平均指令接收時間間隔。In an exemplary embodiment of the present invention, the step of counting, by the counting circuit, the past average instruction receiving time interval of the instruction comprises: counting a first past instruction receiving time interval and a second past instruction receiving time interval; A weighted average of the first past instruction reception time interval and the second past instruction reception time interval is calculated to obtain the past average instruction reception time interval.

在本發明的一範例實施例中,計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的所述加權平均的步驟包括:決定對應於所述第一過去指令接收時間間隔的第一權重值與對應於所述第二過去指令接收時間間隔的第二權重值;以及根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均。In an exemplary embodiment of the present invention, the step of calculating the weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval comprises: determining a first past instruction receiving time a first weight value of the interval and a second weight value corresponding to the second past instruction receiving time interval; and according to the first weight value, the second weight value, the first past instruction receiving time interval, and The second past instruction receives a time interval to calculate the weighted average.

在本發明的一範例實施例中,所述第一過去指令接收時間間隔是指所述指令中的第一指令與所述第一指令的前一指令的接收時間間隔,所述第二過去指令接收時間間隔是指所述指令中的第二指令與所述第二指令的前一指令的接收時間間隔,而決定對應於所述第一過去指令接收時間間隔的所述第一權重值與對應於所述第二過去指令接收時間間隔的所述第二權重值的步驟包括:根據所述第一指令與所述第二指令的接收順序決定所述第一權重值與所述第二權重值。In an exemplary embodiment of the present invention, the first past instruction receiving time interval refers to a receiving time interval between a first instruction in the instruction and a previous instruction in the first instruction, and the second past instruction The receiving time interval is a receiving time interval between the second instruction in the instruction and the previous instruction in the second instruction, and determining the first weight value corresponding to the first past instruction receiving time interval and corresponding The step of receiving the second weight value of the second past instruction receiving time interval includes: determining the first weight value and the second weight value according to a receiving order of the first instruction and the second instruction .

在本發明的一範例實施例中,根據所述第一指令與所述第二指令的所述接收順序決定所述第一權重值與所述第二權重值的步驟包括:響應於所述第一指令的接收時間點早於所述第二指令的接收時間點,將所述第一權重值決定為第一數值並將所述第二權重值決定為大於所述第一數值的第二數值。In an exemplary embodiment of the present invention, the step of determining the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction includes: responding to the Receiving a time point of an instruction earlier than a receiving time point of the second instruction, determining the first weight value as a first value and determining the second weight value as a second value greater than the first value .

在本發明的一範例實施例中,根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均的步驟包括:根據以下方程式計算所述加權平均:In an exemplary embodiment of the present invention, the weighted average is calculated according to the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction receiving time interval. The steps include: calculating the weighted average according to the following equation:

其中REF代表所述過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。Where REF represents the past average instruction reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers.

在本發明的一範例實施例中,所述第二工作模式包括中斷模式,且所述記憶體管理方法更包括:響應於所述記憶體儲存裝置的所述工作模式被切換為所述中斷模式,發送寫入指令序列以指示將暫存於緩衝記憶體的資料儲存至所述可複寫式非揮發性記憶體模組中;以及清空所述緩衝記憶體。In an exemplary embodiment of the present invention, the second working mode includes an interrupt mode, and the memory management method further includes: switching to the interrupt mode in response to the working mode of the memory storage device Sending a sequence of write instructions to instruct storage of data temporarily stored in the buffer memory into the rewritable non-volatile memory module; and emptying the buffer memory.

本發明的另一範例實施例提供一種記憶體儲存裝置,其包括連接介面單元、可複寫式非揮發性記憶體模組及記憶體控制電路單元。所述連接介面單元用以耦接至主機系統。所述記憶體控制電路單元耦接至所述連接介面單元與所述可複寫式非揮發性記憶體模組,其中所述記憶體控制電路單元用以從所述主機系統接收多個指令,其中所述記憶體控制電路單元更用以計數對應於所述指令的最新閒置時間與對應於所述指令的過去平均指令接收時間間隔,其中若所述最新閒置時間大於第一門檻值且所述過去平均指令接收時間間隔大於第二門檻值,所述記憶體控制電路單元更用以動態地將所述記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式,其中若所述最新閒置時間未大於所述第一門檻值或所述過去平均指令接收時間間隔未大於所述第二門檻值,所述記憶體控制電路單元更用以將所述記憶體儲存裝置的所述工作模式維持於所述第一工作模式,其中所述記憶體儲存裝置操作於所述第一工作模式的耗電量高於所述記憶體儲存裝置操作於所述第二工作模式的耗電量。Another exemplary embodiment of the present invention provides a 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 configured to be coupled to a host system. The memory control circuit unit is coupled to the connection interface unit and the rewritable non-volatile memory module, wherein the memory control circuit unit is configured to receive a plurality of instructions from the host system, wherein The memory control circuit unit is further configured to count a latest idle time corresponding to the instruction and a past average instruction reception time interval corresponding to the instruction, wherein the latest idle time is greater than the first threshold and the past The average command receiving time interval is greater than the second threshold, and the memory control circuit unit is further configured to dynamically switch the working mode of the memory storage device from the first working mode to the second working mode, wherein the latest The idle control time is not greater than the first threshold or the past average command reception interval is not greater than the second threshold, and the memory control circuit unit is further configured to use the working mode of the memory storage device Maintaining in the first working mode, wherein the memory storage device operates in the first operating mode and consumes more power than the recording Device operates in the second operating mode the power consumption of the storage body.

在本發明的一範例實施例中,所述記憶體控制電路單元計數所述指令的所述過去平均指令接收時間間隔的操作包括:計數第一過去指令接收時間間隔與第二過去指令接收時間間隔;以及計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的加權平均以獲得所述過去平均指令接收時間間隔。In an exemplary embodiment of the present invention, the operation of the memory control circuit unit to count the past average instruction receiving time interval of the instruction comprises: counting a first past instruction receiving time interval and a second past instruction receiving time interval And calculating a weighted average of the first past instruction reception time interval and the second past instruction reception time interval to obtain the past average instruction reception time interval.

在本發明的一範例實施例中,所述記憶體控制電路單元計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的所述加權平均的操作包括:決定對應於所述第一過去指令接收時間間隔的第一權重值與對應於所述第二過去指令接收時間間隔的第二權重值;以及根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均。In an exemplary embodiment of the present invention, the operation of the memory control circuit unit to calculate the weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval includes: determining a corresponding a first weight value of the first past instruction receiving time interval and a second weight value corresponding to the second past instruction receiving time interval; and according to the first weight value, the second weight value, the first The past instruction reception time interval and the second past instruction reception time interval are used to calculate the weighted average.

在本發明的一範例實施例中,所述第一過去指令接收時間間隔是指所述指令中的第一指令與所述第一指令的前一指令的接收時間間隔,所述第二過去指令接收時間間隔是指所述指令中的第二指令與所述第二指令的前一指令的接收時間間隔,而所述記憶體控制電路單元決定對應於所述第一過去指令接收時間間隔的所述第一權重值與對應於所述第二過去指令接收時間間隔的所述第二權重值的操作包括:根據所述第一指令與所述第二指令的接收順序決定所述第一權重值與所述第二權重值。In an exemplary embodiment of the present invention, the first past instruction receiving time interval refers to a receiving time interval between a first instruction in the instruction and a previous instruction in the first instruction, and the second past instruction The receiving time interval refers to a receiving time interval of a second instruction in the instruction and a previous instruction of the second instruction, and the memory control circuit unit determines a location corresponding to the first past instruction receiving time interval The operation of the first weight value and the second weight value corresponding to the second past instruction receiving time interval includes: determining the first weight value according to the receiving order of the first instruction and the second instruction And the second weight value.

在本發明的一範例實施例中,所述記憶體控制電路單元根據所述第一指令與所述第二指令的所述接收順序決定所述第一權重值與所述第二權重值的操作包括:響應於所述第一指令的接收時間點早於所述第二指令的接收時間點,將所述第一權重值決定為第一數值並將所述第二權重值決定為大於所述第一數值的第二數值。In an exemplary embodiment of the present invention, the memory control circuit unit determines an operation of the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction. The method includes: determining, according to a receiving time point of the first instruction, a receiving time point of the second instruction, determining the first weight value as a first value, and determining the second weight value to be greater than the The second value of the first value.

在本發明的一範例實施例中,所述記憶體控制電路單元根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均的操作包括:根據以下方程式計算所述加權平均:In an exemplary embodiment of the present invention, the memory control circuit unit is configured to receive, according to the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction receiving time. The operation of calculating the weighted average by the interval includes calculating the weighted average according to the following equation:

其中REF代表所述過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。Where REF represents the past average instruction reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers.

在本發明的一範例實施例中,所述第二工作模式包括中斷模式,且所述記憶體控制電路單元更用以響應於所述記憶體儲存裝置的所述工作模式被切換為所述中斷模式,發送寫入指令序列以指示將暫存於緩衝記憶體的資料儲存至所述可複寫式非揮發性記憶體模組中,其中所述記憶體控制電路單元更用以清空所述緩衝記憶體。In an exemplary embodiment of the present invention, the second working mode includes an interrupt mode, and the memory control circuit unit is further configured to switch to the interrupt in response to the operating mode of the memory storage device a mode of transmitting a write command sequence to indicate that the data temporarily stored in the buffer memory is stored in the rewritable non-volatile memory module, wherein the memory control circuit unit is further configured to clear the buffer memory body.

本發明的另一範例實施例提供一種記憶體控制電路單元,其用於控制記憶體儲存裝置,其中所述記憶體儲存裝置包括可複寫式非揮發性記憶體模組,其中所述記憶體控制電路單元包括主機介面、記憶體介面、計數電路、工作模式控制器及記憶體管理電路。所述主機介面用以耦接至主機系統。所述記憶體介面用以耦接至所述可複寫式非揮發性記憶體模組。所述記憶體管理電路耦接至所述主機介面、所述記憶體介面、所述計數電路及所述工作模式控制器,其中所述記憶體管理電路用以從所述主機系統接收多個指令,其中所述計數電路用以計數對應於所述指令的最新閒置時間與對應於所述指令的過去平均指令接收時間間隔,其中若所述最新閒置時間大於第一門檻值且所述過去平均指令接收時間間隔大於第二門檻值,所述工作模式控制器用以動態地將所述記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式,其中若所述最新閒置時間未大於所述第一門檻值或所述過去平均指令接收時間間隔未大於所述第二門檻值,所述工作模式控制器更用以將所述記憶體儲存裝置的所述工作模式維持於所述第一工作模式,其中所述記憶體儲存裝置操作於所述第一工作模式的耗電量高於所述記憶體儲存裝置操作於所述第二工作模式的耗電量。Another exemplary embodiment of the present invention provides a memory control circuit unit for controlling a memory storage device, wherein the memory storage device includes a rewritable non-volatile memory module, wherein the memory control The circuit unit includes a host interface, a memory interface, a counting circuit, a working mode controller, and a memory management circuit. The host interface is configured to be coupled to a host system. The memory interface is coupled to the rewritable non-volatile memory module. The memory management circuit is coupled to the host interface, the memory interface, the counting circuit, and the working mode controller, wherein the memory management circuit is configured to receive a plurality of instructions from the host system The counting circuit is configured to count a latest idle time corresponding to the instruction and a past average instruction receiving time interval corresponding to the instruction, wherein the latest idle time is greater than a first threshold and the past average instruction The receiving time interval is greater than a second threshold value, and the working mode controller is configured to dynamically switch the working mode of the memory storage device from the first working mode to the second working mode, wherein if the latest idle time is not greater than The first threshold value or the past average command receiving time interval is not greater than the second threshold value, and the working mode controller is further configured to maintain the working mode of the memory storage device at the first Working mode, wherein the memory storage device operates in the first working mode and consumes more power than the memory storage device operates The second mode of power consumption.

在本發明的一範例實施例中,所述計數電路計數所述指令的所述過去平均指令接收時間間隔的操作包括:計數第一過去指令接收時間間隔與第二過去指令接收時間間隔;以及計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的加權平均以獲得所述過去平均指令接收時間間隔。In an exemplary embodiment of the present invention, the counting circuit counting the past average instruction receiving time interval of the instruction comprises: counting a first past instruction receiving time interval and a second past instruction receiving time interval; and calculating And a weighted average of the first past instruction reception time interval and the second past instruction reception time interval to obtain the past average instruction reception time interval.

在本發明的一範例實施例中,所述計數電路計算所述第一過去指令接收時間間隔與所述第二過去指令接收時間間隔的所述加權平均的操作包括:決定對應於所述第一過去指令接收時間間隔的第一權重值與對應於所述第二過去指令接收時間間隔的第二權重值;以及根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均。In an exemplary embodiment of the present invention, the calculating, by the counting circuit, calculating the weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval includes: determining, corresponding to the first a first weight value of the past instruction receiving time interval and a second weight value corresponding to the second past instruction receiving time interval; and according to the first weight value, the second weight value, the first past instruction The weighted average is calculated by receiving the time interval and the second past instruction receiving time interval.

在本發明的一範例實施例中,所述第一過去指令接收時間間隔是指所述指令中的第一指令與所述第一指令的前一指令的接收時間間隔,所述第二過去指令接收時間間隔是指所述指令中的第二指令與所述第二指令的前一指令的接收時間間隔,而所述計數電路決定對應於所述第一過去指令接收時間間隔的所述第一權重值與對應於所述第二過去指令接收時間間隔的所述第二權重值的操作包括:根據所述第一指令與所述第二指令的接收順序決定所述第一權重值與所述第二權重值。In an exemplary embodiment of the present invention, the first past instruction receiving time interval refers to a receiving time interval between a first instruction in the instruction and a previous instruction in the first instruction, and the second past instruction The receiving time interval refers to a receiving time interval of the second instruction in the instruction and the previous instruction of the second instruction, and the counting circuit determines the first time corresponding to the first past instruction receiving time interval The operation of the weight value and the second weight value corresponding to the second past instruction receiving time interval includes: determining the first weight value according to the receiving order of the first instruction and the second instruction, and the The second weight value.

在本發明的一範例實施例中,所述計數電路根據所述第一指令與所述第二指令的所述接收順序決定所述第一權重值與所述第二權重值的操作包括:響應於所述第一指令的接收時間點早於所述第二指令的接收時間點,將所述第一權重值決定為第一數值並將所述第二權重值決定為大於所述第一數值的第二數值。In an exemplary embodiment of the present invention, the determining, by the counting circuit, the determining the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction comprises: responding Determining the first weight value as a first value and determining the second weight value to be greater than the first value, before a receiving time point of the first instruction is earlier than a receiving time point of the second instruction The second value.

在本發明的一範例實施例中,所述計數電路根據所述第一權重值、所述第二權重值、所述第一過去指令接收時間間隔及所述第二過去指令接收時間間隔來計算所述加權平均的操作包括:根據以下方程式計算所述加權平均:In an exemplary embodiment of the present invention, the counting circuit calculates, according to the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction receiving time interval. The weighted average operation includes calculating the weighted average according to the following equation:

其中REF代表所述過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。Where REF represents the past average instruction reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers.

在本發明的一範例實施例中,所述第二工作模式包括中斷模式,且所述記憶體管理電路更用以響應於所述記憶體儲存裝置的所述工作模式被切換為所述中斷模式,發送寫入指令序列以指示將暫存於緩衝記憶體的資料儲存至所述可複寫式非揮發性記憶體模組中,其中所述記憶體管理電路更用以清空所述緩衝記憶體。In an exemplary embodiment of the present invention, the second working mode includes an interrupt mode, and the memory management circuit is further configured to switch to the interrupt mode in response to the operating mode of the memory storage device. And sending a sequence of write instructions to indicate that the data temporarily stored in the buffer memory is stored in the rewritable non-volatile memory module, wherein the memory management circuit is further configured to clear the buffer memory.

基於上述,本發明除了基於最新閒置時間是否大於第一門檻值來作為判斷是否切換記憶體儲存裝置之工作模式的條件外,還進一步根據過去平均指令接收時間間隔是否大於第二門檻值來對是否切換工作模式進行雙重確認。藉此,可較為準確地決定切換工作模式的時機、降低工作模式的切換頻率並可延長可複寫式非揮發性記憶體模組的使用壽命。Based on the above, the present invention is further based on whether the latest idle time is greater than the first threshold as a condition for determining whether to switch the operating mode of the memory storage device, and further based on whether the past average command receiving time interval is greater than the second threshold value. Switch the working mode for double confirmation. Thereby, the timing of switching the working mode, the switching frequency of the working mode can be reduced more accurately, and the service life of the rewritable non-volatile memory module can be prolonged.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

一般而言,記憶體儲存裝置(亦稱,記憶體儲存系統)包括可複寫式非揮發性記憶體模組(rewritable non-volatile memory module)與控制器(亦稱,控制電路)。通常記憶體儲存裝置是與主機系統一起使用,以使主機系統可將資料寫入至記憶體儲存裝置或從記憶體儲存裝置中讀取資料。In general, a memory storage device (also referred to as a memory storage system) includes a rewritable non-volatile memory module and a controller (also referred to as a control circuit). Typically, the memory storage device is used with a host system to enable the host system to write data to 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 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。Referring to FIG. 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 the system bus 110.

在本範例實施例中,主機系統11是透過資料傳輸介面114與記憶體儲存裝置10耦接。例如,主機系統11可經由資料傳輸介面114將資料儲存至記憶體儲存裝置10或從記憶體儲存裝置10中讀取資料。此外,主機系統11是透過系統匯流排110與I/O裝置12耦接。例如,主機系統11可經由系統匯流排110將輸出訊號傳送至I/O裝置12或從I/O裝置12接收輸入訊號。In the 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 or from the memory storage device 10 via the data transfer interface 114. In addition, the host system 11 is coupled to the I/O device 12 through the system bus bar 110. For example, host system 11 can transmit output signals to or receive input signals from I/O device 12 via 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 the present exemplary embodiment, the processor 111, the random access memory 112, the read-only memory 113, and the data transfer 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. The motherboard 20 can be coupled to the memory storage device 10 via a data transmission interface 114 via a wired or wireless connection. The memory storage device 10 can 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 can be, for example, a Near Field Communication (NFC) memory storage device, a wireless fax (WiFi) memory storage device, a Bluetooth memory storage device, or a low power Bluetooth memory. A memory storage device based on various wireless communication technologies, such as a storage device (for example, iBeacon). In addition, the motherboard 20 can also be coupled to the Global Positioning System (GPS) module 205, the network interface card 206, the wireless transmission device 207, the keyboard 208, the screen 209, the speaker 210, etc. through the system bus bar 110. I/O device. For example, in an exemplary embodiment, the motherboard 20 can access the wireless memory storage device 204 via 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 referred to 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 illustrated by a computer system, FIG. 3 is a schematic diagram of the host system and the memory storage device according to another exemplary embodiment of the present invention. Referring to FIG. 3, in another exemplary embodiment, the host system 31 can also be 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 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 multimedia card (eMMC) 341 and/or an embedded multi-chip package (eMCP) storage device 342, and the like, directly coupling the memory module to the memory module. An embedded storage device on the base of the host system.

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

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

連接介面單元402用以將記憶體儲存裝置10耦接至主機系統11。在本範例實施例中,連接介面單元402是相容於序列先進附件(Serial Advanced Technology Attachment, SATA)標準。然而,必須瞭解的是,本發明不限於此,連接介面單元402亦可以是符合並列先進附件(Parallel Advanced Technology Attachment, PATA)標準、電氣和電子工程師協會(Institute of Electrical and Electronic Engineers, IEEE)1394標準、高速周邊零件連接介面(Peripheral Component Interconnect Express, PCI Express)標準、通用序列匯流排(Universal Serial Bus, USB)標準、SD介面標準、超高速一代(Ultra High Speed-I, UHS-I)介面標準、超高速二代(Ultra High Speed-II, UHS-II)介面標準、記憶棒(Memory Stick, MS)介面標準、MCP介面標準、MMC介面標準、eMMC介面標準、通用快閃記憶體(Universal Flash Storage, UFS)介面標準、eMCP介面標準、CF介面標準、整合式驅動電子介面(Integrated Device Electronics, IDE)標準或其他適合的標準。連接介面單元402可與記憶體控制電路單元404封裝在一個晶片中,或者連接介面單元402是佈設於一包含記憶體控制電路單元404之晶片外。The connection interface unit 402 is configured to couple the memory storage device 10 to the host system 11 . In the present exemplary embodiment, the connection interface unit 402 is compatible with the Serial Advanced Technology Attachment (SATA) standard. However, it must be understood that the present invention is not limited thereto, and the connection interface unit 402 may also be a Parallel Advanced Technology Attachment (PATA) standard, Institute of Electrical and Electronic Engineers (IEEE) 1394. Standard, high-speed Peripheral Component Interconnect Express (PCI Express) standard, Universal Serial Bus (USB) standard, SD interface standard, Ultra High Speed-I (UHS-I) interface Standard, Ultra High Speed II (UHS-II) interface standard, Memory Stick (MS) interface standard, MCP interface standard, MMC interface standard, eMMC interface standard, universal flash memory (Universal) Flash Storage, UFS) interface standard, eMCP interface standard, CF interface standard, Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 402 can be packaged in a wafer with the memory control circuit unit 404, or the connection interface unit 402 can be disposed outside a wafer including the memory control circuit unit 404.

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

可複寫式非揮發性記憶體模組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 is used to store data written by the host system 11. The rewritable non-volatile memory module 406 can be a single-level memory cell (SLC) NAND-type flash memory module (ie, one memory cell can store one bit of flash memory) Module), Multi Level Cell (MLC) NAND flash memory module (ie, a flash memory module that can store 2 bits in a memory cell), and complex 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 memory with the same characteristics Body module.

可複寫式非揮發性記憶體模組406中的每一個記憶胞是以電壓(以下亦稱為臨界電壓)的改變來儲存一或多個位元。具體來說,每一個記憶胞的控制閘極(control gate)與通道之間有一個電荷捕捉層。透過施予一寫入電壓至控制閘極,可以改變電荷補捉層的電子量,進而改變記憶胞的臨界電壓。此改變記憶胞之臨界電壓的操作亦稱為“把資料寫入至記憶胞”或“程式化(programming)記憶胞”。隨著臨界電壓的改變,可複寫式非揮發性記憶體模組406中的每一個記憶胞具有多個儲存狀態。透過施予讀取電壓可以判斷一個記憶胞是屬於哪一個儲存狀態,藉此取得此記憶胞所儲存的一或多個位元。Each of the memory cells of the rewritable non-volatile memory module 406 stores one or more bits in response to 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 to the memory cell" or "programming memory cell". As the threshold voltage changes, each of the memory cells of the rewritable non-volatile memory module 406 has a plurality of storage states. By applying the read voltage, it can be determined which storage state a memory cell belongs to, thereby obtaining one or more bits stored by the memory cell.

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

在本範例實施例中,實體程式化單元為程式化的最小單元。即,實體程式化單元為寫入資料的最小單元。例如,實體程式化單元為實體頁面(page)或是實體扇(sector)。若實體程式化單元為實體頁面,則此些實體程式化單元通常包括資料位元區與冗餘(redundancy)位元區。資料位元區包含多個實體扇,用以儲存使用者資料,而冗餘位元區用以儲存系統資料(例如,錯誤更正碼等管理資料)。在本範例實施例中,資料位元區包含32個實體扇,且一個實體扇的大小為512位元組(byte, B)。然而,在其他範例實施例中,資料位元區中也可包含8個、16個或數目更多或更少的實體扇,並且每一個實體扇的大小也可以是更大或更小。另一方面,實體抹除單元為抹除之最小單位。亦即,每一實體抹除單元含有最小數目之一併被抹除之記憶胞。例如,實體抹除單元為實體區塊(block)。In this exemplary embodiment, the physical stylized unit is the smallest unit that is stylized. That is, the entity stylized unit is the smallest unit that writes data. For example, an entity stylized unit is a physical page or a sector. If the entity stylized unit is a physical page, then the entity stylized units typically include a data bit area and a redundancy bit field. The data bit area contains a plurality of physical fans 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 fans, and one physical fan has a size of 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also contain 8, 16, or a greater or lesser number of solid fans, and the size of each of the physical fans may also be larger or smaller. On the other hand, the physical erase unit is the smallest unit of erase. That is, each physical erase unit contains one of the smallest number of erased memory cells. For example, the physical erase 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 invention.

請參照圖5,記憶體控制電路單元404包括記憶體管理電路502、主機介面504、記憶體介面506、計數電路507、工作模式控制器509及緩衝記憶體510。Referring to FIG. 5, the memory control circuit unit 404 includes a memory management circuit 502, a host interface 504, a memory interface 506, a counting circuit 507, an operating mode controller 509, and a buffer memory 510.

記憶體管理電路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 operates, such control commands are executed to perform operations such as writing, reading, and erasing of data. The operation of the memory management circuit 502 will be described below, which is equivalent to the operation of the memory control circuit unit 404.

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

在另一範例實施例中,記憶體管理電路502的控制指令亦可以程式碼型式儲存於可複寫式非揮發性記憶體模組406的特定區域(例如,記憶體模組中專用於存放系統資料的系統區)中。此外,記憶體管理電路502具有微處理器單元(未繪示)、唯讀記憶體(未繪示)及隨機存取記憶體(未繪示)。特別是,此唯讀記憶體具有開機碼(boot code),並且當記憶體控制電路單元404被致能時,微處理器單元會先執行此開機碼來將儲存於可複寫式非揮發性記憶體模組406中之控制指令載入至記憶體管理電路502的隨機存取記憶體中。之後,微處理器單元會運轉此些控制指令以進行資料的寫入、讀取與抹除等運作。In another exemplary embodiment, the control command of the memory management circuit 502 can also be stored in a specific area of the rewritable non-volatile memory module 406 (for example, the memory module is dedicated to storing system data). In the 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 first executes the boot code to store the rewritable non-volatile memory. The control commands in the body module 406 are loaded into the random access memory of the memory management circuit 502. After that, the microprocessor unit will run 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 command of the memory management circuit 502 can also be implemented in a hardware format. For example, the memory management circuit 502 includes a microcontroller, a memory cell management circuit, a memory write circuit, a memory read circuit, a memory erase circuit, and a data processing circuit. The memory cell management circuit, the memory write circuit, the memory read circuit, the memory erase circuit and the data processing circuit are coupled to the microcontroller. The memory cell management circuit is used to manage the memory cells of the rewritable non-volatile memory module 406 or a group thereof. 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 configured 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 erase circuit is used to issue an erase 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 configured to process 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 code codes or instruction codes and are used to instruct the rewritable non-volatile memory module 406 to perform corresponding writes and reads. Take the erase and other operations. In an exemplary embodiment, the memory management circuit 502 can also provide other types of instruction sequences to the rewritable non-volatile memory module 406 to indicate that the corresponding operations are performed.

主機介面504是耦接至記憶體管理電路502並且用以接收與識別主機系統11所傳送的指令與資料。也就是說,主機系統11所傳送的指令與資料會透過主機介面504來傳送至記憶體管理電路502。在本範例實施例中,主機介面504是相容於SATA標準。然而,必須瞭解的是本發明不限於此,主機介面504亦可以是相容於PATA標準、IEEE 1394標準、PCI Express標準、USB標準、SD標準、UHS-I標準、UHS-II標準、MS標準、MMC標準、eMMC標準、UFS標準、CF標準、IDE標準或其他適合的資料傳輸標準。The host interface 504 is coupled to the memory management circuit 502 and is configured to receive and identify instructions and data transmitted by the host system 11. That is to say, the instructions and data transmitted by the host system 11 are transmitted to the memory management circuit 502 through the host interface 504. In the present exemplary embodiment, host interface 504 is compatible with the SATA standard. However, it must be understood that the present invention is not limited thereto, and the host interface 504 may be compatible with the PATA standard, the IEEE 1394 standard, the PCI Express standard, the USB standard, the SD standard, the UHS-I standard, the UHS-II standard, and the MS standard. , MMC standard, eMMC standard, UFS standard, CF standard, IDE standard or other suitable data transmission standard.

記憶體介面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 is used to access the rewritable non-volatile memory module 406. That is, the data to be written to the rewritable non-volatile memory module 406 is converted to a format acceptable to the rewritable non-volatile memory module 406 via the memory interface 506. Specifically, if the memory management circuit 502 is to access the rewritable non-volatile memory module 406, the memory interface 506 will transmit a corresponding sequence of instructions. For example, the sequences of instructions may include a sequence of write instructions indicating write data, a sequence of read instructions indicating read data, a sequence of erase instructions indicating erased material, and instructions for indicating various memory operations (eg, changing read The corresponding instruction sequence that takes the voltage level or performs a garbage collection operation, etc.). These sequences of instructions are generated, for example, by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 via the memory interface 506. These sequences of instructions may include one or more signals or data on the bus. These signals or materials may include instruction codes or code. For example, in the read command sequence, information such as the read identification code, the memory address, and the like are included.

計數電路507耦接至記憶體管理電路502。計數電路50用以根據從主機系統11接收每一個指令的時間點來計數任兩個指令的接收時間間隔。例如,若在時間點T1接收到某一個指令並且在另一時間點T2接收到另一指令,則這兩個指令的接收時間間隔ΔT可視為T1-T2。The counting circuit 507 is coupled to the memory management circuit 502. The counting circuit 50 is configured to count the reception time interval of any two instructions based on the point in time at which each instruction is received from the host system 11. For example, if an instruction is received at time point T1 and another instruction is received at another time point T2, the reception time interval ΔT of the two instructions may be regarded as T1-T2.

在本範例實施例中,在接收到來自主機系統11的多個指令之後,計數電路507還可以計數對應於此些指令的最新閒置時間與對應於此些指令的過去平均指令接收時間間隔。須注意的是,對應於此些指令的最新閒置時間是指在最新接收到一個指令之後所經過的閒置時間。在此閒置時間內,沒有來自主機系統11的新的指令被接收。而對應於此些指令的過去平均指令接收時間間隔則是指在過去一段時間內所接收到的多個指令的多個接收時間間隔的平均值、加權平均值或中位值等等,只要可以反映在過去一段時間內多個接收時間間隔的概略平均值即可。In the present exemplary embodiment, after receiving a plurality of instructions from the host system 11, the counting circuit 507 can also count the latest idle time corresponding to the instructions and the past average instruction receive time interval corresponding to the instructions. It should be noted that the latest idle time corresponding to these instructions refers to the idle time elapsed after the latest receipt of an instruction. During this idle time, no new commands from the host system 11 are received. The past average instruction receiving time interval corresponding to the instructions refers to an average value, a weighted average value or a median value of a plurality of receiving time intervals of the received plurality of instructions in the past period of time, and the like, as long as It is reflected in the approximate average value of multiple receiving time intervals in the past period of time.

計數電路507可包括計數器(counter)、取樣電路、時脈電路及/或正反器(flip-flop)等各式可提供計數功能的邏輯電路元件,所屬技術領域中具有通常知識者應當知曉如何應用此些邏輯電路元件來實現計數電路507,在此便不贅述。在一範例實施例中,計數電路507還可以包括微處理器、微控制器及/或嵌入式控制器等具邏輯運算及/或資料處理功能的處理電路,本發明不加以限制。此外,在另一範例實施例中,計數電路507亦可以是設置在記憶體管理電路502內部或實現為軟體或韌體而由記憶體管理電路502執行,本發明不加以限制。The counting circuit 507 may include various logic circuit elements that can provide a counting function, such as a counter, a sampling circuit, a clock circuit, and/or a flip-flop. Those having ordinary knowledge in the art should know how to The counting circuit 507 is implemented by using such logic circuit elements, and will not be described herein. In an exemplary embodiment, the counting circuit 507 may further include processing circuits having logic operations and/or data processing functions, such as a microprocessor, a microcontroller, and/or an embedded controller, which are not limited in the present invention. In addition, in another exemplary embodiment, the counting circuit 507 may also be disposed in the memory management circuit 502 or implemented as a software or firmware and executed by the memory management circuit 502, which is not limited in the present invention.

工作模式控制器509耦接至記憶體管理電路502與計數電路507。工作模式控制器509可根據計數電路507的計數結果來判斷是否要切換記憶體儲存裝置10的工作模式。假設記憶體儲存裝置10當前的工作模式為某一工作模式(亦稱為第一工作模式)。根據計數電路507的計數結果,若工作模式控制器509判定要切換記憶體儲存裝置10的工作模式,則工作模式控制器509可傳送一個觸發訊號(或中斷訊號)給記憶體管理電路502。記憶體管理電路502可根據此觸發訊號(或中斷訊號)來指示將記憶體儲存裝置10的工作模式從第一工作模式切換為另一工作模式(亦稱為第二工作模式)。然而,若工作模式控制器509未傳送此觸發訊號(或中斷訊號)給記憶體管理電路502,則記憶體管理電路502可將記憶體儲存裝置10的工作模式維持在第一工作模式或者從當前的第二工作模式切換為第一工作模式。The working mode controller 509 is coupled to the memory management circuit 502 and the counting circuit 507. The operation mode controller 509 can judge whether or not to switch the operation mode of the memory storage device 10 based on the counting result of the counting circuit 507. It is assumed that the current working mode of the memory storage device 10 is a certain working mode (also referred to as a first working mode). According to the counting result of the counting circuit 507, if the operating mode controller 509 determines that the operating mode of the memory storage device 10 is to be switched, the operating mode controller 509 can transmit a trigger signal (or an interrupt signal) to the memory management circuit 502. The memory management circuit 502 can instruct to switch the operating mode of the memory storage device 10 from the first working mode to another working mode (also referred to as the second working mode) according to the trigger signal (or interrupt signal). However, if the operating mode controller 509 does not transmit the trigger signal (or interrupt signal) to the memory management circuit 502, the memory management circuit 502 can maintain the operating mode of the memory storage device 10 in the first working mode or from the current The second working mode is switched to the first working mode.

在一範例實施例中,工作模式控制器509儲存有一個第一門檻值與一個第二門檻值。在一範例實施例中,第二門檻值大於第一門檻值。例如,第一門檻值與第二門檻值之間的差值可為預設值或可動態決定。此外,在另一範例實施例中,第二門檻值亦可能小於或等於第一門檻值,本發明不加以限制。根據計數電路507的計數結果,工作模式控制器509會判斷對應於已接收的多個指令的最新閒置時間是否大於第一門檻值並判斷對應於此些指令的過去平均指令接收時間間隔是否大於第二門檻值。若對應於此些指令的最新閒置時間大於第一門檻值且對應於此些指令的過去平均指令接收時間間隔大於第二門檻值,工作模式控制器509會判定要切換記憶體儲存裝置10的工作模式,例如將記憶體儲存裝置10的工作模式從第一工作模式切換為第二工作模式。然而,若對應於此些指令的最新閒置時間不大於第一門檻值及/或對應於此些指令的過去平均指令接收時間間隔不大於第二門檻值,則工作模式控制器509會判定將記憶體儲存裝置10的工作模式維持在第一工作模式。In an exemplary embodiment, the operational mode controller 509 stores a first threshold value and a second threshold value. In an exemplary embodiment, the second threshold value is greater than the first threshold value. For example, the difference between the first threshold and the second threshold may be a preset value or may be dynamically determined. In addition, in another exemplary embodiment, the second threshold may also be less than or equal to the first threshold, which is not limited by the present invention. According to the counting result of the counting circuit 507, the working mode controller 509 determines whether the latest idle time corresponding to the received plurality of instructions is greater than the first threshold value and determines whether the past average command receiving time interval corresponding to the instructions is greater than the first Two thresholds. If the latest idle time corresponding to the instructions is greater than the first threshold and the past average command receiving time interval corresponding to the instructions is greater than the second threshold, the working mode controller 509 determines that the memory storage device 10 is to be switched. The mode, for example, switches the mode of operation of the memory storage device 10 from the first mode of operation to the second mode of operation. However, if the latest idle time corresponding to the instructions is not greater than the first threshold and/or the past average command reception interval corresponding to the instructions is not greater than the second threshold, the operational mode controller 509 determines that the memory will be remembered. The mode of operation of the body storage device 10 is maintained in the first mode of operation.

在一範例實施例中,第一工作模式是指正常工作模式。在正常工作模式下,記憶體儲存裝置10可正常的執行所有的排程工作。每一個排程工作可以是來自主機系統11的指令所指示須執行的工作,例如存取可複寫式非揮發性記憶體以寫入或讀取資料,或者由記憶體管理電路502自行安排的任何工作。In an exemplary embodiment, the first mode of operation refers to a normal mode of operation. In the normal mode of operation, the memory storage device 10 can perform all scheduled tasks normally. Each scheduling job may be a work that is indicated by instructions from the host system 11, such as accessing rewritable non-volatile memory for writing or reading data, or any arrangement by the memory management circuit 502. jobs.

在一範例實施例中,記憶體儲存裝置10操作於第一工作模式的耗電量會高於記憶體儲存裝置10操作於第二工作模式的耗電量。在一範例實施例中,記憶體儲存裝置10操作於第一工作模式的工作量會高於記憶體儲存裝置10操作於第二工作模式的工作量。在一範例實施例中,記憶體儲存裝置10操作於第一工作模式的運算量會高於記憶體儲存裝置10操作於第二工作模式的運算量。須注意的是,前述耗電量、工作量及運算量皆是以某一單位時間內的耗電量、工作量及運算量進行衡量。In an exemplary embodiment, the power consumption of the memory storage device 10 operating in the first mode of operation may be higher than the power consumption of the memory storage device 10 operating in the second mode of operation. In an exemplary embodiment, the workload of the memory storage device 10 operating in the first mode of operation may be higher than the amount of operation of the memory storage device 10 in the second mode of operation. In an exemplary embodiment, the amount of operation of the memory storage device 10 in the first mode of operation may be higher than the amount of operation of the memory storage device 10 in the second mode of operation. It should be noted that the aforementioned power consumption, workload and calculation amount are measured by the power consumption, workload and calculation amount in a unit time.

在一範例實施例中,第二工作模式包括中斷(suspend)模式、閒置模式或者省電模式。在中斷模式下(例如,響應於記憶體儲存裝置10的工作模式被切換為中斷模式),記憶體管理電路502會發送寫入指令序列以指示將暫存於緩衝記憶體510的資料儲存至可複寫式非揮發性記憶體模組406中以進行長期儲存。在將暫存於緩衝記憶體510的資料完整複製到可複寫式非揮發性記憶體模組406之後,記憶體管理電路502可清空緩衝記憶體510,以釋放出緩衝記憶體510中額外的儲存空間。在閒置模式下(例如,響應於記憶體儲存裝置10的工作模式被切換為閒置模式),記憶體管理電路502可進入閒置狀態及/或可執行某些預設工作。在省電模式下(例如,響應於記憶體儲存裝置10的工作模式被切換為省電模式),記憶體管理電路502可進入省電狀態以降低部分系統效能,例如降低記憶體儲存裝置10的工作電壓及/或工作頻率等。在一範例實施例中,第二工作模式亦可包含前述中斷模式、閒置模式及省電模式的至少部分特性,視實務上的需求而定。此外,在一範例實施例中,第一工作模式是指第二工作模式以外的所有工作模式,只要符合記憶體儲存裝置10操作於第一工作模式的耗電量會高於記憶體儲存裝置10操作於第二工作模式的耗電量即可。In an exemplary embodiment, the second mode of operation includes a suspend mode, an idle mode, or a power saving mode. In the interrupt mode (eg, in response to the operating mode of the memory storage device 10 being switched to the interrupt mode), the memory management circuit 502 sends a sequence of write commands to indicate that the data temporarily stored in the buffer memory 510 is stored to The non-volatile memory module 406 is rewound for long-term storage. After the data temporarily stored in the buffer memory 510 is completely copied to the rewritable non-volatile memory module 406, the memory management circuit 502 can empty the buffer memory 510 to release additional storage in the buffer memory 510. space. In the idle mode (eg, in response to the operating mode of the memory storage device 10 being switched to the idle mode), the memory management circuit 502 can enter an idle state and/or can perform certain preset tasks. In the power saving mode (eg, in response to the operating mode of the memory storage device 10 being switched to the power saving mode), the memory management circuit 502 can enter a power saving state to reduce partial system performance, such as reducing the memory storage device 10 Operating voltage and / or operating frequency. In an exemplary embodiment, the second mode of operation may also include at least some characteristics of the foregoing interrupt mode, idle mode, and power saving mode, depending on practical requirements. In addition, in an exemplary embodiment, the first working mode refers to all working modes except the second working mode, and the power consumption of the memory storage device 10 in the first working mode is higher than that of the memory storage device 10 . The power consumption for operating in the second mode of operation is sufficient.

在一範例實施例中,若當前記憶體儲存裝置10的工作模式為第二工作模式,則當接收到來自主機系統11的最新指令時,工作模式控制器509可指示將記憶體儲存裝置10的工作模式切換回第一工作模式。在第一工作模式下,記憶體管理電路502可執行此最新指令所指示之資料讀取、資料寫入或資料刪除(或抹除)等操作。In an exemplary embodiment, if the current mode of operation of the memory storage device 10 is the second mode of operation, the operating mode controller 509 may indicate that the memory storage device 10 is to be received when the latest command from the host system 11 is received. The working mode is switched back to the first working mode. In the first mode of operation, the memory management circuit 502 can perform operations such as data reading, data writing, or data deletion (or erasure) indicated by the latest instruction.

在一範例實施例中,工作模式控制器509可包括微處理器、微控制器及/或嵌入式控制器等具邏輯運算及/或控制功能的控制電路,本發明不加以限制。此外,在一範例實施例中,工作模式控制器509亦可以是設置在記憶體管理電路502內部或實現為軟體或韌體而由記憶體管理電路502執行,本發明不加以限制。In an exemplary embodiment, the working mode controller 509 may include a control circuit having logic operations and/or control functions, such as a microprocessor, a microcontroller, and/or an embedded controller, which are not limited in the present invention. In addition, in an exemplary embodiment, the working mode controller 509 may also be implemented in the memory management circuit 502 or implemented as a software or firmware and executed by the memory management circuit 502, which is not limited in the present invention.

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

在一範例實施例中,記憶體控制電路單元404還包括錯誤檢查與校正電路508與電源管理電路512。In an exemplary embodiment, the memory control circuit unit 404 further includes an error checking and correction circuit 508 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 correction circuit 508 is coupled to the memory management circuit 502 and is 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 check and correction circuit 508 generates 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 writes 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. Thereafter, when the memory management circuit 502 reads the data from the rewritable non-volatile memory module 406, the error correction code and/or the error check code corresponding to the data are simultaneously read, and the error check and correction circuit 508 An error check and correction operation is performed on the read data based on the error correction code and/or the error check code.

電源管理電路512是耦接至記憶體管理電路502並且用以控制記憶體儲存裝置10的電源。The power management circuit 512 is coupled to the memory management circuit 502 and is used to control the power of the memory storage device 10.

圖6是根據本發明的一範例實施例所繪示的管理可複寫式非揮發性記憶體模組的示意圖。FIG. 6 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the invention.

請參照圖6,記憶體管理電路502會將可複寫式非揮發性記憶體模組406的實體單元610(0)~610(B)邏輯地分組至儲存區601與替換區602。儲存區601中的實體單元610(0)~610(A)是用以儲存資料,而替換區602中的實體單元610(A+1)~610(B)則是用以替換儲存區601中損壞的實體單元。例如,若從某一個實體單元中讀取的資料所包含的錯誤過多而無法被更正時,此實體單元會被視為是損壞的實體單元。須注意的是,若替換區602中沒有可用的實體抹除單元,則記憶體管理電路502可能會將整個記憶體儲存裝置10宣告為寫入保護(write protect)狀態,而無法再寫入資料。Referring to FIG. 6, the memory management circuit 502 logically groups the physical units 610(0)-610(B) of the rewritable non-volatile memory module 406 into the storage area 601 and the replacement area 602. The physical units 610(0)-610(A) in the storage area 601 are used to store data, and the physical units 610(A+1)~610(B) in the replacement area 602 are used to replace the storage area 601. Damaged physical unit. For example, if a material read from a physical unit contains too many errors and cannot be corrected, the physical unit is considered to be a damaged physical unit. It should be noted that if there is no physical erasing unit available in the replacement area 602, the memory management circuit 502 may declare the entire memory storage device 10 as a write protect state, and the data cannot be written again. .

在本範例實施例中,每一個實體單元是指一個實體抹除單元。然而,在另一範例實施例中,一個實體單元亦可以是指一個實體位址、一個實體程式化單元或由多個連續或不連續的實體位址組成。記憶體管理電路502會配置邏輯單元612(0)~612(C)以映射儲存區601中的實體單元610(0)~610(A)。在本範例實施例中,每一個邏輯單元是指一個邏輯位址。然而,在另一範例實施例中,一個邏輯單元也可以是指一個邏輯程式化單元、一個邏輯抹除單元或者由多個連續或不連續的邏輯位址組成。此外,邏輯單元612(0)~612(C)中的每一者可被映射至一或多個實體單元。In the present exemplary embodiment, each physical unit refers to a physical erasing unit. However, in another exemplary embodiment, an entity unit may also refer to a physical address, an entity stylized unit, or a plurality of consecutive or non-contiguous physical addresses. The memory management circuit 502 configures the logic units 612(0)-612(C) to map the physical units 610(0)-610(A) in the storage area 601. In the present exemplary embodiment, each logical unit refers to a logical address. However, in another exemplary embodiment, a logical unit may also refer to a logical stylized unit, a logical erase unit, or a plurality of consecutive or discontinuous logical addresses. Moreover, each of logic units 612(0)-612(C) can be mapped to one or more physical units.

記憶體管理電路502會將邏輯單元與實體單元之間的映射關係(亦稱為邏輯-實體位址映射關係)記錄於至少一邏輯-實體位址映射表。當主機系統11欲從記憶體儲存裝置10讀取資料或寫入資料至記憶體儲存裝置10時,記憶體管理電路502可根據此邏輯-實體位址映射表來執行對於記憶體儲存裝置10的資料存取操作。The memory management circuit 502 records the mapping relationship between the logical unit and the physical unit (also referred to as a logical-physical address mapping relationship) in at least one logical-physical address mapping table. When the host system 11 wants to read data from the memory storage device 10 or write data to the memory storage device 10, the memory management circuit 502 can execute the memory storage device 10 according to the logical-physical address mapping table. Data access operation.

圖7是根據本發明的一範例實施例所繪示的記憶胞的臨界電壓分布的示意圖。FIG. 7 is a schematic diagram of a threshold voltage distribution of a memory cell according to an exemplary embodiment of the invention.

請參照圖7,當接收到來自主機系統11的寫入指令時,記憶體管理電路502會根據此寫入指令所指示寫入的資料與寫入位址(例如,邏輯單元)來發送寫入指令序列以指示可複寫式非揮發性記憶體模組406程式化相應的記憶胞以儲存此資料。以SLC NAND型快閃記憶體為例,經程式化的記憶胞的臨界電壓分布可包括狀態701與702。狀態701對應於儲存有第一位元值的記憶胞的記憶胞數目,而狀態702則對應於儲存有第二位元值的記憶胞的記憶胞數目。在本範例實施例中,第一位元值為1,而第二位元值為0。或者,在另一範例實施例中,第一位元值為0,而第二位元值為1。Referring to FIG. 7, when receiving a write command from the host system 11, the memory management circuit 502 sends a write according to the data written by the write command and the write address (eg, a logical unit). The sequence of instructions is to instruct the rewritable non-volatile memory module 406 to program the corresponding memory cells to store the data. Taking SLC NAND type flash memory as an example, the threshold voltage distribution of the programmed memory cell may include states 701 and 702. State 701 corresponds to the number of memory cells of the memory cell in which the first bit value is stored, and state 702 corresponds to the number of memory cells of the memory cell in which the second bit value is stored. In the present exemplary embodiment, the first bit value is 1 and the second bit value is 0. Alternatively, in another exemplary embodiment, the first bit value is zero and the second bit value is one.

當接收到來自主機系統11的讀取指令時,記憶體管理電路502會發送讀取指令序列以指示可複寫式非揮發性記憶體模組406從此些記憶胞讀取資料。例如,根據接收到的讀取指令序列,可複寫式非揮發性記憶體模組406可使用讀取電壓準位Vread來從此些記憶胞讀取資料。例如,在將讀取電壓準位Vread施予至相應的記憶胞後,若某一個記憶胞的臨界電壓小於讀取電壓準位Vread,則記憶體管理電路502會讀到具有第一位元值(例如,1)的位元資料;或者,若某一個記憶胞的臨界電壓大於讀取電壓準位Vread,則記憶體管理電路502會讀到具有第二位元值(例如,0)的位元資料。Upon receiving a read command from the host system 11, the memory management circuit 502 sends a read command sequence to instruct the rewritable non-volatile memory module 406 to read data from such memory cells. For example, based on the received sequence of read commands, the rewritable non-volatile memory module 406 can use the read voltage level Vread to read data from such memory cells. For example, after the read voltage level Vread is applied to the corresponding memory cell, if the threshold voltage of a certain memory cell is less than the read voltage level Vread, the memory management circuit 502 reads the first bit value. (for example, 1) bit data; or, if the threshold voltage of a certain memory cell is greater than the read voltage level Vread, the memory management circuit 502 reads the bit having the second bit value (for example, 0). Metadata.

須注意的是,隨著每一個記憶胞所儲存的位元的總數不同,記憶胞的臨界電壓分布所包含的狀態之總數也可能不同。例如,在圖7的範例實施例中,每一個記憶胞是儲存一個位元,因此,記憶胞的臨界電壓分布包含兩個狀態。然而,在其他範例實施例中,若一個記憶胞可儲存兩個位元(例如,MLC NAND型快閃記憶體),則可複寫式非揮發性記憶體模組406中記憶胞的臨界電壓分布可包含四個狀態。或者,若一個記憶胞可儲存三個位元(例如,TLC NAND型快閃記憶體),則可複寫式非揮發性記憶體模組406中記憶胞的臨界電壓分布可包含八個狀態。It should be noted that as the total number of bits stored in each memory cell is different, the total number of states included in the threshold voltage distribution of the memory cell may also be different. For example, in the exemplary embodiment of FIG. 7, each memory cell stores one bit, and therefore, the threshold voltage distribution of the memory cell includes two states. However, in other exemplary embodiments, if one memory cell can store two bits (for example, MLC NAND type flash memory), the threshold voltage distribution of the memory cells in the rewritable non-volatile memory module 406 Can contain four states. Alternatively, if a memory cell can store three bits (eg, TLC NAND type flash memory), the threshold voltage distribution of the memory cells in the rewritable non-volatile memory module 406 can include eight states.

圖8是根據本發明的一範例實施例所繪示的最新閒置時間與多個指令的接收時間間隔的示意圖。FIG. 8 is a schematic diagram showing the latest idle time and the receiving time interval of multiple instructions according to an exemplary embodiment of the invention.

請參照圖8,假設記憶體管理電路502依序從主機系統11接收指令CMD(0)~CMD(N),其中N為整數,且指令CMD(N)為最新接收的指令。接收指令CMD(0)的時間點與接收指令CMD(1)的時間點之間具有接收時間間隔ΔT[0],接收指令CMD(1)的時間點與接收指令CMD(2)的時間點之間具有接收時間間隔ΔT[1],以此類推,接收指令CMD(N-1)的時間點與接收指令CMD(N)的時間點之間具有接收時間間隔ΔT[N-1]。接收時間間隔ΔT[0]~ΔT[N-1]可各不相同或至少部分相同。Referring to FIG. 8, it is assumed that the memory management circuit 502 sequentially receives the instructions CMD(0)~CMD(N) from the host system 11, where N is an integer and the instruction CMD(N) is the latest received instruction. There is a receiving time interval ΔT[0] between the time point when the command CMD(0) is received and the time point when the command CMD(1) is received, and the time point when the command CMD(1) is received and the time point when the command CMD(2) is received. There is a reception time interval ΔT[1], and so on, a time interval of receiving the command CMD(N-1) and a time point of receiving the command CMD(N) have a reception time interval ΔT[N-1]. The reception time intervals ΔT[0]~ΔT[N-1] may be different or at least partially identical.

在一範例實施例中,接收時間間隔ΔT[0]~ΔT[N-1]中的每一者亦稱為過去指令接收時間間隔,而ΔT[N]為最新閒置時間。在接收時間間隔ΔT[0]~ΔT[N-1]中的每一個接收時間間隔內,沒有來自主機系統11的指令被接收。此外,最新閒置時間ΔT[N]則是在接收到最後一個指令CMD(N)之後尚未接收到下一個指令CMD(N+1)的閒置時間。In an exemplary embodiment, each of the receive time intervals ΔT[0]~ΔT[N-1] is also referred to as a past command reception time interval, and ΔT[N] is the latest idle time. No instruction from the host system 11 is received during each of the reception time intervals ΔT[0]~ΔT[N-1]. In addition, the latest idle time ΔT[N] is the idle time of the next instruction CMD(N+1) that has not been received after receiving the last instruction CMD(N).

計數電路507可根據接收到指令CMD(0)~CMD(N)的時間點來計數接收時間間隔ΔT[0]~ΔT[N-1]並可計數最新閒置時間ΔT[N]。在一範例實施例中,計數電路507可計算接收時間間隔ΔT[0]~ΔT[N-1]的加權平均以獲得對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔。The counting circuit 507 can count the reception time intervals ΔT[0] to ΔT[N-1] according to the time points at which the commands CMD(0) to CMD(N) are received and can count the latest idle time ΔT[N]. In an exemplary embodiment, the counting circuit 507 can calculate a weighted average of the receiving time intervals ΔT[0]~ΔT[N-1] to obtain a past average instruction receiving time interval corresponding to the commands CMD(0)~CMD(N). .

在一範例實施例中,計數電路507可為接收時間間隔ΔT[0]~ΔT[N-1]中的每一者配置一個權重值。例如,計數電路507可為接收時間間隔ΔT[k]配置一個權重值V[k],其中k為介於0至N-1之間的整數。例如,權重值V[0]對應於接收時間間隔ΔT[0],且權重值V[1]對應於接收時間間隔ΔT[1],以此類推,權重值V[N-1]對應於接收時間間隔ΔT[N-1]。權重值V[0]~V[N-1]可彼此各不相同或至少部分相同。In an exemplary embodiment, the counting circuit 507 can configure a weight value for each of the reception time intervals ΔT[0]~ΔT[N-1]. For example, the counting circuit 507 can configure a weight value V[k] for the reception time interval ΔT[k], where k is an integer between 0 and N-1. For example, the weight value V[0] corresponds to the reception time interval ΔT[0], and the weight value V[1] corresponds to the reception time interval ΔT[1], and so on, and the weight value V[N-1] corresponds to reception. Time interval ΔT[N-1]. The weight values V[0]~V[N-1] may be different from each other or at least partially identical.

計數電路507可根據接收時間間隔ΔT[0]~ΔT[N-1]與相應的權重值V[0]~V[N-1]來計算接收時間間隔ΔT[0]~ΔT[N-1]的加權平均。例如,計數電路507可根據以下方程式(1.1)來計算接收時間間隔ΔT[0]~ΔT[N-1]的加權平均。The counting circuit 507 can calculate the receiving time interval ΔT[0]~ΔT[N-1 according to the receiving time interval ΔT[0]~ΔT[N-1] and the corresponding weight value V[0]~V[N-1]. The weighted average of ]. For example, the counting circuit 507 can calculate a weighted average of the reception time intervals ΔT[0] to ΔT[N-1] according to the following equation (1.1).

(1.1) (1.1)

在方程式(1.1)中,REF代表對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔。以圖8為例,假設已依序接收到30個指令(即N=29),則根據方程式(1.1)可計算出對應於這30個指令的過去平均指令接收時間間隔。須注意的是,在一範例實施例中,對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔之計算與最新閒置時間ΔT[N]無關,如方程式(1.1)所示。In equation (1.1), REF represents the past average instruction reception time interval corresponding to the instructions CMD(0)~CMD(N). Taking FIG. 8 as an example, assuming that 30 instructions have been sequentially received (ie, N=29), the past average instruction reception time interval corresponding to the 30 instructions can be calculated according to equation (1.1). It should be noted that, in an exemplary embodiment, the calculation of the past average instruction reception time interval corresponding to the instructions CMD(0)~CMD(N) is independent of the latest idle time ΔT[N], as shown in equation (1.1). .

在一範例實施例中,方程式(1.1)亦可以被調整,例如加入其他變數或調整至少部分邏輯運算元素,以符合實務需求,只要可計算出(概略)反映在過去一段時間內多個指令之接收時間間隔的平均值之數值即可。此外,在另一範例實施例中,計數電路507亦可以將接收時間間隔ΔT[0]~ΔT[N-1]與相應的權重值V[0]~V[N-1]輸入至一查找表並將此查找表的輸出作為對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔。In an exemplary embodiment, equation (1.1) may also be adjusted, such as adding other variables or adjusting at least some of the logical operation elements to meet practical requirements, as long as multiple instructions can be calculated (roughly) reflected in the past period of time. The value of the average value of the receiving time interval can be used. In addition, in another exemplary embodiment, the counting circuit 507 can also input the receiving time interval ΔT[0]~ΔT[N-1] and the corresponding weight value V[0]~V[N-1] to a search. The table also takes the output of this lookup table as the past average instruction reception time interval corresponding to the instructions CMD(0)~CMD(N).

在圖8的一範例實施例中,指令CMD(0)~CMD(N)是依序被接收。亦即,指令CMD(0)最先被接收,接著指令CMD(1)被接收,接著指令CMD(2)被接收,以此類推,指令CMD(N)最後被接收。在一範例實施例中,根據指令CMD(0)~CMD(N)的接收順序,權重值V[0]~V[N-1]可被決定。In an exemplary embodiment of FIG. 8, instructions CMD(0)~CMD(N) are received sequentially. That is, the instruction CMD(0) is first received, then the instruction CMD(1) is received, then the instruction CMD(2) is received, and so on, the instruction CMD(N) is finally received. In an exemplary embodiment, the weight values V[0]~V[N-1] may be determined according to the order of reception of the instructions CMD(0)~CMD(N).

在一範例實施例中,響應於某一指令(亦稱為第一指令)的接收時間點早於另一指令(亦稱為第二指令)的接收時間點,計數電路507可將對應於第一指令的權重值(亦稱為第一權重值)決定為某一數值(亦稱為第一數值)並將對應於第二指令的權重值(亦稱為第二權重值)決定為大於第一數值的另一數值(亦稱為第二數值)。換言之,若指令CMD(k)的接收時間點越早,則對應於接收時間間隔ΔT[k]的權重值V[k]可被決定為越小的數值。或者,若指令CMD(k)的接收時間點越晚,則對應於接收時間間隔ΔT[k]的權重值V[k]越大。以圖8為例,指令CMD(2)是晚於指令CMD(0)被接收,故所決定的權重值V[1]會大於所決定的權重值V[0];同理,指令CMD(N)是晚於指令CMD(2)被接收,故所決定的權重值V[N-1]會大於所決定的權重值V[1]。從另一角度來看,在一範例實施例中,權重值V[k]可根據相應的指令CMD[k]在整個指令隊列CMD(0)~CMD(N)中的排序位置而決定。In an exemplary embodiment, in response to a reception time point of an instruction (also referred to as a first instruction) being earlier than a reception time point of another instruction (also referred to as a second instruction), the counting circuit 507 may correspond to the The weight value of an instruction (also referred to as a first weight value) is determined to be a certain value (also referred to as a first value) and the weight value corresponding to the second instruction (also referred to as a second weight value) is determined to be greater than Another value of a value (also known as a second value). In other words, if the reception time point of the command CMD(k) is earlier, the weight value V[k] corresponding to the reception time interval ΔT[k] can be determined to be a smaller value. Alternatively, if the reception time point of the command CMD(k) is later, the weight value V[k] corresponding to the reception time interval ΔT[k] is larger. Taking Figure 8 as an example, the command CMD(2) is received later than the command CMD(0), so the determined weight value V[1] will be greater than the determined weight value V[0]; similarly, the command CMD ( N) is received later than the command CMD (2), so the determined weight value V[N-1] will be greater than the determined weight value V[1]. From another point of view, in an exemplary embodiment, the weight value V[k] may be determined according to the ranking position of the corresponding instruction CMD[k] in the entire instruction queue CMD(0)~CMD(N).

在圖8的範例實施例中,若工作模式控制器509判定最新閒置時間ΔT[N]大於第一門檻值且對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔(例如,方程式(1.1)中的REF)大於第二門檻值,則工作模式控制器509可指示記憶體管理電路502將記憶體儲存裝置10的工作模式從第一工作模式切換為第二工作模式。然而,若最新閒置時間ΔT[N]不大於第一門檻值,及/或對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔不大於第二門檻值,則工作模式控制器509可指示記憶體管理電路502將記憶體儲存裝置10的工作模式維持在第一工作模式。換言之,若最新閒置時間ΔT[N]不大於第一門檻值及/或對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔不大於第二門檻值,則工作模式控制器509可不指示將記憶體儲存裝置10的工作模式從第一工作模式切換為第二工作模式。In the exemplary embodiment of FIG. 8, if the operating mode controller 509 determines that the latest idle time ΔT[N] is greater than the first threshold and corresponds to the past average command receiving time interval of the commands CMD(0)~CMD(N) (eg, If REF) in equation (1.1) is greater than the second threshold, the operational mode controller 509 can instruct the memory management circuit 502 to switch the operational mode of the memory storage device 10 from the first operational mode to the second operational mode. However, if the latest idle time ΔT[N] is not greater than the first threshold value, and/or the past average command reception time interval corresponding to the command CMD(0)~CMD(N) is not greater than the second threshold value, the operation mode control The device 509 can instruct the memory management circuit 502 to maintain the operating mode of the memory storage device 10 in the first mode of operation. In other words, if the latest idle time ΔT[N] is not greater than the first threshold value and/or the past average command reception time interval corresponding to the commands CMD(0)~CMD(N) is not greater than the second threshold value, the operational mode controller 509 may not instruct to switch the operating mode of the memory storage device 10 from the first operating mode to the second operating mode.

須注意的是,圖8的範例實施例中的最新閒置時間ΔT[N]是從接收最新的指令CMD(N)的時間點開始計數,直到接收到來自主機系統11的下一個指令CMD(N+1)為止。換言之,在接收到下一個指令CMD(N+1)之前,若最新閒置時間ΔT[N]大於第一門檻值且對應於指令CMD(0)~CMD(N)的過去平均指令接收時間間隔大於第二門檻值,則工作模式控制器509可指示將記憶體儲存裝置10的工作模式從第一工作模式切換為第二工作模式。若在最新閒置時間ΔT[N]大於第一門檻值之前就接收到下一個指令CMD(N+1),工作模式控制器509會判定最新閒置時間ΔT[N]不大於第一門檻值。It should be noted that the latest idle time ΔT[N] in the exemplary embodiment of FIG. 8 is counted from the time point when the latest instruction CMD(N) is received until the next instruction CMD (N) from the host system 11 is received. +1) so far. In other words, before the next instruction CMD(N+1) is received, if the latest idle time ΔT[N] is greater than the first threshold and the past average instruction reception interval corresponding to the instructions CMD(0)~CMD(N) is greater than The second threshold value, the operating mode controller 509 can instruct to switch the operating mode of the memory storage device 10 from the first operating mode to the second operating mode. If the next command CMD(N+1) is received before the latest idle time ΔT[N] is greater than the first threshold, the operational mode controller 509 determines that the latest idle time ΔT[N] is not greater than the first threshold.

在圖8的一範例實施例中,在將記憶體儲存裝置10的工作模式切換為第二工作模式之後,若接收到下一個指令CMD(N+1),則工作模式控制器509可指示將記憶體儲存裝置10的工作模式從第二工作模式切換回第一工作模式,以執行由指令CMD(N+1)所指示之工作。In an exemplary embodiment of FIG. 8, after switching the operating mode of the memory storage device 10 to the second operating mode, if the next command CMD(N+1) is received, the working mode controller 509 may indicate that The mode of operation of the memory storage device 10 is switched from the second mode of operation back to the first mode of operation to perform the operation indicated by the instruction CMD(N+1).

圖9是根據本發明的一範例實施例所繪示的記憶體管理方法的流程圖。FIG. 9 is a flowchart of a memory management method according to an exemplary embodiment of the invention.

請參照圖9,在步驟S901中,從主機系統接收多個指令。在步驟S902中,計數對應於所述指令的最新閒置時間與對應於所述指令的過去平均指令接收時間間隔。在步驟S903中,判斷是否對應於所述指令的最新閒置時間大於第一門檻值且對應於所述指令的過去平均指令接收時間間隔大於第二門檻值。若對應於所述指令的最新閒置時間大於第一門檻值且對應於所述指令的過去平均指令接收時間間隔大於第二門檻值,在步驟S904中,將記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式。若對應於所述指令的最新閒置時間不大於第一門檻值及/或對應於所述指令的過去平均指令接收時間間隔不大於第二門檻值,在步驟S905中,將記憶體儲存裝置的工作模式維持在第一工作模式。Referring to FIG. 9, in step S901, a plurality of instructions are received from the host system. In step S902, the latest idle time corresponding to the instruction and the past average instruction reception time interval corresponding to the instruction are counted. In step S903, it is determined whether the latest idle time corresponding to the instruction is greater than the first threshold and the past average instruction reception time interval corresponding to the instruction is greater than the second threshold. If the latest idle time corresponding to the instruction is greater than the first threshold and the past average command reception time interval corresponding to the instruction is greater than the second threshold, in step S904, the operating mode of the memory storage device is from the first The working mode is switched to the second working mode. If the latest idle time corresponding to the instruction is not greater than the first threshold and/or the past average command reception interval corresponding to the instruction is not greater than the second threshold, the memory storage device is operated in step S905. The mode is maintained in the first mode of operation.

然而,圖9中各步驟已詳細說明如上,在此便不再贅述。值得注意的是,圖9中各步驟可以實作為多個程式碼或是電路,本發明不加以限制。此外,圖9的方法可以搭配以上範例實施例使用,也可以單獨使用,本發明不加以限制。However, the steps in FIG. 9 have been described in detail above, and will not be described again here. It should be noted that the steps in FIG. 9 can be implemented as multiple code codes or circuits, and the present invention is not limited. In addition, the method of FIG. 9 may be used in combination with the above exemplary embodiments, or may be used alone, and the present invention is not limited thereto.

綜上所述,本發明除了基於尚未接收到下一個指令的最新閒置時間是否大於第一門檻值來作為判斷是否切換記憶體儲存裝置之工作模式的條件外,還進一步根據過去平均指令接收時間間隔是否大於第二門檻值來對是否切換工作模式進行雙重確認。藉此,可較為準確地決定切換工作模式的時機、降低工作模式的切換頻率並可延長可複寫式非揮發性記憶體模組的使用壽命。In summary, the present invention further determines the time interval of receiving the memory storage device based on whether the latest idle time that has not received the next command is greater than the first threshold value. Whether it is greater than the second threshold value to double check whether to switch the working mode. Thereby, the timing of switching the working mode, the switching frequency of the working mode can be reduced more accurately, and the service life of the rewritable non-volatile memory module can be prolonged.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

10、30‧‧‧記憶體儲存裝置10, 30‧‧‧ memory storage device

11、31‧‧‧主機系統 11, 31‧‧‧ host system

110‧‧‧系統匯流排 110‧‧‧System Bus

111‧‧‧處理器 111‧‧‧ Processor

112‧‧‧隨機存取記憶體 112‧‧‧ Random access memory

113‧‧‧唯讀記憶體 113‧‧‧Read-only memory

114‧‧‧資料傳輸介面 114‧‧‧Data transmission interface

12‧‧‧輸入/輸出(I/O)裝置 12‧‧‧Input/Output (I/O) devices

20‧‧‧主機板 20‧‧‧ motherboard

201‧‧‧隨身碟 201‧‧‧USB flash drive

202‧‧‧記憶卡 202‧‧‧ memory card

203‧‧‧固態硬碟 203‧‧‧ Solid State Drive

204‧‧‧無線記憶體儲存裝置 204‧‧‧Wireless memory storage device

205‧‧‧全球定位系統模組 205‧‧‧Global Positioning System Module

206‧‧‧網路介面卡 206‧‧‧Network Interface Card

207‧‧‧無線傳輸裝置 207‧‧‧Wireless transmission

208‧‧‧鍵盤 208‧‧‧ keyboard

209‧‧‧螢幕 209‧‧‧ screen

210‧‧‧喇叭 210‧‧‧ Horn

32‧‧‧SD卡 32‧‧‧SD card

33‧‧‧CF卡 33‧‧‧CF card

34‧‧‧嵌入式儲存裝置 34‧‧‧ embedded storage device

341‧‧‧嵌入式多媒體卡 341‧‧‧Embedded multimedia card

342‧‧‧嵌入式多晶片封裝儲存裝置 342‧‧‧Embedded multi-chip package storage device

402‧‧‧連接介面單元 402‧‧‧Connection interface unit

404‧‧‧記憶體控制電路單元 404‧‧‧Memory Control Circuit Unit

406‧‧‧可複寫式非揮發性記憶體模組 406‧‧‧Reusable non-volatile memory module

502‧‧‧記憶體管理電路 502‧‧‧Memory Management Circuit

504‧‧‧主機介面 504‧‧‧Host interface

506‧‧‧記憶體介面 506‧‧‧ memory interface

507‧‧‧計數電路 507‧‧‧counting circuit

508‧‧‧錯誤檢查與校正電路 508‧‧‧Error checking and correction circuit

509‧‧‧工作模式控制器 509‧‧‧Work mode controller

510‧‧‧緩衝記憶體 510‧‧‧ Buffer memory

512‧‧‧電源管理電路 512‧‧‧Power Management Circuit

601‧‧‧儲存區 601‧‧‧ storage area

602‧‧‧替換區 602‧‧‧Replacement area

610(0)~610(B)‧‧‧實體單元 610(0)~610(B)‧‧‧ entity unit

612(0)~612(C)‧‧‧邏輯單元 612(0)~612(C)‧‧‧ Logical unit

701、702‧‧‧狀態 701, 702‧‧‧ Status

CMD(0)~CMD(N+1)‧‧‧指令 CMD(0)~CMD(N+1)‧‧‧ directive

ΔT[0]~ΔT[N-1]‧‧‧接收時間間隔 ΔT[0]~ΔT[N-1]‧‧‧ Reception interval

ΔT[N]‧‧‧最新閒置時間 ΔT[N]‧‧‧ latest idle time

S901‧‧‧步驟(接收多個指令) S901‧‧‧Steps (receive multiple instructions)

S902‧‧‧步驟(計數對應於所述指令的最新閒置時間與對應於所述指令的過去平均指令接收時間間隔) S902‧‧‧ steps (counting the latest idle time corresponding to the instruction and the past average instruction reception time interval corresponding to the instruction)

S903‧‧‧步驟(是否最新閒置時間大於第一門檻值且過去平均指令接收時間間隔大於第二門檻值) S903‧‧‧Steps (whether the latest idle time is greater than the first threshold and the past average command reception interval is greater than the second threshold)

S904‧‧‧步驟(將記憶體儲存裝置的工作模式從第一工作模式切換為第二工作模式) S904‧‧‧Step (switching the working mode of the memory storage device from the first working mode to the second working mode)

S905‧‧‧步驟(將記憶體儲存裝置的工作模式維持在第一工作模式) S905‧‧‧Step (maintaining the working mode of the memory storage device in the first working mode)

圖1是根據本發明的一範例實施例所繪示的主機系統、記憶體儲存裝置及輸入/輸出(I/O)裝置的示意圖。 圖2是根據本發明的另一範例實施例所繪示的主機系統、記憶體儲存裝置及I/O裝置的示意圖。 圖3是根據本發明的另一範例實施例所繪示的主機系統與記憶體儲存裝置的示意圖。 圖4是根據本發明的一範例實施例所繪示的記憶體儲存裝置的概要方塊圖。 圖5是根據本發明的一範例實施例所繪示的記憶體控制電路單元的概要方塊圖。 圖6是根據本發明的一範例實施例所繪示之管理可複寫式非揮發性記憶體模組的示意圖。 圖7是根據本發明的一範例實施例所繪示的記憶胞的臨界電壓分布的示意圖。 圖8是根據本發明的一範例實施例所繪示的最新閒置時間與多個指令的接收時間間隔的示意圖。 圖9是根據本發明的一範例實施例所繪示的記憶體管理方法的流程圖。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 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. FIG. 3 is a schematic diagram of a host system and a memory storage device according to another exemplary embodiment of the invention. FIG. 4 is a schematic block diagram of a memory storage device according to an exemplary embodiment of the invention. FIG. 5 is a schematic block diagram of a memory control circuit unit according to an exemplary embodiment of the invention. FIG. 6 is a schematic diagram of managing a rewritable non-volatile memory module according to an exemplary embodiment of the invention. FIG. 7 is a schematic diagram of a threshold voltage distribution of a memory cell according to an exemplary embodiment of the invention. FIG. 8 is a schematic diagram showing the latest idle time and the receiving time interval of multiple instructions according to an exemplary embodiment of the invention. FIG. 9 is a flowchart of a memory management method according to an exemplary embodiment of the invention.

Claims (21)

一種記憶體管理方法,用於包括一計數電路、一工作模式控制器及一可複寫式非揮發性記憶體模組的一記憶體儲存裝置,該記憶體管理方法包括: 從一主機系統接收多個指令; 由該計數電路計數對應於該些指令的一最新閒置時間與對應於該些指令的一過去平均指令接收時間間隔; 若該最新閒置時間大於一第一門檻值且該過去平均指令接收時間間隔大於一第二門檻值,由該工作模式控制器動態地將該記憶體儲存裝置的一工作模式從一第一工作模式切換為一第二工作模式;以及 若該最新閒置時間未大於該第一門檻值或該過去平均指令接收時間間隔未大於該第二門檻值,由該工作模式控制器將該記憶體儲存裝置的該工作模式維持於該第一工作模式, 其中該記憶體儲存裝置操作於該第一工作模式的一耗電量高於該記憶體儲存裝置操作於該第二工作模式的一耗電量。A memory management method for a memory storage device including a counting circuit, a working mode controller and a rewritable non-volatile memory module, the memory management method comprising: receiving more from a host system An instruction: counting, by the counting circuit, a latest idle time corresponding to the instructions and a past average instruction receiving time interval corresponding to the instructions; if the latest idle time is greater than a first threshold and the past average command receiving The time interval is greater than a second threshold value, and the working mode controller dynamically switches an operating mode of the memory storage device from a first operating mode to a second operating mode; and if the latest idle time is not greater than the The first threshold value or the past average command receiving time interval is not greater than the second threshold value, and the working mode controller maintains the working mode of the memory storage device in the first working mode, wherein the memory storage device A power consumption operation in the first working mode is higher than the memory storage device operating in the second working mode A power consumption. 如申請專利範圍第1項所述的記憶體管理方法,其中由該計數電路計數該些指令的該過去平均指令接收時間間隔的步驟包括: 計數一第一過去指令接收時間間隔與一第二過去指令接收時間間隔;以及 計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的一加權平均以獲得該過去平均指令接收時間間隔。The memory management method of claim 1, wherein the step of counting, by the counting circuit, the past average instruction receiving time interval of the instructions comprises: counting a first past instruction receiving time interval and a second The past instruction receiving time interval; and calculating a weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval to obtain the past average instruction receiving time interval. 如申請專利範圍第2項所述的記憶體管理方法,其中計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的該加權平均的步驟包括: 決定對應於該第一過去指令接收時間間隔的一第一權重值與對應於該第二過去指令接收時間間隔的一第二權重值;以及 根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均。The memory management method of claim 2, wherein the calculating the weighted average of the first past instruction reception time interval and the second past instruction reception time interval comprises: determining to correspond to the first past instruction a first weight value of the receiving time interval and a second weight value corresponding to the second past instruction receiving time interval; and according to the first weight value, the second weight value, the first past instruction receiving time interval, and The second past instruction receives the time interval to calculate the weighted average. 如申請專利範圍第3項所述的記憶體管理方法,其中該第一過去指令接收時間間隔是指該些指令中的一第一指令與該第一指令的前一指令的一接收時間間隔,該第二過去指令接收時間間隔是指該些指令中的一第二指令與該第二指令的前一指令的一接收時間間隔,而決定對應於該第一過去指令接收時間間隔的該第一權重值與對應於該第二過去指令接收時間間隔的該第二權重值的步驟包括: 根據該第一指令與該第二指令的一接收順序決定該第一權重值與該第二權重值。The memory management method of claim 3, wherein the first past instruction receiving time interval is a receiving time interval between a first instruction of the instructions and a previous instruction of the first instruction, The second past instruction receiving time interval is a receiving time interval between a second instruction of the some instruction and the previous instruction of the second instruction, and determining the first corresponding to the first past instruction receiving time interval The step of the weight value and the second weight value corresponding to the second past instruction receiving time interval comprises: determining the first weight value and the second weight value according to a first instruction and a receiving order of the second instruction. 如申請專利範圍第4項所述的記憶體管理方法,其中根據該第一指令與該第二指令的該接收順序決定該第一權重值與該第二權重值的步驟包括: 響應於該第一指令的一接收時間點早於該第二指令的一接收時間點,將該第一權重值決定為一第一數值並將該第二權重值決定為大於該第一數值的一第二數值。The memory management method of claim 4, wherein the determining the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction comprises: responding to the a receiving time point of an instruction is earlier than a receiving time point of the second instruction, determining the first weight value as a first value and determining the second weight value as a second value greater than the first value . 如申請專利範圍第3項所述的記憶體管理方法,其中根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均的步驟包括: 根據以下方程式計算該加權平均: 其中REF代表該過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。 The memory management method of claim 3, wherein the weighting is calculated according to the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction receiving time interval. The averaging steps include: Calculating the weighted average according to the following equation: Where REF represents the past average command reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers. 如申請專利範圍第1項所述的記憶體管理方法,其中該第二工作模式包括一中斷模式,且該記憶體管理方法更包括: 響應於該記憶體儲存裝置的該工作模式被切換為該中斷模式,發送一寫入指令序列以指示將暫存於一緩衝記憶體的資料儲存至該可複寫式非揮發性記憶體模組中;以及 清空該緩衝記憶體。The memory management method of claim 1, wherein the second working mode comprises an interrupt mode, and the memory management method further comprises: switching to the operating mode in response to the memory storage device In the interrupt mode, a write command sequence is sent to indicate that the data temporarily stored in a buffer memory is stored in the rewritable non-volatile memory module; and the buffer memory is emptied. 一種記憶體儲存裝置,包括: 一連接介面單元,用以耦接至一主機系統; 一可複寫式非揮發性記憶體模組;以及 一記憶體控制電路單元,耦接至該連接介面單元與該可複寫式非揮發性記憶體模組, 其中該記憶體控制電路單元用以從該主機系統接收多個指令, 其中該記憶體控制電路單元更用以計數對應於該些指令的一最新閒置時間與對應於該些指令的一過去平均指令接收時間間隔, 其中若該最新閒置時間大於一第一門檻值且該過去平均指令接收時間間隔大於一第二門檻值,該記憶體控制電路單元更用以動態地將該記憶體儲存裝置的一工作模式從一第一工作模式切換為一第二工作模式, 其中若該最新閒置時間未大於該第一門檻值或該過去平均指令接收時間間隔未大於該第二門檻值,該記憶體控制電路單元更用以將該記憶體儲存裝置的該工作模式維持於該第一工作模式, 其中該記憶體儲存裝置操作於該第一工作模式的一耗電量高於該記憶體儲存裝置操作於該第二工作模式的一耗電量。A memory storage device includes: a connection interface unit for coupling to a host system; a rewritable non-volatile memory module; and a memory control circuit unit coupled to the connection interface unit and The rewritable non-volatile memory module, wherein the memory control circuit unit is configured to receive a plurality of instructions from the host system, wherein the memory control circuit unit is further configured to count an latest idle corresponding to the instructions a time interval and a past average command receiving time interval corresponding to the instructions, wherein the memory control circuit unit is further if the latest idle time is greater than a first threshold and the past average command receiving time interval is greater than a second threshold And dynamically switching the working mode of the memory storage device from a first working mode to a second working mode, wherein if the latest idle time is not greater than the first threshold or the past average command receiving time interval is not More than the second threshold, the memory control circuit unit is further configured to maintain the working mode of the memory storage device. In the first working mode, a power consumption of the memory storage device operating in the first working mode is higher than a power consumption of the memory storage device operating in the second working mode. 如申請專利範圍第8項所述的記憶體儲存裝置,其中該記憶體控制電路單元計數該些指令的該過去平均指令接收時間間隔的操作包括: 計數一第一過去指令接收時間間隔與一第二過去指令接收時間間隔;以及 計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的一加權平均以獲得該過去平均指令接收時間間隔。The memory storage device of claim 8, wherein the memory control circuit unit counts the past average instruction receiving time interval of the instructions comprises: counting a first past instruction receiving time interval and a a second past instruction receiving time interval; and calculating a weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval to obtain the past average instruction receiving time interval. 如申請專利範圍第9項所述的記憶體儲存裝置,其中該記憶體控制電路單元計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的該加權平均的操作包括: 決定對應於該第一過去指令接收時間間隔的一第一權重值與對應於該第二過去指令接收時間間隔的一第二權重值;以及 根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均。The memory storage device of claim 9, wherein the memory control circuit unit calculates the weighted average of the first past instruction reception time interval and the second past instruction reception time interval comprises: determining a correspondence And a second weight value corresponding to the second past instruction receiving time interval; and the first weight value, the second weight value, the first The past instruction reception time interval and the second past instruction reception time interval are used to calculate the weighted average. 如申請專利範圍第10項所述的記憶體儲存裝置,其中該第一過去指令接收時間間隔是指該些指令中的一第一指令與該第一指令的前一指令的一接收時間間隔,該第二過去指令接收時間間隔是指該些指令中的一第二指令與該第二指令的前一指令的一接收時間間隔,而該記憶體控制電路單元決定對應於該第一過去指令接收時間間隔的該第一權重值與對應於該第二過去指令接收時間間隔的該第二權重值的操作包括: 根據該第一指令與該第二指令的一接收順序決定該第一權重值與該第二權重值。The memory storage device of claim 10, wherein the first past instruction receiving time interval is a receiving time interval between a first instruction of the instructions and a previous instruction of the first instruction, The second past instruction receiving time interval is a receiving time interval between a second instruction of the instructions and the previous instruction of the second instruction, and the memory control circuit unit determines to receive the first past instruction corresponding to the first instruction. The operation of the first weight value of the time interval and the second weight value corresponding to the second past instruction receiving time interval includes: determining the first weight value according to a first instruction and a receiving order of the second instruction The second weight value. 如申請專利範圍第11項所述的記憶體儲存裝置,其中該記憶體控制電路單元根據該第一指令與該第二指令的該接收順序決定該第一權重值與該第二權重值的操作包括: 響應於該第一指令的一接收時間點早於該第二指令的一接收時間點,將該第一權重值決定為一第一數值並將該第二權重值決定為大於該第一數值的一第二數值。The memory storage device of claim 11, wherein the memory control circuit unit determines the operation of the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction. The method includes: determining, according to a receiving time point of the first instruction, a receiving time point earlier than the second instruction, determining the first weight value as a first value and determining the second weight value to be greater than the first A second value of the value. 如申請專利範圍第10項所述的記憶體儲存裝置,其中該記憶體控制電路單元根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均的操作包括: 根據以下方程式計算該加權平均: 其中REF代表該過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。 The memory storage device of claim 10, wherein the memory control circuit unit receives according to the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction The time interval to calculate the weighted average includes: Calculating the weighted average according to the following equation: Where REF represents the past average command reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers. 如申請專利範圍第8項所述的記憶體儲存裝置,其中該第二工作模式包括一中斷模式,且該記憶體控制電路單元更用以響應於該記憶體儲存裝置的該工作模式被切換為該中斷模式,發送一寫入指令序列以指示將暫存於一緩衝記憶體的資料儲存至該可複寫式非揮發性記憶體模組中, 其中該記憶體控制電路單元更用以清空該緩衝記憶體。The memory storage device of claim 8, wherein the second operating mode comprises an interrupt mode, and the memory control circuit unit is further configured to switch to the operating mode of the memory storage device to be In the interrupt mode, a write command sequence is sent to indicate that the data temporarily stored in a buffer memory is stored in the rewritable non-volatile memory module, wherein the memory control circuit unit is further used to clear the buffer. Memory. 一種記憶體控制電路單元,用於控制一記憶體儲存裝置,其中該記憶體儲存裝置包括一可複寫式非揮發性記憶體模組,其中該記憶體控制電路單元包括: 一主機介面,用以耦接至一主機系統; 一記憶體介面,用以耦接至該可複寫式非揮發性記憶體模組; 一計數電路; 一工作模式控制器; 一記憶體管理電路,耦接至該主機介面、該記憶體介面、該計數電路及該工作模式控制器, 其中該記憶體管理電路用以從該主機系統接收多個指令, 其中該計數電路用以計數對應於該些指令的一最新閒置時間與對應於該些指令的一過去平均指令接收時間間隔, 其中若該最新閒置時間大於一第一門檻值且該過去平均指令接收時間間隔大於一第二門檻值,該工作模式控制器用以動態地將該記憶體儲存裝置的一工作模式從一第一工作模式切換為一第二工作模式, 其中若該最新閒置時間未大於該第一門檻值或該過去平均指令接收時間間隔未大於該第二門檻值,該工作模式控制器更用以將該記憶體儲存裝置的該工作模式維持於該第一工作模式, 其中該記憶體儲存裝置操作於該第一工作模式的一耗電量高於該記憶體儲存裝置操作於該第二工作模式的一耗電量。A memory control circuit unit for controlling a memory storage device, wherein the memory storage device comprises a rewritable non-volatile memory module, wherein the memory control circuit unit comprises: a host interface for Coupling to a host system; a memory interface for coupling to the rewritable non-volatile memory module; a counting circuit; a working mode controller; a memory management circuit coupled to the host The interface, the memory interface, the counting circuit, and the operating mode controller, wherein the memory management circuit is configured to receive a plurality of instructions from the host system, wherein the counting circuit is configured to count a latest idle corresponding to the instructions a time interval and a past average command receiving time interval corresponding to the instructions, wherein the working mode controller is used to dynamically if the latest idle time is greater than a first threshold and the past average command receiving time interval is greater than a second threshold Switching an operating mode of the memory storage device from a first operating mode to a second operating mode, wherein The latest idle time is not greater than the first threshold or the past average command receiving interval is not greater than the second threshold, and the working mode controller is further configured to maintain the working mode of the memory storage device at the first The working mode, wherein a power consumption of the memory storage device operating in the first working mode is higher than a power consumption of the memory storage device operating in the second working mode. 如申請專利範圍第15項所述的記憶體控制電路單元,其中該計數電路計數該些指令的該過去平均指令接收時間間隔的操作包括: 計數一第一過去指令接收時間間隔與一第二過去指令接收時間間隔;以及 計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的一加權平均以獲得該過去平均指令接收時間間隔。The memory control circuit unit of claim 15, wherein the counting circuit counts the past average instruction receiving time interval of the instructions comprises: counting a first past instruction receiving time interval and a second The past instruction receiving time interval; and calculating a weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval to obtain the past average instruction receiving time interval. 如申請專利範圍第16項所述的記憶體控制電路單元,其中該計數電路計算該第一過去指令接收時間間隔與該第二過去指令接收時間間隔的該加權平均的操作包括: 決定對應於該第一過去指令接收時間間隔的一第一權重值與對應於該第二過去指令接收時間間隔的一第二權重值;以及 根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均。The memory control circuit unit of claim 16, wherein the counting circuit calculates the weighted average of the first past instruction receiving time interval and the second past instruction receiving time interval comprises: determining corresponding to the a first weight value of the first past instruction receiving time interval and a second weight value corresponding to the second past instruction receiving time interval; and according to the first weight value, the second weight value, the first past instruction The weighted average is calculated by the reception time interval and the second past instruction reception time interval. 如申請專利範圍第17項所述的記憶體控制電路單元,其中該第一過去指令接收時間間隔是指該些指令中的一第一指令與該第一指令的前一指令的一接收時間間隔,該第二過去指令接收時間間隔是指該些指令中的一第二指令與該第二指令的前一指令的一接收時間間隔,而該計數電路決定對應於該第一過去指令接收時間間隔的該第一權重值與對應於該第二過去指令接收時間間隔的該第二權重值的操作包括: 根據該第一指令與該第二指令的一接收順序決定該第一權重值與該第二權重值。The memory control circuit unit of claim 17, wherein the first past instruction receiving time interval is a receiving time interval between a first instruction of the instructions and a previous instruction of the first instruction. The second past instruction receiving time interval refers to a receiving time interval of a second instruction of the instructions and the previous instruction of the second instruction, and the counting circuit determines a receiving time interval corresponding to the first past instruction. The operation of the first weight value and the second weight value corresponding to the second past instruction receiving time interval includes: determining the first weight value and the first according to a first instruction and a receiving order of the second instruction Two weight values. 如申請專利範圍第18項所述的記憶體控制電路單元,其中該計數電路根據該第一指令與該第二指令的該接收順序決定該第一權重值與該第二權重值的操作包括: 響應於該第一指令的一接收時間點早於該第二指令的一接收時間點,將該第一權重值決定為一第一數值並將該第二權重值決定為大於該第一數值的一第二數值。The memory control circuit unit of claim 18, wherein the determining, by the counting circuit, the first weight value and the second weight value according to the receiving order of the first instruction and the second instruction comprises: Responding to a receiving time point of the first instruction being earlier than a receiving time point of the second instruction, determining the first weight value as a first value and determining the second weight value as being greater than the first value A second value. 如申請專利範圍第17項所述的記憶體控制電路單元,其中該計數電路根據該第一權重值、該第二權重值、該第一過去指令接收時間間隔及該第二過去指令接收時間間隔來計算該加權平均的操作包括: 根據以下方程式計算該加權平均: 其中REF代表該過去平均指令接收時間間隔,V[k]代表第k權重值,ΔT[k]代表第k過去指令接收時間間隔,且k與N皆為正整數。 The memory control circuit unit of claim 17, wherein the counting circuit is based on the first weight value, the second weight value, the first past instruction receiving time interval, and the second past instruction receiving time interval. The operation to calculate the weighted average includes: Calculating the weighted average according to the following equation: Where REF represents the past average command reception time interval, V[k] represents the kth weight value, ΔT[k] represents the kth past instruction reception time interval, and k and N are both positive integers. 如申請專利範圍第15項所述的記憶體控制電路單元,其中該第二工作模式包括一中斷模式,且該記憶體管理電路更用以響應於該記憶體儲存裝置的該工作模式被切換為該中斷模式,發送一寫入指令序列以指示將暫存於一緩衝記憶體的資料儲存至該可複寫式非揮發性記憶體模組中, 其中該記憶體管理電路更用以清空該緩衝記憶體。The memory control circuit unit of claim 15, wherein the second operating mode comprises an interrupt mode, and the memory management circuit is further configured to switch to the operating mode of the memory storage device to be In the interrupt mode, a write command sequence is sent to indicate that the data temporarily stored in a buffer memory is stored in the rewritable non-volatile memory module, wherein the memory management circuit is further used to clear the buffer memory. body.
TW106139704A 2017-11-16 2017-11-16 Memory management method, memory storage device and memory control circuit unit TWI648634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106139704A TWI648634B (en) 2017-11-16 2017-11-16 Memory management method, memory storage device and memory control circuit unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106139704A TWI648634B (en) 2017-11-16 2017-11-16 Memory management method, memory storage device and memory control circuit unit

Publications (2)

Publication Number Publication Date
TWI648634B true TWI648634B (en) 2019-01-21
TW201923599A TW201923599A (en) 2019-06-16

Family

ID=65803904

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106139704A TWI648634B (en) 2017-11-16 2017-11-16 Memory management method, memory storage device and memory control circuit unit

Country Status (1)

Country Link
TW (1) TWI648634B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI731338B (en) * 2019-05-30 2021-06-21 群聯電子股份有限公司 Memory control method, memory storage device and memory control circuit unit
TWI796935B (en) * 2022-01-19 2023-03-21 宏碁股份有限公司 Memory control method and memory storage devcie
TWI802068B (en) * 2021-10-22 2023-05-11 大陸商合肥兆芯電子有限公司 Memory performance optimization method, memory control circuit unit and memory storage device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI755068B (en) * 2020-09-21 2022-02-11 宜鼎國際股份有限公司 Data storage device with system operation capability
TWI793966B (en) * 2022-01-10 2023-02-21 群聯電子股份有限公司 Memory management method, memory storage device and memory control circuit unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030210658A1 (en) * 2002-05-08 2003-11-13 Microsoft Corporation Method and system for managing power consumption of a network interface module in a wireless computing device
TW201338537A (en) * 2012-03-09 2013-09-16 Ind Tech Res Inst System and method for dynamic dispatching of video recording
TWI595412B (en) * 2016-09-09 2017-08-11 大心電子(英屬維京群島)股份有限公司 Data transmitting method, memory storage device and memory control circuit unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030210658A1 (en) * 2002-05-08 2003-11-13 Microsoft Corporation Method and system for managing power consumption of a network interface module in a wireless computing device
TW201338537A (en) * 2012-03-09 2013-09-16 Ind Tech Res Inst System and method for dynamic dispatching of video recording
TWI595412B (en) * 2016-09-09 2017-08-11 大心電子(英屬維京群島)股份有限公司 Data transmitting method, memory storage device and memory control circuit unit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI731338B (en) * 2019-05-30 2021-06-21 群聯電子股份有限公司 Memory control method, memory storage device and memory control circuit unit
US11573704B2 (en) 2019-05-30 2023-02-07 Phison Electronics Corp. Memory control method, memory storage device and memory control circuit unit
TWI802068B (en) * 2021-10-22 2023-05-11 大陸商合肥兆芯電子有限公司 Memory performance optimization method, memory control circuit unit and memory storage device
US11693567B2 (en) 2021-10-22 2023-07-04 Hefei Core Storage Electronic Limited Memory performance optimization method, memory control circuit unit and memory storage device
TWI796935B (en) * 2022-01-19 2023-03-21 宏碁股份有限公司 Memory control method and memory storage devcie

Also Published As

Publication number Publication date
TW201923599A (en) 2019-06-16

Similar Documents

Publication Publication Date Title
TWI648634B (en) Memory management method, memory storage device and memory control circuit unit
US10592126B2 (en) Memory management method, memory storage device and memory control circuit unit
TWI595412B (en) Data transmitting method, memory storage device and memory control circuit unit
TWI579696B (en) Method and system for data rebuilding and memory control circuit unit thereof
TWI615710B (en) Memory management method, memory storage device and memory control circuit unit
CN110333770B (en) Memory management method, memory storage device and memory control circuit unit
TWI592799B (en) Mapping table updating method, memory control circuit unit and memory storage device
TWI587135B (en) Data storage method, memory storage device and memory control circuit unit
TWI602061B (en) Data writing method, memory storage device and memory control circuit unit
TW201810282A (en) Data writing method, memory control circuit unit and mempry storage apparatus
TW201703048A (en) Memory management method, memory control circuit unit and memory storage apparatus
TW201911298A (en) Temperature control method, memory storage device and memory control circuit unit
TWI649653B (en) Data storage method, memory storage device and memory control circuit unit
CN111078146B (en) Memory management method, memory storage device and memory control circuit unit
US11693567B2 (en) Memory performance optimization method, memory control circuit unit and memory storage device
CN107817943B (en) Data transmission method, memory storage device and memory control circuit unit
TWI597731B (en) Memory management method,memory storage device and memory control circuit unit
TWI688956B (en) Memory control method, memory storage device and memory control circuit unit
TWI554884B (en) Memory management method, memory control circuit unit and memory storage device
TWI712886B (en) Memory management method, memory storage device and memory control circuit unit
CN109410994B (en) Temperature control method, memory storage device and memory control circuit unit
TW202009715A (en) Memory management method and storage controller
TWI810719B (en) Memory management method, memory storage device and memory control circuit unit
US10884660B2 (en) Memory management method, memory storage device and memory control circuit unit
TWI810865B (en) Table sorting method, memory storage device and memory control circuit unit