Write data signal delay control method, device, equipment and medium

By delaying the write data signal in the high-bandwidth memory system and using the training register and delay control circuit to adjust the write data signal so that it is aligned with the sampling edge of the sampling signal, the problem of write data sampling errors is solved and the memory efficiency is improved. Stability and data correctness.

CN115113812BActive Publication Date: 2024-10-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Application Number
CN202210548827.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2024-10-01
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

In high-bandwidth memory systems, the transmission of write data signals is easily affected by environmental changes and crosstalk between signals, resulting in write data sampling errors and thus reducing the working stability of the memory.

Method used

The host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing, and sends a sample write data signal to the memory. The memory samples the write data signal based on the sampling signal, and caches the sampling signal into the training register. If the sampling signal is inconsistent with the sample signal, delay adjustment training is performed on the write data delay control circuit based on the sample signal to obtain a trained write data delay control circuit, which is used to adjust the signal offset of the input write data signal so that it is consistent with the sampling signal. The sampling edges of the signal are aligned.

Benefits of technology

It ensures that the write data signal received by the memory is aligned with the sampling edge of the sampling signal to avoid writing errors and improve the working stability and data correctness of the memory.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113812B_ABST
    Figure CN115113812B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, equipment and medium for controlling delay of a write data signal. The method comprises: configuring the working mode of a register circuit in a memory through a host to obtain a training register supporting reading and writing; sending a sample write data signal to the memory through the host; sampling the sample write data signal based on the sampling signal through the memory, and caching the sampled write data signal obtained by the sampling into the training register; if the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, delay adjustment training is performed on the write data delay control circuit set on the host based on the sample write data signal to obtain a trained write data delay control circuit; performing signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal that is aligned with the sampling edge of the sampling signal and is to be written to the memory. The use of this method can improve the working stability of the memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for controlling delay of a write data signal. Background Art

[0002] In a high-bandwidth memory system, a host in the high-bandwidth memory system sends a write data signal to a memory in the high-bandwidth memory system, so that corresponding write operation control of the memory can be achieved. However, in the process of the host sending a write data signal to the memory, since the transmission of the write data signal is easily affected by factors such as environmental changes and crosstalk between signals, it is easy to cause the write data signal and the sampling signal in the memory to be offset, and then write data sampling errors will occur. If the write data sampling is wrong, the host's write operation on the memory will be wrong, which will cause errors in the data written to the memory, thereby reducing the working stability of the memory. Summary of the invention

[0003] Based on this, it is necessary to provide a write data signal delay control method, device, equipment and medium that can improve the working stability of the memory in response to the above technical problems.

[0004] In a first aspect, the present application provides a method for controlling a write data signal delay, the method comprising:

[0005] The host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing;

[0006] sending a sample write data signal to the memory through the host;

[0007] Sampling the sample write data signal based on the sampling signal through the memory, and caching the sample write data signal obtained by the sampling into the training register;

[0008] If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, then delay adjustment training is performed on a write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit;

[0009] The trained write data delay control circuit is used to perform signal offset adjustment on the input write data signal to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to be written into the memory.

[0010] In a second aspect, the present application provides a write data signal delay control device, the device comprising:

[0011] A configuration module, used to configure the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing;

[0012] A sending module, used for sending a sample write data signal to the memory through the host;

[0013] A sampling module, used for sampling the sample write data signal based on the sampling signal through the memory, and caching the sample write data signal obtained by the sampling into the training register;

[0014] a training module, configured to perform delay adjustment training on a write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit if the sample write data signal read by the host from the training register is inconsistent with the sample write data signal;

[0015] The adjustment module is used to perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to be written into the memory.

[0016] In one embodiment, the configuration module is also used to set the value of the mode register in the memory to a target value through the host; the mode register is a register used to configure the working mode of the register circuit; the target value is the value corresponding to the readable and writable mode supported by the register circuit; the register circuit is controlled to work in the readable and writable mode through the target value to obtain a training register that supports reading and writing.

[0017] In one embodiment, the sample write data signal includes multiple sub-sample signals; the write data delay control circuit set on the host includes multiple sub-circuits; one sub-circuit is used to control the delay of a sub-sample signal; the training module is also used to perform single-circuit delay adjustment training on each sub-circuit in the write data delay control circuit based on the sub-sample signal corresponding to the sub-circuit, so as to obtain a trained initial sub-circuit; wherein, the sub-sample signal after the signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal; based on the multiple sub-sample signals, multi-circuit delay adjustment training is performed on each of the initial sub-circuits to obtain a trained write data delay control circuit; the trained write data delay control circuit includes multiple trained target sub-circuits; each sub-sample signal after the signal offset adjustment is performed by each of the target sub-circuits is aligned with the same sampling edge of the sampling signal.

[0018] In one embodiment, the sampled write data signal includes multiple sub-sampling signals corresponding to the multiple sub-sample signals respectively; the training module is also used to continue to perform delay adjustment training on the initial sub-circuit to be advanced trained according to the initial adjustment information of the initial sub-circuit to be advanced trained if the host fails to read the multiple sub-sampling signals from the training register at one time, until the host can read the multiple sub-sampling signals from the training register at one time to obtain the trained write data delay control circuit; wherein the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sample signals that have not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit through delay adjustment training of a single circuit.

[0019] In one embodiment, the training module is also used to gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read the multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit; wherein the target sub-sample signal is a sub-sample signal corresponding to the initial sub-circuit to be advanced trained.

[0020] In one embodiment, the training module is further configured to use each of the initial sub-circuits as each of the target sub-circuits to obtain a trained write data delay control circuit if the host can read the multiple sub-sampling signals from the training register at one time.

[0021] In one embodiment, the sub-circuit includes write data delay units connected in sequence; each write data delay unit is connected to a tap interface; the tap interface supports the export of signals from the sub-circuit; the initial sub-circuit is a circuit for which a target tap interface has been determined; the training module is also used to perform single-circuit delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit for each sub-circuit in the write data delay control circuit, so as to determine the delay adjustment information for the sub-circuit; based on the delay adjustment information, determine the target tap interface from the sub-circuit; wherein, the target write data delay unit before the target tap interface is used to perform signal offset adjustment on the sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with the sampling edge of the sampling signal.

[0022] In one embodiment, the training module is also used to, for each sub-circuit in the write data delay control circuit, adjust the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit when the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal in a first state, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, thereby obtaining first adjustment information for the sub-circuit; restore the second state to the first state, and adjust the sub-circuit in a direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, thereby obtaining second adjustment information for the sub-circuit; and determine the delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information.

[0023] In one embodiment, the subcircuit includes a first component circuit and a second component circuit; the second component circuit is connected after the first component circuit; the first component circuit and the second component circuit respectively include write data delay units connected in sequence; the first adjustment information includes a first number of write data delay units in the second component circuit through which the subsample signal corresponding to the subcircuit has been transmitted; the training module is further used to control the subsample signal corresponding to the subcircuit to pass through each write data delay unit in the first component circuit in sequence to perform initial delay control processing to obtain the subsample signal corresponding to the subcircuit after initial control; in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on the sampling signal, in a direction of increasing the delay of the subsample signal corresponding to the subcircuit after the initial control, continue to control the subsample signal corresponding to the subcircuit after the initial control to be transmitted through the write data delay units in the second component circuit one by one until a second state in which the memory does not sample the subsample signal corresponding to the subcircuit from the corresponding tap interface of the second component circuit based on the sampling signal appears, and record the first number of write data delay units in the second component circuit through which the subsample signal corresponding to the subcircuit has been transmitted.

[0024] In one embodiment, the second adjustment information includes a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit has not been transmitted; the training module is also used to restore the second state to the first state, and control the sub-sample signal corresponding to the sub-circuit after the initial control to reduce the transmission of the sub-sample signal through the write data delay units in the first component circuit one by one in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, until the second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit based on the sampling signal, and the second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit has not been transmitted is recorded.

[0025] In one embodiment, the training module is further used to perform frequency reduction adjustment processing on the current operating frequency of the memory in a second state in which the memory has not sampled the sub-sample signal corresponding to the sub-circuit based on the sampling signal, so as to obtain a reduced target operating frequency; the target operating frequency is an operating frequency that enables the memory to sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal; based on the sampling signal in the memory operating at the target operating frequency, the sub-sample signal corresponding to the sub-circuit is sampled so that the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal.

[0026] In one embodiment, the training module is also used to monitor the system working state of the high bandwidth memory system; the high bandwidth memory system includes the host and the memory; if the system working state is not busy, the configuration module is notified through software control to re-execute the step of configuring the working mode of the register circuit in the memory through the host to obtain the training register for caching data, so as to trigger the re-delay adjustment training.

[0027] In a third aspect, the present application provides a computer device including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the method embodiments of the present application are implemented.

[0028] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the method embodiments of the present application.

[0029] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the steps in the method embodiments of the present application when the computer program is executed by a processor.

[0030] The above-mentioned write data signal delay control method, device, equipment and medium configure the working mode of the register circuit in the memory by the host to obtain a training register that supports reading and writing; send the sample write data signal to the memory by the host; sample the sample write data signal based on the sampling signal by the memory, and cache the sampled sample write data signal into the training register, and compare the sampled write data signal with the sample write data signal sent by the host. If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, it means that the sample write data signal transmitted by the host and the sampling signal of the memory are offset. At this time, the write data delay control circuit set on the host can be delayed adjusted and trained based on the sample write data signal to obtain a trained write data delay control circuit. Furthermore, in actual application, the input write data signal can be adjusted for signal offset through the trained write data delay control circuit, and the adjusted target write data signal can be sent to the memory, so that the sampling edge of the target write data signal received by the memory and the sampling signal of the memory can be aligned, so that the memory can correctly sample the write data signal sent by the host, ensuring the correctness of the data written to the memory, thereby improving the working stability of the memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A diagram of an application environment for a method for controlling data signal delay in one embodiment;

[0032] Figure 2 A schematic diagram of a flow chart of a data signal delay control method in one embodiment;

[0033] Figure 3 A schematic diagram of the composition structure of a write data signal in one embodiment;

[0034] Figure 4 A schematic diagram of the sending timing of a write instruction in one embodiment;

[0035] Figure 5 A schematic diagram of a format of a write data signal in one embodiment;

[0036] Figure 6 Schematic diagram of the format of a write data signal when the burst length is 2 in one embodiment;

[0037] Figure 7 Schematic diagram of the format of a write data signal when the burst length is 4 in one embodiment;

[0038] Figure 8 A schematic diagram of a sending process of a write data signal in one embodiment;

[0039] Fig. 9 A schematic diagram of the timing of sending a read instruction in one embodiment;

[0040] Fig.10 A schematic diagram of the alignment of the sampling edges of a write data signal and a sampling signal in one embodiment;

[0041] Fig.11 A schematic diagram of the configuration of a mode register in one embodiment is provided;

[0042] Fig.12 A schematic diagram of distribution of each sub-sample signal in a data signal in an embodiment;

[0043] Fig.13 A basic structural diagram of a data writing delay control circuit in one embodiment;

[0044] Fig.14 A schematic diagram of each sub-sample signal in a write data signal in an embodiment;

[0045] Fig.15 It is a schematic diagram of how each sub-sample signal in a write data signal is aligned with the sampling edge of the sampling signal in one embodiment;

[0046] Fig.16 A schematic diagram of a process of performing delay adjustment training of a single circuit on each sub-circuit in one embodiment;

[0047] Fig.17 A schematic diagram of the structure of each sub-circuit in a data write delay control circuit in an embodiment;

[0048] Fig.18 A basic structural diagram of a training circuit for writing data signal delay control in one embodiment;

[0049] Fig.19 A schematic flow chart of a method for controlling a delay of a data signal in another embodiment;

[0050] Fig. 20 A structural block diagram of a data signal delay control device in one embodiment is provided;

[0051] Fig.21 is an internal structure diagram of a computer device in one embodiment;

[0052] Fig. 22 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The write data signal delay control method provided in the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 102 and the server 104 can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0055] A high-bandwidth memory system including a host and a memory is deployed in the server 104. The server 104 can configure the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing. The server 104 sends a sample write data signal to the memory through the host, samples the sample write data signal based on the sampling signal through the memory, and caches the sampled write data signal obtained by the sampling into the training register. If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, the server 104 can perform delay adjustment training on the write data delay control circuit set on the host based on the sample write data signal to obtain a trained write data delay control circuit. The server 104 can perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to write into the memory.

[0056] It is understood that the host in the server 104 can generate a sample write data signal and send the sample write data signal to the memory in the server 104 for subsequent delay adjustment training. It is also understood that the terminal 102 can also generate a sample write data signal and send the sample write data signal to the server 104. Furthermore, the server 104 can receive the sample write data signal through the host and send the received sample write data signal to the memory in the server 104 for subsequent delay adjustment training. This embodiment does not limit this, and it is understood that Figure 1 The application scenarios are only for illustration and are not limited to this.

[0057] In one embodiment, Figure 2 As shown, a method for controlling delay of a write data signal is provided. The method can be applied to a computer device, which can be a terminal or a server. The method can be executed by the terminal or the server itself, or can be implemented through interaction between the terminal and the server. This embodiment is described by taking the method applied to a computer device as an example, and includes the following steps:

[0058] Step 202: The host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing.

[0059] Among them, the register circuit is an independent circuit in the memory, which supports configuration in multiple working modes, for example, the register circuit can support configuration in a readable and writable mode, a read-only mode and a write-only mode. It can be understood that by configuring the register circuit to a readable and writable mode, a register that supports reading and writing can be obtained, that is, a training register that supports reading and writing. It can be understood that the training register is a register used to cache data during the training stage. By configuring the register circuit to a read-only mode, a register that supports reading can be obtained. By configuring the register circuit to a write-only mode, a register that supports writing can be obtained.

[0060] Specifically, the computer device includes a host and a memory. The computer device can configure the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing. It can be understood that the computer device can configure the working mode of the register circuit in the memory to a readable and writable mode through the host to obtain a training register that supports reading and writing.

[0061] In one embodiment, the host and the memory are components of a high bandwidth memory system, and the high bandwidth memory system is deployed in a computer device.

[0062] In one embodiment, the memory may be a dynamic random access memory or a random access memory. It should be noted that the embodiments of the present application are only used as examples and do not constitute a specific limitation on the type of memory.

[0063] Step 204: Send the sample write data signal to the memory via the host.

[0064] The sample write data signal is a write data signal used to train the write data delay control circuit set on the host during the training phase. It can be understood that the sample write data signal is a sample data used to train the write data delay control circuit. The write data delay control circuit is a circuit used to delay the write data signal to control the alignment of the write data signal with the sampling edge of the memory sampling signal so that the memory sampling signal can correctly sample the write data signal. The sampling signal is a clock signal in the memory used to sample the write data signal sent by the host.

[0065] Specifically, the computer device may obtain the sample write data signal through the host, and send the sample write data signal to the memory through the host.

[0066] In one embodiment, Figure 3 As shown, the write data signal includes three parts: a write data bus signal, a mask signal and a data bus flip signal. The data bit width of the write data bus signal is 128 bits, the data bit width of the mask signal is 16 bits, and the data bit width of the data bus flip signal is 16 bits.

[0067] In one embodiment, before the computer device sends the sample write data signal to the memory through the host, the host first sends a write instruction to the memory. The sending of the write instruction needs to follow the following Figure 4 The timing shown is from Figure 4 It can be seen that the write instruction includes 9 fields, among which SID represents the stack identification number, CA field represents the column address, BA field represents the bank address, PAR field represents the instruction check field, and V field can represent 1 or 0, that is, high level or low level. Among them, clock 1 and clock 2 are two differential clocks.

[0068] In one embodiment, Figure 5 As shown, the write data signal includes three parts: write data bus signal, mask signal and data bus flip signal. After the computer device sends a write instruction to the memory through the host, it will send a write data signal to the memory through the host again after an interval of 4 cycles, namely, write data bus signal, mask signal and data bus flip signal. Each part of the write data signal corresponds to its own sampling signal. Each part of the write data signal can include multiple groups of data (for example, 4 groups, namely data 1, data 2, data 3 and data 4).

[0069] In one embodiment, the computer sends a write data signal to the memory through the host in a burst form, that is, each time a write data signal is sent, multiple groups are sent together. Figure 6As shown, the burst length of the write data signal sent by the computer to the memory through the host is 2, and the computer device can send a write instruction to the memory through the host at time T0. After 4 cycles of sending the write instruction, that is, at time T4, the computer device can send 2 groups of write data signals (that is, data 1 and data 2) to the memory through the host. Among them, the value of the write instruction sent by the host to the memory includes BAx (Bank address) and CAa (column address).

[0070] In one embodiment, Figure 7 As shown, the burst length of the write data signal sent by the computer to the memory through the host is 4, and the computer device can send a write instruction to the memory through the host at time T0. After 4 cycles of sending the write instruction, that is, at time T4, the computer device can send 4 groups of write data signals (that is, data 1, data 2, data 3 and data 4) to the memory through the host. Among them, the value of the write instruction sent by the host to the memory includes BAx (Bank address) and CAa (column address).

[0071] In one embodiment, Figure 8 As shown, the computer device can send an activation instruction to the memory through the host to start the data writing. After sending the activation instruction, the computer device can send write instructions (i.e., write instruction 1, write instruction 2, and write instruction 3) to the memory through the host. Then the computer device can send a write data signal (i.e., data 1, data 2, and data 3) to the memory through the host. It should be noted that while sending the write data signal, the host can send a write data selection pulse signal matching the write data signal as a sampling signal to the memory. Finally, the computer device can send a precharge instruction to the memory through the host to end the data writing.

[0072] Step 206: Sample the sample write data signal based on the sampling signal through the memory, and cache the sample write data signal obtained by the sampling into the training register.

[0073] The sampled write data signal is a write data signal obtained by the memory based on sampling of the sampling signal.

[0074] Specifically, when the computer device sends the sample write data signal to the memory through the host, it also sends the corresponding sampling signal to the memory. Furthermore, the computer device can sample the sample write data signal based on the received sampling signal through the memory, and cache the sampled sample write data signal into the training register.

[0075] In one embodiment, the computer device can send the sample write data signal and the write data selection pulse signal matching the sample write data signal to the memory through the host. The memory can use the received write data selection pulse signal as a sampling signal, and sample the sample write data signal sent by the host based on the sampling signal to obtain the sample write data signal.

[0076] Step 208: If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, a write data delay control circuit provided on the host is subjected to delay adjustment training based on the sample write data signal to obtain a trained write data delay control circuit.

[0077] Specifically, the computer device can read the sampled write data signal from the training register of the memory through the host, and compare the sampled write data signal read by the host from the training register with the sample write data signal sent by the host to the memory. If the sampled write data signal is inconsistent with the sample write data signal, it means that the sample write data signal is offset from the sampling edge of the sampling signal during the transmission process, and the sample write data signal has not been correctly sampled by the sampling signal, and then the sample write data signal has not been successfully cached in the training register. At this time, in order to ensure that the subsequent write data signal is aligned with the sampling edge of the sampling signal, the computer device can perform delay adjustment training on the write data delay control circuit set on the host based on the sample write data signal to obtain a trained write data delay control circuit.

[0078] It can be understood that the write data signal is aligned with the sampling edge of the sampling signal, specifically, the signal center of the write data signal is aligned with the sampling edge of the sampling signal of the memory.

[0079] In one embodiment, the sampling edge of the sampling signal includes the rising edge of the sampling signal and the falling edge of the sampling signal. If the computer device samples the write data signal through the rising edge of the sampling signal of the memory, the signal center of the write data signal is aligned with the rising edge of the sampling signal of the memory. If the computer device samples the write data signal through the falling edge of the sampling signal of the memory, the signal center of the write data signal is aligned with the falling edge of the sampling signal of the memory.

[0080] In one embodiment, the sample write data signal includes a plurality of sub-sample signals, and the write data delay control circuit provided on the host includes a plurality of sub-circuits, wherein one sub-circuit is used to control the delay of one sub-sample signal. The computer device can perform delay adjustment training on the plurality of sub-circuits provided on the host based on the plurality of sub-sample signals to obtain a trained write data delay control circuit.

[0081] In one embodiment, before the computer device reads the sampled write data signal from the training register of the memory through the host, the host first sends a read instruction to the memory. The sending of the read instruction needs to follow the following steps: Fig. 9 The timing shown is as follows: Fig. 9 As shown, the read instruction includes 9 fields, among which SID represents the identification number of the stack, the CA field represents the column address, the BA field represents the Bank address, the PAR field represents the instruction check field, and the V field can represent 1 or 0, that is, a high level or a low level.

[0082] Step 210 , performing signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to be written into the memory.

[0083] The input write data signal refers to the write data signal obtained by the host in the actual application scenario after the training phase is completed. The target write data signal is the write data signal that has been offset adjusted and aligned with the sampling edge of the sampling signal.

[0084] Specifically, in the actual application stage after the delay adjustment training, the computer device can obtain the write data signal in the actual application scenario through the host, and input the obtained write data signal into the trained write data delay control circuit, so as to perform signal offset adjustment on the input write data signal through the trained write data delay control circuit, and obtain the target write data signal aligned with the sampling edge of the sampling signal in the memory. Then, the computer device can send the adjusted target write data signal to the memory, and the memory can sample the target write data signal through the sampling signal to write the target write data signal into the memory.

[0085] In one embodiment, the computer device samples the write data signal through the rising edge of the sampling signal of the memory. Fig.10 As shown in (a), the center of the write data signal is just aligned with the rising edge of the sampling signal. At this time, the memory can accurately sample the write data signal through the sampling signal. There is an offset between the center of the write data signal and the rising edge of the sampling signal in (b), and even the rising edge of the sampling signal has drifted out of the data window of the write data signal. At this time, the memory cannot sample the write data signal through the sampling signal. There is also an offset between the center of the write data signal and the rising edge of the sampling signal in (c). At this time, the memory is prone to not accurately sampling the write data signal through the sampling signal.

[0086] In the above-mentioned write data signal delay control method, the host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing; the host sends the sample write data signal to the memory; the memory samples the sample write data signal based on the sampling signal, and caches the sampled write data signal into the training register, and compares the sample write data signal with the sample write data signal sent by the host. If the sample write data signal read by the host from the training register is inconsistent with the sample write data signal, it means that the sample write data signal transmitted by the host and the sample signal of the memory are offset. At this time, the write data delay control circuit set on the host can be delayed adjusted and trained based on the sample write data signal to obtain a trained write data delay control circuit. Furthermore, in the actual application process, the input write data signal can be adjusted for signal offset by the trained write data delay control circuit, and the adjusted target write data signal can be sent to the memory, so that the sampling edge of the target write data signal received by the memory and the sampling signal of the memory can be aligned, so that the memory can correctly sample the write data signal sent by the host, ensuring the correctness of the data written to the memory, thereby improving the working stability of the memory.

[0087] In one embodiment, the host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing, including: setting the value of the mode register in the memory to a target value through the host; the mode register is a register used to configure the working mode of the register circuit; the target value is a value corresponding to the readable and writable mode supported by the register circuit; and the register circuit is controlled to work in the readable and writable mode through the target value to obtain a training register that supports reading and writing.

[0088] Specifically, a mode register is deployed in the memory, and the mode register can configure the working mode of the register circuit in the memory. It can be understood that the computer device can set the value of the mode register in the memory to the target value corresponding to the readable and writable mode through the host, and then control the register circuit to work in the readable and writable mode through the target value, and use the register circuit working in the readable and writable mode as a training register supporting reading and writing.

[0089] In one embodiment, the operating mode configuration description of the mode register is as follows: Fig.11As shown, the value of the mode register includes 8 bits of data. The first bit is used to configure the data word self-loop test, the second to third bits are used to configure the data word read multiplexer control, the fourth to sixth bits are used to configure the data word multi-input shift register control, the seventh bit is used to configure the reservation, and the eighth bit is used to configure the CATTRIP pin of the memory. For example, by configuring the mode register to an 8-bit binary value, that is, 00000001, the default value in the register circuit can be reset to a hexadecimal value, that is, 0xAAAAAh. By configuring the mode register to an 8-bit binary value, that is, 00010011, the working mode of the register circuit can be configured to the register mode (read and write direction), that is, the read and write mode, and a training register is obtained. It can be understood that if the host writes new data to the memory, the newly written data will overwrite the original default value 0xAAAAAh.

[0090] In the above embodiment, since the mode register in the memory can be used to configure the working mode of the register circuit, configuring the working mode of the register circuit by configuring the value of the mode register in the memory can improve the configuration efficiency and configuration accuracy of the register circuit.

[0091] In one embodiment, a sample write data signal includes multiple sub-sample signals; a write data delay control circuit provided on a host includes multiple sub-circuits; one sub-circuit is used to control the delay of a sub-sample signal; based on the sample write data signal, the write data delay control circuit provided on the host is subjected to delay adjustment training to obtain a trained write data delay control circuit, including: for each sub-circuit in the write data delay control circuit, a single-circuit delay adjustment training is performed on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit; wherein, the sub-sample signal after signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal; based on multiple sub-sample signals, multiple-circuit delay adjustment training is performed on each initial sub-circuit to obtain a trained write data delay control circuit; the trained write data delay control circuit includes multiple trained target sub-circuits; each sub-sample signal after signal offset adjustment is performed by each target sub-circuit is aligned with the same sampling edge of the sampling signal.

[0092] The initial subcircuit is an initial trained circuit obtained by performing delay adjustment training on a single circuit of the subcircuit, and the target subcircuit is a final circuit obtained by performing advanced delay adjustment training on the initial subcircuit.

[0093] Specifically, for each sub-circuit in the write data delay control circuit, the computer device may perform single-circuit delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit. It is understood that if the computer device inputs the sub-sample signal to the initial sub-circuit, the sub-sample signal after the signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal. The computer device may perform multi-circuit delay adjustment training on each initial sub-circuit based on multiple sub-sample signals to obtain multiple trained target sub-circuits, and determine the trained write data delay control circuit based on the multiple trained target sub-circuits. It is understood that if the computer device inputs the sub-sample signal to the target sub-circuit, each sub-sample signal after the signal offset adjustment is performed by each target sub-circuit is aligned with the same sampling edge of the sampling signal.

[0094] In one embodiment, Fig.12 As shown, the sample write data signal includes 160 sub-sample signals. It can be understood that the sample write data signal is composed of 160-bit sub-sample signals. The 160-bit sample write data signal can be divided into four parts, namely the first part, the second part, the third part and the fourth part. Among them, each part includes four byte spaces, and each byte space includes 10 bits of data, that is, each part includes 40 bits of data. It can be understood that 128 bits are write data bus signals, 16 bits are mask signals, and 16 bits are data bus flip signals.

[0095] In one embodiment, Fig.13 As shown, the 160-bit sample write data signal can be divided into four parts, namely the first part, the second part, the third part and the fourth part. Each part includes a 40-bit sub-sample signal. The write data delay control circuit set on the host includes 160 sub-circuits, wherein one sub-circuit includes a plurality of write data delay control units, and one sub-circuit is used to control the delay of one sub-sample signal.

[0096] In one embodiment, Fig.14 As shown, the sample write data signal includes a 160-bit sub-sample signal, and the write data delay control circuit includes 160 sub-circuits, one sub-circuit being used to control the delay of a sub-sample signal. For each of the 160 sub-circuits, a single-circuit delay adjustment training is performed on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit, wherein the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with the sampling edge of the sampling signal. It can be understood that the 160-bit sub-sample signal after the signal offset adjustment by the initial sub-circuit only satisfies the alignment with each sampling edge of the sampling signal, but does not necessarily satisfy the alignment with the same sampling edge of the sampling signal. Fig.15As shown, the 160-bit sub-sample signal is not aligned with the same sampling edge of the sampling signal. At this time, the training is not over yet, and it is necessary to continue to adjust and train each sub-circuit until the 160-bit sub-sample signal is aligned with the same sampling edge of the sampling signal. The adjustment training is completed and a trained write data delay control circuit is obtained.

[0097] In the above embodiment, the initial subcircuit is obtained by first performing single-circuit delay adjustment training on each subcircuit in the write data delay control circuit, so that each sub-sample signal in the sample write data signal is aligned with the sampling edge of the sampling signal. Since the sampling edge of the sampling signal aligned with each sub-sample signal is not necessarily the same sampling edge, in order to ensure that the sampling edge of the sampling signal aligned with each sub-sample signal is the same sampling edge, the initial subcircuit obtained through the single-circuit delay adjustment training can be further subjected to multi-circuit delay adjustment training, so that the sampling edge of the sampling signal aligned with each sub-sample signal is the same sampling edge, thereby improving the training effect of the write data delay control circuit.

[0098] In one embodiment, the sampled write data signal includes multiple sub-sampling signals corresponding to the multiple sub-sample signals respectively; based on the multiple sub-sample signals, multi-circuit delay adjustment training is performed on each initial sub-circuit to obtain a trained write data delay control circuit, including: if the host fails to read multiple sub-sampling signals from the training register at one time, then according to the initial adjustment information of the initial sub-circuit to be advanced trained, the delay adjustment training is continued for the initial sub-circuit to be advanced trained, until the host can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit; wherein, the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sample signal that has not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit by delay adjustment training of a single circuit.

[0099] Specifically, the computer device may use the initial subcircuit corresponding to the subsample signal that has not been read as the initial subcircuit to be advanced trained. Also, the computer device may use the adjustment information used in the delay adjustment training of the single circuit to obtain the initial subcircuit as the initial adjustment information of the initial subcircuit to be advanced trained. The computer device may read each subsampled signal from the training register of the memory through the host. If the host fails to read multiple subsampled signals from the training register at one time, it means that the sampling edges of the sampling signals aligned with each subsample signal are not the same sampling edge. At this time, the computer device may continue to perform delay adjustment training on the initial subcircuit to be advanced trained according to the initial adjustment information of the initial subcircuit to be advanced trained, until the host can read multiple subsampled signals from the training register at one time. It can be understood that if the host can read multiple subsampled signals from the training register at one time, it means that the sampling edges of the sampling signals aligned with each subsample signal are the same sampling edge. At this time, the trained write data delay control circuit can be determined based on the multiple trained target subcircuits obtained by continuing the training.

[0100] In the above embodiment, the host fails to read multiple sub-sampling signals from the training register at one time, indicating that the sampling edges of the sampling signals to which the sub-sample signals are aligned are not the same sampling edges. At this time, according to the initial adjustment information of the initial sub-circuit to be advanced trained, the delay adjustment training is continued for the initial sub-circuit to be advanced trained until the host can read multiple sub-sampling signals from the training register at one time. This allows the sub-sample signals to be aligned to the same sampling edge of the sampling signal, thereby further improving the training effect of the write data delay control circuit.

[0101] In one embodiment, according to the initial adjustment information of the initial sub-circuit to be advanced trained, the initial sub-circuit to be advanced trained continues to be subjected to delay adjustment training until the host can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit, including: according to the initial adjustment information of the initial sub-circuit to be advanced trained, gradually adjusting the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal until the host can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit; wherein, the target sub-sample signal is a sub-sample signal corresponding to the initial sub-circuit to be advanced trained.

[0102] Specifically, the computer device may use the sub-sample signal corresponding to the initial sub-circuit to be advanced trained as the target sub-sample signal. Furthermore, the computer device may gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read multiple sub-sample signals from the training register at one time, and obtain the trained write data delay control circuit.

[0103] It can be understood that by adjusting the initial sub-circuit to be advanced trained based on the initial adjustment information, the target sub-sample signal can be moved in the direction of increasing or decreasing the delay according to the entire clock cycle.

[0104] For example, the computer device may adjust the initial sub-circuit to be advanced trained in the direction of increasing the delay of the target sub-sample signal by one clock cycle according to the initial adjustment information of the initial sub-circuit to be advanced trained. If the host still fails to read multiple sub-sample signals from the training register at one time, the target sub-sample signal is restored to the state before the delay adjustment, and then the initial sub-circuit to be advanced trained is adjusted in the direction of reducing the delay of the target sub-sample signal by one clock cycle. If the host still fails to read multiple sub-sample signals from the training register at one time, the initial sub-circuit to be advanced trained is adjusted in the direction of increasing the delay of the target sub-sample signal by two clock cycles. If the host still fails to read multiple sub-sample signals from the training register at one time, the initial sub-circuit to be advanced trained is adjusted in the direction of reducing the delay of the target sub-sample signal by two clock cycles. By analogy, the initial sub-circuit to be advanced trained is gradually adjusted until the host can read multiple sub-sample signals from the training register at one time, and a trained write data delay control circuit is obtained.

[0105] In the above embodiment, when the host fails to read multiple sub-sampling signals from the training register at one time, the initial sub-circuit to be advanced trained is gradually adjusted in the direction of increasing or decreasing the delay of the target sub-sample signal according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read multiple sub-sampling signals from the training register at one time, so that each sub-sample signal can be aligned to the same sampling edge of the sampling signal, thereby further improving the training effect of the write data delay control circuit.

[0106] In one embodiment, the above-mentioned write data signal delay control method further includes: if the host can read multiple sub-sampling signals from the training register at one time, then each initial sub-circuit is used as each target sub-circuit to obtain a trained write data delay control circuit.

[0107] Specifically, the computer device can read each sub-sampling signal from the training register of the memory through the host. If the host can read multiple sub-sampling signals from the training register at one time, it means that the sampling edge of the sampling signal aligned with each sub-sample signal is the same sampling edge. At this time, each initial sub-circuit is used as each target sub-circuit to obtain a trained write data delay control circuit.

[0108] In the above embodiment, the host can read multiple sub-sampling signals from the training register at one time, indicating that the sampling edges of the sampling signals aligned with the sub-sample signals are the same sampling edge. At this time, the initial sub-circuits can be directly used as the target sub-circuits to obtain the trained write data delay control circuit. In this way, the training efficiency of the write data delay control circuit can be improved while ensuring the training effect of the write data delay control circuit.

[0109] In one embodiment, the sub-circuit includes write data delay units connected in sequence; each write data delay unit is connected to a tap interface; the tap interface supports the export of signals from the sub-circuit; the initial sub-circuit is a circuit with a determined target tap interface; for each sub-circuit in the write data delay control circuit, the sub-circuit is subjected to single-circuit delay adjustment training based on a sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit, including: for each sub-circuit in the write data delay control circuit, the sub-circuit is subjected to single-circuit delay adjustment training based on a sub-sample signal corresponding to the sub-circuit to determine delay adjustment information for the sub-circuit; based on the delay adjustment information, the target tap interface is determined from the sub-circuit; wherein the target write data delay unit before the target tap interface is used to perform signal offset adjustment on the sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with the sampling edge of the sampling signal.

[0110] Among them, the write data delay unit is the smallest unit in the subcircuit for delay control processing of the write data signal. It can be understood that the more write data delay units are used to delay control processing of the write data signal, the greater the delay of the write data signal, and vice versa. The tap interface is an interface set after each write data delay unit in the subcircuit. The tap interface supports the derivation of signals from the subcircuit. It can be understood that the write data signal can be connected from any tap interface when it is transmitted through the subcircuit, so that the write data signal is derived from the subcircuit. It can be understood that the write data delay unit before the tap interface responsible for deriving the write data signal in the subcircuit will perform delay control processing on the write data signal, while the write data delay unit after the tap interface will not perform delay control processing on the write data signal. Delay adjustment information is information used to adjust the subcircuit. It can be understood that adjusting the subcircuit refers to adjusting the number of write data delay units in the subcircuit through which the write data signal is transmitted to increase or decrease the delay of the write data signal. The target tap interface is a tap interface used to derive the write data signal from the subcircuit. The target write data delay unit is all the write data delay units located before the target tap interface in the sub-circuit.

[0111] Specifically, for each sub-circuit in the write data delay control circuit, the computer device may perform delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit. After the training is completed, the computer device may obtain delay adjustment information for the sub-circuit on the host. The computer device may determine the target tap interface from each tap interface in the sub-circuit based on the delay adjustment information. It can be understood that the computer device may delay the sub-sample signal corresponding to the sub-circuit through a target delay unit located before the target tap interface to adjust the offset between the sub-sample signal corresponding to the sub-circuit and the sampling edge of the sampling signal, so that the sub-sample signal corresponding to the sub-circuit is realigned with the sampling edge of the sampling signal in the memory.

[0112] In one embodiment, the computer device performs delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit. Specifically, the computer device can adjust the sub-circuit on the host in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, and adjust the sub-circuit on the host in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, so as to complete the delay adjustment training of the sub-circuit and obtain the delay adjustment information.

[0113] In one embodiment, a computer device may increase the delay of a sub-sample signal corresponding to a sub-circuit by increasing the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted, and may decrease the delay of a sub-sample signal corresponding to the sub-circuit by decreasing the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted.

[0114] In the above embodiment, by performing single-circuit delay adjustment training on each corresponding sub-circuit based on the sub-sample signal corresponding to the sub-circuit, the delay adjustment information of each sub-circuit can be determined, and then based on the delay adjustment information corresponding to each sub-circuit, the target tap interface can be determined from each sub-circuit respectively to obtain the initial sub-circuit, thereby improving the training effect of the initial sub-circuit.

[0115] In one embodiment, for each sub-circuit in the write data delay control circuit, single-circuit delay adjustment training is performed on the sub-circuit based on a sub-sample signal corresponding to the sub-circuit to determine delay adjustment information for the sub-circuit, including: for each sub-circuit in the write data delay control circuit, in a first state where the memory samples the sub-sample signal corresponding to the sub-circuit based on a sampling signal, adjusting the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit until a second state where the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal occurs, thereby obtaining first adjustment information for the sub-circuit; restoring the second state to the first state, and adjusting the sub-circuit in a direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit until a second state where the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal occurs, thereby obtaining second adjustment information for the sub-circuit; and determining the delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information.

[0116] Among them, the first state is the state in which the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal. The second state is the state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal. The first adjustment information is the adjustment information recorded when the memory goes from sampling the sub-sample signal corresponding to the sub-circuit to not sampling the sub-sample signal corresponding to the sub-circuit through the sampling signal in the process of increasing the delay of the sub-sample signal corresponding to the sub-circuit, that is, when the sub-sample signal corresponding to the sub-circuit is in a critical state. The second adjustment information is the adjustment information recorded when the memory goes from sampling the sub-sample signal corresponding to the sub-circuit to not sampling the sub-sample signal corresponding to the sub-circuit through the sampling signal in the process of reducing the delay of the sub-sample signal corresponding to the sub-circuit, that is, when the sub-sample signal corresponding to the sub-circuit is in a critical state.

[0117] Specifically, for each subcircuit in the write data delay control circuit, the computer device can send the subsample signal corresponding to the subcircuit to the memory through the host, and can sample the subsample signal corresponding to the subcircuit through the sampling signal of the memory. In the first state where the memory samples the subsample signal corresponding to the subcircuit through the sampling signal, the computer device can adjust the subcircuit in the direction of increasing the delay of the subsample signal corresponding to the subcircuit, that is, gradually increase the number of subsample signals corresponding to the subcircuit transmitted through the write data delay unit, until the second state where the memory does not sample the subsample signal corresponding to the subcircuit through the sampling signal appears, and record the first adjustment information for the subcircuit. The second state is restored to the first state, that is, the second state where the memory does not sample the subsample signal corresponding to the subcircuit through the sampling signal is restored to the first state where the memory samples the subsample signal corresponding to the subcircuit through the sampling signal at the beginning of the training, and the subcircuit is adjusted in the direction of reducing the delay of the subsample signal corresponding to the subcircuit, that is, gradually reduce the number of subsample signals corresponding to the subcircuit transmitted through the write data delay unit, until the second state where the memory does not sample the subsample signal corresponding to the subcircuit through the sampling signal appears again, and record the second adjustment information of the subcircuit. Furthermore, the computer device may determine the delay adjustment information for the sub-circuit according to the recorded first adjustment information and the recorded second adjustment information.

[0118] In one embodiment, the computer device gradually increases or decreases the number of sub-sample signals corresponding to the sub-circuit transmitted through the write data delay unit, and specifically, the number of sub-sample signals corresponding to the sub-circuit transmitted through the write data delay unit can be gradually increased or decreased, and the number of write data delay units increased or decreased in each step can be at least one. For example, one write data delay unit can be increased or decreased in one step, two write data delay units can be increased or decreased in one step, and three write data delay units can be increased or decreased in one step.

[0119] In one embodiment, Fig.16As shown, the computer device can sample the sub-sample signal corresponding to the sub-circuit through the sampling signal of the memory. In the first stage of delay adjustment training, when the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal, the computer device can adjust the write data delay control circuit on the host in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, until the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal appears, that is, the second stage of delay adjustment training is reached, at which time, the first adjustment information for the sub-circuit is immediately recorded. Furthermore, the computer device can restore the second state to the first state, that is, restore to the first stage of delay adjustment training, and adjust the sub-circuit in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, until the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal appears again, that is, the third stage of delay adjustment training is reached, at which time, the second adjustment information of the sub-circuit is immediately recorded.

[0120] In the above embodiment, before the delay adjustment is performed, the memory can sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, indicating that the sampling edge of the sampling signal is still within the data window of the sub-sample signal. At this time, the sub-circuit is adjusted in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, which can increase the delay of the sub-sample signal. Once the sub-sample signal is not sampled during the process of increasing the delay, the first adjustment information indicating the critical state of one side of the data window can be immediately recorded. After resetting the sub-sample signal corresponding to the sub-circuit, the sub-circuit is adjusted in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, which can reduce the delay of the sub-sample signal. Once the sub-sample signal is not sampled during the process of reducing the delay, the second adjustment information indicating the critical state of the other side of the data window can be immediately recorded. Since the first adjustment information and the second adjustment information can just determine a clock cycle, the delay adjustment information for the sub-circuit can be accurately determined according to the first adjustment information and the second adjustment information.

[0121] In one embodiment, the subcircuit includes a first component circuit and a second component circuit; the second component circuit is connected after the first component circuit; the first component circuit and the second component circuit respectively include write data delay units connected in sequence; the first adjustment information includes a first number of sub-sample signals corresponding to the subcircuit that have been transmitted through the write data delay units in the second component circuit; for each subcircuit in the write data delay control circuit, in a first state in which the memory samples the sub-sample signal corresponding to the subcircuit based on the sampling signal, the subcircuit is adjusted in a direction of increasing the delay of the sub-sample signal corresponding to the subcircuit until a second state in which the memory does not sample the sub-sample signal corresponding to the subcircuit based on the sampling signal occurs, and the first adjustment information for the subcircuit is obtained, including: controlling the subcircuit The corresponding sub-sample signals pass through the write data delay units in the first component circuit in sequence to perform initial delay control processing to obtain the sub-sample signals corresponding to the sub-circuit after the initial control; in a first state in which the memory samples the sub-sample signals corresponding to the sub-circuit based on the sampling signal, the sub-sample signals corresponding to the sub-circuit after the initial control are continuously controlled to be transmitted through the write data delay units in the second component circuit one by one in the direction of increasing the delay of the sub-sample signals corresponding to the sub-circuit after the initial control, until a second state in which the memory does not sample the sub-sample signals corresponding to the sub-circuit from the corresponding tap interface of the second component circuit based on the sampling signal appears, and the first number of the sub-sample signals corresponding to the sub-circuit that have been transmitted through the write data delay units in the second component circuit is recorded.

[0122] The first component circuit and the second component circuit are component circuits in the sub-circuit respectively.

[0123] Specifically, for each sub-circuit in the write data delay control circuit, the computer device can control the sub-sample signal corresponding to the sub-circuit through each write data delay unit in the first component circuit through the host, so as to perform initial delay control processing on the sub-sample signal corresponding to the sub-circuit, and obtain the sub-sample signal corresponding to the sub-circuit after initial control. The computer device can sample the sub-sample signal corresponding to the sub-circuit after initial control through the sampling signal of the memory. In the first state where the memory samples the sub-sample signal corresponding to the sub-circuit after initial control through the sampling signal, the computer device can continue to control the sub-sample signal corresponding to the sub-circuit after initial control to be transmitted through the write data delay unit in the second component circuit one by one in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit after initial control, until the sampling signal is in the second state where the sub-sample signal corresponding to the sub-circuit is not sampled from the corresponding tap interface of the second component circuit, and record the first number of the sub-sample signal corresponding to the sub-circuit that has been transmitted through the write data delay unit in the second component circuit.

[0124] In the above embodiment, the sub-sample signal corresponding to the sub-circuit is firstly subjected to an initial delay control process by the first component circuit to obtain the sub-sample signal corresponding to the sub-circuit after the initial control. At this time, the sub-sample signal corresponding to the sub-circuit after the initial control may not be aligned with the sampling edge of the sampling signal. By, in the first state of sampling the sub-sample signal corresponding to the sub-circuit after the initial control, in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, the sub-sample signal corresponding to the sub-circuit after the initial control is continuously controlled to be transmitted through the write data delay unit in the second component circuit one by one, until the sampling signal is in the second state that the sub-sample signal corresponding to the sub-circuit is not sampled from the corresponding tap interface of the second component circuit, the first number of the sub-sample signal corresponding to the sub-circuit that has been transmitted through the write data delay unit in the second component circuit is immediately recorded, so that the first adjustment information accurately representing the critical state of one side of the data window of the sub-sample signal corresponding to the sub-circuit can be recorded, thereby further improving the accuracy of the delay adjustment information obtained.

[0125] In one embodiment, the second adjustment information includes a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is not transmitted; the second state is restored to the first state, and the sub-circuit is adjusted in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, and the second adjustment information for the sub-circuit is obtained, including: restoring the second state to the first state, and in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, the sub-sample signal corresponding to the sub-circuit after the initial control is controlled to be transmitted through the write data delay units in the first component circuit one by one, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit based on the sampling signal, and the second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is not transmitted is recorded.

[0126] Specifically, the computer device can restore the second state to the first state, that is, restore the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit after the initial control through the sampling signal to the first state in which the memory samples the sub-sample signal corresponding to the sub-circuit after the initial control through the sampling signal at the beginning of the training. Furthermore, the computer device can control the sub-sample signal corresponding to the sub-circuit after the initial control to be transmitted through the write data delay unit in the first component circuit one by one in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, until the second state in which the sampling signal does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit appears, and the computer device can record the second number of the write data delay units through which the sub-sample signal corresponding to the sub-circuit has not been transmitted.

[0127] In the above embodiment, in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, the sub-sample signal corresponding to the sub-circuit after the initial control is controlled to be transmitted through the write data delay unit in the first component circuit one by one, until the second state that the sampling signal does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit occurs, and the second number of the write data delay units through which the sub-sample signal corresponding to the sub-circuit is not transmitted is immediately recorded. In this way, the second adjustment information accurately representing the critical state of the other side of the data window of the sub-sample signal corresponding to the sub-circuit can be recorded, thereby further improving the accuracy of the delay adjustment information obtained.

[0128] In one embodiment, determining the delay adjustment information for the sub-circuit according to the first adjustment information and the second adjustment information includes: determining the delay adjustment information for the sub-circuit according to an average of the first quantity and the second quantity.

[0129] Specifically, the computer device may calculate an average of the first number and the second number, and obtain the delay adjustment information for the sub-circuit according to the average of the first number and the second number.

[0130] In one embodiment, the computer device may directly use the calculated average of the first quantity and the second quantity as the delay adjustment information for the sub-circuit.

[0131] In the above embodiment, the delay adjustment information is determined by the average of the first number and the second number, which can further improve the accuracy of the delay adjustment information.

[0132] In one embodiment, Fig.17 As shown, each sub-circuit of the write data delay control circuit includes a step counter, which can be used to record the first number of write data delay units in the second component circuit through which the write data signal has been transmitted, and record the second number of write data delay units through which the write data signal has not been transmitted.

[0133] In one embodiment, for each sub-circuit in the write data delay control circuit, in a first state in which the memory samples a sub-sample signal corresponding to the sub-circuit based on a sampling signal, before adjusting the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, the method also includes: in a second state in which the memory does not sample a sub-sample signal corresponding to the sub-circuit based on the sampling signal, performing frequency reduction adjustment processing on the current operating frequency of the memory to obtain a reduced target operating frequency; the target operating frequency is an operating frequency that enables the memory to sample a sub-sample signal corresponding to the sub-circuit based on the sampling signal; based on the sampling signal in the memory operating at the target operating frequency, sampling the sub-sample signal corresponding to the sub-circuit so that the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal.

[0134] The current operating frequency is the current operating frequency of the memory, that is, the operating frequency of the memory when the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal. The target operating frequency is the frequency obtained after the current operating frequency is adjusted by frequency reduction.

[0135] Specifically, for each sub-circuit in the write data delay control circuit, the computer device can send the sub-sample signal corresponding to the sub-circuit to the memory through the host, and sample the sub-sample signal corresponding to the sub-circuit through the sampling signal of the memory. In the second state where the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal, it means that the current operating frequency of the memory is too high, resulting in a short time for the sub-sample signal corresponding to the sub-circuit to continue to be high, thereby causing the memory to fail to sample the sub-sample signal corresponding to the sub-circuit through the sampling signal. At this time, the computer device can perform frequency reduction adjustment processing on the current operating frequency of the memory to obtain the reduced target operating frequency. It can be understood that reducing the operating frequency of the memory can prolong the time for the sub-sample signal corresponding to the sub-circuit to continue to be high, and the memory working at the target operating frequency can successfully sample the sub-sample signal corresponding to the sub-circuit. Furthermore, the computer device can sample the sub-sample signal corresponding to the sub-circuit based on the memory working at the target operating frequency, so that the memory samples the sub-sample signal corresponding to the sub-circuit. Afterwards, in the first state where the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal, the step of adjusting the sub-circuit in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit and its subsequent steps are performed.

[0136] In the above embodiment, after the memory receives the sub-sample signal corresponding to the sub-circuit sent by the host, if the memory fails to sample the sub-sample signal corresponding to the sub-circuit through the sampling signal, it means that the sampling edge of the sampling signal has drifted out of the data window where the sub-sample signal corresponding to the sub-circuit is located. At this time, by reducing the current operating frequency of the memory to the target operating frequency, the memory operating at the target operating frequency can extend the time that the sub-sample signal corresponding to the sub-circuit remains high, so that the sampling signal of the memory can sample the sub-sample signal corresponding to the sub-circuit, thereby improving the success rate of delay adjustment training.

[0137] In one embodiment, after delay adjustment training is performed on a write data delay control circuit provided on a host based on a sample write data signal to obtain a trained write data delay control circuit, the write data signal delay control method further includes: periodically triggering through a timer to execute through hardware control the step of configuring a register mode of a register circuit in a memory through the host to obtain a training register for caching data, thereby triggering re-delay adjustment training.

[0138] Specifically, a timer is deployed in the computer device, and the computer device can periodically trigger through the timer to execute through hardware control the step of configuring the register mode of the register circuit in the memory through the host to obtain the training register for caching data, so as to trigger the delay adjustment training again. It can be understood that the computer device can use the timer to time, and trigger the delay adjustment training again through hardware control every preset time interval.

[0139] For example, a computer device can use a timer to time, and trigger a delay adjustment training through hardware control every 24 hours.

[0140] In the above embodiment, by periodically triggering the timer to periodically retrain the write data delay control circuit through hardware control, it can be ensured that during the operation of the computer device, there will be no sampling edge offset between the write data signal and the sampling signal, further improving the stability of the memory instruction operation.

[0141] In one embodiment, after delay adjustment training is performed on a write data delay control circuit provided on a host based on a sample write data signal to obtain a trained write data delay control circuit, the method further includes: monitoring a system operating state of a high-bandwidth memory system; the high-bandwidth memory system includes a host and a memory; if the system operating state is not busy, re-executing the step of configuring the operating mode of a register circuit in the memory through the host through software control to obtain a training register for caching data, so as to trigger re-delay adjustment training.

[0142] Specifically, a high-bandwidth memory system is deployed in the computer device, and the computer device can monitor the working status of the high-bandwidth memory system. If it is detected that the system working status of the high-bandwidth memory system is not busy, the computer device can re-execute the steps of configuring the working mode of the register circuit in the memory through the host through software control to obtain the training register for caching data, so as to trigger the re-delay adjustment training. If it is detected that the system working status of the high-bandwidth memory system is busy, the computer device can temporarily not perform the delay adjustment training through software control, and perform the delay adjustment training again when the system working status of the high-bandwidth memory system is not busy next time.

[0143] In the above embodiment, by means of software control, the write data delay control circuit can be retrained when the high-bandwidth memory system is not busy, so as to further ensure that the sampling edge offset between the write data signal and the sampling signal does not occur during the operation of the computer device, thereby further improving the stability of the memory instruction operation. At the same time, retraining the write data delay control circuit when the high-bandwidth memory system is not busy can also ensure the working efficiency of the entire high-bandwidth memory system.

[0144] In one embodiment, Fig.18As shown, a high-bandwidth memory system is running in a computer device, and the high-bandwidth memory system includes a host and a memory. The host includes a configuration unit, a write instruction sending unit, a write data delay control circuit, a read instruction sending unit, a read data receiving unit, a comparison unit, and a write data training unit. The memory includes a write instruction parsing unit, a write receiving unit, a read instruction parsing unit, a read sending unit, and a register circuit. The computer device configures the working mode of the register circuit in the memory through the configuration unit to configure the memory circuit to work in a readable and writable mode to obtain a training register. The host can send a write instruction to the memory, and the memory can parse the write instruction through the write instruction parsing unit. After the write instruction parsing is completed, the host can send a sample write data signal to the memory, and the memory can receive the sample write data signal through the write receiving unit. Furthermore, the memory can sample the sample write data signal through the sampling signal, and write the sampled write data signal obtained by the sampling into the training register. The host can send a read instruction to the memory through the read instruction sending unit, and the memory can parse the read instruction through the read instruction parsing unit. After parsing the read instruction, the memory can read the sampled write data signal from the training register and send the sampled write data signal to the host through the read and send unit. The host can receive the sampled write data signal through the read data receiving unit and forward the sampled write data signal to the comparison unit. The host can compare the sampled write data signal with the sample write data signal through the comparison unit. If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, the computer device can perform delay adjustment training on the write data delay control circuit set on the host based on the sample write data signal to obtain a trained write data delay control circuit. Furthermore, in actual application scenarios, the computer device can perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal, and write the target write data signal into the memory.

[0145] like Fig.19 As shown, in one embodiment, a method for controlling delay of a write data signal is provided. The method can be applied to a computer device, which can be a terminal or a server. The method can be executed by the terminal or the server itself, or can be implemented through interaction between the terminal and the server. The method specifically includes the following steps:

[0146] Step 1902, set the value of the mode register in the memory to the target value through the host; the mode register is a register used to configure the working mode of the register circuit; the target value is the value corresponding to the readable and writable mode supported by the register circuit; a write data delay control circuit is set on the host; the write data delay control circuit includes multiple sub-circuits; a sub-circuit is used to control the delay of a sub-sample signal; the sub-circuit includes write data delay units connected in sequence; each write data delay unit is connected to a tap interface; the tap interface supports the export of signals from the sub-circuit.

[0147] Step 1904, controlling the register circuit to work in a readable and writable mode through the target value, and obtaining a training register that supports reading and writing.

[0148] Step 1906: Send the sample write data signal to the memory through the host; the sample write data signal includes multiple sub-sample signals.

[0149] Step 1908, sampling the sample write data signal based on the sampling signal through the memory, and buffering the sampled sample write data signal into the training register; the sample write data signal includes a plurality of sub-sample signals corresponding to the plurality of sub-sample signals respectively.

[0150] Step 1910, if the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, then for each sub-circuit in the write data delay control circuit, in the first state where the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal, the sub-circuit is adjusted in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, until the second state where the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal appears, and the first adjustment information for the sub-circuit is obtained.

[0151] Step 1912, restore the second state to the first state, and adjust the sub-circuit in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, until the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal occurs, and obtain second adjustment information for the sub-circuit.

[0152] Step 1914: Determine delay adjustment information for the sub-circuit according to the first adjustment information and the second adjustment information.

[0153] Step 1916, based on the delay adjustment information, determine the target tap interface from the sub-circuit to obtain a trained initial sub-circuit; wherein, the target write data delay unit before the target tap interface is used to perform signal offset adjustment on the sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with the sampling edge of the sampling signal; the sub-sample signal after the signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal.

[0154] Step 1918, if the host fails to read multiple sub-sampling signals from the training register at one time, then according to the initial adjustment information of the initial sub-circuit to be advanced trained, gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal, until the host can read multiple sub-sampling signals from the training register at one time, and obtain the trained write data delay control circuit; wherein, the target sub-sample signal is the sub-sample signal corresponding to the initial sub-circuit to be advanced trained; the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sample signal that has not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit in the delay adjustment training of a single circuit; the trained write data delay control circuit includes multiple trained target sub-circuits; each sub-sample signal after the signal offset adjustment is performed on each target sub-circuit is aligned with the same sampling edge of the sampling signal.

[0155] Step 1920: If the host can read multiple sub-sampling signals from the training register at one time, each initial sub-circuit is used as each target sub-circuit to obtain a trained write data delay control circuit.

[0156] Step 1922, perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to write into the memory.

[0157] The present application also provides an application scenario, which applies the above-mentioned write data signal delay control method. Specifically, a high-bandwidth memory system is deployed in a computer device, and the high-bandwidth memory system includes a host and a dynamic random access memory. The write data signal delay control method can be applied to the scenario of write data signal delay control when the high-bandwidth memory system is in a working state. The computer device can set the value of the mode register in the dynamic random access memory to a target value through the host; the mode register is a register used to configure the working mode of the register circuit; the target value is the value corresponding to the readable and writable mode supported by the register circuit; a write data delay control circuit is set on the host; the write data delay control circuit includes multiple sub-circuits; a sub-circuit is used to control the delay of a sub-sample signal; the sub-circuit includes write data delay units connected in sequence; each write data delay unit is connected to a tap interface; the tap interface supports the export of signals from the sub-circuit. The register circuit is controlled to work in a readable and writable mode by the target value, and a training register that supports reading and writing is obtained. The sample write data signal is sent to the dynamic random access memory through the host; the sample write data signal includes multiple sub-sample signals.

[0158] The computer device can sample the sample write data signal based on the sampling signal through the dynamic random access memory, and cache the sampled write data signal obtained by the sampling into the training register; the sample write data signal includes multiple sub-sample signals corresponding to the multiple sub-sample signals. If the sample write data signal read by the host from the training register is inconsistent with the sample write data signal, then for each sub-circuit in the write data delay control circuit, in the first state where the dynamic random access memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal, the sub-circuit is adjusted in the direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, until the dynamic random access memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal. The first adjustment information for the sub-circuit is obtained. The second state is restored to the first state, and the sub-circuit is adjusted in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, until the dynamic random access memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal. The second adjustment information for the sub-circuit is obtained. The delay adjustment information for the sub-circuit is determined according to the first adjustment information and the second adjustment information. Based on the delay adjustment information, a target tap interface is determined from the sub-circuit to obtain a trained initial sub-circuit; wherein a target write data delay unit before the target tap interface is used to perform a signal offset adjustment on a sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with a sampling edge of the sampling signal; and the sub-sample signal after the signal offset adjustment is performed through the initial sub-circuit is aligned with the sampling edge of the sampling signal.

[0159] If the host fails to read multiple sub-sampled signals from the training register at one time, the computer device can gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sampled signal according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read multiple sub-sampled signals from the training register at one time, and obtain the trained write data delay control circuit; wherein, the target sub-sampled signal is the sub-sampled signal corresponding to the initial sub-circuit to be advanced trained; the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sampled signal that has not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit in the delay adjustment training of a single circuit; the trained write data delay control circuit includes multiple trained target sub-circuits; each sub-sampled signal after the signal offset adjustment is respectively performed by each target sub-circuit is aligned with the same sampling edge of the sampling signal. If the host can read multiple sub-sampled signals from the training register at one time, each initial sub-circuit is used as each target sub-circuit to obtain the trained write data delay control circuit.

[0160] The computer device can perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to write into the dynamic random access memory.

[0161] The present application also provides an application scenario, which applies the above-mentioned write data signal delay control method. Specifically, a high-bandwidth memory system is deployed in a computer device, and the high-bandwidth memory system includes a host and a memory. The write data signal delay control method can be applied to the scenario of write data signal delay control when the high-bandwidth memory system is in a non-working state. Through the write data signal delay control method of the present application, the write data delay control circuit in the high-bandwidth memory system in the non-working state can be delayed adjusted and trained, ensuring the correctness of the data written to the memory by the high-bandwidth memory system in the subsequent working state, thereby improving the working stability of the memory.

[0162] It should be understood that, although each step in the flow chart of the above-mentioned embodiments is shown in order, these steps are not necessarily performed in order. Unless there is a clear explanation in this article, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned embodiments may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in order, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0163] In one embodiment, Fig. 20 As shown, a write data signal delay control device 2000 is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes:

[0164] The configuration module 2002 is used to configure the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing.

[0165] The sending module 2004 is used to send the sample write data signal to the memory through the host.

[0166] The sampling module 2006 is used to sample the sample write data signal based on the sampling signal through the memory, and cache the sample write data signal obtained by the sampling into the training register.

[0167] The training module 2008 is used to perform delay adjustment training on the write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit if the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal.

[0168] The adjustment module 2010 is used to perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to write into the memory.

[0169] In one embodiment, the configuration module 2002 is also used to set the value of the mode register in the memory to a target value through the host; the mode register is a register used to configure the working mode of the register circuit; the target value is the value corresponding to the readable and writable mode supported by the register circuit; the register circuit is controlled to work in the readable and writable mode through the target value to obtain a training register that supports reading and writing.

[0170] In one embodiment, a sample write data signal includes a plurality of sub-sample signals; a write data delay control circuit provided on a host includes a plurality of sub-circuits; a sub-circuit is used to control the delay of a sub-sample signal; the training module 2008 is also used to perform single-circuit delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit for each sub-circuit in the write data delay control circuit, to obtain a trained initial sub-circuit; wherein, the sub-sample signal after the signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal; based on the plurality of sub-sample signals, multi-circuit delay adjustment training is performed on each initial sub-circuit to obtain a trained write data delay control circuit; the trained write data delay control circuit includes a plurality of trained target sub-circuits; each sub-sample signal after the signal offset adjustment is performed by each target sub-circuit is aligned with the same sampling edge of the sampling signal.

[0171] In one embodiment, the sampled write data signal includes multiple sub-sampling signals corresponding to the multiple sub-sample signals respectively; the training module 2008 is also used to continue delay adjustment training on the initial sub-circuit to be advanced trained according to the initial adjustment information of the initial sub-circuit to be advanced trained if the host fails to read the multiple sub-sampling signals from the training register at one time, until the host can read the multiple sub-sampling signals from the training register at one time to obtain the trained write data delay control circuit; wherein, the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sample signals that have not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit by delay adjustment training of a single circuit.

[0172] In one embodiment, the training module 2008 is also used to gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit; wherein the target sub-sample signal is a sub-sample signal corresponding to the initial sub-circuit to be advanced trained.

[0173] In one embodiment, the training module 2008 is further configured to use each initial sub-circuit as each target sub-circuit to obtain a trained write data delay control circuit if the host can read multiple sub-sampling signals from the training register at one time.

[0174] In one embodiment, the sub-circuit includes write data delay units connected in sequence; each write data delay unit is connected to a tap interface; the tap interface supports the export of signals from the sub-circuit; the initial sub-circuit is a circuit for which a target tap interface has been determined; the training module 2008 is also used to perform single-circuit delay adjustment training on the sub-circuit based on the sub-sample signal corresponding to the sub-circuit for each sub-circuit in the write data delay control circuit, so as to determine the delay adjustment information for the sub-circuit; based on the delay adjustment information, determine the target tap interface from the sub-circuit; wherein, the target write data delay unit before the target tap interface is used to perform signal offset adjustment on the sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with the sampling edge of the sampling signal.

[0175] In one embodiment, the training module 2008 is also used to, for each sub-circuit in the write data delay control circuit, adjust the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit when the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, thereby obtaining first adjustment information for the sub-circuit; restore the second state to the first state, and adjust the sub-circuit in a direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal, thereby obtaining second adjustment information for the sub-circuit; and determine the delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information.

[0176] In one embodiment, the subcircuit includes a first component circuit and a second component circuit; the second component circuit is connected after the first component circuit; the first component circuit and the second component circuit respectively include write data delay units connected in sequence; the first adjustment information includes a first number of write data delay units in the second component circuit through which the subsample signal corresponding to the subcircuit has been transmitted; the training module 2008 is further used to control the subsample signal corresponding to the subcircuit to pass through each write data delay unit in the first component circuit in sequence to perform an initial delay control process to obtain the subsample signal corresponding to the subcircuit after the initial control; in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on the sampling signal, in a direction of increasing the delay of the subsample signal corresponding to the subcircuit after the initial control, continue to control the subsample signal corresponding to the subcircuit after the initial control to be transmitted through the write data delay units in the second component circuit one by one, until a second state in which the memory does not sample the subsample signal corresponding to the subcircuit from the corresponding tap interface of the second component circuit based on the sampling signal appears, and record the first number of write data delay units in the second component circuit through which the subsample signal corresponding to the subcircuit has been transmitted.

[0177] In one embodiment, the second adjustment information includes a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit has not been transmitted; the training module 2008 is also used to restore the second state to the first state, and in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, control the sub-sample signal corresponding to the sub-circuit after the initial control to reduce the transmission of the write data delay units in the first component circuit one by one, until the second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit based on the sampling signal, and record the second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit has not been transmitted.

[0178] In one embodiment, the training module 2008 is also used to perform frequency reduction adjustment processing on the current operating frequency of the memory in a second state in which the memory has not sampled the sub-sample signal corresponding to the sub-circuit based on the sampling signal, so as to obtain a reduced target operating frequency; the target operating frequency is an operating frequency that enables the memory to sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal; based on the sampling signal in the memory operating at the target operating frequency, the sub-sample signal corresponding to the sub-circuit is sampled so that the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal.

[0179] In one embodiment, the training module 2008 is also used to monitor the system working state of the high bandwidth memory system; the high bandwidth memory system includes a host and a memory; if the system working state is not busy, the configuration module 2002 is notified through software control to re-execute the step of configuring the working mode of the register circuit in the memory through the host to obtain the training register for caching data, so as to trigger the re-delay adjustment training.

[0180] The above-mentioned write data signal delay control device configures the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing; sends the sample write data signal to the memory through the host; samples the sample write data signal based on the sampling signal through the memory, and caches the sampled write data signal obtained by sampling in the training register, and compares the sample write data signal with the sample write data signal sent by the host. If the sample write data signal read by the host from the training register is inconsistent with the sample write data signal, it means that the sample write data signal transmitted by the host and the sample signal of the memory have an offset. At this time, the write data delay control circuit set on the host can be delayed adjusted and trained based on the sample write data signal to obtain a trained write data delay control circuit. Furthermore, in the actual application process, the input write data signal can be adjusted for signal offset through the trained write data delay control circuit, and the adjusted target write data signal can be sent to the memory, so that the sampling edge of the target write data signal received by the memory and the sampling signal of the memory can be aligned, so that the memory can correctly sample the write data signal sent by the host, ensuring the correctness of the data written to the memory, thereby improving the working stability of the memory.

[0181] Each module in the above-mentioned write data signal delay control device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0182] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.21As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a write data signal delay control method is implemented.

[0183] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 22 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a write data signal delay control method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0184] Those skilled in the art will understand that Fig.21 and Fig. 22The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0185] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0186] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0187] In one embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0188] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0189] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0191] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for controlling delay of a write data signal, It is characterized in that The method comprises: The host configures the working mode of the register circuit in the memory to obtain a training register that supports reading and writing; sending a sample write data signal to the memory through the host; Sampling the sample write data signal based on the sampling signal through the memory, and caching the sample write data signal obtained by the sampling into the training register; If the sampled write data signal read by the host from the training register is inconsistent with the sample write data signal, then delay adjustment training is performed on a write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit; The trained write data delay control circuit is used to perform signal offset adjustment on the input write data signal to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to be written into the memory.

2. The method according to claim 1, It is characterized in that The process of configuring the working mode of the register circuit in the memory by the host to obtain the training register supporting reading and writing includes: The host sets the value of the mode register in the memory to a target value; the mode register is a register used to configure the working mode of the register circuit; the target value is a value corresponding to the readable and writable mode supported by the register circuit; The register circuit is controlled to work in a readable and writable mode by the target value, so as to obtain a training register supporting reading and writing.

3. The method according to claim 1, It is characterized in that The sample write data signal includes a plurality of sub-sample signals; the write data delay control circuit provided on the host includes a plurality of sub-circuits; one sub-circuit is used to control the delay of one sub-sample signal; The delay adjustment training of the write data delay control circuit provided on the host based on the sample write data signal to obtain the trained write data delay control circuit includes: For each sub-circuit in the write data delay control circuit, a single-circuit delay adjustment training is performed on the sub-circuit based on a sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit; wherein the sub-sample signal after the signal offset adjustment is performed by the initial sub-circuit is aligned with the sampling edge of the sampling signal; Based on the multiple sub-sample signals, multi-circuit delay adjustment training is performed on each of the initial sub-circuits to obtain a trained write data delay control circuit; the trained write data delay control circuit includes multiple trained target sub-circuits; and each of the sub-sample signals after signal offset adjustment is performed by each of the target sub-circuits is aligned with the same sampling edge of the sampling signal.

4. The method according to claim 3, It is characterized in that The sampled write data signal includes a plurality of sub-sample signals respectively corresponding to the plurality of sub-sample signals; and based on the plurality of sub-sample signals, performing multi-circuit delay adjustment training on each of the initial sub-circuits to obtain a trained write data delay control circuit includes: If the host fails to read the multiple sub-sampling signals from the training register at one time, the delay adjustment training is continued for the initial sub-circuit to be advanced trained according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read the multiple sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit; Among them, the initial sub-circuit to be advanced trained is the initial sub-circuit corresponding to the sub-sample signal that has not been read; the initial adjustment information of the initial sub-circuit to be advanced trained is the adjustment information used in the process of obtaining the initial sub-circuit through delay adjustment training of a single circuit.

5. The method according to claim 4, It is characterized in that The method of continuing delay adjustment training on the initial sub-circuit to be advanced trained according to the initial adjustment information of the initial sub-circuit to be advanced trained, until the host can read the multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit, comprises: According to the initial adjustment information of the initial sub-circuit to be advanced trained, gradually adjust the initial sub-circuit to be advanced trained in the direction of increasing or decreasing the delay of the target sub-sample signal until the host can read the multiple sub-sample signals from the training register at one time to obtain a trained write data delay control circuit; The target sub-sample signal is a sub-sample signal corresponding to the initial sub-circuit to be advanced trained.

6. The method according to claim 4, It is characterized in that The method further comprises: If the host can read the multiple sub-sampling signals from the training register at one time, each of the initial sub-circuits is used as each of the target sub-circuits to obtain a trained write data delay control circuit.

7. The method according to claim 3, It is characterized in that The subcircuit includes sequentially connected write data delay units; each write data delay unit is connected to a tap interface; the tap interface supports deriving a signal from the subcircuit; the initial subcircuit is a circuit with a determined target tap interface; The step of performing single-circuit delay adjustment training on each sub-circuit in the write data delay control circuit based on a sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit includes: For each sub-circuit in the write data delay control circuit, performing single-circuit delay adjustment training on the sub-circuit based on a sub-sample signal corresponding to the sub-circuit to determine delay adjustment information for the sub-circuit; Based on the delay adjustment information, a target tap interface is determined from the sub-circuit; wherein, a target write data delay unit before the target tap interface is used to perform signal offset adjustment on the sub-sample signal corresponding to the sub-circuit through delay processing to obtain a signal aligned with the sampling edge of the sampling signal.

8. The method according to claim 7, It is characterized in that The step of performing single-circuit delay adjustment training on each sub-circuit in the write data delay control circuit based on a sub-sample signal corresponding to the sub-circuit to determine delay adjustment information for the sub-circuit includes: For each sub-circuit in the write data delay control circuit, when the memory samples a sub-sample signal corresponding to the sub-circuit based on a sampling signal in a first state, the sub-circuit is adjusted in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs in which the memory does not sample a sub-sample signal corresponding to the sub-circuit based on the sampling signal, thereby obtaining first adjustment information for the sub-circuit; Restoring the second state to the first state, and adjusting the subcircuit in a direction of reducing the delay of the subsample signal corresponding to the subcircuit, until a second state occurs in which the memory does not sample the subsample signal corresponding to the subcircuit based on the sampling signal, and obtaining second adjustment information for the subcircuit; Delay adjustment information for the sub-circuit is determined according to the first adjustment information and the second adjustment information.

9. The method according to claim 8, It is characterized in that The subcircuit includes a first component circuit and a second component circuit; the second component circuit is connected after the first component circuit; the first component circuit and the second component circuit respectively include write data delay units connected in sequence; the first adjustment information includes a first number of the sub-sample signals corresponding to the subcircuit that have been transmitted through the write data delay units in the second component circuit; For each sub-circuit in the write data delay control circuit, when the memory samples a sub-sample signal corresponding to the sub-circuit based on a sampling signal in a first state, adjusting the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs in which the memory does not sample a sub-sample signal corresponding to the sub-circuit based on the sampling signal, obtaining first adjustment information for the sub-circuit, including: Controlling the sub-sample signal corresponding to the sub-circuit to pass through each write data delay unit in the first component circuit in sequence to perform initial delay control processing, and obtaining the sub-sample signal corresponding to the sub-circuit after initial control; In a first state in which the memory samples a sub-sample signal corresponding to the sub-circuit based on a sampling signal, the sub-sample signal corresponding to the sub-circuit after the initial control is continuously controlled to be transmitted through the write data delay units in the second component circuit one by one in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, until a second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the second component circuit based on the sampling signal occurs, and a first number of the sub-sample signals corresponding to the sub-circuit that have been transmitted through the write data delay units in the second component circuit is recorded.

10. The method according to claim 9, It is characterized in that The second adjustment information includes a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is not transmitted; The step of restoring the second state to the first state and adjusting the subcircuit in a direction of reducing the delay of the subsample signal corresponding to the subcircuit until a second state occurs in which the memory does not sample the subsample signal corresponding to the subcircuit based on the sampling signal, and obtaining second adjustment information for the subcircuit includes: The second state is restored to the first state, and in the direction of reducing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, the sub-sample signal corresponding to the sub-circuit after the initial control is controlled to be transmitted through the write data delay units in the first component circuit one by one, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from the corresponding tap interface of the first component circuit based on the sampling signal, and the second number of the write data delay units through which the sub-sample signal corresponding to the sub-circuit is not transmitted is recorded.

11. The method according to claim 8, It is characterized in that In the first state where the memory samples a sub-sample signal corresponding to the sub-circuit based on a sampling signal for each sub-circuit in the write data delay control circuit, before adjusting the sub-circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit, the method further includes: In a second state where the memory does not sample a sub-sample signal corresponding to the sub-circuit based on the sampling signal, a frequency reduction adjustment process is performed on the current operating frequency of the memory to obtain a reduced target operating frequency; the target operating frequency is an operating frequency that enables the memory to sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal; The sub-sample signal corresponding to the sub-circuit is sampled based on a sampling signal in a memory operating at the target operating frequency, so that the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal.

12. The method according to any one of claims 1 to 11, It is characterized in that After performing delay adjustment training on the write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit, the method further includes: Monitoring a system operating state of a high bandwidth memory system; the high bandwidth memory system comprises the host and the memory; If the system working state is not busy, the step of configuring the working mode of the register circuit in the memory through the host to obtain the training register for caching data is re-executed through software control to trigger the delay adjustment training again.

13. A write data signal delay control device, It is characterized in that The device comprises: A configuration module, used to configure the working mode of the register circuit in the memory through the host to obtain a training register that supports reading and writing; A sending module, used for sending a sample write data signal to the memory through the host; A sampling module, used for sampling the sample write data signal based on the sampling signal through the memory, and caching the sample write data signal obtained by the sampling into the training register; a training module, configured to perform delay adjustment training on a write data delay control circuit provided on the host based on the sample write data signal to obtain a trained write data delay control circuit if the sample write data signal read by the host from the training register is inconsistent with the sample write data signal; The adjustment module is used to perform signal offset adjustment on the input write data signal through the trained write data delay control circuit to obtain a target write data signal aligned with the sampling edge of the sampling signal; the target write data signal is used to be written into the memory.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Writing data sampling signal time sequence monitoring method, monitoring circuit and memory

    CN111243635A

  • High throughput rate and low delay PHY interface circuit device of DDR5 SDRAM

    CN113553277A

  • Synchronized communication between integrated circuit chips

    US20050102545A1

  • Hardware command training for memory using write leveling mechanism

    US20140181451A1

  • Memory system, operation method of the same, and memory controller

    US20200201705A1

Cited By

  • Write data signal delay control method and apparatus, and device and medium

    WO2023221627A1