The present disclosure relates to a method and an electronic system. More particularly, the present disclosure relates to a testing method and a testing system.
Normally, memories are under a write leveling mode, a clock state of a clock signal is changed with a rising edge of data Q strobe (DQS) signals, and asynchronously feeds back to a memory controller.
Some of memories have opposite behavior that a clock state of a clock signal is changed with a falling edge of DQS signals. It is too difficult to investigate two kinds of memories so as to adjust a delay relationship between DQS signal and clock signals of a memory under a write leveling mode.
For the foregoing reason, there is a need to provide some testing method to solve the problems of the prior art.
One aspect of the present disclosure provides a testing method. The testing method includes the following steps of: accessing a memory chip to put the memory chip into a write leveling mode; inputting a strobe signal into the memory chip under the write leveling mode; adjusting signal edges of the strobe signal to sample a clock state of a clock signal in the memory chip under the write leveling mode; generating a data signal according to the strobe signal under the write leveling mode; and determining types of the memory chip according to the data signal under the write leveling mode.
Another aspect of the present disclosure provides a testing system. The testing system includes a memory chip and a memory controller. The memory controller is coupled to the memory chip. The memory controller is configured to access the memory chip to put the memory chip into a write leveling mode. The memory controller is configured to input a strobe signal into the memory chip under the write leveling mode. The memory controller is configured to adjust signal edges of the strobe signal to sample a clock state of a clock signal in the memory chip under the write leveling mode. The memory chip is configured to generate a data signal according to the strobe signal under the write leveling mode. The memory controller is configured to determine types of the memory chip according to the data signal under the write leveling mode.
These and other aspects of the present disclosure will become apparent from the following description of the preferred embodiment taken in conjunction with the following drawings, although variations and modifications therein may be effected without departing from the spirit and scope of the novel concepts of the disclosure.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the present disclosure as claimed.
The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
In some embodiments, the memory controller 120 is configured to access the memory chip 111 to put the memory chip into a write leveling mode. The memory controller 120 is configured to input a strobe signal DQS into the memory chip 111 under the write leveling mode.
Then, the memory controller 120 is configured to adjust signal edges of the strobe signal DQS to sample a clock state of a clock signal CLK in the memory chip 111 under the write leveling mode.
Furthermore, the memory chip 111 is configured to generate a data signal DQ according to the strobe signal DQS under the write leveling mode. The memory controller 120 is configured to determine types of the memory chip 111 according to the data signal DQ under the write leveling mode.
In some embodiments, the memory controller 120 is further configured to compensate the memory chip 111 according to the types of the memory chip 11 under the write leveling mode. In some embodiments, the memory controller 120 is further configured to adjust a delay of the strobe signal DQS relative to the clock signal CLK under the write leveling mode.
In some embodiments, each of the memory chip 111 and the memory chip 112 includes a synchronous dynamic random access memory (SDRAM). In some embodiments, each of the memory chip 111 and the memory chip 112 can be a double data rate (DDR) SDRAM. In some embodiments, each of the memory chip 111 and the memory chip 112 can be a DDR3 SDRAM to a DDR5 SDRAM, or next generations DDR SDRAM.
In some embodiments, each of the strobe signal DQS and the data signal DQ is a bidirectional signal.
In some embodiments, in order to facilitate the understanding of a testing system 100 shown in
In step 210, a memory chip is accessed to put the memory chip into a write leveling mode. In some embodiments, please refer to
It should be note that a purpose of the write leveling mode of the memory chip is to use every block in a memory chip equally to avoid some specific blocks from becoming corrupted blocks due to overusing the specific blocks so as to prolong a service life of the memory chip.
In step 220, a strobe signal is input into the memory chip under the write leveling mode. In some embodiments, please refer to
In step 230, signal edges of the strobe signal are adjusted to sample a clock state of a clock signal in the memory chip under the write leveling mode. In some embodiments, please refer to
In some embodiments, please refer to
In some embodiments, please refer to
In some embodiments, please refer to
In some embodiments, please refer to
In some embodiments, the memory controller 120 is further configured to move a falling edge FE1 of the strobe signal DQS to sample the clock signal CLK for at least one complete duty circle T of the clock signal CLK.
In some embodiments, please refer to
In some embodiments, the memory controller 120 is further configured to move a rising edge RE2 of the strobe signal DQS to sample the clock signal CLK for at least one complete duty circle T of the clock signal CLK.
In step 240, a data signal is generated according to the strobe signal under the write leveling mode. In some embodiments, please refer to
In some embodiments, each of the memory chip 111 and the memory chip 112 is further configured to latch the data signal DQ if one of the first change of the data signal DQ and the second change of the data signal DQ is detected.
In some embodiments, please refer to
Then, when the memory controller 120 is further configured to keep moving the falling edge FE1 of the strobe signal DQS to sample the clock signal CLK, the falling edge FE1 of the strobe signal DQS samples a rising edge of the clock signal CLK so as to make each of the memory chip 111 and the memory chip 112 generate the second change of the data signal DQ.
In some embodiments, the memory controller 120 is configured to latch the data signal DQ if one of the first change of the data signal DQ and the second change of the data signal DQ is detected.
In some embodiments, please refer to
In some embodiments, the memory controller 120 is configured to generate a second shmoo graph shown in
In some embodiments, please refer to
Then, when the memory controller 120 is further configured to keep moving the rising edge RE2 of the strobe signal DQS to sample the clock signal CLK, the rising edge RE2 of the strobe signal DQS samples a falling edge of the clock signal CLK so as to make each of the memory chip 111 and the memory chip 112 generate the second change of the data signal DQ.
In some embodiments, the memory controller 120 is configured to latch the data signal DQ if one of the first change of the data signal DQ and the second change of the data signal DQ is detected.
In some embodiments, please refer to
In some embodiments, the memory controller 120 is configured to generate a second shmoo graph shown in
In step 250, types of the memory chip are determined according to the data signal under the write leveling mode. In some embodiments, please refer to
In some embodiments, please refer to
In some embodiments, please refer to
Based on the above embodiments, the present disclosure provides a testing system and a testing method to adjust duty circles of a clock signal and signal edges of the strobe signal of a memory so as to investigate two kinds of memories to improve a write leveling mode of a memory.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.