DDR dual in-line memory modules, storage systems and their operation methods

By integrating a data cache into the DDR dual in-line memory module, ECC encoding and decoding are implemented, solving the error correction problem when there are multiple errors in DDR SDRAM memory chips, and improving the stability and error correction capability of the memory system.

CN115295066BActive Publication Date: 2026-11-17INNOSILICON MICROELECTRONICS (WUHAN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211085285.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-16
Publication Date
2026-11-17
Estimated Expiration
2042-05-16

AI Technical Summary

Technical Problem

Existing technologies struggle to achieve efficient error correction when multiple errors occur in DDR SDRAM memory chips, resulting in insufficient memory system stability.

Method used

A data cache is introduced into the DDR dual in-line memory module, integrating error correction functionality to achieve ECC encoding and decoding, enabling data error detection and correction directly on the memory module.

Benefits of technology

By leveraging the integrated error correction capabilities of the data cache, the error rate of memory modules is significantly reduced, thereby improving the stability and error correction performance of the memory system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115295066B_ABST
    Figure CN115295066B_ABST
Patent Text Reader

Abstract

This invention discloses a DDR dual in-line memory module, a memory system, and its operation method that utilizes a data buffer for error correction. The DDR dual in-line memory module includes a first channel, which comprises a first group of DRAM chips and a data buffer corresponding to the first group of DRAM chips. The data buffer is used to send external data to the first group of DRAM chips during write operations and to retrieve data from the first group of DRAM chips during read operations. The data buffer is also used to perform ECC error correction during write and read operations. This invention achieves high-performance error detection and correction on the memory module itself, significantly reducing the overall bit error rate of the memory module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of memory technology, and more specifically, relates to a DDR dual in-line memory module, a memory system and its operation method that utilizes a data cache for error correction. Background Technology

[0002] DDR is short for DDR SDRAM. The current Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM) standard provides a channel to support Dual-in-line Memory Module (DIMM) devices. With the shrinking of process dimensions, the increase in operating speed, and the increase in storage capacity, the possibility of data errors in memory chips will persist for a long time. How to use error correction code technology to enable real-time automatic error correction even when multiple errors occur in memory chips, ensuring normal system operation, is a very important stability requirement.

[0003] At the hardware level, the main technical approaches to implementing error correcting codes (ECC) in memory systems currently include: (1) relying on the memory chips themselves for error correction. For example, DDR5 (fifth generation DDR SDRAM) memory chips have 1 bit of error correction code. Since more errors are likely to occur in reality, this error correction capability is relatively weak. (2) using the memory controller (MC) for error correction. Since the memory controller is usually on the main processor (CPU / Host) chip, and the main processor is updated slowly, most general-purpose CPU manufacturers find it difficult to design high-performance error correction functions, or error correction codes and mapping structures that are particularly effective for certain DRAM chips, into the memory controller, resulting in the memory controller's error correction capability being difficult to meet real-world needs. Summary of the Invention

[0004] In view of the above-mentioned defects or improvement needs of the existing technology, the present invention provides a DDR dual in-line memory module, a storage system and its operation method that utilizes data cache error correction, which can achieve high-performance error detection and correction on the memory module and can greatly reduce the bit error rate of the entire memory module.

[0005] To achieve the above objectives, according to one aspect of the present invention, a DDR dual in-line memory module is provided, comprising: a first channel, the first channel including a first group of DRAM chips and a data buffer corresponding to the first group of DRAM chips; the data buffer is used to send external data to the first group of DRAM chips in a write operation and to retrieve data from the first group of DRAM chips in a read operation; the data buffer is also used to perform ECC error correction in the write and read operations.

[0006] In some implementations, the DDR dual in-line memory module further includes a first Rank, with a first group of DRAM chips disposed in the first Rank; a data buffer is used to send data from all data signal bits input to the first channel to the first group of DRAM chips during a write operation, and to retrieve all data signal bits of the first channel from the first group of DRAM chips during a read operation.

[0007] In some implementations, the DDR dual in-line memory module further includes a second Rank, which is located on the side opposite to the first Rank. The second Rank has a second group of DRAM chips corresponding to the first group of DRAM chips. The data buffer is also used to send data from all data signal bits input to the first channel to the second group of DRAM chips during a write operation, and to retrieve all data signal bits of the first channel from the second group of DRAM chips during a read operation.

[0008] In some implementations, the data cache is located in the first Rank; the first Rank has multiple row positions, and the data cache and the first set of DRAM chips occupy different row positions.

[0009] In some implementations, a data cache is located in a first rank; the first rank has multiple row positions, a first group of DRAM chips occupies the multiple row positions, and the data cache occupies one or more row positions of the first group of DRAM chips.

[0010] In some implementations, the data buffer is located on the face opposite to the face where the first Rank is located.

[0011] In some implementations, the data buffer is used to acquire all data signal bits input to the first channel during a write operation, perform ECC encoding on the data in all the input data signal bits to generate a new ECC checksum, and send the new ECC checksum and the data in all the data signal bits together to the first set of DRAM chips.

[0012] In some implementations, the data buffer is used to obtain all data signal bits of the first channel from the first set of DRAM chips during a read operation, decode and determine whether there are any errors, and correct the data signals before sending them out if errors are found.

[0013] In some implementations, the data buffer includes a first data transceiver, a second data transceiver, an ECC encoder, and an ECC decoder; the ECC encoder and ECC decoder are respectively connected between the first data transceiver and the second data transceiver, and the second data transceiver is connected to a first set of DRAM.

[0014] In some implementations, during a write operation, the first data transceiver receives all data signal bits input to the first channel under the trigger of a clock signal. The ECC encoder performs ECC encoding on the data in all the received data signal bits to generate a new ECC checksum, and sends the newly generated ECC checksum and the data together to the first group of DRAM chips through the second data transceiver.

[0015] In some implementations, during a read operation, the second data transceiver acquires all data signal bits of the first channel from the first group of DRAM chips under the trigger of a clock signal. The ECC decoder detects whether there are any errors in the received data signal bits. If there are errors, the ECC decoder corrects the data signals before sending them out through the first data transceiver.

[0016] In some implementations, the data buffer includes a first data transceiver, a second data transceiver, an ECC encoder, an ECC decoder, a first selector, and a second selector; the ECC encoder is connected between the first selector and the first data transceiver, the ECC decoder is connected between the second selector and the second data transceiver, the first selector is connected to the second data transceiver, the second selector is connected to the first data transceiver, and the second data transceiver is connected to a first set of DRAM chips.

[0017] In some implementations, the first selector is used to select whether to enable the ECC function during a write operation. When the ECC function is enabled, the first selector selects to send the output of the ECC encoder to the first group of DRAM chips through the second data transceiver. The second selector is used to select whether to enable the ECC function during a read operation. When the ECC function is enabled, the second selector selects to send the output of the ECC decoder through the first data transceiver.

[0018] In some implementations, the first data transceiver includes a plurality of first receiving modules and a first transmitting module; the plurality of first receiving modules are used to acquire all data signal bits of the first channel from the outside during a write operation and send the data in all acquired data signal bits to the ECC encoder; the first transmitting module is used to send all data signal bits of the first channel out during a read operation.

[0019] In some implementations, the first receiving module includes a first receiver, a second receiver, and a first D flip-flop; the first receiver is used to receive data signals from the outside and output them to the input of the first D flip-flop; the second receiver is used to receive sampling clock signals from the outside and output them to the clock signal input of the first D flip-flop; and the positive output of the first D flip-flop outputs the data signals from the outside at the rising edge of the clock signal.

[0020] According to another aspect of the present invention, a storage system is provided, including a CPU and the above-described DDR dual in-line memory module.

[0021] According to another aspect of the present invention, an operation method for a DDR dual in-line memory module is provided, comprising: acquiring all data signal bits of the channel from the outside; performing ECC encoding on the data in all the data signal bits acquired from the outside to generate a new ECC check code; and sending the new ECC check code and the data in all the data signal bits together to the DRAM chip of the channel.

[0022] In some implementations, when the ECC function is enabled, the above-described operation of ECC encoding of the data in the data signal bits obtained from the outside is performed to generate a new ECC checksum; the new ECC checksum and the data in the data signal bits are then sent together to the DRAM chip in the channel.

[0023] In some implementations, when the ECC function is disabled, instead of performing the above-described operation of ECC encoding on the data signal bits obtained from the outside to generate a new ECC checksum and sending the new ECC checksum and the data in the data signal bits together to the DRAM chip in the channel, all data signal bits obtained from the outside are sent to the DRAM chip in the channel.

[0024] In some implementations, the method further includes: acquiring all data signal bits of the channel from the DRAM chip; determining whether there are any errors in the acquired data signal bits; and correcting the acquired data signal bits before sending them out if errors are found.

[0025] In some implementations, when the ECC function is enabled, the above-mentioned operation of determining whether there are errors in all data signal bits obtained from the DRAM chip is performed; if errors are found, the obtained data signal bits are corrected before being sent out.

[0026] In some implementations, the method further includes storing error information if an error exists.

[0027] In some implementations, when the ECC function is disabled, the operation of determining whether there are errors in all data signal bits obtained from the DRAM chip is not performed; if errors exist, the obtained data signal bits are corrected before being sent out; instead, all data signal bits obtained from the DRAM chip are sent out.

[0028] In summary, compared with existing technologies, the technical solution conceived in this invention has the following beneficial effects: It integrates all data buffers (DBs) originally belonging to a single channel, enabling each channel to have its own data buffer. This data buffer also possesses error correction capabilities, namely, performing error-correcting encoding on data from the CPU, detecting errors in data from memory chips, and achieving automatic error correction and reporting. Since the integrated data buffer can access all data from its channel, high-performance error detection and correction can be achieved on the memory module itself, significantly reducing the overall bit error rate of the memory module. Attached Figure Description

[0029] Figure 1 This is a layout and wiring diagram of a DDR5 LRDIMM memory module;

[0030] Figure 2 This is a schematic diagram of the layout and wiring of a DDR5 DIMM memory module using a data cache for error correction according to an embodiment of the present invention;

[0031] Figure 3 This is a schematic diagram of the layout and wiring of a DDR5 DIMM memory module using a data cache for error correction according to another embodiment of the present invention;

[0032] Figure 4 This is a schematic diagram of the layout and wiring of a DDR5 DIMM memory module using a data cache for error correction, according to another embodiment of the present invention.

[0033] Figure 5 This is a schematic diagram of the layout and wiring of a DDR5 DIMM memory module using a data cache for error correction, according to another embodiment of the present invention.

[0034] Figure 6A and Figure 6BThese are layout and wiring diagrams of a DDR5 DIMM memory module using a data cache for error correction, according to yet another embodiment of the present invention.

[0035] Figure 7 This is a schematic diagram of the layout and wiring of a DDR5 DIMM memory module using a data cache for error correction, according to another embodiment of the present invention.

[0036] Figure 8 A schematic block diagram illustrating the read / write operation process of DDR DIMM memory according to an embodiment of the present invention;

[0037] Figure 9 This is a schematic block diagram illustrating the read / write operation process of DDR DIMM memory according to another embodiment of the present invention;

[0038] Figure 10 This is a structural block diagram of the first data transceiver according to an embodiment of the present invention;

[0039] Figure 11 This is a structural block diagram of the second data transceiver according to an embodiment of the present invention;

[0040] Figure 12 This is a schematic diagram of the memory write operation process according to an embodiment of the present invention;

[0041] Figure 13 This is a schematic diagram of the memory read operation process according to an embodiment of the present invention. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of this application. Therefore, the drawings and description are considered exemplary in nature and not restrictive.

[0043] Figure 1 This is a layout and routing diagram for a DDR5 Load Reduced DIMM (LRDIMM) memory module. Figure 1As shown, this memory module has memory chips on both sides (e.g., both sides of a printed circuit board or PCB), with a total of 2 ranks, one rank on each side. The front side is Rank 0 (first rank), and the back side is Rank 1 (second rank). Channel A (first channel) and channel B (second channel) each have 10 × 4 DRAM chips on the front (first group of DRAM chips), 10 × 4 DRAM chips on the back (second group of DRAM chips), and 5 data buffers (DBs). The registering clock driver (RCD) and DBs are both located on the front side of the memory module. Figure 1 The Rank 1 RCD is only used to demonstrate the connection relationship. The RCD connects to the memory chips on both sides via command / address lines, and each DB connects to its corresponding memory chip on both sides via data lines. Figure 1 (The data cable connections for Rank 1 are not shown). Each memory module (DB) connects to two memory chips on the front and two on the back on one side, and to the gold fingers on the edge of the memory module on the other side, then connects to the CPU's DDR data cable via the motherboard. Rank 0 and Rank 1 do not operate simultaneously; at any given time, either Rank 0 or Rank 1 is active, or neither is active. Each DB is responsible for only one-fifth of the data in its assigned channel.

[0044] Figure 2 This is a schematic diagram of the layout and routing of a DDR5 DIMM memory module using a data cache for error correction, according to an embodiment of the present invention. Figure 2 As shown, in Figure 1 Based on the structure shown, the five memory modules (DBs) of channels A and B are integrated together, and error correction functionality is further added to form a data buffer with error correction capabilities (hereinafter referred to as DBECC). That is, channel A has one DBECC to process all data from read operations (from DRAM to CPU) and write operations (from CPU to DRAM) on channel A, and to implement ECC encoding, decoding, automatic error correction, and error reporting. Channel B is similar. One side of the DBECC connects to multiple memory chips in its channel, and the other side connects to the gold fingers on the edge of the memory module, and then connects to the CPU's DDR data cable via the motherboard.

[0045] The memory chips in channel A and channel B can have the same layout. Taking channel A as an example, Rank 0 has 10 ×4 DRAM chips, arranged in two rows of 5 chips each. Rank 1 also has 10 ×4 DRAM chips, arranged in two rows of 5 chips each. The RCD and two DBECCs are located on the front of the memory module. Figure 2 The RCD in Rank 1 is only used to show the connection relationship. The RCD is set between the memory chips in channel A and channel B. The DBECC of channel A and channel B are set in the third row after the two rows of DRAM chips in Rank 0.

[0046] It should be understood that Figure 2 The width and height of the DRAM chips and the DBECC shown are for illustrative purposes only. The width and height of the DRAM chips can be customized depending on the actual storage capacity and manufacturing process, and the width and height of the DBECC can also be optimized according to the layout of the DRAM chips on the memory module. This invention does not impose any limitations on these aspects.

[0047] Figure 3 This is a layout and routing diagram of a DDR5 DIMM memory module utilizing a data cache for error correction, according to another embodiment of the present invention. Figure 3 As shown, in Figure 2 Based on the structure shown, the position of the DBECC was adjusted, and the positions of the memory chips were adjusted accordingly. Specifically, taking channel A as an example, the 10 × 4 DRAM chips of Rank 0 are arranged in two rows, where the number of memory chips in the first row is different from the number of memory chips in the second row. The DBECC is placed in the row with fewer memory chips, that is, memory chips are placed on both sides of the DBECC. In some implementations, the DBECC is placed in the position closest to the middle in the row with fewer memory chips. For example, Figure 3 In one configuration, the first row has 6 memory chips, the second row has 4 memory chips, and the DBECC (Deep Encryption Control Center) is positioned in the middle of the 4 memory chips in the second row, with 2 memory chips on each side of the DBECC. Alternatively, the first row can have 7 memory chips, the second row 3 memory chips, and the DBECC is positioned closest to the middle of the 3 memory chips in the second row, with 2 memory chips on one side and 1 memory chip on the other. Channel A's Rank 1 has the same memory chip layout as Rank 0, and channel B has the same memory chip and DBECC layout as channel A.

[0048] Figure 4 This is a layout and wiring diagram of a DDR5 DIMM memory module utilizing a data cache for error correction, according to another embodiment of the present invention. Figure 4 As shown, in Figure 2Based on the structure shown, the position of the DBECC (Decentralized Memory Control Center) has been adjusted, and the positions of the memory chips have been adjusted accordingly. Specifically, taking channel A as an example, the 10 ×4 DRAM chips of Rank 0 are arranged in two rows, with 5 ×4 DRAM chips in each row. The DBECC is positioned across rows between the memory chips in the first and second rows. In some implementations, the DBECC is positioned closest to the middle of the memory chips in the first and second rows. For example, there are 3 memory chips on each side of the first and second rows, and 2 memory chips on each side of the other side. Rank 1 of channel A has the same memory chip layout as Rank 0, and channel B has the same memory chip layout and DBECC layout as channel A.

[0049] exist Figures 2 to 4 In the illustrated embodiment, both Rank 0 and Rank 1 of a single channel have an even number of memory chips. When Rank 0 or Rank 1 is operating, DBECC provides a 40-bit data signal to 10 × 4 DRAM chips. Of these 40 bits, 32 bits are data and 8 bits are ECC checksums. It should be understood that the number of memory chips in Rank 0 and Rank 1 of a single channel in this embodiment can also be odd, and this invention does not impose any limitation on this.

[0050] like Figure 5 As shown, Rank 0 of channel A has 11 × 4 DRAM chips, arranged in two rows. The number of memory chips in the first row is different from that in the second row. The DBECC (Deep Encryption Controller) is located in the row with fewer memory chips, meaning there are memory chips on both sides of the DBECC. In some implementations, the DBECC is located closest to the center in the row with fewer memory chips. For example, the first row has 7 memory chips, the second row has 4 memory chips, and the DBECC is located in the middle of the 4 memory chips in the second row, meaning there are 2 memory chips on each side of the DBECC. Rank 1 of channel A has the same memory chip layout as Rank 0, and channel B has the same memory chip layout and DBECC layout as channel A.

[0051] Specifically, DBECC provides 44 bits of data signal to 11 × 4 DRAM chips. Of these 44 bits, 32 bits are data and 12 bits are ECC checksum.

[0052] Understandably, the more check codes there are, the stronger the error correction capability. To correct more errors, more check codes can be generated, but this requires more ×4 DRAM chips to support them. For example, DBECC can provide 48 bits of data signal to 12 ×4 DRAM chips. Of these 48 bits, 32 bits are data and 16 bits are ECC check codes.

[0053] exist Figures 2 to 5 In the embodiments shown, the memory chips are all ×4 DRAM. It should be understood that the memory chips of the DDRDIMM in the embodiments of the present invention can also be ×8 DRAM.

[0054] like Figure 6A As shown, Rank 0 of channel A has five ×8 DRAM chips arranged in the same row. The DBECC checksum is located in the second row after the first row of DRAM chips in Rank 0. Rank 1 of channel A has the same memory chip layout as Rank 0, and channel B has the same memory chip layout and DBECC layout as channel A. The DBECC provides 40 bits of data signal to the five ×8 DRAM chips, of which 32 bits are data and 8 bits are ECC checksum.

[0055] Figure 6B This refers to the case where Rank 0 of channel A has 6 × 8 DRAM chips. With 6 × 8 DRAM chips, the DBECC provides 48 bits of data signal to each chip. Of these 48 bits, 32 bits are data and 16 bits are ECC checksum.

[0056] Similarly, the more check codes there are, the stronger the error correction capability. To correct more errors, more check codes can be generated, but this requires more x8 DRAM chips to support them. For example, DBECC can provide 56 bits of data signal to seven x8 DRAM chips. Of these 56 bits, 32 bits are data and 24 bits are ECC check codes.

[0057] exist Figure 2 In the embodiments shown up to 6, each includes two Ranks, namely Rank0 and Rank1. Figure 2 , Figure 6A and Figure 6B In this model, the first rank has multiple row positions, with the data cache and the first set of DRAM chips occupying different row positions. Figures 3 to 5 In this context, the first Rank has multiple row positions, the first group of DRAM chips occupies these multiple row positions, and the data cache occupies one or more row positions of the first group of DRAM chips. For example, Figure 3 and Figure 5In the middle, the data cache occupies one row position of the first group of DRAM chips. Figure 4 In the middle, the data cache occupies all two row positions of the first group of DRAM chips.

[0058] It should be understood that the DDR DIMM in this embodiment of the invention may also have only one Rank. For example... Figure 7 As shown, the DDRDIMM memory module has DRAM chips only on the front, with only one Rank 0. Channel A's Rank 0 has 10 × 4 DRAM chips, and the DBECC is located on the back of the memory module (the DBECC on the front is only used to illustrate the connection relationship). Channel B has the same memory chip layout and DBECC layout as Channel A. The DBECC provides 40 bits of data signal to the 10 × 4 DRAM chips; of these 40 bits, 32 bits are data and 8 bits are ECC checksum.

[0059] The above are just some examples of DBECC layout and routing on memory modules. In actual implementation, the optimal layout and routing method can be determined based on the width and height of the DRAM chips and the number of Ranks of the memory module. This invention does not impose any restrictions on this.

[0060] Figure 8 This is a schematic block diagram illustrating the read / write operation process of DDR DIMM memory according to an embodiment of the present invention. Figure 8 As shown, the DBECC 701 is connected to both the CPU and the DRAM chip. During a write operation, the DBECC 701 receives all data signal bits from the CPU for its channel, performs ECC encoding on the data signal, generates a new ECC checksum, and sends the newly generated ECC checksum along with the data to the DRAM. During a read operation, the DBECC 701 receives all data signal bits from the DRAM for its channel, including data bits and checksum bits, checks for errors in the data signal. If no errors are found, the data signal is sent to the CPU; if errors are found, the DBECC automatically corrects the errors and then sends the data signal to the CPU.

[0061] Specifically, such as Figure 8As shown, the DBECC 701 includes a first data transceiver, a second data transceiver, and an ECC error correction module 703. The ECC error correction module 703 further includes an ECC encoder and an ECC decoder. During a write operation, the first data transceiver receives all data signal bits of its channel from the CPU at the rising edge of the system clock. The ECC encoder performs ECC encoding on the data signal to generate a new ECC checksum, which is then sent to the DRAM along with the data through the second data transceiver. During a read operation, the second data transceiver receives all data signal bits of its channel, including data bits and checksum bits, at the rising edge of the system clock. The ECC decoder detects whether there are any errors in the data signal. If no errors are found, the data signal is sent to the CPU through the first data transceiver; if errors are found, the ECC decoder automatically corrects the errors and sends the corrected data signal to the CPU through the first data transceiver.

[0062] In some implementations, if an error is found, the ECC decoder will automatically correct the error and store the specific error information in a local register for the CPU to read and process.

[0063] Figure 9 This is a schematic block diagram illustrating the read / write operation process of DDR DIMM memory according to another embodiment of the present invention. Figure 9 As shown, the DBECC 801 includes a first data transceiver, a second data transceiver, an ECC error correction module 703, a first selector, and a second selector. During a write operation, the first data transceiver receives all data signal bits of its channel from the CPU on the rising edge of the system clock. When the control terminal of the first selector selects to enable the ECC function, the ECC encoder performs ECC encoding on the data signal, generating a new ECC checksum. The newly generated ECC checksum and the data are output from the first selector to the second data transceiver, which then sends them to the DRAM. When the control terminal of the first selector selects to disable the ECC function, the first selector outputs all data signal bits received by the first data transceiver to the second data transceiver, which then sends them to the DRAM. In this case, the system relies on the CPU's memory controller for error correction.

[0064] During a read operation, the second data transceiver receives all data signal bits (including data bits and check bits) from the DRAM on the rising edge of the system clock for its channel. When the control terminal of the second selector enables ECC, the ECC decoder checks the data signal for errors. If no errors are found, the data signal is output from the second selector to the first data transceiver, which then sends it to the CPU. If errors are found, the ECC decoder automatically corrects the errors and outputs the corrected data signal from the second selector to the first data transceiver, which then sends it to the CPU. When the control terminal of the second selector disables ECC, the second selector outputs all data signal bits received by the second data transceiver to the first data transceiver, which then sends it to the CPU. In this case, the system relies on the CPU's memory controller for error correction.

[0065] In some implementations, the control terminals of the first selector and the second selector have the same signal input. In some implementations, the first data transceiver and the second data transceiver have the same structure.

[0066] Figure 10 This is a structural block diagram of the first data transceiver according to an embodiment of the present invention. Figure 10 As shown, the first data transceiver 901 includes multiple first receiving modules 903 and a first transmitting module 905. The multiple first receiving modules 903 are connected to the CPU and are used to acquire all data signal bits of the channel from the CPU, and send the acquired data signals to the first selector and the ECC encoder respectively. The first transmitting module 905 is connected to the second selector and is used to send the data signal output by the second selector to the CPU.

[0067] Specifically, the first receiving module 903 includes a first receiver (RX1), a second receiver (RX2), and a first D flip-flop. The first receiver is used to receive data signals from the CPU and output them to the input terminal (D terminal) of the first D flip-flop. The second receiver is used to receive the sampling clock (DQS) from the CPU and output it to the clock signal input terminal of the first D flip-flop. The positive output terminal (Q terminal) of the first D flip-flop outputs the data signal from the CPU on the rising edge of the clock signal.

[0068] The first transmitting module 905 includes a read FIFO module and a first transmitter (TX1). The read FIFO module is used to acquire data signals from the second selector and transmit the data signals to the CPU through the first transmitter.

[0069] Similarly, such as Figure 11As shown, the second data transceiver 1001 includes multiple second receiving modules 1003 and a second transmitting module 1005. The multiple second receiving modules 1003 are respectively connected to DRAM memory chips and are used to acquire data signals from the DRAM memory chips and send the acquired data signals to a second selector and an ECC decoder respectively. The second transmitting module 1005 is connected to a first selector and is used to send the data signal output by the first selector to the DRAM memory chips.

[0070] Specifically, the second receiving module 1003 includes a third receiver (RX3), a fourth receiver (RX4), and a second D flip-flop. The third receiver is used to receive data signals from the DRAM and output them to the input (D terminal) of the second D flip-flop. The fourth receiver is used to receive the sampling clock (MDQS) from the DRAM and output it to the clock signal input terminal of the second D flip-flop. The positive output terminal (Q terminal) of the second D flip-flop outputs the data signals from the DRAM on the rising edge of the clock signal.

[0071] The second transmitting module 1005 includes a write FIFO module and a second transmitter (TX2). The write FIFO module is used to acquire data signals from the first selector and transmit the data signals to the DRAM chip through the second transmitter.

[0072] The memory read / write operation process of this embodiment of the invention will be described in detail below, taking Rank0 of a single channel with 10 × 4 DRAM chips as an example.

[0073] During memory write operations, such as Figure 12 As shown, multiple first receiving modules 903 acquire all data signal bits of their respective channels from the CPU at the rising edge of the DQ sampling clock (DQS), totaling 40 bits of data signal. Of these, 32 bits are data and 8 bits are ECC checksums. Each first receiving module 903 acquires 4 bits of data signal, i.e., a DQ Nibble, labeled Nibble0-9. Here, DQ represents the data line connecting the CPU and the DBECC. When the ECC function of the first selector 1101 is enabled (default setting), the ECC encoder performs ECC encoding on the 32-bit data (in this embodiment, the 32-bit data can be composed of Nibble0-7) to generate a new 8-bit ECC checksum. This newly generated 8-bit ECC checksum and the 32-bit data are then sent to the DRAM chip via the write-first-in-first-out module and the second transmitter. It is understood that when the ECC function is enabled, the DBECC can ignore the 8-bit ECC code (e.g., Nibble8-9) sent by the CPU and use its own calculated new 8-bit ECC checksum for transmission and subsequent verification processes.

[0074] When the ECC function of the first selector 1101 is disabled, DBECC will directly send the 40-bit signal (e.g., composed of Nibble 0-9) from the CPU to the DRAM chip via the Write FIFO and the second transmitter. In this case, the system will rely on the CPU memory controller for error correction.

[0075] Similarly, such as Figure 13 As shown, during the memory read operation, multiple second receiving modules 1003 acquire all data signal bits of their respective channels from the DRAM memory chip at the rising edge of the MDQ sampling clock (MDQS), totaling 40 bits of data signal. Of these, 32 bits are data and 8 bits are ECC checksums. Each second receiving module 1003 acquires 4 bits of data signal, i.e., one MDQNibble, for a total of 10 Nibsbles. Here, MDQ represents the data line connecting the DBECC and the DRAM chip. When the ECC function of the second selector 1201 is enabled (default setting), it first decodes the data using the ECC decoder to determine if there are any errors. If no errors are found, the data signal does not need to be changed and is directly sent to the CPU through the read-first-out module and the first transmitter. If errors are found, the ECC decoder automatically corrects them and then sends the corrected data signal to the CPU through the read-first-out module and the first transmitter. In this case, the DBECC also stores the specific error information in a local register for the CPU to read and process.

[0076] When the ECC function of the second selector 1201 is disabled, all data signal bits of the channel obtained from the DRAM memory chip are directly sent to the CPU through the read-first-out module and the first transmitter. In this case, the system relies on the CPU memory controller for error correction.

[0077] In this embodiment of the invention, there are many choices for error-correcting codes, such as Hamming codes, Reed-Solomon ciphers, or other block codes or convolutional codes. The code length and specific mapping need to be determined based on the error characteristics of the memory granules.

[0078] In this embodiment of the invention, the DRAM memory chip can be DDR4, DDR5, DDR6, LPDDR or GDDR, or LPDDR4, LPDDR5 or LPDDR5x, or other types of DRAM memory chips. This invention does not limit the types of DRAM memory chips.

[0079] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0080] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.

[0081] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more (two or more) executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.

[0082] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).

[0083] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.

[0084] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.

[0085] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope disclosed in this application, and these should all be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A DDR dual in-line memory module, characterized in that, include: The first channel includes a first group of DRAM chips and a data buffer corresponding to the first group of DRAM chips. The data buffer is used to send external data to the first group of DRAM chips during a write operation and to retrieve data from the first group of DRAM chips during a read operation. The data buffer is also used to retrieve all data signal bits input to the first channel during a write operation, perform ECC encoding on the data in all the input data signal bits to generate a new ECC checksum, and send the new ECC checksum and the data in all the data signal bits together to the first group of DRAM chips. The data buffer is also used to retrieve all data signal bits of the first channel from the first group of DRAM chips during a read operation, decode and determine whether there are any errors, and correct the data signals before sending them out if errors are found.

2. The DDR dual in-line memory module as described in claim 1, characterized in that, It also includes a first Rank, wherein the first group of DRAM chips is disposed in the first Rank; the data buffer is used to send data from all data signal bits input to the first channel to the first group of DRAM chips during a write operation, and to obtain all data signal bits of the first channel from the first group of DRAM chips during a read operation.

3. The DDR dual in-line memory module as described in claim 2, characterized in that, It also includes a second Rank, which is located on the opposite side of the face where the first Rank is located, and the second Rank has a second group of DRAM particles corresponding to the first group of DRAM particles; the data buffer is also used to send data from all data signal bits input to the first channel to the second group of DRAM particles in a write operation, and to obtain all data signal bits of the first channel from the second group of DRAM particles in a read operation.

4. The DDR dual in-line memory module as described in claim 1, characterized in that, The data buffer includes a first data transceiver, a second data transceiver, an ECC encoder, and an ECC decoder; the ECC encoder and the ECC decoder are respectively connected between the first data transceiver and the second data transceiver, and the second data transceiver is connected to the first group of DRAM.

5. The DDR dual in-line memory module as described in claim 4, characterized in that, During the write operation, the first data transceiver receives all data signal bits input to the first channel under the trigger of a clock signal. The ECC encoder performs ECC encoding on the data in all the received data signal bits to generate a new ECC check code, and sends the newly generated ECC check code and the data together to the first group of DRAM chips through the second data transceiver.

6. The DDR dual in-line memory module as described in claim 4, characterized in that, During the read operation, the second data transceiver obtains all data signal bits of the first channel from the first group of DRAM chips under the trigger of the clock signal. The ECC decoder detects whether there are errors in all the received data signal bits. If there are errors, the ECC decoder corrects the data signal and then sends it out through the first data transceiver.

7. The DDR dual in-line memory module as described in claim 1, characterized in that, The data buffer includes a first data transceiver, a second data transceiver, an ECC encoder, an ECC decoder, a first selector, and a second selector; the ECC encoder is connected between the first selector and the first data transceiver, the ECC decoder is connected between the second selector and the second data transceiver, the first selector is connected to the second data transceiver, the second selector is connected to the first data transceiver, and the second data transceiver is connected to the first group of DRAM chips.

8. The DDR dual in-line memory module as described in claim 7, characterized in that, The first selector is used to select whether to enable the ECC function during a write operation. When the ECC function is enabled, the first selector selects to send the output of the ECC encoder to the first group of DRAM chips through the second data transceiver. The second selector is used to select whether to enable the ECC function during the read operation. When the ECC function is enabled, the second selector selects to send the output of the ECC decoder through the first data transceiver.

9. The DDR dual in-line memory module as described in any one of claims 4 to 8, characterized in that, The first data transceiver includes multiple first receiving modules and a first transmitting module; the multiple first receiving modules are used to acquire all data signal bits of the first channel from the outside during a write operation and send the data in all acquired data signal bits to the ECC encoder; the first transmitting module is used to send out all data signal bits of the first channel during a read operation.

10. The DDR dual in-line memory module as described in claim 9, characterized in that, The first receiving module includes a first receiver, a second receiver, and a first D flip-flop; the first receiver is used to receive data signals from the outside and output them to the input terminal of the first D flip-flop; the second receiver is used to receive sampling clock signals from the outside and output them to the clock signal input terminal of the first D flip-flop; the positive output terminal of the first D flip-flop outputs the data signals from the outside at the rising edge of the clock signal.

11. A storage system, characterized in that, It includes a CPU and a DDR dual in-line memory module as described in any one of claims 1 to 10.

12. An operating method for a DDR dual in-line memory module, characterized in that, The DDR dual in-line memory module includes a first channel, the first channel including a first group of DRAM chips and a data cache corresponding to the first group of DRAM chips; the operation method includes performing the following operations using the data cache: During a write operation, all data signal bits of the channel are retrieved from the outside. ECC encoding is performed on all data signal bits acquired from the outside to generate a new ECC check code; Send the new ECC checksum along with the data in all data signal bits to the DRAM chip in the channel. During a read operation, all data signal bits of the channel in the DRAM chip are retrieved. Determine if there are any errors in all data signal bits obtained from the DRAM chip; If there are errors, the acquired data signal bits will be corrected before being sent out.

13. The operating method as described in claim 12, characterized in that, When the ECC function is enabled, the operation of ECC encoding is performed on the data in the data signal bits obtained from the outside to generate a new ECC check code; the new ECC check code and the data in the data signal bits are then sent to the DRAM chip in the channel.

14. The operating method as described in claim 12, characterized in that, When the ECC function is off, the operation of ECC encoding the data in the data signal bits obtained from the outside to generate a new ECC check code and sending the new ECC check code and the data in the data signal bits to the DRAM chip in the channel is not performed; instead, all data signal bits obtained from the outside are sent to the DRAM chip in the channel.

15. The operating method as described in claim 12, characterized in that, When the ECC function is enabled, the operation of determining whether there are errors in all data signal bits obtained from the DRAM chip is performed; if errors are found, the obtained data signal bits are corrected before being sent out.

16. The operating method as described in claim 12, characterized in that, If an error exists, the method further includes storing the error information.

17. The operating method as described in claim 12, characterized in that, When the ECC function is off, the operation of determining whether there are errors in all data signal bits obtained from the DRAM chip is not performed; if there are errors, the obtained data signal bits are corrected before being sent out; instead, all data signal bits obtained from the DRAM chip are sent out.

Citation Information

Patent Citations

  • Methods of operating semiconductor memory devices and semiconductor memory devices

    CN107545915A

  • High reliability memory module with a fault tolerant address and command bus

    US20040205433A1