TW201824263A - Storage device and method for setting reading voltage thereof - Google Patents

Storage device and method for setting reading voltage thereof Download PDF

Info

Publication number
TW201824263A
TW201824263A TW105141713A TW105141713A TW201824263A TW 201824263 A TW201824263 A TW 201824263A TW 105141713 A TW105141713 A TW 105141713A TW 105141713 A TW105141713 A TW 105141713A TW 201824263 A TW201824263 A TW 201824263A
Authority
TW
Taiwan
Prior art keywords
time
power
access circuit
storage device
unupdated
Prior art date
Application number
TW105141713A
Other languages
Chinese (zh)
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 TW105141713A priority Critical patent/TW201824263A/en
Publication of TW201824263A publication Critical patent/TW201824263A/en

Links

Landscapes

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

Abstract

A storage device and a method for setting a reading voltage thereof are provided. The storage device includes a NAND flash memory and an access circuit. The NAND flash memory is used to store a first data. The access circuit is coupled to the NAND flash memory for recording a power-on non-update time and a power-off non-update time of the first data, and determines a read voltage of the first data according to the power-on non-update time and the power-off non-update time.

Description

儲存裝置及其讀取電壓設定方法Storage device and read voltage setting method thereof

本發明是有關於一種儲存裝置,且特別是有關於一種儲存裝置及其讀取電壓設定方法。The present invention relates to a storage device, and more particularly to a storage device and a method for setting the read voltage thereof.

半導體記憶體通常區分為揮發性半導體記憶體(volatile semiconductor memory)或非揮發性記憶體。並且,發展自電性可抹除可程式唯讀記憶體(EEPROM)技術,反及閘快閃記憶體 (NAND flash memory)已經被廣泛採用於大量非揮發性資料的儲存裝置。然而,由於採用反及閘快閃記憶體的儲存裝置曾因為資料保存(Data retention)的問題造成資料讀取效能降低,因此有廠商則提出一些犧牲使用壽命的方式來維持儲存裝置的讀取效能(例如定期資料重新寫入),但上述方式並未解決儲存裝置的根本問題,並且帶來新的問題。Semiconductor memory is usually classified into a volatile semiconductor memory or a non-volatile memory. Moreover, the development of self-power erasable programmable read only memory (EEPROM) technology, NAND flash memory has been widely used in a large number of non-volatile data storage devices. However, since the storage device using the anti-gate flash memory has reduced the data reading performance due to the problem of data retention, some manufacturers have proposed a method of sacrificing the service life to maintain the reading performance of the storage device. (eg periodic data rewriting), but the above approach does not address the underlying problem of the storage device and introduces new problems.

本發明提供一種儲存裝置及其讀取電壓設定方法,可依據資料的通電未更新時間及斷電未更新時間決定資料的讀取電壓,以降低資料更新的頻率。The invention provides a storage device and a reading voltage setting method thereof, which can determine the reading voltage of the data according to the power-on time and the power-off time and the power-off time, so as to reduce the frequency of data updating.

本發明的儲存裝置,包括一反及閘快閃記憶體及一存取電路。反及閘快閃記憶體用以儲存一第一資料。存取電路耦接反及閘快閃記憶體,用以記錄第一資料的一通電未更新時間及一斷電未更新時間,並且依據通電未更新時間及斷電未更新時間決定第一資料的一讀取電壓。The storage device of the present invention comprises a reverse flash memory and an access circuit. The gate flash memory is used to store a first data. The access circuit is coupled to the gate flash memory for recording a power-on unupdate time of the first data and a power-off unupdate time, and determining the first data according to the power-on time and the power-off time. A read voltage.

本發明的儲存裝置的讀取電壓設定方法,包括下列步驟。透過一存取電路記錄儲存於一反及閘快閃記憶體的一第一資料的一通電未更新時間及一斷電未更新時間。透過存取電路依據通電未更新時間及斷電未更新時間決定第一資料的一讀取電壓。The reading voltage setting method of the storage device of the present invention includes the following steps. A power-on unupdated time and a power-off unupdated time of a first data stored in a reverse flash memory are recorded through an access circuit. A read voltage of the first data is determined by the access circuit according to the power-on time and the power-off time.

基於上述,本發明實例的儲存裝置及其讀取電壓設定方法,會記錄第一資料的通電未更新時間及斷電未更新時間,並且依據第一資料的通電未更新時間及斷電未更新時間決定資料的讀取電壓,以降低資料更新的頻率。Based on the above, the storage device of the example of the present invention and the read voltage setting method thereof record the power-on-update time and the power-off unupdate time of the first data, and the power-on-update time and the power-off time are not updated according to the first data. Determine the reading voltage of the data to reduce the frequency of data updates.

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

圖1為依據本發明一實施例的儲存裝置的系統示意圖。請參照圖1,在本實施例中,儲存裝置100耦接主機10,以接收主機10所提供的資料XDD,或者受控於主機10提供所需的資料XDD。儲存裝置100包括存取電路110及反及閘快閃記憶體120,其中反及閘快閃記憶體120可以是單層記憶胞(Single Level Cell, TLC)反及閘快閃記憶體、多層記憶胞(Multi Level Cell, TLC)反及閘快閃記憶體、或者三層記憶胞(Triple Level Cell, TLC)反及閘快閃記憶體。1 is a system diagram of a storage device in accordance with an embodiment of the present invention. Referring to FIG. 1 , in the embodiment, the storage device 100 is coupled to the host 10 to receive the data XDD provided by the host 10 or controlled by the host 10 to provide the required data XDD. The storage device 100 includes an access circuit 110 and an anti-gate flash memory 120. The anti-gate flash memory 120 can be a single level cell (TLC), a gate flash memory, or a multi-layer memory. Multi Level Cell (TLC) and Gate Flash Memory, or Triple Level Cell (TLC) and Gate Flash Memory.

存取電路110耦接主機10及反及閘快閃記憶體120,用以從主機10接收到資料XDD後,將資料XDD(對應第一資料)儲存(或寫入)到反及閘快閃記憶體120中,並且存取電路110會記錄資料XDD寫入後的通電未更新時間Ton及斷電未更新時間Toff。接著,當存取電路110受控於主機20對資料XDD進行讀取時,會依據通電未更新時間Ton及斷電未更新時間Toff決定資料XDD的讀取電壓。The access circuit 110 is coupled to the host 10 and the anti-gate flash memory 120 for storing (or writing) the data XDD (corresponding to the first data) to the anti-gate flash after receiving the data XDD from the host 10. In the memory 120, the access circuit 110 records the power-on unupdated time Ton and the power-off unupdated time Toff after the data XDD is written. Next, when the access circuit 110 is controlled by the host 20 to read the data XDD, the read voltage of the data XDD is determined according to the power-on unupdated time Ton and the power-off unupdated time Toff.

進一步來說,由於儲存於反及閘快閃記憶體120中資料XDD的電壓準位會隨著未更新時間(包括通電未更新時間Ton及斷電未更新時間Toff的總和時間)的拉長而降低,亦即通電未更新時間Ton與斷電未更新時間Toff的總和時間越長,資料XDD的電壓準位會越低,因此資料XDD的讀取電壓也需要隨之越低。Further, since the voltage level of the data XDD stored in the anti-gate flash memory 120 is elongated along with the unupdated time (including the sum of the power-on unupdate time Ton and the power-off unupdate time Toff) The lower, that is, the longer the sum of the power-on unupdated time Ton and the power-off unupdated time Toff, the lower the voltage level of the data XDD, so the read voltage of the data XDD also needs to be lower.

其中,通電未更新時間Ton及斷電未更新時間Toff可直接加總以取得電壓衰減係數,亦即n正比於(Ton+Toff)/Tth,再依據電壓衰減係數來決定資料XDD的讀取電壓,亦即Vread=Vro-n×ΔV,其中Tth為一時間臨界值,Vread為讀取電壓,Vro為讀取電壓的預設值,ΔV為調整的電壓區間(亦即數亳伏),n為電壓衰減係數。或者,通電未更新時間Ton及斷電未更新時間Toff可分別乘上對應的權重值後加總以取得電壓衰減係數,亦即n正比於(Ton×a+Toff×b)/Tth,其中係數a及b的總和可設定為1,以便於運算。Wherein, the power-on unupdated time Ton and the power-off unupdated time Toff can be directly added to obtain a voltage attenuation coefficient, that is, n is proportional to (Ton+Toff)/Tth, and then the reading voltage of the data XDD is determined according to the voltage attenuation coefficient. , that is, Vread=Vro-n×ΔV, where Tth is a time threshold, Vread is the read voltage, Vro is the preset value of the read voltage, and ΔV is the adjusted voltage range (ie, several volts), n Is the voltage attenuation coefficient. Alternatively, the power-on unupdated time Ton and the power-off unupdated time Toff may be respectively multiplied by corresponding weight values to add a voltage attenuation coefficient, that is, n is proportional to (Ton×a+Toff×b)/Tth, where the coefficient The sum of a and b can be set to 1 to facilitate calculation.

在本發明實施例中,可先在反及閘快閃記憶體120中定義一個邏輯區塊位址(Logical Block Address,LBA)的記憶體位置用來存放系統時間,以使主機10將系統時間寫入上述記憶體位置,例如週期性地寫入、或者在系統進行開機程序及關機程序時寫入。而存取電路110可主動擷取主機10所寫入的系統時間,以判斷系統開機及關機的時間標記,進而獲知系統斷電之後的時間長度,再對應地更新斷電未更新時間Toff。In the embodiment of the present invention, a memory location of a logical block address (LBA) may be defined in the anti-gate flash memory 120 to store the system time, so that the host 10 will system time. Write to the above memory location, for example, periodically, or when the system is booting up and shutting down the program. The access circuit 110 can actively retrieve the system time written by the host 10 to determine the time stamp of the system power-on and power-off, and then know the length of time after the system is powered off, and then update the power-off unupdated time Toff correspondingly.

在本發明的實施例中,在系統開機後,可先由主機10對上述記憶體位置做寫入的動作,亦即先對上述記憶體位置的系統時間更新,存取電路110再讀取更新後的系統時間。並且,在更新斷電未更新時間Toff之後到系統下一次斷電之前,存取電路110會自行掌握時間以免干擾主機10運作。在系統斷電之前,主機10會下一道系統待機(Standby)指令CMS告知存取電路110,此時存取電路110會讀取上述記憶體位置,以依據所獲知的系統時間更新一次通電未更新時間Ton。In the embodiment of the present invention, after the system is powered on, the host 10 may first write to the memory location, that is, first update the system time of the memory location, and the access circuit 110 reads the update. After the system time. Moreover, the access circuit 110 will grasp the time itself to avoid interference with the operation of the host 10 after updating the power-off unupdated time Toff until the next power-off of the system. Before the system is powered off, the host 10 will inform the access circuit 110 by the next system standby command CMS. At this time, the access circuit 110 reads the memory location to update the power supply according to the obtained system time. Time Ton.

依據上述,當存取電路110接收到系統待機命令CMS時,存取電路110會記載當下的系統時間作為第一時間標記T1。當系統開機後,主機10會通知存取電路110更新系統時間(亦即更新時間標記)。當存取電路110接收到更新系統時間的第二時間標記T2時,會依據第一時間標記T1與第二時間標記T2的時間差更新斷電未更新時間Toff,其中存取電路110將斷電未更新時間Toff的原始時間加上上述時間差後替換斷電未更新時間Toff。According to the above, when the access circuit 110 receives the system standby command CMS, the access circuit 110 records the current system time as the first time stamp T1. When the system is powered on, the host 10 notifies the access circuit 110 to update the system time (i.e., update the time stamp). When the access circuit 110 receives the second time stamp T2 of updating the system time, the power-off unupdated time Toff is updated according to the time difference between the first time stamp T1 and the second time stamp T2, wherein the access circuit 110 will be powered off. The original time of the update time Toff plus the above time difference is substituted for the power failure unupdated time Toff.

在本發明實施例中,存取電路110可透過快閃轉換層(Flash Translation Layer, FTL)記錄第一時間標記T1、通電未更新時間Ton及斷電未更新時間Toff。In the embodiment of the present invention, the access circuit 110 can record the first time stamp T1, the power-on unupdated time Ton, and the power-off unupdated time Toff through a Flash Translation Layer (FTL).

圖2為依據本發明一實施例的儲存裝置的讀取電壓設定方法的流程圖。請參照圖2,在本實施例中,儲存裝置的讀取電壓設定方法包括下列步驟。在步驟S210中,會透過存取電路記錄儲存於反及閘快閃記憶體的第一資料的通電未更新時間及斷電未更新時間。接著,在步驟S220中,會再透過存取電路依據通電未更新時間及斷電未更新時間決定第一資料的一讀取電壓。其中,步驟S210、S220的順序為用以說明,本發明實施例不以此為限。並且,步驟S210、S220的細節可參照圖1實施例所述,在此則不再贅述。2 is a flow chart of a method for setting a read voltage of a storage device according to an embodiment of the invention. Referring to FIG. 2, in the embodiment, the reading voltage setting method of the storage device includes the following steps. In step S210, the power-on unupdated time and the power-off unupdated time of the first data stored in the anti-gate flash memory are recorded through the access circuit. Next, in step S220, a read voltage of the first data is determined by the access circuit according to the power-on unupdated time and the power-off unupdated time. The order of the steps S210 and S220 is used for the description, and the embodiment of the present invention is not limited thereto. For details of the steps S210 and S220, reference may be made to the embodiment of FIG. 1 , and details are not described herein again.

綜上所述,本發明實例的儲存裝置及其讀取電壓設定方法,會記錄第一資料的通電未更新時間及斷電未更新時間,並且依據第一資料的通電未更新時間及斷電未更新時間決定資料的讀取電壓,以降低資料更新的頻率。In summary, the storage device and the read voltage setting method of the example of the present invention record the power-on-update time and the power-off time of the first data, and the power-on and update time and the power-off according to the first data are not The update time determines the read voltage of the data to reduce the frequency of data updates.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。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‧‧‧主機10‧‧‧Host

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

110‧‧‧存取電路110‧‧‧Access circuit

120‧‧‧反及閘快閃記憶體120‧‧‧Anti-gate flash memory

CMS‧‧‧系統待機指令CMS‧‧‧ system standby instruction

Toff‧‧‧斷電未更新時間Toff‧‧‧ power failure has not been updated

Ton‧‧‧通電未更新時間Ton‧‧‧Powered up time

XDD‧‧‧資料XDD‧‧‧Information

S210、S220‧‧‧步驟S210, S220‧‧‧ steps

圖1為依據本發明一實施例的儲存裝置的系統示意圖。 圖2為依據本發明一實施例的儲存裝置的讀取電壓設定方法的流程圖。1 is a system diagram of a storage device in accordance with an embodiment of the present invention. 2 is a flow chart of a method for setting a read voltage of a storage device according to an embodiment of the invention.

Claims (10)

一種儲存裝置,包括: 一反及閘快閃記憶體,用以儲存一第一資料;以及 一存取電路,耦接該反及閘快閃記憶體,用以記錄該第一資料的一通電未更新時間及一斷電未更新時間,並且依據該通電未更新時間及該斷電未更新時間決定該第一資料的一讀取電壓。A storage device includes: a reverse flash memory for storing a first data; and an access circuit coupled to the anti-gate flash memory for recording a power of the first data The time is not updated and the power is not updated, and a read voltage of the first data is determined according to the power-on-update time and the power-off time. 如申請專利範圍第1項所述的儲存裝置,其中該反及閘快閃記憶體更儲存一系統時間,當該存取電路接收到一系統待機命令時,該存取電路記載當下的該系統時間作為一第一時間標記,當該存取電路接收到更新該系統時間的一第二時間標記時,依據該第一時間標記與該第二時間標記的一時間差更新該斷電未更新時間。The storage device of claim 1, wherein the anti-gate flash memory further stores a system time, and when the access circuit receives a system standby command, the access circuit records the current system. The time is used as a first time stamp. When the access circuit receives a second time stamp for updating the system time, the power failure unupdated time is updated according to a time difference between the first time stamp and the second time stamp. 如申請專利範圍第2項所述的儲存裝置,其中該存取電路透過一快閃轉換層(Flash Translation Layer, FTL)記錄該第一時間標記、該通電未更新時間及該斷電未更新時間。The storage device of claim 2, wherein the access circuit records the first time stamp, the power-on-update time, and the power-off unupdated time through a Flash Translation Layer (FTL) . 如申請專利範圍第2項所述的儲存裝置,其中該存取電路將該斷電未更新時間的一原始時間加上該時間差後替換該斷電未更新時間。The storage device of claim 2, wherein the access circuit replaces the power-off unupdated time by adding the time difference to an original time of the power-off unupdated time. 如申請專利範圍第1項所述的儲存裝置,其中該通電未更新時間與該斷電未更新時間的總和時間越長,該第一資料的該讀取電壓越低。The storage device of claim 1, wherein the longer the sum of the power-on-update time and the power-off time is, the lower the read voltage of the first data. 一種儲存裝置的讀取電壓設定方法,包括: 透過一存取電路記錄儲存於一反及閘快閃記憶體的一第一資料的一通電未更新時間及一斷電未更新時間;以及 透過該存取電路依據該通電未更新時間及該斷電未更新時間決定該第一資料的一讀取電壓。A method for setting a read voltage of a storage device includes: recording, by an access circuit, a power-on unupdated time and a power-off unupdated time of a first data stored in a flash memory; and The access circuit determines a read voltage of the first data according to the power-on-update time and the power-off time. 如申請專利範圍第6項所述的儲存裝置的讀取電壓設定方法,其中該反及閘快閃記憶體更儲存一系統時間,並且該讀取電壓設定方法更包括: 當該存取電路接收到一系統待機命令時,透過該存取電路記載當下的該系統時間作為一第一時間標記;以及 當該存取電路接收到更新該系統時間的一第二時間標記時,透過該存取電路依據該第一時間標記與該第二時間標記的一時間差更新該斷電未更新時間。The method for setting a read voltage of the storage device according to claim 6, wherein the anti-gate flash memory further stores a system time, and the read voltage setting method further comprises: when the access circuit receives When the system standby command is issued, the current system time is recorded as a first time stamp through the access circuit; and when the access circuit receives a second time stamp for updating the system time, the access circuit is transmitted through the access circuit And updating the power failure unupdated time according to a time difference between the first time stamp and the second time stamp. 如申請專利範圍第7項所述的儲存裝置的讀取電壓設定方法,其中該存取電路透過一快閃轉換層(Flash Translation Layer, FTL)記錄該第一時間標記、該通電未更新時間及該斷電未更新時間。The method for setting a read voltage of a storage device according to claim 7, wherein the access circuit records the first time stamp, the power-on-update time, and a flash translation layer (FTL) The power failure has not been updated. 如申請專利範圍第7項所述的儲存裝置的讀取電壓設定方法,其中透過該存取電路依據該第一時間標記與該第二時間標記的一時間差更新該斷電未更新時間的步驟包括: 透過該存取電路將該斷電未更新時間的一原始時間加上該時間差後替換該斷電未更新時間。The method for setting a read voltage of a storage device according to claim 7, wherein the step of updating the power-off unupdated time by the access circuit according to a time difference between the first time stamp and the second time stamp comprises: And replacing, by the access circuit, an original time of the power-off unupdated time by the time difference and replacing the power-off unupdated time. 如申請專利範圍第6項所述的儲存裝置的讀取電壓設定方法,其中該通電未更新時間與該斷電未更新時間的總和時間越長,該第一資料的該讀取電壓越低。The method for setting a read voltage of a storage device according to claim 6, wherein the longer the sum of the power-on-update time and the power-off time is, the lower the read voltage of the first data.
TW105141713A 2016-12-16 2016-12-16 Storage device and method for setting reading voltage thereof TW201824263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105141713A TW201824263A (en) 2016-12-16 2016-12-16 Storage device and method for setting reading voltage thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105141713A TW201824263A (en) 2016-12-16 2016-12-16 Storage device and method for setting reading voltage thereof

Publications (1)

Publication Number Publication Date
TW201824263A true TW201824263A (en) 2018-07-01

Family

ID=63640146

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105141713A TW201824263A (en) 2016-12-16 2016-12-16 Storage device and method for setting reading voltage thereof

Country Status (1)

Country Link
TW (1) TW201824263A (en)

Similar Documents

Publication Publication Date Title
US8452913B2 (en) Semiconductor memory device and method of processing data for erase operation of semiconductor memory device
US7663933B2 (en) Memory controller
JP5478855B2 (en) Nonvolatile memory control method and semiconductor device
KR101103110B1 (en) Memory system
US20150178001A1 (en) Data Storage Device and Data Maintenance Method Thereof
JPWO2009001519A1 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, ACCESS DEVICE, AND NONVOLATILE STORAGE SYSTEM
JPWO2009096180A1 (en) MEMORY CONTROLLER, NONVOLATILE STORAGE DEVICE, AND NONVOLATILE STORAGE SYSTEM
JP2009211215A (en) Memory system
JP2012128545A (en) Memory controller and data recording apparatus
US8583858B2 (en) Nonvolatile memory controller and nonvolatile storage device
KR100866626B1 (en) Nonvolatile memory device including spare array and block erasing method in the same
JP5494086B2 (en) Nonvolatile storage device and nonvolatile memory controller
JP2008251154A (en) Nonvolatile semiconductor memory device
TW201709207A (en) Access method of flash memory and associated memory controller and electronic device
TW201824263A (en) Storage device and method for setting reading voltage thereof
US20130326123A1 (en) Memory management device and method, and program
CN110083496B (en) Power-down time estimation method and device of nonvolatile storage device
JP4818453B1 (en) Electronic device and data reading method
JP2005316793A (en) Flash memory system and control method of flash memory
JP4551938B2 (en) Memory system
JP6329185B2 (en) Memory control circuit, memory control system, memory control method, and memory control program
JP2009211202A (en) Memory system
JP3934659B1 (en) Memory controller and flash memory system
JP2006048746A (en) Memory card
JP2011159138A (en) Storage device and method of controlling the same