Method and device for adjusting phase of bidirectional data strobe sampling signal DQS
By adjusting the phase of the bidirectional data strobe sampling signal DQS through repeated sampling and determination, the method addresses the instability caused by temperature drift in DDR of FPGA, enhancing chip design reliability and stability.
Patent Information
- Application Number
- JP2024536122
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-29
- Filing Date
- 2022-05-06
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2042-05-06
AI Technical Summary
Conventional methods for addressing DQS temperature drift in DDR of FPGA fail to operate reliably due to the high performance requirements of the internal high-speed sampling circuit, leading to instability and failure.
A method and apparatus that adjust the phase of the bidirectional data strobe sampling signal DQS by receiving phase adjustment commands, sampling the signal, determining accuracy, and repeating the process until a preset number of repetitions is reached, utilizing the slow change nature of temperature drift to stabilize the signal.
This approach effectively stabilizes the DQS signal by reducing the reliance on high-speed sampling circuit performance, ensuring reliable operation and improving chip design stability.
Smart Images

Figure 2025500043000001_ABST
Abstract
Description
[Technical field]
[0001] (Related Applications) This application claims priority to a Chinese patent application filed with the China Patent Office on December 29, 2022, with application number 202111644785.2 and title "Method and device for adjusting bidirectional data strobe sampling signal DQS phase", the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of field programmable gate arrays, and in particular to a method and apparatus for adjusting the phase of a bidirectional data strobe sampling signal DQS. [Background technology]
[0003] In order to solve the problem of DQS (Bidirectional Data Strobe) temperature drift in DDR (Double Data Rate SDRAM) of FPGA (Field Programmable Gate Array), the prior art uses a temperature drift monitoring circuit in a PHY (Port Physical Layer) circuit to monitor the DQS temperature drift phenomenon in DDR, and oversamples the DQS signal at four times the speed using a high-speed clock in the PHY circuit, and adjusts the parameters of the DQS signal according to the oversampling result. However, the inventors have found that the performance of the internal high-speed sampling circuit of the PHY circuit needs to reach four times the speed of the DQS signal, which often becomes a bottleneck in chip design, and at the same time leads to the temperature drift monitoring circuit not working reliably, and the problem of DQS temperature drift in DDR of FPGA cannot be truly solved. Summary of the Invention [Problem to be solved by the invention]
[0004] The embodiments of the present application provide a method and apparatus for adjusting the phase of a bidirectional data strobe sampling signal DQS to solve the DQS temperature drift problem in double data rate synchronous dynamic random memory. [Means for solving the problem]
[0005] The method for adjusting the bidirectional data strobe sampling signal DQS phase is as follows: receiving a phase adjustment command and adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; determining whether the sampling result is accurate and storing the determination result; repeating the steps from receiving the phase adjustment command to storing the determined sampling result until a preset number of repetitions is reached; and adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
[0006] The bidirectional data strobe sampling signal DQS phase adjusting device includes: a first phase control circuit for receiving a phase adjustment command and adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; a first signal sampling circuit for receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; a port physical layer circuit for determining whether the sampling result is accurate and storing the determination result; repeatedly executing the functions of the first phase control circuit, the first signal sampling circuit, and the port physical layer circuit until a preset number of repetitions is reached; and a second phase control circuit for adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
[0007] The above bidirectional data strobe sampling signal DQS phase adjustment method and device, the port physical layer circuit sends a phase adjustment command through a bus, the memory controller receives the phase adjustment command through a bus, and then the memory controller transfers the phase adjustment command to a first phase control circuit, and the first phase control circuit adjusts the phase of the bidirectional data strobe sampling signal DQS according to a preset first rule after receiving the phase adjustment command, and then the port physical layer circuit sends a signal sampling command through a bus, the memory controller receives the signal sampling command through a bus, and then the memory controller transfers the signal sampling command to a first signal sampling circuit, and then the first signal sampling After receiving the signal sampling command, the ring circuit samples the bidirectional data strobe sampling signal DQS and returns the bidirectional data strobe sampling signal DQS via a bus, and the port physical layer circuit judges whether the phase adjustment operation of the adjusted bidirectional data strobe sampling signal DQS is correct based on the returned bidirectional data strobe sampling signal DQS and stores the judgment result, and finally repeats the steps from the port physical layer circuit sending the phase adjustment command via the bus to storing the judgment result until the number of repetitions reaches a preset number, and adjusts the DQS gate phase according to the stored judgment result in each repetition according to a preset second adjustment rule. By utilizing the characteristic that temperature drift is a slowly changing signal, the restriction condition in the prior art that the performance of the high-speed sampling circuit of the port physical layer circuit part must be several times the DQS signal speed is eliminated, the bottleneck of chip design is reduced, and the DQS temperature drift problem is stably and reliably solved.
[0008] In order to more clearly describe the technical solutions of the embodiments of the present application, the following briefly describes the accompanying drawings that need to be used in the description of the embodiments of the present application. Obviously, the accompanying drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these accompanying drawings without creative labor. [Brief description of the drawings]
[0009] [Figure 1] 4 is a flowchart of a method for adjusting a phase of a bidirectional data strobe sampling signal DQS in an embodiment of the present application. [Diagram 2] 4 is a flowchart of a first adjustment rule of a method for adjusting the phase of a bidirectional data strobe sampling signal DQS in an embodiment of the present application. [Diagram 3] 11 is a table of a second adjustment rule of the adjustment method for the phase of the bidirectional data strobe sampling signal DQS in an embodiment of the present application. [Figure 4] 2 is a structural schematic diagram of a bidirectional data strobe sampling signal DQS phase adjusting device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, the technical solutions of the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings of the embodiments of the present application, but obviously, the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, other embodiments obtained by those skilled in the art without creative labor are all included in the protection scope of the present application.
[0011] In order to facilitate understanding of this application, the terminology involved in this application is as follows: 1.FPGA (Field Programmable Gate Array), a type of semi-custom circuit in special application integrated circuits, generally has three parts: logic block, programmable interconnection channel and I / O block.
[0012] 2.DDR(Double Data Rate SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory, is a type of memory.
[0013] 3. DQS (Bidirectional Data Strobe), a bidirectional data strobe sampling signal, used to accurately distinguish each data transmission period within a clock period.
[0014] 4. PHY (Port Physical Layer) The port physical layer circuit is an analog-digital mixed circuit that is responsible for receiving electrical and optical analog signals. After demodulation and analog-to-digital conversion, the signal is transferred to the MAC chip for processing via the MII (Media Independent Interface).
[0015] 5. Temperature drift: Temperature changes will cause changes in the parameters of transistors, which will in turn lead to changes in the parameters of semiconductor devices, making the dynamic parameters of the circuit unstable or preventing the circuit from operating normally. In this embodiment, the frequency of the bidirectional data strobe sampling signal DQS is changed due to temperature changes.
[0016] In order to solve the problem of temperature drift of the bidirectional data strobe sampling signal DQS in DDR of FPGA, the present application provides a solution, taking advantage of the characteristic that the temperature drift is a slowly changing signal, a port physical layer circuit sends a gate phase adjustment command, a first phase control circuit adjusts the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule after receiving the gate phase adjustment command, then a first signal sampling circuit receives a signal sampling command, samples the bidirectional data strobe sampling signal DQS, and returns the DQS signal to the port physical layer circuit, the port physical layer circuit judges whether the sampling result of the bidirectional data strobe sampling signal DQS is accurate, and repeats the phase adjustment process of the bidirectional data strobe sampling signal DQS a preset number of times according to the first adjustment rule, finally, according to the result of the phase adjustment of the bidirectional data strobe sampling signal DQS in the preset number of repetitions, adjusts the phase of the bidirectional data strobe sampling signal DQS according to a preset second rule.
[0017] In one embodiment, as shown in FIG. 1, a method for adjusting a phase of a bidirectional data strobe sampling signal DQS is provided, which includes the following steps S101 to S105.
[0018] S101, receiving a phase adjustment command, and adjusting the phase of a bidirectional data strobe sampling signal DQS according to a preset first adjustment rule.
[0019] Furthermore, the phase adjustment command is transferred using a memory controller, specifically, the memory controller receives the phase adjustment command and transfers the phase adjustment command to the first phase control circuit.
[0020] Further, the method includes adding a timer to the port physical layer circuit, and using the timer to control the frequency of sending the phase adjustment command, specifically, the port physical layer circuit sending the phase adjustment command when a single preset time period of the timer ends. The timer may have a preset time period, and may set the time period again according to an actual change situation of the temperature drift phenomenon of the bidirectional data strobe sampling signal DQS, that is, when the temperature drift phenomenon of the bidirectional data strobe sampling signal DQS occurs frequently, the time period of the timer is decreased, and when the temperature drift phenomenon of the bidirectional data strobe sampling signal DQS occurs very rarely, the time period of the timer is increased.
[0021] The method further includes transmitting the phase adjustment command via a bus, specifically, the port physical layer circuit sending the phase adjustment command to the memory controller via a bus.
[0022] Here, as shown in FIG. 2, the preset first adjustment rule includes the following steps S201 to S204.
[0023] S201, determine whether the adjustment is an even number of times; if not, execute step S202; if yes, execute step S203.
[0024] S202, adjust the phase of the bidirectional data strobe sampling signal DQS to the left by a first preset angle, and then execute step S204.
[0025] S203, adjust the phase of the bidirectional data strobe sampling signal DQS right by a first preset angle, and then execute step S204.
[0026] S204, judge whether the preset adjustment number is reached, if not, execute step S201, if yes, end the adjustment flow.
[0027] In particular, in the temperature drift phenomenon, the signal phase of the bidirectional data strobe sampling signal DQS changes, but the frequency and amplitude of the signal do not change, so the countermeasure for the temperature drift of the bidirectional data strobe sampling signal DQS is to adjust the phase of the bidirectional data strobe sampling signal DQS. In step S201, determining whether the adjustment is an even number is merely a number discrimination method, and a similar method for determining whether the adjustment is an odd number can be used to effectively discriminate adjacent numbers, and the method for discriminating more numbers is not repeated here. The phase shift of the bidirectional data strobe sampling signal DQS to the left in step S202 and the phase shift of the bidirectional data strobe sampling signal DQS to the right in step S203 are merely examples, that is, the direction of the phase change of the bidirectional data strobe sampling signal DQS in step S202 and the direction of the phase change of the bidirectional data strobe sampling signal DQS in step S203 may be opposite to each other.
[0028] S102, receive a signal sampling command, sample a bidirectional data strobe sampling signal DQS, and return a sampling result of the bidirectional data strobe sampling signal DQS.
[0029] Further, the signal sampling command is forwarded using a memory controller, specifically, the memory controller receives the signal sampling command and forwards the signal sampling command to the first signal sampling circuit. After the first signal sampling circuit receives the signal sampling command, it starts sampling the bidirectional data strobe sampling signal DQS. Here, the signal sampling command further includes a signal sampling time length parameter, i.e., the first signal sampling circuit samples the bidirectional data strobe sampling signal DQS for a corresponding time length based on the time length parameter included in the signal sampling command. Optionally, the time length parameter may be set as a time length default value, and if the signal sampling command does not include the time length parameter, the first signal sampling circuit samples the bidirectional data strobe sampling signal DQS for a corresponding time length based on the time length default value.
[0030] Moreover, transmitting the signal sampling command over a bus specifically includes the port physical layer circuit sending the signal sampling command to the memory controller over a bus.
[0031] Furthermore, transmitting the bidirectional data strobe sampling signal DQS through a bus specifically includes: after the first signal sampling circuit samples the bidirectional data strobe sampling signal DQS, returning the bidirectional data strobe sampling signal DQS through the bus.
[0032] In particular, when transmitting the bidirectional data strobe sampling signal DQS, the phase adjustment command, and the signal sampling command via the bus, backpressure controlling and managing the bus specifically includes determining whether the bus is being used to transfer the bidirectional data strobe sampling signal DQS, or the phase adjustment command, or the signal sampling command, and if so, temporarily suspending bus processing of commands and data from a user side, and resuming processing of commands and data from a user side after the process of transmitting the bidirectional data strobe sampling signal DQS, or the phase adjustment command, or the signal sampling command is completed.
[0033] S103, determining whether the sampling result is accurate, and storing the determination result.
[0034] Specifically, the port physical layer circuit sends the signal sampling command through a bus, and after the memory controller receives the signal sampling command through a bus, the memory controller transfers the signal sampling command to the first signal sampling circuit, and after the first signal sampling circuit receives the signal sampling command, the bidirectional data strobe sampling signal DQS samples the bidirectional data strobe sampling signal DQS according to a preset time length parameter or a time length parameter included in the signal sampling command, and the first signal sampling circuit returns the sampled bidirectional data strobe sampling signal DQS signal data through a bus, and the bidirectional data strobe sampling signal DQS signal data includes waveform curve information of the bidirectional data strobe sampling signal DQS, and the bidirectional data strobe sampling signal DQS signal data further includes a signal true / false flag, and the signal true / false flag indicates whether the sampled bidirectional data strobe sampling signal DQS signal data is correct or false. In this embodiment, the signal true / false flag is an integer value of 1 or 0. When the signal true / false flag is 1, it indicates that the sampled bidirectional data strobe sampling signal DQS signal data is correct and valid, and when the signal true / false flag is 0, it indicates that the sampled bidirectional data strobe sampling signal DQS signal data is erroneous and invalid. The port physical layer circuit determines whether the DQS signal data is correct and valid or erroneous and invalid based on a value of the signal true / false flag, in particular, the port physical layer circuit determines whether the bidirectional data strobe sampling signal DQS signal data is correct and valid or erroneous and invalid based on the signal true / false flag without using waveform curve information of the bidirectional data strobe sampling signal DQS, discards the waveform curve information of the bidirectional data strobe sampling signal DQS sampled by the first signal sampling circuit, and only stores the determination result of whether the bidirectional data strobe sampling signal DQS sampling is correct and valid or erroneous and invalid according to the signal true / false flag.As described above, by discarding the waveform curve information of the bidirectional data strobe sampling signal DQS and only storing the judgment result of whether the bidirectional data strobe sampling signal DQS sampling is correct or invalid, it is possible to greatly reduce the memory resource and improve the efficiency of solving the temperature drift problem.
[0035] S104, repeating the steps from receiving the phase adjustment command to storing the determined sampling result until the number of repetitions reaches a preset number.
[0036] Here, in this embodiment, in order to solve the temperature drift problem, the first phase control circuit is used to adjust the phase of the bidirectional data strobe sampling signal DQS, and the adjustment accuracy of the phase of the bidirectional data strobe sampling signal DQS is determined based on the adjustment results of the phase of the bidirectional data strobe sampling signal DQS a preset number of times, and only if the number of times is sufficient, the adjustment accuracy of the phase of the bidirectional data strobe sampling signal DQS is finally ensured to be sufficient.
[0037] Furthermore, managing the sampling process of the bidirectional data strobe sampling signal DQS through a state machine can be specifically after the port physical layer circuit transmits the phase adjustment command via a bus, the memory controller receives the phase adjustment command, and the memory controller monitors whether the bus is in an idle period; if the bus is in an idle period, the memory controller transmits an ACK response via the bus and switches the state machine from an idle state to an active state; After the port physical layer circuit sends the signal sampling command via a bus, switching the state machine from the active state to a data read state, and the port physical layer circuit waits for the first signal sampling circuit to return a bidirectional data strobe sampling signal DQS for sampling; After the port physical layer circuit receives the bidirectional data strobe sampling signal DQS via a bus, switching the state machine from the data read state to a check state, starting to check the accuracy of the bidirectional data strobe sampling signal DQS received by the port physical layer circuit, and storing the check result of the accuracy of the bidirectional data strobe sampling signal DSQ; After the first phase control circuit adjusts the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule, switching the state machine from the check state to a reset state, and resetting a circuit related to the bidirectional data strobe sampling signal DQS in a port physical layer circuit once; The present invention also includes resetting a circuit associated with the bidirectional data strobe sampling signal DQS in the port physical layer circuit once, and then switching the state machine from the reset state to the idle state, and the port physical layer circuit transmitting the phase adjustment command via a bus after the end of a new timing period of the timer.
[0038] S105, adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
[0039] Specifically, the port physical layer circuit stores a judgment result of a preset number of repetitions, which is a result of accurately adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule, and determines a left or right direction of the final bidirectional data strobe sampling signal DQS phase based on the number of times the phase of the bidirectional data strobe sampling signal DQS is accurately adjusted to the left or right within the preset number of repetitions, and adjusts it according to a preset second angle.
[0040] Here, as shown in FIG. 3, FIG. 3 is a second adjustment rule table, and the phase of the bidirectional data strobe sampling signal DQS is adjusted according to the preset second rule. The first column of the table in FIG. 3 is the judgment result of the preset repetition number, and the second column of the table is the corresponding operation of adjusting the phase of the bidirectional data strobe sampling signal DQS. If the judgment result of the preset repetition number is that the number of left error adjustments is less than the set number and the number of right error adjustments is greater than the set number, the phase of the bidirectional data strobe sampling signal DQS is adjusted left by a second preset angle, and at the same time, the phase of the bidirectional data strobe sampling signal DQS is adjusted left by the second preset angle, and then the circuit related to the bidirectional data strobe sampling signal DQS in the port physical layer circuit is reset once; if the judgment result of the preset repetition number is that the number of left error adjustments is greater than the set number and the number of right error adjustments is less than the set number, , adjust the phase of the bidirectional data strobe sampling signal DQS to the right by a second preset angle, and at the same time, after adjusting the phase of the bidirectional data strobe sampling signal DQS to the right by the second preset angle, reset the circuit related to the bidirectional data strobe sampling signal DQS in the port physical layer circuit once; if the determination result of the preset repetition number is to eliminate other results than the two results, there is no need to adjust the phase of the bidirectional data strobe sampling signal DQS or reset the circuit related to the DQS signal in the port physical layer circuit once.
[0041] In the embodiment, in the method for adjusting the phase of the bidirectional data strobe sampling signal DQS, a port physical layer circuit sends a phase adjustment command through a bus, a memory controller receives the phase adjustment command through a bus, and then the memory controller transfers the phase adjustment command to a first phase control circuit, and the first phase control circuit adjusts the phase of the bidirectional data strobe sampling signal DQS according to a first preset rule after receiving the phase adjustment command, and then the port physical layer circuit sends a signal sampling command through a bus, and the memory controller receives the signal sampling command through a bus, and then the memory controller transfers the signal sampling command to a first signal sampling circuit, and the first signal sampling circuit adjusts the phase of the bidirectional data strobe sampling signal DQS according to a first preset rule. After receiving a bidirectional data strobe sampling command, the port physical layer circuit samples the bidirectional data strobe sampling signal DQS and returns the bidirectional data strobe sampling signal DQS through a bus, and the port physical layer circuit judges whether the phase adjustment operation of the bidirectional data strobe sampling signal DQS is accurate according to the returned bidirectional data strobe sampling signal DQS, and stores the judgment result; finally, the port physical layer circuit repeats the steps from sending a phase adjustment command through the bus to storing the judgment result until the number of repetitions reaches a preset number, and adjusts the gate phase of the bidirectional data strobe sampling signal DQS according to the stored judgment result in each repetition according to a preset second adjustment rule. By utilizing the characteristic that the temperature drift is a slowly changing signal, the restrictive condition of the prior art that the performance of the high-speed sampling circuit of the port physical layer circuit unit reaches a multiple of the speed of the bidirectional data strobe sampling signal DQS is eliminated, thereby reducing the bottleneck of the chip design; at the same time, a state machine is used to generate various working states, so as to effectively and orderly control the process of solving the temperature drift of the bidirectional data strobe sampling signal DQS, and ensure the reliability and stability of the method for adjusting the phase of the bidirectional data strobe sampling signal DQS.
[0042] It should be understood that the numbers of each step in the above embodiments do not indicate the order of execution, and the order of execution of each process should be determined by its function and inherent logic, and does not limit the implementation process of the embodiments of the present application.
[0043] In one embodiment, a bidirectional data strobe sampling signal DQS phase adjustment device 100 is provided. As shown in Figure 4, the bidirectional data strobe sampling signal DQS phase adjustment device 100 includes a port physical layer circuit 10, a bus 20, a first phase control circuit 30, a memory controller 40, and a first signal sampling circuit 50. The detailed description of each component is as follows: The port physical layer circuit 10 is used to determine whether the sampling result is accurate and store the determination result; The bus 20 is used to transmit the bidirectional data strobe sampling signal DQS, the phase adjustment command and the signal sampling command, specifically including: the port physical layer circuit sends the phase adjustment command to the memory controller via the bus; the port physical layer circuit sends the signal sampling command to the memory controller via the bus; the first signal sampling circuit samples the bidirectional data strobe sampling signal DQS, and then returns the bidirectional data strobe sampling signal DQS via the bus; The first phase control circuit 30 is used to receive a phase adjustment command and adjust the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; The memory controller 40 is used to transfer the phase adjustment command to the first phase control circuit and transfer the signal sampling command to the first signal sampling circuit, specifically including: the memory controller receives the phase adjustment command and transfers the phase adjustment command to the first phase control circuit; the memory controller receives the signal sampling command and transfers the signal sampling command to the first signal sampling circuit; The first signal sampling circuit 50 is used to receive a signal sampling command, sample the bidirectional data strobe sampling signal DQS, and return the sampling result of the bidirectional data strobe sampling signal DQS.
[0044] Furthermore, by repeatedly executing the functions of the first phase control circuit, the first signal sampling circuit, and the port physical layer circuit until a preset number of repetitions is reached, The second phase control circuit is used to adjust the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
[0045] Furthermore, as shown in FIG. 4, the port physical layer circuit 10 includes: a timer 101 used by the port physical layer circuit to transmit the phase adjustment command upon expiration of a single preset time period of the timer; In addition, the bidirectional data strobe sampling signal DQS phase adjusting device 100 further includes:
[0046] A backpressure control circuit is used to determine whether the bus is being used to transmit the bidirectional data strobe sampling signal DQS, or the phase adjustment command, or the signal sampling command, and if so, stops processing commands and data from the user side by the bus, and reprocesses commands and data from the user side after the transmission process of the bidirectional data strobe sampling signal DQS, or the phase adjustment command, or the signal sampling command is completed.
[0047] The reset control circuit is used to adjust the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule, and after adjusting the phase of the bidirectional data strobe sampling signal DQS according to the reference preset second adjustment rule, reset a circuit related to the DQS signal in a port physical layer circuit once.
[0048] The terms "first" and "second" in the above modules / units are intended only to distinguish different modules / units, and do not imply any priority or other limitation of the modules / units. In addition, "comprise" and "have" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or apparatus that includes a series of steps or modules need not be limited to those steps or modules expressly recited, but may include other steps or modules that are not expressly recited or that are inherent to the process, method, product or apparatus, and the division of modules appearing in this application is merely a logical division and may be divided in other ways when implemented in actual applications.
[0049] The specific limitations of the bidirectional data strobe sampling signal DQS phase adjusting device may refer to the limitations of the bidirectional data strobe sampling signal DQS phase adjusting method described above, and will not be repeated here. All or part of each module in the bidirectional data strobe sampling signal DQS phase adjusting device may be realized by software, hardware, or a combination thereof. Each of the above modules may be embedded in a processor in a computer device in the form of hardware, or may be independent, or may be stored in a memory in a computer device in the form of software, so that the processor can easily perform operations corresponding to each of the above modules.
[0050] In one embodiment, a computer-readable storage medium is provided, storing a computer program, the computer-readable storage medium may be non-volatile or volatile, and when the computer program is executed by a processor, steps of the method for adjusting the phase of a bidirectional data strobe sampling signal DQS in the above embodiment, such as steps S101 to S105 shown in FIG. 1, and other extensions of the method and related steps are performed.
[0051] Those skilled in the art should understand that the implementation of all or part of the flow in the above embodiment method can be achieved by a computer program instructing related hardware, the computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, it can include the flow of the above embodiment method. Here, any reference to memory, storage, database or other medium used in each embodiment provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of example and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Dual Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
[0052] As will be apparent to those skilled in the art, for convenience and simplicity of explanation, the division of each of the above functional units and modules has been described as an example, but in actual applications, the above functions can be assigned to be performed by different functional units or modules as needed, i.e., the internal structure of the device can be divided into different functional units or modules to achieve all or part of the above functions.
[0053] The above examples are only used to explain the technical solutions of the present application, and are not intended to be limiting. Although the present application has been described in detail with reference to the above examples, those skilled in the art may still make modifications to the technical solutions described in each of the above examples, or make equivalent substitutions to some technical features, and these modifications or substitutions will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each of the examples of the present application, and all shall be included in the protection scope of the present application.
Claims
1. receiving a phase adjustment command and adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; determining whether the sampling result is accurate and storing the determination result; repeating the steps from receiving the phase adjustment command to storing the determined sampling result until a preset number of repetitions is reached; adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
2. The phase adjustment command and the signal sampling command are obtained by a memory controller; 2. The method for adjusting a phase of a bidirectional data strobe sampling signal DQS as claimed in claim 1, wherein the memory controller receives the phase adjustment command and the signal sampling command, transfers the phase adjustment command to a first phase control circuit, and transfers the signal sampling command to a first signal sampling circuit.
3. The step of receiving a phase adjustment command includes:
2. The method for adjusting a phase of a bidirectional data strobe sampling signal DQS as claimed in claim 1, comprising receiving the phase adjustment command at a preset frequency.
4. before adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule; 4. The method for adjusting a phase of a bidirectional data strobe sampling signal DQS according to claim 1, further comprising managing an adjustment process of adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and the preset second adjustment rule via a state machine.
5. managing an adjustment process of adjusting a phase of a bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and the preset second adjustment rule via the state machine; switching the state machine from an idle state to an active state after receiving the phase adjustment command; switching the state machine from the active state to a data read state after receiving the signal sampling command; switching the state machine from the data read state to a check state after sampling the bidirectional data strobe sampling signal DQS; 5. The method for adjusting a phase of a bidirectional data strobe sampling signal DQS as claimed in claim 4, further comprising: switching the state machine from the check state to a reset state after adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule.
6. After adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset second adjustment rule, performing a reset of a circuit associated with the bidirectional data strobe sampling signal DQS in a port physical layer circuit; 6. The method of claim 5, further comprising: switching the state machine from the reset state to the idle state.
7. a first phase control circuit for receiving a phase adjustment command and adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; a first signal sampling circuit for receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; a port physical layer circuit for determining whether the sampling result is accurate and storing the determination result; repeatedly executing the functions of the first phase control circuit, the first signal sampling circuit, and the port physical layer circuit until a preset number of repetitions is reached; a second phase control circuit for adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
8. The apparatus further comprises a memory controller; 8. The bidirectional data strobe sampling signal DQS phase adjusting device of claim 7, wherein the memory controller is used to receive the phase adjustment command and the signal sampling command, transfer the phase adjustment command to a first phase control circuit, and transfer the signal sampling command to a first signal sampling circuit.
9. The apparatus further comprises a timer; 8. The apparatus for adjusting a phase of a bidirectional data strobe sampling signal DQS according to claim 7, wherein the timer is used to control a frequency of the phase adjustment command.
10. The device further includes a bus, the port physical layer circuit and the memory controller are connected via the bus; 9. The apparatus for adjusting a phase of a bidirectional data strobe sampling signal DQS according to claim 8, wherein the bus is used for transmitting the phase adjustment command, the signal sampling command, and the bidirectional data strobe sampling signal DQS.
11. a processor; and a memory coupled to the processor, the memory storing program instructions for execution by the processor, the processor executing the program instructions stored in the memory, receiving a phase adjustment command and adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; determining whether the sampling result is accurate and storing the determination result; repeating the steps from receiving the phase adjustment command to storing the determined sampling result until a preset number of repetitions is reached; adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
12. The phase adjustment command and the signal sampling command are obtained by a memory controller; 12. The computing device of claim 11, wherein the memory controller receives the phase adjustment command and the signal sampling command, forwards the phase adjustment command to a first phase control circuit, and forwards the signal sampling command to a first signal sampling circuit.
13. The step of receiving a phase adjustment command includes:
12. The computer apparatus of claim 11, further comprising receiving the phase adjustment command at a preset frequency.
14. before adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule; 14. The computer device of claim 11, further comprising: managing an adjustment process of adjusting a phase of a bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and the preset second adjustment rule via a state machine.
15. managing an adjustment process of adjusting a phase of a bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and the preset second adjustment rule via the state machine; switching the state machine from an idle state to an active state after receiving the phase adjustment command; switching the state machine from the active state to a data read state after receiving the signal sampling command; switching the state machine from the data read state to a check state after sampling the bidirectional data strobe sampling signal DQS; and switching the state machine from the check state to a reset state after adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule.
16. After adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset second adjustment rule, performing a reset of a circuit associated with the bidirectional data strobe sampling signal DQS in a port physical layer circuit; 20. The computer apparatus of claim 15, further comprising the step of: switching the state machine from the reset state to the idle state.
17. Program instructions are stored, and when executed by a processor, receiving a phase adjustment command and adjusting the phase of the bidirectional data strobe sampling signal DQS according to a preset first adjustment rule; receiving a signal sampling command, sampling a bidirectional data strobe sampling signal DQS, and returning a sampling result of the bidirectional data strobe sampling signal DQS; determining whether the sampling result is accurate and storing the determination result; repeating the steps from receiving the phase adjustment command to storing the determined sampling result until a preset number of repetitions is reached; adjusting a phase of the bidirectional data strobe sampling signal DQS according to a preset second adjustment rule based on the determination result corresponding to the number of repetitions.
18. The phase adjustment command and the signal sampling command are obtained by a memory controller; 20. The storage medium of claim 17, wherein the memory controller receives the phase adjustment command and the signal sampling command, forwards the phase adjustment command to a first phase control circuit, and forwards the signal sampling command to a first signal sampling circuit.
19. The step of receiving a phase adjustment command includes:
20. The storage medium of claim 17, further comprising receiving the phase adjustment command at a preset frequency.
20. before adjusting the phase of the bidirectional data strobe sampling signal DQS according to the preset first adjustment rule; The storage medium of any one of claims 17 to 19, further comprising a step of managing an adjustment process of adjusting a phase of a bidirectional data strobe sampling signal DQS according to the preset first adjustment rule and the preset second adjustment rule via a state machine.
Citation Information
Patent Citations
Timing adjustment circuit for memory interface and method
JP2012150769A
Dynamic data strobe detection
JP2013058209A
Periodic Training for a Mismatch Signal Receiver
JP2016532978A
FPGA circuit, system, installation method and computer-readable medium
JP2021529361A
Memory signal phase difference calibration circuit and method
US10522204B1