A memory chip initialization method and device, electronic equipment and storage medium
By automatically identifying the memory chip protocol type and hardware support, and setting the initial gear and executing the calibration strategy differently, the problem of limited signal eye diagram opening and low efficiency in traditional memory chip initialization is solved, thereby improving signal integrity and shortening the initialization time.
Patent Information
- Application Number
- CN202611632895.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-21
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional memory chip initialization schemes neglect the role of decision feedback equalizers, resulting in limited signal eye diagram opening and low initialization efficiency.
By reading the mode register operation bits of the memory chip, the protocol type is automatically identified and the total number of levels of the decision feedback equalizer is determined. It is then determined whether the hardware supports the decision feedback equalizer, and the initial levels are set for the high and low bytes respectively. Differentiated calibration strategies are then executed, including open-loop pre-calibration and joint calibration of the decision feedback equalizer.
It effectively suppresses inter-symbol interference in high-speed signal transmission, significantly increases the signal eye diagram opening, improves signal integrity, and greatly shortens the initialization time.
Smart Images

Figure CN123138178A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of memory initialization technology, and in particular to a memory chip initialization method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid increase in memory bandwidth demands from mobile devices, high-performance computing, and artificial intelligence applications, LPDDR5 and LPDDR5x have become mainstream memory chip standards. Memory chip initialization refers to the process by which the system undergoes a series of configuration commands and calibration training after power-on or reset. However, traditional initialization schemes neglect the role of the decision feedback equalizer inside the memory chip, failing to effectively suppress inter-symbol interference in high-speed signal transmission, resulting in limited signal eye diagram opening. Furthermore, traditional initialization schemes mostly employ the same training logic, leading to low initialization efficiency. Summary of the Invention
[0003] The purpose of this invention is to provide a memory chip initialization method, apparatus, electronic device, and storage medium to solve the technical problems of limited signal eye diagram opening and low initialization efficiency in the prior art.
[0004] The technical solution of the present invention is as follows: a memory chip initialization method is provided, comprising: Read the operation bits of the first mode register of the memory chip, and determine the protocol type of the memory chip based on the operation bits of the first mode register; The total number of levels of the decision feedback equalizer is determined based on the protocol type of the memory chip; Read the operation bits of the second mode register of the memory chip, and determine whether the memory chip supports a decision feedback equalizer in hardware based on the operation bits of the second mode register; If the memory chip does not support a decision feedback equalizer in hardware, then the read / write orientation calibration algorithm is trained on the memory chip. If the memory chip supports a decision feedback equalizer in hardware, the initial level is set for the high byte and low byte of the memory chip according to the total number of levels of the decision feedback equalizer. Read the operation bit of the third mode register. If the operation bit of the third mode register is the first preset value, then perform open-loop pre-calibration of the decision feedback equalizer on the memory chip according to the initial gear of the high byte and low byte of the memory chip. If the operation bit of the third mode register is the second preset value, then the memory chip is subjected to joint calibration of the decision feedback equalizer and the read / write orientation calibration algorithm.
[0005] Further, determining the protocol type of the memory chip based on the operation bits of the first mode register includes: If the operation bit of the first mode register is the third preset value, then the protocol type of the memory chip is LPDDR5; otherwise, the protocol type of the memory chip is LPDDR5x.
[0006] Further, the total number of levels of the decision feedback equalizer is determined according to the protocol type of the memory chip, including: If the protocol type of the memory chip is LPDDR5, then the total number of levels of the corresponding decision feedback equalizer is 3; if the protocol type of the memory chip is LPDDR5x, then based on the chip capability information of the memory chip, the total number of levels of the corresponding decision feedback equalizer is determined to be 3 or 7.
[0007] Further, determining whether the memory chip supports a decision feedback equalizer in hardware based on the operation bits of the second mode register includes: If the operation bit of the second mode register is the fourth preset value, it is determined that the memory chip does not support the decision feedback equalizer in hardware. If the operation bit of the second mode register is the fifth preset value, it is determined that the memory chip supports the decision feedback equalizer in hardware.
[0008] Furthermore, based on the total number of levels in the decision feedback equalizer, initial levels are set for the high and low bytes of the memory chip, including: Read the physical link status of the high byte and the physical link status of the low byte of the memory chip respectively; Based on the total number of gears in the decision feedback equalizer, the physical link status of the high byte, and the physical link status of the low byte, the initial gears are set for the high byte and the low byte, respectively.
[0009] Furthermore, the memory chip undergoes joint calibration using a decision feedback equalizer and a read / write orientation calibration algorithm, including: Using the initial gear positions of the high byte and the low byte as the search starting point, the read / write orientation calibration algorithm is trained, the decision feedback equalizer is enabled, and the tap coefficients of the decision feedback equalizer are iteratively optimized by reading back the error rate of the received data to obtain the optimal parameter combination including the tap coefficients of the decision feedback equalizer and the parameters of the read / write orientation calibration algorithm. The optimal parameter combination is written into the register group to complete the joint calibration.
[0010] Furthermore, the memory chip undergoes joint calibration using a decision feedback equalizer and a read / write orientation calibration algorithm, including: The memory chip is subjected to joint calibration of a decision feedback equalizer and a read / write directional calibration algorithm at the frequencies corresponding to the low-frequency, medium-frequency, and high-frequency operating modes, respectively.
[0011] Another technical solution of the present invention is as follows: a memory chip initialization device is provided, including a protocol type judgment module, a gear determination module, a decision feedback equalizer support judgment module, a training module, an initial gear setting module, a first calibration module, and a second calibration module; The protocol type determination module is used to read the operation bits of the first mode register of the memory chip and determine the protocol type of the memory chip based on the operation bits of the first mode register. The gear determination module is used to determine the total number of gears of the decision feedback equalizer according to the protocol type of the memory chip; The decision feedback equalizer supports a decision module, which reads the operation bits of the second mode register of the memory chip and determines whether the memory chip supports the decision feedback equalizer in hardware based on the operation bits of the second mode register. The training module is used to train a read / write orientation calibration algorithm on the memory chip if the memory chip does not support a decision feedback equalizer in hardware. The initial gear setting module is used to set the initial gear of the memory chip according to the total number of gears of the decision feedback equalizer, based on the high byte and low byte of the memory chip, if the memory chip supports the decision feedback equalizer in hardware. The first calibration module is used to read the operation bit of the third mode register. If the operation bit of the third mode register is a first preset value, then according to the initial gear of the high byte and low byte of the memory chip, the open-loop pre-calibration of the decision feedback equalizer is performed on the memory chip. The second calibration module is used to perform joint calibration of the memory chip by a decision feedback equalizer and a read / write orientation calibration algorithm if the operation bit of the third mode register is a second preset value.
[0012] Another technical solution of the present invention is as follows: an electronic device is provided, including a memory and a processor. The memory stores a computer program that can be executed by the processor. When the processor executes the computer program, it implements the memory chip initialization method as described in any of the above technical solutions.
[0013] Another technical solution of the present invention is as follows: a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the memory chip initialization method as described in any of the above technical solutions.
[0014] The beneficial effects of this invention are as follows: The operation bits of the first mode register of the memory chip are read, and the protocol type of the memory chip is determined based on the operation bits of the first mode register; the total number of levels of the decision feedback equalizer is determined based on the protocol type of the memory chip; the operation bits of the second mode register of the memory chip are read, and the hardware support of the decision feedback equalizer is determined based on the operation bits of the second mode register; if the memory chip does not support the decision feedback equalizer in hardware, a read / write orientation calibration algorithm is trained on the memory chip; if the memory chip supports the decision feedback equalizer in hardware, initial levels are set for the high and low bytes of the memory chip according to the total number of levels of the decision feedback equalizer; the operation bits of the third mode register are read, and if the operation bits of the third mode register are... If a preset value is set, then based on the initial gear positions of the high and low bytes of the memory chip, an open-loop pre-calibration of the decision feedback equalizer is performed on the memory chip. If the operation bit of the third mode register is a second preset value, then a joint calibration of the decision feedback equalizer and the read / write directional calibration algorithm is performed on the memory chip. The above technical solution automatically identifies the protocol type by reading the first mode register and determines the total number of gear positions of the decision feedback equalizer accordingly. Furthermore, it determines whether the hardware supports the decision feedback equalizer through the second mode register. If it does, the decision feedback equalizer is actively enabled and initial gear positions are set for the high and low bytes respectively. This mechanism ensures that the decision feedback equalizer function can adaptively enable calibration according to the protocol type, effectively suppressing inter-symbol interference in high-speed signal transmission, significantly increasing the signal eye diagram opening, and improving signal integrity in high-speed mode. By reading the third-mode register, it is determined whether the memory chip supports parameter readback. Based on this, a differentiated calibration path is selected. For chips that do not support readback, the decision feedback equalizer is directly pre-calibrated in an open loop, avoiding unnecessary closed-loop iterations and significantly reducing initialization time. For chips that support readback, the decision feedback equalizer and read / write directional calibration algorithm are jointly calibrated to fully utilize the readback capability and achieve rapid convergence. This calibration strategy fundamentally overcomes the inefficiency caused by the single training logic in traditional schemes, shortening the initialization time while ensuring performance. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating the memory chip initialization method provided in an embodiment of the present invention.
[0016] Figure 2 This is a schematic diagram of the structure of a memory chip initialization device provided in an embodiment of the present invention.
[0017] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0019] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0020] Figure 1 This is a flowchart illustrating the memory chip initialization method according to an embodiment of the present invention. It should be noted that if substantially the same result is achieved, the memory chip initialization method of the present invention does not necessarily differ. Figure 1 The illustrated process sequence is limited. For example... Figure 1 As shown, the memory chip initialization method mainly includes the following steps: S101, Read the operation bit of the first mode register of the memory chip, and determine the protocol type of the memory chip based on the operation bit of the first mode register; In some embodiments, determining the protocol type of the memory chip based on the operation bits of the first mode register includes: If the operation bit of the first mode register is the third preset value, then the protocol type of the memory chip is LPDDR5; otherwise, the protocol type of the memory chip is LPDDR5x.
[0021] In this embodiment of the invention, by reading the operation bits of the first mode register, the two protocols LPDDR5 and LPDDR5x can be accurately distinguished without manual intervention or firmware hard coding. This allows subsequent steps such as determining the total number of equalizer levels and selecting calibration strategies to be adaptively adjusted according to the actual protocol type, thus avoiding configuration errors caused by protocol misjudgment.
[0022] In one specific embodiment, the protocol type can be determined by reading the operation bits of the first mode register of the memory chip (e.g., DRAM), such as MR8 register (mode register 8), such as OP[1:0]. For example, if OP[1:0] is the third preset value, i.e. 00, then the protocol type of the memory chip is determined to be LPDDR5. If OP[1:0] is not 00, then the protocol type of the memory chip is determined to be LPDDR5x. The determination result can be loaded into the corresponding initial configuration parameter set.
[0023] S102, determine the total number of levels of the decision feedback equalizer according to the protocol type of the memory chip; In some embodiments, determining the total number of levels of the decision feedback equalizer based on the protocol type of the memory chip includes: If the protocol type of the memory chip is LPDDR5, then the total number of levels of the corresponding decision feedback equalizer is 3; if the protocol type of the memory chip is LPDDR5x, then based on the chip capability information of the memory chip, the total number of levels of the corresponding decision feedback equalizer is determined to be 3 or 7.
[0024] In this embodiment of the invention, for the LPDDR5 protocol, it is directly fixed at 3 levels, avoiding unnecessary level exploration, simplifying the initialization process, and shortening the configuration time. For the LPDDR5x protocol, the actual supported levels (3 or 7 levels) are dynamically determined by reading the chip capability information. This prevents invalid configuration and additional overhead caused by too many preset levels, and also avoids limiting the equalization capability of the decision feedback equalizer by too few preset levels. Thus, while ensuring the signal eye diagram margin, the initialization efficiency is improved. This differentiated processing makes the total number of DFE levels accurately match the actual chip capability, providing an accurate basis for setting the initial levels of high and low bytes, and further optimizing the high-speed signal quality.
[0025] In one specific embodiment, the number of levels supported by the decision feedback equalizer (DFE) inside the memory chip can be determined by reading MR8 or other registers, distinguishing whether the decision feedback equalizer supports three levels or seven levels, for subsequent calibration accuracy control.
[0026] In one specific embodiment, LPDDR5 and LPDDR5x protocol type memory chips differ in the programmable levels of the decision feedback equalizer. LPDDR5 protocol type memory chips typically support 3 levels (001, 010, 011), while LPDDR5x protocol type memory chips can be extended to 7 levels (001~111), depending on the manufacturer's implementation. After the protocol type is determined, detailed information reflecting the actual decision feedback equalizer hardware capabilities of the chip can be obtained by reading specific registers inside the memory chip, such as the low byte / high byte DFE field of MR24, and the vendor-defined MR70~MR73, to determine whether the total number of levels of the corresponding decision feedback equalizer is 3 or 7. If the read fails, the default protocol value is used: LPDDR5 uses 3 levels, and LPDDR5x protocol type memory chips use 7 levels.
[0027] S103, Read the operation bit of the second mode register of the memory chip, and determine whether the memory chip supports a decision feedback equalizer in hardware based on the operation bit of the second mode register; In some embodiments, determining whether the memory chip supports a decision feedback equalizer in hardware based on the operation bits of the second mode register includes: If the operation bit of the second mode register is the fourth preset value, it is determined that the memory chip does not support the decision feedback equalizer in hardware. If the operation bit of the second mode register is the fifth preset value, it is determined that the memory chip supports the decision feedback equalizer in hardware.
[0028] In this embodiment of the invention, by reading the operation bits of the second mode register, it is possible to accurately determine whether the memory chip supports a decision feedback equalizer in hardware, without relying on external table lookups or manual configuration. For chips that do not support decision feedback equalizers, the decision feedback equalizer-related steps are skipped directly, and only read / write directional calibration algorithm training is performed, avoiding invalid gear settings and calibration attempts and significantly shortening the initialization time. For chips that support decision feedback equalizers, the subsequent gear setting and calibration process proceeds normally, fully utilizing the decision feedback equalizer's ability to suppress inter-symbol interference and improving signal eye diagram margin, thus optimizing the initialization speed while ensuring signal quality.
[0029] In one specific embodiment, the OP7 operation bit of the MR24 register can be read. If OP7 is 0, it indicates that the memory chip does not support the decision feedback equalizer function in hardware; if OP7 is 1, it indicates that the decision feedback equalizer function is supported.
[0030] S104, If the memory chip does not support a decision feedback equalizer in hardware, then the read / write orientation calibration algorithm is trained on the memory chip. In one specific embodiment, the OP7 operation bit of the MR24 register can be read. If OP7 is 0, it means that the memory chip does not support the decision feedback equalizer function in hardware. In this case, all decision feedback equalizer related operations are skipped, and only the read / write orientation calibration algorithm training is performed. If OP7 is 1, it means that the decision feedback equalizer function is supported. In this case, the high and low byte differential configuration is enabled, that is, the decision feedback equalizer parameters are set independently for the high byte and low byte data channels to offset the differences in physical links.
[0031] S105, if the memory chip supports a decision feedback equalizer in hardware, then the initial level is set for the high byte and low byte of the memory chip according to the total number of levels of the decision feedback equalizer. In some embodiments, setting initial gears for the high and low bytes of the memory chip based on the total number of gears in the decision feedback equalizer includes: Read the physical link status of the high byte and the physical link status of the low byte of the memory chip respectively; Based on the total number of gears in the decision feedback equalizer, the physical link status of the high byte, and the physical link status of the low byte, the initial gears are set for the high byte and the low byte, respectively.
[0032] In this embodiment of the invention, the physical link status of the high byte and low byte are read separately, and an initial setting is independently configured for each byte based on the total number of settings in the decision feedback equalizer. Since the high byte and low byte may differ in physical channels such as PCB routing and crosstalk coupling, this differentiated setting makes the initial value of the decision feedback equalizer for each byte closer to its actual optimal operating point, thereby accelerating the convergence speed of subsequent calibration and shortening the initialization time. Simultaneously, a more accurate initial setting helps avoid calibration getting trapped in local optima, ultimately achieving a larger signal eye diagram opening and improving the reliability of high-speed signal transmission.
[0033] In one specific embodiment, before enabling the decision feedback equalizer, the physical link status of the high byte and low byte can be read separately (by monitoring the built-in eye diagram or by setting a preset offset), and the initial parameters of the DFE can be set individually for each byte to compensate for differences caused by factors such as trace length and impedance discontinuity.
[0034] In one specific embodiment, the degree of difference in physical links between high and low bytes may vary under different protocols. LPDDR5x, with its higher frequency, is more sensitive to trace losses. After protocol identification, different initial decision feedback equalizer default levels and directional calibration algorithm delay baselines can be loaded for each byte. By selecting a starting level close to the optimal solution for each byte based on measured eye diagram opening, bit error rate, or preset offset, blind searching starting from a random level can be avoided. S106, read the operation bit of the third mode register. If the operation bit of the third mode register is the first preset value, then perform open-loop pre-calibration of the decision feedback equalizer on the memory chip according to the initial position of the high byte and low byte of the memory chip. In one specific embodiment, when the operation bit of the third mode register is the first preset value, for example, OP3=0 of the MR23 register (i.e., it does not support the reading back of the directional calibration algorithm), the optimal gear cannot be found through iteration. At this time, an estimated optimal fixed gear, i.e. the initial gear, can be directly written according to the physical link status to perform open-loop pre-calibration without iterative adjustment to complete the initialization.
[0035] S107, if the operation bit of the third mode register is the second preset value, then the memory chip is subjected to joint calibration of the decision feedback equalizer and the read / write orientation calibration algorithm.
[0036] In some embodiments, joint calibration of the memory chip using a decision feedback equalizer and a read / write orientation calibration algorithm includes: Using the initial gear positions of the high byte and the low byte as the search starting point, the read / write orientation calibration algorithm is trained, the decision feedback equalizer is enabled, and the tap coefficients of the decision feedback equalizer are iteratively optimized by reading back the error rate of the received data to obtain the optimal parameter combination including the tap coefficients of the decision feedback equalizer and the parameters of the read / write orientation calibration algorithm. The optimal parameter combination is written into the register group to complete the joint calibration.
[0037] This invention uses a differentiated initial gear setting as the search starting point, avoiding blind iteration from scratch, significantly accelerating calibration convergence and shortening initialization time. By enabling the decision feedback equalizer and reading back the data error rate, the tap coefficients of the decision feedback equalizer are iteratively optimized in the closed-loop feedback, while simultaneously adjusting the parameters of the directional calibration algorithm to achieve a joint optimal match between equalization and timing windows. This enables a larger signal eye diagram opening in a shorter time, effectively suppressing inter-symbol interference and improving the reliability of high-speed signal transmission. Furthermore, the optimal parameter combination is written into the register set for permanent storage, ensuring direct loading during subsequent runtime without repeated calibration, further improving system startup efficiency.
[0038] In one specific embodiment, when the operation bit of the third mode register is a first preset value, for example, OP3=1 of the MR23 register (i.e., supporting readback of the directional calibration algorithm), the initial position of the high byte and the initial position of the low byte are used as the search starting point. The write directional calibration algorithm training is performed to adjust the center of the write data eye diagram, and the read directional calibration algorithm training is performed to adjust the center of the read data eye diagram. The decision feedback equalizer is enabled. By reading back the error rate of the received data, the tap coefficients of the decision feedback equalizer are iteratively optimized to obtain the optimal parameter combination, including the tap coefficients of the decision feedback equalizer and the read / write directional calibration algorithm parameters. The optimal parameter combination is written into the register group to complete the joint calibration. The tap coefficients of the decision feedback equalizer may include the low byte DFE position value, the high byte DFE position value, etc., and the read / write directional calibration algorithm parameters may include write DCA parameters, read DCA parameters, etc.
[0039] In some embodiments, joint calibration of the memory chip using a decision feedback equalizer and a read / write orientation calibration algorithm includes: The memory chip is subjected to joint calibration of a decision feedback equalizer and a read / write directional calibration algorithm at the frequencies corresponding to the low-frequency, medium-frequency, and high-frequency operating modes, respectively.
[0040] This invention, through independent optimization for each frequency point, ensures sufficient eye diagram opening across low, medium, and high frequencies, significantly improving signal integrity and reliability across the entire speed range. Simultaneously, joint calibration allows for parameter storage at all three frequency points, eliminating the need for repeated training during subsequent frequency switching and indirectly reducing system startup and mode switching time, thus balancing performance and efficiency.
[0041] In one specific embodiment, the memory chip is jointly calibrated using a decision feedback equalizer and a read / write directional calibration algorithm at the frequencies corresponding to the low-frequency operating mode (FSP0), mid-frequency operating mode (FSP1), and high-frequency operating mode (FSP2), respectively, to obtain the optimal parameter combination at the frequencies corresponding to the low-frequency, mid-frequency, and high-frequency operating modes. When the system switches memory frequencies due to load changes, the pre-stored parameters of the corresponding operating mode can be loaded into the memory chip, eliminating the need for retraining and achieving a seamless transition.
[0042] This invention provides a memory chip initialization method that automatically identifies the protocol type by reading a first mode register and determines the total number of levels for the decision feedback equalizer accordingly. Further, it uses a second mode register to determine whether the hardware supports the decision feedback equalizer. If supported, the equalizer is actively enabled, and initial levels are set for high and low bytes. This mechanism ensures that the decision feedback equalizer function can adaptively start calibration according to the protocol type, effectively suppressing inter-symbol interference in high-speed signal transmission, significantly increasing the signal eye diagram opening, and improving signal integrity in high-speed mode. By reading a third mode register, it determines whether the memory chip supports parameter readback functionality and selects a differentiated calibration path accordingly. For chips that do not support readback, open-loop pre-calibration of the decision feedback equalizer is directly performed, avoiding unnecessary closed-loop iterations and significantly reducing initialization time. For chips that support readback, joint calibration of the decision feedback equalizer and read / write directional calibration algorithm is performed, fully utilizing readback capabilities to achieve rapid convergence. This calibration strategy fundamentally overcomes the inefficiency caused by the single training logic of traditional schemes, shortening initialization time while ensuring performance.
[0043] Figure 2 This is a schematic diagram of the structure of a memory chip initialization device according to an embodiment of the present invention, as shown below. Figure 2 As shown, the memory chip initialization device 20 includes a protocol type determination module 21, a gear determination module 22, a decision feedback equalizer support determination module 23, a training module 24, an initial gear setting module 25, a first calibration module 26, and a second calibration module 27. The protocol type determination module 21 is used to read the operation bits of the first mode register of the memory chip and determine the protocol type of the memory chip based on the operation bits of the first mode register. The gear determination module 22 is used to determine the total number of gears of the decision feedback equalizer according to the protocol type of the memory chip. The decision feedback equalizer supports the decision module 23, which reads the operation bits of the second mode register of the memory chip and determines whether the memory chip supports the decision feedback equalizer in hardware based on the operation bits of the second mode register. The training module 24 is used to train a read / write orientation calibration algorithm on the memory chip if the memory chip does not support a decision feedback equalizer in hardware. The initial gear setting module 25 is used to set the initial gear of the memory chip according to the total number of gears of the decision feedback equalizer, based on the high byte and low byte of the memory chip, if the memory chip supports the decision feedback equalizer in hardware. The first calibration module 26 is used to read the operation bit of the third mode register. If the operation bit of the third mode register is a first preset value, then according to the initial gear of the high byte and low byte of the memory chip, the decision feedback equalizer open-loop pre-calibration is performed on the memory chip. The second calibration module 27 is used to perform joint calibration of the memory chip by a decision feedback equalizer and a read / write orientation calibration algorithm if the operation bit of the third mode register is a second preset value.
[0044] In some embodiments, the protocol type determination module 21 determines the protocol type of the memory chip based on the operation bits of the first mode register, including: If the operation bit of the first mode register is the third preset value, then the protocol type of the memory chip is LPDDR5; otherwise, the protocol type of the memory chip is LPDDR5x.
[0045] In some embodiments, the gear determination module 22 determines the total number of gears for the decision feedback equalizer based on the protocol type of the memory chip, including: If the protocol type of the memory chip is LPDDR5, then the total number of levels of the corresponding decision feedback equalizer is 3; if the protocol type of the memory chip is LPDDR5x, then based on the chip capability information of the memory chip, the total number of levels of the corresponding decision feedback equalizer is determined to be 3 or 7.
[0046] In some embodiments, the decision feedback equalizer supports the judgment module 23 in determining whether the memory chip hardware supports a decision feedback equalizer based on the operation bits of the second mode register, including: If the operation bit of the second mode register is the fourth preset value, it is determined that the memory chip does not support the decision feedback equalizer in hardware. If the operation bit of the second mode register is the fifth preset value, it is determined that the memory chip supports the decision feedback equalizer in hardware.
[0047] In some embodiments, the initial gear setting module 25 sets the initial gear for the high byte and low byte of the memory chip according to the total number of gears of the decision feedback equalizer, including: Read the physical link status of the high byte and the physical link status of the low byte of the memory chip respectively; Based on the total number of gears in the decision feedback equalizer, the physical link status of the high byte, and the physical link status of the low byte, the initial gears are set for the high byte and the low byte, respectively.
[0048] In some embodiments, the second calibration module 27 performs joint calibration of the memory chip using a decision feedback equalizer and a read / write orientation calibration algorithm, including: Using the initial gear positions of the high byte and the low byte as the search starting point, the read / write orientation calibration algorithm is trained, the decision feedback equalizer is enabled, and the tap coefficients of the decision feedback equalizer are iteratively optimized by reading back the error rate of the received data to obtain the optimal parameter combination including the tap coefficients of the decision feedback equalizer and the parameters of the read / write orientation calibration algorithm. The optimal parameter combination is written into the register group to complete the joint calibration.
[0049] In some embodiments, the second calibration module 27 performs joint calibration of the memory chip using a decision feedback equalizer and a read / write orientation calibration algorithm, including: The memory chip is subjected to joint calibration of a decision feedback equalizer and a read / write directional calibration algorithm at the frequencies corresponding to the low-frequency, medium-frequency, and high-frequency operating modes, respectively.
[0050] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 3 As shown, the electronic device 30 includes a processor 31 and a memory 32 communicatively connected to the processor 31.
[0051] The memory 32 stores program instructions for implementing the memory chip initialization method of any of the above embodiments.
[0052] The processor 31 is used to execute program instructions stored in the memory 32 to initialize the memory chip.
[0053] The processor 31 can also be referred to as a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip with signal processing capabilities. The processor 31 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor.
[0054] This invention provides a storage medium that stores program instructions capable of implementing all the methods described above. The storage medium can be non-volatile or volatile. These program instructions can be stored in the storage medium as a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or terminal devices such as computers, servers, mobile phones, and tablets.
[0055] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0056] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0057] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one 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 be stored in a computer-readable storage medium.
[0058] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0059] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0060] The technical solutions provided in this application have been described in detail above. Specific examples have been used in this application to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
[0061] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0062] This application is described with reference to flowchart illustrations and / or block diagrams of the methods, apparatus, and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0063] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0064] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0065] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A memory chip initialization method, characterized in that, include: Read the operation bits of the first mode register of the memory chip, and determine the protocol type of the memory chip based on the operation bits of the first mode register; The total number of levels of the decision feedback equalizer is determined based on the protocol type of the memory chip; Read the operation bits of the second mode register of the memory chip, and determine whether the memory chip supports a decision feedback equalizer in hardware based on the operation bits of the second mode register; If the memory chip does not support a decision feedback equalizer in hardware, then the read / write orientation calibration algorithm is trained on the memory chip. If the memory chip supports a decision feedback equalizer in hardware, the initial level is set for the high byte and low byte of the memory chip according to the total number of levels of the decision feedback equalizer. Read the operation bit of the third mode register. If the operation bit of the third mode register is the first preset value, then perform open-loop pre-calibration of the decision feedback equalizer on the memory chip according to the initial gear of the high byte and low byte of the memory chip. If the operation bit of the third mode register is the second preset value, then the memory chip is subjected to joint calibration of the decision feedback equalizer and the read / write orientation calibration algorithm.
2. The memory chip initialization method according to claim 1, characterized in that, Determining the protocol type of the memory chip based on the operation bits of the first mode register includes: If the operation bit of the first mode register is the third preset value, then the protocol type of the memory chip is LPDDR5; otherwise, the protocol type of the memory chip is LPDDR5x.
3. The memory chip initialization method according to claim 2, characterized in that, The total number of levels of the decision feedback equalizer is determined based on the protocol type of the memory chip, including: If the protocol type of the memory chip is LPDDR5, then the total number of levels of the corresponding decision feedback equalizer is 3; if the protocol type of the memory chip is LPDDR5x, then based on the chip capability information of the memory chip, the total number of levels of the corresponding decision feedback equalizer is determined to be 3 or 7.
4. The memory chip initialization method according to claim 1, characterized in that, Determining whether the memory chip supports a decision feedback equalizer in hardware based on the operation bits of the second mode register includes: If the operation bit of the second mode register is the fourth preset value, it is determined that the memory chip does not support the decision feedback equalizer in hardware. If the operation bit of the second mode register is the fifth preset value, it is determined that the memory chip supports the decision feedback equalizer in hardware.
5. The memory chip initialization method according to claim 1, characterized in that, Based on the total number of levels in the decision feedback equalizer, initial levels are set for the high and low bytes of the memory chip, including: Read the physical link status of the high byte and the physical link status of the low byte of the memory chip respectively; Based on the total number of gears in the decision feedback equalizer, the physical link status of the high byte, and the physical link status of the low byte, the initial gears are set for the high byte and the low byte, respectively.
6. The memory chip initialization method according to claim 1, characterized in that, The memory chip undergoes joint calibration using a decision feedback equalizer and a read / write orientation calibration algorithm, including: Using the initial gear positions of the high byte and the low byte as the search starting point, the read / write orientation calibration algorithm is trained, the decision feedback equalizer is enabled, and the tap coefficients of the decision feedback equalizer are iteratively optimized by reading back the error rate of the received data to obtain the optimal parameter combination including the tap coefficients of the decision feedback equalizer and the parameters of the read / write orientation calibration algorithm. The optimal parameter combination is written into the register group to complete the joint calibration.
7. The memory chip initialization method according to claim 1, characterized in that, The memory chip undergoes joint calibration using a decision feedback equalizer and a read / write orientation calibration algorithm, including: The memory chip is subjected to joint calibration of a decision feedback equalizer and a read / write directional calibration algorithm at the frequencies corresponding to the low-frequency, medium-frequency, and high-frequency operating modes, respectively.
8. A memory chip initialization device, characterized in that, It includes a protocol type determination module, a gear determination module, a decision feedback equalizer support judgment module, a training module, an initial gear setting module, a first calibration module, and a second calibration module; The protocol type determination module is used to read the operation bits of the first mode register of the memory chip and determine the protocol type of the memory chip based on the operation bits of the first mode register. The gear determination module is used to determine the total number of gears of the decision feedback equalizer according to the protocol type of the memory chip. The decision feedback equalizer supports a decision module, which reads the operation bits of the second mode register of the memory chip and determines whether the memory chip supports the decision feedback equalizer in hardware based on the operation bits of the second mode register. The training module is used to train a read / write orientation calibration algorithm on the memory chip if the memory chip does not support a decision feedback equalizer in hardware. The initial gear setting module is used to set the initial gear of the memory chip according to the total number of gears of the decision feedback equalizer, based on the high byte and low byte of the memory chip, if the memory chip supports the decision feedback equalizer in hardware. The first calibration module is used to read the operation bit of the third mode register. If the operation bit of the third mode register is a first preset value, then according to the initial gear of the high byte and low byte of the memory chip, the open-loop pre-calibration of the decision feedback equalizer is performed on the memory chip. The second calibration module is used to perform joint calibration of the memory chip by a decision feedback equalizer and a read / write orientation calibration algorithm if the operation bit of the third mode register is a second preset value.
9. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program executable by the processor, characterized in that, When the processor executes the computer program, it implements the memory chip initialization method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the memory chip initialization method as described in any one of claims 1 to 7.
