Memory system and memory access interface device and operation method thereof
By designing the memory access interface device in the LPDDR memory device and using the signal training circuit to adjust the phase of the timing reference signal, the problem of inconsistent data access caused by differences in device parameters is solved and the data access accuracy and yield rate of the memory device are improved.
Patent Information
- Application Number
- CN202410189316.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-02-20
- Publication Date
- 2024-09-20
AI Technical Summary
In low-power double data rate synchronous dynamic random access memory (LPDDR) devices, parameter differences between devices due to differences in manufacturing and packaging processes lead to inconsistent timing parameters during data access, affecting the device yield and requiring training. The program adjusts timing parameters to ensure the correctness of data access.
Design a memory access interface device, including a clock generation circuit, a transmitting circuit, a receiving circuit and a signal training circuit. The phase of the timing reference signal is adjusted through the training mode, and the training data signal is adjusted by comparing the contents of the training data signal and the return data signal. and data strobe signal timing to optimize memory data access.
By adjusting the phase of the timing reference signal, the data access accuracy and yield rate of the memory device can be effectively improved, and the stable operation of the memory device under different conditions can be ensured.
Smart Images

Figure CN118675569A
Abstract
Description
Background Art
[0001] When memory devices such as Low-Power Double Data Rate Synchronous Dynamic Random Access Memory (LPDDR SDRAM, hereinafter referred to as LPDDR) devices are mass-produced, parameters corresponding to each memory device may be different from each other due to differences in the manufacturing and packaging processes of different devices or differences in the printed circuit boards on which these devices are installed.
[0002] The parameters of the memory device, especially the parameters related to the timing of access information, have a significant impact on the access to data. If the same timing parameters are set in all these memory devices, the yield of the device will decrease. Therefore, these devices need to go through a training program to obtain the optimal timing parameters for accessing these information, thereby maintaining the correctness of these memory devices in data access. Summary of the invention
[0003] In view of the problems of the prior art, an object of the present invention is to provide a memory system and a memory access interface device and an operation method thereof to improve the prior art.
[0004] The present invention includes a memory access interface device, including: a clock generation circuit, a sending circuit, a receiving circuit and a signal training circuit. The signal training circuit is configured to: generate a training data signal and a training data strobe signal for one of a plurality of loops in a training program in a training mode, so that the sending circuit selects the training data signal and the training data strobe signal as an output data signal and an output data strobe signal, and sends them to a memory device according to a plurality of timing reference signals, wherein each of the timing reference signals has a phase and is generated according to the clock generation circuit; receive a read data signal from a receiving circuit, wherein the receiving circuit receives a return data signal and a return data strobe signal generated by the memory device, and generates a read data signal accordingly; compare the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to show whether the read data signal matches the signal content of the training data signal; store the comparison result; and control the clock generation circuit to adjust one of the phases of the timing reference signal to one of a plurality of phases to be tested, so as to execute a new loop of the loop in the training program, wherein the phase adjustment is used to further adjust the timing of one of the training data signal and the training data strobe signal.
[0005] The present invention also includes a memory system, including: a memory access controller, a memory device and a memory access interface device. The memory access interface device is electrically coupled to the memory access controller and includes: a clock generating circuit, a sending circuit, a receiving circuit and a signal training circuit. The signal training circuit is configured to execute a training program in a training mode, wherein the training program includes: for one of the multiple loops in the training program in the training mode, generating a training data signal and a training data selection signal, so that the sending circuit selects the training data signal and the training data selection signal as the output data signal and the output data selection signal, and sends them to the memory device according to multiple timing reference signals, wherein the timing reference signals each have a phase and are generated according to the clock generating circuit; receiving a read data signal from a receiving circuit, wherein the receiving circuit receives a return data signal and a return data selection signal generated by the memory device, and generates a read data signal accordingly; comparing the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to show whether the read data signal matches the signal content of the training data signal; storing the comparison result; and controlling the clock generating circuit to adjust one of the phases of the timing reference signal to one of the multiple phases to be tested, so as to execute a new cycle of the loop in the training program, wherein the adjusted phase is used to further adjust the timing of the training data signal and one of the training data selection signals.
[0006] The present invention also includes a memory access interface device operation method, comprising: for one of the multiple loops in the training program in the training mode, the signal training circuit of the memory access interface device generates a training data signal and a training data selection signal, so that the sending circuit of the memory access interface device selects the training data signal and the training data selection signal as the output data signal and the output data selection signal, and sends them to the memory device according to multiple timing reference signals, wherein the timing reference signals each have a phase and are generated according to the clock generating circuit of the memory access interface device; the signal training circuit receives the read data signal from the receiving circuit of the memory access interface device, The receiving circuit receives the return data signal and the return data selection signal generated by the memory device to generate a read data signal; the signal training circuit compares the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to indicate whether the read data signal matches the signal content of the training data signal; the signal training circuit stores the comparison result; and the signal training circuit controls the clock generating circuit to adjust one of the phases of the timing reference signal to one of a plurality of phases to be tested to execute a new cycle of the loop in the training program, wherein the adjusted phase is used to further adjust the timing of the training data signal and one of the training data selection signals.
[0007] The features, implementation and effects of the present invention are described in detail below with reference to the accompanying drawings as preferred embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A block diagram showing a memory system according to an embodiment of the present invention;
[0009] Figure 2 In the embodiment of the present invention, Figure 1 A more detailed block diagram of a memory access interface device;
[0010] Figure 3 In the embodiment of the present invention, Figure 2 A more detailed block diagram of the signal training circuit;
[0011] Figure 4 A schematic diagram showing a plurality of signals related to the operation of a memory access interface device in a training mode according to an embodiment of the present invention;
[0012] Figure 5 A schematic diagram showing a plurality of signals related to the operation of a memory access interface device in a training mode according to another embodiment of the present invention;
[0013] Figure 6 A flowchart showing a method for operating a memory access interface device according to an embodiment of the present invention; and
[0014] Figure 7 A more detailed flowchart of a method for operating a memory access interface device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0015] One of the purposes of the present invention is to provide a memory system and a memory access interface device and operation method thereof, wherein the timing reference signal is trained by adjusting the phase of the timing reference signal, and a valid phase is determined based on a comparison result generated by comparing the signal content of the training signal sent and the data signal returned by the memory device. The preferred phase of the timing reference signal can be determined based on the valid phase.
[0016] Please refer to Figure 1 . Figure 1 The block diagram of a memory system 100 according to an embodiment of the present invention is shown. The memory system 100 includes a memory access controller 110 , a memory access interface device 120 and a memory device 130 .
[0017] The memory system 100 may be electrically coupled to other modules through, for example, but not limited to, a system bus (not shown). For example, the memory system 100 may be electrically coupled to a processor (not shown) through the system bus so that the processor can access the memory system 100 .
[0018] In one embodiment, the memory access interface device 120 may be, for example, but not limited to, a physical layer circuit.
[0019] The memory device 130 is preferably a LPDDR memory device, such as a LPDDR4 memory. In one embodiment, the memory device 130 includes a memory storage circuit 140 and a first-in-first-out (FIFO) circuit 150 .
[0020] External access information, such as access information from a processor, may be received by the memory access controller 110 and then sent to the memory access interface device 120. Further, the access information may be sent from the memory access interface device 120 to the memory device 130, or may be used as a reference signal in the memory access interface device 120 to access the memory device 130.
[0021] The memory access interface device 120 actually includes a receiving circuit RX and a transmitting circuit TX. Therefore, different access information can be sent according to the operations of the transmitting circuit TX and the receiving circuit RX.
[0022] For the transmitting circuit TX, the memory access controller 110 may send access information including, for example, but not limited to, command and address signals CMD / ADR to the memory access interface device 120. The memory access controller 110 may also send a write data signal WD and a write enable signal WE to the memory access interface device 120.
[0023] The memory access interface device 120 adjusts the timing of the access information (e.g., delays the signal) to generate the output access information. In more detail, the memory access interface device 120 adjusts the timing of the command and address signals CMD / ADR (e.g., delays the signal) to generate the output command and address signals CMDO / ADRO to the memory device 130. On the other hand, the memory access interface device 120 can also adjust the timing of the write data signal WD and the write enable signal WE (e.g., delays the signal) to generate the output data signal DQO and the output data strobe signal DQSO to the memory device 130.
[0024] For the receiving circuit RX, the memory access interface device 120 receives the return data signal DQR and the return data strobe signal DQSR from the memory device 130 through the data transmission path, and samples the return data signal DQR according to the return data strobe signal DQSR to generate a read data signal RD to the memory access controller 110. In one embodiment, the receiving circuit RX can receive the read enable signal RE and operate accordingly to perform the above-mentioned operation.
[0025] Therefore, the internal data stored in the memory device 130 can be accessed according to the valid timing of the above signal.
[0026] Please also refer to Figure 2 . Figure 2 In the embodiment of the present invention, Figure 1 A more detailed block diagram of the memory access interface device 120 is shown in FIG.
[0027] In addition to the transmitting circuit TX and the receiving circuit RX, the memory access interface device 120 further includes a clock generating circuit 200 and a signal training circuit 210 .
[0028] In one embodiment, the memory access interface device 120 is configured by the memory access controller 110 to operate in a training mode or an operation mode. More specifically, in one embodiment, a processor electrically coupled to the memory system 100 may operate a software (not shown) to issue instructions, so that the memory access controller 110 receives the instructions and controls the memory access interface device 120 to operate in a training mode or an operation mode.
[0029] In the following paragraphs, the operation of the memory access interface device 120 in the training mode will be described first.
[0030] The clock generation circuit 200 is configured to generate a plurality of clock signals. In one embodiment, the clock signals include a clock signal CKCLK, a chip selection clock signal CSCLK, a data clock signal DQCLK, and a data strobe clock signal DQSCLK.
[0031] In one embodiment, the transmitting circuit TX operates according to the command clock signal CMDCLK generated by the clock generating circuit 200. The transmitting circuit TX is configured to transmit the output command and address signals CMDO / ADRO, the output data signal DQO, and the output data strobe signal DQSO to the memory device 130 according to a plurality of timing reference signals, each of which has a phase and is generated according to the clock generating circuit 200.
[0032] In more detail, the transmitting circuit TX transmits an output instruction and an address signal CMDO / ADRO for indicating a write operation according to the clock signal CKCLK and the chip select signal CS. Further, the transmitting circuit TX transmits an output data signal DQO according to the data clock signal DQCLK, and transmits an output data select signal DQSO to the memory device 130 according to the data select clock signal DQSCLK, so as to perform a write operation on the memory device 130 according to the output instruction and the address signal CMDO / ADRO.
[0033] In one embodiment, the clock signal CKCLK, the data clock signal DQCLK and the data strobe clock signal DQSCLK are provided by the clock generation circuit 200 and directly used as timing reference signals. The chip select signal CS is generated by the transmitting circuit TX via, for example, an internal D flip-flop circuit according to the chip select clock signal CSCLK provided by the clock generation circuit 200, wherein the chip select clock signal CSCLK includes a plurality of continuous clock pulses, and the chip select signal CS has a single pulse every predetermined time period.
[0034] Please also refer to Figure 3 . Figure 3 In the embodiment of the present invention, Figure 2 A more detailed block diagram of the signal training circuit 210 is shown in FIG.
[0035] In one embodiment, the signal training circuit 210 is based on Figure 2 The signal training circuit 210 operates according to the command clock signal CMDCLK generated by the clock generating circuit 200. The signal training circuit 210 includes a signal generating circuit 220, a comparing circuit 230, a phase control circuit 240, a scanning circuit 250 and a control unit 260.
[0036] The signal training circuit 210 executes a plurality of loops of a training procedure in the training mode. The training procedure executed by the signal training circuit 210 will be described in conjunction with the structure and operation of the components included in the signal training circuit 210.
[0037] The signal generating circuit 220 is configured to generate the training command and address signal CAT so that the transmitting circuit TX selects the training command and address signal CAT as the output command and address signal CMDO / ADRO for transmission, wherein the output command and address signal CMDO / ADRO is sent to the memory device 130 .
[0038] The signal generating circuit 220 is also configured to generate a training data signal DQT and a training data strobe signal DQST, wherein the data clock signal DQCLK corresponds to the training data signal DQT, and the data strobe clock signal DQSCLK corresponds to the training data strobe signal DQST. The transmitting circuit TX selects the training data signal DQT and the training data strobe signal DQST as the output data signal DQO and the output data strobe signal DQSO and transmits them to the memory device 130.
[0039] In one embodiment, the memory access interface device 120 further includes multiplexers MUX1 - MUX3 electrically coupled to the transmitting circuit TX, and the transmitting circuit TX includes transmitting units TX1 - TX3 .
[0040] The multiplexer MUX1 is a command and address multiplexer, so that the transmitting unit TX1 of the transmitting circuit TX selects the training command and address signal CAT as the output command and address signal CMDO / ADRO for transmission in the training mode.
[0041] The multiplexer MUX2 is a data multiplexer, so that the transmitting unit TX2 of the transmitting circuit TX selects the training data signal DQT as the output data signal DQO for transmission in the training mode. The multiplexer MUX3 is a data strobe multiplexer, so that the transmitting unit TX3 of the transmitting circuit TX selects the training data strobe signal DQST as the output data strobe signal DQSO for transmission in the training mode.
[0042] In one embodiment, when the sending unit TX1 selects the training instruction and address signal CAT for indicating the write operation as the output instruction and address signal CMDO / ADRO for sending in the training mode, Figure 1 A first-in-first-out (FIFO) circuit 150 with a preset depth included in the memory device 130 will be accessed accordingly, wherein the output data signal DQO and the output data strobe signal DQSO will be written into the FIFO circuit 150.
[0043] exist Figure 1 , the depth of the FIFO circuit 150 is 5. Therefore, the FIFO circuit 150 includes five FIFO units F0-F4 to receive the output data signal DQO and the output data strobe signal DQSO. However, Figure 1 The depth of the FIFO circuit 150 shown in FIG. 1 is only an example, and the circuit may have different depths according to actual needs.
[0044] Further, when the sending unit TX1 selects another training instruction and address signal CAT for indicating a read operation as the output instruction and address signal CMDO / ADRO for sending in the training mode, the first-in-first-out circuit 150 will be accessed accordingly, wherein the return data signal DQR and the return data selection signal DQSR will be generated by the first-in-first-out circuit 150.
[0045] In one embodiment, the receiving circuit RX operates according to the command clock signal CMDCLK generated by the clock generating circuit 200. The receiving circuit RX receives the return data signal DQR and the return data strobe signal DQSR generated by the memory device 130 to generate the read data signal RD.
[0046] The comparison circuit 230 receives the read data signal RD from the receiving circuit RX and is configured to compare the signal content of the training data signal DQT with the read data signal RD received from the receiving circuit RX and generated by the memory device 130 to generate a comparison result CR. The comparison result CR is used to indicate whether the read data signal RD matches the signal content of the training data signal DQT.
[0047] In one embodiment, since the memory device 130 is preferably a LPDDR memory device, the comparison result CR includes a positive edge result CRP and a negative edge result CRN, which correspond to data generated by sampling the positive edge and the negative edge of the return data selection signal DQSR, respectively. The comparison result CR may optionally include a comprehensive result CC, and the comprehensive result CC is generated by performing an OR logic operation on the positive edge result CRP and the negative edge result CRN.
[0048] The phase control circuit 240 is configured to generate a phase control signal PS to control the clock generation circuit 200 to adjust the phase of at least one of the timing reference signals, such as the phase of one of the data clock signal DQCLK and the data strobe clock signal DQSCLK. In one embodiment, the phases of the clock signal CKCLK and the chip select signal CS can be trained by an additional training procedure to ensure accuracy, which will not be repeated here.
[0049] The scanning circuit 250 is configured to control the signal generating circuit 220 and the phase control circuit 240 to perform multiple cycles of the training procedure. In the training procedure, the first of the data clock signal DQCLK and the data strobe clock signal DQSCLK is selected as the selected clock signal, and the second of the data clock signal DQCLK and the data strobe clock signal DQSCLK is used as the unselected clock signal. When one cycle of the training procedure is completed, the phase of the selected clock signal is adjusted to one of the multiple phases to be tested to perform a new cycle of these cycles in the training procedure until all the phases to be tested are trained.
[0050] The scanning circuit 250 is also configured to store the comparison result CR of each cycle in the training procedure.
[0051] The control unit 260 is configured to provide test data for generating the training command and address signal CAT, the training data signal DQT, and the training data strobe signal DQST, so that the scan circuit 250 controls the signal generating circuit 220 to generate the training command and address signal CAT, the training data signal DQT, and the training data strobe signal DQST. Furthermore, the control unit 260 is configured to access the comparison result CR stored in the scan circuit 250 to determine the preferred clock phase of the selected clock signal (e.g., one of the data clock signal DQCLK and the data strobe clock signal DQSCLK).
[0052] In one embodiment, the control unit 260 may be implemented by a hardware circuit disposed in the signal training circuit 210. In another embodiment, the control unit 260 may be implemented by software operated by a processor coupled to the memory system 100. In the case where the control unit 260 is implemented by software, the control unit 260 may provide test data to a buffer of the signal training circuit 210 for access by the scanning circuit 250. The scanning circuit 250 may store the comparison result CR in another buffer for access by the control unit 260.
[0053] The following paragraphs will provide a detailed description of the training process loop executed by the signal training circuit 210 .
[0054] Please refer to Figure 4 . Figure 4 A schematic diagram showing various signals associated with the operation of the memory access interface device 120 in the training mode according to an embodiment of the present invention.
[0055] exist Figure 4 In the embodiment, the phases of the training command and the address signal CAT correspond to the clock signal CKCLK, wherein the training command and the address signal CAT include a write operation command WR and a read operation command RA.
[0056] Since the training data signal DQT is transmitted according to the data clock signal DQCLK, the phase of the training data signal DQT corresponds to the data clock signal DQCLK. Since the training data selection signal DQST is transmitted according to the data selection clock signal DQSCLK, the phase of the training data selection signal DQST corresponds to the data selection clock signal DQSCLK.
[0057] In this embodiment, the data clock signal DQCLK is selected as the selected clock signal, and the data strobe clock signal DQSCLK is used as the unselected clock signal. The clock generation circuit 200 maintains the phase of the unselected clock signal, such as the phase of the data strobe clock signal DQSCLK, as the first preferred clock phase.
[0058] Figure 4 N cycles of the training procedure are shown as an example. The phase of the data clock signal DQCLK will be adjusted in each cycle of the training procedure. Therefore, each cycle of the training procedure corresponds to one of the N phases to be tested of the data clock signal DQCLK, where N is a positive integer.
[0059] In this embodiment, in the first cycle of the training procedure, the phase of the data clock signal DQCLK has a preset phase DQP, and the phase of the data selection clock signal DQSCLK has a preset phase DQSP. In the second cycle of the training procedure, the phase of the data clock signal DQCLK is adjusted to a phase to be tested, and the phase to be tested is the sum of the default phase DQP and the unit phase ΔP. Figure 4 The arrows marked on the data clock signal DQCLK in the second cycle and the Nth cycle are used to indicate the phase of the data clock signal DQCLK and the adjustment direction of the corresponding training data signal DQT. The phase of the data strobe clock signal DQSCLK is maintained at the preset phase DQSP.
[0060] Therefore, other loops in the training procedure can be executed successively until all N loops are executed. In the Nth loop of the training procedure, the phase of the data clock signal DQCLK is adjusted to the sum of the preset phase DQP and N-1 unit phases ΔP, expressed as DQP+(N-1)ΔP. The phase of the data strobe clock signal DQSCLK is maintained at the preset phase DQSP.
[0061] Figure 3 The comparison circuit 230 thus compares the signal content of the training data signal DQT and the read data signal RD and generates a comparison result CR in each cycle.
[0062] It should be noted that the number of phases to be tested, which corresponds to the number of cycles to be performed in the training procedure, can be determined by the required accuracy of the data clock signal DQCLK within one clock cycle.
[0063] For example, the clock cycle of the data clock signal DQCLK can be divided into 8 phases, each corresponding to one of the unit phases ΔP, so that the training program executes 8 cycles. When higher accuracy is required, the clock cycle of the data clock signal DQCLK can be divided into 16 phases, each corresponding to one of the unit phases ΔP, so that the training program executes 16 cycles.
[0064] according to Figure 3 The scanning circuit 250 stores the comparison results CR of each cycle in the training program. When the comparison result CR corresponding to one of the phases to be tested of the data clock signal DQCLK shows that the signal content of the read data signal RD matches the signal content of the training data signal DQT, the phase to be tested is determined to be a valid phase. The second preferred clock phase of the selected clock signal, such as the data clock signal DQCLK, can be determined based on the valid phase to be tested. For example, the middle phase position of the valid phase of the data clock signal DQCLK can be selected as the second preferred clock phase of the data clock signal DQCLK.
[0065] Figure 5 A schematic diagram showing a plurality of signals associated with the operation of the memory access interface device 120 in the training mode according to another embodiment of the present invention.
[0066] exist Figure 5 In the embodiment, the phases of the training command and the address signal CAT correspond to the clock signal CKCLK, wherein the training command and the address signal CAT include a write operation command WR and a read operation command RA.
[0067] Since the training data signal DQT is transmitted according to the data clock signal DQCLK, the phase of the training data signal DQT corresponds to the data clock signal DQCLK. Since the training data selection signal DQST is transmitted according to the data selection clock signal DQSCLK, the phase of the training data selection signal DQST corresponds to the data selection clock signal DQSCLK.
[0068] In this embodiment, the data strobe clock signal DQSCLK is selected as the selected clock signal, and the data clock signal DQCLK is used as the unselected clock signal. The clock generation circuit 200 maintains the phase of the unselected clock signal, such as the phase of the data clock signal DQCLK, as the first preferred clock phase.
[0069] Figure 5 N cycles of the training procedure are shown as an example. The phase of the data strobe clock signal DQSCLK will be adjusted in each cycle of the training procedure. Therefore, each cycle of the training procedure corresponds to one of the N phases to be tested of the data strobe clock signal DQSCLK, where N is a positive integer.
[0070] Figure 5 The training procedure shown is similar to Figure 4 The training procedure is similar to that shown in FIG. 1 , wherein in the first cycle of the training procedure, the phase of the data strobe clock signal DQSCLK has a preset phase DQSP, and the default phase DQSP is accumulated by a unit phase ΔP in each cycle and is calculated by Figure 3 The comparison circuit 230 generates a comparison result CR. Figure 5 The arrows marked on the data strobe clock signal DQSCLK in the second cycle and the Nth cycle are used to indicate the phase of the data strobe clock signal DQSCLK and the adjustment direction of the corresponding training data strobe signal DQST. The data clock signal DQCLK has a default phase DQP and remains unchanged during the training process. Therefore, Figure 5 The details of the training procedure shown will not be repeated.
[0071] according to Figure 3 The scanning circuit 250 stores the comparison results CR of each cycle in the training program. When the comparison result CR corresponding to one of the phases to be tested of the data strobe clock signal DQSCLK shows that the signal content of the read data signal RD matches the signal content of the training data signal DQT, the phase to be tested is determined to be a valid phase. The second preferred clock phase of the selected clock signal, such as the data strobe clock signal DQSCLK, can be determined based on the valid phase to be tested. For example, the middle phase position of the valid phase of the data strobe clock signal DQSCLK can be selected as the second preferred clock phase of the data strobe clock signal DQSCLK.
[0072] After the training procedure is completed, the memory access interface device 120 is Figure 1 The memory access controller 110 is configured to be in an operating mode.
[0073] In the operation mode, the transmission unit TX1 selects the command and address signals CMD / ADR sent by the memory access controller 110 as the output command and address signals CMDO / ADRO via the multiplexer MUX1. The transmission unit TX2 selects the write data signal WD sent by the memory access controller 110 as the output data signal DQO via the multiplexer MUX2. The transmission unit TX3 selects the write enable signal WE sent by the memory access controller 110 as the output data select signal DQSO via the multiplexer MUX3.
[0074] The output data signal DQO and the output data strobe signal DQSO are transmitted according to the first preferred clock phase of the selected clock signal and the second preferred clock phase of the unselected clock signal. Therefore, the memory device 130 can be accessed by accessing information such as the output data signal DQO and the output data strobe signal DQSO with preferred timing.
[0075] The memory access interface device 120 of the present invention can train the timing reference signal by adjusting the phase of the timing reference signal, and determine the effective phase based on the comparison result generated by comparing the signal content of the sent training signal with the data signal returned by the memory device. The preferred phase of the timing reference signal can be determined based on the effective phase.
[0076] Please refer to Figure 6 . Figure 6 A flowchart of a memory access interface device operating method 600 is shown in an embodiment of the present invention.
[0077] In addition to the aforementioned devices, the present invention further discloses a memory access interface device operating method 600, which is applied to, for example, but not limited to Figure 2 The memory access interface device 120 is implemented as follows: Figure 6 As shown, the following steps are included.
[0078] In step S610, for one of the multiple cycles in the training program in the training mode, the signal training circuit 210 of the memory access interface device 120 generates a training data signal DQT and a training data selection signal DQST, so that the sending circuit TX of the memory access interface device 120 selects the training data signal DQT and the training data selection signal DQST as the output data signal DQO and the output data selection signal DQSO, and sends them to the memory device 130 according to multiple timing reference signals, wherein the timing reference signals each have a phase and are generated according to the clock generation circuit 200.
[0079] In step S620 , the signal training circuit 210 receives the read data signal RD from the receiving circuit RX of the memory access interface device 120 , wherein the receiving circuit RX receives the return data signal DQR and the return data strobe signal DQSR generated by the memory device 130 to generate the read data signal RD.
[0080] In step S630 , the signal training circuit 210 compares the signal content of the training data signal DQT with the read data signal RD to generate a comparison result CR, wherein the comparison result CR is used to indicate whether the signal content of the read data signal RD matches the signal content of the training data signal DQT.
[0081] In step S640 , the comparison result CR is stored by the signal training circuit 210 .
[0082] In step S650, the signal training circuit 210 controls the clock generation circuit 200 to adjust the phase of one of the timing reference signals to one of the multiple phases to be tested to execute a new cycle of the loop in the training procedure, wherein the adjusted phase is used to further adjust the timing of one of the training data signal DQT and the training data selection signal DQST.
[0083] Figure 7 A more detailed flowchart of a memory access interface device operating method 700 is shown in an embodiment of the present invention. The memory access interface device operating method 700 can be applied to Figure 4 as well as Figure 5 In the embodiment of .
[0084] In step S705, one cycle of the training procedure begins.
[0085] In step S710, it is determined whether the current cycle is the first cycle of the training program.
[0086] In step S715, when the current loop is the first loop of the training program, the training instruction and address signal CAT indicating the write operation are sent as the output instruction and address signal CMDO / ADRO, the training data signal DQT is sent as the output data signal DQO, and the training data selection signal DQST is sent as the output data selection signal DQSO.
[0087] In step S720, the training command and address signal CAT indicating the read operation are sent as the output command and address signals CMDO / ADRO, and the read data signal RD is received.
[0088] In step S725 , the training data signal DQT and the read data signal RD are compared, and the comparison result CR is stored.
[0089] In step S730, it is determined whether all the phases to be tested have been trained. If not all the phases to be tested have been trained, the process proceeds to step S710 for determination to start a new cycle of the training procedure.
[0090] In step S745, it is determined whether the previous cycle has trained the training data signal DQT.
[0091] In step S750 , when the previous cycle is to train the training data signal DQT, the phase of the data clock signal DQCLK is adjusted to perform the subsequent steps S715 ˜ S730 .
[0092] In step S755 , when the previous cycle is not for training the training data signal DQT, the phase of the data strobe clock signal DQSCLK is adjusted to perform the subsequent steps S715 - S730 .
[0093] In step S760, when it is determined in step S730 that all phases to be tested have been trained, all loops of the training procedure are terminated.
[0094] It should be noted that the above-mentioned implementation is only an example. In other embodiments, those skilled in the art may make changes without violating the spirit of the present invention.
[0095] In summary, the memory system, memory access interface device, and memory access interface device operating method of the present invention can train the timing reference signal by adjusting the phase of the timing reference signal, and determine the effective phase based on the comparison result generated by comparing the signal content of the sent training signal with the data signal returned by the memory device. The preferred phase of the timing reference signal can be determined based on the effective phase.
[0096] Although the embodiments of the present case are described above, these embodiments are not intended to limit the present case. Those with ordinary knowledge in the technical field may make changes to the technical features of the present case based on the explicit or implicit contents of the present case. All these changes may fall within the scope of patent protection sought in the present case. In other words, the scope of patent protection in the present case shall be subject to the scope of the patent application defined in this specification.
[0097]
Explanation of symbols
[0098] 100: Memory System
[0099] 110: Memory access controller
[0100] 120: Memory access interface device
[0101] 130: Memory device
[0102] 140: Memory storage circuit
[0103] 150: First-in-first-out circuit
[0104] 200: Clock generation circuit
[0105] 210: Signal training circuit
[0106] 220: Signal generating circuit
[0107] 230: Comparison Circuit
[0108] 240: Phase control circuit
[0109] 250: Scanning circuit
[0110] 260: Control unit
[0111] 600: Memory access interface device operation method
[0112] S610~S650: Steps
[0113] 700: Memory access interface device operation method
[0114] S705~S760: Steps
[0115] ΔP: Unit phase
[0116] CAT: Training commands and address signals
[0117] CC: Comprehensive results
[0118] CKCLK: clock signal
[0119] CMDCLK: instruction clock signal
[0120] CSCLK: chip select clock signal
[0121] CMD / ADR: command and address signal
[0122] CMDO / ADRO: Output command and address signals
[0123] CR: Comparison results
[0124] CRP: True Result
[0125] CRN: Negative Edge Result
[0126] CS: chip select signal
[0127] DQCLK: data clock signal
[0128] DQSCLK: Data strobe clock signal
[0129] DQO: output data signal
[0130] DQSO: Output data strobe signal
[0131] DQP: Preset Phase
[0132] DQSP: Preset Phase
[0133] DQR: Return data signal
[0134] DQSR: Return data select signal
[0135] DQT: Training Data Signal
[0136] DQST: training data strobe signal
[0137] F0~F4: First-in-first-out unit
[0138] MUX1~MUX3:Multi-task device
[0139] PS: Phase control signal
[0140] RA: Read operation instruction
[0141] RD: read data signal
[0142] RE: Read enable signal
[0143] RX: Receiver
[0144] TX: Transmitter
[0145] TX1~TX3: Transmitting unit
[0146] WD: Write data signal
[0147] WE: Write enable signal
[0148] WR: Write operation instruction
Claims
1. A memory access interface device, comprising: Clock generation circuit; Transmitting circuit; Receiving circuit; as well as Signal training circuit, configured as: For one of the multiple cycles in the training procedure in the training mode, generating a training data signal and a training data strobe signal, so that the transmitting circuit selects the training data signal and the training data strobe signal as an output data signal and an output data strobe signal, and transmits them to the memory device according to multiple timing reference signals, wherein the multiple timing reference signals each have a phase and are generated according to the clock generating circuit; receiving a read data signal from the receiving circuit, wherein the receiving circuit receives a return data signal and a return data strobe signal generated by the memory device to generate the read data signal; comparing the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to indicate whether the read data signal matches the signal content of the training data signal; storing the comparison result; as well as The clock generation circuit is controlled to adjust the phase of one of the multiple timing reference signals to one of the multiple phases to be tested to execute a new cycle of the multiple cycles in the training program, wherein the phase is adjusted to further adjust the timing of one of the training data signal and the training data selection signal.
2. The memory access interface device according to claim 1, wherein the plurality of timing reference signals include a data clock signal corresponding to the training data signal and a data strobe clock signal corresponding to the training data strobe signal, wherein the data clock signal and the data strobe clock signal are provided by the clock generating circuit, and the signal training circuit is further configured as follows: Selecting a first one of the data clock signal and the data strobe clock signal as a selected clock signal, and a second one of the data clock signal and the data strobe clock signal as a non-selected clock signal; Controlling the clock generating circuit to maintain the phase of the unselected clock signal as a first preferred clock phase; Controlling the clock generating circuit to adjust the phase of the selected clock signal until all of the plurality of phases to be tested have completed training; When the comparison result corresponding to one of the plurality of phases to be tested of the selected clock signal shows that the signal content of the read data signal is consistent with the signal content of the training data signal, determining it as a valid phase; as well as A second preferred clock phase of the selected clock signal is determined according to the valid phase to be measured.
3. The memory access interface device according to claim 2, wherein the memory access interface device is configured to operate in an operating mode so that the sending circuit, in the operating mode, selects a write data signal and a write enable signal to be output as the output data signal and the output data select signal based on the unselected clock signal having the first preferred clock phase and the selected clock signal having the second preferred clock phase.
4. The memory access interface device according to claim 3, further comprising: a data multiplexer electrically coupled to the transmitting circuit, so that the transmitting circuit selects the training data signal as the output data signal for transmission in the training mode and selects the write data signal as the output data signal for transmission in the operation mode via the data multiplexer; as well as A data strobe multiplexer is electrically coupled to the transmitting circuit so that the transmitting circuit selects the training data strobe signal as the output data strobe signal for transmission in the training mode via the data strobe multiplexer, and selects the write enable signal as the output data strobe signal for transmission in the operation mode.
5. The memory access interface device according to claim 2, wherein the signal training circuit comprises: A signal generating circuit configured to generate the training data signal and the training data selection signal; a comparison circuit configured to compare the signal content of the training data signal and the read data signal to generate the comparison result; a phase control circuit configured to generate a phase control signal to control the clock generation circuit to adjust the phase of at least one of the plurality of clock signals, thereby adjusting the phase of at least one of the plurality of timing reference signals; a scanning circuit configured to control the signal generating circuit and the phase control circuit to execute the plurality of cycles of the training procedure and store the comparison result; as well as A control unit is configured to provide test data for generating the training data signal and the training data strobe signal, and access the comparison result to determine the first preferred clock phase of the unselected clock signal and the second preferred clock phase of the selected clock signal. 6 . The memory access interface device according to claim 5 , wherein the comparison result comprises a positive edge result and a negative edge result, and selectively comprises a comprehensive result, and the comprehensive result is generated by performing an OR logic operation on the positive edge result and the negative edge result.
7. The memory access interface device according to claim 1, wherein the signal training circuit is further configured to generate training instruction and address signals in the training mode, so that the sending circuit selects the training instruction and address signals as output instruction and address signals, and sends them to the memory device according to the instruction and address clock signals and the chip selection clock signal in the plurality of timing reference signals; and The sending circuit selects the command and address signals sent by the memory access controller as the output command and address signals to be sent to the memory device according to the command and address clock signal and the chip selection clock signal in the operation mode.
8. The memory access interface device according to claim 1, wherein the training data signal and the training data selection signal are sent as the output data signal and the output data selection signal to a first-in-first-out circuit with a default depth in the memory device, so that the receiving circuit receives the return data signal and the return data selection signal from the first-in-first-out circuit.
9. A memory system comprising: a memory access controller; Memory device; as well as A memory access interface device, electrically coupled to the memory access controller, and comprising: Clock generation circuit; Transmitting circuit; receiving circuit; and The signal training circuit is configured to execute a training procedure in a training mode, wherein the training procedure includes: For one of the plurality of cycles in the training procedure in the training mode, generating a training data signal and a training data strobe signal, so that the transmitting circuit selects the training data signal and the training data strobe signal as an output data signal and an output data strobe signal, and transmits the training data signal and the training data strobe signal to the memory device according to a plurality of timing reference signals, wherein the plurality of timing reference signals each have a phase and are generated according to the clock generating circuit; receiving a read data signal from the receiving circuit, wherein the receiving circuit receives a return data signal and a return data strobe signal generated by the memory device to generate the read data signal; comparing the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to indicate whether the read data signal matches the signal content of the training data signal; storing the comparison result; and The clock generation circuit is controlled to adjust the phase of one of the multiple timing reference signals to one of the multiple phases to be tested to execute a new cycle of the multiple cycles in the training program, wherein the phase is adjusted to further adjust the timing of one of the training data signal and the training data selection signal.
10. A method for operating a memory access interface device, comprising: For one of the multiple cycles in the training procedure in the training mode, the signal training circuit of the memory access interface device generates a training data signal and a training data strobe signal, so that the sending circuit of the memory access interface device selects the training data signal and the training data strobe signal as the output data signal and the output data strobe signal, and sends them to the memory device according to multiple timing reference signals, wherein the multiple timing reference signals each have a phase and are generated according to the clock generation circuit of the memory access interface device; The signal training circuit receives a read data signal from a receiving circuit of the memory access interface device, wherein the receiving circuit receives a return data signal and a return data strobe signal generated by the memory device to generate the read data signal; The signal training circuit compares the signal content of the training data signal with the read data signal to generate a comparison result, wherein the comparison result is used to indicate whether the read data signal matches the signal content of the training data signal; storing the comparison result by the signal training circuit; as well as The signal training circuit controls the clock generating circuit to adjust the phase of one of the multiple timing reference signals to one of the multiple phases to be tested, so as to execute a new cycle of the multiple cycles in the training program, wherein the phase is adjusted to further adjust the timing of the training data signal and one of the training data selection signals.
