TW201546809A - The method of prevent write time degradation for non-volatile bits long-term cycling - Google Patents

The method of prevent write time degradation for non-volatile bits long-term cycling Download PDF

Info

Publication number
TW201546809A
TW201546809A TW103120178A TW103120178A TW201546809A TW 201546809 A TW201546809 A TW 201546809A TW 103120178 A TW103120178 A TW 103120178A TW 103120178 A TW103120178 A TW 103120178A TW 201546809 A TW201546809 A TW 201546809A
Authority
TW
Taiwan
Prior art keywords
volatile
state register
state
flag
time
Prior art date
Application number
TW103120178A
Other languages
Chinese (zh)
Other versions
TWI539461B (en
Inventor
Chih-Hao Chen
Original Assignee
Elite Semiconductor Esmt
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 Elite Semiconductor Esmt filed Critical Elite Semiconductor Esmt
Priority to TW103120178A priority Critical patent/TWI539461B/en
Publication of TW201546809A publication Critical patent/TW201546809A/en
Application granted granted Critical
Publication of TWI539461B publication Critical patent/TWI539461B/en

Links

Landscapes

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

Abstract

The present disclosure provides a method of prevent write time degradation for non-volatile bits long-term cycling. The method comprises setting a first non-volatile status register and at least a corresponding second non-volatile status register; determining whether the erase time of the first non-volatile status register exceeds a upper limit time in the erase phase of the write/erase cycle; replacing the first non-volatile status register by the second non-volatile status register to be accessed in the next write/erase cycle; wherein the first non-volatile status register and the second non-volatile status register are the flash cells. Accordingly, the life time of the non-volatile cells in array could be extended.

Description

對長期循環的非揮發性位元的防止寫入時間退化的方法 Method for preventing write time degradation of long-term non-volatile cells

本發明有關於一種狀態暫存器,且特別是一種應用於狀態暫存器的對長期循環的非揮發性位元的防止寫入時間退化的方法。 The present invention relates to a state register, and more particularly to a method for preventing write time degradation of non-volatile bits of a long-term cycle applied to a state register.

非揮發性記憶體如快閃記憶體(Flash)常被用於電子裝置的記憶元件用以儲存韌體或資料。通常而言,對於非揮發性記憶體的存取定制有相關的指令與指令格式。依據非揮發性記憶體的型號,指令格式可能不相同,且對於非揮發性記憶體的讀取時間、寫入時間、讀取電壓、寫入電壓等都有所規範。 Non-volatile memory such as flash memory is often used in memory elements of electronic devices for storing firmware or data. In general, access to non-volatile memory is customized with associated instruction and instruction formats. Depending on the model of the non-volatile memory, the command format may be different, and the read time, write time, read voltage, write voltage, etc. of the non-volatile memory are specified.

然而,如快閃記憶體等非揮發性記憶體,其每一個記憶細胞(cell)經過長期循環使用可能產生退化的現象,而使寫入(或抹除)的時間增加。當寫入(或抹除)時間增加超過規格時,可能使得所使用的記憶細胞無法被正常的寫入(或抹除),對此記憶細胞的存取失效,而使得此記憶細胞失去功能。 However, in non-volatile memory such as flash memory, each memory cell may undergo degradation after long-term recycling, and the time for writing (or erasing) is increased. When the writing (or erasing) time increases beyond the specification, the memory cells used may not be normally written (or erased), and the access to the memory cells is disabled, and the memory cells are rendered unfunctioning.

傳統上,為了解決快閃記憶體的記憶細胞退化的問題,可以針對每一個記憶細胞使用長通道(channel length)或減少位元線的編程電壓。或者,為了彌補長期循環使用所造成的退化現象,可使用較高的抹除電壓、較強的抹除電場、更多的抹除步驟或者設計具有更低臨界電壓(Vt)的狀態暫存器。然而,抹除電壓的設定受限於位元狀態”1”的電壓限制,抹除電場的大小與抹除步驟的次數 受限於裝置本身的崩潰限制(breakdown constraint),且狀態暫存器的臨界電壓會影響對於資料的記憶能力。因此,如何防止非揮發性記憶體長期循環使用而造成的退化與延長非揮發性記憶體的使用壽命是本技術領域人員研究的方向。 Traditionally, in order to solve the problem of memory cell degradation in flash memory, a channel length or a programming voltage of a bit line can be used for each memory cell. Alternatively, to compensate for the degradation caused by long-term cycling, a higher erase voltage, a stronger erase field, more erase steps, or a state register with a lower threshold voltage (Vt) can be used. . However, the setting of the erase voltage is limited by the voltage limit of the bit state "1", the magnitude of the erase electric field and the number of erase steps Limited by the device's own breakdown constraint, and the threshold voltage of the state register affects the ability to remember data. Therefore, how to prevent the degradation caused by long-term recycling of non-volatile memory and prolong the service life of non-volatile memory are the research directions of those skilled in the art.

本發明實施例提供一種對長期循環的非揮發性位元的防止寫入時間退化的方法,應用於具有迷你陣列的非揮發性細胞陣列,以延長非揮發性細胞陣列的使用壽命。 Embodiments of the present invention provide a method for preventing write time degradation of long-term circulating non-volatile cells, applied to a non-volatile cell array having a mini array to extend the lifetime of a non-volatile cell array.

本發明實施例提供一種對長期循環的非揮發性位元的防止寫入時間退化的方法,該方法包括以下步驟。首先,設置第一非揮發性狀態暫存器以及對應的至少一第二非揮發性狀態暫存器。然後,在抹寫循環之抹除階段內判斷第一非揮發性狀態暫存器的抹除時間是否超過上限時間。當第一非揮發性狀態暫存器的抹除時間超過上限時間時,在下一該抹寫循環時使第二非揮發性狀態暫存器替代第一非揮發性狀態暫存器進行存取。其中,第一非揮發性狀態暫存器與第二非揮發性狀態暫存器是快閃細胞(flash cell)。 Embodiments of the present invention provide a method for preventing write time degradation of a non-volatile bit of a long-term cycle, the method comprising the following steps. First, a first non-volatile state register and a corresponding at least one second non-volatile state register are provided. Then, it is determined whether the erasing time of the first non-volatile state register exceeds the upper limit time during the erasing phase of the erasing cycle. When the erasing time of the first non-volatile state register exceeds the upper limit time, the second non-volatile state register is accessed in place of the first non-volatile state register at the next strobe cycle. The first non-volatile state register and the second non-volatile state register are flash cells.

綜上所述,本發明實施例提供一種對長期循環的非揮發性位元的防止寫入時間退化的方法,在所使用的非揮發性狀態暫存器的抹除時間超過上限時間時,改用替代的非揮發性狀態暫存器,以延長非揮發性細胞陣列的使用壽命。 In summary, the embodiments of the present invention provide a method for preventing write time degradation of a non-volatile bit in a long-term cycle. When the erasing time of the non-volatile state register used exceeds the upper limit time, Use an alternative non-volatile state register to extend the life of the non-volatile cell array.

為使能更進一步瞭解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明與附圖,但是此等說明與所附圖式僅係用來說明本發明,而非對本發明的權利範圍作任何的限制。 The detailed description of the present invention and the accompanying drawings are to be understood by the claims The scope is subject to any restrictions.

S100、S110、S120、S130、S200、S210、S220、S101、S111、S112、S113、S114、S115、S116、S120a、S120b、S131、S132、S133、S134、S140、S310、S320、S330、S340、S350、S360‧‧‧步驟流程 S100, S110, S120, S130, S200, S210, S220, S101, S111, S112, S113, S114, S115, S116, S120a, S120b, S131, S132, S133, S134, S140, S310, S320, S330, S340, S350, S360‧‧‧ step process

NVBSEL1‧‧‧第一非揮發性旗標 NVBSEL1‧‧‧ first non-volatile flag

NVBSEL2‧‧‧第二非揮發性旗標 NVBSEL2‧‧‧ second non-volatile flag

圖1是本發明實施例提供的對狀態暫存器進行寫入指令的流程圖。 FIG. 1 is a flowchart of a write command to a state register according to an embodiment of the present invention.

圖2是本發明實施例提供的寫入狀態暫存器的各位元代表狀 態的示意圖。 2 is a representation of each element of a write state register provided by an embodiment of the present invention; Schematic diagram of the state.

圖3是本發明實施例提供的對長期循環的非揮發性位元的防止寫入時間退化的方法的流程圖。 FIG. 3 is a flowchart of a method for preventing write time degradation of a non-volatile bit of a long-term cycle according to an embodiment of the present invention.

圖4是圖3的方法應用於寫入狀態暫存器的流程圖。 4 is a flow diagram of the method of FIG. 3 applied to a write status register.

圖5是本發明實施例提供的對狀態暫存器進行讀取的流程圖。 FIG. 5 is a flowchart of reading a state register according to an embodiment of the present invention.

〔對長期循環的非揮發性位元的防止寫入時間退化的方法之實施例〕 [Embodiment of Method for Preventing Degradation of Write Time for Non-Volatile Bits of Long-Term Circulation]

本實施例所提供的對長期循環的非揮發性位元的防止寫入時間退化的方法,其可針對頻繁的讀取非揮發性記憶體的情況下,延長非揮發性記憶裝置的使用壽命。例如:當設計每一個記憶細胞的寫入(或抹除)時間由一開始的少於規範的40毫秒時,使在每十秒鐘存取狀態暫存器三次的情況下,讓記憶細胞可以保證十年內的操作寫入(或抹除)時間少於70毫秒。 The method for preventing write time degradation of long-term circulating non-volatile cells provided by this embodiment can extend the service life of the non-volatile memory device for frequent reading of non-volatile memory. For example, when designing the write (or erase) time of each memory cell from the beginning to less than the specification of 40 milliseconds, so that the memory cell can be accessed three times every ten seconds. Ensure that the write (or erase) time for operations within ten years is less than 70 milliseconds.

本實施例的方法應用於狀態暫存器的記憶細胞,在說明本實施例的方法以前,先敘述寫入狀態暫存器的方式。狀態暫存器(status register)可具有多個位元,每一各位元連接至一個位元線(bit line),且所有位元接連接制一條字線(word line)。請參照圖1,圖1是本發明實施例提供的對狀態暫存器進行寫入指令的流程圖。一般而言,在對狀態暫存器進行寫入指令時,一個抹寫循環包括預先編程(pre-program)階段、抹除(erase)階段、編程(program)階段與重置(reset)階段。首先在步驟S100中,進行預編程階段。接著,在步驟S110中,進行抹除階段。然後,在步驟S120中,進行編程階段。最後,在步驟S130中,進行重置階段。 The method of this embodiment is applied to the memory cells of the state register. Before the method of the embodiment is described, the manner of writing the state register will be described. The status register may have a plurality of bits, each bit connected to a bit line, and all bits are connected to form a word line. Please refer to FIG. 1. FIG. 1 is a flowchart of a write command to a state register according to an embodiment of the present invention. In general, a write cycle includes a pre-program phase, an erase phase, a program phase, and a reset phase when a write command is issued to the state register. First in step S100, a pre-programming phase is performed. Next, in step S110, an erasing phase is performed. Then, in step S120, a programming phase is performed. Finally, in step S130, a reset phase is performed.

請參照圖2,圖2是本發明實施例提供的寫入狀態暫存器的各位元代表狀態的示意圖。第一非揮發性狀態暫存器與第二非揮發性狀態暫存器分別具有複數個非揮發性位元,所述非揮發性位元 少於或等於十位元,以形成迷你陣列(mini-array)。 Please refer to FIG. 2. FIG. 2 is a schematic diagram showing the state of each element of the write state register provided by the embodiment of the present invention. The first non-volatile state register and the second non-volatile state register respectively have a plurality of non-volatile bits, and the non-volatile bits Less than or equal to ten bits to form a mini-array.

請參照圖2,圖2是本發明實施例提供的寫入狀態暫存器的各位元代表狀態的示意圖。本實施例所述的寫入狀態暫存器的各位元代表狀態僅用以舉例說明,並非用以限定本發明。本技術領域具有通常知識可以依據記憶體的規格規範與相關的習知技術更改狀態暫存器的位元術或各代表狀態。依據圖2所示,本實施例的第一非揮發性狀態暫存器與第二非揮發性狀態暫存器可例如皆具有六個非揮發性位元與兩個揮發性位元。所述六個非揮發性位元分別是第七位元(bit7,以SWRD表示)、第六位元(bit6,以QE表示)、第五位元(bit5,以BP3表示)、第四位元(bit4,以BP2表示)、第三位元(bit3,以BP1表示)與第二位元(bit2,以BP0表示)。第七位元代表狀態暫存器為硬體寫入防止(Status Register Write Protect,SWRD)的狀態。第六位元代表允許複數個腳位(例如四個腳位)輸入的狀態的。第五位元(BP3)、第四位元(BP2)、第三位元(BP1)與第二位元(PB0)此四個位元例如用以定義當未具有硬體寫入防止時記憶體被保護的區域,以對應於防止頁編程(Page Program,PP)、區段抹除(Sector Erase,SE)、區塊抹除(Block Erase,BE)、晶片抹除(Chip Erase,CE)指令。而兩個揮發性位元包括以WEL代表的第一位元與以WIP代表的第零位元。第一位元是寫入允許栓鎖(Write Enable Latch,WEL)位元,用以代表此非揮發性記憶體細胞是否可允許編程/抹除/寫入狀態暫存器指令。而地靈位元是寫入處理(Write in Progess,WIP)位元,代表該揮發性記憶體細胞是否正在處理的編程/抹除/寫入狀態暫存器指令的程序。 Please refer to FIG. 2. FIG. 2 is a schematic diagram showing the state of each element of the write state register provided by the embodiment of the present invention. The state of each element of the write state register described in this embodiment is for illustrative purposes only and is not intended to limit the present invention. It is common knowledge in the art to modify the bit or the representative state of the state register in accordance with the specification of the memory and related prior art techniques. According to FIG. 2, the first non-volatile state register and the second non-volatile state register of the embodiment may have, for example, six non-volatile bits and two volatile bits. The six non-volatile bits are a seventh bit (bit 7, represented by SWRD), a sixth bit (bit 6 , represented by QE), a fifth bit (bit 5, represented by BP3), and a fourth bit. The element (bit4, represented by BP2), the third bit (bit3, represented by BP1), and the second bit (bit2, represented by BP0). The seventh bit represents the state of the Status Register Write Protect (SWRD). The sixth bit represents the state in which a plurality of pins (e.g., four pins) are allowed to be input. The fifth bit (BP3), the fourth bit (BP2), the third bit (BP1), and the second bit (PB0), for example, are used to define a memory when there is no hardware write prevention. The protected area corresponds to Page Program (PP), Sector Erase (SE), Block Erase (BE), Chip Erase (CE) instruction. The two volatile bits include the first bit represented by WEL and the zeroth bit represented by WIP. The first bit is the Write Enable Latch (WEL) bit to indicate whether the non-volatile memory cell can allow programming/erase/write status register instructions. The feature bit is a Write in Progess (WIP) bit that represents the program of the program/erase/write state register instruction that the volatile memory cell is processing.

本實施例的方法主要是對所使用的非揮發性狀態暫存器設定對應的旗標(flag),以在一個抹寫循環之抹除階段、編程階段或重置階段內依據旗標的設定而對對應的非揮發性狀態暫存器進行抹寫。請參照圖3,圖3是本發明實施例提供的對長期循環的非揮發性位元的防止寫入時間退化的方法的流程圖。首先,在步驟 S200,設置第一非揮發性狀態暫存器以及對應的至少一第二非揮發性狀態暫存器。然後,在步驟S210,在抹寫循環之抹除階段內判斷第一非揮發性狀態暫存器的抹除時間是否超過上限時間。所述上限時間例如為70毫秒,但本發明並不因此限定。本技術領域具有通常知識者可以依據需要而設定所述上限時間。當第一非揮發性狀態暫存器的抹除時間超過上限時間時,此時代表此第一非揮發性狀態暫存器已經退化而不敷使用,此時則進行步驟S220,在下一該抹寫循環時使第二非揮發性狀態暫存器替代第一非揮發性狀態暫存器進行存取。其中,第一非揮發性狀態暫存器與第二非揮發性狀態暫存器是快閃細胞(flash cell)。當第一非揮發性狀態暫存器的抹除時間非超過上限時間時,則在下一循環時再次進行步驟S210。 The method of this embodiment mainly sets a corresponding flag for the non-volatile state register to be used, according to the setting of the flag in the erasing phase, the programming phase or the reset phase of an erasing cycle. Wipe the corresponding non-volatile state register. Please refer to FIG. 3. FIG. 3 is a flowchart of a method for preventing write time degradation of a non-volatile bit of a long-term cycle according to an embodiment of the present invention. First, at the step S200. Set a first non-volatile state register and a corresponding at least one second non-volatile state register. Then, in step S210, it is determined whether the erasing time of the first non-volatile state register exceeds the upper limit time in the erasing phase of the erasing cycle. The upper limit time is, for example, 70 milliseconds, but the present invention is not limited thereto. Those skilled in the art can set the upper limit time as needed. When the erasing time of the first non-volatile state register exceeds the upper limit time, the first non-volatile state register is degraded and used at this time, and then step S220 is performed, and the next step is performed. The second non-volatile state register is accessed by the second non-volatile state register instead of the first non-volatile state register. The first non-volatile state register and the second non-volatile state register are flash cells. When the erasing time of the first non-volatile state register does not exceed the upper limit time, step S210 is performed again in the next cycle.

換句話說,上述的第一非揮發性狀態暫存器是非揮發性記憶體初始使用時所用的暫存器,而第二非揮發性狀態暫存器是當第一非揮發性狀態暫存器退化時的替補的狀態暫存器。一個記憶體裝置可以具有複數個第一非揮發性狀態暫存器與複數個第二非揮發性狀態暫存器。每一個第一非揮發性狀態暫存器可以對應至少一個第二非揮發性狀態暫存器,以作替補之用。同時,可利用旗標的設定,以依據旗標而對應的對未退化的狀態暫存器進行抹寫的指令。 In other words, the first non-volatile state register is the register used when the non-volatile memory is initially used, and the second non-volatile state register is the first non-volatile state register. The status register of the substitute when degraded. A memory device can have a plurality of first non-volatile state registers and a plurality of second non-volatile state registers. Each of the first non-volatile state registers may correspond to at least one second non-volatile state register for use as a substitute. At the same time, the flag setting can be used to dictate the undegraded state register according to the flag.

詳細的對狀態暫存器進行寫入指令的動作請參照圖4的流程圖。請同時參照圖1與圖4,步驟S101是對應於圖1的預編程階段,步驟S111、S112、S113、S114、S115、S116是對應於圖1的抹除階段。步驟S120a與步驟S120b是對應於圖1的編程階段。步驟S131、S132、S133、S134是對應於圖1的重置階段。 For details of the operation of writing a command to the status register, refer to the flowchart of FIG. Referring to FIG. 1 and FIG. 4 simultaneously, step S101 corresponds to the pre-programming phase of FIG. 1, and steps S111, S112, S113, S114, S115, and S116 correspond to the erasing phase of FIG. Steps S120a and S120b correspond to the programming phase of FIG. Steps S131, S132, S133, and S134 correspond to the reset phase of FIG.

首先,在步驟S101中執行預編程。然後,在步驟S111中,判斷第一非揮發性旗標與第二非揮發性旗標是否是第二狀態(“1”),其中第一狀態為”0”。例如:設定對應於第一非揮發性狀態 暫存器的第一非揮發性旗標NVBSEL1與對應第二非揮發性狀態暫存器的第二非揮發性旗標NVBSEL2為第一狀態(“0”)。當第一非揮發性狀態暫存器的抹除時間非超過上限時間時,設定第一非揮發性旗標NVBSEL1為第二狀態(“1”)。反之,當第一非揮發性狀態暫存器的抹除時間超過上限時間時,設定第二非揮發性旗標NVBSEL2為第二狀態(“1”)。也就是說,如圖4所示,當第一非揮發性旗標為第二狀態(NVBSEL1=“1”)時,進行步驟S112。當第二非揮發性旗標為第二狀態(NVBSEL2=“1”)時,進行步驟S116。在步驟S116中,對第二非揮發性狀態暫存器的字線進行抹除。 First, pre-programming is performed in step S101. Then, in step S111, it is determined whether the first non-volatile flag and the second non-volatile flag are the second state ("1"), wherein the first state is "0". For example: setting corresponds to the first non-volatile state The first non-volatile flag NVBSEL1 of the register and the second non-volatile flag NVBSEL2 corresponding to the second non-volatile state register are in a first state ("0"). When the erasing time of the first non-volatile state register does not exceed the upper limit time, the first non-volatile flag NVBSEL1 is set to the second state ("1"). On the other hand, when the erasing time of the first non-volatile state register exceeds the upper limit time, the second non-volatile flag NVBSEL2 is set to the second state ("1"). That is, as shown in FIG. 4, when the first non-volatile flag is in the second state (NVBSEL1 = "1"), step S112 is performed. When the second non-volatile flag is in the second state (NVBSEL2 = "1"), step S116 is performed. In step S116, the word line of the second non-volatile state register is erased.

在步驟S112中,對第一非揮發性狀態暫存器的字線進行抹除。在本實施例中,在抹除階段可利用複數個抹除脈衝對第一非揮發性狀態暫存器進行抹除。例如:每一個抹除脈衝寬度可以為4毫秒,但本發明並不因此限定。接著,在步驟S113中,判斷利用抹除脈衝對第一非揮發性狀態暫存器完成抹除的抹除次數是否大於或等於預定次數(例如15次)。所述抹除脈衝寬度乘以抹除次數等於抹除時間,例如:衝寬度40毫秒乘以抹除次數15次等於60毫秒。假設設定抹除時間超過60毫秒則將該狀態暫存器是為已退化,則預定次數設定為15次,若抹除次數少於15次,則進行步驟S114,設定暫存參數TO70MS=0,以代表第一非揮發性狀態暫存器仍可以繼續使用。若抹除次數達到15次(或超過15次),則進行步驟S115,設定暫存參數TO70MS=1,以代表須改用第二非揮發性狀態暫存器以替代第一非揮發性狀態暫存器。換句話說,當抹除次數大於或等於預定次數時,設定暫存參數TO70MS,以使暫存參數對應於第一非揮發性狀態暫存器,以使在編程階段對第一非揮發性狀態暫存器進行編程。當抹除次數小預定次數時,設定暫存參數TO70MS,以使暫存參數對應於該第二非揮發性狀態暫存器,以使在編程階段對第二非揮發性狀態暫存器進行編程。 In step S112, the word line of the first non-volatile state register is erased. In this embodiment, the first non-volatile state register can be erased by a plurality of erase pulses during the erase phase. For example, each erase pulse width may be 4 milliseconds, but the invention is not limited thereto. Next, in step S113, it is determined whether the number of erasures for erasing the first non-volatile state register by the erase pulse is greater than or equal to a predetermined number of times (for example, 15 times). The erase pulse width multiplied by the erase count is equal to the erase time, for example, the punch width is 40 milliseconds multiplied by the erase count 15 times equal to 60 milliseconds. Assuming that the erasing time exceeds 60 milliseconds, the state register is degraded, and the predetermined number of times is set to 15 times. If the number of erasing times is less than 15 times, step S114 is performed to set the temporary storage parameter TO70MS=0. It can still be used to represent the first non-volatile state register. If the number of erasures reaches 15 times (or exceeds 15 times), then step S115 is performed to set the temporary storage parameter TO70MS=1, so as to replace the first non-volatile state register with the second non-volatile state register. Save. In other words, when the number of erasures is greater than or equal to the predetermined number of times, the temporary storage parameter TO70MS is set such that the temporary storage parameter corresponds to the first non-volatile state register, so that the first non-volatile state is in the programming phase. The scratchpad is programmed. When the erasing frequency is small for a predetermined number of times, the temporary storage parameter TO70MS is set such that the temporary storage parameter corresponds to the second non-volatile state register, so that the second non-volatile state register is programmed during the programming phase. .

接著在編程階段,當步驟S114被執行之後,進行步驟S120a。 在步驟S120a中,對第一非揮發性狀態暫存器的字線與第一非揮發性旗標NVBSEL1進行編程。當步驟S115被執行之後,進行步驟S120b,在步驟S120b中,對第二非揮發性狀態暫存器的字線與第二非揮發性旗標NVBSEL2進行編程。 Next, in the programming phase, after step S114 is performed, step S120a is performed. In step S120a, the word line of the first non-volatile state register is programmed with the first non-volatile flag NVBSEL1. After step S115 is performed, step S120b is performed. In step S120b, the word line of the second non-volatile state register and the second non-volatile flag NVBSEL2 are programmed.

在步驟S120a或步驟S120b結束之後,接著在高壓重置階段進行步驟S131,讀取非揮發性旗標(NVBSEL1或NVBSEL2)。接著,進行步驟S132,判斷第一非揮發性旗標與第二非揮發性旗標是否是第二狀態(“1”),此步驟S132與步驟S111相同,用以選定對狀態暫存器重置的對象。當第一非揮發性旗標NVBSEL1=“1”時,進行步驟S133。當第二非揮發性旗標NVBSEL1=“1”時,進行步驟S134。在步驟S133中,讀取第一非揮發性狀態暫存器的字線。在步驟S134中,讀取第二非揮發性狀態暫存器的字線。最後,進行步驟S140,重置暫存參數TO70MS。換句話說,在重置階段判斷第一非揮發性旗標NVBSEL1與第二非揮發性旗標NVBSEL2是否是第二狀態(步驟S132)。當第一非揮發性旗標NVBSEL1是第二狀態,則對第一非揮發性狀態暫存器進行重置。當第二非揮發性旗標NVBSEL2是第二狀態,則對該第二非揮發性狀態暫存器進行重置。 After the end of step S120a or step S120b, step S131 is then performed in the high voltage reset phase to read the non-volatile flag (NVBSEL1 or NVBSEL2). Then, in step S132, it is determined whether the first non-volatile flag and the second non-volatile flag are in the second state ("1"), and the step S132 is the same as the step S111, and is used to select the state register to be heavy. Set the object. When the first non-volatile flag NVBSEL1 = "1", step S133 is performed. When the second non-volatile flag NVBSEL1 = "1", step S134 is performed. In step S133, the word line of the first non-volatile state register is read. In step S134, the word line of the second non-volatile state register is read. Finally, step S140 is performed to reset the temporary storage parameter TO70MS. In other words, it is judged whether or not the first non-volatile flag NVBSEL1 and the second non-volatile flag NVBSEL2 are in the second state in the reset phase (step S132). When the first non-volatile flag NVBSEL1 is in the second state, the first non-volatile state register is reset. When the second non-volatile flag NVBSEL2 is in the second state, the second non-volatile state register is reset.

圖4的非揮發性旗標(NVBSEL1或NVBSEL2)是以單一位元表示,然而在其他實施例中,所述非揮發性旗標也可以多個位元編碼表示。例如在一實施例中,當四個第二非揮發性暫存器對應一個第一非揮發性暫存器時,設定非揮發性旗標NVBSEL為四位元編碼的第一狀態(0000),所述第一狀態(0000)對應於第一非揮發性狀態暫存器。當第一非揮發性狀態暫存器的抹除時間超過上限時間時,設定非揮發性旗標NVBSEL為第二狀態(0001、0010、0100或1000),第二狀態(0001、0010、0100或1000)對應於第二非揮發性暫存器(的其中一個)。當第一非揮發性狀態暫存器的抹除時間非超過上限時間時,維持非揮發性旗標NVBSEL為第一狀態(0000)。 然而,本發明並不限定非揮發性旗標的編碼與位元數,依據第一非揮發性暫存器與第二非揮發性暫存器的對應數目的,非揮發性旗標的編碼與位元數可能不相同。值得一提的是,在此實施例的情況下,圖4的步驟S111可以替換為,判斷非揮發性旗標NVBSEL是第一狀態或第二狀態,第一狀態對應於第一非揮發性狀態暫存器,第二狀態對應於第二非揮發性狀態暫存器。當非揮發性旗標NVBSEL是第一狀態,則進行判斷第一非揮發性狀態暫存器的抹除時間是否超過上限時間的步驟(步驟S113,與對應的步驟S112、S114、S115)。當非揮發性旗標NVBSEL是第二狀態,則對第二非揮發性狀態暫存器進行抹除(步驟S116)。另外,在重置階段,則步驟S132替換為,判斷非揮發性旗標NVBSEL是第一狀態或第二狀態。當非揮發性旗標NVBSEL是第一狀態,則對第一非揮發性狀態暫存器進行重置(對應於重置階段的步驟S133)。當非揮發性旗標NVBSEL是第二狀態,則對第二非揮發性狀態暫存器進行重置(對應於重置階段的步驟S134)。 The non-volatile flag (NVBSEL1 or NVBSEL2) of Figure 4 is represented by a single bit, however in other embodiments, the non-volatile flag may also be represented by a plurality of bit codes. For example, in an embodiment, when the four second non-volatile registers correspond to a first non-volatile register, the non-volatile flag NVBSEL is set to a first state (0000) of four-bit encoding, The first state (0000) corresponds to a first non-volatile state register. When the erasing time of the first non-volatile state register exceeds the upper limit time, the non-volatile flag NVBSEL is set to the second state (0001, 0010, 0100 or 1000), and the second state (0001, 0010, 0100 or 1000) corresponds to (one of the second non-volatile registers). When the erasing time of the first non-volatile state register does not exceed the upper limit time, the non-volatile flag NVBSEL is maintained in the first state (0000). However, the present invention does not limit the encoding and the number of bits of the non-volatile flag. According to the corresponding number of the first non-volatile register and the second non-volatile register, the encoding and the bit of the non-volatile flag The number may not be the same. It should be noted that, in the case of this embodiment, step S111 of FIG. 4 may be replaced by determining that the non-volatile flag NVBSEL is in the first state or the second state, and the first state corresponds to the first non-volatile state. The register, the second state corresponds to the second non-volatile state register. When the non-volatile flag NVBSEL is in the first state, a step of determining whether the erasing time of the first non-volatile state register exceeds the upper limit time is performed (step S113, and corresponding steps S112, S114, S115). When the non-volatile flag NVBSEL is in the second state, the second non-volatile state register is erased (step S116). In addition, in the reset phase, step S132 is replaced with determining that the non-volatile flag NVBSEL is the first state or the second state. When the non-volatile flag NVBSEL is in the first state, the first non-volatile state register is reset (corresponding to step S133 of the reset phase). When the non-volatile flag NVBSEL is in the second state, the second non-volatile state register is reset (corresponding to step S134 of the reset phase).

接著,當對狀態暫存器進行讀取時,本發明實施例提供圖5的流程圖,以對應圖4的寫入流程。在圖5中,首先進行步驟S310,供電。接著,在步驟S320中,(供電讀取階段一)讀取非揮發性旗標(NVBSEL或者NVBSEL1和NVBSEL2)。接著,在步驟S330中,判斷第一非揮發性旗標與第二非揮發性旗標是否是第二狀態(“1”)。所述步驟S330與圖4的步驟S111和S132相同,用以判斷要讀取的狀態暫存器。例如:在設定對應於第一非揮發性狀態暫存器的第一非揮發性旗標NVBSEL1與對應第二非揮發性狀態暫存器的第二非揮發性旗標NVBSEL2的情況下,且當第一非揮發性旗標NVBSEL1=“1”時,進行步驟S340。當第二非揮發性旗標NVBSEL2=“1”時,進行步驟S350。在步驟S340中,(供電讀取階段二)讀取第一非揮發性狀態暫存器的字線。在步驟S350中,(供電讀取階段二)讀取第二非揮發性狀態暫存器的字線。最後,讀取 完畢進行步驟S260的待命指令。 Then, when the state register is read, the embodiment of the present invention provides the flowchart of FIG. 5 to correspond to the writing process of FIG. 4. In FIG. 5, step S310 is first performed to supply power. Next, in step S320, the non-volatile flag (NVBSEL or NVBSEL1 and NVBSEL2) is read (power supply read phase one). Next, in step S330, it is determined whether the first non-volatile flag and the second non-volatile flag are in the second state ("1"). The step S330 is the same as steps S111 and S132 of FIG. 4 for determining the status register to be read. For example, in the case of setting the first non-volatile flag NVBSEL1 corresponding to the first non-volatile state register and the second non-volatile flag NVBSEL2 corresponding to the second non-volatile state register, and when When the first non-volatile flag NVBSEL1 = "1", step S340 is performed. When the second non-volatile flag NVBSEL2 = "1", step S350 is performed. In step S340, (power supply read phase two) reads the word line of the first non-volatile state register. In step S350, (the power supply reading phase 2) reads the word line of the second non-volatile state register. Finally, read The standby command of step S260 is completed.

〔實施例的可能功效〕 [Possible effects of the examples]

綜上所述,本發明實施例所提供的對長期循環的非揮發性位元的防止寫入時間退化的方法,在所使用的非揮發性狀態暫存器的抹除時間超過上限時間時,改用替代的非揮發性狀態暫存器,以延長非揮發性細胞陣列的使用壽命。本發明實施例可利用非揮發性旗標以便利地判斷所用的非揮發性狀態暫存器是否已退化,並據以選擇替代的非揮發性狀態暫存器。 In summary, the method for preventing the write time degradation of the non-volatile bit of the long-term cycle provided by the embodiment of the present invention, when the erasing time of the non-volatile state register used exceeds the upper limit time, Switch to an alternative non-volatile state register to extend the life of non-volatile cell arrays. Embodiments of the present invention may utilize non-volatile flags to conveniently determine whether the non-volatile state register used has degraded and thereby select an alternate non-volatile state register.

以上所述僅為本發明之實施例,其並非用以侷限本發明之專利範圍。 The above description is only an embodiment of the present invention, and is not intended to limit the scope of the invention.

S101、S111、S112、S113、S114、S115、S116、S120a、S120b、S131、S132、S133、S134、S140‧‧‧步驟流程 S101, S111, S112, S113, S114, S115, S116, S120a, S120b, S131, S132, S133, S134, S140‧‧

NVBSEL1‧‧‧第一非揮發性旗標 NVBSEL1‧‧‧ first non-volatile flag

NVBSEL2‧‧‧第二非揮發性旗標 NVBSEL2‧‧‧ second non-volatile flag

Claims (13)

一種對長期循環的非揮發性位元的防止寫入時間退化的方法,該方法包括:設置一第一非揮發性狀態暫存器以及對應的至少一第二非揮發性狀態暫存器;在一抹寫循環之一抹除階段內判斷該第一非揮發性狀態暫存器的抹除時間是否超過一上限時間;以及當該第一非揮發性狀態暫存器的抹除時間超過該上限時間時,在下一該抹寫循環時使該第二非揮發性狀態暫存器替代該第一非揮發性狀態暫存器進行存取;其中,該第一非揮發性狀態暫存器與該第二非揮發性狀態暫存器是快閃細胞(flash cell)。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle, the method comprising: setting a first non-volatile state register and a corresponding at least one second non-volatile state register; Determining whether the erasing time of the first non-volatile state register exceeds an upper limit time in one erasing phase of a write cycle; and when the erasing time of the first non-volatile state register exceeds the upper limit time The second non-volatile state register is accessed in place of the first non-volatile state register in the next strobe cycle; wherein the first non-volatile state register and the second The non-volatile state register is a flash cell. 根據請求項第1項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中在判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟之前,設定對應於該第一非揮發性狀態暫存器的一第一非揮發性旗標與對應該第二非揮發性狀態暫存器的一第二非揮發性旗標為一第一狀態,且當該第一非揮發性狀態暫存器的抹除時間非超過該上限時間時,設定該第一非揮發性旗標為一第二狀態,當該第一非揮發性狀態暫存器的抹除時間超過該上限時間時,設定該第二非揮發性旗標為該第二狀態。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 1 of the claim, wherein before the step of determining whether the erasing time of the first non-volatile state register exceeds the upper limit time Setting a first non-volatile flag corresponding to the first non-volatile state register and a second non-volatile flag corresponding to the second non-volatile state register to a first state, And when the erasing time of the first non-volatile state register does not exceed the upper limit time, setting the first non-volatile flag to a second state, when the first non-volatile state register is When the erasing time exceeds the upper limit time, the second non-volatile flag is set to the second state. 根據請求項第1項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中在判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟之前,設定一非揮發性旗標為一第一狀態,該第一狀態對應於該第一非揮發性狀態暫存器,且當該第一非揮發性狀態暫存器的抹除時間超過該上限時間時,設定該非揮發性旗標為一第二狀態,該第二狀態對應於該第二非揮發性暫存器,當該第一非揮發性狀態暫存器的抹除時間非超過該上限時間時,維持該非揮發性旗標為該第一狀態。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 1 of the claim, wherein before the step of determining whether the erasing time of the first non-volatile state register exceeds the upper limit time Setting a non-volatile flag to a first state, the first state corresponding to the first non-volatile state register, and when the erasing time of the first non-volatile state register exceeds the upper limit Setting the non-volatile flag to a second state, the second state corresponding to the second non-volatile register, when the erasing time of the first non-volatile state register does not exceed the upper limit At time, the non-volatile flag is maintained in the first state. 根據請求項第2項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟之前,更包括:判斷該第一非揮發性旗標與該第二非揮發性旗標是否是該第二狀態;當該第一非揮發性旗標是該第二狀態,則進行判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟;以及當該第二非揮發性旗標是該第二狀態,則對該第二非揮發性狀態暫存器進行抹除。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 2 of the claim, wherein before the step of determining whether the erasing time of the first non-volatile state register exceeds the upper limit time, The method further includes: determining whether the first non-volatile flag and the second non-volatile flag are the second state; and when the first non-volatile flag is the second state, determining to determine the first non- Whether the erasing time of the volatile state register exceeds the upper limit time; and when the second non-volatile flag is the second state, erasing the second non-volatile state register. 根據請求項第3項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟之前,更包括:判斷該非揮發性旗標是該第一狀態或該第二狀態;當該非揮發性旗標是該第一狀態,則進行判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟;以及當該非揮發性旗標是該第二狀態,則對該第二非揮發性狀態暫存器進行抹除。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 3 of the claim, wherein before the step of determining whether the erasing time of the first non-volatile state register exceeds the upper limit time, The method further includes: determining whether the non-volatile flag is the first state or the second state; and when the non-volatile flag is the first state, determining whether the erasing time of the first non-volatile state register is a step of exceeding the upper limit time; and when the non-volatile flag is the second state, erasing the second non-volatile state register. 根據請求項第4項之對長期循環的非揮發性位元的防止寫入時間退化的方法,更包括:在該重置階段判斷該第一非揮發性旗標與該第二非揮發性旗標是否是該第二狀態;當該第一非揮發性旗標是該第二狀態,則對該第一非揮發性狀態暫存器進行重置;以及當該第二非揮發性旗標是該第二狀態,則對該第二非揮發性狀態暫存器進行重置。 The method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 4 of the claim further includes: determining the first non-volatile flag and the second non-volatile flag in the reset phase Whether the flag is the second state; when the first non-volatile flag is the second state, resetting the first non-volatile state register; and when the second non-volatile flag is In the second state, the second non-volatile state register is reset. 根據請求項第5項之對長期循環的非揮發性位元的防止寫入時間退化的方法,更包括: 在該重置階段判斷該非揮發性旗標是該第一狀態或該第二狀態;當該非揮發性旗標是該第一狀態,則對該第一非揮發性狀態暫存器進行重置;以及當該非揮發性旗標是該第二狀態,則對該第二非揮發性狀態暫存器進行重置。 The method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 5 of the claim further includes: Determining, in the resetting phase, the non-volatile flag is the first state or the second state; when the non-volatile flag is the first state, resetting the first non-volatile state register; And when the non-volatile flag is the second state, resetting the second non-volatile state register. 根據請求項第6項或第7項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中該第一非揮發性狀態暫存器與該第二非揮發性狀態暫存器分別具有複數個非揮發性位元,該些非揮發性位元少於或等於十位元。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 6 or Item 7 of the claim, wherein the first non-volatile state register and the second non-volatile state are temporarily stored Each of the devices has a plurality of non-volatile bits that are less than or equal to ten bits. 根據請求項第8項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中該第一非揮發性狀態暫存器與該第二非揮發性狀態暫存器皆具有六個非揮發性位元與兩個揮發性位元。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 8 of the claim, wherein the first non-volatile state register and the second non-volatile state register have six Non-volatile bits and two volatile bits. 根據請求項第1項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中該抹寫循環包括一預先編程階段、該抹除階段、一編程階段與一重置階段。 A method of preventing write time degradation of a long-term non-volatile bit according to claim 1 wherein the strobe cycle includes a pre-program phase, the erase phase, a programming phase, and a reset phase. 根據請求項第10項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中在該抹除階段利用複數個抹除脈衝對該第一非揮發性狀態暫存器進行抹除。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to claim 10, wherein the first non-volatile state register is wiped with a plurality of erase pulses during the erase phase except. 根據請求項第10項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中判斷該第一非揮發性狀態暫存器的抹除時間是否超過該上限時間的步驟包括:判斷利用一抹除脈衝對該第一非揮發性狀態暫存器完成抹除的抹除次數是否大於或等於一預定次數,其中該抹除脈衝寬度乘以該抹除次數等於該抹除時間。 The method for preventing write time degradation of a non-volatile bit of a long-term cycle according to claim 10, wherein the step of determining whether the erase time of the first non-volatile state register exceeds the upper limit time comprises: Determining whether the number of erasures for erasing the first non-volatile state register by a wipe pulse is greater than or equal to a predetermined number of times, wherein the erase pulse width multiplied by the erase count is equal to the erase time. 根據請求項第12項之對長期循環的非揮發性位元的防止寫入時間退化的方法,其中在判斷利用一抹除脈衝對該第一非揮發性狀態暫存器完成抹除的抹除次數是否大於或等於該預定次數的步 驟之後,更包括:當該抹除次數大於或等於該預定次數時,設定一暫存參數,以使該暫存參數對應於該第一非揮發性狀態暫存器,以使在編程階段對該第一非揮發性狀態暫存器進行編程;以及當該抹除次數小該預定次數時,設定該暫存參數,以使該暫存參數對應於該第二非揮發性狀態暫存器,以使在編程階段對該第二非揮發性狀態暫存器進行編程。 A method for preventing write time degradation of a non-volatile bit of a long-term cycle according to Item 12 of the claim, wherein the number of erasures of erasing the first non-volatile state register by using an erase pulse is determined Whether it is greater than or equal to the predetermined number of steps After the step, the method further includes: when the erasing frequency is greater than or equal to the predetermined number of times, setting a temporary storage parameter, so that the temporary storage parameter corresponds to the first non-volatile state register, so that the programming phase is The first non-volatile state register is programmed; and when the number of erasures is less than the predetermined number of times, the temporary parameter is set such that the temporary parameter corresponds to the second non-volatile state register, The second non-volatile state register is programmed during the programming phase.
TW103120178A 2014-06-11 2014-06-11 The method of prevent write time degradation for non-volatile bits long-term cycling TWI539461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103120178A TWI539461B (en) 2014-06-11 2014-06-11 The method of prevent write time degradation for non-volatile bits long-term cycling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103120178A TWI539461B (en) 2014-06-11 2014-06-11 The method of prevent write time degradation for non-volatile bits long-term cycling

Publications (2)

Publication Number Publication Date
TW201546809A true TW201546809A (en) 2015-12-16
TWI539461B TWI539461B (en) 2016-06-21

Family

ID=55407553

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103120178A TWI539461B (en) 2014-06-11 2014-06-11 The method of prevent write time degradation for non-volatile bits long-term cycling

Country Status (1)

Country Link
TW (1) TWI539461B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767007A (en) * 2019-04-01 2020-10-13 慧荣科技股份有限公司 Write management mechanism for flash memory

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6387134B1 (en) 2017-03-09 2018-09-05 ウィンボンド エレクトロニクス コーポレーション Semiconductor memory device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767007A (en) * 2019-04-01 2020-10-13 慧荣科技股份有限公司 Write management mechanism for flash memory
CN111767007B (en) * 2019-04-01 2023-12-22 慧荣科技股份有限公司 Write management mechanism for flash memory

Also Published As

Publication number Publication date
TWI539461B (en) 2016-06-21

Similar Documents

Publication Publication Date Title
KR100926195B1 (en) Non-volatile semiconductor memory device
US10360987B2 (en) Managing refresh for flash memory
KR100673027B1 (en) Non-volatile memory device capable of compensating read margin reduced due to hot temperature stress
US9489143B2 (en) Method for accessing flash memory and associated controller and memory device
US10332613B1 (en) Nonvolatile memory system with retention monitor
US9520184B2 (en) Method for writing in-system programming code into flash memory for better noise margin
US7907446B2 (en) Nonvolatile semiconductor memory device and method of driving the same
KR102121951B1 (en) Semiconductor device and operating method thereof
US10241678B2 (en) Data storage device and data writing method capable of avoiding repeated write operation of a TLC block when interrupted
KR20140088386A (en) Semiconductor apparatus and method of operating the same
US9390807B2 (en) Erase method for flash
JP2006164408A (en) Nonvolatile semiconductor memory device, and data erasure method therefor
KR101991437B1 (en) Semiconductor memory device and Operating method thereof
TWI539461B (en) The method of prevent write time degradation for non-volatile bits long-term cycling
JP2007102923A (en) Nonvolatile semiconductor storage device and its data erasing method
TWI483107B (en) Serial interface flash memory apparatus and writing method for status register writing thereof
JP2007179669A (en) Memory system
KR102119179B1 (en) Semiconductor device and operating method thereof
CN111933209B (en) Semiconductor device with a plurality of semiconductor chips
KR100764748B1 (en) Flash memory device with improved refresh function
TWI658471B (en) Flash memory storage device and method thereof
US20110176369A1 (en) Erase verification method of flash memory apparatus
JPWO2007043133A1 (en) Semiconductor device and control method thereof
JP2014086108A (en) Semiconductor integrated circuit device
CN104750584A (en) Semiconductor storing device and system starting method