US20080089161A1 - Method for testing flash memory power loss recovery - Google Patents
Method for testing flash memory power loss recovery Download PDFInfo
- Publication number
- US20080089161A1 US20080089161A1 US11/953,240 US95324007A US2008089161A1 US 20080089161 A1 US20080089161 A1 US 20080089161A1 US 95324007 A US95324007 A US 95324007A US 2008089161 A1 US2008089161 A1 US 2008089161A1
- Authority
- US
- United States
- Prior art keywords
- volatile memory
- write
- execution
- erase
- command
- Prior art date
- Legal status (The legal status 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 status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/50—Marginal testing, e.g. race, voltage or current testing
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/50—Marginal testing, e.g. race, voltage or current testing
- G11C29/50004—Marginal testing, e.g. race, voltage or current testing of threshold voltage
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/04—Erasable programmable read-only memories electrically programmable using variable threshold transistors, e.g. FAMOS
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/04—Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
- G11C29/50—Marginal testing, e.g. race, voltage or current testing
- G11C2029/5002—Characteristic
Definitions
- the present invention relates generally to non-volatile memory devices and in particular the present invention relates to Flash memory device management software, drivers, and power loss recovery testing.
- RAM random-access memory
- RAM random-access memory
- ROM read-only memory
- ROM electrically erasable programmable read-only memory
- EEPROM electrically erasable programmable read-only memory
- EEPROM electrically isolated gates (floating gates). Data is stored in the memory cells in the form of charge on the floating gates. Charge is transported to or removed from the floating gates by specialized programming and erase operations, respectively.
- Flash memory is a type of EEPROM that can be erased in blocks instead of one byte at a time.
- a typical Flash memory comprises a memory array, which includes a large number of memory cells.
- the memory cells of a Flash memory array are typically arranged into a “NOR” architecture (where each cell directly coupled to a bitline) or a “NAND” architecture (where the cells are coupled into “strings” of cells, such that each cell is coupled indirectly to a bitline and requires activation of the other cells of the string for access to a selected cell).
- Each of the memory cells includes a floating gate field-effect transistor capable of holding a charge. The data in a cell is determined by the presence or absence of the charge in the floating gate.
- the cells are usually grouped into sections called “erase blocks.” Each of the cells within an erase block can be electrically programmed in a random basis by charging the floating gate. The charge can be removed from the floating gate by a block erase operation, wherein all floating gate memory cells in the erase block are erased in a single operation.
- Other types of non-volatile memory include, but are not limited to, Polymer Memory, Ferroelectric Random Access Memory (FeRAM), Ovionics Unified Memory (OUM), and Magnetoresistive Random Access Memory (MRAM).
- Flash memory devices are utilized with specialized software handling and/or management routines, generally referred to as “drivers.”
- the Flash memory drivers are executed on the “host,” typically a processor or memory controller, and allow the Flash memory device(s) being utilized to be read from and written to by the host.
- the drivers also provide a layer of logical abstraction for the host; presenting the Flash memory device as a freely re-writeable general access memory device or mass storage device, such as a hard drive, a floppy disk, or other non-volatile machine-usable storage device.
- the drivers typically also manage the internal operation of the Flash memory device; scheduling erase blocks to be erased, managing bad erase blocks, protecting and unprotecting erase blocks, power loss recovery, and load leveling (also called wear leveling) the Flash memory device.
- driver and/or memory management routines are generally supplied by the Flash memory manufacturer to the end-user or system manufacturer. These driver routines are typically supplied in a source code format or as a linkable library and as such must be compiled into the operating system or overall code executing on the device. Self contained and separately loadable drivers also exist, but are typically not utilized in embedded processor devices.
- Flash memory is non-volatile, once data is stored it will not be affected by loss of power.
- data write operations, block erasures, and other internal Flash management operations that store or change data or the operating state of the Flash memory device are generally not single step operations, the Flash memory can be left in an incomplete state by a power loss event.
- a make directory command requires 43 separate write/erase operations by the driver of a specific Flash memory device to complete. Because of these issues the driver software contains “power loss recovery” routines that sequence the Flash memory device through a power loss recovery cycle to check for such uncompleted operations upon power up, and, if possible, finish or correct them.
- the testing of these power loss recovery cycles and drivers routines has generally involved randomized power loss testing.
- system testing power is removed from the system at a random point during a selected write, erase, or Flash memory management operation and then is restored, testing the power loss recovery cycle and associated driver routines.
- the testing of a selected write, erase, or Flash memory management operation is continued in this manner for an indefinite period of time (as much as 2 to 3 days), until an appropriate level of confidence in the power loss recovery cycle is achieved.
- This approach is problematic in that it is empirically based and cannot completely guarantee even after a large number of testing cycles that an error is not present in the power loss recovery cycle or routines; the true coverage of the test is unknown.
- This form of testing is also time consuming and requires exhaustive testing or retesting when a section of code or hardware is written or changed to verify its correct operation.
- FIG. 1 is a simplified block diagram of a system containing a Flash memory device in accordance with an embodiment of the present invention.
- FIG. 2 is a simplified block diagram of a system containing a Flash memory subsystem in accordance with an embodiment of the present invention.
- FIGS. 3A and 3B are simplified flowchart diagrams detailing operation of methods in accordance with embodiments of the present invention.
- Embodiments of the present invention include non-volatile memory drivers, testing methods, and apparatuses that allow for deterministic testing and verification of non-volatile memories, non-volatile memory drivers, write operations/cycles, block erase operations/cycles, non-volatile memory management operations, and power loss recovery testing. In one embodiment, this accomplished by a counter in a low level driver that counts the number of program/erase operations or cycles.
- the memory device and software embodiments of the present invention utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point.
- This ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point allows for halting or interrupting execution of the driver/software routine at each point that a non-volatile memory cell is programmed or erased in a selected operation.
- this ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point enables simulation of power loss at each point in a selected operation that a non-volatile memory cell is programmed or erased, allowing for improved, deterministic testing of the power loss recovery cycle and faster code/design change verification.
- Erase block management typically a function of the driver, provides an abstraction layer for this to the host (a processor or an external memory controller), allowing the Flash device to appear as a freely rewriteable device, including, but not limited to, managing the logical address to physical erase block translation mapping for reads and writes, the assignment of erased and available erase blocks for utilization, and the scheduling erase blocks that have been used and closed out for block erasure.
- Data objects which can be individual sectors, erase blocks, or logical file system entities, are created and managed through creation, updating, and invalidation/erasure by the EBM.
- Erase block management also allows for load leveling of the internal floating gate memory cells to help prevent write fatigue failure.
- Write fatigue is where the floating gate memory cell, after repetitive writes and erasures, no longer properly erases and removes charge from the floating gate. Load leveling procedures increase the mean time between failure of the erase block and Flash memory device as a whole.
- driver software/memory management software is typically segmented into a data manager layer (that is responsible for the higher level interfacing such as erase block management and address/logical device abstraction) and a low level device driver layer (that is responsible for the interfacing, command set sequences, and timing of interfacing to the specific memory device and provides basic read/program/erase functionality).
- data manager layer that is responsible for the higher level interfacing such as erase block management and address/logical device abstraction
- low level device driver layer that is responsible for the interfacing, command set sequences, and timing of interfacing to the specific memory device and provides basic read/program/erase functionality.
- API application interface
- the file manager is responsible for managing filesystem data entities (typically separate data files or filesystem structures) and the logical structure/filesystem format of the memory device.
- the file manager (or in some cases, the data manager) can tailor its operation of the memory device to the device's storage usage by the operating system/application.
- the storage usage or access patterns of the memory device are called the “data model” of the memory use and can be used to optimize the memory's utilization by the application/system it is installed in. For example, a digital camera would require large data file storage that was frequently erased and reprogrammed, whereas a cell phone would typically require storage of many small data entities that would be frequently accessed but seldom changed.
- a driver can operate in synchronous or asynchronous operating mode dependant on when it acknowledges the Flash operation request to the operating system/application. If the driver is still in the process of completing execution of the operation on the Flash memory device when it acknowledges the write or erase operation, the driver is known as an “asynchronous” driver and typically only occurs in systems capable of multi-tasking. This is opposed to “synchronous” driver operation where execution of the main operating system/application halts until the driver completes the entire operation.
- firmware or software routines can be stored on a variety of machine-usable storage mediums or firmware storage mediums that include, but are not limited to, a non-volatile Flash memory, a ROM, an EEPROM, a one time programmable (OTP) device, a complex programmable logic device (CPLD), an application specific integrated circuit (ASIC), a magnetic media disk, etc.
- the host interface and erase block management routines additionally allow the Flash memory device to appear as a read/write mass storage device (i.e., a magnetic disk) to the host.
- a read/write mass storage device i.e., a magnetic disk
- One such approach is to conform the interface to the Flash memory to be identical to a standard interface for a conventional magnetic hard disk drive allowing the Flash memory device to appear as a block read/write mass storage device or disk.
- PCMCIA Personal Computer Memory Card International Association
- CF Compact Flash
- MMC Multimedia Card
- Flash memory device or Flash memory card including one or more Flash memory array chips whose interface meets these standards can be plugged into a host system having a standard DOS (Disk Operating System) or compatible operating system with a Personal Computer Memory Card International Association—Advanced Technology Attachment (PCMCIA-ATA) or standard ATA interface.
- DOS Disk Operating System
- PCMCIA-ATA Personal Computer Memory Card International Association—Advanced Technology Attachment
- Other additional Flash memory based mass storage devices of differing low level formats and interfaces also exist, such as Universal Serial Bus (USB) Flash drives, Secure Digital Memory Card, or Sony MemoryStick.
- USB Universal Serial Bus
- DOS modem computer operating systems
- the DOS software stores and retrieves data based on these physical attributes.
- Magnetic hard disk drives operate by storing polarities on magnetic material. This material is able to be rewritten quickly and as often as desired. These characteristics have allowed DOS to develop a file structure that stores files at a given location which is updated by a rewrite of that location as information is changed. Essentially all locations in DOS are viewed as fixed and do not change over the life of the disk drive being used therewith, and are easily updated by rewrites of the smallest supported block of this structure.
- a sector (of a magnetic disk drive) is the smallest unit of storage that the DOS operating system supports.
- a sector has come to mean 512 bytes of information for DOS and most other operating systems in existence.
- Flash memory systems that emulate the storage characteristics of hard disk drives are preferably structured to support storage in 512 byte blocks along with additional storage for overhead associated with mass storage, such as ECC (error correction code) bits, status flags for the sector or erase block, and/or redundant bits.
- ECC error correction code
- FIG. 1 shows a simplified diagram of a system 128 incorporating a Flash memory device 100 and driver of the present invention coupled to a host 102 , which is typically a processing device or memory controller.
- the Flash memory device 100 has an address interface 104 , a control interface 106 , and a data interface 108 that are each coupled to the processing device 102 to allow memory read and write accesses.
- a control state machine 110 Internal to the Flash memory device, a control state machine 110 directs the internal operation; managing the Flash memory array 112 and updating RAM control registers and non-volatile erase block management registers 114 .
- the RAM control registers and tables 114 are utilized by the control state machine 110 during operation of the Flash memory device 100 .
- the Flash memory array 112 contains a sequence of memory banks or segments 116 .
- Each bank 116 is organized logically into a series of erase blocks (not shown).
- Memory access addresses are received on the address interface 104 of the Flash memory device 100 and divided into a row and column address portions.
- the row address is latched and decoded by row decode circuit 120 , which selects and activates a row page (not shown) of memory cells across a selected memory bank.
- the bit values encoded in the output of the selected row of memory cells are coupled from a local bitline (not shown) to a global bitline (not shown) and detected by sense amplifiers 122 associated with the memory bank.
- the column address of the access is latched and decoded by the column decode circuit 124 .
- the output of the column decode circuit 124 selects the desired column data from the internal data bus (not shown) that is coupled to the outputs of the individual read sense amplifiers 122 and couples them to the data buffer 126 for transfer from the memory device 100 through the data interface 108 .
- the row decode circuit 120 selects the row page and column decode circuit 124 selects write sense amplifiers 122 .
- Data values to be written are coupled from the data buffer 126 via the internal data bus to the write sense amplifiers 122 selected by the column decode circuit 124 and written to the selected floating gate memory cells (not shown) of the memory array 112 .
- the written cells are then reselected by the row and column decode circuits 120 , 124 and sense amplifiers 122 so that they can be read to verify that the correct values have been programmed into the selected memory cells.
- FIG. 2 is a simplified diagram of another system 200 that incorporates a Flash memory subsystem 204 and associated Flash driver software routines of an embodiment of the present invention.
- the Flash memory subsystem 204 such as a memory system or Flash memory card, is coupled to a processor 202 with a synchronous interface having an address 206 , control 208 , and data bus 210 .
- a memory controller 212 Internal to the Flash memory system 204 , a memory controller 212 directs internal operation of the Flash memory system 204 ; managing the Flash memory devices 214 , directing data accesses, updating internal control registers and tables (not shown), and/or directing operation of other possible subsystems (not shown) of the Flash memory system 204 .
- the memory controller 212 is coupled to and controls one or more Flash memory devices 214 via an internal bus 236 .
- Each Flash memory device 214 contains a sequence of erase blocks (not shown) in an internal memory array 216 . It is noted that other architectures of Flash memory systems 204 , external interfaces 206 , 208 , 210 , and manners of coupling the memory controller 212 to the Flash memory devices 214 , such as directly coupled individual control busses and signal lines, are possible and should be apparent to those skilled in the art with benefit of the present disclosure.
- the driver On power up of a system incorporating a Flash memory device or system, the driver typically executes the power loss recovery routine and scans the entire Flash memory, examining each data object by checking its status in an EBM data field. If the data object is marked in the EBM field as “complete” it is left alone. If the object is marked as “being updated”, the object is checked and, if possible, the remaining steps to place the data object in a “complete” state are executed. If the data object is unable to be completed it is marked as “invalid.” In the segmented driver described above, power loss recovery is generally the data manager's task to scan the Flash memory and correct or discard incomplete data objects, although in some cases the file manager, if present in the driver, may also be involved.
- the driver counts the number of write or erase operations for executing a selected Flash operation and then halts/interrupts execution at a selected write or erase operation. At this point the state of the processor and/or contents of the memory and registers can be inspected if desired. If the system is then brought back up again this tests the power loss recovery for the selected halt point in the Flash command and allows a known and definite testing coverage of the Flash memory device and driver for a particular case. This quantifies the power loss case for that particular software environment (and if desired, physical environment).
- the counting of write or erase operations and/or halting/interrupting execution is done by a function incorporated into the low level driver. In one embodiment only write or only erase operations are counted. In another operation both write and erase operations are counted.
- Write and erase commands are not executed in a rapid manner in typical Flash memory devices and can take up to several milliseconds to complete. This write/erase command time period is typically counted in the multiples of clock cycles for most hosts (i.e., processors or memory controllers). As such, in one embodiment of the present invention a driver executing on a host counts the number of write and/or erase operations for executing a selected Flash operation and at a selected write or erase operation counts (typically on a counter internal to the host) the number of clock cycles/time period into the execution of the write or erase command by the Flash memory device before halting/interrupting execution of the selected write or erase command.
- this halting of execution is accomplished by the host triggering external hardware to remove power from the Flash memory device under test at a selected time or clock cycle count after issuing a Flash write or erase command.
- the non-volatile memory device has a special purpose internal register that may be set to halt or stop the internal execution of a command in its command execution logic after a selected number of system clock cycles, or, in the case of a command execution logic state machine, a selected number of state machine steps.
- the driver would load the special purpose internal register of the non-volatile memory device to halt execution of a command at a selected number of system clocks or command execution state machine steps and then loads and executes a command or command sequence to test.
- the non-volatile memory executes the command and halts/interrupts command execution at the selected number of system clocks or command execution state machine steps.
- FIG. 3A shows a simplified flowchart 300 to a method of operating a Flash memory device driver of an embodiment of the present invention.
- the memory device driver counts the number of erase and write operations 302 done to the Flash memory.
- the device driver then halts execution 304 of the current Flash memory command.
- the state of the processor and/or content of the memory and registers of the system executing the device driver can optionally be inspected.
- the device driver then reboots/brings back up the system and the power loss recovery routine is tested 306 for the Flash memory command that was executed. If the halt is before the point where the Flash memory command can be completed by the power loss recovery routine, the data object should be placed/marked as invalid. If the sequence of writes and/or erases is halted after the Flash memory command can be completed, the power loss recovery routine should finish the execution of the command and mark the data object into a completed state.
- the method of operating a device driver of FIG. 3A implements an iterative test of the executed Flash memory command. This allows a quantification of the power loss case for the selected Flash memory command. For example, incrementing through the above mentioned 43-step Flash operation to execute a make directory command allows the make directory command of the driver to be deterministically tested.
- FIG. 3B shows a simplified flowchart 320 to a method of operating a Flash memory device driver of another embodiment of the present invention.
- the memory device driver counts the number (N) of erase and write operations 322 done to the Flash memory. Starting from a selected halt count of one, the device driver then halts execution 324 of the current Flash memory command. The device driver then reboots/brings back up the system and the power loss recovery routine is tested 326 for the Flash memory command that was executed. After the power loss recovery is tested, the selected halt count is incremented 328 and the method loops 330 to repeat the Flash command halting now at the new incremented halt count.
- the method then repeats incrementing the halt count, halting on each repetition at a new halt count (i.e., 1, 2, 3, . . . , N), until power loss recovery has been tested by halting on each write/erase operation of the Flash memory command being tested.
- a new halt count i.e., 1, 2, 3, . . . , N
- the driver of FIG. 3B is utilized to step through and test each command of a Flash memory device command set, an iterative test of a whole command set is executed.
- This allows the user to test all known power loss cases of a Flash memory command set in a fast and deterministic manner.
- the testing of the write and erase operations of a selected Flash memory device and driver can be accomplished in a smaller period of time and with a high level of confidence in the power loss recovery cycle; helping to ensure that a latent error is not hiding in the power loss recovery cycle or routines.
- This deterministic driver testing also allows quick iterations of driver code development and verification of the code operation.
- the write/erase counter of the driver allows for profiling of the number of write/erase operations a command utilizes in its execution by counting the number of write/erase operations it takes to complete.
- This profiling of a command can allow for automatic testing by allowing test run time determination of the number of write/erase operations of a command.
- Profiling can also allow the user to see what, if anything, has changed in the implementation of a command. This enables easy comparison of code versions, different command versions, or code from a separate source (i.e., a customer modified version of the code that was sent back to manufacturer for debugging and analysis).
- the write/erase counter of the driver allows for code debugging by allowing the code to be stopped and the state of the processor and memory to be examined whenever information is recorded or erased in the Flash. This is particularly useful in debugging intermittent errors in the operation of the Flash memory. Differing inputs and environment stresses (such as voltage, temperature, noise, etc.) may be applied to the system or Flash memory and write or erase operations repeatedly run to locate problematic conditions or errors.
- a non-volatile memory device, driver, and method has been described that utilizes write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point to interrupt/stop execution or simulate power loss at a specific point.
- the various embodiments of the present invention relate to deterministic testing and verification of non-volatile memories, non-volatile memory drivers, write operations/cycles, block erase operations/cycles, non-volatile memory management operations, and power loss recovery testing.
- the memory device and software embodiments of the present invention utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point.
- This ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point allows for halting or interrupting execution at each point in a selected operation that a non-volatile memory cell is programmed or erased.
- This allows for a deterministic and repeatable testing process of all stages of a write cycle or erase cycle where the state of non-volatile memory cells are changed in the non-volatile memory device.
- This also allows for step-through testing of each stage by programmer/designer of state changes non-volatile memory cells in the non-volatile memory device or driver software, enabling quick testing and easy logic and code changes, saving time and resources.
- this ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at any selected point enables simulation of power loss at each point in a selected operation that a non-volatile memory cell is programmed or erased, allowing for improved, deterministic testing of the power loss recovery cycle and faster code/design change verification.
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Read Only Memory (AREA)
Abstract
Non-volatile memory device, driver, and method is described that utilizes write or erase cycle tracking to interrupt or stop a non-volatile memory programming or erase operation at a selected point to interrupt/stop execution or simulate power loss at a specific point. This ability allows for a deterministic and repeatable testing process of all write or erase cycles of a non-volatile command where the state of floating gate memory cells are changed in the non-volatile memory device. Additionally, this ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation or erasing operation at any selected point enables simulation of power loss at each point in a selected operation that a non-volatile floating gate memory cell is programmed or erased, allowing for improved, deterministic testing of the power loss recovery cycle and faster code/design change verification.
Description
- This application is a Continuation of U.S. application Ser. No. 10/714,780 titled “METHOD FOR TESTING FLASH MEMORY POWER LOSS RECOVERY,” filed Nov. 17, 2003, (pending) which is commonly assigned and incorporated herein by reference.
- The present invention relates generally to non-volatile memory devices and in particular the present invention relates to Flash memory device management software, drivers, and power loss recovery testing.
- Memory devices are typically provided as internal storage areas in a computer. The term memory identifies data storage that comes in the form of integrated circuit chips. There are several different types of memory used in modem electronics, one common type is RAM (random-access memory). RAM is characteristically found in use as main memory in a computer environment. RAM refers to read and write memory; that is, you can both write data into RAM and read data from RAM. This is in contrast to ROM (read-only memory), which permits you only to read data. Most RAM is volatile, which means that it requires a steady flow of electricity to maintain its contents. As soon as the power is turned off, whatever data was in RAM is lost.
- Computers almost always contain a small amount of ROM that holds instructions for starting up the computer, typically called a basic input output system (BIOS). Unlike RAM, ROM generally cannot be written to by a user. An EEPROM (electrically erasable programmable read-only memory) is a special type non-volatile ROM that can be erased by exposing it to an electrical charge. EEPROM comprise a large number of memory cells having electrically isolated gates (floating gates). Data is stored in the memory cells in the form of charge on the floating gates. Charge is transported to or removed from the floating gates by specialized programming and erase operations, respectively.
- Yet another type of non-volatile memory is a Flash memory. A Flash memory is a type of EEPROM that can be erased in blocks instead of one byte at a time. A typical Flash memory comprises a memory array, which includes a large number of memory cells. The memory cells of a Flash memory array are typically arranged into a “NOR” architecture (where each cell directly coupled to a bitline) or a “NAND” architecture (where the cells are coupled into “strings” of cells, such that each cell is coupled indirectly to a bitline and requires activation of the other cells of the string for access to a selected cell). Each of the memory cells includes a floating gate field-effect transistor capable of holding a charge. The data in a cell is determined by the presence or absence of the charge in the floating gate. The cells are usually grouped into sections called “erase blocks.” Each of the cells within an erase block can be electrically programmed in a random basis by charging the floating gate. The charge can be removed from the floating gate by a block erase operation, wherein all floating gate memory cells in the erase block are erased in a single operation. Other types of non-volatile memory include, but are not limited to, Polymer Memory, Ferroelectric Random Access Memory (FeRAM), Ovionics Unified Memory (OUM), and Magnetoresistive Random Access Memory (MRAM).
- Many Flash memory devices are utilized with specialized software handling and/or management routines, generally referred to as “drivers.” The Flash memory drivers are executed on the “host,” typically a processor or memory controller, and allow the Flash memory device(s) being utilized to be read from and written to by the host. The drivers also provide a layer of logical abstraction for the host; presenting the Flash memory device as a freely re-writeable general access memory device or mass storage device, such as a hard drive, a floppy disk, or other non-volatile machine-usable storage device. The drivers, as part of the Flash memory device software interface/hardware abstraction, typically also manage the internal operation of the Flash memory device; scheduling erase blocks to be erased, managing bad erase blocks, protecting and unprotecting erase blocks, power loss recovery, and load leveling (also called wear leveling) the Flash memory device.
- The driver and/or memory management routines are generally supplied by the Flash memory manufacturer to the end-user or system manufacturer. These driver routines are typically supplied in a source code format or as a linkable library and as such must be compiled into the operating system or overall code executing on the device. Self contained and separately loadable drivers also exist, but are typically not utilized in embedded processor devices.
- A problem with utilizing Flash memory devices, particularly in embedded processor or portable battery powered systems, is dealing with potentially intermittent power sources or power availability. As Flash memory is non-volatile, once data is stored it will not be affected by loss of power. However, as data write operations, block erasures, and other internal Flash management operations that store or change data or the operating state of the Flash memory device are generally not single step operations, the Flash memory can be left in an incomplete state by a power loss event. For example, a make directory command requires 43 separate write/erase operations by the driver of a specific Flash memory device to complete. Because of these issues the driver software contains “power loss recovery” routines that sequence the Flash memory device through a power loss recovery cycle to check for such uncompleted operations upon power up, and, if possible, finish or correct them.
- The testing of these power loss recovery cycles and drivers routines (herein referred to as the power loss recovery cycle) in prior art Flash memory devices and systems has generally involved randomized power loss testing. In this form of system testing, power is removed from the system at a random point during a selected write, erase, or Flash memory management operation and then is restored, testing the power loss recovery cycle and associated driver routines. The testing of a selected write, erase, or Flash memory management operation is continued in this manner for an indefinite period of time (as much as 2 to 3 days), until an appropriate level of confidence in the power loss recovery cycle is achieved. This approach is problematic in that it is empirically based and cannot completely guarantee even after a large number of testing cycles that an error is not present in the power loss recovery cycle or routines; the true coverage of the test is unknown. This form of testing is also time consuming and requires exhaustive testing or retesting when a section of code or hardware is written or changed to verify its correct operation.
- For the reasons stated above, and for other reasons stated below which will become apparent to those skilled in the art upon reading and understanding the present specification, there is a need in the art for alternative apparatus and methods of testing Flash memory devices, their driver programs, and power loss recovery cycles.
-
FIG. 1 is a simplified block diagram of a system containing a Flash memory device in accordance with an embodiment of the present invention. -
FIG. 2 is a simplified block diagram of a system containing a Flash memory subsystem in accordance with an embodiment of the present invention. -
FIGS. 3A and 3B are simplified flowchart diagrams detailing operation of methods in accordance with embodiments of the present invention. - In the following detailed description of the invention, reference is made to the accompanying drawings that form a part hereof, and in which is shown, by way of illustration, specific embodiments in which the invention may be practiced. In the drawings, like numerals describe substantially similar components throughout the several views. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. Other embodiments may be utilized and structural, logical, and electrical changes may be made without departing from the scope of the present invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims and equivalents thereof.
- Embodiments of the present invention include non-volatile memory drivers, testing methods, and apparatuses that allow for deterministic testing and verification of non-volatile memories, non-volatile memory drivers, write operations/cycles, block erase operations/cycles, non-volatile memory management operations, and power loss recovery testing. In one embodiment, this accomplished by a counter in a low level driver that counts the number of program/erase operations or cycles. The memory device and software embodiments of the present invention utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point. This ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point allows for halting or interrupting execution of the driver/software routine at each point that a non-volatile memory cell is programmed or erased in a selected operation. This allows for a deterministic and repeatable testing process of all stages of a write cycle or erase cycle where the state of non-volatile memory cells are changed in the non-volatile memory device. This also allows for step-through testing of each stage by programmer/designer of state changes of the non-volatile memory cells in the non-volatile memory device or driver software, enabling quick testing and easy logic and code changes, saving time and resources. Additionally, this ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point enables simulation of power loss at each point in a selected operation that a non-volatile memory cell is programmed or erased, allowing for improved, deterministic testing of the power loss recovery cycle and faster code/design change verification.
- Because all the cells in an erase block of a Flash memory device must be erased at once, one cannot directly rewrite a Flash memory cell without first engaging in a block erase operation. Erase block management (EBM), typically a function of the driver, provides an abstraction layer for this to the host (a processor or an external memory controller), allowing the Flash device to appear as a freely rewriteable device, including, but not limited to, managing the logical address to physical erase block translation mapping for reads and writes, the assignment of erased and available erase blocks for utilization, and the scheduling erase blocks that have been used and closed out for block erasure. Data objects, which can be individual sectors, erase blocks, or logical file system entities, are created and managed through creation, updating, and invalidation/erasure by the EBM. Erase block management also allows for load leveling of the internal floating gate memory cells to help prevent write fatigue failure. Write fatigue is where the floating gate memory cell, after repetitive writes and erasures, no longer properly erases and removes charge from the floating gate. Load leveling procedures increase the mean time between failure of the erase block and Flash memory device as a whole.
- The complexity of the tasks of managing and interfacing to the Flash memory device(s) are such that the driver software/memory management software is typically segmented into a data manager layer (that is responsible for the higher level interfacing such as erase block management and address/logical device abstraction) and a low level device driver layer (that is responsible for the interfacing, command set sequences, and timing of interfacing to the specific memory device and provides basic read/program/erase functionality). These driver software/memory management software layers typically interface between each other by means of a defined “application interface” (API) that allows the differing layers to function without direct knowledge or control of the other layers.
- Additionally, there is in some cases a further driver layer between the operating system/application, called the file manager. The file manager is responsible for managing filesystem data entities (typically separate data files or filesystem structures) and the logical structure/filesystem format of the memory device. The file manager (or in some cases, the data manager) can tailor its operation of the memory device to the device's storage usage by the operating system/application. The storage usage or access patterns of the memory device are called the “data model” of the memory use and can be used to optimize the memory's utilization by the application/system it is installed in. For example, a digital camera would require large data file storage that was frequently erased and reprogrammed, whereas a cell phone would typically require storage of many small data entities that would be frequently accessed but seldom changed.
- After the overall driver's application interface (API) to the application/operating system acknowledges the write or erase operation request the successful execution of the data write/erasure is guaranteed. In executing these requests, a driver can operate in synchronous or asynchronous operating mode dependant on when it acknowledges the Flash operation request to the operating system/application. If the driver is still in the process of completing execution of the operation on the Flash memory device when it acknowledges the write or erase operation, the driver is known as an “asynchronous” driver and typically only occurs in systems capable of multi-tasking. This is opposed to “synchronous” driver operation where execution of the main operating system/application halts until the driver completes the entire operation.
- The software routines and drivers that operate computer based devices are sometimes referred to as firmware or ROM after the non-volatile ROM machine-usable storage device that such routines have historically been stored in. It is noted that firmware or software routines can be stored on a variety of machine-usable storage mediums or firmware storage mediums that include, but are not limited to, a non-volatile Flash memory, a ROM, an EEPROM, a one time programmable (OTP) device, a complex programmable logic device (CPLD), an application specific integrated circuit (ASIC), a magnetic media disk, etc.
- In many modem Flash memory devices implementations, the host interface and erase block management routines additionally allow the Flash memory device to appear as a read/write mass storage device (i.e., a magnetic disk) to the host. One such approach is to conform the interface to the Flash memory to be identical to a standard interface for a conventional magnetic hard disk drive allowing the Flash memory device to appear as a block read/write mass storage device or disk. This approach has been codified by the Personal Computer Memory Card International Association (PCMCIA), Compact Flash (CF), and Multimedia Card (MMC) standardization committees, which have each promulgated a standard for supporting Flash memory systems or Flash memory “cards” with a hard disk drive protocol. A Flash memory device or Flash memory card (including one or more Flash memory array chips) whose interface meets these standards can be plugged into a host system having a standard DOS (Disk Operating System) or compatible operating system with a Personal Computer Memory Card International Association—Advanced Technology Attachment (PCMCIA-ATA) or standard ATA interface. Other additional Flash memory based mass storage devices of differing low level formats and interfaces also exist, such as Universal Serial Bus (USB) Flash drives, Secure Digital Memory Card, or Sony MemoryStick.
- Many of the modem computer operating systems, such as DOS, were developed to support the physical characteristics of hard drive structures; supporting file structures based on heads, cylinders and sectors. The DOS software stores and retrieves data based on these physical attributes. Magnetic hard disk drives operate by storing polarities on magnetic material. This material is able to be rewritten quickly and as often as desired. These characteristics have allowed DOS to develop a file structure that stores files at a given location which is updated by a rewrite of that location as information is changed. Essentially all locations in DOS are viewed as fixed and do not change over the life of the disk drive being used therewith, and are easily updated by rewrites of the smallest supported block of this structure. A sector (of a magnetic disk drive) is the smallest unit of storage that the DOS operating system supports. In particular, a sector has come to mean 512 bytes of information for DOS and most other operating systems in existence. Flash memory systems that emulate the storage characteristics of hard disk drives are preferably structured to support storage in 512 byte blocks along with additional storage for overhead associated with mass storage, such as ECC (error correction code) bits, status flags for the sector or erase block, and/or redundant bits.
-
FIG. 1 shows a simplified diagram of asystem 128 incorporating aFlash memory device 100 and driver of the present invention coupled to ahost 102, which is typically a processing device or memory controller. TheFlash memory device 100 has anaddress interface 104, acontrol interface 106, and adata interface 108 that are each coupled to theprocessing device 102 to allow memory read and write accesses. Internal to the Flash memory device, acontrol state machine 110 directs the internal operation; managing theFlash memory array 112 and updating RAM control registers and non-volatile erase block management registers 114. The RAM control registers and tables 114 are utilized by thecontrol state machine 110 during operation of theFlash memory device 100. TheFlash memory array 112 contains a sequence of memory banks orsegments 116. Eachbank 116 is organized logically into a series of erase blocks (not shown). Memory access addresses are received on theaddress interface 104 of theFlash memory device 100 and divided into a row and column address portions. On a read access the row address is latched and decoded byrow decode circuit 120, which selects and activates a row page (not shown) of memory cells across a selected memory bank. The bit values encoded in the output of the selected row of memory cells are coupled from a local bitline (not shown) to a global bitline (not shown) and detected bysense amplifiers 122 associated with the memory bank. The column address of the access is latched and decoded by thecolumn decode circuit 124. The output of thecolumn decode circuit 124 selects the desired column data from the internal data bus (not shown) that is coupled to the outputs of the individualread sense amplifiers 122 and couples them to thedata buffer 126 for transfer from thememory device 100 through thedata interface 108. On a write access therow decode circuit 120 selects the row page andcolumn decode circuit 124 selectswrite sense amplifiers 122. Data values to be written are coupled from thedata buffer 126 via the internal data bus to thewrite sense amplifiers 122 selected by thecolumn decode circuit 124 and written to the selected floating gate memory cells (not shown) of thememory array 112. The written cells are then reselected by the row and column decodecircuits sense amplifiers 122 so that they can be read to verify that the correct values have been programmed into the selected memory cells. -
FIG. 2 is a simplified diagram of anothersystem 200 that incorporates aFlash memory subsystem 204 and associated Flash driver software routines of an embodiment of the present invention. In thesystem 200 ofFIG. 2 , theFlash memory subsystem 204, such as a memory system or Flash memory card, is coupled to aprocessor 202 with a synchronous interface having anaddress 206,control 208, anddata bus 210. Internal to theFlash memory system 204, amemory controller 212 directs internal operation of theFlash memory system 204; managing theFlash memory devices 214, directing data accesses, updating internal control registers and tables (not shown), and/or directing operation of other possible subsystems (not shown) of theFlash memory system 204. Thememory controller 212 is coupled to and controls one or moreFlash memory devices 214 via aninternal bus 236. EachFlash memory device 214 contains a sequence of erase blocks (not shown) in aninternal memory array 216. It is noted that other architectures ofFlash memory systems 204,external interfaces memory controller 212 to theFlash memory devices 214, such as directly coupled individual control busses and signal lines, are possible and should be apparent to those skilled in the art with benefit of the present disclosure. - On power up of a system incorporating a Flash memory device or system, the driver typically executes the power loss recovery routine and scans the entire Flash memory, examining each data object by checking its status in an EBM data field. If the data object is marked in the EBM field as “complete” it is left alone. If the object is marked as “being updated”, the object is checked and, if possible, the remaining steps to place the data object in a “complete” state are executed. If the data object is unable to be completed it is marked as “invalid.” In the segmented driver described above, power loss recovery is generally the data manager's task to scan the Flash memory and correct or discard incomplete data objects, although in some cases the file manager, if present in the driver, may also be involved.
- In embodiments of the present invention, the driver counts the number of write or erase operations for executing a selected Flash operation and then halts/interrupts execution at a selected write or erase operation. At this point the state of the processor and/or contents of the memory and registers can be inspected if desired. If the system is then brought back up again this tests the power loss recovery for the selected halt point in the Flash command and allows a known and definite testing coverage of the Flash memory device and driver for a particular case. This quantifies the power loss case for that particular software environment (and if desired, physical environment). In one embodiment, the counting of write or erase operations and/or halting/interrupting execution is done by a function incorporated into the low level driver. In one embodiment only write or only erase operations are counted. In another operation both write and erase operations are counted.
- Write and erase commands are not executed in a rapid manner in typical Flash memory devices and can take up to several milliseconds to complete. This write/erase command time period is typically counted in the multiples of clock cycles for most hosts (i.e., processors or memory controllers). As such, in one embodiment of the present invention a driver executing on a host counts the number of write and/or erase operations for executing a selected Flash operation and at a selected write or erase operation counts (typically on a counter internal to the host) the number of clock cycles/time period into the execution of the write or erase command by the Flash memory device before halting/interrupting execution of the selected write or erase command. This allows the embodiment to simulate actual power loss at a given point in execution of a write/erase command and/or command sequence of a Flash memory device. This is particularly advantageous for testing Flash memory devices with multi-level cells, where each memory cell contains two or more memory data bits which are typically programmed in a single write operation. In another embodiment, as numerous Flash memory devices do not have a method of halting the execution of Flash commands that are executing internal to the device, this halting of execution is accomplished by the host triggering external hardware to remove power from the Flash memory device under test at a selected time or clock cycle count after issuing a Flash write or erase command.
- In another embodiment of the present invention, the non-volatile memory device has a special purpose internal register that may be set to halt or stop the internal execution of a command in its command execution logic after a selected number of system clock cycles, or, in the case of a command execution logic state machine, a selected number of state machine steps. In one embodiment, the driver would load the special purpose internal register of the non-volatile memory device to halt execution of a command at a selected number of system clocks or command execution state machine steps and then loads and executes a command or command sequence to test. The non-volatile memory executes the command and halts/interrupts command execution at the selected number of system clocks or command execution state machine steps.
-
FIG. 3A shows asimplified flowchart 300 to a method of operating a Flash memory device driver of an embodiment of the present invention. InFIG. 3A , the memory device driver counts the number of erase and writeoperations 302 done to the Flash memory. At a selected count, the device driver then haltsexecution 304 of the current Flash memory command. At this point the state of the processor and/or content of the memory and registers of the system executing the device driver can optionally be inspected. The device driver then reboots/brings back up the system and the power loss recovery routine is tested 306 for the Flash memory command that was executed. If the halt is before the point where the Flash memory command can be completed by the power loss recovery routine, the data object should be placed/marked as invalid. If the sequence of writes and/or erases is halted after the Flash memory command can be completed, the power loss recovery routine should finish the execution of the command and mark the data object into a completed state. - With the addition of a step to automatically increment the write/erase count where the command is halted, the method of operating a device driver of
FIG. 3A implements an iterative test of the executed Flash memory command. This allows a quantification of the power loss case for the selected Flash memory command. For example, incrementing through the above mentioned 43-step Flash operation to execute a make directory command allows the make directory command of the driver to be deterministically tested. -
FIG. 3B shows asimplified flowchart 320 to a method of operating a Flash memory device driver of another embodiment of the present invention. InFIG. 3B , the memory device driver counts the number (N) of erase and writeoperations 322 done to the Flash memory. Starting from a selected halt count of one, the device driver then haltsexecution 324 of the current Flash memory command. The device driver then reboots/brings back up the system and the power loss recovery routine is tested 326 for the Flash memory command that was executed. After the power loss recovery is tested, the selected halt count is incremented 328 and themethod loops 330 to repeat the Flash command halting now at the new incremented halt count. The method then repeats incrementing the halt count, halting on each repetition at a new halt count (i.e., 1, 2, 3, . . . , N), until power loss recovery has been tested by halting on each write/erase operation of the Flash memory command being tested. This allows a fast and definite testing coverage of the Flash memory device and driver for the selected Flash command, allowing a quantification of the power loss case for the selected command. - If the driver of
FIG. 3B is utilized to step through and test each command of a Flash memory device command set, an iterative test of a whole command set is executed. This allows the user to test all known power loss cases of a Flash memory command set in a fast and deterministic manner. The testing of the write and erase operations of a selected Flash memory device and driver can be accomplished in a smaller period of time and with a high level of confidence in the power loss recovery cycle; helping to ensure that a latent error is not hiding in the power loss recovery cycle or routines. This deterministic driver testing also allows quick iterations of driver code development and verification of the code operation. - It is noted that other testing patterns and methodologies, such as starting with the final write/erase operation of the command and decrementing or verification of block management and erase commands before write commands, are possible for Flash memory command testing with embodiments of the present invention and will be apparent to those skilled in the art with the benefit of the present disclosure.
- In another embodiment of the present invention, the write/erase counter of the driver allows for profiling of the number of write/erase operations a command utilizes in its execution by counting the number of write/erase operations it takes to complete. This profiling of a command can allow for automatic testing by allowing test run time determination of the number of write/erase operations of a command. Profiling can also allow the user to see what, if anything, has changed in the implementation of a command. This enables easy comparison of code versions, different command versions, or code from a separate source (i.e., a customer modified version of the code that was sent back to manufacturer for debugging and analysis).
- In another embodiment of the present invention, the write/erase counter of the driver allows for code debugging by allowing the code to be stopped and the state of the processor and memory to be examined whenever information is recorded or erased in the Flash. This is particularly useful in debugging intermittent errors in the operation of the Flash memory. Differing inputs and environment stresses (such as voltage, temperature, noise, etc.) may be applied to the system or Flash memory and write or erase operations repeatedly run to locate problematic conditions or errors.
- It is noted that driver testing with other embodiments of the present invention are possible and should be apparent to those skilled in the art with the benefit of the present disclosure.
- A non-volatile memory device, driver, and method has been described that utilizes write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point to interrupt/stop execution or simulate power loss at a specific point. The various embodiments of the present invention relate to deterministic testing and verification of non-volatile memories, non-volatile memory drivers, write operations/cycles, block erase operations/cycles, non-volatile memory management operations, and power loss recovery testing. The memory device and software embodiments of the present invention utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point. This ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at a selected point allows for halting or interrupting execution at each point in a selected operation that a non-volatile memory cell is programmed or erased. This allows for a deterministic and repeatable testing process of all stages of a write cycle or erase cycle where the state of non-volatile memory cells are changed in the non-volatile memory device. This also allows for step-through testing of each stage by programmer/designer of state changes non-volatile memory cells in the non-volatile memory device or driver software, enabling quick testing and easy logic and code changes, saving time and resources. Additionally, this ability to utilize write or erase cycle tracking to interrupt or stop a non-volatile memory programming operation at any selected point enables simulation of power loss at each point in a selected operation that a non-volatile memory cell is programmed or erased, allowing for improved, deterministic testing of the power loss recovery cycle and faster code/design change verification.
- Although specific embodiments have been illustrated and described herein, it will be appreciated by those of ordinary skill in the art that any arrangement that is calculated to achieve the same purpose may be substituted for the specific embodiments shown. Many adaptations of the invention will be apparent to those of ordinary skill in the art. Accordingly, this application is intended to cover any adaptations or variations of the invention. It is manifestly intended that this invention be limited only by the following claims and equivalents thereof.
Claims (25)
1. A method of operating a non-volatile memory comprising:
counting a number of internal non-volatile memory cell write and/or erase actions in a non-volatile memory occurring during execution of a selected memory operation; and
halting execution of the selected memory operation in the non-volatile memory at a selected count of the internal non-volatile memory cell write and/or erase actions.
2. The method of claim 1 , further comprising:
resetting the non-volatile memory or executing power loss recovery routines on the non-volatile memory after halting execution of the selected memory operation at the selected count of the internal non-volatile memory cell write and/or erase actions.
3. The method of claim 1 , wherein halting execution of the selected memory operation in the non-volatile memory at a selected count of the internal non-volatile memory cell write and/or erase actions further comprises at the selected count of the internal non-volatile memory cell write and/or erase actions, counting clock cycles or execution steps of a command execution logic state machine and halting execution of a current internal non-volatile memory cell write and/or erase action of the memory operation at a selected number of clock cycles or execution steps of the command execution logic state machine.
4. The method of claim 1 , further comprising loading an internal register in the non-volatile memory with the selected number of internal non-volatile memory cell write and/or erase actions.
5. The method of claim 1 , further comprising:
changing the selected count of internal non-volatile memory cell write and/or erase actions;
re-executing the non-volatile memory operation;
counting a number of internal non-volatile memory cell write and/or erase actions; and
interrupting execution of the non-volatile memory operation at the changed selected count of internal non-volatile memory cell write and/or erase actions.
6. The method of claim 5 , further comprising changing the non-volatile memory operation to a second non-volatile memory operation after all possible counts of internal non-volatile memory cell write and/or erase actions of the non-volatile memory operation have been tested.
7. The method of claim 1 , further comprising examining a state of one or more registers and/or array contents of the non-volatile memory after halting execution.
8. A method of operating a non-volatile memory system comprising:
counting a number of internal non-volatile memory write and/or erase operations in a non-volatile memory system having a non-volatile memory controller coupled to one or more non-volatile memory devices, wherein the number of internal non-volatile memory write and/or erase operations occur during execution of an externally provided non-volatile memory command to the non-volatile memory controller; and
halting execution of the externally provided memory command at a selected count of the internal non-volatile memory write and/or erase operations.
9. The method of claim 8 , further comprising:
executing a power loss recovery routine on the non-volatile memory system after halting execution of the externally provided non-volatile memory command at the selected count of the internal non-volatile memory write and/or erase operations.
10. The method of claim 8 , wherein halting execution of the externally provided non-volatile memory command in the non-volatile memory system at a selected count of the internal non-volatile memory write and/or erase operations further comprises at the selected count of the internal non-volatile memory write and/or erase operations, counting a selected number of clock cycles before halting execution of a current internal non-volatile memory write and/or erase operation of the externally provided non-volatile memory command or counting a selected number of execution steps of the non-volatile memory controller before halting execution of a current internal non-volatile memory write and/or erase operation of the externally provided non-volatile memory command at the selected number of execution steps of the non-volatile memory controller.
11. The method of claim 8 , further comprising externally loading an internal register in the non-volatile memory controller of the non-volatile memory system with the selected number of internal non-volatile memory write and/or erase operations to halt at.
12. The method of claim 8 , further comprising:
changing the selected count of internal non-volatile memory write and/or erase operations;
re-executing the externally provided non-volatile memory command;
counting a number of internal non-volatile memory write and/or erase operations; and
halting execution of the externally provided non-volatile memory command at the changed selected count of internal non-volatile memory write and/or erase operations.
13. The method of claim 8 , further comprising examining one or more registers and/or data contents of the non-volatile memory controller and the one or more non-volatile memory devices of the non-volatile memory system after halting execution of the externally provided non-volatile memory command.
14. A system comprising:
one or more non-volatile memory devices coupled to a host;
wherein the system is adapted to count a selected number of non-volatile memory write and/or erase operations to one or more registers and one or more array locations of a selected non-volatile memory device of the one or more non-volatile memory devices during execution of a memory command and halt execution of the memory command at a selected count of the non-volatile memory write and/or erase operations.
15. The system of claim 14 , wherein the system is adapted to execute a power loss recovery routine on the one or more non-volatile memory devices after halting execution of the memory command at the selected count of the non-volatile memory write and/or erase operations.
16. The system of claim 14 , wherein the system is adapted to halt execution of the memory command in the system at the selected count of the non-volatile memory write and/or erase operations by either counting a selected number of clock cycles before halting execution of a current non-volatile memory write and/or erase operation at the selected count of non-volatile write and/or erase operations, or by counting a selected number of execution steps of the host before halting execution of a current non-volatile memory write and/or erase operation at the selected count of non-volatile write and/or erase operations at the selected number of execution steps.
17. The system of claim 14 , wherein the system is adapted to load an internal register in the selected non-volatile memory device of the system with one of a selected number of internal non-volatile memory write and/or erase operations to halt at, a selected number of clock cycles to halt at, or a selected number of execution steps of a command execution logic state machine to halt at.
18. The system of claim 14 , wherein the system is further adapted to change the selected count of non-volatile memory write and/or erase operations and re-execute the memory command, count a number of non-volatile memory write and/or erase operations, and halt execution of the memory command at the changed selected count of non-volatile memory write and/or erase operations.
19. The system of claim 14 , wherein the system is adapted to examine one or more registers and/or data contents of the host and the one or more non-volatile memory devices of the system after halting execution of the memory command.
20. A memory comprising:
a memory array;
one or more non-volatile control registers;
a control circuit; and
a count register;
wherein the memory is adapted to count a number of internal writes and/or erases to the memory array and/or the one or more control registers during execution of a memory command and stop execution of the memory command when the count of internal writes and/or erases matches a count number stored in the count register.
21. The memory of claim 20 , wherein the memory is adapted to stop execution of the memory command when the count of internal writes and/or erases matches the count number stored in the count register by stopping execution of a selected internal write and/or erase either after a selected number of execution steps of a command execution logic state machine, or after a selected number of clock cycles.
22. The memory of claim 20 , wherein the memory is adapted to execute a power loss recovery routine after stopping execution of the memory command.
23. A method of operating a non-volatile memory device driver comprising:
receiving an external non-volatile memory command;
counting a number of internal non-volatile memory write and/or erase actions in a non-volatile memory occurring during execution of the external memory non-volatile command; and
halting execution of the non-volatile memory command at a selected count of the internal non-volatile memory write and/or erase actions.
24. The method of claim 23 , wherein halting execution of the non-volatile memory command at a selected count of the internal non-volatile memory write and/or erase actions further comprises halting execution of the non-volatile memory command at the selected count of internal non-volatile memory write and/or erase actions by halting execution of a selected internal non-volatile memory write and/or erase action after one of a selected time period has passed, a selected number of execution steps of a command execution logic state machine have occurred, and a selected number of clock cycles have occurred.
25. The method of claim 23 , further comprising executing a power loss recovery routine after halting execution of the external non-volatile memory command at the selected count of the internal non-volatile memory write and/or erase actions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/953,240 US20080089161A1 (en) | 2003-11-17 | 2007-12-10 | Method for testing flash memory power loss recovery |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US10/714,780 US7321951B2 (en) | 2003-11-17 | 2003-11-17 | Method for testing flash memory power loss recovery |
US11/953,240 US20080089161A1 (en) | 2003-11-17 | 2007-12-10 | Method for testing flash memory power loss recovery |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/714,780 Continuation US7321951B2 (en) | 2003-11-17 | 2003-11-17 | Method for testing flash memory power loss recovery |
Publications (1)
Publication Number | Publication Date |
---|---|
US20080089161A1 true US20080089161A1 (en) | 2008-04-17 |
Family
ID=34574058
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/714,780 Active 2024-11-28 US7321951B2 (en) | 2003-11-17 | 2003-11-17 | Method for testing flash memory power loss recovery |
US11/953,240 Abandoned US20080089161A1 (en) | 2003-11-17 | 2007-12-10 | Method for testing flash memory power loss recovery |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/714,780 Active 2024-11-28 US7321951B2 (en) | 2003-11-17 | 2003-11-17 | Method for testing flash memory power loss recovery |
Country Status (1)
Country | Link |
---|---|
US (2) | US7321951B2 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110138108A1 (en) * | 2009-12-03 | 2011-06-09 | Xiangrong Li | Method of active flash management, and associated memory device and controller thereof |
US20110320688A1 (en) * | 2010-06-29 | 2011-12-29 | Samsung Electronics Co., Ltd. | Memory Systems And Wear Leveling Methods |
WO2014004731A1 (en) * | 2012-06-29 | 2014-01-03 | Intel Corporation | Optimized context drop for a solid state drive (ssd) |
WO2014168295A1 (en) * | 2013-04-08 | 2014-10-16 | 주식회사 이에프텍 | Power loss test device and method for nonvolatile memory device |
US20220215877A1 (en) * | 2020-11-06 | 2022-07-07 | Micron Technology, Inc. | Memory cycling tracking for threshold voltage variation systems and methods |
US20230064884A1 (en) * | 2021-08-31 | 2023-03-02 | Yangtze Memory Technologies Co., Ltd. | Power-down test of firmware of a memory system |
Families Citing this family (48)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050269400A1 (en) * | 2004-06-02 | 2005-12-08 | Proton World International N.V. | Checking of the atomicity of commands executed by a microprocessor |
US7424643B2 (en) * | 2004-12-30 | 2008-09-09 | Intel Corporation | Device, system and method for power loss recovery procedure for solid state non-volatile memory |
US7509474B2 (en) * | 2005-06-08 | 2009-03-24 | Micron Technology, Inc. | Robust index storage for non-volatile memory |
US7779426B2 (en) * | 2006-03-30 | 2010-08-17 | Microsoft Corporation | Describing and querying discrete regions of flash storage |
US7356442B1 (en) * | 2006-10-05 | 2008-04-08 | International Business Machines Corporation | End of life prediction of flash memory |
US7925151B2 (en) * | 2007-01-31 | 2011-04-12 | Kobre Kenneth R | Device for redirecting and reflecting light from camera flash and methods for using same |
US7917479B2 (en) * | 2007-03-20 | 2011-03-29 | Micron Technology, Inc. | Non-volatile memory devices, systems including same and associated methods |
US7925822B2 (en) * | 2008-01-31 | 2011-04-12 | Sandisk Il Ltd | Erase count recovery |
US7984323B2 (en) * | 2009-07-17 | 2011-07-19 | International Business Machines Corporation | Apparatus, system, and method for providing a backup configuration image to a programmable hardware device |
US8566940B1 (en) * | 2009-11-25 | 2013-10-22 | Micron Technology, Inc. | Authenticated operations and event counters |
US8055942B2 (en) * | 2009-12-03 | 2011-11-08 | Seagate Technology Llc | Data storage devices and methods for power-on initialization |
WO2012079216A1 (en) * | 2010-12-13 | 2012-06-21 | Mediatek Singapore Pte. Ltd. | Nor flash memory controller |
US8566934B2 (en) | 2011-01-21 | 2013-10-22 | Gigavation, Inc. | Apparatus and method for enhancing security of data on a host computing device and a peripheral device |
CN102737721A (en) * | 2011-04-13 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | Hard disk array on-off testing device and method |
TW201241618A (en) * | 2011-04-13 | 2012-10-16 | Hon Hai Prec Ind Co Ltd | Apparatus and method for testing turn on/off of hard disk array |
KR102195788B1 (en) | 2011-08-10 | 2020-12-28 | 기타 스리바스타바 | Apparatus and method for enhancing security of data on a host computing device and a peripheral device |
US9176800B2 (en) * | 2011-08-31 | 2015-11-03 | Micron Technology, Inc. | Memory refresh methods and apparatuses |
US9477591B2 (en) | 2012-07-06 | 2016-10-25 | Seagate Technology Llc | Memory access requests in hybrid memory system |
US9594685B2 (en) | 2012-07-06 | 2017-03-14 | Seagate Technology Llc | Criteria for selection of data for a secondary cache |
US9104578B2 (en) | 2012-07-06 | 2015-08-11 | Seagate Technology Llc | Defining address ranges used to cache speculative read data |
US9390020B2 (en) | 2012-07-06 | 2016-07-12 | Seagate Technology Llc | Hybrid memory with associative cache |
US9772948B2 (en) | 2012-07-06 | 2017-09-26 | Seagate Technology Llc | Determining a criterion for movement of data from a primary cache to a secondary cache |
US9529724B2 (en) * | 2012-07-06 | 2016-12-27 | Seagate Technology Llc | Layered architecture for hybrid controller |
US9785564B2 (en) | 2013-08-20 | 2017-10-10 | Seagate Technology Llc | Hybrid memory with associative cache |
US9367247B2 (en) | 2013-08-20 | 2016-06-14 | Seagate Technology Llc | Memory access requests in hybrid memory system |
US9507719B2 (en) | 2013-08-20 | 2016-11-29 | Seagate Technology Llc | Garbage collection in hybrid memory system |
CN103810126B (en) * | 2014-01-27 | 2017-06-13 | 上海新储集成电路有限公司 | Mixing DRAM memory and the method for reducing power consumption when the DRAM memory refreshes |
US9575677B2 (en) * | 2014-04-29 | 2017-02-21 | Sandisk Technologies Llc | Storage system power management using controlled execution of pending memory commands |
US9582211B2 (en) * | 2014-04-29 | 2017-02-28 | Sandisk Technologies Llc | Throttling command execution in non-volatile memory systems based on power usage |
KR101571823B1 (en) | 2014-06-30 | 2015-11-25 | 주식회사 이에프텍 | Method of performing a power loss test for a non-volatile memory device |
US10055327B2 (en) | 2014-09-30 | 2018-08-21 | International Business Machines Corporation | Evaluating fairness in devices under test |
US9847662B2 (en) | 2014-10-27 | 2017-12-19 | Sandisk Technologies Llc | Voltage slew rate throttling for reduction of anomalous charging current |
US9880605B2 (en) | 2014-10-27 | 2018-01-30 | Sandisk Technologies Llc | Method and system for throttling power consumption |
US9916087B2 (en) | 2014-10-27 | 2018-03-13 | Sandisk Technologies Llc | Method and system for throttling bandwidth based on temperature |
CN104881341B (en) * | 2015-06-16 | 2019-03-05 | 深圳市金泰克半导体有限公司 | The test method and its test macro of a kind of server, hard disc of computer |
US20170017414A1 (en) | 2015-07-15 | 2017-01-19 | Innovium, Inc. | System And Method For Implementing Hierarchical Distributed-Linked Lists For Network Devices |
US20170017420A1 (en) | 2015-07-15 | 2017-01-19 | Innovium, Inc. | System And Method For Enabling High Read Rates To Data Element Lists |
US20170017567A1 (en) | 2015-07-15 | 2017-01-19 | Innovium, Inc. | System And Method For Implementing Distributed-Linked Lists For Network Devices |
US20170017419A1 (en) * | 2015-07-15 | 2017-01-19 | Innovium, Inc. | System And Method For Enabling High Read Rates To Data Element Lists |
TWI601059B (en) * | 2015-11-19 | 2017-10-01 | 慧榮科技股份有限公司 | Data storage device and data storage method |
CN106227680B (en) * | 2016-07-26 | 2019-01-04 | 成都三零嘉微电子有限公司 | A kind of data processing and power fail preventing data guard method |
US20180285562A1 (en) * | 2017-03-31 | 2018-10-04 | Intel Corporation | Computing system with protection against memory wear out attacks |
US10379979B2 (en) | 2017-05-31 | 2019-08-13 | Western Digital Technologies, Inc. | Power fail handling using stop commands |
US10373694B2 (en) * | 2017-08-31 | 2019-08-06 | Micron Technology, Inc. | Responding to power loss |
CN107943628A (en) * | 2017-11-17 | 2018-04-20 | 郑州云海信息技术有限公司 | The on-off test device and test method of a kind of storage device |
US11309055B2 (en) * | 2018-12-20 | 2022-04-19 | Micron Technology, Inc. | Power loss test engine device and method |
CN113409881B (en) * | 2021-06-28 | 2023-07-04 | 芯天下技术股份有限公司 | Flash memory erasure interrupt recovery test method and device, electronic equipment and storage medium |
CN113436671B (en) * | 2021-06-30 | 2023-09-08 | 芯天下技术股份有限公司 | SPI NOR FLASH test platform, test method, test device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5148540A (en) * | 1987-08-20 | 1992-09-15 | International Business Machines Corporation | System with backup of data storage status and device identification for enabling system recovery after powerloss |
US5509134A (en) * | 1993-06-30 | 1996-04-16 | Intel Corporation | Method and apparatus for execution of operations in a flash memory array |
US5680570A (en) * | 1991-06-12 | 1997-10-21 | Quantum Corporation | Memory system with dynamically allocatable non-volatile storage capability |
Family Cites Families (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5245577A (en) * | 1990-11-06 | 1993-09-14 | Micron Technology, Inc. | Integrated circuit two-cycle test mode activation circuit |
US6058497A (en) * | 1992-11-20 | 2000-05-02 | Micron Technology, Inc. | Testing and burn-in of IC chips using radio frequency transmission |
US6105152A (en) * | 1993-04-13 | 2000-08-15 | Micron Technology, Inc. | Devices and methods for testing cell margin of memory devices |
JPH0778499A (en) * | 1993-09-10 | 1995-03-20 | Advantest Corp | Flash memory testing device |
US5675540A (en) * | 1996-01-22 | 1997-10-07 | Micron Quantum Devices, Inc. | Non-volatile memory system having internal data verification test mode |
JPH10125092A (en) * | 1996-10-22 | 1998-05-15 | Advantest Corp | Flash memory tester |
US6182188B1 (en) * | 1997-04-06 | 2001-01-30 | Intel Corporation | Method of performing reliable updates in a symmetrically blocked nonvolatile memory having a bifurcated storage architecture |
AU7706198A (en) * | 1997-05-30 | 1998-12-30 | Micron Technology, Inc. | 256 meg dynamic random access memory |
US6496027B1 (en) * | 1997-08-21 | 2002-12-17 | Micron Technology, Inc. | System for testing integrated circuit devices |
US6003149A (en) * | 1997-08-22 | 1999-12-14 | Micron Technology, Inc. | Test method and apparatus for writing a memory array with a reduced number of cycles |
DE69732637T2 (en) * | 1997-12-22 | 2005-12-29 | Stmicroelectronics S.R.L., Agrate Brianza | Self-test and correction of charge loss errors in a sector erasable and programmable flash memory |
US6178532B1 (en) * | 1998-06-11 | 2001-01-23 | Micron Technology, Inc. | On-chip circuit and method for testing memory devices |
US6971048B1 (en) * | 1998-06-15 | 2005-11-29 | Sun Microsystems, Inc. | Testing device driver hardening |
US6418070B1 (en) * | 1999-09-02 | 2002-07-09 | Micron Technology, Inc. | Memory device tester and method for testing reduced power states |
JP4366001B2 (en) * | 2000-08-11 | 2009-11-18 | 株式会社アドバンテスト | Semiconductor memory test method and semiconductor memory test equipment |
US6901541B2 (en) * | 2001-03-13 | 2005-05-31 | Micron Technology, Inc. | Memory testing method and apparatus |
US6865702B2 (en) * | 2001-04-09 | 2005-03-08 | Micron Technology, Inc. | Synchronous flash memory with test code input |
US20020157053A1 (en) * | 2001-04-21 | 2002-10-24 | Chen Leon Lee | Semiconductor test system with time critical sequence generation using general purpose operating system |
US7036004B2 (en) * | 2001-07-25 | 2006-04-25 | Micron Technology, Inc. | Power up initialization for memory |
US6948026B2 (en) * | 2001-08-24 | 2005-09-20 | Micron Technology, Inc. | Erase block management |
KR100441601B1 (en) * | 2001-10-19 | 2004-07-23 | 삼성전자주식회사 | Memory card, digital device and Method for interfacing data between memory card and digital device |
JP2003141900A (en) * | 2001-10-31 | 2003-05-16 | Hitachi Ltd | Nonvolatile semiconductor memory |
US6618304B2 (en) * | 2001-12-21 | 2003-09-09 | Micron Technology, Inc. | Memory module with test mode |
US6630685B1 (en) * | 2002-06-24 | 2003-10-07 | Micron Technology, Inc. | Probe look ahead: testing parts not currently under a probehead |
-
2003
- 2003-11-17 US US10/714,780 patent/US7321951B2/en active Active
-
2007
- 2007-12-10 US US11/953,240 patent/US20080089161A1/en not_active Abandoned
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5148540A (en) * | 1987-08-20 | 1992-09-15 | International Business Machines Corporation | System with backup of data storage status and device identification for enabling system recovery after powerloss |
US5680570A (en) * | 1991-06-12 | 1997-10-21 | Quantum Corporation | Memory system with dynamically allocatable non-volatile storage capability |
US5509134A (en) * | 1993-06-30 | 1996-04-16 | Intel Corporation | Method and apparatus for execution of operations in a flash memory array |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110138108A1 (en) * | 2009-12-03 | 2011-06-09 | Xiangrong Li | Method of active flash management, and associated memory device and controller thereof |
US8423708B2 (en) * | 2009-12-03 | 2013-04-16 | Silicon Motion Inc. | Method of active flash management, and associated memory device and controller thereof |
US20110320688A1 (en) * | 2010-06-29 | 2011-12-29 | Samsung Electronics Co., Ltd. | Memory Systems And Wear Leveling Methods |
WO2014004731A1 (en) * | 2012-06-29 | 2014-01-03 | Intel Corporation | Optimized context drop for a solid state drive (ssd) |
US9037820B2 (en) | 2012-06-29 | 2015-05-19 | Intel Corporation | Optimized context drop for a solid state drive (SSD) |
WO2014168295A1 (en) * | 2013-04-08 | 2014-10-16 | 주식회사 이에프텍 | Power loss test device and method for nonvolatile memory device |
US10008288B2 (en) | 2013-04-08 | 2018-06-26 | Elixir Flash Technology Co., Ltd. | Power loss test device and method for nonvolatile memory device |
US20220215877A1 (en) * | 2020-11-06 | 2022-07-07 | Micron Technology, Inc. | Memory cycling tracking for threshold voltage variation systems and methods |
US11900999B2 (en) * | 2020-11-06 | 2024-02-13 | Micron Technology, Inc. | Memory cycling tracking for threshold voltage variation systems and methods |
US20230064884A1 (en) * | 2021-08-31 | 2023-03-02 | Yangtze Memory Technologies Co., Ltd. | Power-down test of firmware of a memory system |
US12039187B2 (en) * | 2021-08-31 | 2024-07-16 | Yangtze Memory Technologies Co., Ltd. | Power-down test of firmware of a memory system |
Also Published As
Publication number | Publication date |
---|---|
US7321951B2 (en) | 2008-01-22 |
US20050108491A1 (en) | 2005-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7321951B2 (en) | Method for testing flash memory power loss recovery | |
US7277978B2 (en) | Runtime flash device detection and configuration for flash data management software | |
US7350044B2 (en) | Data move method and apparatus | |
US7761653B2 (en) | Flash micro-controller with shadow boot-loader SRAM for dual-device booting of micro-controller and host | |
CN101622607B (en) | Semiconductor storage device | |
US9164756B2 (en) | Software updating process for an embedded device | |
US7352621B2 (en) | Method for enhanced block management | |
JPWO2007119267A1 (en) | Memory controller for flash memory | |
US9881682B1 (en) | Fine grained data retention monitoring in solid state drives | |
CN110534151B (en) | Method and device for realizing erasing before writing, computer equipment and storage medium | |
CN110910944A (en) | Apparatus and method for maintaining firmware in a memory system | |
US11984181B2 (en) | Systems and methods for evaluating integrity of adjacent sub blocks of data storage apparatuses | |
US20230004320A1 (en) | Method of managing debugging log in storage device | |
KR100816763B1 (en) | Electronic system using flash memory module by a main storage and booting method thereof | |
CN113127085B (en) | Solid state storage device with fast boot from NAND media | |
US10395751B2 (en) | Automated testing system and operating method thereof | |
US11093369B2 (en) | Reconfigurable simulation system and method for testing firmware of storage | |
KR20200005220A (en) | Data Storage Device and Operation Method Thereof, Server for Providing Firmware Therefor | |
TWI616807B (en) | Data writing method and storage controller | |
CN103577344A (en) | Data writing method, memory controller and memory storage device | |
CN116312720B (en) | Testability design method, system and terminal of embedded EEPROM | |
US20220300202A1 (en) | Memory system, method of controlling memory system, and host device | |
CN101840520B (en) | Intelligent card and method for accessing flash memory of intelligent card | |
CN112820341B (en) | Memory inspection method, memory inspection device and memory inspection system | |
TWI764581B (en) | Memory check method, memory check device and memory check system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |