MEMORY, CONTROL DEVICE, CLOCK PROCESSING METHOD, AND ELECTRONIC DEVICE
The memory's clock processing circuit generates and selects appropriate read clock signals to address distorted duty ratios, ensuring accurate data latching and retrieval in electronic devices.
Patent Information
- Application Number
- JP2022564070
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-07-08
- Filing Date
- 2022-08-03
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2042-08-03
AI Technical Summary
In electronic devices, the CPU receives distorted read clock signals from memory due to duty ratio adjustments, leading to erroneous data and clock signal duty ratio adjustment failures.
A memory with a clock processing circuit that includes a duty ratio module, first and second clock generation modules, and a selection module to generate and select either a pulsed first read clock signal or a second read clock signal with one level state change edge, ensuring correct data latching even when the duty ratio is distorted.
The solution effectively avoids data latch failure by selecting the appropriate read clock signal, ensuring accurate data retrieval and duty ratio parameter acquisition.
Smart Images

Figure 0007554281000009 
Figure 0007554281000010 
Figure 0007554281000003
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to a Chinese patent application filed with the China Patent Office on July 8, 2022, bearing application number 202210806176.0 and entitled "Memory, Control Device, Clock Processing Method and Electronic Device", the entire contents of which are incorporated herein by reference.
[0002] The present disclosure relates to the field of semiconductor memories, and in particular to a memory, a control device, a clock processing method, and an electronic device. [Background technology]
[0003] In electronic devices, a CPU (Central Processing Unit) sends a read command to a memory, receives a read clock signal and a read data signal returned from the memory, and uses the read clock signal to perform latch processing on the read data signal to obtain required data. However, in the process in which the memory adjusts the duty ratio of the clock signal, the CPU needs to obtain the duty ratio parameter of the clock signal by reading the corresponding mode register in the memory. However, in this process, the clock signal inside the memory may be distorted, which will cause the read clock signal returned from the memory to be distorted as well, resulting in the CPU obtaining erroneous data and ultimately failing to adjust the duty ratio of the clock signal. Summary of the Invention
[0004] In view of this, the present disclosure provides a memory, a control device, a clock processing method, and an electronic device.
[0005] In order to achieve the above objective, the technical solution of the present disclosure is realized as follows:
[0006] In a first aspect of an embodiment of the present disclosure, a memory is provided, the memory including a clock processing circuit, the clock processing circuit comprising: A duty ratio module configured to receive an externally generated data clock signal, adjust a duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; and a second clock generation module configured to generate and output a second read clock signal during a duration of the first read clock signal, where there is only one level state change edge in the second read clock signal; a selection module configured to receive the first read clock signal and the second read clock signal, and to output one of the first read clock signal and the second read clock signal as a target read clock signal.
[0007] In some embodiments, the clock processing circuit further includes a detection module and a mode register, the detection module is configured to receive the internal clock signal, perform duty ratio detection on the internal clock signal, and output a duty ratio parameter, and the mode register is configured to receive and store the duty ratio parameter.
[0008] In some embodiments, the selection module is specifically configured to receive a selection indication signal, and output the first read clock signal as a target read clock signal when the selection indication signal is in a first state, or output the second read clock signal as a target read clock signal when the selection indication signal is in a second state.
[0009] In some embodiments, the memory is configured to receive a data read command, and based on the data read command, output a read data signal and output the target read clock signal by the clock processing circuit, the target read clock signal is used to latch the read data signal, and a level state change edge of the second read clock signal indicates an end time of valid data in the read data signal.
[0010] In some embodiments, the memory is further configured to set the selection indication signal to a first state when the data read command is a first read command, or to set the selection indication signal to a second state when the data read command is a second read command, the second read command instructing to obtain a duty ratio parameter of a mode register in the clock processing circuit, and the first read command is a data read command other than the second read command.
[0011] In some embodiments, the memory is further configured to set the selection indication signal to a first state if the data read command is a first read command, or to set the selection indication signal to the first state if the data read command is a second read command and the duty ratio of the internal clock signal is within a predetermined range, or to set the selection indication signal to a second state if the data read command is a second read command and the duty ratio of the internal clock signal is not within a predetermined range.
[0012] In some embodiments, the first read clock signal includes eight clock cycles, a level state change edge of the second read clock signal is aligned with a rising edge of a fifth clock cycle of the first read clock signal, and a level state change edge of the second read clock signal is such that the second read clock signal changes from a low level state to a high level state.
[0013] In some embodiments, the duty ratio module includes: a receiving module configured to receive and output the data clock signal from an outside; and an adjusting module configured to adjust a duty ratio of the data clock signal and output the internal clock signal.
[0014] In some embodiments, the data clock signal is a write clock signal.
[0015] In a second aspect of an embodiment of the present disclosure, there is provided a controller, the controller being coupled to a memory, the control device being configured to send a data read command to the memory, receive a read data signal and a target read clock signal returned from the memory, and latch the read data signal using the target read clock signal; The target read clock signal is a first read clock signal or a second read clock signal, where the first read clock signal is a pulse signal and the second read clock signal has only one level state changing edge.
[0016] In some embodiments, the control device is specifically configured to receive a first read clock signal returned from the memory when the data read command is a first read command, and latch the read data signal using the first read clock signal, or to receive a second read clock signal returned from the memory when the data read command is a second read command, and latch the read data signal using a level state change edge of the second read clock signal, the memory includes a clock processing circuit, the second read command instructs to obtain a duty ratio parameter of a mode register in the clock processing circuit, and the first read command instructs a data read command other than the second read command.
[0017] In some embodiments, the control device is further configured to receive a first read clock signal returned from the memory when the data read command is a second read command, and latch the read data signal using a level state change edge of the first read clock signal.
[0018] In a third aspect of an embodiment of the present disclosure, there is provided a clock processing method applied to a memory, the method comprising: receiving an externally generated data clock signal, adjusting a duty ratio of the data clock signal, and determining an internal clock signal; determining a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; generating a second read clock signal, the second read clock signal having only one level state change edge during the duration of the first read clock signal; outputting one of the first read clock signal and the second read clock signal as a target read clock signal.
[0019] In some embodiments, the memory includes a mode register, and the method further comprises: The method includes the steps of detecting a duty ratio for the internal clock signal to obtain a duty ratio parameter, and storing the duty ratio parameter in the mode register.
[0020] In some embodiments, the memory is coupled to a control device, and the step of outputting one of the first read clock signal and the second read clock signal as a target read clock signal comprises: The method includes the steps of: when a first read command transmitted from the control device is received, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; and when a second read command transmitted from the control device is received, determining the read data signal based on the second read command and determining the second read clock signal as a target read clock signal, wherein the target read clock signal is used to latch the read data signal, the second read command instructs acquisition of a duty ratio parameter of the mode register, and the first read command instructs a data read command other than the second read command.
[0021] In some embodiments, the memory is coupled to a control device, and the step of outputting one of the first read clock signal and the second read clock signal as a target read clock signal comprises: The method includes the steps of: when a first read command transmitted from the control device is received, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; when a second read command transmitted from the control device is received and the duty ratio parameter is within a preset range, determining a read data signal based on the second read command and determining the first read clock signal as a target read clock signal; and when a second read command transmitted from the control device is received and the duty ratio parameter is not within a preset range, determining the read data signal based on the second read command and determining the second read clock signal as a target read clock signal, wherein the target read clock signal is used to latch the read data signal, the second read command instructs acquisition of a duty ratio parameter of the mode register, and the first read command instructs a data read command other than the second read command.
[0022] In a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, the electronic device including at least the memory according to the first aspect and the control device according to the second aspect.
[0023] The embodiments of the present disclosure provide a memory, a control device, a clock processing method, and an electronic device. The memory includes a clock processing circuit, the clock processing circuit including: a duty ratio module configured to receive an externally generated data clock signal, adjust a duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the duration of the first read clock signal, the second read clock signal having only one level state change edge; and a selection module configured to receive the first read clock signal and the second read clock signal, and output one of the first read clock signal and the second read clock signal as a target read clock signal. In this way, when the duty ratio of the internal clock signal of the memory is distorted, the second read clock signal having one level change edge can be selected as the target read clock signal, thereby avoiding data latch failure. [Brief description of the drawings]
[0024] [Figure 1] FIG. 13 is a schematic diagram of the operation timing of the MRR command. [Diagram 2] FIG. 2 is a structural schematic diagram of an example of a clock processing circuit. [Diagram 3] FIG. 4 is a schematic diagram of an example waveform of a read clock signal. [Figure 4] FIG. 2 is a structural schematic diagram of an example of a memory provided by an embodiment of the present disclosure. [Diagram 5]FIG. 2 is a schematic diagram of a local structure of an example of a clock processing circuit provided by an embodiment of the present disclosure. [Figure 6] FIG. 2 is a schematic diagram of a local structure of an example of a clock processing circuit provided by an embodiment of the present disclosure. [Figure 7] FIG. 2 is a schematic diagram of an example waveform of a data latch processing signal provided by an embodiment of the present disclosure. [Figure 8] FIG. 2 is a schematic diagram of an example operation process of a clock processing circuit provided by an embodiment of the present disclosure. [Figure 9] FIG. 2 is a structural schematic diagram of an example of a control device provided by an embodiment of the present disclosure. [Figure 10] 1 is a flowchart of an example of a clock processing method provided by an embodiment of the present disclosure. [Figure 11] FIG. 2 is a structural schematic diagram of an example of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] The technical solutions of the embodiments of the present disclosure will be described more clearly and completely below with reference to the drawings of the embodiments of the present disclosure. It should be understood that the specific embodiments described herein are merely for the purpose of describing the present application, and are not intended to limit the present application. In addition, it should be noted that, in order to facilitate the description, only parts related to the present application are shown in the drawings.
[0026] Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used herein is for the purpose of describing the embodiments of the present disclosure only and is not intended to be limiting of the present disclosure.
[0027] In the sections below that refer to "some embodiments," a subset of all possible embodiments is described, but it will be understood that "some embodiments" may be the same or different subsets of all possible embodiments, and may be combined with each other if not inconsistent.
[0028] It should be noted that the terms "first / second / third" in the embodiments of the present disclosure are not intended to limit a particular order, but are intended to distinguish between similar objects. It should be understood that the terms "first / second / third" may be used in a particular order or a sequence that can be changed in some cases, and therefore the embodiments of the present disclosure described herein may be implemented in an order other than that shown or described.
[0029] DRAM (Dynamic Random Access Memory): Dynamic Random Access Memory
[0030] SDRAM (Synchronous Dynamic Random Access Memory): Synchronous Dynamic Random Access Memory
[0031] MRR (Mode Register Read): Mode Register Read
[0032] Mbps (Million bits per second): Bits per second
[0033] NMOS (N-Metal-Oxide-Semiconductor): N-channel field effect transistor
[0034] PMOS (P-Metal-Oxide-Semiconductor): P-channel field-effect transistor
[0035] In memory (such as DRAM), the MRR command uses exactly the same operation timing as a normal read command. Refer to FIG. 1, which is a schematic diagram of the operation timing of the MRR command. In FIG. 1, T0, T1, etc. represent different clock periods, CK_c and CK_t are a pair of differential clock signals, CS is a chip select signal, CA is an instruction address signal, COMMAND indicates an operation command, DQ[7:0] is an 8-bit memory data signal, and DQ[15:0] is a 16-bit memory data signal. The data clock signal WCK is an external write clock signal sent from the host side (Host) of the electronic device to the memory, and may be represented as one signal or a pair of differential clock signals WCK_c and WCK_t at different circuit locations. The read clock signal RDQS is a clock signal output from the memory to the electronic device, and may be represented as one signal or a pair of differential clock signals RDQS_c and RDQS_t at different circuit locations. Specifically, after receiving the MRR command from the CPU, the memory generates a data signal DQ (which can also be called a read data signal), and uses the data clock signal WCK received from the outside to generate a read clock signal RDQS. In the process of executing the data read command, the memory returns the read data signal DQ and the read clock signal RDQS together to the CPU, and then the CPU uses the read clock signal RDQS to latch the read data signal DQ and obtain the required data. Figure 1 is a standard timing specified in the JEDEC (Joint Electron Device Engineering Council) standard, and the meanings of each signal therein, the relevant change principles, and the abbreviations of some terms not mentioned can be understood by referring to the industry standard document JEDEC, and are not related to the technical solutions of the embodiments of the present disclosure and do not affect the understanding of those skilled in the art, so the description will be omitted.
[0036] A clock processing circuit is provided in the memory, which adjusts the data clock signal WCK0 (including a pair of complementary signals WCK_c / WCK_t) so that the duty ratio of the data clock signal WCK0 meets the requirements. Referring to FIG. 2, FIG. 2 is a structural schematic diagram of an example of a clock processing circuit. As shown in FIG. 2, in the clock processing circuit, a receiving module receives a data clock signal WCK0 from the outside. An adjusting module adjusts the duty ratio of the data clock signal WCK0 to obtain an internal clock signal WCK1. A detecting module detects the duty ratio parameter of the internal clock signal WCK1 and stores it in a mode register. At the same time, in the process of the memory adjusting the duty ratio, a CPU sends an MRR command to read the duty ratio parameter in the mode register, thereby determining the next operation. As shown in FIG. 2, in one exemplary case, assuming that the duty ratio of the data clock signal WCK0 input from the outside is 57% of the upper limit specified by JEDEC, in the initial stage of duty ratio adjustment, the duty ratio adjustment module increases the duty ratio of the data clock signal WCK0 by 7 units (the upper limit specified by JEDEC, one unit is 5 picoseconds), that is, 35 picoseconds, and this increment corresponds to a 15% increase in the duty ratio at a speed of 8533Mbps. At this time, the duty ratio of the internal clock signal WCK1 of the memory increases to 72%, and the duty ratio of the read clock signal RDQS generated using it also increases to 72%. Now, referring to FIG. 3, FIG. 3 is a schematic diagram of an example waveform of a read clock signal. As shown in Figure 3, the read clock signal RDQS with a duty cycle as high as 72% will be significantly distorted when it reaches the CPU receiving end due to channel attenuation during transmission, making it difficult for the CPU to correctly identify it, which means that the MRR command may obtain erroneous data, ultimately resulting in the failure of duty cycle adjustment. As memory speeds increase, this problem will become more serious.
[0037] Based on this, an embodiment of the present disclosure provides a memory, the memory includes a clock processing circuit, the clock processing circuit includes: a duty ratio module configured to receive an externally generated data clock signal, adjust a duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the duration of the first read clock signal, the second read clock signal having only one level state change edge; and a selection module configured to receive the first read clock signal and the second read clock signal, and output one of the first read clock signal and the second read clock signal as a target read clock signal, so that when the duty ratio of the internal clock signal of the memory is distorted, the second read clock signal having one level change edge can be selected as the target read clock signal, thereby avoiding data latch failure.
[0038] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.
[0039] In one embodiment of the present disclosure, refer to FIG. 4, which is a structural schematic diagram of an example of a memory 10 provided by an embodiment of the present disclosure. As shown in FIG. 4, the memory 10 includes a clock processing circuit 20, which: A duty ratio module 21 configured to receive an externally generated data clock signal, adjust the duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module 22 configured to receive an internal clock signal and output a first read clock signal based on the internal clock signal, where the first read clock signal is a pulse signal; a second clock generation module 23 configured to generate and output a second read clock signal during the lifetime of the first read clock signal, where there is only one level state change edge in the second read clock signal; a selection module 24 configured to receive the first read clock signal and the second read clock signal, and to output one of the first read clock signal and the second read clock signal as a target read clock signal.
[0040] It should be noted that in the embodiments of the present disclosure, memory 10 can be various types of semiconductor memory, such as DRAM, SDRAM, dual rate DRAM, low power dual rate DRAM, and the like.
[0041] The memory 10 is provided with a first clock generating module 22 and a second clock generating module 23, the first clock generating module 22 can generate a first read clock signal having multiple pulses based on a data clock signal received from the outside, and the second clock generating module 23 can generate a second read clock signal having only one level state change edge. Thus, in various operating situations, the first read clock signal or the second read clock signal can be selected and sent to the CPU as a target read clock signal to realize data latch processing. In particular, the second read clock signal is not affected by distortion of the duty ratio of the internal clock signal, so that even if the duty ratio of the internal clock signal is significantly distorted, the correct latching of data can be guaranteed.
[0042] Here, there are various possibilities for the specific waveform and generation process of the second read clock signal, and the embodiments of the present disclosure are provided below as examples only and are not limited to specific ones. In particular, the level change edge of the second read clock signal is synchronized with the end time of the valid data in the read data signal, or the level change edge of the second read clock signal is prior to the end time of the valid data in the read data signal, thereby ensuring the valid data is correctly latched. In addition, the level change edge can be a rising edge (i.e., the second read clock signal changes from a low level to a high level) or a falling edge (i.e., the second read clock signal changes from a high level to a low level).
[0043] It should be noted that, as shown in FIG. 5, the duty ratio module 21 includes a receiving module 211 and an adjusting module 212, and the specific implementation can refer to the following description. The first clock generating module 22 can be composed of a logic element and a delay unit to achieve the consistency of delay time and the standard timing specified in the JEDEC standard. The second clock generating module 23 is composed of a frequency divider consisting of a D-type flip-flop and an inverter. The selection module 24 can be realized by a two-choice data selector.
[0044] In some embodiments, the data clock signal is an externally received write clock signal, denoted below as WCK0. The internal clock signal is a duty cycle adjusted write clock signal internal to the memory, denoted below as WCK1. The target read clock signal is a data strobe signal for read operations, denoted below as RDQS. The read data signal may be denoted as DQ.
[0045] 5, in some embodiments, the clock processing circuit 20 further includes a detection module 25 and a mode register 26. The detection module 25 is configured to receive the internal clock signal WCK1, perform duty ratio detection on the internal clock signal WCK1, and output a duty ratio parameter, and the mode register 26 is configured to receive and store the duty ratio parameter.
[0046] It should be explained that the detection module 25 may be composed of logic gates, transmission gates, capacitors, and signal comparators.
[0047] In some embodiments, as shown in FIG. 6, the selection module 24 is specifically configured to receive a selection indication signal, and output a first read clock signal as the target read clock signal RDQS when the selection indication signal is in a first state, or output a second read clock signal as the target read clock signal RDQS when the selection indication signal is in a second state.
[0048] Here, the selection module 24 can be a binary data selector, which outputs a first read clock signal or outputs a second read clock signal according to the state of a selection indication signal.
[0049] In some embodiments, the memory 10 is configured to receive a data read command, and based on the data read command, output a read data signal DQ and output a target read clock signal RDQS by the clock processing circuit 20. The target read clock signal RDQS is used to latch the read data signal DQ, and a level state changing edge of the second read clock signal indicates the end time of valid data in the read data signal DQ.
[0050] That is, in an electronic device including a memory 10, a CPU of the electronic device transmits an operation command to the memory 10 to realize writing or reading of data. In the process of reading data, the CPU transmits a data read command to the memory 10, and the memory 10 generates a read data signal DQ (including parameters that the CPU intends to read) based on the data read command, and generates a target read clock signal RDQS by the clock processing circuit 20. Thus, the read data signal DQ and the target read clock signal RDQS are transmitted to the CPU, and the CPU can latch the read data signal using the target read clock signal RDQS, and subsequently decode it to obtain the required parameters.
[0051] In the embodiment of the present disclosure, the data read command is divided into two types, namely, a first read command and a second read command. The second read command instructs to obtain the duty ratio parameter of the mode register 26 in the clock processing circuit 20, and the first read command is a data read command other than the second read command.
[0052] In one specific embodiment, the memory 10 is further configured to set the selection indication signal to a first state when the data read command is a first read command, or to set the selection indication signal to a second state when the data read command is a second read command.
[0053] As mentioned above, when a data read command is used to read the duty ratio parameter in the mode register 26, the memory 10 may be in the middle of duty ratio adjustment. In some cases, the internal clock signal WCK1 is already distorted, for example, the duty ratio of the internal clock signal WCK1 is as high as 72%, in which case the first read clock signal will also be distorted, and if the CPU uses the first read clock signal to latch the read data signal DQ, it may obtain an incorrect result. In the embodiment of the present disclosure, when a data read command is used to read the duty ratio parameter in the mode register 26, the second read clock signal is output as the target read clock signal RDQS, and the second read clock signal only has one level change edge and is not affected by the distortion of the duty ratio of the internal clock signal WCK1, so the CPU can use the level change edge in the second read clock signal to latch the data signal and obtain the correct duty ratio parameter.
[0054] Alternatively, in order to save power consumption, when the data read command is the first read command, the second clock generation module 23 is disabled, that is, the second clock generation module 23 does not operate, thereby achieving the purpose of reducing current consumption and power consumption.
[0055] In another specific embodiment, the memory 10 is further configured to set the selection indication signal to a first state when the data read command is a first read command, or to set the selection indication signal to the first state when the data read command is a second read command and the duty ratio of the internal clock signal WCK1 is within a predetermined range, or to set the selection indication signal to a second state when the data read command is a second read command and the duty ratio of the internal clock signal WCK1 is not within the predetermined range.
[0056] That is, when a data read command is used to read the duty ratio parameter in the mode register 26, if the duty ratio of the internal clock signal WCK1 meets the requirement, then the first read clock signal will not be distorted, and the CPU can use the first read clock signal to latch the read data signal.
[0057] In the following, a specific waveform of the second read clock signal and a latch process of the read data signal will be described by taking the burst length of the DRAM as 16 and the DRAM having 16 DQ ends as an example.
[0058] For the second read command, the upper 8 bits of the read data signal DQ contain valid data and are represented as DQ<7:0>. According to the JEDEC standard, the first 8 beats (first 4 clock periods) of the target read clock signal RDQS carry the mode register parameter value (MR Content), and the lower 8 beats (last 4 clock periods) carry the data of no interest (Valid). At this time, the first read clock signal includes 8 clock periods, the level state change edge of the second read clock signal is aligned with the rising edge of the 5th clock period of the first read clock signal, and the level state change edge of the second read clock signal is that the second read clock signal changes from a low level state to a high level state.
[0059] That is, as shown in Fig. 7(1), when the first read clock signal is used as the target read clock signal RDQS, the CPU latches the read data signal DQ<7:0> using the signal edge of the target read clock signal RDQS, the data latched in the first four clock cycles is MR Content, and the data latched in the latter four clock cycles is not used. As shown in Fig. 7(2), when the second read clock signal is used as the target read clock signal RDQS, the CPU latches the read data signal DQ<7:0> using the rising edge of the second read clock signal to obtain MR Content.
[0060] In some embodiments, as shown in FIG. 5 or FIG. 6, the duty ratio module 21 includes: a receiving module 211 configured to receive and output a data clock signal WCK0 from the outside; and an adjusting module 212 configured to adjust the duty ratio of the data clock signal WCK0 and output an internal clock signal WCK1.
[0061] It should be noted that the adjustment module 212 is configured to adjust the duty ratio. When the duty ratio adjustment starts, the default setting of the adjustment module 212 increases the duty ratio of the data clock signal WCK0 by a certain value, and according to the JEDEC standard, the upper limit of the increase of the duty ratio is 7 steps, i.e., 35 picoseconds.
[0062] The receiving module 211 can be realized by a signal receiver composed of elements such as NMOS and PMOS, etc. The adjusting module 212 can be composed of cascaded delay units, each of which is composed of NMOS and PMOS, thereby realizing forward / reverse adjustment of the rising edge in the data clock signal WCK0 and / or realizing forward / reverse adjustment of the falling edge in the data clock signal WCK0, and finally adjusting the duty ratio of the data clock signal WCK0.
[0063] The following provides a possible operating scenario to describe the technical effect of the embodiment of the present disclosure. As shown in FIG. 8(a), the duty ratio of the externally generated data clock signal WCK0 is 57%. When the duty ratio adjustment starts, the duty ratio of the data clock signal WCK0 is increased by 7 units (35 picoseconds) by default. When the memory speed is 8633Mbps, the duty ratio of the internal clock signal WCK1 is increased by 15% based on the data clock signal WCK0, that is, the duty ratio of the internal clock signal WCK1 is increased to 72%. As shown in FIG. 8(b), at this time, the CPU sends a second read command to the memory and sets the selection indication signal to a second state, and the memory 10 takes the second read clock signal with one signal edge as the target read clock signal RDQS, so that the CPU uses the second read clock signal to latch the read data signal DQ<7:0>, obtain the correct duty ratio parameter, and ensure the success of the duty ratio adjustment operation.
[0064] As described above, an embodiment of the present disclosure provides a memory, the memory includes a clock processing circuit, the clock processing circuit includes: a duty ratio module configured to receive an externally generated data clock signal, adjust the duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal according to the internal clock signal, the first read clock signal being a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the duration of the first read clock signal, the second read clock signal having only one level state change edge; and a selection module configured to receive the first read clock signal and the second read clock signal, and output one of the first read clock signal and the second read clock signal as a target read clock signal, so that when the duty ratio of the internal clock signal is distorted, the second read clock signal having one level change edge can be selected as the target read clock signal, thereby avoiding data latch failure.
[0065] In another embodiment of the present disclosure, refer to FIG. 9, which is a structural schematic diagram of an example of a control device 30 provided by an embodiment of the present disclosure. As shown in FIG. 9, the control device 30 is connected to a memory 10, The control device 30 is configured to send a data read command to the memory 10, and receive a read data signal DQ and a target read clock signal RDQS returned from the memory 10, and latch the read data signal DQ using the target read clock signal RDQS, where the target read clock signal RDQS is a first read clock signal or a second read clock signal, where the first read clock signal is a pulse signal, and the second read clock signal has only one level state change edge.
[0066] It should be explained that the control device 30 may be a CPU. Specifically, the control device 30 sends an instruction through the memory controller of the memory 10 to read data of the mode register / storage array in the memory 10. Specifically, when reading data of the memory 10, the CPU sends a data read instruction to the memory through the instruction bus and the data bus, and the memory 10 analyzes the data read instruction, performs a corresponding read operation, and obtains a read data signal. In addition, the memory generates a target read clock signal, so that the control device 30 uses the target read clock signal RDQS to latch the read data signal DQ and obtain the required data.
[0067] 4 to 6, in the embodiment of the present disclosure, the target read clock signal RDQS received from the memory 10 of the control device 30 has multiple pulses or only one level state change edge, that is, when the duty ratio of the first read clock signal is distorted, the memory 10 sends the second read clock signal having only one level state change edge as the target read clock signal RDQS to the control device 30, thereby correctly latching the read data signal DQ.
[0068] In one specific embodiment, the control device 30 is specifically configured to receive a first read clock signal returned from the memory 10 when the data read command is a first read command, and latch the read data signal DQ using the first read clock signal; or, when the data read command is a second read command, receive a second read clock signal returned from the memory 10, and latch the read data signal DQ using the level state change edge of the second read clock signal.
[0069] It should be noted that the memory 10 includes a clock processing circuit 20, the second read command instructs obtaining a duty ratio parameter of a mode register in the clock processing circuit 20, and the first read command instructs a data read command other than the second read command.
[0070] Thus, when the data read command is the second read command, the memory 10 is in the process of duty ratio adjustment, and the internal clock signal WCK1 in the memory 10 may be distorted, i.e., the first read clock signal is distorted. The second read clock signal can be the target read clock signal RDQS, so that the control device 30 can obtain the correct duty ratio parameter. Conversely, when the data read command is the first read command, the internal clock signal WCK1 and the first read clock signal in the memory are normal, so the first read clock signal can be the target read clock signal RDQS, so that the control device 30 can obtain the correct result.
[0071] In another specific embodiment, the control device 30 is further configured to receive a first read clock signal returned from the memory when the data read command is a second read command, and latch the read data signal using the level state change edge of the first read clock signal.
[0072] In this way, when the data read command is the second read command, the internal clock signal WCK1 and the first read clock signal in the memory 10 can be normal, and therefore the memory 10 can still take the first read clock signal as the target read clock signal RDQS.
[0073] An embodiment of the present disclosure provides a control device, the control device is connected to a memory, the control device is configured to send a data read command to the memory, and receive a read data signal and a target read clock signal returned from the memory, and to latch the read data signal using the target read clock signal, the target read clock signal is a first read clock signal or a second read clock signal, the first read clock signal is a pulse signal, and the second read clock signal has only one level state change edge, so that when the duty ratio of the internal clock signal is distorted, the second read clock signal having one level state change edge is used to latch the read data signal, thereby avoiding data latch failure.
[0074] In yet another embodiment of the present disclosure, refer to Fig. 10, which is a flowchart of an example of a clock processing method provided by an embodiment of the present disclosure. As shown in Fig. 10, the method includes the following steps:
[0075] In step S401, an externally generated data clock signal is received, the duty ratio of the data clock signal is adjusted, and an internal clock signal is determined.
[0076] In step S402, a first read clock signal is determined based on the internal clock signal, The first read clock signal is a pulse signal.
[0077] In step S403, a second read clock signal is generated during the duration of the first read clock signal, where there is only one level state change edge in the second read clock signal.
[0078] In step S404, one of the first read clock signal and the second read clock signal is output as a target read clock signal.
[0079] It should be noted that the method is applied to the above-mentioned memory 10. Thus, the memory 10 can simultaneously generate a first read clock signal and a second read clock signal, and select the first read clock signal or the second read clock signal to send to the CPU as the target read clock signal RDQS in different operating situations, thereby realizing the latching of the data signal. In particular, since the second read clock signal is not affected by the distortion of the duty ratio of the internal clock signal WCK1, the correct latching of the data signal can be guaranteed even if the distortion of the duty ratio of the internal clock signal WCK1 is large.
[0080] In some embodiments, as described above, memory 10 includes mode register 26, and the method further comprises: The method includes the steps of detecting a duty ratio for an internal clock signal and obtaining a duty ratio parameter, and storing the duty ratio parameter in a mode register.
[0081] In one specific embodiment, as described above, the memory 10 is connected to the control device 30, and the step of outputting one of the first read clock signal and the second read clock signal as the target read clock signal includes: The method includes, when a first read command transmitted from the control device is received, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; and, when a second read command transmitted from the control device is received, determining a read data signal based on the second read command and determining the second read clock signal as a target read clock signal.
[0082] Here, the target read clock signal is used to latch the read data signal, the second read command instructs to obtain a duty ratio parameter of a mode register, and the first read command instructs a data read command other than the second read command.
[0083] In another specific embodiment, the step of outputting one of the first read clock signal and the second read clock signal as the target read clock signal includes: The method includes the steps of: when a first read command transmitted from the control device is received, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; when a second read command transmitted from the control device is received and the duty ratio parameter is within a preset range, determining a read data signal based on the second read command and determining the first read clock signal as a target read clock signal; and when a second read command transmitted from the control device is received and the duty ratio parameter is not within the preset range, determining the read data signal based on the second read command and determining the second read clock signal as a target read clock signal.
[0084] An embodiment of the present disclosure provides a clock processing method, which includes the steps of: receiving an externally generated data clock signal, adjusting a duty ratio of the data clock signal to determine an internal clock signal; determining a first read clock signal according to the internal clock signal, where the first read clock signal is a pulse signal; generating a second read clock signal during the duration of the first read clock signal, where the second read clock signal has only one level state change edge; and outputting one of the first read clock signal and the second read clock signal as a target read clock signal, so that when the duty ratio of the internal clock signal is distorted, the second read clock signal having one level state change edge can be selected as the target read clock signal, thereby avoiding data latch failure.
[0085] In yet another embodiment of the present disclosure, referring to Fig. 11, Fig. 11 is a structural schematic diagram of an example of an electronic device 50 provided by an embodiment of the present disclosure. As shown in Fig. 11, the electronic device 50 includes at least the above-mentioned memory 10 and the above-mentioned control device 30.
[0086] Since the memory 10 can output a first read clock signal having multiple pulses or a second read clock signal having one level change edge, when the duty ratio of the internal clock signal in the memory 10 is distorted, the second read clock signal having one level change edge is selected as the target read clock signal, and the control device 30 can use the level change edge in the second read clock signal to latch data and avoid obtaining erroneous data.
[0087] The above are only the best examples of the present disclosure and are not intended to limit the scope of protection of the present disclosure. In the present disclosure, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a set of elements includes not only those elements, but also other elements not expressly listed, or inherent elements of such a process, method, article, or device. Unless otherwise limited, an element defined with the phrase "comprises ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element. The numbers of the embodiments of the present disclosure above do not represent the superiority or inferiority of the embodiments, but are for convenience of explanation. The methods disclosed in some method embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The methods disclosed in some product embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in some method or device embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments. The above contents are merely specific embodiments of the present disclosure, and the scope of protection of the present disclosure is not limited thereto. Any modifications or replacements that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims. [Industrial Applicability]
[0088] The embodiments of the present disclosure provide a memory, a control device, a clock processing method, and an electronic device. The memory includes a clock processing circuit, the clock processing circuit including: a duty ratio module configured to receive an externally generated data clock signal, adjust a duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the duration of the first read clock signal, the second read clock signal having only one level state change edge; and a selection module configured to receive the first read clock signal and the second read clock signal, and output one of the first read clock signal and the second read clock signal as a target read clock signal. In this way, when the duty ratio of the internal clock signal of the memory is distorted, the second read clock signal having one level change edge can be selected as the target read clock signal, thereby avoiding data latch failure.
Claims
1. A memory, the memory including a clock processing circuit, the clock processing circuit comprising: A duty ratio module configured to receive an externally generated data clock signal, adjust a duty ratio of the data clock signal, and output an internal clock signal; a first clock generation module configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; a second clock generation module configured to generate and output a second read clock signal during a duration of the first read clock signal, where there is only one level state change edge in the second read clock signal; a selection module configured to receive the first read clock signal and the second read clock signal and to output one of the first read clock signal and the second read clock signal as a target read clock signal. Memory.
2. the clock processing circuit further includes a detection module and a mode register; The detection module is configured to receive the internal clock signal, perform duty ratio detection on the internal clock signal, and output a duty ratio parameter; the mode register is configured to receive and store the duty cycle parameter; The memory of claim 1 .
3. the selection module is configured to receive a selection indication signal and output the first read clock signal as a target read clock signal when the selection indication signal is in a first state, or output the second read clock signal as a target read clock signal when the selection indication signal is in a second state. The memory of claim 2 .
4. The memory is configured to receive a data read command, and output a read data signal based on the data read command, and output the target read clock signal by the clock processing circuit; the target read clock signal is used to latch the read data signal, and a level state changing edge of the second read clock signal indicates an end time of valid data in the read data signal. The memory of claim 3.
5. the memory is further configured to set the selection indication signal to a first state if the data read command is a first read command, or to set the selection indication signal to a second state if the data read command is a second read command; the second read command instructs acquisition of a duty ratio parameter of a mode register in the clock processing circuit, and the first read command is a data read command other than the second read command; The memory of claim 4.
6. The memory further comprises: If the data read command is a first read command, setting the selection indication signal to a first state; or When the data read command is a second read command and the duty ratio of the internal clock signal is within a preset range, setting the selection indication signal to a first state; or When the data read command is a second read command and the duty ratio of the internal clock signal is not within a preset range, the selection indication signal is set to a second state. The memory of claim 5.
7. the first read clock signal includes eight clock periods, and a level state changing edge of the second read clock signal is aligned with a rising edge of a fifth clock period of the first read clock signal; a level state change edge of the second read clock signal is a change of the second read clock signal from a low level state to a high level state; The duty ratio module includes: a receiving module configured to receive and output the data clock signal from an external device; an adjusting module configured to adjust a duty ratio of the data clock signal and output the internal clock signal; the data clock signal is a write clock signal; The memory of claim 6.
8. A controller, the controller being coupled to a memory; The controller is configured to send a data read command to the memory, receive a read data signal and a target read clock signal returned from the memory, and latch the read data signal using the target read clock signal; The target read clock signal is a first read clock signal or a second read clock signal, the first read clock signal being a pulse signal and the second read clock signal having only one level state change edge; Control device.
9. When the data read command is a first read command, the control device receives a first read clock signal returned from the memory, and latches the read data signal using the first read clock signal; or If the data read command is a second read command, the second read clock signal is received from the memory, and the read data signal is latched using a level state change edge of the second read clock signal; the memory includes a clock processing circuit, the second read command instructs acquisition of a duty ratio parameter of a mode register in the clock processing circuit, and the first read command instructs a data read command other than the second read command; The control device according to claim 8.
10. The control device is further configured to receive a first read clock signal returned from the memory when the data read command is a second read command, and latch the read data signal using a level state change edge of the first read clock signal. The control device according to claim 8.
11. 1. A clock processing method applied to a memory, the method comprising: receiving an externally generated data clock signal, adjusting a duty ratio of the data clock signal, and determining an internal clock signal; determining a first read clock signal based on the internal clock signal, the first read clock signal being a pulse signal; generating a second read clock signal, the second read clock signal having only one level state change edge during the duration of the first read clock signal; outputting one of the first read clock signal and the second read clock signal as a target read clock signal. Clock processing method.
12. The memory includes a mode register, and the clock processing method further comprises: detecting a duty ratio of the internal clock signal to obtain a duty ratio parameter; storing the duty ratio parameter in the mode register.
12. The clock processing method according to claim 11.
13. The memory is connected to a control device, and the step of outputting one of the first read clock signal and the second read clock signal as a target read clock signal includes: When receiving a first read command sent from the control device, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; when receiving a second read command sent from the control device, determining the read data signal based on the second read command and determining the second read clock signal as a target read clock signal; the target read clock signal is used to latch the read data signal, the second read command instructs acquisition of a duty ratio parameter of the mode register, and the first read command instructs a data read command other than the second read command; 13. A method for processing a clock according to claim 12.
14. The memory is connected to a control device, and the step of outputting one of the first read clock signal and the second read clock signal as a target read clock signal includes: When receiving a first read command sent from the control device, determining a read data signal based on the first read command and determining the first read clock signal as a target read clock signal; receiving a second read command sent from the control device, and when the duty ratio parameter is within a preset range, determining a read data signal based on the second read command, and determining the first read clock signal as a target read clock signal; receiving a second read command sent from the control device, and when the duty ratio parameter is not within a preset range, determining the read data signal based on the second read command, and determining the second read clock signal as a target read clock signal; the target read clock signal is used to latch the read data signal, the second read command instructs acquisition of a duty ratio parameter of the mode register, and the first read command instructs a data read command other than the second read command; 13. A method for processing a clock according to claim 12.
15. An electronic device comprising: a memory according to any one of claims 1 to 7; and a control device according to any one of claims 8 to 10.
Citation Information
Patent Citations
Semiconductor device and method of controlling semiconductor device
JP2013178603A
Semiconductor device
JP2020052677A
memory
JP2023512018A
Apparatuses and methods for using look-ahead duty cycle correction to determine duty cycle adjustment values while a semiconductor device remains in operation
US20200162066A1
memory
WO2022088757A1
