This application relates generally to evaluating memory storage. More specifically, this application relates to using the memory controller to evaluate and test non-volatile semiconductor flash memory.
Non-volatile memory systems, such as solid-state or flash memory (e.g. NAND memory), have been widely adopted for use in consumer products. Flash memory may be found in different forms, for example in the form of a portable memory card that can be carried between host devices or as a solid state disk (SSD) embedded in a host device. The host may write data to the flash memory.
Memory testing and characterization may be necessary for evaluating the memory. However, due to the manufacturing process, it may be difficult to access the memory and testing may be difficult and require expensive testers and test programs. In particular, the chip may be manufactured such that the NAND is mounted on a product (e.g. a card), and may be inaccessible. Testing of the NAND may be difficult once the product is manufactured. In particular, the testing may require the host or host device to access the NAND through the pins (e.g. USB interface). Further, testing of the memory component may occur (before assembly in the card), and then after the memory is assembled onto a card, the card must be tested. Testing of assembled cards may require firmware related to the product. The availability of the firmware often delays the card testing.
Improved testing of NAND memory devices may be achieved through the use of the controller. The memory controller can be used rather than requiring an external tester or testing device. When the controller and NAND die reside inside the same package, then no direct access to the NAND die is required for testing and characterization of the NAND. The system may include a controller that communicates with the NAND. The controller may be programmed (through the host I/O's) to perform user defined operations on the NAND. The controller may collect data such as user programmed data, various parameters related to the NAND operations such as Erase, Program and Read that are used to run different tests on different NAND instances and collect data for statistical analysis. The system may support self-test at the product level when the NAND die and controller are packaged together. The NAND may be manufactured to reside inside the same package of the controller, and no direct access to the NAND is required. Also testing does not have to wait for the availability of the production firmware.
A memory system or flash card may include a controller. Improved testing and memory evaluation may be achieved by utilizing the memory's controller. User defined test algorithms may be run from the controller to test memory (e.g. NAND memory). The controller may be part of an application specific integrated circuit (“ASIC”) that acts as the tester. The controller may run application programs and exercise IP blocks internal to the controller. In the final product (e.g. card) that includes the controller, the controller can test the NAND die. The testing from the controller may improve product level diagnostics and failure analysis. The controller may enable functional test of the final product. The functional tests may be under different usage scenarios or under particular stress conditions (e.g. temperature, relaxation time, voltage) for product qualifications. There may be a NAND specific test and the test may be statistically based for identifying potential errors rather than testing the full NAND arrays. The test may target specific worst case conditions and support a debug of firmware. Special modes may be added to capture history and transactions. The testing may support error correction.
The controller may support multiple test algorithms. For example, the algorithms may be unique to the device and the usage pattern (e.g. a memory card for a camera which has larger files as compared with a memory card for a smartphone which may have a different usage pattern). The algorithms are not dependent on the production firmware and each individual card can test itself even before the production firmware is loaded (the firmware may be required for communications with the host, but the controller based testing can still be performed without the firmware). This controller testing supports a low cost tester and low cost device under test (“DUT”) management. All that the tester has to do is load and wait for test completion. This controller testing may increase parallel testing. NAND write/read throughput may be the limiting factor. The tests that may be targeted. For example, debugging may be improved when controller based because the card does not need to be disassembled (which may prevent error identification) to perform the debugging. The algorithm may be implemented as part of the testing or evaluation, the terms algorithm, testing, and evaluation may be used interchangeably throughout this disclosure. Besides testing, this system also allows data acquisition for flash devices using a very large sample size (number of devices). This may be critical for characterization and understanding the behavior of the flash device.
A flash memory system suitable for use in implementing aspects of the controller based memory evaluation is shown in
Examples of commercially available removable flash memory cards include the CompactFlash (CF), the MultiMediaCard (MMC), Secure Digital (SD), miniSD, Memory Stick, SmartMedia, TransFlash, and microSD cards. Although each of these cards may have a unique mechanical and/or electrical interface according to its standardized specifications, the flash memory system included in each may be similar. These cards are all available from SanDisk Corporation, assignee of the present application. SanDisk also provides a line of flash drives under its Cruzer trademark, which are hand held memory systems in small packages that have a Universal Serial Bus (USB) plug for connecting with a host by plugging into the host's USB receptacle. Each of these memory cards and flash drives includes controllers that interface with the host and control operation of the flash memory within them.
Host systems that may use SSDs, memory cards and flash drives are many and varied. They include personal computers (PCs), such as desktop or laptop and other portable computers, tablet computers, cellular telephones, smartphones, personal digital assistants (PDAs), digital still cameras, digital movie cameras, and portable media players. For portable memory card applications, a host may include a built-in receptacle for one or more types of memory cards or flash drives, or a host may require adapters into which a memory card is plugged. The memory system may include its own memory controller and drivers but there may also be some memory-only systems that are instead controlled by software executed by the host to which the memory is connected. In some memory systems containing the controller, especially those embedded within a host, the memory, controller and drivers are often formed on a single integrated circuit chip. The host may communicate with the memory card using any communication protocol such as but not limited to Secure Digital (SD) protocol, Memory Stick (MS) protocol and Universal Serial Bus (USB) protocol.
The host system 100 of
The memory system 102 of
A flash transformation layer (“FTL”) or media management layer (“MML”) may be integrated in the flash management 126 and may handle flash errors and interfacing with the host. The FTL may be responsible for the internals of NAND management. In particular, the FTL may be an algorithm in the memory device firmware which translates writes from the host 100 into writes to the flash memory 116. The FTL may be needed because: 1) the flash memory may have limited endurance; 2) the flash memory 116 may only be written in multiples of pages; and/or 3) the flash memory 116 may not be written unless it is erased as a block. The FTL understands these potential limitations of the flash memory 116 which may not be visible to the host 100. Accordingly, the FTL attempts to translate the writes from host 100 into writes into the flash memory 116.
The memory controller 118 may be implemented on a single integrated circuit chip, such as an application specific integrated circuit (ASIC) such as shown in
The host interface 216 may provide the data connection with the host. The memory interface 204 may be one or more FIMs 128 from
The memory controller 118 may include a testing algorithm that is run by the memory controller 118. In one embodiment, the host 100 loads the testing algorithm on to the memory system 102 to be run by the memory controller 118. However, the implementation of the testing algorithm may be performed solely by the memory controller 118 without an external tester and without the host. In other words, the testing is local to the memory system 102 as performed by the memory controller 118. The testing algorithms and implementation of the tests by the controller are further described below with respect to
The block of memory cells is the unit of erase, and the smallest number of memory cells that are physically erasable together. For increased parallelism, however, the blocks may be operated in larger metablock units. One block from each plane is logically linked together to form a metablock. The four blocks 410, 412, 414, and 416 are shown to form one metablock 418. All of the cells within a metablock are typically erased together. The blocks used to form a metablock need not be restricted to the same relative locations within their respective planes, as is shown in a second metablock 420 made up of blocks 422, 424, 426, and 428. Although it is usually preferable to extend the metablocks across all of the planes, for high system performance, the memory system can be operated with the ability to dynamically form metablocks of any or all of one, two or three blocks in different planes. This allows the size of the metablock to be more closely matched with the amount of data available for storage in one programming operation.
The individual blocks are in turn divided for operational purposes into pages of memory cells, as illustrated in
The memory cells may be operated to store two levels of charge so that a single bit of data is stored in each cell. This is typically referred to as a binary or single level cell (SLC) memory. SLC memory may store two states: 0 or 1. Alternatively, the memory cells may be operated to store more than two detectable levels of charge in each charge storage element or region, thereby to store more than one bit of data in each. This latter configuration is referred to as multi-level cell (MLC) memory. For example, MLC memory may store four states and can retain two bits of data: 00 or 01 and 10 or 11. Both types of memory cells may be used in a memory, for example binary SLC flash memory may be used for caching data and MLC memory may be used for longer term storage. The charge storage elements of the memory cells are most commonly conductive floating gates but may alternatively be non-conductive dielectric charge trapping material. In implementations of MLC memory operated to store two bits of data in each memory cell, each memory cell is configured to store four levels of charge corresponding to values of “11,” “01,” “10,” and “00.” Each bit of the two bits of data may represent a page bit of a lower page or a page bit of an upper page, where the lower page and upper page span across a series of memory cells sharing a common word line. Typically, the less significant bit of the two bits of data represents a page bit of a lower page and the more significant bit of the two bits of data represents a page bit of an upper page.
Additional exemplary algorithms may utilize certain functions of the memory for system customization. The functions may include subroutines that perform functions or provide certain information about the memory being tested. In one embodiment, low level application program interfaces (“APIs”) may be performed for extracting certain information. The APIs may be considered to be NAND parameters 602. For example, there may be buffer manipulation routines, such as AllocateBuffer, FillBuffer, CombineBuffer, FillBufferPattern, FillBufferRandom, and/or DestroyBuffer. NAND “if” control routines may include StatusRead, GetID, Reset, Erase, ErasePlaneInterleave, Read, ReadPlaneInterleave, ChipEnable, NandDataOut, ReadCont, Program, and/or ProgramPlanInterleave. A result log may include results from error testing, such as LogErrorLog, BadBlocks, and/or BadColumn. There may also be high level APIs may be from once the test is generated. Exemplary high level APIs may include SinglePageRead, SingleBlockRead, IntermedaiteBlockRead, FullBlockRaed, SinglePageProgram, IntermedaitepageProgram, FullPageProgram, SingleBlockErase, IntermediateBlockErase, FullBlockErase, CompareSinglePage, CompareIntermediatePage, CompareFullPage, CompareSingleBuff, GetFactoryBadBlocks, and/or GetFactoryBadColumn.
The benefit of the two word line test in
A “computer-readable medium,” “machine readable medium,” “propagated-signal” medium, and/or “signal-bearing medium” may comprise any device that includes, stores, communicates, propagates, or transports software for use by or in connection with an instruction executable system, apparatus, or device. The machine-readable medium may selectively be, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. A non-exhaustive list of examples of a machine-readable medium would include: an electrical connection “electronic” having one or more wires, a portable magnetic or optical disk, a volatile memory such as a Random Access Memory “RAM”, a Read-Only Memory “ROM”, an Erasable Programmable Read-Only Memory (EPROM or Flash memory), or an optical fiber. A machine-readable medium may also include a tangible medium upon which software is printed, as the software may be electronically stored as an image or in another format (e.g., through an optical scan), then compiled, and/or interpreted or otherwise processed. The processed medium may then be stored in a computer and/or machine memory.
In an alternative embodiment, dedicated hardware implementations, such as application specific integrated circuits, programmable logic arrays and other hardware devices, can be constructed to implement one or more of the methods described herein. Applications that may include the apparatus and systems of various embodiments can broadly include a variety of electronic and computer systems. One or more embodiments described herein may implement functions using two or more specific interconnected hardware modules or devices with related control and data signals that can be communicated between and through the modules, or as portions of an application-specific integrated circuit. Accordingly, the present system encompasses software, firmware, and hardware implementations.
The illustrations of the embodiments described herein are intended to provide a general understanding of the structure of the various embodiments. The illustrations are not intended to serve as a complete description of all of the elements and features of apparatus and systems that utilize the structures or methods described herein. Many other embodiments may be apparent to those of skill in the art upon reviewing the disclosure. Other embodiments may be utilized and derived from the disclosure, such that structural and logical substitutions and changes may be made without departing from the scope of the disclosure. Additionally, the illustrations are merely representational and may not be drawn to scale. Certain proportions within the illustrations may be exaggerated, while other proportions may be minimized. Accordingly, the disclosure and the figures are to be regarded as illustrative rather than restrictive.