Storage device with embedded firmware repair mechanism
By embedding firmware repair instructions in the flash storage device, the embedded firmware repair mechanism eREM solves the problem that conventional flash storage devices cannot repair firmware errors, improves the robustness and flexibility of the firmware, and ensures the reliability of the storage device. Initializes and runs normally.
Patent Information
- Application Number
- CN202180001157.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-03-30
AI Technical Summary
Conventional flash memory devices cannot repair firmware errors during initialization, leading to possible failures and robustness issues.
The embedded firmware repair mechanism eREM is introduced to ensure the robustness and flexibility of the firmware by embedding firmware repair instructions in the memory cell array and using the control logic unit to repair the firmware during the power-on reset initialization process.
Effectively repair firmware defects, alleviate the strict requirements of firmware in the initialization process, improve the flexibility and robustness of firmware code, and ensure the normal operation of flash memory devices.
Smart Images

Figure CN113228189B
Abstract
Description
Background Art
[0001] The present disclosure relates to a memory device and a method of operating the same.
[0002] Flash memory is a low-cost, high-density, non-volatile solid-state storage medium that can be electrically erased and reprogrammed. Flash memory includes NOR flash memory or NAND flash memory. When the flash memory device is powered on, certain initialization operations are performed before normal data read / write is performed. Such initialization operations are often performed by executing instructions stored as firmware on a read-only memory (ROM) device. Conventional flash memory devices do not have the ability to repair faulty firmware during the power-on process. As a result, if the firmware contains errors, such errors cannot be properly mitigated or corrected, resulting in failure of the flash memory device. Summary of the invention
[0003] In one aspect, a memory device includes a nonvolatile memory storing firmware, a control logic unit coupled to the nonvolatile memory, and a memory cell array coupled to the control logic unit, the memory cell array being embedded with instructions executable by the control logic unit. The control logic unit is configured to perform a power-on reset (POR) initialization operation to control initialization of the memory device based on the firmware, repair the firmware based on execution of the instructions embedded on the memory cell array, and perform the remaining POR initialization operations based on the repaired firmware.
[0004] In another aspect, a system includes a memory device configured to store data, and a memory controller coupled to the memory device and configured to control the memory device. The memory device includes a non-volatile memory storing firmware, a control logic unit coupled to the non-volatile memory, and a memory cell array coupled to the control logic unit, the memory cell array being embedded with instructions executable by the control logic unit. The control logic unit is configured to perform a power-on reset (POR) initialization operation to control the initialization of the memory device based on the firmware, repair the firmware based on the execution of the instructions embedded on the memory cell array, and perform the remaining POR initialization operations based on the repaired firmware.
[0005] In yet another aspect, a method for initializing a memory device is provided. The memory device includes a nonvolatile memory storing firmware, a control logic unit coupled to the nonvolatile memory, and a memory cell array coupled to the control logic unit and embedded with instructions for repairing the firmware. The method includes: performing a power-on reset (POR) initialization operation by the control logic unit; repairing the firmware by the control logic unit based on the execution of the instructions embedded on the memory cell array; and performing the remaining POR initialization operations by the control logic unit based on the repaired firmware. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate aspects of the disclosure and, together with the description, further serve to explain the principles of the disclosure and enable one skilled in the relevant art to make and use the disclosure.
[0007] Figure 1 A block diagram of an exemplary system having a memory device according to some aspects of the present disclosure is shown.
[0008] Figure 2A A diagram of an exemplary memory card having a storage device according to some aspects of the present disclosure is shown.
[0009] Figure 2B A diagram of an exemplary solid state drive (SSD) having a storage device according to some aspects of the present disclosure is shown.
[0010] Figure 3 A schematic diagram of an exemplary memory device including peripheral circuits according to some aspects of the present disclosure is shown.
[0011] Figure 4 A block diagram of an exemplary memory device including a memory cell array and peripheral circuits according to some aspects of the present disclosure is shown.
[0012] Figure 5 A block diagram of an example memory device implementing a firmware repair mechanism according to some aspects of the present disclosure is shown.
[0013] Figure 6 A flow chart of an exemplary method for initializing a storage device having a firmware repair mechanism according to some aspects of the present disclosure is shown.
[0014] The present disclosure will be described with reference to the accompanying drawings. DETAILED DESCRIPTION
[0015] Although specific configurations and arrangements have been discussed, it should be understood that this is for illustrative purposes only. As such, other configurations and arrangements may be used without departing from the scope of the present disclosure. Moreover, the present disclosure may also be employed in a variety of other applications. Functions and structural features as described in the present disclosure may be combined, adjusted, and modified with one another, and in a manner not specifically depicted in the accompanying drawings, combined, adjusted, and modified so that these combinations, adjustments, and modifications are within the scope of the present disclosure.
[0016] Typically, terms may be understood at least in part based on use in context. For example, at least in part based on context, the term "one or more" as used herein may be used to describe any feature, structure, or characteristic in a singular sense, or may be used to describe a combination of features, structures, or characteristics in a plural sense. Similarly, at least in part based on context, terms such as "one" or "the" may be equally understood to express singular usage or to express plural usage. In addition, at least in part based on context, the term "based on" may be understood to not necessarily be intended to convey a set of exclusive factors, and may instead allow for the presence of additional factors that are not necessarily clearly described.
[0017] In recent years, due to the low cost and high capacity of flash memory devices, the number of NOR flash memory devices or NAND flash memory devices has increased dramatically. Flash memory is non-volatile and retains data even when power is not supplied. At power-on, an initialization process is performed before normal data read / write operations can be performed. The initialization process is often performed by a data processing device by executing initialization instructions stored as firmware on a read-only memory (ROM) device, which includes non-volatile memory such as erasable programmable read-only memory (EPROM) and electrically erasable programmable read-only memory (EEPROM). However, such firmware initialization instructions may not be optimal, or may contain errors or other forms of defects, which, if not repaired, may lead to the failure of the initialization process, or even the failure of the flash memory device.
[0018] Conventional flash memory does not have the ability to repair firmware during the initialization process. As a result, the design of the firmware needs to be implemented with a greater workload, or the firmware needs to be kept lightweight to maintain the robustness of the initialization process. Certain firmware repair mechanisms can be used to repair this problem to some extent, but they are usually enabled at the end of the initialization process. Therefore, firmware errors that occur in the early stages of the initialization process cannot be repaired.
[0019] In order to solve one or more of the aforementioned problems, the present disclosure introduces an embedded firmware repair mechanism, called eREM, in which firmware repair instructions are embedded in the storage unit and executed by the storage control logic unit in the early stage of the initialization process to repair various forms of firmware defects. For example, eREM can be enabled before register initialization, internal ZQ calibration, and / or temperature sensor initialization. In this way, firmware defects in operation after executing eREM can be repaired, alleviating the strict requirements imposed on the firmware. The firmware code can be made more flexible.
[0020] As used herein, firmware refers to a software program or set of instructions programmed on a non-volatile memory such as a ROM device (e.g., EPROM, EEPROM, etc.). In some embodiments, the ROM device may be part of a peripheral device of a flash memory device. The eREM may be in the form of a software program of an instruction set programmed on a memory cell array of a flash memory device. For example, the eREM may be embedded on the memory cell array (e.g., in a specific location or in a specific form) so that the contents of the eREM may be found during a power-on reset (POR) initialization process. The memory cell array may form the primary storage medium of the flash memory device. The POR initialization process may be performed by a data processing device, which may be part of a peripheral device of a flash memory device. During execution of the POR initialization process, the data processing device may access the memory cell array to load and execute the firmware repair instructions of the eREM to repair the firmware.
[0021] Figure 1 A block diagram of an exemplary system 100 having a storage device according to some aspects of the present disclosure is shown. The system 100 may be a mobile phone, a desktop computer, a laptop computer, a tablet computer, a vehicle-mounted computer, a game console, a printer, a positioning device, a wearable electronic device, a smart sensor, a virtual reality (VR) device, an augmented reality (AR) device, or any other suitable electronic device having a storage device therein. Figure 1 As shown in , the system 100 may include a host 108 and a storage system 102, the storage system 102 having one or more storage devices 104 and a storage controller 106. The host 108 may be a processor of an electronic device, such as a central processing unit (CPU), or a system on a chip (SoC), such as an application processor (AP). The host 108 may be configured to send or receive data to or from the storage device 104.
[0022] The memory device 104 may be any memory device disclosed in the present disclosure. As described in detail below, the memory device 104, such as a NAND flash memory device, may include an eREM configured to repair firmware during a POR initialization process.
[0023] According to some embodiments, the storage controller 106 is coupled to the storage device 104 and the host 108, and is configured to control the storage device 104. The storage controller 106 can manage data stored in the storage device 104 and communicate with the host 108. In some embodiments, the storage controller 106 is designed to operate in a low duty cycle environment, such as a secure digital (SD) card, a compact flash (CF) card, a universal serial bus (USB) flash drive, or other media used in electronic devices such as personal computers, digital cameras, mobile phones, etc. In some embodiments, the storage controller 106 is designed to operate in a high duty cycle environment, such as an SSD or an embedded multimedia card (eMMC), which is used as a data storage device for mobile devices such as smart phones, tablets, laptops, etc. and enterprise storage arrays. The storage controller 106 can be configured to control the operation of the storage device 104, such as read, erase, and program operations. The storage controller 106 may also be configured to manage various functions related to data stored or to be stored in the storage device 104, including but not limited to bad block management, garbage collection, logical to physical address translation, wear leveling, etc. In some embodiments, the storage controller 106 is also configured to process error correction code (ECC) related to data read from or written to the storage device 104. Any other suitable functions may also be performed by the storage controller 106, such as formatting the storage device 104. The storage controller 106 may communicate with an external device (e.g., a host 108) according to a specific communication protocol. For example, the storage controller 106 may communicate with an external device through at least one of various interface protocols, such as a USB protocol, an MMC protocol, a peripheral component interconnect (PCI) protocol, a high-speed PCI (PCI-E) protocol, an advanced technology attachment (ATA) protocol, a serial ATA protocol, a parallel ATA protocol, a small computer small interface (SCSI) protocol, an enhanced small disk interface (ESDI) protocol, an integrated drive electronics (IDE) protocol, a Firewire protocol, etc.
[0024] The storage controller 106 and the one or more storage devices 104 may be integrated into various types of storage devices, for example, included in the same package (e.g., a universal flash storage (UFS) package or an eMMC package). That is, the storage system 102 may be implemented and packaged into different types of final electronic products. Figure 2AIn one example shown in FIG. 1 , the storage controller 106 and the single storage device 104 may be integrated into a memory card 202. The memory card 202 may include a PC card (PCMCIA, Personal Computer Memory Card International Association), a CF card, a Smart Media (SM) card, a memory stick, a multimedia card (MMC, RS-MMC, MMCmicro), an SD card (SD, miniSD, microSD, SDHC), UFS, etc. The memory card 202 may also include a processor that connects the memory card 202 to a host (e.g., Figure 1 The host 108 in the memory card connector 204 is coupled. Figure 2B In another example shown in FIG. 1 , the storage controller 106 and the plurality of storage devices 104 may be integrated into an SSD 206. The SSD 206 may also include a processor that interfaces the SSD 206 with a host (e.g., Figure 1 In some implementations, the storage capacity and / or operating speed of the SSD 206 is higher than the storage capacity and / or operating speed of the memory card 202.
[0025] Figure 3 1 is a schematic circuit diagram of an exemplary memory device 300 including peripheral circuits according to some aspects of the present disclosure. The memory device 300 may be Figure 1 300. The memory device 300 may include a memory cell array 301 and a peripheral circuit 302 coupled to the memory cell array 301. The memory cell array 301 may be a NAND flash memory cell array, wherein the memory cells 306 are provided in the form of an array of NAND memory strings 308 that all extend vertically above a substrate (not shown). In some embodiments, each NAND memory string 308 includes a plurality of memory cells 306 coupled in series and stacked vertically. Each memory cell 306 is capable of holding a continuous analog value, such as a voltage or charge, which depends on the number of electrons trapped in the region of the memory cell 306. Each memory cell 306 may be a floating gate type memory cell including a floating gate transistor, or may be a charge trapping type memory cell including a charge trapping transistor.
[0026] In some embodiments, each memory cell 306 is a single-level cell (SLC) having two possible storage states and thus capable of storing one bit of data. For example, a first storage state "0" may correspond to a first range of voltages, and a second storage state "1" may correspond to a second range of voltages. In some embodiments, each memory cell 306 is a multi-level cell (MLC) capable of storing more than one bit of data in four or more storage states. For example, an MLC is capable of storing two bits per cell, three bits per cell (also known as a three-level cell (TLC)), or four bits per cell (also known as a quad-level cell (QLC)). Each MLC can be programmed to assume a range of possible nominal storage values. In one example, if each MLC stores two bits of data, the MLC can be programmed from an erased state to assume one of three possible programming levels by writing one of the three possible nominal storage values to the cell. A fourth nominal storage value may be used for an erased state.
[0027] like Figure 3 As shown in , each NAND memory string 308 may include a source select gate (SSG) transistor 310 at its source terminal end and a drain select gate (DSG) transistor 312 at its drain terminal end. The SSG transistor 310 and the DSG transistor 312 may be configured to activate a selected NAND memory string 308 (column of the array) during read and program operations. In some embodiments, for example, the SSG transistors 310 of the NAND memory strings 308 in the same block 304 are coupled to ground through the same source line (SL) 314 (e.g., a common SL). According to some embodiments, the DSG transistor 312 of each NAND memory string 308 is coupled to a corresponding bit line 316, and data can be read or written from the corresponding bit line 316 via an output bus (not shown). In some embodiments, each NAND memory string 308 is configured to be selected or deselected by applying a select voltage (e.g., above the threshold voltage of the DSG transistor 312) or a deselect voltage (e.g., 0 V) to the gate of the corresponding DSG transistor 312 via one or more DSG lines 313 and / or by applying a select voltage (e.g., above the threshold voltage of the SSG transistor 310) or a deselect voltage (e.g., 0 V) to the gate of the corresponding SSG transistor 310 via one or more SSG lines 315.
[0028] like Figure 3As shown in , the NAND memory strings 308 can be organized into multiple blocks 304, each of which can have a common source line 314. In some embodiments, each block 304 is a basic data unit for erase operations, that is, all memory cells 306 on the same block 304 are erased at the same time. The memory cells 306 of adjacent NAND memory strings 308 can be coupled by word lines 318, which select which row of memory cells 306 are affected by read and program operations. In some embodiments, each word line 318 is coupled to a page 320 of memory cells 306, which is a basic data unit for programming operations. The size of a page 320 measured in bits can be related to the number of NAND memory strings 308 coupled by a word line 318 in a block 304. Each word line 318 can include a plurality of control gates (gate electrodes) at each memory cell 306 in a corresponding page 320 and a gate line coupling the control gates.
[0029] In some embodiments, the firmware repair instructions may be embedded in certain locations of the memory cell array 301. For example, the firmware repair instructions may be stored in one or more blocks 304, etc. In some embodiments, the location of the firmware repair instructions may be stored in (one or more) registers (e.g., Figure 4 In some embodiments, the location of the firmware repair instructions may be dynamically updated depending on the health of the blocks, columns, and / or rows of the memory cell array 301, in registers 414 in, on a ROM storing the firmware, or in any other suitable place accessed during the POR initialization process.
[0030] The peripheral circuit 302 may be coupled to the memory cell array 301 via the bit line 316, the word line 318, the source line 314, the SSG line 315, and the DSG line 313. The peripheral circuit 302 may include any suitable analog, digital, and mixed signal circuits for facilitating the operation of the memory cell array 301 by applying and sensing voltage signals and / or current signals to and from each target memory cell 306 via the bit line 316, the word line 318, the source line 314, the SSG line 315, and the DSG line 313. The peripheral circuit 302 may include various types of peripheral circuits formed using metal-oxide-semiconductor (MOS) technology. For example, Figure 4 Some exemplary peripheral circuits 302 are shown, including page buffers / sense amplifiers 404, column decoders / bit line drivers 406, I / O circuits 407, row decoders / word line drivers 408, voltage generators 410, control logic units 412, registers 414, interfaces 416, and data buses 418. It should be understood that other peripheral circuits may also include Figure 4 Additional peripheral circuits not shown.
[0031] The page buffer / sense amplifier 404 may be configured to read and program (write) data from and to the memory cell array 301 according to control signals from the control logic unit 412. In one example, the page buffer / sense amplifier 404 may store a page of programming data (write data) to be programmed into one page 320 of the memory cell array 301. In another example, the page buffer / sense amplifier 404 may perform a program verification operation to ensure that the data has been correctly programmed into the memory cell 306 coupled to the selected word line 318. In yet another example, the page buffer / sense amplifier 404 may also sense a low-power signal representing a data bit stored in the memory cell 306 from the bit line 316 in a read operation and amplify the small voltage swing to a recognizable logic level.
[0032] The column decoder / bit line driver 406 may be configured to be controlled by the control logic unit 412, and to select one or more NAND memory strings 308 by applying a bit line voltage generated by the voltage generator 410. The I / O circuit 407 may be coupled to the page buffer / sense amplifier 404 and / or the column decoder / bit line driver 406, and configured to direct (route) data input from the data bus 418 to a desired memory cell region (e.g., a memory bank) of the memory cell array 301, and direct (route) data output from the desired memory cell region to the data bus 418.
[0033] The row decoder / word line driver 408 may be configured to be controlled by the control logic unit 412, and select the block 304 of the memory cell array 301 and the word line 318 of the selected block 304. The row decoder / word line driver 408 may also be configured to drive the selected word line 318 using the word line voltage generated by the voltage generator 410. The voltage generator 410 may be configured to be controlled by the control logic unit 412, and generate the word line voltage (e.g., read voltage, program voltage, pass voltage, local voltage, and verification voltage) to be provided to the memory cell array 301.
[0034] The control logic unit 412 may be coupled to each peripheral circuit described above and configured to control the operation of each peripheral circuit. The register 414 may be coupled to the control logic unit 412 and include a status register, a command register, and an address register to store status information, a command operation code (OP code), and a command address for controlling the operation of each peripheral circuit. For example, the register 414 may store the address of the firmware repair instruction of the eREM so that the control logic unit can access the firmware repair instruction during the POR initialization process. The interface 416 may be coupled to the control logic unit 412 and act as a control buffer to buffer the control command received from the host (not shown) and forward it to the control logic unit 412, and buffer the status information received from the control logic unit 412 and forward it to the host. The interface 416 may also be coupled to the I / O circuit 407 via the data bus 418 and act as a data I / O interface and a data buffer, thereby buffering the write data received from the host (not shown) and forwarding it to the I / O circuit 407, and buffering the read data from the I / O circuit 407 and forwarding it to the host. For example, interface 416 may include a data I / O 417 coupled to a data bus 418 .
[0035] Figure 5 FIG. 2 shows exemplary components for implementing eREM during a POR initialization process for repairing firmware according to an embodiment of the present disclosure. Figure 5 As shown in , non-volatile memory 510 (e.g., ROM device, hereinafter referred to as ROM510) can store firmware that facilitates the POR initialization process. Control logic unit 412 can be coupled to ROM 510 and execute firmware to initialize storage device 300. eREM 520 can be embedded on storage cell array 301. eREM 520 may include firmware repair instructions that can be accessed by control logic unit 412 during the POR initialization process. For example, the address of eREM 520 can be stored in register 414, ROM 510, or other suitable non-volatile memory. During the POR initialization process, control logic unit 412 can read the address of eREM 520 from register 414, ROM 510, etc., locate eREM 520 on storage cell array 301, and load firmware repair instructions from eREM 520 for execution.
[0036] In some embodiments, the memory device 300 may include a temperature sensor 530 for sensing the temperature of the memory device 300. It is noted that the temperature sensor 530, other similar on-die sensors, and the ROM 510 may be part of the peripheral circuit 302. The temperature sensor 530 and other similar on-die sensors may be initialized during the POR initialization process. For example, the firmware stored in the ROM 510 may include code for initializing the temperature sensor 530 and other similar sensors. After the eREM 520 is implemented, the initialization of the temperature sensor 530 and other similar sensors may be performed after the firmware repair instructions of the eREM 520 are executed. In this way, errors and / or defects in the initialization of the temperature sensor 530 and other similar sensors in the firmware may be repaired before the temperature sensor 530 and other similar sensors are initialized. Other POR initialization operations that may benefit from repairing the firmware include, for example, register initialization operations of initializing the register 414, internal ZQ calibration operations, and the like.
[0037] In some embodiments, the control logic unit 412 may access the memory cell array 301 during the POR initialization process and locate the eREM 520. The firmware repair instructions of the eREM 520 may then be transmitted to the control logic unit 412. After the control logic unit 412 receives the firmware repair instructions, the control logic unit 412 may execute the firmware repair instructions to implement various firmware repair functions.
[0038] For example, the control logic unit 412 can execute a firmware repair instruction to generate an optimized firmware code. The firmware code stored in the ROM 510 can be standardized between multiple storage devices. However, due to defects during the chip manufacturing process, operating environment, etc., individual storage devices may be different. It is difficult for standard firmware to properly cope with such changes. The firmware repair instructions of eREM520 can optimize the firmware code according to the characteristics of the individual storage device to alleviate this problem. The optimization of the firmware code can also include correcting defects in the initial firmware. For example, errors and / or defects in the initial firmware stored in ROM 510 may cause the failure of certain operations during the POR initialization process. The firmware repair instructions of eREM520 provide protection against such errors / defects.
[0039] In some embodiments, the control logic unit 412 can repair the firmware stored in the ROM 510 by updating at least a portion of the firmware with the optimized firmware code. For example, the control logic unit 412 can add new code segments to the firmware, delete existing code segments from the firmware, and / or replace one or more code segments in the firmware with different segments. For example, the control logic unit 412 can activate a programming mode of the ROM 510 to change the firmware stored in the ROM 510. In some embodiments, a new version of the firmware can be stored in the ROM 510 as long as the repair operation is performed.
[0040] In some embodiments, certain operations of the POR initialization process (e.g., accessing and subsequently executing firmware repair instructions of the eREM 520) may be performed before enabling the eREM 520. For example, a bad block reset operation may be performed before enabling the eREM 520. In another example, a bad column repair operation may be performed before enabling the eREM 520. It is to be understood that the type and number of operations performed before enabling the eREM 520 may vary in different examples. In general, it may be beneficial to enable the eREM 520 in the early stages of the POR initialization process to provide firmware repair functionality to subsequent POR initialization operations.
[0041] The control logic unit 412 may be implemented by a microprocessor, a microcontroller (also known as a microcontroller unit (MCU)), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a programmable logic device (PLD), a state machine, a gated logic unit, a discrete hardware circuit, and other suitable hardware, firmware, and / or software configured to perform various functions described in detail below. In some embodiments, one or more functions of the control logic unit 412 described above may be implemented using a content addressable memory (CAM).
[0042] Figure 6 A flowchart of an exemplary method 600 for initializing a storage device having a firmware repair mechanism according to some aspects of the present disclosure is shown. The storage device may be any suitable storage device disclosed herein. The method 600 may be implemented by the control logic unit 412. It should be understood that the operations shown in the method 600 may not be exclusive, and other operations may be performed before, after, or between any of the operations shown. In addition, the operations may be performed simultaneously or in conjunction with the operations shown. Figure 6 Some of the operations are performed in different orders as shown.
[0043] refer to Figure 6The method 600 begins at operation 610, where the control logic unit 412 may perform a bad block reset operation to reset the bad block flag. The bad block reset operation may be one of the POR initialization operations performed by the control logic unit 412 during the POR initialization process.
[0044] At operation 620, the control logic unit 412 may perform a bad column repair operation to repair the bad column(s). The bad column repair operation may be one of the POR initialization operations performed by the control logic unit 412 during the POR initialization process.
[0045] At operation 630, the control logic unit 412 may access the firmware repair instruction embedded on the memory cell array (eg, the memory cell array 301). For example, the control logic unit 412 may access the eREM 520 and receive the firmware repair instruction of the eREM 520 for execution.
[0046] At operation 640, the control logic unit 412 may repair the firmware (e.g., the firmware stored in the ROM 510) based on the execution of the firmware repair instruction. For example, after receiving the firmware repair instruction, the control logic unit 412 may execute the firmware repair instruction to generate an optimized firmware code and update at least a portion of the firmware using the optimized firmware code, as described above in conjunction with Figure 5 described.
[0047] At operation 650, the control logic unit 412 may perform one or more remaining POR initialization operations based on the repaired firmware. Exemplary remaining POR initialization operations include, for example, a register initialization operation for initializing the register 414, an internal ZQ calibration operation, and a temperature sensor initialization operation.
[0048] According to one aspect of the present disclosure, a memory device includes a nonvolatile memory storing firmware, a control logic unit coupled to the nonvolatile memory, and a memory cell array coupled to the control logic unit, the memory cell array being embedded with instructions executable by the control logic unit. The control logic unit is configured to perform a power-on reset (POR) initialization operation to control the initialization of the memory device based on the firmware, repair the firmware based on the execution of the instructions embedded on the memory cell array, and perform the remaining POR initialization operations based on the repaired firmware.
[0049] In some implementations, the control logic unit is configured to access the memory cell array during initialization of the memory device and receive instructions embedded on the memory cell array for execution.
[0050] In some implementations, the control logic unit is configured to generate optimized firmware code based on execution of the instructions.
[0051] In some implementations, the control logic unit is configured to repair the firmware by updating at least a portion of the firmware using the optimized firmware code.
[0052] In some implementations, updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; or replacing one or more segments of the firmware with a different segment.
[0053] In some implementations, the POR initialization operation includes a bad block reset operation.
[0054] In some implementations, the POR initialization operation includes a bad column repair operation.
[0055] In some implementations, the remaining POR initialization operations include register initialization operations.
[0056] In some implementations, the remaining POR initialization operations include internal ZQ calibration operations.
[0057] In some implementations, the remaining POR initialization operations include temperature sensor initialization operations.
[0058] In some implementations, the non-volatile memory includes a programmable read-only memory.
[0059] In some embodiments, the memory device includes a three-dimensional (3D) NAND memory device.
[0060] According to another aspect of the present disclosure, a system includes a memory device configured to store data, and a memory controller coupled to the memory device and configured to control the memory device. The memory device includes a non-volatile memory storing firmware, a control logic unit coupled to the non-volatile memory, and a memory cell array coupled to the control logic unit, the memory cell array being embedded with instructions executable by the control logic unit. The control logic unit is configured to perform a power-on reset (POR) initialization operation to control the initialization of the memory device based on the firmware, repair the firmware based on the execution of the instructions embedded on the memory cell array, and perform the remaining POR initialization operations based on the repaired firmware.
[0061] In some implementations, the system includes a host coupled to the storage controller and configured to send or receive data.
[0062] In some implementations, the control logic unit is configured to access the memory cell array during initialization of the memory device and receive instructions embedded on the memory cell array for execution.
[0063] In some implementations, the control logic unit is configured to generate optimized firmware code based on execution of the instructions.
[0064] In some embodiments, the control logic unit is configured to repair the firmware by updating at least a portion of the firmware using the optimized firmware code.
[0065] In some implementations, updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; or replacing one or more segments of the firmware with a different segment.
[0066] In some implementations, the POR initialization operation includes a bad block reset operation.
[0067] In some implementations, the POR initialization operation includes a bad column repair operation.
[0068] In some implementations, the remaining POR initialization operations include register initialization operations.
[0069] In some implementations, the remaining POR initialization operations include internal ZQ calibration operations.
[0070] In some implementations, the remaining POR initialization operations include temperature sensor initialization operations.
[0071] In some implementations, the non-volatile memory includes a programmable read-only memory.
[0072] In some embodiments, the memory device includes a three-dimensional (3D) NAND memory device.
[0073] According to another aspect of the present disclosure, a method for initializing a memory device is provided. The memory device includes a non-volatile memory storing firmware, a control logic unit coupled to the non-volatile memory, and a memory cell array coupled to the control logic unit and embedded with instructions for repairing the firmware. The method includes: performing at least one power-on reset (POR) initialization operation by the control logic unit; repairing the firmware by the control logic unit based on the execution of the instructions embedded on the memory cell array; and performing one or more remaining POR initialization operations by the control logic unit based on the repaired firmware.
[0074] In some embodiments, the method includes: accessing a memory cell array by a control logic unit; and receiving, by the control logic unit, instructions embedded on the memory cell array for execution.
[0075] In some implementations, the method includes generating optimized firmware code based on the execution of the instructions.
[0076] In some implementations, the method includes repairing the firmware by updating at least a portion of the firmware using the optimized firmware code.
[0077] In some implementations, updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; or replacing one or more segments of the firmware with a different segment.
[0078] In some implementations, performing a POR initialization operation includes performing a bad block reset operation.
[0079] In some implementations, performing the POR initialization operation includes performing a bad column repair operation.
[0080] In some implementations, performing the remaining POR initialization operations includes performing register initialization operations.
[0081] In some implementations, performing the remaining POR initialization operations includes performing an internal ZQ calibration operation.
[0082] In some implementations, performing the remaining POR initialization operations includes performing a temperature sensor initialization operation.
[0083] The foregoing description of specific embodiments can be readily modified and / or adapted for various applications. Therefore, such adaptations and modifications are intended to fall within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance provided herein.
[0084] The breadth and scope of the present disclosure should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Claims
1. A storage device, comprising: a non-volatile memory storing firmware; a control logic unit coupled to the non-volatile memory; as well as a memory cell array coupled to the control logic unit, the memory cell array embedding instructions executable by the control logic unit; Wherein, the control logic unit is configured as: performing a power-on reset (POR) initialization operation to control initialization of the memory device based on the firmware; repairing the firmware based on execution of the instructions embedded on the memory cell array; performing remaining power-on reset initialization operations based on the repaired firmware; and An optimized firmware code is generated based on the execution of the instructions, wherein the optimized firmware code is generated according to characteristics of the memory cell array.
2. The memory device according to claim 1, wherein: The control logic unit is configured to: accessing the memory cell array during the initialization of the memory device; and Instructions embedded on the memory cell array are received for execution.
3. The memory device according to claim 1, wherein: The control logic unit is configured to: The firmware is repaired by updating at least a portion of the firmware using the optimized firmware code.
4. The memory device according to claim 3, wherein: Updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; Or replace one or more sections of the firmware with different sections.
5. The memory device according to any one of claims 1 to 4, wherein: The POR initialization operation includes a bad block reset operation.
6. The memory device according to any one of claims 1 to 4, wherein: The POR initialization operation includes a bad column repair operation.
7. The memory device according to any one of claims 1 to 4, wherein: The remaining POR initialization operations include register initialization operations.
8. The memory device according to any one of claims 1 to 4, wherein: The remaining POR initialization operations include internal ZQ calibration operations.
9. The memory device according to any one of claims 1 to 4, wherein: The remaining POR initialization operations include a temperature sensor initialization operation.
10. The memory device according to any one of claims 1 to 4, wherein: The non-volatile memory includes a programmable read-only memory.
11. The memory device according to any one of claims 1 to 4, wherein: The memory device includes a three-dimensional (3D) NAND memory device.
12. A system comprising: A storage device, the storage device being configured to store data, the storage device comprising: a non-volatile memory storing firmware; a control logic unit coupled to the non-volatile memory; and a memory cell array coupled to the control logic unit, the memory cell array embedding instructions executable by the control logic unit; Wherein, the control logic unit is configured as: performing a power-on reset (POR) initialization operation to control initialization of the memory device based on the firmware; repairing the firmware based on execution of the instructions embedded on the memory cell array; performing remaining power-on reset initialization operations based on the repaired firmware; and generating optimized firmware code based on the execution of the instructions, wherein the optimized firmware code is generated according to characteristics of the memory cell array; and A memory controller is coupled to the memory device and is configured to control the memory device.
13. The system of claim 12, further comprising a host coupled to the storage controller and configured to send or receive the data.
14. The system according to claim 12 or 13, wherein: The control logic unit is configured to: accessing the memory cell array during the initialization of the memory device; and Instructions embedded on the memory cell array are received for execution.
15. The system of claim 12, wherein: The control logic unit is configured to: The firmware is repaired by updating at least a portion of the firmware using the optimized firmware code.
16. The system of claim 15, wherein: Updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; Or replace one or more sections of the firmware with different sections.
17. The system according to claim 12 or 13, wherein: The POR initialization operation includes a bad block reset operation.
18. The system according to claim 12 or 13, wherein: The POR initialization operation includes a bad column repair operation.
19. The system according to claim 12 or 13, wherein: The remaining POR initialization operations include register initialization operations.
20. The system according to claim 12 or 13, wherein: The remaining POR initialization operations include internal ZQ calibration operations.
21. The system according to claim 12 or 13, wherein: The remaining POR initialization operations include a temperature sensor initialization operation.
22. The system according to claim 12 or 13, wherein: The non-volatile memory includes a programmable read-only memory.
23. The system according to claim 12 or 13, wherein: The memory device includes a three-dimensional (3D) NAND memory device.
24. A method for initializing a storage device, the storage device comprising a non-volatile memory storing firmware, a control logic unit coupled to the non-volatile memory, and a storage cell array coupled to the control logic unit and embedded with instructions for repairing the firmware, the method comprising: The control logic unit performs a power-on reset (POR) initialization operation; repairing the firmware by the control logic unit based on execution of the instructions embedded on the memory cell array; The control logic unit performs the remaining power-on reset initialization operations based on the repaired firmware; as well as An optimized firmware code is generated based on the execution of the instructions, wherein the optimized firmware code is generated according to characteristics of the memory cell array.
25. The method according to claim 24, further comprising: Accessing the storage cell array by the control logic unit; as well as The instructions embedded on the memory cell array are received by the control logic unit for execution.
26. The method of claim 24, further comprising: The firmware is repaired by updating at least a portion of the firmware using the optimized firmware code.
27. The method according to claim 26, wherein: Updating at least a portion of the firmware includes at least one of: adding a new segment to the firmware; deleting an existing segment of the firmware; Or replace one or more sections of the firmware with different sections.
28. The method according to any one of claims 24 to 27, wherein: Executing the POR initialization operation includes executing a bad block reset operation.
29. The method according to any one of claims 24 to 27, wherein: Executing the POR initialization operation includes executing a bad column repair operation.
30. The method according to any one of claims 24 to 27, wherein: Executing the remaining POR initialization operations includes executing register initialization operations.
31. The method according to any one of claims 24 to 27, wherein: Executing the remaining POR initialization operations includes performing an internal ZQ calibration operation.
32. The method according to any one of claims 24 to 27, wherein: Executing the remaining POR initialization operations includes executing a temperature sensor initialization operation.
