APPARATUS AND METHOD FOR MONITORING DUTY CYCLE OF MEMORY CLOCK SIGNAL
20240195400 ยท 2024-06-13
Assignee
Inventors
- Min-Hyung Cho (Daejeon, KR)
- Yi-Gyeong KIM (Daejeon, KR)
- Su-Jin PARK (Daejeon, KR)
- Young-deuk Jeon (Sejong-si, KR)
Cpc classification
H03K5/05
ELECTRICITY
International classification
H03K5/05
ELECTRICITY
H03K5/15
ELECTRICITY
Abstract
Disclosed herein are an apparatus and method for monitoring the duty cycle of a memory clock signal. The apparatus for monitoring a duty cycle of a memory clock signal includes a clock frequency converter configured to generate a second monitoring target clock signal by decreasing a frequency of a first monitoring target clock signal while maintaining a duty cycle of the first monitoring target clock signal, and a pulse counter configured to measure a pulse width of the second monitoring target clock signal using a reference clock signal.
Claims
1. An apparatus for monitoring a duty cycle of a memory clock signal, comprising: a clock frequency converter configured to generate a second monitoring target clock signal by decreasing a frequency of a first monitoring target clock signal while maintaining a duty cycle of the first monitoring target clock signal; and a pulse counter configured to measure a pulse width of the second monitoring target clock signal using a reference clock signal.
2. The apparatus of claim 1, wherein the clock frequency converter is configured such that one or more half clock generators configured to output a clock signal by decreasing a frequency of an input clock signal to half while maintaining a duty cycle of the input clock signal are connected in cascade.
3. The apparatus of claim 2, wherein the first monitoring target clock signal is used as the reference clock signal.
4. The apparatus of claim 3, wherein each of the half clock generators comprises: a clock divider configured to decrease the frequency of the input clock signal to half; a pulse width doubler configured to double a pulse width of the input clock signal; and an AND gate configured to perform a logical AND operation on an output signal of the clock divider and an output signal of the pulse width doubler.
5. The apparatus of claim 4, wherein the pulse width doubler comprises: a capacitor and a reset switch connected in parallel between a first node and a ground terminal; a first current source, a positive terminal of which is connected to a power source; a first switch connected between a negative terminal of the first current source and the first node and turned on/off in response to the first monitoring target clock signal; a second current source, a negative terminal of which is grounded; a second switch connected between a positive terminal of the second current source and the first node and turned on/off in response to an inverted signal of the first monitoring target clock signal; and a comparator, a positive terminal of which is connected to the first node and a negative terminal of which is grounded.
6. The apparatus of claim 1, wherein: the pulse counter includes multiple flip-flops, the second monitoring target clock signal is input as an enable signal of each of the multiple flip-flops, and the first monitoring target clock signal as the reference clock signal is input as a clock signal to each of the multiple flip-flops.
7. A method for monitoring a duty cycle of a memory clock signal, comprising: generating a second monitoring target clock signal by decreasing a frequency of a first monitoring target clock signal while maintaining a waveform of the first monitoring target clock signal; and measuring a pulse width of the second monitoring target clock signal using a reference clock signal.
8. The method of claim 7, wherein generating the second monitoring target clock signal comprises: repeating one or more times an operation of decreasing a frequency of a clock signal to half while maintaining a duty cycle of the clock signal.
9. The method of claim 8, wherein the first monitoring target clock signal is used as the reference clock signal.
10. The method of claim 9, wherein decreasing the frequency of the clock signal to half while maintaining the duty cycle of the clock signal comprises: generating a first output signal by decreasing the frequency of the clock signal to half; generating a second output signal by doubling a pulse width of the clock signal; and performing a logical AND operation on the first output signal and the second output signal.
11. A device for converting a frequency of a duty cycle monitoring target clock signal, wherein: the device is configured to generate a second monitoring target clock signal by decreasing a frequency of a first monitoring target clock signal while maintaining a duty cycle of the first monitoring target clock signal, and the device comprises one or more half clock generators connected in cascade, each of the half clock generators being configured to output a clock signal by decreasing a frequency of an input clock signal to half while maintaining a duty cycle of the input clock signal.
12. The device of claim 11, wherein each of the half clock generators comprises: a clock divider configured to decrease the frequency of the input clock signal to half; a pulse width doubler configured to double a pulse width of the input clock signal; and an AND gate configured to perform a logical AND operation on an output signal of the clock divider and an output signal of the pulse width doubler.
13. The device of claim 12, wherein the pulse width doubler comprises: a capacitor and a reset switch connected in parallel between a first node and a ground terminal; a first current source, a positive terminal of which is connected to a power source; a first switch connected between a negative terminal of the first current source and the first node and turned on/off in response to the first monitoring target clock signal; a second current source, a negative terminal of which is grounded; a second switch connected between a positive terminal of the second current source and the first node and turned on/off in response to an inverted signal of the first monitoring target clock signal; and a comparator, a positive terminal of which is connected to the first node and a negative terminal of which is grounded.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present disclosure will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0039] Advantages and features of the present disclosure and methods for achieving the same will be clarified with reference to embodiments described later in detail together with the accompanying drawings. However, the present disclosure is capable of being implemented in various forms, and is not limited to the embodiments described later, and these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the scope of the present disclosure to those skilled in the art. The present disclosure should be defined by the scope of the accompanying claims. The same reference numerals are used to designate the same components throughout the specification.
[0040] It will be understood that, although the terms first and second may be used herein to describe various components, these components are not limited by these terms. These terms are only used to distinguish one component from another component. Therefore, it will be apparent that a first component, which will be described below, may alternatively be a second component without departing from the technical spirit of the present disclosure.
[0041] The terms used in the present specification are merely used to describe embodiments, and are not intended to limit the present disclosure. In the present specification, a singular expression includes the plural sense unless a description to the contrary is specifically made in context. It should be understood that the term comprises or comprising used in the specification implies that a described component or step is not intended to exclude the possibility that one or more other components or steps will be present or added.
[0042] Unless differently defined, all terms used in the present specification can be construed as having the same meanings as terms generally understood by those skilled in the art to which the present disclosure pertains. Further, terms defined in generally used dictionaries are not to be interpreted as having ideal or excessively formal meanings unless they are definitely defined in the present specification.
[0043]
[0044] Referring to
[0045]
[0046] Referring to
[0047] Here, a signal having a clock frequency higher than that of the monitoring target clock signal CK.sub.MON, the duty cycle of which is to be measured, is used as the reference clock signal CK.sub.REF.
[0048] When the monitoring target clock signal CK.sub.MON is used as the enable signal of each of the multiple flip-flops 11, 12, . . . , 1n, the flip-flops in the duty cycle monitoring apparatus 10 are enabled and operated in the case where the monitoring target clock signal CK.sub.MON is high. As illustrated in
[0049] Thereafter, when the monitoring target clock signal CK.sub.MON makes a transition to a low state, the operation of the flip-flips in the duty cycle monitoring apparatus 10 is disabled. Here, the counter output of the duty cycle monitoring apparatus 10 indicates information about the pulse width of the monitoring target clock signal CK.sub.MON.
[0050] Also, because the frequencies of the monitoring target clock signal CK.sub.MON and the reference clock signal CK.sub.REF are known frequencies, the number of reference clock signals CK.sub.REF during one period T.sub.PERIOD,MON of the monitoring target clock signal CK.sub.MON may be calculated from a multiplication of (freq_CK.sub.REF?freq_CK.sub.MON). The duty cycle of the monitoring target clock signal CK.sub.MON may be calculated from the number of reference clock signals CK.sub.REF during one period T.sub.PERIOD,MON of the monitoring target clock signal CK.sub.MON, calculated as described above, and the output value of the duty cycle monitoring apparatus 10.
[0051] For example, the duty cycle may be measured as 45% when the monitoring target clock signal CK.sub.MON is a signal having a frequency of 1 MHz, the reference clock signal CK.sub.REF is a reference signal having a frequency of 100 MHz, and the output value of the duty cycle monitoring apparatus 10 is 45.
[0052] However, in the duty cycle monitoring apparatus 10, the reference clock signal CK.sub.REF needs to have a frequency higher than that of the monitoring target clock signal CK.sub.MON. In particular, as the frequency of the reference clock signal CK.sub.REF is higher than that of the monitoring target clock signal CK.sub.MON, the measurement resolution of the duty cycle may be improved, with the result that the duty cycle may be more precisely measured.
[0053] As described above, the reference clock signal CK.sub.REF having a frequency higher than that of the clock signal CK.sub.MON, the duty cycle of which is desired to be measured, is required, and, in particular, in order to improve the measurement precision of the duty cycle, a high-speed reference clock CK.sub.REF having a frequency that is several times or more higher than that of the monitoring target clock signal is required.
[0054] However, DDR DRAM used in a PC, a server, a mobile phone, etc., is already operated at a high-speed clock signal having a frequency of several GHz. For example, DDR5 DRAM corresponding to the latest standard is operated at a clock frequency of a maximum of 3.2 GHz. Therefore, in order to apply the duty cycle monitoring apparatus 10, illustrated in
[0055] Therefore, the current normal memory interface system uses an analog-type duty cycle monitoring circuit structure illustrated in
[0056]
[0057] Referring to
[0058] Initially, the voltage of the capacitor C.sub.INT 23 is initialized to the reference voltage V.sub.REF using the reset switch SW.sub.RST 26.
[0059] Thereafter, as illustrated in
[0060] Thereafter, when the clock signal CK.sub.MON goes low, the switch SW.sub.PU 24 is turned off and the SW.sub.PD 25 is turned on, and thus charges are discharged from the capacitor C.sub.INT 23 using the current of the current source I.sub.UNIT 25.
[0061] Here, the time during which the switch SW.sub.PU 24 is turned on to charge the capacitor C.sub.INT 23 is T.sub.PW,MON corresponding to the pulse width of the duty cycle monitoring target clock signal CK.sub.MON, and the time during which the SW.sub.PD 25 is turned on to discharge the capacitor C.sub.INT 23 may be T.sub.PERIOD,MON?T.sub.PW,MON. Further, during one period of the clock signal CK.sub.MON, variation in the voltage of the capacitor C.sub.INT 23 may be calculated using the following Equation (2):
?V.sub.CINT=[{I.sub.UNIT?T.sub.PW,MON}?{I.sub.UNIT?(T.sub.PERIOD,MON?T.sub.PW,MON)}]C.sub.INT(2)
[0062] However, when the duty cycle of the clock signal CK.sub.MON exceeds 50%, that is, when (T.sub.PW,MON)>(T.sub.PERIOD,MON-T.sub.PW,MON), ?V.sub.CINT has a value greater than 0, and thus a voltage value depending on the charges stored in the capacitor C.sub.INT 23 is greater than V.sub.REF.
[0063] In contrast, when the duty cycle is less than 50%, that is, when (T.sub.PW,MON)<(T.sub.PERIOD,MON?T.sub.PW,MON), ?V.sub.CINT has a value less than 0, and thus the voltage value depending on the charges stored in the capacitor C.sub.INT 23 becomes less than the reference voltage V.sub.REF.
[0064] In order to minimize the influence of various types of noise, pulse width information may be accumulated during several periods other than one period of the clock signal CK.sub.MON, and the pulse width information is then stored in the capacitor C.sub.INT 23, after which the reference voltage V.sub.REF is compared with the voltage V.sub.CINT formed in the capacitor C.sub.INT 23. Here, when the voltage V.sub.CINT is greater than the reference voltage V.sub.REF, the duty cycle may be determined to be 50% or more, whereas when the voltage V.sub.CINT is less than the reference voltage V.sub.REF, the duty cycle is determined to be less than 50%.
[0065] That is, the above-described analog-type duty cycle monitoring circuit illustrated in
[0066] Therefore, as illustrated in
[0067] Further, the memory system needs to perform monitoring and adjustment of a duty cycle whenever an operating environment such as temperature and voltage is changed as well as during a memory initialization process for data transmission. During a period in which such monitoring and adjustment are performed, data transmission is interrupted, and thus data transfer efficiency per unit time is deteriorated.
[0068] Of course, in
[0069] Therefore, when the duty cycle of the clock signal that is used as the most significant reference and is the most important in the DDR DRAM-based memory interface system is monitored, there is a need to measure a precisely digitized value at one time. That is, there is required a method for minimizing the time required for monitoring and adjusting the duty cycle and maximally securing the actual data transmission time by directly measuring and determining the duty cycle rather than determining only whether the duty cycle is greater than or less than 50%.
[0070]
[0071] Referring to
[0072] The clock frequency converter 40 may generate a second monitoring target clock signal CK.sub.MON2 by decreasing the frequency of a first monitoring target clock signal CK.sub.MON while maintaining the duty cycle of the first monitoring target clock signal CK.sub.MON.
[0073] Here, the clock frequency converter 40 may be configured to have a structure in which one or more half clock generators 100-1, 100-2, . . . , 100-m, each configured to output a clock signal by decreasing the frequency of an input clock signal to half while maintaining the duty cycle of the input clock signal, are connected in cascade. Therefore, the second monitoring target clock signal CK.sub.MON2 may maintain the same duty cycle as the first monitoring target clock signal CK.sub.MON to enable duty cycle monitoring, but the frequency thereof is decreased to (?).sup.m.
[0074] Meanwhile, the pulse counter 10 may measure the pulse width of the second monitoring target clock signal CK.sub.MON2 using a reference clock signal CK.sub.REF.
[0075] In this case, the pulse counter 10 has the above-described internal configuration such as that illustrated in
[0076] Here, the first monitoring target clock signal CK.sub.MON may be used as the reference clock signal CK.sub.REF. Therefore, digitized pulse width information of the second monitoring target clock signal CK.sub.MON2 input to the pulse counter 10 may be measured by using the first monitoring target clock signal CK.sub.MON, which is 2.sup.m times faster than the second monitoring target clock signal CK.sub.MON2, as the reference clock.
[0077] Then, the detailed configuration of each of the half clock generators 100-1, 100-2, . . . , 100-m will be described below with reference to
[0078]
[0079] Referring to
[0080] The clock divider 110 decreases the frequency of an input clock signal to half. The reason for this is to allow the pulse counter 10 to be used by decreasing the frequency of the input clock signal below a reference clock signal.
[0081] Here, the clock divider 110 may be implemented as a typical D flip-flop, a T flip-flop, or the like.
[0082] Referring to
[0083] Therefore, in an embodiment, the pulse width doubler 120 and the AND gate 130 are used to change the duty cycle of a high-speed clock signal to that of a low frequency by maintaining the duty cycle information while decreasing the frequency of the clock signal.
[0084] The pulse width doubler 120 may double the pulse width of the input clock signal.
[0085] For example, referring to
[0086] The AND gate 130 performs a logical AND operation on the output signal of the clock divider 110 and the output signal of the pulse width doubler 120.
[0087] For example, referring to
[0088] That is, since the final waveform of the half clock generator 100, that is, the signal CK.sub.MON,HCKPWD, has a halved clock frequency and then has a doubled period and a doubled pulse width, compared to the input clock signal CK.sub.MON, the signal CK.sub.MON,HCKPWD obtains the same duty ratio as the clock signal CK.sub.MON.
[0089] Meanwhile, referring back to
[0090] For example, referring to
[0091] That is, as illustrated in
[0092] As described above, by utilizing the m-stage half clock generators 100-1, 100-2, . . . , 100-m which are connected in cascade, a signal having the same duty cycle as the first monitoring target clock signal CK.sub.MON, the frequency range of which is decreased to a desired frequency range, may be generated, and thus the duty cycle digitized as an accurate n-bit digital value may be checked from the output value of the digital circuit-based duty cycle monitoring apparatus.
[0093] For example, in
[0094] It is known that the final output signal CK.sub.MON,HCKPWD, 4th of the 4-stage half clock generators has a frequency that is 1/16 of that of the input clock signal CK.sub.MON, and it is already known that 16 clock signals CK.sub.MON are present in one period of the final output signal CK.sub.MON,HCKPWD, 4th depending on the structure and operating conditions. Therefore, when the output value of the pulse counter 10 is divided by 2.sup.m, for example, when 4 is divided by 16, the duty cycle of the duty cycle monitoring target clock signal CK.sub.MON may be measured.
[0095] Also, the minimum resolution that can be measured by the apparatus for monitoring the duty cycle of a memory clock signal illustrated in
[0096] For example, when the 4-stage half clock generators are used, 16 periods of the input clock signal CK.sub.MON are input during one period of the final output signal CK.sub.MON,HCKPWD, 4th of the fourth stage half clock generator, and thus the minimum duty cycle that can be measured may be 6.25% ( 1/16).
[0097] When, for example, 7-stage half clock generators are used, the minimum duty cycle that can be measured is determined to be about 0.8% ( 1/128).
[0098] That is, depending on the minimum resolution of the duty cycle desired to be measured, the number of stages m of the half clock generators 100-1, 100-2, . . . , 100-m illustrated in
[0099]
[0100] Referring to
[0101] The operation of the duty cycle doubler 120 will be described below.
[0102] First, before operation, the capacitor C.sub.PWD 122 is reset by turning on the switch SW.sub.RST 121.
[0103] Next, when an input clock signal CK.sub.MON such as that illustrated in
[0104] In this case, when the current flowing through the current source .sub.UNIT 123 is constant, the voltage V.sub.PWD formed in the capacitor C.sub.PWD 122 linearly increases, as illustrated in
[0105] Thereafter, when the clock signal CK.sub.MON goes low, the first switch SW.sub.Pu 124 is turned off, and the second switch SW.sub.PD 126 to which the inverted signal 127 of the clock signal CK.sub.MON is input is turned on, whereby charges stored in the capacitor C.sub.PWD 122 are discharged by the current flowing through the current source I.sub.UNIT 125.
[0106] Here, as illustrated in
[0107] That is, in the case of the pulse width of the signal CK.sub.MON, during the time T.sub.PW,MOM, the first switch SW.sub.PU 124 is turned on to charge the capacitor C.sub.PWD 122 with the current flowing through the current source I.sub.UNIT 123, and thus the voltage V.sub.PWD linearly increases, whereby the output voltage of the comparator is maintained at high. After the clock signal CK.sub.MON makes a transition to a low state, the capacitor C.sub.PWD 122 is discharged with the current I.sub.UNIT having the same magnitude, and thus the voltage V.sub.PWD linearly decreases. The time required by the capacitor C.sub.PWD 122 to be discharged to 0 V may be equal to the pulse width T.sub.PW,MOM of the clock signal CK.sub.MON.
[0108] Therefore, the output signal of the comparator 128 is maintained at high during the time that is twice the pulse width T.sub.PW,MOM of the clock signal CK.sub.MON.
[0109] In the above-description, the case where the duty cycle is less than 50% is described. In the case where the duty cycle is greater than 50%, a charging time is longer than a discharging time, and thus full discharging does not occur even after charging and discharging are performed on the capacitor C.sub.PWD 122 during one period. As a result, the voltage V.sub.PWD is higher than 0 V, whereby the output of the comparator 128 is continuously maintained at high. In this case, the clock signal CK.sub.MON is inverted and input, and thus the operation of the duty cycle doubler may be performed in the same manner as the above description.
[0110]
[0111] Referring to
[0112] Here, the first monitoring target clock signal may be used as the reference clock signal.
[0113] Referring to
[0114] Here, steps S211 to S213 of decreasing the frequency of the clock signal to half while maintaining the waveform of the clock signal may include step S211 of generating a first output signal by decreasing the frequency of the clock signal to half, step S212 of generating a second output signal by doubling the pulse width of the clock signal, and step S213 of performing a logical AND operation on the first output signal and the second output signal.
[0115]
[0116] By utilizing the apparatus and method for monitoring the duty cycle of a memory clock signal according to an embodiment, as illustrated in
[0117] Compared to the embodiment of
[0118]
[0119] The apparatus according to an embodiment may be implemented in a computer system 100 such as a computer-readable storage medium.
[0120] The computer system 1000 may include one or more processors 1010, memory 1030, a user interface input device 1040, a user interface output device 1050, and storage 1060, which communicate with each other through a bus 1020. The computer system 1000 may further include a network interface 1070 connected to a network 1080. Each processor 1010 may be a Central Processing Unit (CPU) or a semiconductor device for executing programs or processing instructions stored in the memory 1030 or the storage 1060. Each of the memory 1030 and the storage 1060 may be a storage medium including at least one of a volatile medium, a nonvolatile medium, a removable medium, a non-removable medium, a communication medium, and an information delivery medium. For example, the memory 1030 may include Read-Only Memory (ROM) 1031 or Random Access Memory (RAM) 1032.
[0121] When the foregoing embodiments are applied, the time required to repeatedly perform monitoring and adjustment of the duty cycle of a clock signal that becomes a reference for data transmission/reception in a DDR DRAM-based memory interface system may be minimized, thus maximally securing the actual data transmission time.
[0122] That is, in the foregoing embodiments, after a digitized duty cycle is accurately measured at one time without repetition of monitoring and adjustment of a duty cycle, the duty cycle is adjusted once based on the measured value, thus minimizing the time required for the repetition of monitoring and adjustment of the duty cycle.
[0123] Although the embodiments of the present disclosure have been disclosed with reference to the attached drawing, those skilled in the art will appreciate that the present disclosure can be implemented in other concrete forms, without changing the technical spirit or essential features of the disclosure. Therefore, it should be understood that the foregoing embodiments are merely exemplary, rather than restrictive, in all aspects.