Method, device, and equipment for controlling delay of write data signal
The method and device for controlling write data signal delay in high-bandwidth storage systems address offset and sampling errors by aligning signals with sampling edges, improving memory operational stability and data accuracy.
Patent Information
- Application Number
- JP2024532533
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-05-20
- Filing Date
- 2023-03-16
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-03-16
AI Technical Summary
In high-bandwidth internal storage systems, write data signals are prone to offset and sampling errors due to environmental changes and crosstalk, leading to operational instability in the memory.
A method and device for controlling write data signal delay by setting an operating mode for a register circuit, acquiring a training register, sampling and caching the signal, performing delay adjustment training, and aligning the signal with a sampling edge to ensure accurate writing.
The solution improves operational stability of the memory by ensuring correct data writing and sampling, reducing errors and enhancing system reliability.
Smart Images

Figure 2024542704000001_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the technical field of computers, and more particularly to a method, device, equipment, and medium for controlling delay of a write data signal.
[0002] This application claims priority to a Chinese patent application filed with the China Patent Office on May 20, 2022, bearing application number 2022105488270 and entitled "Method, device, equipment, and medium for controlling delay of write data signal," the entire contents of which are incorporated herein by reference. [Background technology]
[0003] In a high-bandwidth internal storage system, a host computer in the high-bandwidth internal storage system can realize a write operation control for the memory by sending a write data signal to the memory in the high-bandwidth internal storage system. However, in the process in which the host computer sends the write data signal to the memory, the transmission of the write data signal is easily affected by factors such as environmental changes and crosstalk between signals, so that an offset is easily generated between the write data signal and the sampling signal in the memory, and thus a write data sampling error occurs. If a write data sampling error occurs, an error will occur in the host computer's write operation to the memory, and similarly an error will occur in the data written in the memory, which may reduce the operation stability of the memory. Summary of the Invention [Means for solving the problem]
[0004] Based on this, it is necessary to provide a method, device, equipment, and medium for controlling the delay of a write data signal to address the above technical issues.
[0005] In a first aspect, the present application provides a method for controlling delay of a write data signal, the method being executed by a computing device, the method comprising: A step of setting an operation mode for a register circuit in the memory by a host computer and acquiring (obtaining) a training register that supports read and write; sending a sample write data signal to the memory by the host computer; sampling the sampled write data signal based on a sampling signal through the memory, and caching the sampled write data signal obtained by sampling in the training register; if the sampling write data signal read by the host computer from the training register does not match the sample write data signal, a delay adjustment training is performed on a write data delay control circuit installed on the host computer based on the sample write data signal to obtain a trained write data delay control circuit; and a step of performing a signal offset adjustment on the write data signal input by the trained write data delay control circuit to obtain a target write data signal aligned with a sampling edge of a sampling signal, the target write data signal being used for writing in the memory.
[0006] In a second aspect, the present application provides an apparatus for controlling a delay of a write data signal, the apparatus comprising: A setting module is used for setting an operation mode for a register circuit in the memory by a host computer and acquiring a training register supporting read / write; a transmitting module for transmitting a sample write data signal to the memory by the host computer; a sampling module for sampling the sampled write data signal according to a sampling signal through the memory, and caching the sampled write data signal obtained by sampling in the training register; a training module for performing delay adjustment training for a write data delay control circuit installed on the host computer according to the sampled write data signal if the sampled write data signal read from the training register by the host computer does not match the sampled write data signal, and obtaining a trained write data delay control circuit; an adjustment module used to perform signal offset adjustment on the write data signal input by the trained write data delay control circuit to obtain a target write data signal that is aligned with a sampling edge of a sampling signal, the target write data signal being used to write in the memory.
[0007] In a third aspect, the present application provides a computing device, comprising a memory and one or more processors, wherein computer readable instructions are stored in the memory, and the one or more processors, when executing the computer readable instructions, perform steps in each method embodiment of the present application.
[0008] In a fourth aspect, the present application provides one or more computer-readable storage media having computer-readable instructions stored thereon that, when executed by one or more processors, perform steps in each of the method embodiments of the present application.
[0009] In a fifth aspect, the present application provides a computer program product, comprising computer readable instructions that, when executed by one or more processors, implement the steps of each method embodiment of the present application.
[0010] The details of one or more embodiments of the application are set forth in the drawings and description below. Other features, objects, and advantages of the application will become apparent from the description, drawings, and claims.
[0011] In order to more clearly describe the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. It is obvious that the drawings in the following description are only some embodiments of the present application, and those skilled in the art can further obtain other drawings based on these drawings without creative labor. [Brief description of the drawings]
[0012] [Figure 1] FIG. 2 is an application environment diagram of a method for controlling delay of a write data signal in one embodiment. [Diagram 2] 1 is a schematic diagram of a process of a method for controlling delay of a write data signal in one embodiment; [Diagram 3] FIG. 4 is a schematic diagram of a configuration structure of a write data signal in one embodiment. [Figure 4] 11 is a schematic diagram of the transmission timing of a write command in one embodiment. [Diagram 5] 4 is a schematic diagram of a format of a write data signal in one embodiment. [Figure 6] 11 is a schematic diagram of a format of a write data signal when the burst length is 2 in one embodiment. FIG. [Figure 7] 11 is a schematic diagram of a format of a write data signal when the burst length is 4 in one embodiment. FIG. [Figure 8] FIG. 13 is a schematic diagram of a transmission process of a write data signal in one embodiment. [Figure 9] 11 is a schematic diagram of the timing of sending a read command in one embodiment. FIG. [Figure 10] FIG. 13 is a schematic diagram of a situation in which a write data signal is aligned with a sampling edge of a sampling signal in one embodiment. [Figure 11] FIG. 4 is a schematic diagram of a mode register setting description table in one embodiment. [Figure 12] 11 is a schematic diagram illustrating a distribution of each sub-sample signal in a write data signal in one embodiment. FIG. [Figure 13] FIG. 2 is a diagram illustrating the basic structure of a write data delay control circuit according to one embodiment. [Figure 14] 5 is a schematic diagram of each sub-sample signal in a write data signal in one embodiment. FIG. [Figure 15] FIG. 13 is a schematic diagram of a situation in which each sub-sample signal in a write data signal is aligned with a respective sampling edge of a sampling signal in one embodiment. [Figure 16] FIG. 13 is a schematic diagram of a process of performing single-circuit delay adjustment training for each sub-circuit in one embodiment. [Figure 17] 4 is a schematic diagram of the structure of each sub-circuit in a write data delay control circuit according to one embodiment. FIG. [Figure 18] FIG. 2 is a diagram showing the basic structure of a training circuit for delay control of a write data signal in one embodiment. [Figure 19] 11 is a schematic diagram of a process of a delay control method for a write data signal in another embodiment; [Figure 20] FIG. 2 is a structural block diagram of a delay control device for a write data signal in one embodiment. [Figure 21] 1 is a diagram showing the internal structure of a computer device according to one embodiment. [Figure 22] FIG. 11 is a diagram showing the internal structure of a computer device according to another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in more detail below with reference to the drawings and examples. It should be understood that the specific examples described herein are only used to interpret the present application, and are not used to limit the present application.
[0014] The write data signal delay control method provided by the present application can be applied in the application environment shown in FIG. 1. Here, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be located on the cloud or on other servers. Here, the terminal 102 can be, but is not limited to, various desktop computers, notebook computers, smartphones, tablet computers, Internet of Things devices, and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, and smart car-mounted devices, etc. The portable wearable devices can be smart watches, smart bracelets, and head-mounted devices, etc. The server 104 can be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, and can be 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 may be directly or indirectly connected by wired or wireless communication methods, which the present application is not limited thereto.
[0015] The server 104 is equipped with a high-bandwidth internal storage system including a host computer and a memory. The server 104 can set an operation mode for a register circuit in the memory through the host computer, and obtain a training register supporting read and write. The server 104 sends a sample write data signal to the memory through the host computer, samples the sample write data signal according to the sample signal through the memory, and caches the sampled and obtained sample write data signal in the training register. If the sample write data signal read by the host computer from the training register does not match the sample write data signal, the server 104 can perform delay adjustment training for a write data delay control circuit installed on the host computer according to the sample write data signal, and obtain a trained write data delay control circuit. The server 104 can perform signal offset adjustment for the input write data signal by the trained write data delay control circuit, and obtain a target write data signal that is aligned with the sampling edge of the sampling signal, and the target write data signal is used for writing in the memory.
[0016] As can be understood, the host computer 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 to perform subsequent delay adjustment training. As can be further understood, 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 by the host computer and send the received sample write data signal in the memory in the server 104 to perform subsequent delay adjustment training. This embodiment is not limited thereto, and it can be understood that the application scene in FIG. 1 is merely an exemplary description and is not limited thereto.
[0017] In one embodiment, a method for controlling delay of a write data signal is provided, as shown in Fig. 2. The method can be applied to a computer device, which may be a terminal or a server, and may be executed solely by the terminal or the server itself, or may be realized through an interaction between the terminal and the server. This embodiment takes the method applied to a computer device as an example, and includes the following steps 202 to 210.
[0018] Step 202: The host computer sets an operation mode for the register circuit in the memory, and obtains a training register that supports read and write.
[0019] Here, the register circuit is an independent circuit in the memory, which supports the setting of multiple operation modes, for example, the register circuit can support being set to a readable / writable mode, a read-only mode, and a write-only mode. As can be understood, by setting the register circuit to a readable / writable mode, a register supporting read / write, i.e., a training register supporting read / write, can be obtained. As can be understood, the training register is a register used for caching data in the training phase. By setting the register circuit to a read-only mode, a register supporting read can be obtained. By setting the register circuit to a write-only mode, a register supporting write can be obtained.
[0020] Specifically, the computer device includes a host computer and a memory. The computer device can obtain a training register supporting read / write by setting an operation mode for a register circuit in the memory by the host computer. As can be understood, the computer device can obtain a training register supporting read / write by setting an operation mode for a register circuit in the memory to a readable / writable mode by the host computer.
[0021] In one embodiment, the host computer and the memory are components of a high bandwidth internal storage system, the high bandwidth internal storage system being implemented in a computing device.
[0022] In one embodiment, the memory may be a dynamic random access memory or a random access memory. As should be understood, the embodiments herein are merely illustrative and are not intended to be limited to any particular type of memory.
[0023] Step 204: Send a sample write data signal to the memory by the host computer.
[0024] Here, the sample write data signal is a write data signal used to train a write data delay control circuit installed on a host computer in a training stage. As can be understood, the sample write data signal is a kind of sample data used to train a write data delay control circuit. The write data delay control circuit is a circuit used to perform delay control on the write data signal, and by controlling the write data signal and the sampling edge of the memory sampling signal to be aligned, the memory sampling signal can correctly sample the write data signal. The sampling signal is a clock signal used to sample the write data signal transmitted from the host computer in the memory.
[0025] Specifically, the computer device can obtain a sample write data signal by the host computer, and send the sample write data signal by the host computer to the memory.
[0026] In one embodiment, as shown in Figure 3, the write data signal includes three parts: a write data bus signal, a mask signal, and a data bus inversion signal, where 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 inversion signal is 16 bits.
[0027] In one embodiment, before the computer device sends a sample write data signal to the memory by the host computer, the host computer may first send a write command to the memory. The sending of the write command should follow the timing shown in FIG. 4, and as can be seen from FIG. 4, the write command includes nine fields. Here, SID represents the stack identification number, CA field represents the column address, BA field represents the bank address, PAR field represents the command check field, and V field can represent 1 or 0, i.e., high level or low level. Here, clock 1 and clock 2 are two differential clocks.
[0028] In one embodiment, as shown in FIG. 5, the write data signal includes three parts, a write data bus signal, a mask signal, and a data bus inversion signal. After the computer device transmits a write command to the memory by the host computer, the computer device may transmit the write data signals, i.e., the write data bus signal, the mask signal, and the data bus inversion signal, to the memory by the host computer at intervals of four cycles. The write data signals of the individual parts respectively correspond to the respective sampling signals. The write data signals of the individual parts may each include multiple sets of data (for example, four sets, i.e., data 1, data 2, data 3, and data 4).
[0029] In one embodiment, the computer sends a write data signal to the memory by the host computer based on a burst format. That is, each time the computer sends a write data signal, multiple sets can be sent together. As shown in FIG. 6, the burst length of the computer sending a write data signal to the memory by the host computer is 2, and the computer equipment can send a write command to the memory by the host computer at time T0, and after four cycles of sending the write command, that is, at time T4, the computer equipment can send two sets of write data signals (i.e., data 1 and data 2) to the memory by the host computer. Here, the value of the write command sent by the host computer to the memory includes BAx (Bank address) and CAa (column address).
[0030] 7, in one embodiment, the burst length of the computer sending write data signals to the memory by the host computer is 4, the computer equipment can send a write command to the memory by the host computer at time T0, and after four cycles of sending the write command, i.e., at time T4, the computer equipment can send four sets of write data signals (i.e., data 1, data 2, data 3, and data 4) to the memory by the host computer. Here, the value of the write command sent by the host computer to the memory includes BAx (bank address) and CAa (column address).
[0031] In one embodiment, as shown in Fig. 8, the computer equipment can start the current data writing by sending an activation command to the memory by the host computer. After sending the activation command, the computer equipment can send write commands (i.e., write command 1, write command 2, and write command 3) to the memory by the host computer. Furthermore, the computer equipment can send write data signals (i.e., data 1, data 2, and data 3) to the memory by the host computer. As should be explained, at the same time as sending the write data signals, the host computer can also send a write data selection pulse signal that matches the write data signal to the memory as a sampling signal. Finally, the computer equipment can finish the current data writing by sending a precharge command to the memory by the host computer.
[0032] Step 206: sample the sampled write data signal according to the sampling signal through the memory, and cache the sampled write data signal obtained by sampling in a training register.
[0033] Here, the sampled write data signal is a write data signal obtained by sampling the memory based on the sampling signal.
[0034] Specifically, the computer device transmits the sampled write data signal to the memory by the host computer, and simultaneously transmits a corresponding sampling signal in the memory. Furthermore, the computer device can sample the sampled write data signal according to the received sampling signal through the memory, and cache the sampled write data signal obtained by sampling in a training register.
[0035] In one embodiment, the computer device can send a sample write data signal and a write data selection pulse signal that matches the sample write data signal to the memory by the host computer. The memory can use the received write data selection pulse signal as a sampling signal and sample the sample write data signal sent from the host computer according to the sampling signal to obtain the sample write data signal. As can be understood, since the sampling signal is a write data selection pulse signal that matches the sample write data signal, the sample write data signal can be sampled through the sampling signal to improve the sampling accuracy of the data signal.
[0036] Step 208: If the sampling write data signal read by the host computer from the training register does not match the sample write data signal, perform delay adjustment training for the write data delay control circuit installed on the host computer based on the sample write data signal, and obtain a trained write data delay control circuit.
[0037] Specifically, the computer device can read the sampled write data signal from the training register of the memory by the host computer, and compare the sampled write data signal read from the training register by the host computer with the sampled write data signal sent to the memory by the host computer. If the sampled write data signal does not match the sampled write data signal, it means that the sampled write data signal is offset from the sampling edge of the sampling signal during transmission, the sampled write data signal is not correctly sampled by the sampling signal, and the sampled write data signal is not 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 for the write data delay control circuit installed on the host computer according to the sampled write data signal, and obtain a trained write data delay control circuit.
[0038] As can be understood, the write data signal being aligned with the sampling edge of the sampling signal specifically refers to the signal center of the write data signal being aligned with the sampling edge of the sampling signal of the memory.
[0039] In one embodiment, the sampling edge of the sampling signal includes a rising edge of the sampling signal and a falling edge of the sampling signal. If the computer device samples the write data signal by the rising edge of the memory sampling signal, the signal center of the write data signal is aligned with the rising edge of the memory sampling signal. If the computer device samples the write data signal by the falling edge of the memory sampling signal, the signal center of the write data signal is aligned with the falling edge of the memory sampling signal. As can be seen, since the sampling edge of the sampling signal includes a rising edge and a falling edge, by determining with a finer granularity to sample the write data signal using the rising edge of the sampling signal or the falling edge of the sampling signal, the sampling accuracy of the data signal can be further improved by avoiding the situation of erroneous alignment.
[0040] In one embodiment, the sampled write data signal includes a plurality of sub-sampled signals, and the write data delay control circuit installed on the host computer includes a plurality of sub-circuits, where each sub-circuit is used to control the delay of one sub-sampled signal. The computer device can perform delay adjustment training on the plurality of sub-circuits installed on the host computer respectively according to the plurality of sub-sampled signals to obtain a trained write data delay control circuit.
[0041] In one embodiment, before the computer device reads the sampling write data signal from the training register of the memory by the host computer, the host computer may first send a read command to the memory. The sending of the read command must follow the timing shown in Fig. 9, and as shown in Fig. 9, the read command includes nine fields. Here, SID represents a stack identification number, CA field represents a column address, BA field represents a bank address, PAR field represents a command check field, and V field can represent 1 or 0, i.e., a high level or a low level.
[0042] Step 210: Perform signal offset adjustment on the input write data signal by 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, which is used for writing in the memory.
[0043] Here, the input write data signal refers to the write data signal acquired by the host computer in the actual application scene after the training stage is completed, and the target write data signal is the write data signal after the offset adjustment and aligned with the sampling edge of the sampling signal.
[0044] Specifically, in the actual application stage after the delay adjustment training, the computer device can obtain a write data signal in the actual application scene through the host computer, 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 by the trained write data delay control circuit, and obtain a target write data signal that is aligned with the sampling edge of the sampling signal in the memory. Furthermore, 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, so as to write the target write data signal in the memory.
[0045] In one embodiment, the computer device samples the write data signal according to the rising edge of the sampling signal of the memory. As shown in FIG. 10, the center of the write data signal in (a) is exactly aligned with the rising edge of the sampling signal, and the memory can accurately sample the write data signal through the sampling signal. Not only is there an offset between the center of the write data signal and the rising edge of the sampling signal in (b), but the rising edge of the sampling signal is 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 in (c) and the rising edge of the sampling signal, and the memory is likely to be unable to accurately sample the write data signal through the sampling signal.
[0046] In the above-mentioned write data signal delay control method, the host computer sets the operation mode for the register circuit in the memory, obtains a training register supporting read and write, transmits a sampled write data signal to the memory by the host computer, samples the sampled write data signal according to the sampled signal through the memory, caches the sampled and obtained sampled write data signal in the training register, and compares the sampled write data signal with the sampled write data signal transmitted from the host computer. If the sampled write data signal read by the host computer from the training register does not match the sampled write data signal, it means that the sampled write data signal transmitted from the host computer is offset from the sampled signal in the memory. At this time, a delay adjustment training can be performed for the write data delay control circuit installed on the host computer according to the sampled write data signal, and a trained write data delay control circuit can be obtained. Furthermore, in the actual application process, the trained write data delay control circuit can perform a signal offset adjustment for the input write data signal, and transmit the adjusted target write data signal to the memory. In this way, the target write data signal received by the memory can be aligned with the sampling edge of the memory's sampling signal, thereby enabling the memory to correctly sample the write data signal sent from the host computer, and by ensuring that the data written to the memory is correct, the operational stability of the memory can be improved.
[0047] In one embodiment, the step of setting an operating mode for a register circuit in a memory by a host computer and obtaining a training register supporting read and write includes a step of setting a value of a mode register in the memory to a target value by the host computer, where the mode register is a register used for setting an operating mode of the register circuit and the target value is a value corresponding to the readable and writable mode supported by the register circuit, and a step of controlling the register circuit to operate in the readable and writable mode via the target value and obtaining a training register supporting read and write.
[0048] Specifically, the memory is provided with a mode register, which can set the operation mode of the register circuit in the memory. As can be understood, the computer device can set the value of the mode register in the memory to a target value corresponding to the readable / writable mode by the host computer, and further control the register circuit to operate in the readable / writable mode through the target value, and the register circuit operating in the readable / writable mode can be a training register supporting read / write.
[0049] In one embodiment, the setting description of the operation mode of the mode register is shown in FIG. 11, and the value of the mode register includes 8 bits of data. The first bit is used to set the self-loop test of the data word, the second bit to the third bit are used to set the control of the read multiplexer of the data word, the fourth bit to the sixth bit are used to set the control of the multi-input shift register of the data word, the seventh bit is used to set the reservation, and the eighth bit is used to set the CATTRIP pin of the memory. For example, the mode register can be set to an 8-bit binary number, i.e., 00000001, and the default value in the register circuit can be reset to a hexadecimal number, i.e., 0xAAAAAh. The mode register can be set to an 8-bit binary number, i.e., 00010011, and the operation mode of the register circuit can be set to the register mode (read / write direction), i.e., the readable / writable mode, and the training register can be acquired. As can be seen, if the host computer writes new data in the memory, the newly written data will overwrite the original default value 0xAAAAAh.
[0050] In the above embodiment, the mode register in the memory can be used to set the operating mode of the register circuit, so that the operating mode of the register circuit can be set by setting the value of the mode register in the memory, thereby improving the setting efficiency and setting accuracy of the register circuit.
[0051] In one embodiment, the sampled write data signal includes a plurality of sub-sample signals, and the write data delay control circuit installed on the host computer includes a plurality of sub-circuits. Each sub-circuit is used to control the delay of one sub-sample signal. The step of performing delay adjustment training for the write data delay control circuit installed on the host computer based on the sampled write data signal to obtain a trained write data delay control circuit includes the steps of performing single-circuit delay adjustment training for 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, where the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with a sampling edge of the sampling signal, and performing multi-circuit delay adjustment training for each initial sub-circuit based on the plurality of sub-sample signals to obtain a trained write data delay control circuit, where the trained write data delay control circuit includes a plurality of trained target sub-circuits, and each sub-sample signal after the signal offset adjustment by each target sub-circuit is aligned with the same sampling edge of the sampling signal.
[0052] Here, the initial subcircuit is an initial trained circuit obtained after performing single-circuit delay adjustment training on the subcircuit, and the target subcircuit is a final circuit obtained by performing step-up delay adjustment training on the initial subcircuit.
[0053] Specifically, for each sub-circuit in the write data delay control circuit, the computer device can perform single-circuit delay adjustment training for the sub-circuit based on the sub-sample signal corresponding to the sub-circuit, and obtain a trained initial sub-circuit. It can be 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 by the initial sub-circuit is aligned with the sampling edge of the sampling signal. The computer device can perform multi-circuit delay adjustment training for each initial sub-circuit based on multiple sub-sample signals, and obtain multiple trained target sub-circuits, and determine a trained write data delay control circuit based on the multiple trained target sub-circuits. It can be 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 by each target sub-circuit is aligned with the same sampling edge of the sampling signal.
[0054] In one embodiment, as shown in FIG. 12, the sample write data signal includes 160 sub-sample signals. As can be seen, 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 a first part, a second part, a third part, and a fourth part. Here, each part includes four byte spaces, and each byte space includes 10 bits of data, that is, each part includes 40 bits of data. As can be seen, 128 bits are write data bus signals, 16 bits are mask signals, and 16 bits are data bus inversion signals.
[0055] In one embodiment, as shown in Figure 13, the 160-bit sample write data signal can be divided into four parts, namely, a first part, a second part, a third part, and a fourth part. Each part includes a 40-bit sub-sample signal. The write data delay control circuit installed on the host computer includes 160 sub-circuits, where each sub-circuit includes multiple write data delay control units, and each sub-circuit is used to control the delay of one sub-sample signal.
[0056] In one embodiment, as shown in FIG. 14, the sample write data signal includes 160-bit sub-sample signals, and the write data delay control circuit includes 160 sub-circuits, each sub-circuit is used to control the delay of one sub-sample signal. For each of the 160 sub-circuits, a single-circuit delay adjustment training is performed for the sub-circuit according to the sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit, where the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with the sampling edge of the sampling signal. As can be seen, the 160-bit sub-sample signals after the signal offset adjustment by the initial sub-circuit only meet the requirement of being aligned with each sampling edge of the sampling signal, and do not necessarily meet the requirement of being aligned with the same sampling edge of the sampling signal. As shown in FIG. 15, the 160-bit sub-sample signals are not aligned with the same sampling edge of the sampling signal. At this time, the training is not yet complete, and adjustment training must be continuously performed on each sub-circuit until all of the 160-bit sub-sample signals are aligned with the same sampling edge of the sampling signal, and then the adjustment training is completed to obtain a trained write data delay control circuit.
[0057] In the above embodiment, first, each sub-circuit in the write data delay control circuit is subjected to single-circuit delay adjustment training, and an initial sub-circuit is obtained, 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 edges of the sampling signals aligned with each sub-sample signal are not necessarily the same sampling edges, in order to ensure that the sampling edges of the sampling signals aligned with each sub-sample signal are the same sampling edges, the initial sub-circuit obtained through the single-circuit delay adjustment training can be subjected to multi-circuit delay adjustment training, so that the sampling edges of the sampling signals aligned with each sub-sample signal are the same sampling edges, thereby improving the training effect of the write data delay control circuit.
[0058] In one embodiment, the sampled write data signal includes a plurality of sub-sampled signals and a plurality of sub-sampling signals corresponding thereto, and the step of performing multi-circuit delay adjustment training for each initial sub-circuit based on the plurality of sub-sampling signals to obtain a trained write data delay control circuit includes the step of, if the host computer cannot read the plurality of sub-sampling signals from the training register at one time, continuously performing delay adjustment training for the initial sub-circuit to be step-up trained based on initial adjustment information of the initial sub-circuit to be step-up trained until the host computer can read the plurality of sub-sampling signals from the training register at one time, to obtain a trained write data delay control circuit, where the initial sub-circuit to be step-up trained is the initial sub-circuit corresponding to the sub-sampled signal that has not been read, and the initial adjustment information of the initial sub-circuit to be step-up trained is the adjustment information used in the process of obtaining the initial sub-circuit by single-circuit delay adjustment training.
[0059] Specifically, the computer device can set the initial sub-circuit corresponding to the unread sub-sample signal as the initial sub-circuit to be trained for step-up. The computer device can set the adjustment information used in the process of acquiring the initial sub-circuit by delay adjustment training of a single circuit as the initial adjustment information of the initial sub-circuit to be trained for step-up. The computer device can read each sub-sampling signal from the training register of the memory by the host computer. If the host computer cannot read a plurality of sub-sampling signals from the training register at one time, it means that the sampling edges of the sampling signals aligned with each sub-sample signal are not the same sampling edge. At this time, the computer device can continuously perform delay adjustment training on the initial sub-circuit to be trained for step-up based on the initial adjustment information of the initial sub-circuit to be trained for step-up until the host computer can read a plurality of sub-sampling signals from the training register at one time. As can be understood, if the host computer can read a plurality of sub-sampling signals from the training register at one time, it means that the sampling edges of the sampling signals aligned with each sub-sample signal are the same sampling edge. At this time, the trained write data delay control circuit can be determined based on the plurality of trained target sub-circuits acquired by continuous training.
[0060] In the above embodiment, it is described that the host computer cannot read a plurality of sub-sampling signals from the training register at one time, and the sampling edges of the sampling signals aligned with each sub-sampling signal are not the same sampling edges. At this time, until the host computer can read a plurality of sub-sampling signals from the training register at one time, the delay adjustment training is continuously performed on the initial sub-circuit that is the step-up training target based on the initial adjustment information of the initial sub-circuit that is the step-up training target, and each sub-sampling signal can be aligned with the same sampling edge of the sampling signal, thereby further improving the training effect of the write data delay control circuit.
[0061] In one embodiment, the step of continuously performing delay adjustment training on the initial sub-circuit that is the target of step-up training based on the initial adjustment information of the initial sub-circuit that is the target of step-up training until the host computer can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit includes the step of gradually adjusting the initial sub-circuit that is the target of step-up training in a direction to increase or decrease the delay of the target sub-sample signal based on the initial adjustment information of the initial sub-circuit that is the target of step-up training until the host computer can read multiple sub-sampling signals from the training register at one time to obtain a trained write data delay control circuit, where the target sub-sample signal is a sub-sample signal corresponding to the initial sub-circuit that is the target of step-up training.
[0062] Specifically, the computer device can take the sub-sample signal corresponding to the initial sub-circuit to be step-up trained as the target sub-sample signal, and the computer device can gradually adjust the initial sub-circuit to be step-up trained according to the initial adjustment information of the initial sub-circuit to be step-up trained in a direction to increase or decrease the delay of the target sub-sample signal until the host computer can read multiple sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit.
[0063] As can be understood, the initial sub-circuit to be step-up trained can be adjusted based on the initial adjustment information to move the target sub-sample signal toward increasing or decreasing the delay over an entire clock cycle.
[0064] For example, the computer device can adjust the initial sub-circuit to be trained by step-up based on the initial adjustment information of the initial sub-circuit to be trained by step-up in a direction to increase the delay of one clock cycle of the target sub-sample signal. If the host computer is still unable to read a plurality of sub-sampling signals from the training register at one time, the computer device adjusts the initial sub-circuit to be trained by step-up in a direction to restore the target sub-sample signal to a state before the delay adjustment, and further adjusts the initial sub-circuit to be trained by step-up in a direction to reduce the delay of one clock cycle of the target sub-sample signal. If the host computer is still unable to read a plurality of sub-sampling signals from the training register at one time, the computer device adjusts the initial sub-circuit to be trained by step-up in a direction to continuously increase the delay of two clock cycles of the target sub-sample signal. If the host computer is still unable to read a plurality of sub-sampling signals from the training register at one time, the computer device adjusts the initial sub-circuit to be trained by step-up in a direction to continuously reduce the delay of two clock cycles of the target sub-sample signal. In this manner, the computer device gradually adjusts the initial sub-circuit to be trained by step-up until the host computer can read a plurality of sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit.
[0065] In the above embodiment, in a situation where the host computer cannot read multiple sub-sampling signals from the training register at one time, the initial sub-circuit that is the target of step-up training can be gradually adjusted in a direction to increase or decrease the delay of the target sub-sampling signal based on the initial adjustment information of the initial sub-circuit that is the target of step-up training until the host computer can read multiple sub-sampling signals from the training register at one time, and each sub-sampling signal can be aligned with the same sampling edge of the sampling signal, thereby further improving the training effect of the write data delay control circuit.
[0066] In one embodiment, the above-mentioned write data signal delay control method further includes a step of obtaining a trained write data delay control circuit by taking each initial sub-circuit as each target sub-circuit if the host computer can read multiple sub-sampling signals from the training register at one time.
[0067] Specifically, the computer device can read each sub-sampling signal from a training register in the memory through a host computer. If the host computer can read multiple sub-sampling signals from the training register at one time, it means that the sampling edges of the sampling signals aligned with each sub-sampling signal are the same sampling edge. At this time, a trained write data delay control circuit is obtained by taking each initial sub-circuit as each target sub-circuit.
[0068] In the above embodiment, it is described that the host computer can read multiple sub-sampling signals from the training register at one time, and the sampling edges of the sampling signals that are aligned with each sub-sampling signal are the same sampling edges. At this time, the trained write data delay control circuit can be obtained by directly using each initial sub-circuit as each target sub-circuit. In this way, the training effect of the write data delay control circuit can be ensured, and at the same time, the training efficiency of the write data delay control circuit can be improved.
[0069] In one embodiment, the sub-circuit includes sequentially connected write data delay units, each of which is followed by a tap interface, and the tap interface supports deriving a signal from the sub-circuit, and the initial sub-circuit is a circuit whose target tap interface has already been determined. For each sub-circuit in the write data delay control circuit, the step of performing single-circuit delay adjustment training on the sub-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; and determining a target tap interface from the sub-circuit based on the delay adjustment information, where 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.
[0070] Here, the write data delay unit is the smallest unit in the subcircuit used to perform delay control processing on the write data signal. As can be seen, the more the number of write data delay units performing delay control processing on the write data signal, the greater the delay of the write data signal, and conversely, the fewer the number of write data delay units, the smaller the delay of the write data signal. The tap interface is an interface installed after each write data delay unit in the subcircuit, and the tap interface supports deriving a signal from within the subcircuit. As can be seen, when the write data signal is transmitted and passes through the subcircuit, it can be read out from any one tap interface, so that the write data signal is derived from within the subcircuit. As can be seen, in the subcircuit, the write data delay unit before the tap interface responsible for deriving the write data signal can perform delay control processing on the write data signal, but the write data delay unit after the tap interface cannot perform delay control processing on the write data signal. The delay adjustment information is information used to adjust the subcircuit. As can be understood, adjusting a sub-circuit refers to adjusting the number of write data delay units in the sub-circuit through which the write data signal travels, thereby increasing or decreasing the delay of the write data signal. A target tap interface is a tap interface used to derive the write data signal from a sub-circuit. A target write data delay unit is all write data delay units located before the target tap interface in the sub-circuit.
[0071] Specifically, for each sub-circuit in the write data delay control circuit, the computer equipment can 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 equipment can obtain delay adjustment information for the sub-circuit on the host computer. The computer equipment can determine a target tap interface among each tap interface in the sub-circuit based on the delay adjustment information. As can be seen, the computer equipment can adjust the offset between the sub-sample signal corresponding to the sub-circuit and the sampling edge of the sampling signal by performing a delay process on the sub-sample signal corresponding to the sub-circuit through a target delay unit located in front of the target tap interface, so that the sub-sample signal corresponding to the sub-circuit and the sampling edge of the sampling signal in the memory are realigned.
[0072] In one embodiment, the computer device performing delay adjustment training for the sub-circuit based on the sub-sample signal corresponding to the sub-circuit may specifically mean that the computer device adjusts the sub-circuit on the host computer in a direction to increase the delay of the sub-sample signal corresponding to the sub-circuit, and adjusts the sub-circuit on the host computer in a direction to reduce the delay of the sub-sample signal corresponding to the sub-circuit, thereby completing the delay adjustment training for the sub-circuit and obtaining the delay adjustment information.
[0073] In one embodiment, the computer device can increase the delay of the sub-sample signal corresponding to the 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 can reduce the delay of the 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.
[0074] In the above embodiment, the delay adjustment information of each sub-circuit can be determined by performing single-circuit delay adjustment training for each corresponding sub-circuit according to the sub-sample signal corresponding to the sub-circuit, so that the target tap interface can be determined from each sub-circuit according to the delay adjustment information corresponding to each sub-circuit, and an initial sub-circuit can be obtained, thereby improving the training effect of the initial sub-circuit.
[0075] In one embodiment, for each subcircuit in the write data delay control circuit, the step of determining delay adjustment information for the subcircuit by performing single-circuit delay adjustment training on the subcircuit based on a subsample signal corresponding to the subcircuit includes the steps of: for each subcircuit in the write data delay control circuit, adjusting the subcircuit toward a direction increasing a delay of the subsample signal corresponding to the subcircuit in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on the sampling signal, 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 first adjustment information for the subcircuit; restoring the second state to the first state, adjusting the subcircuit toward a direction decreasing a 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; and determining delay adjustment information for the subcircuit based on the first adjustment information and the second adjustment information.
[0076] Here, the first state is a state in which the memory samples the sub-sample signal corresponding to the sub-circuit through a sampling signal. The second state is a state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through a sampling signal. The first adjustment information is adjustment information recorded during a process of increasing a delay of the sub-sample signal corresponding to the sub-circuit from a state in which the memory samples the sub-sample signal corresponding to the sub-circuit through a sampling signal to a state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit, i.e., when the sub-sample signal corresponding to the sub-circuit is in a critical state. The second adjustment information is adjustment information recorded during a process of reducing a delay of the sub-sample signal corresponding to the sub-circuit from a state in which the memory samples the sub-sample signal corresponding to the sub-circuit through a sampling signal to a state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit, i.e., when the sub-sample signal corresponding to the sub-circuit is in a critical state.
[0077] Specifically, for each sub-circuit in the write data delay control circuit, the computer device can send a sub-sample signal corresponding to the sub-circuit to the memory via the host computer, and sample the sub-sample signal corresponding to the sub-circuit through the sampling signal of the memory. In a first state in which the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal, the computer device can adjust the sub-circuit in a direction to increase the delay of the sub-sample signal corresponding to the sub-circuit, i.e., gradually increase the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted, and record the first adjustment information for the sub-circuit. and recovering the second state to the first state, i.e., recovering the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal to the first state in which the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal when training for the first time, adjusting the sub-circuit toward a direction to reduce the delay of the sub-sample signal corresponding to the sub-circuit, i.e., gradually reducing the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted, until the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal occurs again, and recording second adjustment information for the sub-circuit. Further, the computer device can determine delay adjustment information for the sub-circuit based on the recorded first adjustment information and the recorded second adjustment information.
[0078] In one embodiment, the computer device gradually increases or decreases the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted, specifically, the number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted may be gradually increased or decreased, and the number of write data delay units increased or decreased in each step may be at least 1. For example, one write data delay unit may be increased or decreased in one step, two write data delay units may be increased or decreased in one step, or even three write data delay units may be increased or decreased in one step.
[0079] In one embodiment, as shown in FIG. 16, 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 the delay adjustment training, in a first state where 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 computer in a direction to increase the delay of the sub-sample signal corresponding to the sub-circuit, i.e., reach the second stage of the delay adjustment training, and at this time, can immediately record the first adjustment information for the sub-circuit. Furthermore, the computer device can restore the second state to the first state, i.e., restore to the first stage of the delay adjustment training, and adjust the sub-circuit in a direction to reduce 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 through the sampling signal occurs again, i.e., reach the third stage of the delay adjustment training, and at this time, can immediately record the second adjustment information for the sub-circuit.
[0080] In the above embodiment, it is described that the memory can sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal before performing the delay adjustment, and the sampling edge of the sampling signal is still located within the data window of the sub-sample signal. At this time, the sub-circuit can be adjusted in a direction to increase the delay of the sub-sample signal corresponding to the sub-circuit, thereby increasing the delay of the sub-sample signal. If it occurs that the sub-sample signal is not sampled once during the process of increasing the delay, the first adjustment information representing 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 can be adjusted in a direction to reduce the delay of the sub-sample signal corresponding to the sub-circuit, thereby reducing the delay of the sub-sample signal. If it occurs that the sub-sample signal is not sampled once during the process of reducing the delay, the second adjustment information representing the critical state of the other side of the data window can be immediately recorded. The first adjustment information and the second adjustment information can determine exactly one clock cycle, so that the delay adjustment information for the sub-circuit can be accurately determined based on the first adjustment information and the second adjustment information.
[0081] In one embodiment, the subcircuit includes a first component circuit and a second component circuit, and the second component circuit is connected after the first component circuit. The first component circuit and the second component circuit each include a write data delay unit 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 already been transmitted and passed. For each subcircuit in the write data delay control circuit, in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on the sampling signal, the step of adjusting the subcircuit toward a direction of increasing a delay of the subsample signal corresponding to the subcircuit until a second state in which the memory does not sample the subsample signal corresponding to the subcircuit based on the sampling signal occurs, and acquiring the first adjustment information for the subcircuit includes a step of performing an initial delay control process by controlling the subsample signal corresponding to the subcircuit to pass through each write data delay unit in the first component circuit in sequence, and acquiring the subsample signal corresponding to the subcircuit after the initial control; and continuously controlling the sub-sample signals corresponding to the sub-circuits after the initial control to be transmitted one by one through the write data delay units in the second component circuit in a direction of increasing a delay of the sub-sample signals corresponding to the sub-circuits after the initial control until a second state occurs in which the memory has sampled the sub-sample signals corresponding to the sub-circuits based on the sampling signal from the corresponding tap interface of the second component circuit based on the sampling signal, and recording a first number of the write data delay units in the second component circuit through which the sub-sample signals corresponding to the sub-circuits have been transmitted.
[0082] Here, the first component circuit and the second component circuit are each a component circuit in a sub-circuit.
[0083] Specifically, for each subcircuit in the write data delay control circuit, the computer device can control the subsample signal corresponding to the subcircuit to pass through each write data delay unit in the first component circuit in sequence via the host computer, thereby performing an initial delay control process on the subsample signal corresponding to the subcircuit, and obtain a subsample signal corresponding to the subcircuit after the initial control. The computer device can sample the subsample signal corresponding to the subcircuit after the initial control through the sampling signal of the memory. In a first state in which the memory samples the subsample signal corresponding to the subcircuit after the initial control through the sampling signal, the computer device can continuously control the subsample signal corresponding to the subcircuit after the initial control to be transmitted one by one to pass through the write data delay units in the second component circuit in a direction to increase the delay of the subsample signal corresponding to the subcircuit after the initial control until a second state occurs in which the subsample signal corresponding to the subcircuit is not sampled from the corresponding tap interface of the second component circuit according to the sampling signal, and can record 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 and passed.
[0084] In the above embodiment, first, the first component circuit performs an initial delay control process on the sub-sampled signal corresponding to the sub-circuit, and obtains the sub-sampled signal corresponding to the sub-circuit after the initial control. At this time, the sub-sampled signal corresponding to the sub-circuit after the initial control may not be aligned with the sampling edge of the sampling signal. In the first state of sampling the sub-sampled signal corresponding to the sub-circuit after the initial control, until the second state of not sampling the sub-sampled signal corresponding to the sub-circuit from the corresponding tap interface of the second component circuit according to the sampling signal occurs, the sub-sampled signal corresponding to the sub-circuit after the initial control is continuously controlled to be transmitted one by one through the write data delay unit in the second component circuit in the direction of increasing the delay of the sub-sampled signal corresponding to the sub-circuit after the initial control, and the first number of the write data delay units in the second component circuit through which the sub-sampled signal corresponding to the sub-circuit has been transmitted and passed is immediately recorded. In this way, the first adjustment information accurately representing the critical state of one side of the data window of the sub-sampled signal corresponding to the sub-circuit can be recorded, thereby further improving the accuracy of the delay adjustment information obtained.
[0085] 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 transmitted and not passed, and the step of adjusting the sub-circuit toward a direction of reducing a delay of the sub-sample signal corresponding to the sub-circuit after the initial control in the first component circuit after the initial control, until the second state is restored to the first state and 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 obtaining the second adjustment information for the sub-circuit includes the steps of controlling to reduce by one the write data delay units in the first component circuit through which the sub-sample signal corresponding to the sub-circuit is transmitted and not passed through, after the initial control, in a direction of reducing a delay of the sub-sample signal corresponding to the sub-circuit after the initial control, until the second state is restored to the first state and 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 recording the second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted and not passed through.
[0086] Specifically, the computer apparatus can restore the second state to the first state, i.e., 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 can be restored 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 when training for the first time. Furthermore, the computer apparatus can control the write data delay units in the first component circuit through which the sub-sample signal corresponding to the sub-circuit after the initial control is transmitted and passed through to decrease one by one in a 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 memory does not sample the sub-sample signal corresponding to the sub-circuit is generated from the corresponding tap interface of the first component circuit based on the sampling signal, and the computer apparatus can record a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted and passed through.
[0087] In the above embodiment, until a second state occurs in which the sub-sampled signal corresponding to the sub-circuit is not sampled from the corresponding tap interface of the first component circuit according to the sampling signal, the write data delay units in the first component circuit through which the sub-sampled signal corresponding to the sub-circuit is transmitted after the initial control are controlled to be decreased one by one in the direction of reducing the delay of the sub-sampled signal corresponding to the sub-circuit after the initial control, and the second number of write data delay units through which the sub-sampled signal corresponding to the sub-circuit is transmitted and not passed 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-sampled signal corresponding to the sub-circuit can be recorded, thereby further improving the accuracy of the delay adjustment information obtained.
[0088] In one embodiment, determining delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information includes determining delay adjustment information for the sub-circuit based on an average value of the first quantity and the second quantity.
[0089] Specifically, the computer device may calculate an average value of the first quantity and the second quantity, and calculate and obtain the delay adjustment information for the sub-circuit based on the average value of the first quantity and the second quantity.
[0090] In one embodiment, the computing device may calculate and obtain an average value of the first quantity and the second quantity as the delay adjustment information for the direct sub-circuit.
[0091] In the above embodiment, the delay adjustment information is determined by the average value of the first quantity and the second quantity, thereby further improving the accuracy of the delay adjustment information.
[0092] In one embodiment, as shown in FIG. 17, each sub-circuit of the write data delay control circuit includes a step size counter, which can be used to record a first number of write data delay units in the second component circuit through which the write data signal has been transmitted and passed, and to record a second number of write data delay units through which the write data signal has not been transmitted and passed.
[0093] In one embodiment, for each subcircuit in the write data delay control circuit, before the step of adjusting the subcircuit toward a direction of increasing a delay of the subsample signal corresponding to the subcircuit in a first state in which the memory has sampled the subsample signal corresponding to the subcircuit based on the sampling signal, the method further includes a step of performing a frequency reduction adjustment process on the current operating frequency of the memory to obtain a reduced target operating frequency in a second state in which the memory has not sampled the subsample signal corresponding to the subcircuit based on the sampling signal, where the target operating frequency is an operating frequency that causes the memory to sample the subsample signal corresponding to the subcircuit based on the sampling signal, and a step of causing the memory to sample the subsample signal corresponding to the subcircuit based on the sampling signal in the memory operating on the target operating frequency.
[0094] Here, the current operating frequency is the current operating frequency of the memory, i.e., the operating frequency of the memory when the memory is not sampling the sub-sample signal corresponding to the sub-circuit through the sampling signal, and the target operating frequency is the frequency obtained after performing a frequency down-adjustment process on the current operating frequency.
[0095] 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 via the host computer, and sample the sub-sample signal corresponding to the sub-circuit through the sampling signal of the memory. In the second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal, the current operating frequency of the memory is too high, which causes the sub-sample signal corresponding to the sub-circuit to remain high for a relatively short time, thereby causing the memory to be unable to sample the sub-sample signal corresponding to the sub-circuit through the sampling signal. At this time, the computer device can perform a frequency reduction adjustment process on the current operating frequency of the memory to obtain a reduced target operating frequency. As can be seen, by reducing the operating frequency of the memory, the time that the sub-sample signal corresponding to the sub-circuit remains high can be extended, and the memory operating on the target operating frequency can smoothly 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 operating on the target operating frequency, so that the memory can sample the sub-sample signal corresponding to the sub-circuit. Then, in a first state in which the memory samples the sub-sample signal corresponding to the sub-circuit through the sampling signal, the above step and subsequent steps are performed to adjust the sub-circuit in a direction to increase the delay of the sub-sample signal corresponding to the sub-circuit.
[0096] In the above embodiment, after the memory receives the sub-sample signal corresponding to the sub-circuit sent by the host computer, if the memory does not sample the sub-sample signal corresponding to the sub-circuit through the sampling signal, it means that the sampling edge of the sampling signal is out of the data window in which 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 is high, and the sampling signal of the memory can sample the sub-sample signal corresponding to the sub-circuit, thereby improving the success rate of the delay adjustment training.
[0097] In one embodiment, after the step of performing delay adjustment training for a write data delay control circuit installed on a host computer based on a sample write data signal and obtaining a trained write data delay control circuit, the delay control method for the write data signal further includes a step of triggering the delay adjustment training to be performed again by executing, through hardware control, the host computer to set a register mode for a register circuit in a memory, and periodically triggering the step of obtaining a training register used for caching data by a timer.
[0098] Specifically, the computer device is provided with a timer, and the computer device executes, through hardware control, the setting of a register mode for a register circuit in the memory by the host computer, and periodically triggers the step of acquiring a training register used for caching data by the timer, thereby triggering the re-execution of the delay adjustment training. As can be understood, the computer device can measure time by the timer, and can trigger the re-execution of the delay adjustment training once every preset time length interval by hardware control.
[0099] To illustrate, the computing device can be timed by a timer and can trigger the delay adjustment training to be performed again once every 24-hour interval by hardware control.
[0100] In the above embodiment, the write data delay control circuit is periodically triggered by a timer to perform periodic re-training through hardware control, thereby ensuring that the write data signal does not offset from the sampling edge of the sampling signal during the operation of the computer equipment, and further improving the operational stability of the memory command.
[0101] In one embodiment, after the step of performing delay adjustment training for a write data delay control circuit installed on a host computer based on a sample write data signal and obtaining a trained write data delay control circuit, the method further includes a step of monitoring a system operation state of a high-bandwidth internal storage system, the high-bandwidth internal storage system including a host computer and a memory, and if the system operation state is in a non-busy state, a step of triggering, by software control, to perform delay adjustment training again by again executing the step of setting an operation mode for a register circuit in the memory by the host computer and obtaining a training register used for caching data.
[0102] Specifically, the computer device is equipped with a high-bandwidth internal storage system, and the computer device can monitor the operation state of the high-bandwidth internal storage system. If the system operation state of the high-bandwidth internal storage system is monitored to be in a non-busy state, the computer device can trigger, under software control, to perform delay adjustment training again by setting an operation mode for a register circuit in a memory by a host computer and performing again a step of acquiring a training register used for caching data. If the system operation state of the high-bandwidth internal storage system is monitored to be in a busy state, the computer device can temporarily not perform delay adjustment training under software control, and perform delay adjustment training when the system operation state of the high-bandwidth internal storage system is next monitored to be in a non-busy state.
[0103] In the above embodiment, when the high-bandwidth internal storage system is not busy, the write data delay control circuit can be selected to be retrained by using software control, so that the write data signal does not offset from the sampling edge of the sampling signal during the operation of the computer device, and the operation stability of the memory instruction can be further improved. At the same time, when the high-bandwidth internal storage system is not busy, the write data delay control circuit can be retrained to ensure the operation efficiency of the entire high-bandwidth internal storage system.
[0104] In one embodiment, as shown in FIG. 18, a high-bandwidth internal storage system is operated in a computer device, and the high-bandwidth internal storage system includes a host computer and a memory. The host computer includes a setting unit, a write command sending unit, a write data delay control circuit, a read command sending unit, a read data receiving unit, a comparison unit, and a write data training unit. The memory includes a write command analysis unit, a write data receiving unit, a read command analysis unit, a read data sending unit, and a register circuit. The computer device sets the memory circuit to operate in a readable / writable mode by setting an operation mode for the register circuit in the memory by the setting unit, and obtains a training register. The host computer can send a write command to the memory, and the memory can analyze the write command by the write command analysis unit. After the analysis of the write command is completed, the host computer can send a sampled write data signal to the memory, and the memory can receive the sampled write data signal by the write receiving unit. Furthermore, the memory can sample the sampled write data signal through the sampling signal, and write the sampled and obtained sampled write data signal into the training register. The host computer can send a read command to the memory through the read command sending unit, and the memory can analyze the read command through the read command analyzing unit. After the analysis of the read command is completed, the memory can read the sampled write data signal from the training register and send the sampled write data signal to the host computer through the read sending unit. The host computer can receive the sampled write data signal through the read data receiving unit and transfer the sampled write data signal to the comparison unit. The host computer can compare the sampled write data signal with the sampled write data signal through the comparison unit.If the sampled write data signal read by the host computer from the training register does not match the sampled write data signal, the computer device can perform delay adjustment training for the write data delay control circuit installed on the host computer according to the sampled write data signal, and obtain a trained write data delay control circuit. Furthermore, in practical application scenarios, the computer device can perform signal offset adjustment for the input write data signal by the trained write data delay control circuit, obtain a target write data signal that is aligned with the sampling edge of the sampling signal, and write the target write data signal in memory.
[0105] As shown in Fig. 19, in one embodiment, a method for controlling delay of a write data signal is provided, which can be applied to a computer device. The computer device may be a terminal or a server, and may be independently executed by the terminal or the server itself, or may be realized by the interaction between the terminal and the server. The method specifically includes the following steps 1902 to 1922.
[0106] Step 1902: A host computer sets a value of a mode register in the memory to a target value. The mode register is a register used for setting an operation mode of the register circuit, and the target value is a value corresponding to a readable / writable mode supported by the register circuit. A write data delay control circuit is provided on the host computer, and the write data delay control circuit includes a plurality of sub-circuits. Each sub-circuit is used for controlling a delay of one sub-sample signal, and the sub-circuit includes write data delay units connected in sequence, and each write data delay unit is followed by a tap interface, and the tap interface supports deriving a signal from the sub-circuit.
[0107] Step 1904: The register circuit is controlled to operate in a read / write mode through the target value, and a training register supporting read / write is obtained.
[0108] Step 1906: Send a sampled write data signal by the host computer to the memory, where the sampled write data signal includes a plurality of sub-sample signals.
[0109] Step 1908: sample a sampled write data signal according to the sampling signal through the memory, and cache the sampled sampled write data signal in a training register, where the sampled write data signal includes a plurality of sub-sample signals and a plurality of sub-sampling signals respectively corresponding thereto.
[0110] Step 1910: If the sampled write data signal read by the host computer from the training register does not match the sampled write data signal, for each sub-circuit in the write data delay control circuit, in a first state in which the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal, the sub-circuit is adjusted in a direction to increase 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 first adjustment information for the sub-circuit is obtained.
[0111] Step 1912: Restore the second state to the first state, and adjust the sub-circuit toward a direction that reduces the delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs in which the memory is not sampling the sub-sample signal corresponding to the sub-circuit based on the sampling signal, and obtain second adjustment information for the sub-circuit.
[0112] Step 1914: Determine delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information.
[0113] Step 1916: determine a target tap interface from among the sub-circuits according to the delay adjustment information, and obtain a trained initial sub-circuit, where 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, and obtain a signal that is aligned with the sampling edge of the sampling signal, and the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with the sampling edge of the sampling signal.
[0114] Step 1918: If the host computer cannot read multiple sub-sampling signals from the training register at one time, gradually adjust the initial sub-circuit to be trained for step-up in the direction of increasing or decreasing the delay of the target sub-sampling signal according to the initial adjustment information of the initial sub-circuit to be trained for step-up until the host computer can read multiple sub-sampling signals from the training register at one time, to obtain a trained write data delay control circuit. Here, the target sub-sampling signal is a sub-sampling signal corresponding to the initial sub-circuit to be trained for step-up, and the initial sub-circuit to be trained for step-up is an initial sub-circuit corresponding to the sub-sampling signal that has not been read. The initial adjustment information of the initial sub-circuit to be trained for step-up is adjustment information used in the process of obtaining an initial sub-circuit by delay adjustment training of a single circuit, and the trained write data delay control circuit includes multiple trained target sub-circuits. After the signal offset adjustment is respectively performed by each target sub-circuit, each sub-sampling signal is aligned with the same sampling edge of the sampling signal.
[0115] Step 1920: If the host computer can read multiple sub-sampled signals from the training register at one time, obtain a trained write data delay control circuit with each initial sub-circuit as each target sub-circuit.
[0116] Step 1922: The trained write data delay control circuit performs signal offset adjustment on the input write data signal to obtain a target write data signal that is aligned with the sampling edge of the sampling signal. The target write data signal is used to write in the memory.
[0117] The present application further provides an application scenario, which applies the above-mentioned write data signal delay control method. Specifically, a computer device is provided with a high-bandwidth internal storage system, which includes a host computer and a dynamic random access memory, and the write data signal delay control method can be applied to a write data signal delay control scenario when the high-bandwidth internal storage system is in an operating state. The computer device can set a value of a mode register in the dynamic random access memory to a target value by the host computer. The mode register is a register used to set the operating mode of the register circuit. The target value is a value corresponding to the readable / writable mode supported by the register circuit. A write data delay control circuit is installed on the host computer, and the write data delay control circuit includes a plurality of sub-circuits, and each sub-circuit is used to control the delay of one sub-sample signal. The sub-circuits include write data delay units connected in sequence, and each write data delay unit is followed by a tap interface. The tap interface supports deriving a signal from the sub-circuit. The register circuit is controlled to operate in a readable / writable mode through the target value, and a training register supporting read / write is obtained. A sample write data signal is sent by the host computer to the dynamic random access memory, where the sample write data signal includes a plurality of the sub-sample signals.
[0118] The computer device can sample the sampled write data signal according to the sampling signal through the dynamic random access memory, and cache the sampled and obtained sampled write data signal in a training register, the sampled write data signal including a plurality of sub-sample signals and a plurality of sub-sampling signals respectively corresponding thereto. If the sampled write data signal read by the host computer from the training register does not match the sampled write data signal, for each sub-circuit in the write data delay control circuit, in a first state where the dynamic random access memory samples the sub-sample signal corresponding to the sub-circuit according to the sampling signal, adjust the sub-circuit toward a direction of increasing a delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs where the dynamic random access memory does not sample the sub-sample signal corresponding to the sub-circuit according to the sampling signal, and obtain a first adjustment information for the sub-circuit. The second state is restored to the first state, and the sub-circuit is adjusted toward a direction of decreasing a delay of the sub-sample signal corresponding to the sub-circuit until a second state occurs where the dynamic random access memory does not sample the sub-sample signal corresponding to the sub-circuit according to the sampling signal, and obtain a second adjustment information for the sub-circuit. Based on the first adjustment information and the second adjustment information, a delay adjustment information for the sub-circuit is determined. According to the delay adjustment information, a target tap interface is determined from the sub-circuit, and a trained initial sub-circuit is obtained, where 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, and obtain a signal that is aligned with the sampling edge of the sampling signal, and the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with the sampling edge of the sampling signal.
[0119] If the host computer cannot read multiple sub-sampling signals from the training register at one time, the computer device can gradually adjust the initial sub-circuit to be trained in the step-up training in a direction to increase or decrease the delay of the target sub-sampling signal according to the initial adjustment information of the initial sub-circuit to be trained in the step-up training until the host computer can read multiple sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit. Here, the target sub-sampling signal is a sub-sampling signal corresponding to the initial sub-circuit to be trained in the step-up training, and the initial sub-circuit to be trained in the step-up training is an initial sub-circuit corresponding to the sub-sampling signal that has not been read. The initial adjustment information of the initial sub-circuit to be trained in the step-up training is adjustment information used in the process of obtaining the initial sub-circuit by the delay adjustment training of a single circuit, and the trained write data delay control circuit includes multiple trained target sub-circuits. After the signal offset adjustment is respectively performed by each target sub-circuit, each sub-sampling signal is aligned with the same sampling edge of the sampling signal. If the host computer can read multiple sub-sampling signals from the training register at one time, each initial sub-circuit is taken as each target sub-circuit to obtain a trained write data delay control circuit.
[0120] 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, which is used for writing in the dynamic random access memory.
[0121] The present application further provides another application scenario, which applies the above-mentioned write data signal delay control method. Specifically, a computer device is equipped with a high-bandwidth internal storage system, which includes a host computer and a memory, and the write data signal delay control method can be applied to the scenario of write data signal delay control when the high-bandwidth internal storage system is in a non-operating state. The write data signal delay control method of the present application can perform delay adjustment training for the write data delay control circuit in the high-bandwidth internal storage system in the non-operating state, and ensure that the data written to the memory in the subsequent operating state of the high-bandwidth internal storage system is correct, thereby improving the operating stability of the memory.
[0122] As should be understood, although each step in the flowcharts of the above embodiments is displayed in sequence, these steps are not necessarily executed in sequence. Unless explicitly described in this specification, there is no strict order restriction on the execution of these steps, and these steps may be executed in other orders. In addition, at least some of the steps in the above embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. In addition, the execution order of these sub-steps or stages is not necessarily performed in sequence, and they may be executed in place of or alternately with other steps, or at least some of the sub-steps or stages of other steps.
[0123] In one embodiment, as shown in Fig. 20, a delay control device 2000 for a write data signal is provided. The device may adopt a software module or a hardware module, or a combination of both may be used as a part of a computer device. The device specifically includes a setting module 2002, a sending module 2004, a sampling module 2006, a training module 2008, and an adjustment module 2010.
[0124] The setting module 2002 is used to set the operating mode for the register circuit in the memory by the host computer and obtain the training register that supports read and write.
[0125] The sending module 2004 is used for sending the sample write data signal to the memory by the host computer.
[0126] The sampling module 2006 is used for sampling a sampled write data signal according to the sampling signal through a memory, and caching the sampled write data signal obtained by sampling in a training register.
[0127] The training module 2008 is used to perform delay adjustment training for the write data delay control circuit installed on the host computer based on the sampled write data signal if the sampled write data signal read from the training register by the host computer does not match the sampled write data signal, and obtain a trained write data delay control circuit.
[0128] The adjustment module 2010 is used to perform signal offset adjustment on the write data signal input by the trained write data delay control circuit, and obtain a target write data signal that is aligned with the sampling edge of the sampling signal, and the target write data signal is used to write in the memory.
[0129] In one embodiment, the setting module 2002 is further used to set a value of a mode register in the memory to a target value by the host computer, where the mode register is a register used for setting an operating mode of the register circuit, and the target value is a value corresponding to a readable / writable mode supported by the register circuit, and to control the register circuit to operate in the readable / writable mode through the target value, and to obtain a training register supporting read / write.
[0130] In one embodiment, the sample write data signal includes a plurality of sub-sample signals. The write data delay control circuit installed on the host computer includes a plurality of sub-circuits, each sub-circuit is used to control the delay of a sub-sample signal. The training module 2008 is further used for: for each sub-circuit in the write data delay control circuit, performing single-circuit delay adjustment training for the sub-circuit based on the sub-sample signal corresponding to the sub-circuit to obtain a trained initial sub-circuit, where the sub-sample signal after the signal offset adjustment by the initial sub-circuit is aligned with the sampling edge of the sampling signal; and performing multi-circuit delay adjustment training for each initial sub-circuit based on the plurality of sub-sample signals to obtain a trained write data delay control circuit, where the trained write data delay control circuit includes a plurality of trained target sub-circuits, where each sub-sample signal after the signal offset adjustment by each target sub-circuit is aligned with the same sampling edge of the sampling signal.
[0131] In one embodiment, the sampled write data signal includes a plurality of sub-sampled signals and a plurality of sub-sampling signals respectively corresponding thereto, and the training module 2008 is further used for, if the host computer cannot read the plurality of sub-sampling signals from the training register at one time, continuously performing delay adjustment training on the initial sub-circuit to be step-up trained based on the initial adjustment information of the initial sub-circuit to be step-up trained until the host computer can read the plurality of sub-sampling signals from the training register at one time, to obtain a trained write data delay control circuit, where the initial sub-circuit to be step-up trained is the initial sub-circuit corresponding to the sub-sampled signal that has not been read, and the initial adjustment information of the initial sub-circuit to be step-up trained is the adjustment information used in the process of obtaining the initial sub-circuit by the delay adjustment training of a single circuit.
[0132] In one embodiment, the training module 2008 is further used for gradually adjusting the initial sub-circuit to be step-up trained in a direction to increase or decrease the delay of the target sub-sample signal according to the initial adjustment information of the initial sub-circuit to be step-up trained, until the host computer can read multiple sub-sampling signals from the training register at one time, to obtain a trained write data delay control circuit, where the target sub-sample signal is the sub-sample signal corresponding to the initial sub-circuit to be step-up trained.
[0133] In one embodiment, the training module 2008 is further used to obtain a trained write data delay control circuit with each initial sub-circuit as each target sub-circuit if the host computer can read multiple sub-sampling signals from the training register at one time.
[0134] In one embodiment, the sub-circuit includes write data delay units connected in series, and each write data delay unit is followed by a tap interface. The tap interface supports deriving a signal from the sub-circuit, and the initial sub-circuit is a circuit whose target tap interface has already been determined. The training module 2008 is further used for determining delay adjustment information for each sub-circuit in the write data delay control circuit by performing single-circuit delay adjustment training for the sub-circuit based on a sub-sample signal corresponding to the sub-circuit, and determining a target tap interface from the sub-circuit based on the delay adjustment information, where the target write data delay unit before the target tap interface is used to perform signal offset adjustment for 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.
[0135] In one embodiment, the training module 2008 is further used for, for each subcircuit in the write data delay control circuit, adjusting the subcircuit in a direction to increase a delay of the subsample signal corresponding to the subcircuit in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on the sampling signal, 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 first adjustment information for the subcircuit; restoring the second state to the first state, adjusting the subcircuit in a direction to decrease a 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; and determining delay adjustment information for the subcircuit based on the first adjustment information and the second adjustment information.
[0136] In one embodiment, the sub-circuit 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 include write data delay units connected in sequence, respectively, the first adjustment information includes a first number of write data delay units in the second component circuit through which the sub-sample signal corresponding to the sub-circuit has been transmitted and passed, the training module 2008 further controls the sub-sample signal corresponding to the sub-circuit to pass through each write data delay unit in the first component circuit in sequence, thereby performing an initial delay control process, obtaining the sub-sample signal corresponding to the sub-circuit after the initial control, and the memory samples. In a first state in which the memory samples the sub-sample signal corresponding to the sub-circuit based on the signal, 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 second component circuit based on the sampling signal, continuously control the sub-sample signal corresponding to the sub-circuit after the initial control to be transmitted one by one to pass through the write data delay units in the second component circuit in a direction of increasing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, and record a first number of write data delay units in the second component circuit through which the sub-sample signal corresponding to the sub-circuit has been transmitted and passed.
[0137] 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 transmitted and not passed. The training module 2008 is further used for controlling the write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted and not passed in the first component circuit after the initial control to be decreased one by one in a direction of decreasing the delay of the sub-sample signal corresponding to the sub-circuit after the initial control, 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 according to the sampling signal.
[0138] In one embodiment, the training module 2008 is further used for: performing a frequency reduction adjustment process on the current operating frequency of the memory in a second state in which the memory is not sampling the sub-sample signal corresponding to the sub-circuit based on the sampling signal, to obtain a reduced target operating frequency, where the target operating frequency is an operating frequency that causes the memory to sample the sub-sample signal corresponding to the sub-circuit based on the sampling signal; and sampling the sub-sample signal corresponding to the sub-circuit based on the sampling signal in the memory operating on the target operating frequency, so that the memory samples the sub-sample signal corresponding to the sub-circuit based on the sampling signal.
[0139] In one embodiment, the training module 2008 is further used for monitoring a system operating state of a high bandwidth internal storage system, the high bandwidth internal storage system including a host computer and a memory, and if the system operating state is in a non-busy state, triggering delay adjustment training again by notifying the setting module 2002, via software control, to again perform the steps of setting an operating mode to a register circuit in the memory by the host computer and acquiring a training register used for caching data.
[0140] In one embodiment, the sending module 2004 is further used for sending a sample write data signal and a write data selection pulse signal that matches the sample write data signal to the memory by the host computer. The sampling module 2006 is further used for taking the write data selection pulse signal received by the memory as a sampling signal, sampling the sample write data signal according to the sampling signal through the memory, and caching the sampled write data signal obtained by sampling in a training register.
[0141] In one embodiment, the sampling edge of the sampling signal includes a rising edge of the sampling signal, and the sampling module 2006 is further used for sampling the sample write data signal according to the rising edge of the sampling signal through the memory. The adjustment module 2010 is further used for performing signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with the rising edge of the sampling signal.
[0142] In one embodiment, the sampling edge of the sampling signal includes a falling edge of the sampling signal. The sampling module 2006 is further used for sampling the sample write data signal according to the falling edge of the sampling signal through the memory. The adjustment module 2010 is further used for performing signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with the falling edge of the sampling signal.
[0143] The above-mentioned write data signal delay control device sets the operation mode for the register circuit in the memory by the host computer, obtains a training register supporting read and write, transmits a sampled write data signal to the memory by the host computer, samples the sampled write data signal according to the sampling signal through the memory, caches the sampled and obtained sampled write data signal in the training register, and compares the sampled write data signal with the sampled write data signal transmitted from the host computer. If the sampled write data signal read from the training register by the host computer does not match the sampled write data signal, it means that an offset occurs between the sampled write data signal transmitted from the host computer and the sampling signal in the memory. At this time, the delay adjustment training can be performed for the write data delay control circuit installed on the host computer according to the sampled write data signal, and a trained write data delay control circuit can be obtained. Furthermore, in the actual application process, the trained write data delay control circuit can perform signal offset adjustment for the input write data signal, and transmit the adjusted target write data signal to the memory. In this way, by aligning the target write data signal received by the memory with the sampling edge of the memory's sampling signal, the memory can correctly sample the write data signal sent from the host computer, and by ensuring that the data written to the memory is correct, the operational stability of the memory can be improved.
[0144] Each module in the write data signal delay control device can be realized in whole or in part by software, hardware, or a combination thereof. Each module may be integrated in a processor in a computer device in a hardware form, or may be independent, and may be stored in a memory in a computer device in a software form, so that the processor can easily call and execute the operations corresponding to each module.
[0145] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram can be shown in FIG. 21. The computer device includes a processor, a memory, an input / output interface (abbreviated as Input / Output, I / O), and a communication interface. Here, the processor, the memory, and the input / output interface are connected by a system bus, and the communication interface is connected to the system bus by the input / output interface. Here, the processor of the computer device is used to provide calculation 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, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and the computer-readable instructions 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-readable instructions are executed by the processor, they realize a method for delay control of a write data signal.
[0146] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram can be shown in FIG. 22. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Wherein, the processor, the memory, and the input / output interface are connected by a system bus, and the communication interface, the display unit, and the input device are connected to the system bus by the input / output interface. Wherein, the processor of the computer device is used to provide calculation 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 computer-readable instructions. The internal memory provides an environment for the operation of the operating system and the computer-readable instructions 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 for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, mobile cellular network, NFC (near field communication), or other technologies. When the computer readable instructions are executed by a processor, they realize a delay control method for a write data signal. The display unit of the computer device is used for forming a visually visible screen, and can be a display screen, a projection device, or a virtual reality image forming device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, a button, a trackball, or a touch control pad installed on the housing of the computer device, or an external keyboard, a touch control pad, a mouse, etc.
[0147] As can be understood by those skilled in the art, the structures shown in Figures 21 and 22 are merely block diagrams of partial structures related to the means of the present application, and do not limit the computer device to which the means of the present application is applied. A specific computer device may include more or less components than those shown in the figures, combine some components, or have a different component layout.
[0148] In one embodiment, a computing device is further provided, comprising a memory and one or more processors, wherein computer readable instructions are stored in the memory, and the one or more processors, when executing the computer readable instructions, implement the steps of each of the method embodiments described above.
[0149] In one embodiment, one or more computer-readable storage media are provided having computer-readable instructions stored thereon that, when executed by one or more processors, implement the steps of each of the method embodiments described above.
[0150] In one embodiment, a computer program product is provided, comprising computer readable instructions that, when executed by one or more processors, implement the steps of each of the method embodiments described above.
[0151] As should be understood, all user information (including but not limited to user device information and user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data, etc.) related to this application are information and data authorized through the user or sufficiently authorized through each party, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0152] As can be understood by those skilled in the art, the implementation of all or part of the process in the method of the above embodiment can be completed by issuing instructions to relevant hardware by computer readable instructions. The computer readable instructions can be stored in a non-volatile readable storage medium, and when the computer readable instructions are executed, the process of each of the above embodiment of the method can be included. Here, any reference to memory, storage, database, or other medium used in each embodiment provided in the present 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, optical memory, etc. Volatile memory can include Random Access Memory (RAM) or external high-speed cache memory. By way of explanation and not limitation, RAM can be of several types, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), etc.
[0153] Although each technical feature of the above embodiments can be combined in any combination, in order to simplify the description, all possible combinations of each technical feature in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should all be considered to be within the scope of the matters described in this specification.
[0154] The above examples merely embody some embodiments of the present application, and the descriptions are relatively specific and detailed, and therefore cannot be understood as limiting the scope of the invention. It should be noted that, as far as a person skilled in the art is concerned, various modifications and improvements can be made without departing from the concept of the present application, and all of these fall within the scope of protection of the present application. Therefore, the scope of protection of the present application should be determined based on the scope of the attached claims.
Claims
1. 1. A method for controlling a delay of a write data signal, the method being executed by a computer device, the method comprising: setting an operation mode for a register circuit in the memory by a host computer, and acquiring a training register that supports read and write; sending a sample write data signal by the host computer to the memory; sampling the sampled write data signal based on a sampling signal through the memory, and caching the sampled write data signal obtained by sampling in the training register; if the sampling write data signal read by the host computer from the training register does not match the sample write data signal, a delay adjustment training is performed on a write data delay control circuit installed on the host computer based on the sample write data signal to obtain a trained write data delay control circuit; a step of performing a signal offset adjustment on the write data signal input by the trained write data delay control circuit to obtain a target write data signal that is aligned with a sampling edge of a sampling signal, the target write data signal being used for writing in the memory.
2. The step of setting an operation mode for a register circuit in the memory by a host computer and acquiring a training register supporting read / write includes: setting a value of a mode register in a memory to a target value by a host computer, the mode register being a register used for setting an operation mode of the register circuit, the target value being a value corresponding to a readable / writable mode supported by the register circuit; 2. The method of claim 1, further comprising the step of: controlling the register circuit to operate in a read / write mode through the target value to obtain a training register that supports reads and writes.
3. the sampled write data signal includes a plurality of sub-sample signals, and the write data delay control circuit installed on the host computer includes a plurality of sub-circuits, each sub-circuit being used to control the delay of one of the sub-sample signals; a step of performing delay adjustment training on a write data delay control circuit installed on the host computer based on the sample write data signal, and acquiring a trained write data delay control circuit; For each subcircuit in the write data delay control circuit, a step of performing delay adjustment training of a single circuit for the subcircuit based on a subsample signal corresponding to the subcircuit to obtain a trained initial subcircuit, in which the subsample signal after the signal offset adjustment by the initial subcircuit is aligned with a sampling edge of a sampling signal; 2. The method of claim 1, further comprising: a step of performing multi-circuit delay adjustment training for each of the initial sub-circuits based on the plurality of sub-sample signals to obtain a trained write data delay control circuit, the trained write data delay control circuit including a plurality of trained target sub-circuits, and each sub-sample signal after signal offset adjustment by each of the target sub-circuits is aligned with the same sampling edge of a sampling signal.
4. the sampling write data signal includes a plurality of sub-sampling signals respectively corresponding to the plurality of sub-sampling signals; The step of performing multi-circuit delay adjustment training for each of the initial sub-circuits based on the plurality of sub-sample signals to obtain a trained write data delay control circuit includes: if the host computer cannot read the sub-sampling signals from the training register at one time, continuously performing delay adjustment training on the initial sub-circuit that is a step-up training target based on initial adjustment information of the initial sub-circuit that is a step-up training target until the host computer can read the sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit; The method according to claim 3, characterized in that the initial sub-circuit to be subjected to step-up training is an initial sub-circuit corresponding to an unread sub-sample signal, and the initial adjustment information of the initial sub-circuit to be subjected to step-up training is adjustment information used in the process of acquiring the initial sub-circuit by delay adjustment training of a single circuit.
5. a step of continuously performing delay adjustment training on an initial sub-circuit that is a step-up training target based on initial adjustment information of the initial sub-circuit that is a step-up training target until the host computer can read the plurality of sub-sampling signals from the training register at one time, and acquiring a trained write data delay control circuit; gradually adjusting the initial sub-circuit to be subjected to step-up training in a direction to increase or decrease the delay of the target sub-sample signal based on initial adjustment information of the initial sub-circuit to be subjected to step-up training until the host computer can read the plurality of sub-sampling signals from the training register at one time, thereby obtaining a trained write data delay control circuit; 5. The method of claim 4, wherein the target sub-sample signal is a sub-sample signal corresponding to an initial sub-circuit to be step-up trained.
6. The method comprises:
5. The method of claim 4, further comprising the step of: if the host computer can read the plurality of sub-sampling signals from the training register at one time, obtaining a trained write data delay control circuit with each of the initial sub-circuits as each of the target sub-circuits.
7. The sub-circuit includes write data delay units connected in series, and a tap interface is connected behind each write data delay unit, and the tap interface supports deriving a signal from within the sub-circuit; the initial sub-circuit is a circuit in which a target tap interface has already been determined; The step of performing single circuit delay adjustment training for each subcircuit in the write data delay control circuit based on a subsample signal corresponding to the subcircuit to obtain a trained initial subcircuit includes: determining delay adjustment information for each subcircuit in the write data delay control circuit by performing single circuit delay adjustment training for the subcircuit based on a subsample signal corresponding to the subcircuit; 4. The method of claim 3, further comprising: determining a target tap interface from among the sub-circuits based on the delay adjustment information, 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, and obtain a signal aligned with the sampling edge of a sampling signal.
8. determining delay adjustment information for each subcircuit in the write data delay control circuit by performing single circuit delay adjustment training for the subcircuit based on a subsample signal corresponding to the subcircuit, adjusting each subcircuit in the write data delay control circuit in a direction to increase a 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 a sampling signal in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on a sampling signal, thereby acquiring first adjustment information for the subcircuit; restoring the second state to the first state, adjusting the subcircuit toward a direction that reduces a delay of the subsample signal corresponding to the subcircuit until a second state occurs in which the memory is not sampling the subsample signal corresponding to the subcircuit based on a sampling signal, and acquiring second adjustment information for the subcircuit; and determining delay adjustment information for the sub-circuit based on the first adjustment information and the second adjustment information.
9. The sub-circuit includes a first configuration circuit and a second configuration circuit, the second configuration circuit is connected after the first configuration circuit, the first configuration circuit and the second configuration circuit each include a write data delay unit connected in series, and the first adjustment information includes a first number of write data delay units in the second configuration circuit through which the sub-sample signal corresponding to the sub-circuit has been transmitted and passed; a step of adjusting each subcircuit in the write data delay control circuit in a direction to increase a 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 a sampling signal in a first state in which the memory samples the subsample signal corresponding to the subcircuit based on a sampling signal, and acquiring first adjustment information for the subcircuit; performing an initial delay control process by controlling a sub-sample signal corresponding to the sub-circuit to pass through each write data delay unit in the first configuration circuit in sequence, and obtaining a sub-sample signal corresponding to the sub-circuit after the initial control; 9. The method of claim 8, further comprising: continuously controlling the sub-sample signal corresponding to the sub-circuit after the initial control to be transmitted one by one through write data delay units in the second component circuit in a direction of increasing a delay of the sub-sample signal corresponding to the sub-circuit after the initial control until a second state occurs in which the memory has sampled the sub-sample signal corresponding to the sub-circuit based on a sampling signal from a corresponding tap interface of the second component circuit based on the sampling signal; and recording a first number of write data delay units in the second component circuit through which the sub-sample signal corresponding to the sub-circuit has been transmitted.
10. the second adjustment information includes a second number of write data delay units through which the sub-sampled signal corresponding to the sub-circuit is not transmitted and passed; restoring the second state to the first state, adjusting the subcircuit toward a direction that reduces a delay of the subsample signal corresponding to the subcircuit until a second state occurs in which the memory is not sampling the subsample signal corresponding to the subcircuit based on a sampling signal, and acquiring second adjustment information for the subcircuit; 10. The method of claim 9, further comprising: controlling to decrease, by one, a number of write data delay units in the first component circuit through which the sub-sample signal corresponding to the sub-circuit is transmitted and passed after the initial control in a direction of reducing a delay of the sub-sample signal corresponding to the sub-circuit after the initial control, until a second state occurs in which the memory does not sample the sub-sample signal corresponding to the sub-circuit from a corresponding tap interface of the first component circuit based on a sampling signal, and recording a second number of write data delay units through which the sub-sample signal corresponding to the sub-circuit is transmitted and not passed.
11. For each subcircuit in the write data delay control circuit, in a first state in which the memory samples a subsample signal corresponding to the subcircuit based on a sampling signal, before the step of adjusting the subcircuit in a direction to increase a delay of the subsample signal corresponding to the subcircuit, the method includes: In a second state in which the memory does not sample the sub-sample signal corresponding to the sub-circuit based on a sampling signal, performing a frequency reduction adjustment process on a current operating frequency of the memory to obtain a reduced target operating frequency, the target operating frequency being an operating frequency that causes the memory to sample the sub-sample signal corresponding to the sub-circuit based on a sampling signal; 9. The method of claim 8, further comprising: sampling the sub-sample signal corresponding to the sub-circuit based on a sampling signal in a memory operating at the target operating frequency, such that the memory samples the sub-sample signal corresponding to the sub-circuit based on a sampling signal.
12. After the step of performing delay adjustment training on a write data delay control circuit installed on the host computer based on the sample write data signal and obtaining a trained write data delay control circuit, the method further comprises: monitoring a system operation state of a high bandwidth internal storage system, the high bandwidth internal storage system including the host computer and the memory; The method according to any one of claims 1 to 11, further comprising the step of triggering, under software control, if the system operating state is in a non-busy state, a host computer to set an operating mode for a register circuit in a memory and to perform the step of acquiring a training register used for caching data again to perform delay adjustment training again.
13. The step of transmitting a sample write data signal to the memory by the host computer comprises: transmitting, by the host computer, a sample write data signal and a write data selection pulse signal matching the sample write data signal to the memory; The step of sampling the sampled write data signal based on a sampling signal through the memory, and caching the sampled write data signal obtained by sampling in the training register, includes:
2. The method according to claim 1, further comprising the steps of: using the write data selection pulse signal received by the memory as a sampling signal; sampling the sampled write data signal through the memory based on the sampling signal; and caching the sampled write data signal obtained by sampling in the training register.
14. The sampling edge of the sampling signal includes a rising edge of the sampling signal, and the step of sampling the sample write data signal based on the sampling signal through the memory includes: Sampling the sampled write data signal through the memory based on a rising edge of a sampling signal; The step of performing a signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with a sampling edge of a sampling signal, 2. The method of claim 1, further comprising a step of performing a signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with the rising edge of the sampling signal.
15. The sampling edge of the sampling signal includes a falling edge of the sampling signal, and the step of sampling the sample write data signal based on the sampling signal through the memory includes: Sampling the sampled write data signal through the memory based on a falling edge of a sampling signal; The step of performing a signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with a sampling edge of a sampling signal, 2. The method of claim 1, further comprising a step of performing a signal offset adjustment on the input write data signal by the trained write data delay control circuit to obtain a target write data signal that is aligned with the falling edge of the sampling signal.
16. A delay control device for a write data signal, the device comprising: A setting module is used for setting an operation mode for a register circuit in the memory by a host computer and acquiring a training register supporting read / write; a transmitting module for transmitting a sample write data signal to the memory by the host computer; a sampling module for sampling the sampled write data signal according to a sampling signal through the memory, and caching the sampled write data signal obtained by sampling in the training register; a training module for performing delay adjustment training for a write data delay control circuit installed on the host computer according to the sampled write data signal if the sampled write data signal read from the training register by the host computer does not match the sampled write data signal, and obtaining a trained write data delay control circuit; and an adjustment module used to perform signal offset adjustment on the write data signal input by the trained write data delay control circuit to obtain a target write data signal that is aligned with the sampling edge of a sampling signal, the target write data signal being used for writing in the memory.
17. A computing device comprising a memory and one or more processors, the memory having computer readable instructions stored therein, the one or more processors being operable, when executing the computer readable instructions, to implement the steps of the method according to any one of claims 1 to 15.
18. One or more computer readable storage media having stored thereon computer readable instructions which, when executed by one or more processors, perform the steps of the method according to any one of claims 1 to 15.
19. A computer program product comprising computer readable instructions, which, when executed by one or more processors, implement the steps of the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Data taking-in circuit for taking in data from synchronous memory
JP2005056334A
Semiconductor integrated circuit device
JP2007109203A
Memory control circuit, delay time control unit, delay time control method, and delay time control program
JP2009075682A
Signal control circuit, information processing unit, and signal control method
JP2015088065A
Integrated Controller for Training of Memory Physical Layer Interface
JP2017523488A
