Memory controller with common request buffer
By introducing a common request buffer in the memory controller to manage requests for non-volatile memory, the problems of request conflicts and data errors in the prior art are solved, and memory operations with high processing volume and low latency are realized.
Patent Information
- Application Number
- CN202410011070.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-27
- Filing Date
- 2024-01-04
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology is difficult to effectively manage requests in non-volatile memories (such as MRAM), resulting in request conflicts and data errors. Moreover, the control circuit of volatile memories is not suitable for the characteristics of non-volatile memories, making it difficult to achieve high processing throughput. and low latency.
A common request buffer is used to manage host requests and media management requests. By creating corresponding entries in the buffer, the request is moved from the common request queue to the buffer, and deleted or rewritten after the request is completed to avoid request conflicts and Only entries for outstanding requests exist in the buffer.
It effectively avoids request conflicts, improves the processing efficiency and delay performance of non-volatile memory, adapts to the characteristics of non-volatile memory, and improves the stability and reliability of the system.
Smart Images

Figure CN118626003A_ABST
Abstract
Description
[0001] Priority declaration
[0002] This patent application claims priority to U.S. Provisional Patent Application No. 63 / 489,615, filed by Zhang et al. on March 10, 2023, and entitled “MEMORY CONTROLLERWITH COMMON REQUEST BUFFER,” which is incorporated herein by reference in its entirety. Background Art
[0003] Memory is widely used in various electronic devices, such as cellular phones, digital cameras, personal digital assistants, medical electronics, mobile computing devices, non-mobile computing devices, and data servers. Memory may include non-volatile memory or volatile memory. Non-volatile memory allows information to be stored and retained even when the non-volatile memory is not connected to a power source (e.g., a battery). Although volatile memory (e.g., dynamic random access memory or DRAM) has generally been used for specific applications with low latency and high throughput requirements, some types of non-volatile memory (sometimes referred to as "emerging memory" or "storage class memory") can be configured to meet such requirements and can also be used.
[0004] The nonvolatile memory cells may reside in a cross-point nonvolatile memory array. In a nonvolatile memory array having a cross-point architecture, a first set of conductive lines extends across the surface of a substrate, and a second set of conductive lines is formed above the first set of conductive lines, extending above the substrate in a direction perpendicular to the first set of conductive lines. The memory cells are located at the cross-point junctions of the two sets of conductive lines.
[0005] Reversible resistivity memory cells are formed of a material with programmable resistance. In a binary approach, the memory cell at each intersection can be programmed to one of two resistance states (a high resistance state and a low resistance state). In some approaches, more than two resistance states can be used. One type of reversible resistivity memory cell is a magnetoresistive random access memory (MRAM) cell. MRAM cells use magnetization to represent stored data, as opposed to some other memory technologies that use charge to store data. Data bits are written to MRAM cells by changing the magnetization direction of a magnetic element ("free layer") within the MRAM cell, and the bits are read by measuring the resistance of the MRAM cell (low resistance typically represents a "0" bit and high resistance typically represents a "1" bit).
[0006] MRAM and other types of nonvolatile memory are sometimes used in more demanding situations (e.g., with stringent bandwidth and latency requirements) where volatile memory (e.g., DRAM) might have been more commonly used. The requirements for nonvolatile memory can be very different from those for volatile memory, such that control circuits optimized for volatile memory may not be suitable for nonvolatile memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Like numbered elements refer to common parts in different figures.
[0008] Figure 1 is a block diagram of one embodiment of a non-volatile memory system connected to a host.
[0009] Figure 2 is a block diagram of one embodiment of a front end processor circuit. In some embodiments, the front end processor circuit is part of a memory controller.
[0010] Figure 3 is a block diagram of one embodiment of a back-end processor circuit. In some embodiments, the back-end processor circuit is part of a memory controller.
[0011] Figure 4 is a block diagram of one embodiment of a memory package.
[0012] Figure 5 is a block diagram of one embodiment of a memory die.
[0013] Figure 6 is a block diagram of one embodiment of an integrated memory component including a control die and a memory structure die.
[0014] Fig. 7A One embodiment of a portion of a non-volatile memory array forming a cross point architecture is depicted in oblique view.
[0015] Figure 7B and Figure 7C They presented Fig. 7A Side and top views of the junction structure in .
[0016] Fig.7D One embodiment of a portion of a two-level non-volatile memory array forming a cross-point architecture is depicted in oblique view.
[0017] FIG. 8A to FIG. 8B The operation of a memory controller with read and write queues is shown.
[0018] FIG. 9A to FIG. 9B Shown are repeated reads handled by a memory controller with separate read and write queues.
[0019] FIG. 10A to FIG. 10B An example of a memory controller with a common request buffer is shown.
[0020] FIG. 11A to FIG. 11B An example of a memory controller with a common request buffer that handles host write requests is shown.
[0021] FIG. 12A to FIG. 12B An example of a memory controller with a common request buffer that handles host read requests is shown.
[0022] FIG. 13A to FIG. 13B An example of a memory controller with a common request buffer that handles host read requests for data for a UECC is shown.
[0023] FIG. 14A to FIG. 14B An example of a memory controller with a common request buffer that handles host patrol scrub requests is shown.
[0024] FIG. 15A to FIG. 15B An example of a memory controller with a common request buffer that handles host wear leveling requests is shown.
[0025] Fig.16 An example of a method of managing requests using a common request buffer is shown. DETAILED DESCRIPTION
[0026] Disclosed herein is a technology for a control circuit interfacing with a non-volatile memory (e.g., an emerging memory such as MRAM) to efficiently achieve high throughput and low latency in a manner suitable for the characteristics of the non-volatile memory. The control circuit may be configured to receive requests from a host and a front-end component, including host requests (e.g., host read requests and host write requests) and media management requests, and the requests may be placed in a common request queue. A common request buffer is connected to the common request queue, and a request is moved from the common request queue to the common request buffer by creating a corresponding entry in the common request buffer, the entry including information about the request and the status and data of any memory command associated with the request. The entry is maintained at least until the request is completed, and may be deleted or overwritten to make space available in the common request buffer.
[0027] The entries in the common request buffer can be limited to one per address. Before creating an entry in the common request buffer for a new request (e.g., the next request in the common request queue), the address of the new request can be compared with the address of the unfinished entry in the common request buffer. If no match is found, the new request can be obtained from the common request queue, and a corresponding entry is generated in the common request buffer. If a match is found (e.g., there is an entry for the corresponding unfinished request with the same address as the new request in the common request buffer), the new request can be kept in the common request queue, and a new entry can not be generated in the common request buffer until the entry in the common request buffer indicates that the previous request is completed. This arrangement can effectively avoid conflicts between requests.
[0028] In some embodiments, the nonvolatile memory cell is in a cross-point array and is a magnetoresistive random access memory (MRAM) cell. MRAM cells use magnetization to represent stored data, which is contrary to some other memory technologies that use charge to store data. Data bits are written to the MRAM cell by changing the magnetization direction of the magnetic element ("free layer") within the MRAM cell, and the bit is read by measuring the resistance of the MRAM cell (low resistance generally represents a "0" bit and high resistance generally represents a "1" bit). As used herein, the magnetization direction is the direction in which the magnetic moment is oriented relative to a reference direction set by another element of the MRAM ("reference layer"). In some embodiments, low resistance is referred to as a parallel or P state, and high resistance is referred to as an anti-parallel or AP state. MRAM can use the spin transfer torque effect to change the magnetization direction from the P state to the AP state and vice versa, which generally requires a bipolar (bidirectional write) operation to write. In other embodiments, the nonvolatile memory cell may be a phase change memory (PCM) cell, a resistive random access memory (ReRAM) cell, or other suitable nonvolatile memory cell.
[0029] Figure 1 is a block diagram of one embodiment of a non-volatile memory system (or more simply "memory system") 100 connected to a host system 120. The memory system 100 can implement the techniques presented herein for a hybrid current imposed read scheme. Many different types of memory systems can be used with the techniques presented herein. Example memory systems include dual in-line memory modules (DIMMs), solid-state drives ("SSDs"), memory cards, and embedded memory devices; however, other types of memory systems can also be used.
[0030] Figure 1The memory system 100 includes a memory controller 102, a non-volatile memory 104 for storing data, and a local memory 106 (e.g., MRAM, PCM, ReRAM, DRAM). In one embodiment, the memory controller 102 provides access to memory cells in a cross-point array in the local memory 106 and / or the non-volatile memory 104. For example, the memory controller 102 may provide access to a cross-point array of MRAM cells in the local memory 106. In another embodiment, the memory controller 102 or the interface 126 or both are eliminated, and the memory package is directly connected to the host 120 via a bus such as DDRn. The local memory 106 may be referred to as a memory system. The combination of the memory controller 102 and the local memory 106 and / or the non-volatile memory may be referred to as a memory system herein.
[0031] The memory controller 102 includes a front end processor (FEP) circuit 110 and one or more back end processor (BEP) circuits 112. In one embodiment, the FEP circuit 110 is implemented on an ASIC. In one embodiment, each BEP circuit 112 is implemented on a separate ASIC. In other embodiments, a unified controller ASIC may combine both front end and back end functions. In another embodiment, the FEP and BEP are eliminated in favor of direction control of the host 120, and any functions required for the memory, such as ECC and wear leveling, are generated on the memory chip.
[0032] The ASIC for each of the BEP circuit 112 and the FEP circuit 110 may be implemented on the same semiconductor, allowing the memory controller 102 to be manufactured as a system on a chip (“SoC”). Alternatively, the circuit may be placed on each memory chip, thereby avoiding the overhead space and expense of adding an external controller and / or BEP or FEP. The FEP circuit 110 and the BEP circuit 112 each include their own processor. In one embodiment, the FEP circuit 110 and the BEP circuit 112 are used as a master-slave configuration, where the FEP circuit 110 is the master device and each BEP circuit 112 is a slave device. For example, the FEP circuit 110 implements a media management layer (MML) that performs memory management (e.g., garbage collection, wear leveling, etc.), logical to physical address translation, communication with the host, management of the local memory 106, and management of the overall operation of the SSD (or other non-volatile storage system). The BEP circuit 112 manages memory operations in the memory package / die according to requests from the FEP circuit 110. For example, the BEP circuits 112 may implement read, erase, and program processes. Additionally, the BEP circuits 112 may perform buffer management, set specific voltage levels required by the FEP circuits 110, perform error correction (ECC), control the switch mode interface to the memory packages, etc. In one embodiment, each BEP circuit 112 is responsible for its own set of memory packages.
[0033] In one embodiment, the non-volatile memory 104 includes a plurality of memory packages. Each memory package includes one or more memory dies. Therefore, the memory controller 102 is connected to one or more non-volatile memory dies. In one embodiment, the memory package may include a flash memory such as a NAND flash memory. In one embodiment, the memory package may include a memory type such as a "storage class memory (SCM)" or "emerging memory" based on a resistive random access memory (such as ReRAM, MRAM, FeRAM, or phase change memory PCM). In one embodiment, the memory controller 102 provides access to the memory cells in the cross-point array in the memory package 104.
[0034] The memory controller 102 communicates with the host system 120 via an interface 130 that implements a protocol such as Compute Express Link (CXL). Alternatively, such a controller can be eliminated and the memory package can be placed directly on the host bus (e.g., DDRn). In order to work with the memory system 100, the host system 120 includes a host processor 122, a host memory 124, and an interface 126 connected along a bus 128. The host memory 124 is the physical memory of the host and can be DRAM, SRAM, ReRAM, PCM, MRAM, non-volatile memory, or another type of storage device. In one embodiment, the host memory 124 includes a cross-point array of non-volatile memory cells, each of which includes a resistive random access memory element and a two-terminal selector element in series with the memory element.
[0035] The host system 120 is external and separate from the memory system 100. In one embodiment, the memory system 100 is embedded in the host system 120. The host memory 124 may be referred to as a memory system herein. The combination of the host processor 122 and the host memory 124 may be referred to as a memory system herein. In one embodiment, such host memory may be a cross-point memory using MRAM, ReRAM, PCM, or other non-volatile memory.
[0036] Figure 2 is a block diagram of one embodiment of the FEP circuit 110 . Figure 2An interface 150 is shown that communicates with a host system 120, and a host processor 152 that communicates with the interface. The interface 150 may be, for example, CXL, DDR, or PCIe. The host processor 152 may be any type of processor known in the art that is suitable for implementation. The host processor 152 communicates with a network on chip (NOC) 154. NOC is a communication subsystem on an integrated circuit, typically between cores in a SoC. NOC may span synchronous and asynchronous clock domains, or use non-clocked asynchronous logic. NOC technology applies network theory and methods to on-chip communications, and brings significant improvements compared to conventional bus and crossbar switch interconnects. Compared to other designs, NOC improves the scalability of SoCs and the power efficiency of complex SoCs. The wires and links of NOCs are shared by many signals. Since all links in a NOC can run simultaneously on different data packets, a high degree of parallelism is achieved. Therefore, as the complexity of integrated subsystems continues to increase, NOCs provide enhanced performance (such as throughput) and scalability compared to previous communication architectures (e.g., dedicated point-to-point signal lines, shared buses, or segmented buses with bridges). Connected to and in communication with NOC 154 are memory processor 156, SRAM 160, and local memory controller 162. Local memory controller 162 is used to operate local memory 106 (e.g., Figure 1 In one embodiment, the local memory controller 162 is an MRAM controller for operating and communicating with the MRAM in the local memory 106. In other embodiments, the local memory controller 162 is a ReRAM controller or a PCM controller for operating and communicating with the local memory 106. SRAM 160 is a local RAM memory used by the memory processor 156. The memory processor 156 is used to run the FEP circuit and perform various memory operations. In addition, there are two interfaces 164 and 166 in communication with the NOC, which can be, for example, CXL, DDR or PCIe. Figure 2 In an embodiment of the present invention, the SSD controller will include two BEP circuits 112; therefore, there are two interfaces 164 / 166. Each interface 164 / 166 communicates with one of the BEP circuits 112. In other embodiments, there may be more or less than two BEP circuits 112; therefore, there may be more than two interfaces 164 / 166.
[0037] The FEP circuit 110 may also include a media management layer (MML) 158 that performs memory management (e.g., garbage collection, wear leveling, load balancing, etc.), logical to physical address translation, communication with the host, management of DRAM (local volatile memory, if provided), and management of the overall operation of the SSD or other non-volatile storage system. The media management layer (MML) 158 may be integrated as part of the memory management that may handle memory errors and interact with the host interface. Specifically, the MML may be a module in the FEP circuit 110 and may be responsible for the internals of memory management. Specifically, the MML 158 may include an algorithm in the memory device firmware that converts writes from the host to writes to the memory structures of the die.
[0038] Figure 3 is a block diagram of one embodiment of the BEP circuit 112 . Figure 3 A method for communicating with FEP circuit 110 (e.g., Figure 2The interface 200 communicates with one of the interfaces 164 and 166 of the processor 200 (which may be, for example, CXL, DDR, or PCIe). The interface 200 communicates with two NOCs 202 and 204. In one embodiment, the two NOCs may be combined into a large NOC. Each NOC (202 / 204) is connected to the SRAM (230 / 260), buffer (232 / 262), processor (220 / 250), and data path controller (222 / 252) via an XOR engine (224 / 254) and an ECC engine (226 / 256). The ECC engine 226 / 256 is used to perform error correction. The XOR engine 224 / 254 is used to perform XOR on the data so that the data can be combined and stored in a recoverable manner in the presence of programming errors. The data path controller 222 is connected to the interface module for communicating with the memory package via four channels. Thus, the top NOC 202 is associated with an interface 228 for four channels for communicating with the memory package, and the bottom NOC 204 is associated with an interface 258 for four additional channels for communicating with the memory package. Each interface 228 / 258 includes four switching mode interfaces (TM interfaces), four buffers, and four schedulers. For each channel, there is a scheduler, a buffer, and a TM interface. The processor can be any standard processor known in the art. The data path controller 222 / 252 can be a processor, an FPGA, a microprocessor, or other types of controllers. The XOR engine 224 / 254 and the ECC engine 226 / 256 are dedicated hardware circuits, referred to as hardware accelerators. In other embodiments, the XOR engine 224 / 254 and the ECC engine 226 / 256 can be implemented in software. The scheduler, buffer, and TM interface are hardware circuits. In another embodiment, the circuit and software or a portion thereof are placed on a chip in each memory.
[0039] Figure 4 1 is a block diagram of one embodiment of a memory package 104 including a plurality of memory dies 292 connected to a memory bus (data lines and chip enable lines) 294. The memory bus 294 is connected to a switch mode interface 296 for communicating with the TM interface of the BEP circuit 112 (see, e.g., Figure 3 ). In some embodiments, the memory package may include a controller connected to the memory bus and the TM interface. The memory package may have one or more memory dies. In one embodiment, each memory package includes eight or 16 memory dies; however, other numbers of memory dies may also be implemented. The technology described herein is not limited to any particular number of memory dies.
[0040] Figure 5is a block diagram depicting an example of a memory die 292 that can implement the techniques described herein. In one embodiment, the memory die 292 is included in the local memory 106. In one embodiment, the memory die 292 is included in the host memory 124. The memory system 292 includes a non-volatile memory array 502, which can include any memory cell described herein. The array terminal lines of the non-volatile memory array 502 include individual word line layers organized into rows, and individual bit line layers organized into columns. However, other orientations can also be implemented. The memory die 292 includes a row control circuit 520, the output 508 of which is connected to the corresponding word line of the non-volatile memory array 502. The row control circuit 520 receives a set of M row address signals and one or more various control signals from the system control logic circuit 560, and can generally include circuits such as a row decoder 522, a row driver 524, and a block selection circuit system 526 for both read operations and write operations. The row control circuit 520 can also include a read / write circuit. In one embodiment, the row decoding and control circuitry 520 has sense amplifiers 528, each of which includes circuitry for sensing the condition (e.g., voltage) of a word line of the nonvolatile memory array 502. In one embodiment, by sensing the word line voltage, the condition of the memory cells in the cross-point array is determined. The memory die 292 also includes column decoding and control circuitry 510, which has input / output terminals 506 connected to corresponding bit lines of the nonvolatile memory array 502. Although only a single block is shown for the array 502, the nonvolatile memory die may include multiple arrays or "tiles" that can be accessed separately. The column control circuitry 510 receives a set of N column address signals and one or more various control signals from the system control logic unit 560, and may generally include circuitry such as a column decoder 512, a column decode and driver 514, a block select circuitry 516, and read / write circuitry and I / O multiplexers.
[0041] System control logic unit 560 receives data and commands from host system, and provides output data and status to the host system. In other embodiments, system control logic unit 560 receives data and commands from a separate controller circuit, and provides output data to the controller circuit, wherein the controller circuit communicates with the host system. In another embodiment, these data and commands are sent and received directly from the memory package to the host, without a separate controller, and any controller required is in each tube core or in the tube core added to the multi-chip memory package. In some embodiments, system control logic unit 560 may include a state machine 562 for providing die-level control of memory operation. In one embodiment, state machine 562 can be programmed by software. In other embodiments, state machine 562 does not use software and is fully implemented in hardware (e.g., electronic circuit). In another embodiment, state machine 562 is replaced by a microcontroller or microprocessor. System control logic unit 560 may also include a power control module 564, which controls the power and voltage of the rows and columns supplied to non-volatile memory 502 during memory operation, and may include a charge pump and a regulator circuit for generating a regulated voltage. The system control logic 560 includes a storage device 566 that can be used to store parameters for operating the non-volatile memory array 502. The system control logic can be commanded by the host 120 or the memory controller 102 to the refresh logic 572 that the refresh logic should load the row and column addresses (pointers) stored on the chip that can be incremented after the refresh. Only such address bits can be selected (to refresh the OTS).
[0042] Commands and data are transmitted between the memory controller 102 and the memory die 292 via a memory controller interface 568 (also referred to as a "communication interface"). Such an interface may be, for example, PCIe, CXL, DDRn. The memory controller interface 568 is an electrical interface for communicating with the memory controller 102. Examples of the memory controller interface 568 include a switching mode interface. Other I / O interfaces may also be used. For example, the memory controller interface 568 may implement a switching mode interface that is connected to the switching mode interface of the memory interface 228 / 258 of the memory controller 102. In one embodiment, the memory controller interface 568 includes a set of input and / or output (I / O) pins connected to the memory controller 102. In another embodiment, the interface is a JEDEC standard DDRn or LPDDRn, such as DDR5 or LPDDR5, or a subset thereof with smaller pages and / or relaxed timing.
[0043] The system control logic 560 in the external controller located on the memory die in the memory package may include an error correction code (ECC) engine 569. The ECC engine 569 may be referred to as an on-die ECC engine because it is on the same semiconductor die as the memory cells. That is, the on-die ECC engine 569 may be used to encode data to be stored in the non-volatile memory array 502, and to decode and correct errors in the decoded data.
[0044] In some embodiments, all elements of memory die 292, including system control logic 560, may be formed as part of a single die. In other embodiments, some or all of system control logic 560 may be formed on different dies.
[0045] In one embodiment, the memory structure 502 includes a three-dimensional nonvolatile memory array of nonvolatile memory cells, where multiple memory levels are formed over a single substrate such as a wafer. The memory structure may include any type of nonvolatile memory integrally formed in one or more physical levels of memory cells having active regions disposed over a silicon (or other type of) substrate. In another embodiment, the memory structure 502 includes a two-dimensional nonvolatile memory array of nonvolatile memory cells.
[0046] The exact type of non-volatile memory array architecture or memory cell included in the memory structure 502 is not limited to the above examples. Many different types of non-volatile memory architectures or memory technologies can be used to form the memory structure 502. No specific non-volatile memory technology is required to implement the new claimed embodiments presented herein. Examples of suitable technologies for memory cells of the memory structure 502 include ReRAM memory (resistive random access memory), magnetoresistive memory (e.g., MRAM, spin transfer torque MRAM, spin orbit torque MRAM), FeRAM, phase change memory (e.g., PCM), etc. Examples of suitable technologies for the memory cell architecture of the memory structure 502 include two-dimensional arrays, three-dimensional arrays, cross-point arrays, stacked two-dimensional arrays, vertical bit line arrays, etc.
[0047] An example of a ReRAM or MRAM crosspoint memory includes a reversible resistance switch element in series with an OTS selector, which is arranged in a crosspoint array accessed by an X line and a Y line (e.g., a word line and a bit line). In another embodiment, the crosspoint is a PCM in series with an OTS selector. In another embodiment, the memory cell may include a conductive bridge memory element. The conductive bridge memory element may also be referred to as a programmable metallization unit. Based on the physical relocation of ions within a solid electrolyte, the conductive bridge memory element may be used as a state change element. In some cases, the conductive bridge memory element may include two solid metal electrodes, one of which is relatively inert (e.g., tungsten) and the other is electrochemically active (e.g., silver or copper), with a thin film of a solid electrolyte between the two electrodes. As the temperature increases, the mobility of the ions also increases, which causes the programming threshold of the conductive bridge memory cell to decrease. Therefore, the conductive bridge memory element may have a wide range of programming thresholds over the entire temperature range.
[0048] Magnetoresistive random access memory (MRAM) uses magnetic storage elements to store data. These elements are formed by two ferromagnetic layers separated by a thin insulating layer, each of which can maintain magnetization. For field-controlled MRAM, one of the two layers is a permanent magnet set to a specific polarity; the magnetization of the other layer can be changed to match the magnetization of the external magnetic field to store memory. Other types of MRAM cells are possible. The memory device can be built from a grid of MRAM cells. In one embodiment for programming, each memory cell is located between a pair of write lines that are arranged at right angles to each other, parallel to the cells, one above the cell and one below the cell. For some MRAM cells, when current passes through them, an induced magnetic field is generated. MRAM-based memory implementations will be discussed in more detail below.
[0049] Phase change memory (PCM) takes advantage of the unique properties of chalcogenide glass. One embodiment uses a GeTe-Sb2Te3 superlattice to achieve non-thermal phase change by changing the coordination state of germanium atoms using only laser pulses (or light pulses from another source). The memory cell is programmed by a current pulse that can change the coordination of the PCM material or switch between an amorphous state and a crystalline state. It should be noted that the use of "pulse" in this document does not require a rectangular pulse, but includes (continuous or discontinuous) vibrations or pulse trains of sound, current, voltage light or other waves. And the current forced to write can, for example, be driven quickly to a peak value and then linearly ramped down at, for example, a 500ns edge rate. Such peak current force may be limited by partition voltage compliance, which varies with the position of the memory cell along the word line or bit line.
[0050] Those of ordinary skill in the art will recognize that the technology described herein is not limited to a single particular memory structure, memory configuration, or material composition, but encompasses many related memory structures within the spirit and scope of the technology as described herein and as understood by those of ordinary skill in the art.
[0051] You can Figure 5 The elements of the memory die 292 are grouped into two parts: the memory structure 502 and the peripheral circuit system (including all other elements). An important characteristic of the memory circuit is its capacity, which can be increased by increasing the area of the memory tube core 292 reserved for the memory structure 502; however, this reduces the area of the memory tube core available for peripheral circuits. This can impose quite serious limitations on these peripheral elements. For example, the need to assemble the sense amplifier circuit in the available area can be a significant limitation on the design architecture of the sense amplifier. With respect to the system control logic component 560, the reduction in available area may limit the available functions that can be implemented on the chip. Therefore, in the design of the memory tube core 292, a basic trade-off needs to be made between the amount of dedicated area for the memory structure 502 and the amount of dedicated area for the peripheral circuit system. This trade-off may result in more IR drop due to the use of a larger xy memory array between the driver circuits on the word lines and bit lines, which in turn may benefit more from the use of voltage limits and the partitioning of voltage compliance by the memory cell location along the word lines and bit lines.
[0052] Another area where the memory structure 502 and the peripheral circuits often conflict is in the processing involved in forming these areas, because these areas often involve different processing technologies and the trade-offs when implementing different technologies on a single die. For example, elements such as sense amplifier circuits, charge pumps, logic elements in state machines, and other peripheral circuit systems in the system control logic unit 560 often use PMOS devices. In some cases, the memory structure will be based on CMOS devices. The processing operations used to manufacture CMOS dies will differ in many ways from those optimized for NMOS technology.
[0053] To improve these limitations, the embodiments described below can Figure 5 The components are separated into separately formed tube dies, and then the tube dies are bonded together. Figure 6An integrated memory component 570 is depicted having a memory structure die 580 and a control die 590. The memory structure 502 is formed on the memory structure die 580, and some or all of the peripheral circuitry elements, including one or more control circuits, are formed on the control die 590. For example, the memory structure die 580 may be formed only of memory elements, such as an array of memory cells of an MRAM memory, a PCM memory, a ReRAM memory, or other memory type. Some or all of the circuits in the peripheral circuits (even including elements such as decoders and sense amplifiers) may then be moved to the control die. This allows each die in the semiconductor die to be optimized individually according to its technology. This provides more room for peripheral elements, and additional capabilities that may not be easily combined if the peripheral elements are confined to the edge of the same die that houses the memory cell array can now be combined. The two dies can then be bonded together in a bonded multi-die integrated memory component, with the array on one die connected to the peripheral elements on the other die. For example, although the following description will focus on an integrated memory assembly with one memory die and one control die, other embodiments may use additional dies, such as two memory dies and one control die.
[0054] and Figure 5 Like 502, Figure 6 The memory structure die 580 in the system control logic 560 may include multiple independently accessible arrays or "tiles". The system control logic 560, the row control circuit 520, and the column control circuit 510 are located in the control die 590. In some embodiments, all or a portion of the column control circuit 510 and all or a portion of the row control circuit 520 are located on the memory structure die 580. In some embodiments, a portion of the circuitry in the system control logic 560 is located on the memory structure die 580.
[0055] Figure 6Column control circuitry 510 on control die 590 is shown coupled to memory structure 502 on memory structure die 580 via electrical paths 592. For example, electrical paths 592 can provide electrical connections between column decoders 512, column driver circuitry 514, block selectors 516, and bit lines of memory structure 502. Electrical paths can extend from column control circuitry 510 in control die 590 through pads on control die 590 that are bonded to corresponding pads of memory structure die 580 that are connected to bit lines of memory structure 502. Each bit line of memory structure 502 can have a corresponding electrical path in electrical paths 592 connected to column control circuitry 510, including a pair of bond pads. Similarly, row control circuitry 520 (including row decoders 522, row drivers 524, block selector circuitry 526, and sense amplifiers 528) is coupled to memory structure 502 via electrical paths 594. Each electrical path 594 can correspond to, for example, a word line. Additional electrical paths may also be provided between the control die 590 and the memory structure die 580 .
[0056] For the purposes of this document, the phrase "control circuitry" may include one or more of the memory controller 102, the system control logic 560, the column control circuit 510, the row control circuit 520, the microcontroller, the state machine, the host processor 122, and / or other control circuitry, or other similar circuitry for controlling non-volatile memory. The control circuitry may include only hardware or a combination of hardware and software (including firmware). For example, a controller programmed by firmware to perform the functions described herein is an example of a control circuit. The control circuitry may include a processor, an FPGA, an ASIC, an integrated circuit, or other types of circuits. Such control circuitry may include a driver, such as a direct driver that connects a node via a fully-conducting transistor (gate to power supply) driven to a fixed voltage (such as a power supply). Such a control circuit may include a current source driver.
[0057] For purposes of this document, the term "device" may include, but is not limited to, one or more of the following: a host system 120, a combination of a host processor 122 and a host memory 124, a host memory 124, a memory system 100, a memory controller 102, a local memory 106, a combination of a memory controller 102 and a local memory 106, a memory package 104, a memory die 292, an integrated memory component 570, and / or a control die 590.
[0058] Fig. 7A One embodiment of a portion of a non-volatile memory array forming a cross point architecture is depicted in oblique view. Fig. 7A The nonvolatile memory array 502 is Figure 5 or Figure 6 292 or memory structure die 580 may include multiple such array structures. The nonvolatile memory array 502 may be included in the local memory 106 or the host memory 124. The bit lines BL1-BL5 are arranged along a first direction (shown as extending into the page) relative to the underlying substrate (not shown) of the die, and the word lines WL1-WL5 are arranged along a second direction perpendicular to the first direction. Fig. 7A is an example of a horizontal cross-point structure in which both word lines WL1-WL5 and BL1-BL5 extend in a horizontal direction relative to the substrate, and memory cells (two of which are indicated at 701) are oriented so that current through the memory cells (such as at I 单元 In a nonvolatile memory array having an additional layer of memory cells, such as described below with respect to Fig.7D As discussed, there will be corresponding additional layers of bit lines and word lines.
[0059] like Fig. 7A As depicted, the nonvolatile memory array 502 includes a plurality of memory cells 701. The memory cells 701 may include rewritable memory elements, such as those implemented using ReRAM, MRAM, PCM, or other materials having programmable resistance. Memory cells including MRAM memory elements will be simply referred to as MRAM memory cells. The memory cells 701 may also include selector elements, such as those implemented using a bidirectional threshold switch (OTS), a volatile conductive bridge (VCB), a metal-insulator-metal (MIM), or other materials that provide a highly nonlinear dependence of current on a select voltage. The following discussion will focus on memory cells consisting of MRAM memory elements combined in series with a bidirectional threshold switch, although much of the discussion may apply more generally. The current in the memory cells of the first memory level is shown as arrows I 单元 Upward flow is indicated, but current can flow in either direction, as discussed in more detail below.
[0060] Figure 7B and Figure 7C They presented Fig. 7A Side and top views of the junction structure in . Figure 7B The side view shows a bottom line or word line WL1 and a plurality of top lines or bit lines BL1-BL n An MRAM memory cell 701 is located at the intersection between each top and bottom line, but PCM, ReRAM or other technologies may be used as memory elements. Figure 7C Is to show M bottom lines WL1-WL Mand N top lines BL1-BL N Top view of the intersection structure of . In a binary implementation, the MRAM cell at each intersection can be programmed to one of two resistance states (a high resistance state and a low resistance state). More details on implementations of MRAM memory cell designs and their reading techniques are given below. In some embodiments, groups of these wires are arranged continuously as "tiles", and such tiles can be paired adjacently in the word line (WL) direction and orthogonally in the bit line direction to create modules. Such modules can be composed of 2×2 tiles to form four tile combinations, where the WL drivers between tiles are "center-driven" between tiles, where the WL runs continuously on the driver at the approximate center of the line. Similarly, the BL driver can be located between pairs of tiles paired in the BL direction, thereby being center-driven, whereby the driver and its area are shared between a pair of tiles. Fig. 12B One embodiment of a module having four tiles is shown in FIG, which will be discussed below.
[0061] Fig. 7A The cross-point array of FIG. 1 shows an embodiment having one layer of word lines and bit lines, with the MRAM or other memory cells located at the intersection of the two sets of conductive lines. To increase the storage density of the memory die, multiple layers of such memory cells and conductive lines can be formed. The dual-layer example in FIG. Fig.7D Shown in.
[0062] Fig.7D One embodiment of a portion of a two-level non-volatile memory array forming a cross-point architecture is depicted in oblique view. Fig. 7A Like in Fig.7D The first layer 718 memory cells 701 of the non-volatile memory 502 are shown, which are connected to the first layer word lines WL 1,1 -WL 1,4 The second layer memory cells 720 are formed above the bit lines BL1-BL5 and at the intersections of these bit lines and the second set of word lines WL 2,1 -WL 2,4 Although Fig.7D Two layers of memory cells 718 and 720 are shown, but the structure can be extended upwards by additional alternating layers of word lines and bit lines. Depending on the embodiment, Fig.7D The word lines and bit lines of the array can be biased for a read operation or a program operation so that the current in each layer flows from the word line layer to the bit line layer or circulates in the opposite direction. For a given operation, the two layers can be configured to have current in the same direction in each layer, or have current in opposite directions through selection by the driver in the positive or negative direction.
[0063] The use of a cross point architecture allows for arrays with a small footprint, and several such arrays can be formed on a single die. The memory cells formed at each cross point can be resistive type memory cells, where data values are encoded as different resistance levels. Depending on the implementation, the memory cells can be binary valued, have a low resistance state or a high resistance state, or be multi-level cells (MLCs), which can have additional resistance intermediate between the low resistance state and the high resistance state. The cross point arrays described herein can be used to Figure 4 Memory die 292, Figure 1 The local storage 106 and / or Figure 1 124 in the host memory. The resistive type memory cells may be formed according to many of the above mentioned technologies, such as ReRAM, PCM, FeRAM or MRAM. The following discussion is primarily presented in the context of a non-volatile memory array using a cross point architecture with binary valued MRAM memory cells, but much of the discussion is more generally applicable and the present technology is not limited to any particular memory structure.
[0064] Some non-volatile memory structures (including ReRAM, PCM, and MRAM) can be used as replacements for DRAM or other volatile memories in some designs, and can be referred to as "storage class memories" or "emerging memories". In some cases, such memories must meet difficult specifications such as bandwidth and latency requirements. Meeting such requirements can be challenging, and the present technology provides examples of technical solutions to problems associated with using non-volatile memories (e.g., ReRAM, PCM, and MRAM) in demanding applications (e.g., with difficult bandwidth, latency, and / or other requirements).
[0065] In some cases, non-volatile memory may present challenges that volatile memory does not present (e.g., due to its different structure). This may make it difficult to adapt technology from volatile memory to the operation of non-volatile memory. For example, non-volatile memory such as MRAM may have more data errors (higher bit error rate or BER) than volatile memory, and may require some media management such as wear leveling, patrol erase (erasing data according to patrol or schedule), and demand scrub (erasing data found to have a high BER), which may not be necessary in volatile memory. Some phenomena that may not be significant in volatile memory may be significant in non-volatile memory. For example, read disturbance effects may cause the BER of data in non-volatile memory to increase significantly when the data is read, while a significant increase may not be seen in volatile memory. These and other differences may make it difficult to use technology from volatile memory technology directly for non-volatile memory. For example, the technology used by a memory controller that interfaces with volatile memory (e.g., DRAM) may not be easily applicable to non-volatile memory (e.g., MRAM).
[0066] Fig. 8A An example of a queue-based memory controller 800 connected to a non-volatile memory 802 (in this example, an MRAM memory) is shown. Queue-based memory controllers have been successfully used with volatile memories such as DRAM. However, queue-based memory controllers have certain problems for use with non-volatile memories. The memory controller 800 includes two separate queues, a read request queue 804 and a write request queue 806. Host requests (e.g., read requests and write requests) can be received from the host via an interface 808 and can be separated and queued in corresponding queues so that read access and write access are managed separately. The memory interface 810 enables read operations and write operations for addresses in the non-volatile memory 802. Error correction circuitry or an ECC engine 812 is included in the memory controller 800 to enable encoding of data before storage in the non-volatile memory 802 and decoding of data read from the non-volatile memory 802 (error detection and correction).
[0067] Figure 8B FIG. 4 shows a queue-based memory controller (eg, Fig. 8A800). The memory controller 800 receives a read request "read address_A" via interface 808 and places it in the read request queue 804. A memory command 816 is then sent from the memory controller 800 to the non-volatile memory 802 (NVM) to read address A. At this point, the host data stored at address A of the non-volatile memory 802 is #AAAA ("media data address_A:#AAAA"). The host data (#AAAA) is read from the non-volatile memory 802 and returned to the memory controller 800 in a read response 818.
[0068] The write request is received after the read request and is placed in the write request queue 806. The read request specifies data #BBBB to be written at address A ("Read Address A #BBBB"). For example, the host may want to replace host data #AAAA with host data #BBBB. A corresponding memory command 820 is sent from the memory controller 800 to the non-volatile memory 802, which causes the host data #BBBB to be written to address_A ("Media Data Address_A: #BBBB"). Therefore, the host data #AAAA previously at address_A is now replaced by host data #BBBB.
[0069] In the example shown, read data #AAAA is decoded (e.g., by the ECC engine 812) and is found to have a high BER 819. This triggers an on-demand erase of the data at address A ("Erase on Demand Address_A"). For example, the BER may be above a threshold that causes the ECC corrected data to be written back to address_A, thereby reducing the BER of the stored data (a write request may be generated and placed in the write request queue 806 along with the corrected data #AAAA* from the ECC engine 812). A memory command 822 is sent to the non-volatile memory along with a corrected version of the data #AAAA (designated as "#AAAA*"), which causes the corrected data to be written at address A ("Media Data Address_A:#AAAA*"). Therefore, the data #BBBB previously at address_A is now replaced by data #AAAA*. This may mean that the data #BBBB sent by the host to replace the stored data #AAAA may be lost. If the host wants data #BBBB, it will send a command to read address_A and will receive data #AAAA* instead (i.e., it will receive erroneous data). This situation may be difficult to manage with separate read and write queues.
[0070] FIG. 9A to FIG. 9B Another problematic situation for a queue-based memory controller (e.g., memory controller 800) is shown. In this example, read request queue 804 includes three read requests (shown as Fig.9A In response to the first read request directed to address A ( Fig. 9B , the memory controller 800 sends a memory command 930 to the non-volatile memory 802, which causes the data at address A ("Media Data Address_A: #AAAA") to be sent from the non-volatile memory 802 to the memory controller 800 (read response 932). In this example, the data was found to have a high BER that caused it to be uncorrectable by ECC (UECC), which resulted in a retry ("1st Read is UECC-Retry" 933). A retry means that the data at address A will be read again (e.g., using different parameters) to try to obtain data with a lower BER that can be corrected. The retried read request is placed after the second and third read requests ("2" and "3") in the read request queue 804 (in Fig.9A denoted as “R” in FIG.
[0071] The second read request ("2nd Read Address_A") causes a second memory command 934 from the memory controller 800 to the non-volatile memory 802, which causes another read at address A ("additional media read before retry"). The third read request ("3rd Read Address_A") causes a third memory command 936 from the memory controller 800 to the non-volatile memory 802, which causes yet another read at address A ("second additional media read before retry"). The retried read request "R" is retrieved from the read request queue 804 only after the second and third read requests. In response to the retried read request ("1st Read Retry Address_A"), the memory controller 800 sends a memory command 938 to the non-volatile memory 802, which causes the non-volatile memory to perform a retried read (e.g., a read using different parameters than the first read). It can be seen that FIG. 9A to FIG. 9B The queue-based example of is not optimal because there are additional reads of uncorrectable addresses before the read retry. These additional reads impose additional read disturbances on the memory medium and thus reduce the correctability probability from the retried read.
[0072] Examples of the present technology use a common request buffer that can be used to manage different types of host / front-end accesses (different types of requests) to a non-volatile memory array. Separate dedicated queues may not be required in this arrangement, which can avoid problems such as FIG. 8A to FIG. 8B and FIG. 9A to FIG. 9B The problematic situation shown in .
[0073] Fig. 10AAn example of a memory controller 1000 is shown that includes a common request buffer 1040 configured to hold different types of host requests (not limited to a single type of host request, such as read-only requests or write-only requests) and other requests (e.g., media management logic requests). A common request queue 1042 is connected to the common request buffer so that requests for the same address are placed in the common request queue 1042 in the order in which they are received from the host (receive order) and are transmitted from the common request queue 1042 to the common request buffer 1040 in the order in which they are received. The interface 808, memory interface 810, and ECC engine 812 are provided as previously described (similar features are similarly numbered). For example, interface 808 may be implemented by interface 150, interface 200, and / or additional components of FEP 110 and / or BEP 112, memory interface 810 may be implemented by interface 228 / 258 / 568, and / or additional components of BEP 112 and ECC engine 812 may be implemented by ECC engine 226 / 256 / 569 and / or other ECC circuits. Common request buffer 1040 and common request queue 1042 may be implemented by any suitable circuitry such as SRAM 160, SRAM 230 / 260, storage device 566, and / or other suitable circuitry. In one example, Fig. 10A The common request buffer 1040, the common request queue 1042, the ECC engine 812 and the memory interface 810 may partially or completely replace Figure 3 The interface 808 may be internal to the memory controller 800 and may receive non-host requests from components of the memory controller 800 in addition to host requests. For example, the interface 808 may be an interface between the front end and the back end of the memory controller (e.g., to Figure 3 In addition to host requests, interface 808 may also receive requests from front-end components, such as media management requests from the media management layer (e.g., MML 158). For clarity, Fig. 10A Additional components of memory controller 1000 (eg, front-end components) are not shown in FIG. Memory controller 1000 may include a plurality of memory controllers 1000 in any suitable arrangement (eg, as previously described). Figures 1 to 6 ) as shown in the figure.
[0074] When a host request is moved from the common request queue 1042 to the common request buffer 1040, a corresponding entry (e.g., entry 1050) is generated in the common request buffer 1040, and the entry is maintained at least until the host request is completed (e.g., until a response has been provided to the host to indicate that the host request is completed). The common request buffer may be configured to maintain an appropriate number of such entries (e.g., eight, sixteen, thirty-two, sixty-four or more entries) to allow parallel management of multiple memory access operations pointing to different addresses. For any address, there is only one entry for an uncompleted host request at any time (subsequent host requests pointing to a given address can be blocked by being held in the common request queue 1042 until the previous host request is completed), thereby avoiding conflicts between multiple requests for the same address. Therefore, for any given address, requests are output from the common request queue 1042 to the common request buffer 1040 in the order in which they are received. Requests to different addresses may not be output in the order in which they are received. For example, if the next request in the common request queue is blocked due to the presence of a request for the same address (address A) in the common request buffer, if the next request is directed to a different address (address B), then the next request is fetched even if the queued request for address A is received before the queued request for address B. Entries in the common request buffer 1040 may include fields related to the host request and any memory commands generated in response to the host request.
[0075] Fig. 10B An example of an entry 1050 generated in the common request buffer 1040 in response to a host request is shown. The entry 1050 may be generated in response to a host request taken from the common request queue 1042 in the order received. The entry 1050 includes: a status field 1052, which contains information about the host request and the current status of the request; an address field 1054, which contains the address to which the host request is directed (e.g., the source address of data to be read or the destination address of data to be written); and a data field 1056, which contains data (e.g., data to be written in the host write request).
[0076] The status field 1052 includes a plurality of subfields (or simply "fields"). The request type field 1058 may indicate the type of the corresponding request (host request type) and may be referred to as a "request type field". For example, the request may be a host read request that specifies reading data from the corresponding address, a refresh request in which the host specifies that data at the corresponding address is to be refreshed, a wear leveling move (WLM) request in which the MML (158) specifies that data is to be moved from a source address to a destination address, or other host request. A corresponding indication may be provided in the request type field 1058. An "invalid" indication in the request type field 1058 may indicate that there is no corresponding outstanding request. In one example, a host write request results in an "invalid" indication in the request type field 1058, which may allow another entry with the same address to be generated in the common request buffer 1040.
[0077] The data status field 1060 may indicate the status of the corresponding data field 1056 in the common request buffer 1040. For example, the data status may be "dirty" indicating that the data in the data field 1056 is not saved in the non-volatile memory 802, "clean" indicating that the data in the data field 1056 is saved in the non-volatile memory 802, "invalid" indicating that there is no valid data in the data field 1056 at this time, or "wait for data" indicating that valid data is not currently in the data field 1056 and an operation to place valid data there is in progress or is expected. In some cases, the data status field 1060 may include write priority information associated with any host write request, which may facilitate prioritization of write operations.
[0078] The command (CMD) field 1062 (memory command field) may specify a memory command corresponding to the received host request (from the memory controller 1000 to the non-volatile memory 802). For example, the command field 1062 may specify: "Quick Read" corresponding to a read operation in the non-volatile memory 802, which may be relatively fast (and may have a relatively high BER); "Extended Read" corresponding to a read operation in the non-volatile memory 802, which may be relatively slow (and may have a relatively low BER); "Write" corresponding to a write operation to write data to a specified address in the non-volatile memory 802; or "Invalid" when no memory command is currently in progress.
[0079] The command status field 1064 (memory command status field) may include an indication (e.g., a status indication) of the current state (or status) of the command specified in the command field 1062. For example, the command status field 1064 may specify "waiting for scheduling" when the corresponding memory command has been generated but not yet sent, "in progress" when the corresponding memory command is being executed in the non-volatile memory 802, or "invalid" when there is no corresponding memory command.
[0080] Misc. field 1066 allows additional information that may be relevant to the host request (eg, scheduling information, etc.) to be stored in entry 1050 in common request buffer 1040 .
[0081] Although Fig. 10A An exemplary embodiment is shown in which common request buffer 1040 and common request queue 1042 are implemented in memory controller 1000 (eg, implemented in a memory controller die), but other implementations may locate components differently in one or more dies.
[0082] Although Fig. 10B Examples are provided of how entries in a common request buffer may be organized, but the present technology may be implemented in various ways and is not limited to the fields shown in the examples provided.
[0083] A common request buffer (e.g., common request buffer 1040) may be used to efficiently manage a wide variety of host requests. The following examples illustrate certain operations that may be efficiently implemented using a common request buffer. These examples are provided for illustration, and the present technology is not limited to any such examples.
[0084] FIG. 11A to FIG. 11B An example is shown of how the memory controller 1000 may process a host write request to write data #AAAA at address A (“Host Write Request Address_A with Data #AAAA”), which includes two steps (“Step 1” and “Step 2”). Fig.11A Specific communications between the memory controller 1000 and the nonvolatile memory 802 and between the memory controller 1000 and the host 120 are shown. Fig. 11BThe corresponding entries in the common request buffer 1040 at each step are shown. In step 1, the memory controller 1000 generates an entry in the common request buffer corresponding to the host request, including placing the address "A" in the address field 1054 and the data #AAAA in the data field 1056. The memory controller 1000 sends a host write confirmation 1172 to the host to indicate that the specified data (#AAAA) is written to address_A ("Host Write Confirm Address_A"). Even though the data may not yet be stored in the non-volatile memory 802 (e.g., stored in the common request buffer 1040 but not yet stored in the non-volatile memory 802), the host considers the data to be written at this time.
[0085] Fig. 11B Also shown are fields 1058, 1060, 1062, and 1064 of the corresponding entry during step 1, which shows the request type field 1058 as "invalid". When the confirmation 1172 is sent and the request type is marked as invalid to allow subsequent host requests to address_A (e.g., to allow another host request directed to address_A to be moved from the common request queue 1042), the host request is considered complete from the host's point of view. The data status field 1060 shows "dirty", which indicates that the corresponding data field 1056 contains data (#AAAA) that has not yet been saved in the non-volatile memory 802. The command field 1062 shows "write", which refers to a write command from the memory controller 1000 to the non-volatile memory 802 to store the data in the data field (data "#AAAA") in the non-volatile memory 802. The command status field 1064 shows "waiting for scheduling", which indicates that the memory command (write command) is waiting to be sent.
[0086] In step 2, the memory controller 1000 sends a memory command 1074 to the non-volatile memory 802, and data is stored at address A ("Media Data Address_A: #AAAA"). The data status field 1060 is updated in step 2 to display "clean", which indicates that the data in the corresponding data field is saved in the non-volatile memory 802. The command field 1062 and the command status field 1064 are updated in step 2 to "invalid" because there are no further memory commands after the write command 1074.
[0087] When the request type field 1058, command field 1062, and command status field 1064 are all "invalid" at the end of step 2, the host request and associated memory command are complete and the entry can be removed from the common request buffer 1040 (e.g., if space is needed in the common request buffer 1040 for a new host request). An appropriate scheme can be used to efficiently use the space in the common request buffer 1040 and ensure that space is available for new entries when a host request is received. For example, entries for completed host requests can be removed (or overwritten) in the order in which the corresponding host requests were completed.
[0088] FIG. 12A to FIG. 12B An example of how the memory controller 1000 may process a host read request to read data at address A (“Host Read Request Address_A”) is shown, which includes two steps (“Step 1” and “Step 2”). Fig. 12A Specific communications between the memory controller 1000 and the nonvolatile memory 802 and between the memory controller 1000 and the host 120 are shown. Fig. 12B The corresponding entries in the common request buffer 1040 at each step are shown. The host read request may be placed in the common request queue 1042 and then moved to the common request buffer 1040.
[0089] In step 1, the memory controller 1000 generates an entry corresponding to the host request in the common request buffer 1040, where the request type field 1058 shows "read". The data status field 1060 and the data field 1056 show "invalid" because no data is placed in the data field 1056 at this time. The command field 1062 shows "fast read", which indicates a memory command for fast reading of non-volatile memory cells from the memory controller 1000 to the non-volatile memory 802. When the fast read command 1280 is sent to the non-volatile memory 802, the command status field 1064 changes from "waiting for scheduling" to "in progress" in step 1. The address field 1054 shows the address "A". Subsequently, the data #AAAA at address_A is read from address A ("media data address_A: #AAAA") and sent from the non-volatile memory 802 to the memory controller 1000 in the read response 1282.
[0090] In step 2, a host read response 1284 is sent by the memory controller 1000 to the host 120. The host read response includes data #AAAA read from address A. The data may be corrected by the ECC engine 812 before being sent to the host. Once the memory command and host request are completed, the entry in the common request buffer 1040 is updated in step 2 to display "invalid" for all fields. It should be noted that in this example, the read data is not buffered in the data field 1056 of the common request buffer 1040 before being sent to the host, so the data status field 1060 is "invalid" instead of "clean". In the alternative, some or all of the data may be buffered in the data field 1056, and the data status field 1060 may reflect this buffering (e.g., displaying "clean"). For example, if there is another read request for the same data in the common request queue 1042 (e.g., a host read request for address_A), the data can be buffered in the data field 1056 and the buffered data can be used to generate a host read response without additionally accessing the non-volatile memory 802, which can be faster and avoid unnecessary reads of the non-volatile memory 802.
[0091] FIG. 13A to FIG. 13B Another example of how the memory controller 1000 may process a host read request ("Host Read Request Address_A") to read data at address A is shown. This example includes processing data as a UECC and includes four steps ("Step 1" to "Step 4"). Fig.13A Specific communications between the memory controller 1000 and the nonvolatile memory 802 and between the memory controller 1000 and the host 120 are shown. Fig. 13B The corresponding entries in the common request buffer 1040 at each step are shown. The host read request may be placed in the common request queue 1042 and then moved to the common request buffer 1040.
[0092] In step 1, the memory controller 1000 generates an entry corresponding to the host read request in the common request buffer 1040, where the request type field 1058 displays "read". The data status field 1060 and the data field 1056 display "invalid" because no data is placed in the data field 1056 at this moment. The command field 1062 displays "fast read", which indicates a memory command from the memory controller 1000 to the non-volatile memory 802 for a fast read of the non-volatile memory cells. When the fast read command 1380 is sent to the non-volatile memory 802, the command status field 1064 changes from "waiting for scheduling" to "in process" in step 1. The address field 1054 displays address "A". Subsequently, the data read from address A in the non-volatile memory 802 is sent from the non-volatile memory 802 to the memory controller 1000 in the read response 1382. The ECC engine 812 can decode the data to attempt to correct errors. In Fig.13A In the example of , the memory controller 1000 determines that the data is UECC 1384 .
[0093] In response to determining that the data read in step 1 is UECC, the memory controller 1000 generates and sends an extended read command 1386, and updates the memory command field as indicated by "Extended Read" in the command field 1062 of step 2. This is an example of generating a memory command and updating the memory command field in response to the result of accessing the corresponding address (UECC data in this example). The extended read operation can provide a copy of the data with a lower BER than the BER provided by the fast read. The non-volatile memory 802 sends the result from the extended read to the memory controller 1000 in a read response 1388. The ECC engine 812 successfully decodes the data to produce a corrected version of the data #AAAA (indicated as "#AAAA*"). The corrected data is sent to the host 120 in a host read response 1390 ("Host Read Response Address_A Data: #AAAA*").
[0094] Because the data at address A is UECC when read using fast read, the memory controller 1000 initiates an on-demand erase 1392, which includes writing the corrected data back to the non-volatile memory 802 (e.g., replacing the data at address A with the corrected data #AAAA* obtained from ECC decoding) so that subsequent fast reads can obtain correctable data.
[0095] In step 3, the request type field 1058 displays "invalid" because the host read response 1390 has been sent and the host considers the read operation complete. The data status field 1060 displays "dirty" to reflect that the corrected data #AAAA* is stored in the data field 1056. The command field 1062 displays "write" corresponding to the memory command to write the corrected data back to address A, and the command status field 1064 displays "waiting for scheduling." Because the request type field 1058 displays "invalid" at this time, another host request pointing to address_A can be obtained from the common request queue 1042 to generate a corresponding entry in the common request buffer 1040. When the request type field 1058 displays "read" instead of "invalid" (for example, in steps 1 and 2), any new host request pointing to address_A is maintained in the common request queue 1042 and is blocked from being moved to the common request buffer 1040. This can avoid conflicting host requests (for example, such as Figure 8B ).
[0096] In step 4, a memory write command 1394 is sent to the non-volatile memory 802 along with the corrected data #AAAA* stored at address A ("Media Data Address_A: #AAAA*"). The data status field 1060 is updated to "clean", which indicates that the data #AAAA* in the data field 1056 is saved in the non-volatile memory 802. The command field 1062 and the command status field 1064 are updated to "invalid" because there are no further memory commands. This entry can be removed or overwritten after step 4.
[0097] FIG. 14A to FIG. 14B An example of how the memory controller 1000 may handle a host refresh request or a "patrol erase" request (eg, a media management request to read data from an address, correct the data, and write the corrected data back to the same address) is shown. Fig.14A Specific communications between the memory controller 1000 and the nonvolatile memory 802 and between the memory controller 1000 and the host 120 are shown. Fig. 14B The corresponding entries in the common request buffer 1040 at each step are shown.
[0098] The memory controller 1000 receives a patrol erase request (“Patrol Erase Address_A”) that identifies address A as a target. The request is placed in the common request queue 1042 and then moved to the common request buffer 1040. The memory controller 1000 generates a corresponding entry in the common request buffer 1040, as shown in step 1, where the request type field 1058 displays “refresh”. The command field 1062 displays “fast read”, and the command status field 1064 displays “waiting for scheduling→in process” because the corresponding memory command 1480 is scheduled and sent to the non-volatile memory 802. The address field 1054 displays address “A”, and the data status field 1060 and the data field 1056 display “invalid”. In response to the memory command 1480, the non-volatile memory 802 reads data #AAAA from address A and sends a read response 1482 with data #AAAA to the memory controller 1000.
[0099] In step 2, the corrected data #AAAA* (eg, corrected by the ECC engine 812) is recorded into the common request buffer 1484 (eg, recorded into the Fig. 14B 1056). The data status field 1060 is updated to display "dirty", which indicates that the corrected data #AAAA* has not yet been stored in the non-volatile memory 802. A host patrol erase confirmation 1486 ("Host Patrol Erase Confirm") is sent from the memory controller 1000 to the host 120 to indicate that the requested patrol erase has been performed. The request type field 1058 is correspondingly updated to display "invalid". The command field 1062 is updated to display "write", which indicates a memory command to write the corrected data #AAAA* in the data field 1056, and the command status field 1064 is updated to "waiting for scheduling".
[0100] In step 3, a memory write command 1488 is sent from the memory controller 1000 to the non-volatile memory 802 so that the corrected data #AAAA* is written at address A. When the corrected data #AAAA* is stored in the non-volatile memory 802, the data status field 1060 is updated to read "clean", and the command field 1062 and the command status field 1064 are updated to read "invalid".
[0101] FIG. 15A to FIG. 15B An example of how the memory controller 1000 may handle a host wear leveling request (eg, a wear leveling move or “WLM” request to move data from a source location to a destination location in the non-volatile memory 802 ) is shown. Fig.15A Specific communications between the memory controller 1000 and the nonvolatile memory 802 and between the memory controller 1000 and the host 120 are shown. Fig. 15B The corresponding entries in the common request buffer 1040 at each step are shown.
[0102] The request to move data from address A to address B is placed in the common request queue 1042 and subsequently moved to the common request buffer 1040. As shown in steps 1 to 3, the memory controller 1000 generates two corresponding entries in the common request buffer 1040, one entry labeled "address_A" for the source address and one entry labeled "address_B" for the destination address.
[0103] In step 1, in the entry for the source (address_A), the request type field 1058 shows "WLM", the command field 1062 shows "fast read", and the command status field 1064 shows "waiting for scheduling→in progress", because the corresponding memory command 1580 is scheduled and sent to the non-volatile memory 802. The address field 1054 shows the address "A", and the data status field 1060 and the data field 1056 are "invalid". In response to the memory command 1580, the non-volatile memory 802 reads the data #AAAA from the address A, and sends a read response 1582 with the data #AAAA to the memory controller 1000. The entry for the destination (address_B) shows the request type field 1058, the command field 1062, the command status field 1064, and the data field 1056 as "invalid", and the data status field 1060 as "waiting for data".
[0104] In step 2, the fast read of address A is completed, and the entry for address_A is updated to display the request type field 1058, data status field 1060, command field 1062, and command status field 1064 as "invalid" (the entry may be deleted or overwritten at this time). The data (#AAAA) read from address A may be corrected (e.g., by the ECC engine 812) and the corrected data (#AAAA*) recorded in the data field 1056 of the address_B entry of the common request buffer 1584. Therefore, Fig. 15B Corrected data #AAAA* in data field 1056 and data status field 1060 are shown as "dirty". Host wear leveling acknowledgement 1586 is sent to host 120 ("Host Wear Leveling Acknowledgement"). In the entry for address_B, command field 1062 shows "write" indicating a write command for writing corrected data #AAAA* at address B, and command status field 1064 shows "waiting for scheduling".
[0105] In step 3, a write command 1588 is sent to the non-volatile memory 802 to write the corrected data #AAAA* at address B. The entry for address_A remains unchanged from step 2. The entry for address_B shows that the data status field 1060 is updated from "dirty" to "clean" to indicate that the corrected data #AAAA* is saved in the non-volatile memory 802. The command field 1062 and the command status field 1064 are updated to "invalid". These two entries can be deleted or overwritten at this time.
[0106] The dedicated command status field (e.g., command status field 1064) in each common request buffer entry may be updated according to the corresponding state transition (e.g., as including FIG. 13A to FIG. 15B This can facilitate complex and in-place media management within each common request buffer entry.
[0107] Fig.16 A method of managing requests from a host / MML to a memory controller coupled to a non-volatile memory array (e.g., from a host 120 to a memory controller 1000 coupled to a non-volatile memory 802, as described above) is shown. The method includes: receiving a plurality of host requests for a plurality of addresses in a non-volatile memory array in a received order 1690; placing the plurality of host requests in a common request queue (e.g., common request queue 1042) in a received order 1692; and moving a host request for a first address from the common request queue to a common request buffer (e.g., common request buffer 1040) in a received order 1694. The method also includes: maintaining an entry for an outstanding request in the common request buffer 1696; and in response to determining that an entry in the common request buffer indicates an outstanding request directed to an address in the non-volatile memory, deferring moving a request directed to the address from the common request queue to the common request buffer 1698. Postponing the move host request in this manner ensures that there is only one outstanding host request in the common request buffer for any given address in the non-volatile memory, which avoids the possibility of multiple ongoing requests for the same address (e.g., FIG. 8A to FIG. 8B ), repeated read requests to the same address (e.g., FIG. 9A to FIG. 9B ) and / or other issues.
[0108] The method may also include: in response to determining that the new host request in the common request queue is directed to the first address, searching the common request buffer for an entry for the first address; and in response to finding the first address in a first entry in the common request buffer that is directed to a previous host request directed to the first address, maintaining the new host request in the common request queue until the previous host request is completed (e.g., preventing the new host request from being moved to the common request buffer until the previous host request is completed). Maintaining entries in the common request buffer for outstanding host requests may include maintaining, for each entry, fields including address, data, host request type, data status, memory command, and memory command status (e.g., such as Fig. 10B ).
[0109] Fig.16 The method may be implemented using any of the components described above (e.g., common request buffer 1040 and / or common request queue 1042) or in other ways, and the control circuitry for implementing the method may be located on one or more dies, as described above or otherwise. Common request buffer 1040 may be considered as a request buffer device that receives host requests from a common request queue in a received order, buffers outstanding host requests directed to a plurality of memory addresses, such that each address in a non-volatile memory array has no more than one entry in the request buffer, and is connected between the common request queue and the non-volatile memory array.
[0110] The embodiment includes a control circuit configured to communicate with a non-volatile memory array storing data at multiple addresses. The control circuit may include: an interface configured to receive a host request from a host; a first-in-first-out buffer (common request queue) connected to the interface, the common request queue configured to receive host requests from the interface in a received order, store the host requests and output the host requests in a received order; and a common request buffer connected to the common request queue, the common request buffer configured to receive host requests from the common request queue in a received order, buffer outstanding host requests pointing to multiple addresses, so that for any address in the non-volatile memory array, there is no more than one outstanding host request in the common request buffer.
[0111] The non-volatile memory array may be one of a magnetoresistive random access memory (MRAM), a phase change memory (PCM), or a resistive random access memory (ReRAM). The common request buffer may be configured to store a first host request pointing to a first address until the first host request is completed, and to receive and store a second host request pointing to the first address only after the first host request is completed. An entry in the common request buffer may include a request type field indicating the type of the received host request and an address field indicating a corresponding address in the non-volatile memory array. The entry may also include a data field for data associated with the corresponding host request and a data status field indicating the state of the data field. The entry may also include: a memory command field configured to hold an indication of a memory command associated with the corresponding host request; and a command status field configured to hold a status indication associated with the memory command. The host request may include one or more refresh requests, each of which specifies a corresponding address in the non-volatile memory array where host data is stored, and the refresh request indicates that the host data will be rewritten at the corresponding address. The host requests may include wear leveling move (WLM) requests, each WLM request specifying a source address in the non-volatile memory array from which host data is to be read and a destination address in the non-volatile memory array to which host data is to be written. The control circuitry may also include an error correction code (ECC) circuit connected to the common request buffer, the ECC circuit being configured to correct data in the common request buffer. Entries in the common request buffer may include fields for address, data, host request type, data status, memory command, and memory command status.
[0112] Embodiments include a method of managing host requests from a host to a memory controller coupled to a non-volatile memory array. The method may include: receiving a plurality of host requests directed to a plurality of addresses in a non-volatile memory array in a received order; placing the plurality of host requests in a first-in-first-out buffer (a common request queue) in a received order; moving the host requests from the common request queue to the common request buffer in a received order; maintaining entries in the common request buffer for outstanding host requests; and in response to determining that an entry in the common request buffer indicates an outstanding host request directed to an address in the non-volatile memory array, deferring moving the host request directed to the address from the common request queue to the common request buffer.
[0113] The non-volatile memory array may be one of a magnetoresistive random access memory (MRAM), a phase change memory (PCM), or a resistive random access memory (ReRAM). The method may include: in response to determining that a new host request in a common request queue points to a first address, searching a common request buffer for an entry for the first address; and in response to finding the first address in a first entry in the common request buffer, the first entry being for a previous host request pointing to the first address, maintaining the new host request in the common request queue until the previous host request is completed. Maintaining entries in the common request buffer for outstanding host requests may include, for each entry, maintaining a field including a host request type field for the corresponding outstanding host request and an address field for the corresponding address in the non-volatile memory array. Maintaining entries in the common request buffer for outstanding host requests may include, for each entry, maintaining a field including a data field for data associated with the corresponding host request and a data status field indicating a status of the data field of the entry. Maintaining entries for outstanding host requests in the common request buffer may include, for each entry, maintaining a field including: a memory command field configured to maintain an indication of a memory command associated with the corresponding host request; and a command status field configured to maintain a status indication associated with the memory command. The method may also include: in response to moving a first host request directed to the first address from the common request queue to the common request buffer, executing one or more memory commands directed to the first address and updating an entry in the common request buffer associated with the first host request.
[0114] The embodiment includes a memory system, which includes: a nonvolatile memory array formed of one of magnetoresistive random access memory (MRAM), phase change memory (PCM) or resistive random access memory (ReRAM); an interface configured to receive a host request directed to an address in the nonvolatile memory array; a first-in-first-out buffer (a common request queue) connected to the interface, the common request queue being configured to receive host requests from the interface in a received order, store the host requests and output the host requests in a received order; and a request buffer device, the request buffer device being used to receive host requests from the common request queue in a received order, buffer outstanding host requests so that each address in the nonvolatile memory array has no more than one entry in the request buffer device, the request buffer device being connected between the common request queue and the nonvolatile memory array.
[0115] The memory system may also include an error correction code (ECC) circuit connected to the interface and to the request buffer, the ECC circuit being configured to correct data in the request buffer. Each entry in the request buffer may specify an address in the non-volatile memory array, data, a host request type, a data status, a memory command type, and a memory command status.
[0116] For the purposes of this document, references in the specification to "an embodiment," "one embodiment," "some embodiments," or "another embodiment" may be used to describe different embodiments or the same embodiment.
[0117] For the purposes of this document, a connection may be a direct connection or an indirect connection (e.g., via one or more other components). In some cases, when an element is referred to as being connected or coupled to another element, the element may be directly connected to the other element, or indirectly connected to the other element via an intervening element. When an element is referred to as being directly connected to another element, there are no intervening elements between the element and the other element. Two devices are "in communication" if they are directly connected or indirectly connected, such that they are able to communicate electronic signals between them.
[0118] For the purposes of this document, the term "based on" may be understood as "based, at least in part, on."
[0119] For the purposes of this document, the use of numerical terms such as a "first" object, a "second" object, and a "third" object without additional context may not imply an ordering of the objects, but may be used for identification purposes to identify different objects.
[0120] For the purposes of this document, the terms "top" and "bottom", "upper" and "lower", and "vertical" and "horizontal", and forms thereof, as used herein, are used herein by way of example and for exemplary purposes only, and are not intended to limit the description of the technology, as the referenced items may be interchanged in position and orientation. Additionally, as used herein, the terms "substantially" and / or "approximately" mean that a specified dimension or parameter may vary within an acceptable tolerance for a given application.
[0121] The above detailed description has been provided for the purpose of illustration and description. It is not intended to be exhaustive or to limit the precise form disclosed by the invention. Many modifications and variations are possible in light of the above teachings. The described embodiments are selected to best explain the principles of the proposed technology and its practical application, thereby enabling others skilled in the art to best utilize it in various embodiments and in various modifications suitable for the specific use contemplated. The scope of the invention is intended to be defined by the appended claims.
Claims
1. A control circuit configured to communicate with a non-volatile memory array storing data at a plurality of addresses, the control circuit include: an interface configured to receive a request; a common request queue connected to the interface, the common request queue being configured to receive the requests from the interface in a received order, store the requests, and output the requests for the first address in the received order for the first address; and A common request buffer connected to the common request queue, the common request buffer being configured to receive the requests for the first address from the common request queue in the receiving order, and buffer outstanding requests pointing to the plurality of addresses, so that for any address in the non-volatile memory array, there is no more than one outstanding request in the common request buffer.
2. The control circuit of claim 1, wherein the nonvolatile memory array is one of a magnetoresistive random access memory (MRAM), a phase change memory (PCM), or a resistive random access memory (ReRAM). 3 . The control circuit of claim 1 , wherein the common request buffer is configured to store a first request directed to the first address until the first request is completed, and to receive and store a second request directed to the first address only after the first request is completed.
4. The control circuit of claim 1, wherein entries in the common request buffer include a request type field indicating a type of request received and an address field indicating a corresponding address in the non-volatile memory array. 5 . The control circuit of claim 4 , wherein the entry further comprises a data field for data associated with the corresponding request and a data status field indicating a status of the data field.
6. The control circuit according to claim 5, wherein the entry further include: a memory command field configured to hold an indication of a memory command associated with the corresponding request; and a command status field configured to hold a status indication associated with the memory command. 7 . The control circuit according to claim 1 , wherein the request comprises a host request, the host request comprising at least a read request and a write request.
8. The control circuit of claim 7 , wherein the requests further include media management requests including at least a wear leveling move (WLM) request and a refresh request, each WLM request specifying a source address in the nonvolatile memory array from which host data is to be read and a destination address in the nonvolatile memory array to which the host data is to be written, each refresh request specifying a corresponding address in the nonvolatile memory array at which host data is stored, the refresh request indicating that the host data is to be rewritten at the corresponding address.
9. The control circuit of claim 1, further comprising an error correction code (ECC) circuit connected to the common request buffer, the ECC circuit configured to correct data in the common request buffer.
10. The control circuit of claim 1, wherein entries in the common request buffer include fields for address, data, request type, data status, memory command, and memory command status.
11. A method of managing requests from a host to a memory controller coupled to a non-volatile memory array, the method include: receiving a plurality of requests directed to a plurality of addresses in the non-volatile memory array in a receiving order; placing the plurality of requests in a common request queue in the order in which they are received; moving the request for the first address from the common request queue to the common request buffer in the order of receipt; maintaining entries for outstanding requests in the common request buffer; as well as In response to determining that an entry in the common request buffer indicates an outstanding request directed to an address in the non-volatile memory array, moving requests directed to the address from the common request queue to the common request buffer is deferred.
12. The method of claim 11, wherein the nonvolatile memory array is one of magnetoresistive random access memory (MRAM), phase change memory (PCM), or resistive random access memory (ReRAM).
13. The method according to claim 11, further comprising: include: In response to determining that the new request in the common request queue is directed to the first address, searching the common request buffer for an entry for the first address; as well as In response to finding the first address in a first entry in the common request buffer for a previous request directed to the first address, holding the new request in the common request queue until the previous request completes.
14. The method of claim 11, wherein maintaining entries for outstanding requests in the common request buffer comprises, for each entry, maintaining fields including a request type field for the corresponding outstanding request and an address field for a corresponding address in the non-volatile memory array.
15. The method of claim 14, wherein maintaining entries for outstanding requests in the common request buffer comprises maintaining, for each entry, fields comprising: a data field for data associated with a corresponding request, a data status field indicating a status of the data field of the entry, a memory command field configured to maintain an indication identifier of a memory command associated with the corresponding request, and a command status field configured to maintain a status indication identifier associated with the memory command.
16. The method according to claim 15, further comprising: include: In response to a result of accessing the corresponding address, a memory command is generated and the memory command field is updated.
17. The method according to claim 11, further comprising: include: In response to moving a first request directed to a first address from the common request queue to the common request buffer, one or more memory commands directed to the first address are executed and an entry in the common request buffer associated with the first request is updated.
18. A memory system, include: a nonvolatile memory array formed of one of magnetoresistive random access memory (MRAM), phase change memory (PCM), or resistive random access memory (ReRAM); an interface configured to receive a request directed to an address in the non-volatile memory array; a common request queue connected to the interface, the common request queue being configured to receive the requests from the interface in a received order, store the requests, and output the requests for the first address in the received order; and A request buffer device is used to receive the requests from the common request queue in the receiving order, buffer outstanding requests so that each address in the non-volatile memory array has no more than one entry in the request buffer device, and the request buffer device is connected between the common request queue and the non-volatile memory array.
19. The memory system of claim 18, further comprising an error correction code (ECC) circuit connected to the interface and to the request buffer, the ECC circuit configured to correct data in the request buffer.
20. The memory system of claim 18, wherein each entry in the request buffer specifies an address in the nonvolatile memory array, data, request type, data status, memory command type, and memory command status.
