Write leveling circuit for memory and method of controlling the same
By using the write signal generation unit and sampling unit in the write leveling circuit, and by using the specified bit indication to shorten the time to an odd or even multiple for delay processing, the problem of inconsistent specifications in the internal write leveling of the memory is solved, and the effective edge alignment of the data strobe signal and the write signal is achieved, thus meeting the memory specification requirements.
Patent Information
- Application Number
- CN202210986112.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-16
AI Technical Summary
Because the time specifications of the write latency period and the shortened write latency period of the memory are inconsistent, it is impossible to directly determine the indication signal corresponding to the shortened write latency period, and internal write leveling cannot be achieved.
A write leveling circuit is provided, including a write signal generation unit and a sampling unit. By receiving a first clock signal and a first indication signal, the circuit uses a specified bit to indicate that the time is shortened to an odd or even multiple of the clock period, performs delay processing, outputs a second write signal, and determines whether the effective edges of the data strobe signal and the write signal are aligned through the sampling unit, and adjusts the delay to achieve alignment.
It effectively solves the problem of delay processing caused by inconsistent specifications during the internal write leveling process of memory, ensuring effective edge alignment of the data strobe signal and the write signal, and meeting the memory specification requirements.
Smart Images

Figure CN117636944B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of memory technology, and in particular to a write leveling circuit for memory and a control method thereof. Background Technology
[0002] Currently, before writing data into memory, write leveling is required. This involves continuously adjusting the data strobe signal (DQS) received by the memory so that the time difference between the effective edge of the DQS signal and the effective edge of the clock signal received by the memory meets the memory specifications. Memory write leveling can be divided into external write leveling and internal write leveling. In internal write leveling, the shortened column write latency (CWL) needs to be determined based on the original column address strobe write latency and the shortened CWL. The write signal is then delayed based on the shortened CWL.
[0003] However, during the aforementioned delay processing, the timing specifications for the write latency period and the shortened write latency period are inconsistent in the memory specifications, making it impossible to directly determine the indication signal corresponding to the shortened write latency period, thus preventing the implementation of the aforementioned delay processing.
[0004] Therefore, a write leveling circuit is needed to solve the problem of the inability to perform delay processing. Summary of the Invention
[0005] This disclosure provides a write leveling circuit and its control method for memory, to solve the problem in the related art where internal write leveling of memory cannot be achieved due to the inconsistency between the time specifications of the column write latency period and the shortening time of the column write latency period.
[0006] In a first aspect, this disclosure provides a write leveling circuit method applied to a memory, comprising:
[0007] A write signal generation unit is configured to receive a first clock signal and a first indication signal, and to perform delay processing on the first write signal according to the first clock signal, the first indication signal, and a specified bit in the first indication signal, and output a second write signal; wherein, the first indication signal is used to indicate the shortening time of the column write latency of the memory, and the first indication signal includes a specified bit; the character of the specified bit is used to indicate that the shortening time is an odd multiple of the clock period of the first clock signal or the shortening time is an even multiple of the clock period of the first clock signal;
[0008] The sampling unit, connected to the write signal generation unit, is used to receive the first data strobe signal and the second write signal, and output the second sampling signal according to the first data strobe signal and the second write signal.
[0009] In some embodiments, the first indication signal includes at least one binary character, the designated bit is the least significant bit of the first indication signal, and the write signal generation unit includes:
[0010] The preprocessing module is used to sum the first indication signal and the characters of a specified position of the first indication signal to obtain a preprocessed signal.
[0011] The determination module, connected to the preprocessing module, is used to delay the first write signal based on the first clock signal, the preprocessing signal, the second indication signal, and a specified bit of the first indication signal, and output a second write signal; the second indication signal is used to indicate the column write latency of the memory.
[0012] In some embodiments, the determining module includes:
[0013] A processing submodule, connected to the preprocessing module, is used to determine a third indication signal based on the preprocessing signal and the second indication signal, wherein the third indication signal is used to indicate the time that the first write signal currently needs to be delayed;
[0014] A shift register is used to delay the first write signal based on the third indication signal and the first clock signal to obtain a third write signal;
[0015] The compensator, connected to the shift register, compensates for the delay of the third write signal based on the specified bit of the first indication signal and the first clock signal to obtain the second write signal.
[0016] In some embodiments, the processing submodule is specifically used for:
[0017] Based on the preprocessing signal and the first mapping relationship, the shortening time of the write latency of the memory corresponding to the first indication signal that is the same as the preprocessing signal in the first mapping relationship is determined as the first delay time corresponding to the preprocessing signal; wherein, the first delay time is used to characterize the current time that the write latency of the memory needs to be shortened; the first mapping relationship is used to indicate multiple first indication signals of the memory, and the shortening time of the write latency of the memory corresponding to each of the first indication signals;
[0018] Based on the second indication signal and the second mapping relationship, the column write latency period corresponding to the second indication signal is determined; the second mapping relationship is used to indicate multiple second indication signals of the memory, and the column write latency period corresponding one-to-one with the second indication signal.
[0019] The difference between the first delay time corresponding to the preprocessed signal and the column write latency period corresponding to the second indication signal is calculated to obtain the second delay time. Based on the second delay time and the second mapping relationship, the indication signal corresponding to the second delay time is determined to be the third indication signal.
[0020] In some embodiments, the compensator is specifically used for;
[0021] If it is determined that the character of a specified bit of the first indication signal represents that the shortened time is an even multiple of the clock period of the first clock signal, then the third write signal is used as the second write signal.
[0022] If it is determined that the character of a specified bit in the first indication signal represents that the shortening time is an odd multiple of the clock period of the first clock signal, the third write signal is delayed to obtain the second write signal. The duration of the delay is the difference between the first delay time corresponding to the preprocessing signal and the shortening time of the write latency period of the memory indicated by the first indication signal.
[0023] In some embodiments, the compensator includes:
[0024] A delay unit, connected to the shift register, is used to delay the third write signal output by the shift register to obtain a delayed third write signal.
[0025] A first data selector, connected to both the delay unit and the shift register, is used to receive the delayed third write signal output by the delay unit and the third write signal output by the shift register. The first data selector is also used to receive a specified bit of the first indication signal. If the character of the specified bit of the first indication signal represents an even multiple of the clock period of the first clock signal, the first data selector outputs the third write signal as the second write signal. If the character of the specified bit of the first indication signal represents an odd multiple of the clock period of the first clock signal, the first data selector outputs the delayed third write signal as the second write signal.
[0026] In some embodiments, the write signal generation unit further includes:
[0027] A decoder, connected to the determining module, is used to decode the received write command and output the first write signal.
[0028] In some embodiments, the write signal generation unit further includes: a signal conversion module; the decoder is connected to the write signal generation unit through the signal conversion module;
[0029] The signal conversion module is used to perform pulse widening processing on the first write signal output by the decoder, output the widened write signal, and output the widened write signal as the first write signal to the determining module.
[0030] In some embodiments, the second sampling signal characterizes whether the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0031] In some embodiments, the sampling unit includes:
[0032] The second flip-flop has its data terminal connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the second flip-flop is used to receive the first data strobe signal, and the second flip-flop is used to output a second sampling signal based on the second write signal and the first data strobe signal.
[0033] In some embodiments, the write leveling circuit further includes:
[0034] The delay unit is used to delay the received first data strobe signal and output the second data strobe signal.
[0035] The sampling unit, connected to the delay unit, is also used to receive the second data strobe signal output by the delay unit, and output a first sampling signal according to the second data strobe signal and the second write signal; the first sampling signal characterizes whether the effective edge of the first clock signal is aligned with the effective edge of the first data strobe signal.
[0036] In some embodiments, the sampling unit includes: a first trigger, a second trigger, and a second data selector;
[0037] The data terminal of the first flip-flop is connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the first flip-flop is connected to the output terminal of the delay unit and is used to receive the second data strobe signal output by the delay unit; the first flip-flop is used to output a first sampling signal based on the second write signal and the second data strobe signal.
[0038] The data terminal of the second flip-flop is connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the second flip-flop is used to receive the first data strobe signal, and the second flip-flop is used to output a second sampling signal based on the second write signal and the first data strobe signal.
[0039] The output of the first trigger is connected to the first terminal of the second data selector, and the output of the second trigger is connected to the second terminal of the second data selector.
[0040] In some embodiments, the write leveling circuit further includes:
[0041] The first converter, connected to the delay unit and the sampling unit respectively, is used to perform logic level conversion processing on the received third data strobe signal to obtain the first data strobe signal; wherein, the level of the third data strobe signal is a current mode logic level; and the level of the first data strobe signal is a CMOS level.
[0042] In some embodiments, the write leveling circuit further includes:
[0043] The second converter, connected to the write signal generation unit, is used to perform logic level conversion processing on the received second clock signal to obtain the first clock signal; wherein the level of the second clock signal is a current-mode logic level; and the level of the first clock signal is a CMOS level.
[0044] In some embodiments, the first sampling signal is specifically used to indicate adjustment of the delay of the first data strobe signal when the effective edge of the first clock signal, represented by the first sampling signal, is not aligned with the effective edge of the first data strobe signal; the second sampling signal is specifically used to indicate adjustment of the delay of the first write signal or the delay of the first data strobe signal when the effective edge of the first clock signal, represented by the first sampling signal, is aligned with the effective edge of the first data strobe signal, and the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal.
[0045] In a second aspect, this disclosure provides a control method for a write leveling circuit applied to a memory, the method being applied to the circuit described in the first aspect, the method comprising:
[0046] Repeat the following steps until it is determined that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal based on the second sampling signal output by the sampling unit: if it is determined that the second sampling signal indicates that the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal, then adjust the time delay of the first data strobe signal or the first indication signal.
[0047] When the effective edge of the first data strobe signal aligns with the effective edge of the second write signal, the delay of the first data strobe signal is extended by a preset period of time, and the extended signal is determined as the data strobe signal received when the memory performs a write operation.
[0048] In some embodiments, determining the alignment of the effective edge of the first data strobe signal with the effective edge of the second write signal based on the second sampling signal output by the sampling unit includes:
[0049] If the level value of the second sampling signal output by the sampling unit changes from the second level value to the first level value, then it is determined that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0050] In some embodiments, the repeated steps until it is determined, based on the second sampling signal output by the sampling unit, that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal: if it is determined that the second sampling signal indicates that the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal, then adjusting the delay of the first data strobe signal or the first indication signal includes:
[0051] Repeat the following steps until the level value of the second sampling signal output by the sampling unit changes from the first level value to the second level value: If it is determined that the level value of the second sampling signal output by the sampling unit is the first level value, then adjust the first indication signal received by the write signal generation unit to increase the shortening time of the column write latency of the memory indicated by the first indication signal;
[0052] Repeat the following steps until the level value of the second sampling signal output by the sampling unit switches from the second level value to the first level value: reduce the delay of the first data strobe signal received by the sampling unit, and send a second delay signal to the write signal generation unit, wherein the second delay signal is the first indication signal received by the write signal generation unit when the second sampling signal output by the sampling unit switches from the first level value to the second level value.
[0053] Thirdly, this disclosure provides a memory including a write leveling circuit as described in any of the first aspects.
[0054] Fourthly, this disclosure provides a control device for a write leveling circuit applied to a memory, the device being applied to the circuit as described in the first aspect, the device comprising:
[0055] An adjustment unit is configured to, if it is determined that the effective edge of the first data strobe signal, representing the second sampling signal, is not aligned with the effective edge of the second write signal, adjust the delay of the first data strobe signal or the first indication signal; repeat the first adjustment unit until the first adjustment unit determines, based on the second sampling signal output by the sampling unit, that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0056] The extension unit is used to extend the delay of the first data strobe signal by a preset time period when the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, and to determine the extended signal as the data strobe signal received by the memory when performing a write operation.
[0057] Fifthly, this disclosure provides an electronic device, including: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the second aspects.
[0058] In a sixth aspect, this disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method as described in any one of the second aspects.
[0059] In a seventh aspect, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the method described in any one of the second aspects.
[0060] The write leveling circuit and control method for memory disclosed herein include a write signal generation unit in the write leveling circuit. This unit receives a first clock signal and a first indication signal, and performs delay processing on the first write signal based on the first clock signal, the first indication signal, and a specified bit in the first indication signal, outputting a second write signal. The first indication signal indicates a reduction in the write latency period of the memory, and includes a specified bit. The character of the specified bit indicates that the reduction time is an odd multiple or an even multiple of the clock period of the first clock signal. A sampling unit, connected to the write signal generation unit, receives a first data strobe signal and the second write signal, and outputs a second sampling signal based on the first data strobe signal and the second write signal. In this embodiment, the write signal generation unit in the write leveling circuit can pre-determine whether the reduction time corresponding to the first indication signal is an odd or even multiple of the clock period of the first signal through the specified bit of the first indication signal. Then, it combines the reduction time corresponding to the first indication signal and the first clock signal to perform delay processing on the first write signal. This avoids the problem that when the write latency requirement in the memory specification is inconsistent with the shortened write latency, it is impossible to directly determine the indication signal corresponding to the shortened write latency, thus making it impossible to perform delayed processing on the write signal. Attached Figure Description
[0061] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0062] Figure 1 A schematic diagram of a write leveling circuit applied to a memory, provided for an embodiment of this disclosure;
[0063] Figure 2 A schematic diagram of a second write leveling circuit applied to a memory, provided in an embodiment of this disclosure;
[0064] Figure 3 A schematic diagram of a third write leveling circuit applied to a memory, provided in an embodiment of this disclosure;
[0065] Figure 4 This is a schematic diagram of the circuit structure of a compensator provided in an embodiment of the present disclosure;
[0066] Figure 5 A schematic diagram of the circuit structure of a fourth write leveling circuit applied to a memory provided in an embodiment of this disclosure;
[0067] Figure 6A schematic diagram of the circuit structure of a fifth write leveling circuit applied to a memory provided in an embodiment of this disclosure;
[0068] Figure 7 A schematic diagram of the circuit structure of a sixth write leveling circuit applied to a memory provided in this embodiment of the present disclosure;
[0069] Figure 8 A schematic diagram of the circuit structure of a seventh write leveling circuit applied to a memory provided in an embodiment of this disclosure;
[0070] Figure 9 A flowchart illustrating a control method for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure;
[0071] Figure 10 A flowchart illustrating another control method for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure;
[0072] Figure 11 A schematic diagram of the structure of a control device for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure;
[0073] Figure 12 A schematic diagram of the structure of another control device for a write leveling circuit applied to a memory provided in an embodiment of this disclosure;
[0074] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure.
[0075] Explanation of reference numerals in the attached figures:
[0076] 21: Signal generation unit; 211: Preprocessing module; 212: Determination module; 2121: Processing submodule;
[0077] 2122: Shift register; 2123: Compensator; 21231: Delay unit; 21232: First data selector;
[0078] 213: Decoder; 214: Signal conversion module;
[0079] 22: Sampling unit; 221: First flip-flop; 222: Second flip-flop; 223: Second data selector;
[0080] 23: Delay unit; 24: First converter; 25: Second converter. Detailed Implementation
[0081] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0082] Currently, electronic devices typically include memory for data storage. To reduce the amount of wiring between the Dynamic Random Access Memory (DRAM) and its controller, a fly-by bus topology is commonly used when multiple DRAMs are included. In this topology, the clock signal output port of the controller for each DRAM is connected to the first DRAM in the series connection to transmit the clock signal. The clock signals received by the remaining DRAMs in the series connection are output from the preceding DRAM. Furthermore, the data strobe signal terminal of each DRAM is directly connected to the controller to receive the data strobe signal from the controller, and the wiring length for transmitting the data strobe signal between each DRAM and the controller is the same.
[0083] When the above bus topology is used to connect the controller and multiple DRAMs, the data strobe signal arrives at each DRAM at the same time. However, the timing of the clock signal received by each DRAM will deviate, resulting in different deviations between the clock signal timing and the data strobe signal timing. Therefore, the delay of the DQS signal received by each DRAM needs to be continuously adjusted (i.e., memory write leveling training) to ensure that the time difference between the effective edge of the DQS signal and the effective edge of the clock signal received by each DRAM meets the memory specifications, thus ensuring that data can be written to the memory in the correct clock cycle.
[0084] The write leveling process of a memory typically consists of two stages: an external write leveling stage and an internal write leveling stage. During internal write leveling, the column write latency corresponding to the write signal is continuously reduced to decrease power consumption during write signal transmission within the memory. Simultaneously, the delay of the data strobe signal received by the memory is adjusted. These adjustments ensure that the effective edge of the write signal and the effective edge of the data strobe signal are aligned within the memory.
[0085] However, when shortening the column write latency period corresponding to the write signal, the memory specifications differ between the column write latency period and the shortened column write latency period. Specifically, in the actual memory specifications, the column write latency period is always an even multiple of the clock signal's clock cycle; while the shortened column write latency period is always an integer multiple of the clock signal's clock cycle (i.e., it may be either an odd or even multiple). Based on these specifications, when the shortened column write latency period is an odd multiple of the clock cycle, the signal corresponding to this shortened column write latency period cannot be determined, thus preventing the write signal from being delayed.
[0086] The write leveling circuit and its control method for memory disclosed herein are intended to solve the above-mentioned technical problems in the prior art.
[0087] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.
[0088] Figure 1 A schematic diagram of a write leveling circuit applied to a memory is provided as an embodiment of this disclosure, as shown below. Figure 1 As shown, the write leveling circuit includes:
[0089] The write signal generation unit 21 is used to receive a first clock signal and a first indication signal, and to perform delay processing on the first write signal according to the first clock signal, the first indication signal, and a specified bit in the first indication signal, and output a second write signal; wherein, the first indication signal is used to indicate the shortening time of the column write latency period of the memory, and the first indication signal includes a specified bit; the character of the specified bit is used to indicate that the shortening time is an odd multiple of the clock period of the first clock signal or an even multiple of the clock period of the first clock signal;
[0090] The sampling unit 22 is connected to the write signal generation unit 21 and is used to receive the first data strobe signal and the second write signal, and output the second sampling signal according to the first data strobe signal and the second write signal.
[0091] In this embodiment, the write signal generation unit 21 included in the write leveling circuit is used to receive a first clock signal transmitted from the memory pin to the memory, and a first indication signal sent by a controller located outside the memory. The first indication signal sent by the controller is used to indicate to the write signal generation unit 21 the shortening time of the current memory column write latency. Furthermore, a character in a specified bit of the first indication signal can also indicate that the shortening time of the current memory column write latency is an odd multiple of the clock period of the first clock signal. The clock period of the first clock signal is the minimum period of the first clock cycle.
[0092] After the write signal generation unit 21 receives the first instruction signal and the first clock signal, it will delay the first write signal to obtain the second write signal.
[0093] Furthermore, the write leveling circuit also includes a sampling unit 22, which receives the second write signal output by the write signal generation unit 21 connected to it. The sampling unit 22 also receives a first data strobe signal, which can be considered as the data strobe signal received at a memory pin. Then, based on the received first data strobe signal and the second write signal output by the write signal generation unit 21, the sampling unit 22 generates a second sampling signal, so that the controller outside the memory can determine whether the effective edge of the first write signal is aligned with the effective edge of the first data strobe signal based on the received second sampling signal. It should be noted that the effective edge of the signal mentioned in this disclosure can be either the rising edge or the falling edge of the signal.
[0094] In some embodiments, the second sampling signal may be the difference between the time corresponding to the effective edge of the first write signal calculated by the write signal generation unit 21 and the time of the effective edge of the first data strobe signal. After the controller receives the second sampling signal, it may determine whether the effective edge of the first write signal is aligned with the effective edge of the first data strobe signal based on the difference between the second sampling signals.
[0095] In some embodiments, when the write signal generation unit 21 performs delay processing on the first write signal based on the received first clock signal, first indication signal, and specified bits of the first indication signal, the following processing method can be adopted: When the write signal generation unit 21 determines, based on the character of the specified bit of the first indication signal, that the shortened time indicated by the first indication signal is an even multiple of the clock period of the first clock signal, at this time, the difference between the memory write latency period and the shortened time of the write latency period is still an even multiple of the clock period of the first clock signal. At this time, the signal corresponding to the difference between the two can be determined so that the write signal generation unit 21 can perform delay processing on the first write signal based on the signal determined by the difference.
[0096] When the write signal generation unit 21 determines, based on the character of a specified bit of the first indication signal, that the shortened time indicated by the first indication signal is an odd multiple of the clock period of the first clock signal, the difference between the memory write latency period and the shortened time of the write latency period is an odd multiple of the clock period of the first clock signal. A first time can be selected from the shortened times defined in the memory specifications, wherein the first time is greater than the shortened time indicated by the first indication signal and the first time is an even multiple of the clock period of the first clock signal. At this time, the difference between the first time and the memory write latency period is an even multiple of the clock period, so that the write signal generation unit 21 can perform delay processing on the signal determined by the above difference. Furthermore, since the first time is greater than the shortened time indicated by the first indication signal, the delay time of the first write signal is shortened. Therefore, after performing delay processing on the signal determined by the difference, it is necessary to continue to perform delay processing on the above-delayed first write signal. At this time, the delay processing time is the difference between the first time and the shortened time indicated by the first indication signal, thereby obtaining the second write signal.
[0097] It should be noted that this disclosure does not impose specific restrictions on the memory specifications of the memory; it can be a DDR5 memory or a memory of other specifications.
[0098] It is understood that in this embodiment, the write signal generation unit 21 of the write leveling circuit can pre-determine, through a specified bit of the first indicator signal, that the shortening time corresponding to the first indicator signal is an odd or even multiple of the first signal clock period. Then, when the first write signal is delayed by combining the shortening time corresponding to the first indicator signal and the first clock signal, this avoids the problem that when the time specifications of the column write latency period used for storage and the shortening time of the column write latency period are inconsistent, it is impossible to directly determine the indicator signal corresponding to the shortened column write latency period, thus making it impossible to delay the write signal.
[0099] In some embodiments, the second sampling signal characterizes whether the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0100] For example, the write leveling process for a memory includes external write leveling and internal write leveling. The main purpose of setting internal write leveling is to further ensure that the effective edge of the first data strobe signal received inside the memory is aligned with the effective edge of the second write signal, while reducing the transmission path of the data strobe signal within the memory.
[0101] During the internal write leveling process, the sampling unit 22 directly outputs a second sampling signal based on the first data strobe signal and the second write signal generated by the write signal generation unit 21 connected to the sampling unit 22. This second sampling signal is used to determine whether the effective edges of the first data strobe signal and the second write signal are aligned. For example, the sampling unit 22 can determine whether the effective edges of the first data strobe signal and the second write signal are aligned by subtracting the times corresponding to each effective edge of the first data strobe signal from the times corresponding to each effective edge of the second write signal.
[0102] In some embodiments, Figure 2 This is a schematic diagram of a second write leveling circuit applied to a memory, provided as an embodiment of this disclosure. Figure 2 As shown, in Figure 1 Based on the schematic diagram of the write leveling circuit shown, in this embodiment, the first indication signal includes at least one binary character, the specified bit is the least significant bit of the first indication signal, and the write signal generation unit 21 includes:
[0103] The preprocessing module 211 is used to sum the characters of the first indication signal and the specified bits of the first indication signal to obtain a preprocessed signal; the determining module 212 is connected to the preprocessing module 211 and is used to delay the first write signal based on the first clock signal, the preprocessed signal, the second indication signal, and the specified bits of the first indication signal to output a second write signal; the second indication signal is used to indicate the column write latency period of the memory.
[0104] For example, in this embodiment, when the first indication signal is a binary character, the designation of the first indication signal can be the least significant bit of the first indication signal. For instance, when the least significant bit of the first indication signal is 0, it can indicate that the shortened time indicated by the first indication signal is an even multiple of the clock period of the first clock signal; when the least significant bit of the first indication signal is 1, it can indicate that the shortened time indicated by the first indication signal is an odd multiple of the clock period of the first clock signal.
[0105] Furthermore, the write signal generation unit 21 in this embodiment includes a preprocessing module 211 and a determining module 212 connected to the preprocessing module 211. The preprocessing module 211 is used to receive a first indication signal and a specified bit of the first indication signal, and to sum the received first indication signal and the specified bit of the first indication signal to obtain a preprocessed signal.
[0106] It is understandable that if the least significant bit of the first indicator signal is 0, indicating that the shortening time indicated by the first indicator signal is an even multiple of the clock period of the first clock signal, and the least significant bit of the first indicator signal is 1, indicating that the shortening time indicated by the first indicator signal is an odd multiple of the clock period of the first clock signal, then if the least significant bit of the first indicator signal is 0, the least significant bit of the preprocessed signal obtained after the summation process is 0; if the least significant bit of the first indicator signal is 1, the least significant bit of the preprocessed signal obtained after the summation process is also 0; that is, by summing the least significant bit of the first indicator signal with the first indicator signal, the shortening time indicated by the preprocessed signal obtained is an even multiple of the clock period of the first clock signal; and if the memory specification requirements for the above-mentioned write leveling circuit stipulate that the larger the value of the preprocessed signal, the larger the shortening time corresponding to the preprocessed signal, then the shortening time corresponding to the preprocessed signal obtained by the summation process is greater than or equal to the shortening time corresponding to the first indicator signal.
[0107] Furthermore, the determining module 212 in the write leveling circuit of this embodiment can be used to receive a second indication signal sent by a controller outside the memory, wherein the second indication signal is used to indicate the write latency of the memory. In some embodiments, the write latency of the memory can be determined based on the required read / write rate of the memory. That is, when it is necessary to change the read / write rate of the memory, the write latency indicated by the second indication signal sent to the memory can be adjusted to ensure that the read / write rate of the memory meets the required requirements.
[0108] When the determining module 212 receives the preprocessing signal output by the preprocessing module 211 connected to the determining module 212, the determining module 212 will perform delay processing on the first write signal based on the received first clock signal, preprocessing signal, second indication signal and specified bit of the first clock signal, and then obtain the second write signal.
[0109] In some embodiments, when the determining module 212 performs delay processing on the first write signal, it first determines, based on the specified bit of the first indication signal, that the shortened time indicated by the first indication signal is an odd multiple of the clock period of the first clock signal. Then, the determining module 212 requests the preprocessing module 211 to forward the first indication signal currently received by the preprocessing module 211. After that, the determining module 212 determines the delay time based on the first indication signal and the preprocessing signal, and delays the received first write signal to obtain the delayed first write signal. Then, it delays the delayed first write signal based on the delay time indicated by the preprocessing signal to obtain the second write signal.
[0110] It is understood that in this embodiment, the preprocessing module 211 in the write signal generation unit 21 obtains a preprocessed signal after performing summation processing based on the first indication signal and the characters of the specified bits of the first indication signal. This ensures that the time specification of the shortened time indicated by the preprocessed signal and the write latency period indicated by the second indication signal are consistent. For example, the time indicated by the two signals is an even multiple of the clock period of the first clock signal. Therefore, the shortened write latency period obtained after the difference between the two signals can also be within the pre-set specifications of the memory. This avoids the problem that when the times indicated by the first indication signal and the second indication signal are inconsistent, it is impossible to obtain the indication signal corresponding to the time after the difference between the two signals in the pre-set specifications of the memory.
[0111] Figure 3 A schematic diagram of a third write leveling circuit applied to a memory provided in this disclosure embodiment is shown below. Figure 3 As shown, in Figure 2 Based on the device structure shown, the determining module 212 provided in this embodiment includes:
[0112] Processing submodule 2121, connected to preprocessing module 211, is used to determine a third indication signal based on the preprocessing signal and the second indication signal. The third indication signal is used to indicate the time that the first write signal needs to be delayed. Shift register 2122 is used to perform delay processing on the first write signal based on the third indication signal and the first clock signal to obtain the third write signal. Compensator 2123, connected to shift register 2122, performs delay compensation processing on the third write signal based on the specified bit of the first indication signal and the first clock signal to obtain the second write signal.
[0113] For example, in this embodiment, the determining module 212 includes: a processing submodule 2121, a shift register connected to the processing submodule 2121, and a compensator 2123 connected to the shift register 2122.
[0114] The processing submodule 2121 is used to receive a preprocessing signal output by the preprocessing module 211 connected to the processing submodule 2121. Furthermore, the processing submodule 2121 is also used to receive a second indication signal. It is understood that the preprocessing signal can be used as the time that the current memory write latency needs to be shortened, and the second indication signal is used to indicate the memory write latency. Moreover, the time specification of the shortening time indicated by the preprocessing signal is consistent with the time specification of the memory write latency indicated by the second indication signal. Therefore, the processing submodule 2121 can determine a third indication signal based on the second indication signal and the preprocessing signal, wherein the third indication signal is used to indicate the time that the first write signal currently needs to be delayed.
[0115] After receiving the third indication signal, the shift register 2122 in the write leveling circuit will shift the first write signal based on the third indication signal and the first clock signal, that is, delay the first write signal to obtain the third write signal.
[0116] Furthermore, a compensator 2123 is also provided in the write leveling circuit. It is understood that since the shortening time indicated by the preprocessing signal is greater than or equal to the shortening time indicated by the first indication signal received by the preprocessing module 211 in the memory, when the shortening time indicated by the preprocessing signal is greater than the shortening time indicated by the first indication signal, the delay time between the first write signal and the third write signal will be less than the original delay time. The original delay time is the difference between the memory's write latency period and the shortening time indicated by the first indication signal. Therefore, the compensator 2123 will also perform compensation processing on the third write signal so that the delay time between the second write signal and the first write signal is equal to the original delay time.
[0117] In some embodiments, the compensator 2123 determines whether the preprocessed signal output by the preprocessing module 211 is the same as the first indication signal based on the character corresponding to a specified bit of the first indication signal. When the compensator 2123 determines that the first indication signal is different from the preprocessed signal, compensation processing is required. When the compensator 2123 determines that the first indication signal is the same as the preprocessed signal, the third write signal can be directly used as the second write signal finally output by the write signal generation unit 21.
[0118] It should be noted that, in some embodiments, the compensator 2123 in the determining module 212 may also be set before the processing submodule 2121. That is, the compensator 2123 is connected to the processing submodule 2121 and the shift register 2122 respectively, and the processing submodule 2121 is connected to the shift register 2122. The compensator 2123 performs time delay compensation processing on the first write signal based on the specified bit of the first indication signal, and outputs the compensated signal to the shift register 2122 connected to the compensator 2123, so that the shift register 2122 can perform delay processing on the compensated signal based on the third indication signal output by the processing submodule 2121 connected to it, thereby obtaining the second write signal.
[0119] It is understood that in this embodiment, the determining module 212 may include a processing submodule 2121 to process the second indication signal and the preprocessing signal sent to the processing submodule 2121 by the preprocessing module 211, thereby obtaining a third indication signal. This allows the shift register 2122, connected to the processing submodule 2121, to delay the first write signal based on the third indication signal sent by the processing submodule 2121, thus obtaining the third write signal. Subsequently, the compensator 2123 in the determining module 212 will also perform compensation processing on the third write signal based on the specified first indication signal, thereby obtaining the second write signal. Through this method, it can be ensured that the delay time between the final second write signal and the first write signal conforms to the time difference between the first and second indication signals, thereby ensuring the accuracy of the memory write balancing process.
[0120] In some embodiments, Figure 3 Based on the write leveling circuit shown, the processing submodule 2121 in the write leveling circuit is specifically used for:
[0121] Based on the preprocessing signal and the first mapping relationship, the shortening time of the write latency of the memory corresponding to the first indication signal that is the same as the preprocessing signal in the first mapping relationship is determined as the first delay time corresponding to the preprocessing signal; wherein, the first delay time is used to characterize the current time that the write latency of the memory needs to be shortened; the first mapping relationship is used to indicate multiple first indication signals of the memory, and the shortening time of the write latency of the memory corresponding to each of the first indication signals.
[0122] Based on the second indication signal and the second mapping relationship, the column write latency period corresponding to the second indication signal is determined; the second mapping relationship is used to indicate multiple second indication signals of the memory, and the column write latency period corresponding to each second indication signal.
[0123] The difference between the first delay time corresponding to the preprocessed signal and the column write latency period corresponding to the second indicator signal is calculated to obtain the second delay time. Based on the second delay time and the second mapping relationship, the indicator signal corresponding to the second delay time is determined to be the third indicator signal.
[0124] For example, in this embodiment, a first register and a second register can be set in the memory, wherein the first register can be used to store a first indication signal and the second register can be used to store a second indication signal.
[0125] For example, when the memory has separate high-order data strobe signal receiving pins and low-order data strobe signal receiving pins, it is necessary to perform write-leveling processing on the signals received by the high-order and low-order data strobe signal receiving pins respectively. When the first register has 8 bits, the lower four bits of the first register can be used to store the first indication signal received during write-leveling of the low-order data strobe signal, and the higher four bits of the first register can be used to store the first indication signal received during write-leveling of the high-order data strobe signal. The second register can then be used to store the received second indication signal.
[0126] In this embodiment, the first mapping relationship can be used to represent the reduction time of the write latency of the memory corresponding to the first indicator signal in the first register. For example, when the first indicator signal in the first register is 0000, the reduction data of the write latency of the memory corresponding to the first indicator signal can be determined to be 0tck based on the first mapping relationship, where tck is used to characterize the clock period of the first clock signal. That is, the first mapping relationship can be used to indicate multiple first indicator signals, and the reduction time of the write latency corresponding to each of the multiple first indicator signals.
[0127] In this embodiment, the second mapping relationship is used to represent the write latency period indicated by the second indicator signal in the second register. For example, when the second indicator signal is 00000, the write latency period corresponding to 00000 can be determined to be 22tck based on the second mapping relationship. That is, the second mapping relationship is used to indicate multiple second indicator signals of the memory, and a second indicator signal corresponding to each second indicator signal, wherein the second indicator signal is used to indicate the write latency period of the memory. In other words, the first mapping relationship is used to indicate the correspondence between the first indicator signal and the shortening time of the write latency period, and the second mapping relationship is used to indicate the correspondence between the second indicator signal and the write latency period. When the processing submodule 2121 receives the preprocessing signal and the second indicator signal, it will search for the shortening time of the write latency period of the memory corresponding to the first indicator signal that is the same as the received preprocessing signal in the first mapping relationship, and use the shortening time of the write latency period as the first delay time corresponding to the preprocessing signal, wherein the first delay time can be regarded as the time that the write latency period of the memory needs to be shortened. Furthermore, based on the second mapping relationship, the processing submodule 2121 searches for the write latency period corresponding to the received second indication signal within the second mapping relationship. Then, the processing submodule 2121 calculates the difference between the write latency period and the first delay time to obtain the second delay time. Additionally, the processing submodule 2121 searches for the indication signal corresponding to the second delay time within the second mapping relationship and uses this indication signal as the third indication signal.
[0128] It is understandable that when the shift register 2122 performs delay processing on the first write signal based on the first mapping relationship and the received third indication signal, the way the processing submodule 2121 in this embodiment determines the third indication signal can ensure that the shift register 2122 can accurately identify the delay time corresponding to the third indication signal and implement the delay processing of the first write signal, thereby ensuring the accuracy of the memory write leveling process.
[0129] In some embodiments, Figure 3 Based on the write leveling circuit structure shown, the compensator 2123 in this embodiment is specifically used for;
[0130] If the character representation shortening time of the specified bit of the first indication signal is determined to be an even multiple of the clock period of the first clock signal, then the third write signal is used as the second write signal; if the character representation shortening time of the specified bit of the first indication signal is determined to be an odd multiple of the clock period of the first clock signal, the third write signal is delayed to obtain the second write signal, and the duration of the delay is the difference between the first delay time corresponding to the preprocessing signal and the shortening time of the write latency period of the memory indicated by the first indication signal.
[0131] For example, in this embodiment, when the write latency period in the memory specification is an even multiple of the clock period of the clock signal, and the shortening time of the write latency period is an integer multiple of the clock period of the clock signal, if the specified bit character of the first indicator signal represents the shortening time as an even multiple of the clock period of the first clock signal, then when the preprocessing module 211 performs summation processing on the specified bit of the first indicator signal and the first indicator signal, the preprocessed signal obtained is the same as the first indicator signal. Then the compensator 2123 directly outputs the third write signal output by the shift register 2122 connected to it as the second write signal.
[0132] When the specified bit character of the first indication signal represents a shortening time that is an odd multiple of the clock period of the first clock signal, the preprocessing module 211, when summing the specified bit of the first indication signal and the first indication signal, obtains a preprocessed signal indicating a shortening time that is an even multiple of the clock period of the first clock signal. Since the current shortening time indicated by the preprocessed signal after summing is greater than the shortening time indicated by the first indication signal, the compensator 2123 also delays the third write signal output by the shift register 2122 connected to it, and outputs the delayed signal as the second write signal. It can be understood that, in order to ensure that the time delay between the first write signal and the second write signal matches the time difference indicated by the first and second indication signals respectively, the delay duration of the compensator 2123 when delaying the third write signal is the difference between the first delay time indicated by the preprocessed signal and the shortening time indicated by the first indication signal.
[0133] For example, as shown in the tables below, Table 1 and Table 2 are schematic tables of a first mapping relationship and a second mapping relationship provided in the embodiments of this disclosure.
[0134] Table 1 is a schematic table of a first mapping relationship provided in an embodiment of this disclosure.
[0135] First indication signal List the shortening time of the latency period 0000 0tck 0001 1tck 0010 2tck …… …… 1111 15tck
[0136] Table 2 is a schematic table of a second mapping relationship provided in the embodiments of this disclosure.
[0137] Second indication signal List the incubation period 00000 22tck 00001 24tck … … 10101 64tck 10110 66tck
[0138] As shown in Table 2, the write latency is always an even multiple of the clock period of the first clock signal. Table 1 shows that the shortened time (i.e., the first delay time) corresponding to the first indicator signal is an integer multiple of the clock period of the first clock signal. Furthermore, Table 1 shows that when the second indicator signal uses binary counting, when the least significant bit of the second indicator signal is 0, the corresponding write latency is an even multiple of the first clock signal. When the least significant bit of the second indicator signal is 1, the corresponding write latency is an odd multiple of the first clock signal. It should be noted that tck in the table represents the clock period of the first clock signal. That is, 22tck in the table represents that the memory's write latency is 22 times the clock period of the first clock signal.
[0139] When the first indication signal received by the preprocessing module 211 is 0001, the preprocessing module 211 sums the first indication signal 0001 with its least significant bit 1 to obtain the preprocessed signal 0010. The processing submodule 2121, upon receiving the preprocessed signal 0010 and the second indication signal 00001 from the preprocessing module 211 connected to it, subtracts the first delay time 2tck corresponding to the preprocessed signal 0010 from the column latency period 24tck corresponding to the second indication signal 00001 to obtain 22tck. Based on the second mapping relationship and the subtraction result 22tck, the second indication signal corresponding to 22tck is determined to be 00000, and this second indication signal is sent as the third indication signal to the shift register 2122 connected to the processing submodule 2121. Based on the received third indication signal and the first clock signal, shift register 2122 delays the first write signal for a period of 22tck, thereby obtaining the third write signal, which is then output to compensator 2123 connected to shift register 2122. After receiving the specified bit 1 of the first indication signal, compensator 2123 determines that the delay time between the currently obtained third write signal and the first write signal has been shortened. Furthermore, since it can be determined from the first mapping table that the preprocessed signal obtained by summing the first indication signal with the least significant bit 1 of the first indication signal is the next first indication signal adjacent to the first indication signal in the first mapping relationship, and the difference between the shortening times corresponding to adjacent first indication signals is 1tck, compensator 2123 can continue to delay the received third write signal for a delay period of 1tck, thereby obtaining the second write signal. At this time, the delay time between the second write signal and the first write signal is 23tck, which is equal to the difference between the column write latency period of 24tck corresponding to the second indicator signal 00001 and the shortening time of 1tck corresponding to the first indicator signal 0001.
[0140] When the first indication signal received by the preprocessing module 211 is 0010, the preprocessing module 211 sums the first indication signal 0010 with its least significant bit 0 to obtain a preprocessed signal 0010 (at this time, the first indication signal is the same as the preprocessed signal). The processing submodule 2121, upon receiving the preprocessed signal 0010 and the second indication signal 00001 sent by the preprocessing module 211 connected to it, subtracts the first delay time 2tck corresponding to the preprocessed signal 0010 from the column latency period 24tck corresponding to the second indication signal 00001 to obtain 22tck. Based on the second mapping relationship and the subtraction result 22tck, the second indication signal corresponding to 22tck is determined to be 00000, and this second indication signal is sent as the third indication signal to the shift register 2122 connected to the processing submodule 2121. Based on the received third indication signal and the first clock signal, shift register 2122 delays the first write signal for a period of 22tck to obtain the third write signal, which is then output to compensator 2123 connected to shift register 2122. After receiving the specified bit 0 of the first indication signal, compensator 2123 determines that the delay time between the obtained third write signal and the first write signal has not been shortened, and can then directly output the third write signal as the second write signal to sampling unit 22.
[0141] In some embodiments, Figure 4 A circuit structure diagram of a compensator 2123 provided in this embodiment of the present disclosure is shown in the figure. The compensator 2123 includes:
[0142] The delay unit 21231 is connected to the shift register 2122 and is used to delay the third write signal output by the shift register 2122 to obtain the delayed third write signal.
[0143] First data selector 21232 is connected to delay unit 21231 and first data selector 21232 respectively, and is used to receive the delayed third write signal output by delay unit 21231 and the third write signal output by shift register 2122; first data selector 21232 is also used to receive a specified bit of first indication signal, and first data selector 21232 is used to determine that the character of the specified bit of the first indication signal represents an even multiple of the clock period of the first clock signal, and then outputs the third write signal as the second write signal; first data selector 21232 is used to determine that the character of the specified bit of the first indication signal represents an odd multiple of the clock period of the first clock signal, and then outputs the delayed third write signal as the second write signal.
[0144] For example, in this embodiment, the compensator 2123 includes a delay unit 21231 and a first data selector 21232. The delay unit 21231 is connected to the shift register 2122 in the determination module 212, and is used to receive the third write signal output by the shift register 2122, delay the received third write signal to obtain a delayed third write signal, and output the delayed third write signal to the first data selector 21232 connected to the delay unit 21231. Furthermore, the first data selector 21232 is also connected to the shift register 2122 in the determination module 212, and is used to receive the third write signal output by the shift register 2122. In addition, the first data selector 21232 is also used to receive a character from a specified bit of a first indication signal, and based on the character from the specified bit of the first indication signal, select the signal to be output from the delayed third write signal and the first data selector.
[0145] Furthermore, when the first data selector 21232 determines that the character of the specified bit of the first indication signal represents an even multiple of the clock period of the first clock signal, the third write signal is output as the second write signal; if the first data selector 21232 determines that the character of the specified bit of the first indication signal represents an odd multiple of the clock period of the first clock signal, the delayed third write signal is output as the second write signal.
[0146] It is understandable that in this embodiment, the final output second write signal is determined by setting the delay unit 21231 and the first data selector 21232. The circuit structure is relatively simple and easy to implement.
[0147] Figure 5 This is a schematic diagram of the circuit structure of a fourth write leveling circuit applied to a memory, provided in an embodiment of this disclosure. Figure 2 Based on the structure shown, in this embodiment, the write signal generation unit 21 further includes a decoder 213. The decoder 213, connected to the determination module 212, is used to decode the received write command and output a first write signal.
[0148] For example, such as Figure 5 As shown, the write signal generation circuit in this embodiment includes a decoder 213, a preprocessing module 211, and a determination module 212. The write instruction received by the decoder 213 can be regarded as a write instruction sent by the controller corresponding to the memory containing the write signal generation circuit, that is, a write instruction sent by the controller to the memory pin to indicate that the memory needs to perform a write operation.
[0149] When the decoder 213 in the write signal generation circuit receives a write command, it can decode the write command to obtain a first write signal that can be recognized by the internal devices of the memory to indicate that a write operation is required. Then, the decoder 213 sends the obtained first write signal to the determination module 212 connected to the decoder 213. The determination module 212 delays the received first write signal based on the preprocessing signal generated by the preprocessing module 211 connected to it, the specified bit of the first indication signal, and the second indication signal to obtain a second write signal. The second write signal is then output to the sampling unit 22 connected to the determination module 212.
[0150] It is understood that in this embodiment, by setting a decoder 213 in the write signal generation unit 21, the write command received by the decoder 213 is decoded so that the devices in the memory can accurately determine the current write operation required by the memory. In addition, when the signal is adjusted based on the write leveling circuit, the controller can obtain a more accurate data strobe signal to determine the data required by the memory, thereby improving the accuracy of memory data writing.
[0151] Figure 6 This is a schematic diagram of the circuit structure of the fifth write leveling circuit applied to a memory provided in the embodiments of this disclosure. Figure 5 Based on the structure shown, in this embodiment, the write signal generation unit 21 further includes: a signal conversion module 214; a decoder 213 is connected to the write signal generation unit 21 through the signal conversion module 214; the signal conversion module 214 is used to perform pulse broadening processing on the first write signal output by the decoder 213, output the broadened write signal, and output the broadened write signal as the first write signal to the determination module 212.
[0152] For example, in this embodiment, the write signal generation unit 21 in the write leveling circuit includes a decoder 213, a signal conversion module 214, and a determination module 212. The decoder 213 receives a write command, decodes it, and sends the decoded signal to the signal conversion module 214 connected to the decoder 213. The signal conversion module 214 then performs pulse broadening processing on the decoded signal output by the decoder 213 and outputs the pulse broadened signal as a first write signal to the determination module 212 connected to it. This allows the determination module 212 to delay the received first write signal to obtain a second write signal, which is then output to the sampling unit 22 connected to the determination module 212.
[0153] It is understood that in this embodiment, the signal conversion module 214 in the write signal generation unit 21 performs pulse widening processing on the signal output from the decoder 213 to the signal conversion module 214 in order to meet the corresponding specifications of the memory (e.g., SPEC requirements).
[0154] Based on any of the above embodiments, the sampling unit 22 is provided with a second flip-flop 222. The data terminal of the second flip-flop 222 is connected to the write signal generation unit 21 and is used to receive the second write signal output by the write signal generation unit 21. The clock terminal of the second flip-flop 222 is used to receive the first data strobe signal. The second flip-flop 222 is used to output the second sampling signal based on the second write signal and the first data strobe signal.
[0155] For example, in this embodiment, the clock terminal of the second flip-flop 222 is used to receive the first data strobe signal, and the data terminal of the second flip-flop 222 is connected to the write signal generation unit 21 to receive the second write signal output by the write signal generation unit 21. Then, based on the effective edge of the received first data strobe signal, the second flip-flop 222 samples the second write signal received by the second flip-flop 222 and uses the sampling result as the second sampling signal.
[0156] It is understandable that the method of comparing the effective edge of the second write signal with the effective edge of the first data strobe signal by setting the second trigger 222 in this embodiment is easy to implement and avoids the complicated process of calculating the time difference between the effective edges of the two signals.
[0157] Based on any of the above embodiments, the write leveling circuit provided in this embodiment further includes: a delay unit 23, used to delay the received first data strobe signal and output a second data strobe signal; a sampling unit 22, connected to the delay unit 23, and also used to receive the second data strobe signal output by the delay unit 23, and output a first sampling signal according to the second data strobe signal and the second write signal; the first sampling signal characterizes whether the effective edge of the first clock signal is aligned with the effective edge of the first data strobe signal.
[0158] For example, to implement the external write grading process in memory write grading training, the external write grading is used to align the effective edges of the data strobe signal received at the memory pin and the effective edges of the clock signal. In this embodiment, a delay unit 23 is also provided in the write grading circuit. The delay unit 23 can be used to delay the first data strobe signal it receives to obtain a second data strobe signal, and then send the second data strobe signal to the sampling unit 22 connected to the delay unit 23. When the write grading circuit is located inside the memory, the first data strobe signal received by the delay unit 23 can be considered as the data strobe signal transmitted inside the memory, which can be obtained by converting the data strobe signal received at the memory pin.
[0159] In addition, the sampling unit 22 in this embodiment is also used to generate a first sampling signal based on the second write signal output by the write signal generation unit 21 connected thereto and the second data strobe signal output by the delay unit 23 connected thereto, so that the controller outside the memory can adjust the signal sent by the controller to the memory based on the received first sampling signal, thereby ensuring that the time difference between the effective edge of the data strobe signal received at the memory pin and the effective edge of the clock signal meets the time difference range specified by the memory.
[0160] It should be noted that, in this embodiment, the delay of the delay unit 23 in processing the first data strobe signal is equivalent to the delay of the write signal generation unit 21 in processing the first write signal to obtain the second write signal when it receives the first clock signal. Therefore, the sampling unit 22 can determine whether the effective edge of the first data strobe signal and the effective edge of the first clock signal are aligned by comparing whether the effective edge of the second data strobe signal and the effective edge of the second write signal are aligned.
[0161] It is understandable that by setting the delay of the delay unit 23 as described above, the controller outside the memory can determine whether the purpose of external write leveling of the memory has been achieved based on the first sampling signal output by the sampling unit 22.
[0162] Based on the above embodiments, Figure 7 This is a schematic diagram of a sixth write leveling circuit applied to a memory, provided as an embodiment of this disclosure. (See diagram below.) Figure 7 As shown, in Figure 1Based on the structure of the write leveling circuit shown, the write leveling circuit in this embodiment includes: a delay unit 23, a write signal generation unit 21, and a sampling unit 22. The sampling unit 22 includes a first flip-flop 221, a second flip-flop 222, and a second data selector 223. The data terminal of the first flip-flop 221 is connected to the write signal generation unit 21 to receive the second write signal output by the write signal generation unit 21. The clock terminal of the first flip-flop 221 is connected to the output terminal of the delay unit 23 to receive the second data strobe signal output by the delay unit 23. The first flip-flop 221 outputs a first sampling signal based on the second write signal and the second data strobe signal. The data terminal of the second flip-flop 222 is connected to the write signal generation unit 21 to receive the second write signal output by the write signal generation unit 21. The clock terminal of the second flip-flop 222 receives the first data strobe signal and outputs a second sampling signal based on the second write signal and the first data strobe signal. The output terminal of the first flip-flop 221 is connected to the first terminal of the second data selector 223, and the output terminal of the second flip-flop 222 is connected to the second terminal of the second data selector 223.
[0163] For example, such as Figure 7 As shown, the write leveling circuit in this embodiment includes a delay unit 23, a write signal generation unit 21, and a sampling unit 22. The sampling unit 22 further includes a first flip-flop 221, a second flip-flop 222, and a second data selector 223. The clock and data terminals of the first flip-flop 221 are connected to the delay unit 23 and the write signal generation unit 21, respectively. Based on the effective edge of the clock signal sent by the delay unit 23 connected to it, the first flip-flop 221 samples the second write signal output by the write signal generation unit 21 connected to it, and uses the sampling result as the first sampling signal, outputting it to the second data selector 223 connected to the first flip-flop 221.
[0164] In addition, the clock terminal of the second flip-flop 222 is used to receive the first data strobe signal, and the data terminal of the second flip-flop 222 is connected to the write signal generation unit 21 to receive the second write signal output by the write signal generation unit 21. Then, based on the effective edge of the received first data strobe signal, the second flip-flop 222 samples the second write signal received by the second flip-flop 222 and uses the sampling result as the second sampling signal, which is output to the second data selector 223 connected to the second flip-flop 222.
[0165] After receiving the first sampling signal sent by the first trigger 221 connected to it and the second sampling signal sent by the second trigger 222 connected to it, the second data selector 223 will select one of the sampling signals to output, so that the controller outside the memory can adjust the signal sent to the memory by the controller based on the received first sampling signal or second sampling signal.
[0166] It is understood that, by setting a first trigger 221, a second trigger 222, and a second data selector 223 in the sampling unit 22 in this embodiment, compared to sending the first sampling signal and the second sampling signal to the controller at the same time, the sampling unit 22 provided in this embodiment can reduce the occupation of the data receiving port on the controller. When the write leveling circuit is packaged in the memory, it can also reduce the occupation of the pins on the memory.
[0167] Based on the above embodiments, Figure 8 This is a schematic diagram of the seventh write leveling circuit applied to a memory, provided as an embodiment of this disclosure. Figure 8 As shown, in Figure 7 Based on the structure of the write leveling circuit shown, the write leveling circuit provided in this embodiment further includes a first converter 24 and a second converter 25. The first converter 24, connected to the delay unit 23 and the sampling unit 22 respectively, is used to perform logic level conversion processing on the received third data strobe signal to obtain a first data strobe signal; wherein the level of the third data strobe signal is a current-mode logic level; and the level of the first data strobe signal is a CMOS level. The second converter 25, connected to the write signal generation unit 21, is used to perform logic level conversion processing on the received second clock signal to obtain a first clock signal; wherein the level of the second clock signal is a current-mode logic level; and the level of the first clock signal is a CMOS level.
[0168] For example, in Figure 7Based on the structure of the write leveling circuit shown, this embodiment also includes a first converter 24. The third data strobe signal received by the first converter 24 can be considered, in practical applications, as a data strobe signal sent from an external controller to a pin of the memory. When the controller sends the third data strobe signal to the memory, a current-mode logic (CML) level transmission method is typically used to improve signal transmission efficiency. Inside the memory, a complementary metal-oxide-semiconductor (CMOS) level transmission method is typically used for signal transmission. Therefore, after the first converter 24 in the write leveling circuit receives the third data strobe signal at the pin, it converts the CML-level transmission signal into a CMOS-level transmission signal. The first data strobe signal is then transmitted to the delay unit 23 and the second flip-flop 222 in the sampling unit 22, both connected to the first converter 24, so that the various devices in the write leveling circuit of the memory can accurately identify the first data strobe signal.
[0169] Furthermore, the write leveling circuit also includes a second converter 25. The second clock signal received by the second converter 25 can be considered, in practical applications, as a clock signal sent from an external controller or a preceding memory connected in series to the memory's pins. When the controller sends a clock signal to the memory or when clock signals are sent between memories, Current Model Logic (CML) level transmission is typically used to improve signal transmission efficiency. Internally, CMOS level transmission is typically used. Therefore, after the second converter 25 in the write leveling circuit receives the second clock signal at its pins, it converts the CML level transmission signal into a CMOS level transmission signal, and then transmits the first clock signal to the write signal generation unit 21 connected to the second converter 25, so that the various devices in the write leveling circuit of the memory can accurately identify the first clock signal.
[0170] In some embodiments, the first sampling signal is specifically used to indicate the adjustment of the delay of the first clock signal when the effective edge of the first clock signal, representing the first sampling signal, is not aligned with the effective edge of the first data strobe signal; the second sampling signal is specifically used to indicate the adjustment of the delay of the first write signal or the delay of the first data strobe signal when the effective edge of the first clock signal, representing the first sampling signal, is aligned with the effective edge of the first data strobe signal, and the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal.
[0171] For example, in this embodiment, in order to realize the external write leveling process of the memory, when the controller outside the memory determines that the effective edge of the first clock signal represented by the first sampling signal is not aligned with the effective edge of the first data strobe signal, the controller can continuously adjust the delay of the data strobe signal sent to the memory, that is, continuously adjust the delay of the first data strobe signal, so as to achieve the purpose of aligning the effective edge of the first clock signal with the effective edge of the first data strobe signal.
[0172] Furthermore, during the internal write leveling process, to avoid excessive power consumption during internal signal transmission, the following adjustment method can be used. In this embodiment, after the external write leveling process is completed, that is, when the effective edge of the first clock signal represented by the first sampling signal is aligned with the effective edge of the first data strobe signal, and the effective edge of the first data strobe signal represented by the second sampling signal is not aligned with the effective edge of the second write signal, the delay of the first write signal or the delay of the first data strobe signal can be adjusted to achieve alignment between the effective edge of the first data strobe signal and the effective edge of the second write signal.
[0173] Understandably, compared to the external write balancing process where the first data strobe signal needs to be delayed by the delay unit 23 before being output, the internal write balancing process does not require delay processing of the first data strobe signal. This is equivalent to reducing the latency of the first data strobe signal during transmission within the memory. Furthermore, the power consumption caused by the first write signal during transmission can be reduced by adjusting the latency of the first write signal. Then, by continuously adjusting the latency of the first write signal or the latency of the first data strobe signal, the goal of internal write balancing can be achieved.
[0174] Figure 9 This is a flowchart illustrating a control method for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure. The method provided in this embodiment is applied to... Figure 1 In the write leveling circuit shown, the method includes the following steps:
[0175] S901. If it is determined that the effective edge of the first data strobe signal, which represents the second sampling signal, is not aligned with the effective edge of the second write signal, then adjust the delay of the first data strobe signal or the first indicator signal.
[0176] Repeat step S901 until the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal based on the second sampling signal output by the sampling unit.
[0177] For example, the execution subject of this embodiment can be a controller or other electronic device external to the memory, and this disclosure does not impose specific limitations. The following description uses a controller as the execution subject of this disclosure.
[0178] In this embodiment, after the external write leveling process is completed, internal write leveling of the memory needs to continue. During internal write leveling of the memory, when the controller determines, based on the second sampling signal, that the effective edge of the first data strobe signal and the effective edge of the second write signal are not aligned, the controller can adjust the first data strobe signal or the first indicator signal to ensure that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal. That is, it ensures that the data strobe signal and the write signal received by the memory cell portion inside the memory are aligned. Adjusting the first indicator signal is equivalent to adjusting the time delay between the first write signal and the second write signal.
[0179] S902. When the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, the delay of the first data strobe signal is extended by a preset period of time, and the extended signal is determined as the data strobe signal received when the memory performs a write operation.
[0180] For example, to further ensure that the time difference between the effective edge of the data strobe signal received at the memory pin and the effective edge of the clock signal received at the pin meets the memory specifications, in this embodiment, when the controller determines that the effective edge of the first data strobe signal, represented by the second sampling signal, is aligned with the effective edge of the second write signal, the delay of the first data strobe signal at the time of alignment can be extended by a preset period, and the data strobe signal with the extended delay can be used as the first data strobe signal received by the memory during a write operation. Furthermore, the effective edge of the first data strobe signal after the preset period of extension, compared to the effective edge of the first clock signal received at the memory pin at the time of alignment, has a time difference that meets the time difference required by the memory specifications (e.g., the memory's tDQSoffset).
[0181] It should be noted that the preset time period in this disclosure can be determined based on the write preamble signal and the correspondence between the write preamble signal and the preset duration.
[0182] Understandably, in this embodiment, to reduce power consumption caused by the transmission of data strobe signals and write signals within the memory, during the internal write balancing process, the controller continuously adjusts the delay of the first data strobe signal or the delay of the first write signal based on the received second sampling signal. This ensures the completion of the write balancing process, enabling accurate data writing to the memory. Furthermore, by extending the delay of the first data strobe signal when its effective edge aligns with the effective edge of the second write signal by a preset period, the final data strobe signal that the memory pin needs to receive is determined, ensuring accurate data writing to the memory.
[0183] In some embodiments, when the controller outside the memory determines whether the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal based on the second sampling signal output by the sampling unit, it can be determined in the following way: if the level value of the second sampling signal output by the sampling unit changes from the second level value to the first level value, then it is determined that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0184] For example, in this embodiment, after the sampling unit receives the first data strobe signal and the second write signal output by the received write signal generation unit, in order to determine whether the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, the level value of the second write signal can be sampled at the effective edge of the first data strobe signal, and the sampling result can be used as the second sampling signal output by the sampling unit. Then, by continuously monitoring the change in the level value of the second sampling signal, when the level value of the second sampling signal switches from the second level value to the first level value, it indicates that the effective edge of the second write signal is aligned with the effective edge of the first data strobe signal.
[0185] It is understood that in this embodiment, the alignment of the effective edge of the first data strobe signal with the effective edge of the second write signal can be determined by detecting whether the level change of the second sampling signal switches from the second level value to the first level value. The method provided in this embodiment is simple and easy to implement, and does not require repeated calculation of the time difference between the effective edges of the signals.
[0186] Figure 10 A flowchart illustrating another control method for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure, the method comprising the following steps:
[0187] S1001. If the level value of the second sampling signal output by the sampling unit is determined to be the first level value, then the first indication signal received by the write signal generation unit is adjusted to increase the shortening time of the write latency of the memory indicated by the first indication signal, and the adjusted first indication signal is sent to the write signal generation unit.
[0188] Repeat step S1001 until the level value of the second sampling signal output by the sampling unit changes from the first level value to the second level value.
[0189] For example, in this embodiment, during internal write leveling of the memory, the controller determines whether the effective edge of the second write signal is aligned with the effective edge of the first data strobe signal by determining the level value of the second sampling signal output by the sampling unit in real time. Specifically, when the controller determines that the level value of the second sampling signal output by the second sampling unit is the first level value, the controller can adjust the first indication signal sent to the write signal generation unit. By adjusting the first indication signal, the shortening time of the column write latency indicated by the first indication signal is increased, which is equivalent to continuously reducing the time delay between the first write signal and the second write signal generated by the write signal generation unit. By continuously adjusting the time delay of the first write signal generated by the write signal generation unit, the time difference between the effective edge of the first data strobe signal and the effective edge of the second write signal is reduced.
[0190] It should be noted that, due to the limitations of the memory specifications, when adjusting the shortening time of the write latency indicated by the first indicator signal, the shortening time of the write latency can only be an integer multiple of the time period of the first clock signal. This results in the delay of the first write signal being adjusted such that each change in delay can only be an integer multiple of the time period. When the sampled value of the output of the second sampling signal switches from the first level value to the second level value, the effective edge of the first data strobe signal and the effective edge of the second write signal may not be aligned. This will result in the phenomenon that the time corresponding to the effective edge of the first data strobe signal is later than the time corresponding to the effective edge of the second write signal. Therefore, it is also necessary to adjust the delay of the first data strobe signal.
[0191] S1002. If the level value of the second sampling signal output by the sampling unit is determined to be the second level value, the delay of the first data strobe signal received by the sampling unit is reduced, and a second delay signal is sent to the write signal generation unit. The second delay signal is the first indication signal received by the write signal generation unit when the second sampling signal output by the sampling unit switches from the first level value to the second level value.
[0192] Repeat step S1002 until the level value of the second sampling signal output by the sampling unit switches from the second level value to the first level value.
[0193] For example, after completing the adjustment in step S1001 above, in order to ensure that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, the delay of the first data strobe signal will also be adjusted in this step. Since the delay of the first data strobe signal is not limited by the memory specifications, the amount of change in the delay adjustment each time does not need to be an integer multiple of the clock period of the first clock signal. Therefore, in this step, the delay of the first data strobe signal can be continuously adjusted, that is, by continuously reducing the delay of the first data strobe signal, so that the effective edge of the first data strobe signal is aligned with the effective edge of the second data strobe signal. Furthermore, each time the adjusted first data strobe signal is sent to the memory, a second delay signal also needs to be sent to the write signal generation unit in the memory. At this time, the second delay signal is the first indication signal received by the determination module when the second sampling signal switches from the first level value to the second level value, that is, the first indication signal received by the determination module when the loop execution of step S1001 ends.
[0194] S1003. When the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, the delay of the first data strobe signal is extended by a preset period of time, and the extended signal is determined as the data strobe signal received when the memory performs a write operation.
[0195] For example, the specific principle of this step can be found in step S902, and will not be repeated here.
[0196] Understandably, in this embodiment, during the internal adjustment of the memory, the power consumption of the first write signal during transmission is first reduced by decreasing the latency of the first write signal delay processing. Then, the latency of the first data strobe signal is adjusted so that the effective edges of the first data strobe signal and the second write signal can be aligned. This allows the memory to accurately write data during write operations and also reduces the power consumption of internal signal transmission during write operations.
[0197] Figure 11 This is a schematic diagram of a control device for a write leveling circuit applied to a memory, provided in an embodiment of the present disclosure. The device includes: an adjustment unit 1101, configured to adjust the delay of the first data strobe signal or a first indication signal if it is determined that the effective edge of the first data strobe signal and the effective edge of the second write signal are not aligned by a second sampling signal; and to repeat the first adjustment unit until the first adjustment unit determines, based on the second sampling signal output by the sampling unit, that the effective edge of the first data strobe signal and the effective edge of the second write signal are aligned.
[0198] The extension unit 1102 is used to extend the delay of the first data strobe signal by a preset period when the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal, and to determine the extended signal as the data strobe signal received when the memory performs a write operation.
[0199] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.
[0200] Figure 12 This is a schematic diagram of the structure of another control device for a write leveling circuit applied to a memory, provided in an embodiment of this disclosure. Figure 12 Based on the device shown, in this embodiment, when the adjustment unit 1101 determines that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal based on the second sampling signal output by the sampling unit, it is specifically used to: if the level value of the second sampling signal output by the sampling unit changes from the second level value to the first level value, then determine that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
[0201] In some embodiments, the adjustment unit 1101 includes:
[0202] The adjustment module 11011 is used to adjust the first indication signal received by the write signal generation unit if the level value of the second sampling signal output by the sampling unit is determined to be the first level value, so as to increase the shortening time of the write latency of the memory indicated by the first indication signal.
[0203] The first transmitting module 11012 is used to send the adjusted first indication signal to the write signal generation unit.
[0204] The adjustment module 11011 and the first transmission module 11012 are repeatedly adjusted until the adjustment module 11011 determines that the level value of the second sampling signal output by the sampling unit has changed from the first level value to the second level value.
[0205] The delay reduction module 11012 is used to reduce the delay of the first data strobe signal received by the sampling unit if the level value of the second sampling signal output by the sampling unit is determined to be the second level value.
[0206] The second transmitting module 11013 is used to send a second delayed signal to the write signal generation unit. The second delayed signal is a first indication signal received by the write signal generation unit when the second sampled signal output by the sampling unit switches from a first level value to a second level value. The reduction module 11012 and the transmitting module are repeated until the reduction module 11012 determines that the level value of the second sampled signal output by the sampling unit has switched from the second level value to the first level value.
[0207] The apparatus provided in this embodiment is used to implement the technical solution provided by the above method. Its implementation principle and technical effect are similar, and will not be described again.
[0208] This disclosure provides a memory, the memory including Figures 1-8 The write leveling circuit provided in any of the embodiments.
[0209] This disclosure provides an electronic device, including: a processor and a memory communicatively connected to the processor; wherein the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement... Figure 9 or Figure 10 The method provided in any one of the embodiments.
[0210] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure, such as... Figure 13 As shown, the electronic device includes:
[0211] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can invoke logical instructions stored in the memory 292 to execute the methods of the above embodiments.
[0212] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.
[0213] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this disclosure. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, thereby implementing the methods in the above-described method embodiments.
[0214] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.
[0215] This disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement, for example... Figure 9 or Figure 10 The method provided in any embodiment.
[0216] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements... Figure 9 or Figure 10 The method provided in any embodiment.
[0217] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0218] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A write leveling circuit for use in a memory, characterized in that, The write leveling circuit includes: A write signal generation unit is configured to receive a first clock signal and a first indication signal, and to perform delay processing on the first write signal according to the first clock signal, the first indication signal, and a specified bit in the first indication signal, and output a second write signal; wherein, the first indication signal is used to indicate the shortening time of the column write latency of the memory, and the first indication signal includes a specified bit; the character of the specified bit is used to indicate that the shortening time is an odd multiple of the clock period of the first clock signal or the shortening time is an even multiple of the clock period of the first clock signal; A sampling unit, connected to the write signal generation unit, is used to receive a first data strobe signal and a second write signal, and output a second sampling signal based on the first data strobe signal and the second write signal; Wherein, the first indication signal includes at least one binary character, the designated bit is the least significant bit of the first indication signal, and the write signal generation unit includes: The preprocessing module is used to process the first indication signal and the characters of a specified position of the first indication signal to obtain a preprocessed signal; The determination module, connected to the preprocessing module, is used to delay the first write signal based on the first clock signal, the preprocessing signal, the second indication signal, and a specified bit of the first indication signal, and output a second write signal; the second indication signal is used to indicate the column write latency of the memory.
2. The write leveling circuit according to claim 1, characterized in that, The preprocessing module is used to sum the first indication signal and the characters of a specified position of the first indication signal to obtain the preprocessed signal.
3. The write leveling circuit according to claim 2, characterized in that, The determining module includes: A processing submodule, connected to the preprocessing module, is used to determine a third indication signal based on the preprocessing signal and the second indication signal, wherein the third indication signal is used to indicate the time that the first write signal currently needs to be delayed; A shift register is used to delay the first write signal based on the third indication signal and the first clock signal to obtain a third write signal; The compensator, connected to the shift register, compensates for the delay of the third write signal based on the specified bit of the first indication signal and the first clock signal to obtain the second write signal.
4. The write leveling circuit according to claim 3, characterized in that, The processing submodule is specifically used for: Based on the preprocessing signal and the first mapping relationship, the shortening time of the write latency of the memory corresponding to the first indication signal that is the same as the preprocessing signal in the first mapping relationship is determined as the first delay time corresponding to the preprocessing signal; wherein, the first delay time is used to characterize the current time that the write latency of the memory needs to be shortened; the first mapping relationship is used to indicate multiple first indication signals of the memory, and the shortening time of the write latency of the memory corresponding to each of the first indication signals; Based on the second indication signal and the second mapping relationship, the column write latency period corresponding to the second indication signal is determined; the second mapping relationship is used to indicate multiple second indication signals of the memory, and the column write latency period corresponding one-to-one with the second indication signal. The difference between the first delay time corresponding to the preprocessed signal and the column write latency period corresponding to the second indication signal is calculated to obtain the second delay time. Based on the second delay time and the second mapping relationship, the indication signal corresponding to the second delay time is determined to be the third indication signal.
5. The write leveling circuit according to claim 3, characterized in that, The compensator is specifically used for; If it is determined that the character of a specified bit of the first indication signal represents that the shortened time is an even multiple of the clock period of the first clock signal, then the third write signal is used as the second write signal. If it is determined that the character of a specified bit in the first indication signal represents that the shortening time is an odd multiple of the clock period of the first clock signal, the third write signal is delayed to obtain the second write signal. The duration of the delay is the difference between the first delay time corresponding to the preprocessing signal and the shortening time of the write latency period of the memory indicated by the first indication signal.
6. The write leveling circuit according to claim 5, characterized in that, The compensator includes: A delay unit, connected to the shift register, is used to delay the third write signal output by the shift register to obtain a delayed third write signal. A first data selector, connected to both the delay unit and the shift register, is used to receive the delayed third write signal output by the delay unit and the third write signal output by the shift register. The first data selector is also used to receive a specified bit of the first indication signal. If the character of the specified bit of the first indication signal represents an even multiple of the clock period of the first clock signal, the first data selector outputs the third write signal as the second write signal. If the character of the specified bit of the first indication signal represents an odd multiple of the clock period of the first clock signal, the first data selector outputs the delayed third write signal as the second write signal.
7. The write leveling circuit according to claim 2, characterized in that, The write signal generation unit further includes: A decoder, connected to the determining module, is used to decode the received write command and output the first write signal.
8. The write leveling circuit according to claim 7, characterized in that, The write signal generation unit further includes: a signal conversion module; the decoder is connected to the write signal generation unit through the signal conversion module; The signal conversion module is used to perform pulse widening processing on the first write signal output by the decoder, output the widened write signal, and output the widened write signal as the first write signal to the determining module.
9. The write leveling circuit according to claim 1, characterized in that, The second sampling signal indicates whether the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
10. The circuit according to any one of claims 1-9, characterized in that, The sampling unit includes: The second flip-flop has its data terminal connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the second flip-flop is used to receive the first data strobe signal, and the second flip-flop is used to output a second sampling signal based on the second write signal and the first data strobe signal.
11. The write leveling circuit according to any one of claims 1-9, characterized in that, The write leveling circuit also includes: The delay unit is used to delay the received first data strobe signal and output the second data strobe signal. The sampling unit, connected to the delay unit, is also used to receive the second data strobe signal output by the delay unit, and output a first sampling signal according to the second data strobe signal and the second write signal; the first sampling signal characterizes whether the effective edge of the first clock signal is aligned with the effective edge of the first data strobe signal.
12. The write leveling circuit according to claim 11, characterized in that, The sampling unit includes: a first trigger, a second trigger, and a second data selector; The data terminal of the first flip-flop is connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the first flip-flop is connected to the output terminal of the delay unit and is used to receive the second data strobe signal output by the delay unit; the first flip-flop is used to output a first sampling signal based on the second write signal and the second data strobe signal. The data terminal of the second flip-flop is connected to the write signal generation unit and is used to receive the second write signal output by the write signal generation unit; the clock terminal of the second flip-flop is used to receive the first data strobe signal, and the second flip-flop is used to output a second sampling signal based on the second write signal and the first data strobe signal. The output of the first trigger is connected to the first terminal of the second data selector, and the output of the second trigger is connected to the second terminal of the second data selector.
13. The write leveling circuit according to claim 11, characterized in that, The write leveling circuit also includes: The first converter, connected to the delay unit and the sampling unit respectively, is used to perform logic level conversion processing on the received third data strobe signal to obtain the first data strobe signal; wherein, the level of the third data strobe signal is a current mode logic level; and the level of the first data strobe signal is a CMOS level.
14. The write leveling circuit according to claim 11, characterized in that, The write leveling circuit also includes: The second converter, connected to the write signal generation unit, is used to perform logic level conversion processing on the received second clock signal to obtain the first clock signal; wherein the level of the second clock signal is a current-mode logic level; and the level of the first clock signal is a CMOS level.
15. The write leveling circuit according to claim 11, characterized in that, The first sampling signal is specifically used to indicate the adjustment of the delay of the first data strobe signal when the effective edge of the first clock signal represented by the first sampling signal is not aligned with the effective edge of the first data strobe signal; the second sampling signal is specifically used to indicate the adjustment of the delay of the first write signal or the delay of the first data strobe signal when the effective edge of the first clock signal represented by the first sampling signal is aligned with the effective edge of the first data strobe signal, and the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal.
16. A control method for a write leveling circuit applied to a memory, characterized in that, The method is applied to the circuit as described in claim 1, and the method includes: Repeat the following steps until it is determined that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal based on the second sampling signal output by the sampling unit: if it is determined that the second sampling signal indicates that the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal, then adjust the time delay of the first data strobe signal or the first indication signal. When the effective edge of the first data strobe signal aligns with the effective edge of the second write signal, the delay of the first data strobe signal is extended by a preset period of time, and the extended signal is determined as the data strobe signal received when the memory performs a write operation.
17. The method according to claim 16, characterized in that, Determining the alignment of the effective edge of the first data strobe signal with the effective edge of the second write signal based on the second sampling signal output by the sampling unit includes: If the level value of the second sampling signal output by the sampling unit changes from the second level value to the first level value, then it is determined that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal.
18. The method according to claim 17, characterized in that, The steps are repeated until it is determined, based on the second sampling signal output by the sampling unit, that the effective edge of the first data strobe signal is aligned with the effective edge of the second write signal: if it is determined that the second sampling signal indicates that the effective edge of the first data strobe signal is not aligned with the effective edge of the second write signal, then the time delay of the first data strobe signal or the first indication signal is adjusted, including: Repeat the following steps until the level value of the second sampling signal output by the sampling unit changes from the first level value to the second level value: If it is determined that the level value of the second sampling signal output by the sampling unit is the first level value, then adjust the first indication signal received by the write signal generation unit to increase the shortening time of the column write latency of the memory indicated by the first indication signal, and send the adjusted first indication signal to the write signal generation unit. Repeat the following steps until the level value of the second sampling signal output by the sampling unit switches from the second level value to the first level value: If it is determined that the level value of the second sampling signal output by the sampling unit is the second level value, reduce the delay of the first data strobe signal received by the sampling unit, and send a second delay signal to the write signal generation unit, wherein the second delay signal is the first indication signal received by the write signal generation unit when the second sampling signal output by the sampling unit switches from the first level value to the second level value.
Citation Information
Patent Citations
Semiconductor memory device and memory system having the same
CN110751965A
Semiconductor memory device
US20040105339A1
