A memory, a control device, a clock processing method, and an electronic device

By generating a second read clock signal with a single level change edge in the memory as the target read clock signal, the problem of data latching failure caused by internal clock signal distortion in the memory is solved, and the accuracy of data latching is achieved.

CN117409828BActive Publication Date: 2026-11-20CHANGXIN MEMORY TECH INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210806176.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-08
Publication Date
2026-11-20
Estimated Expiration
2042-07-08

AI Technical Summary

Technical Problem

In memory, a distortion in the duty cycle of the clock signal causes the central processing unit to receive incorrect data, which in turn leads to the failure of the clock signal duty cycle adjustment.

Method used

A memory is provided, including a clock processing circuit that receives an external data clock signal, adjusts the duty cycle to generate a first read clock signal and a second read clock signal, and selects one of them as the target read clock signal. The first read clock signal is a pulse signal, and the second read clock signal has only one level change edge to avoid data latch failure.

Benefits of technology

In the event of a distorted duty cycle of the internal clock signal of the memory, a second read clock signal with a single level change edge is selected as the target read clock signal to ensure the accuracy of data latching and avoid data latching failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117409828B_ABST
    Figure CN117409828B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a memory, a control device, a clock processing method and an electronic device. The clock processing circuit in the memory comprises: a duty cycle module configured to perform duty cycle adjustment on a data clock signal and output an internal clock signal; a first clock generation module configured to receive the internal clock signal, output a first read clock signal based on the internal clock signal; the first read clock signal is a pulse signal; a second clock generation module configured to generate and output a second read clock signal; the second read clock signal has 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, in the case of duty cycle distortion of the internal clock signal, the second read clock signal with a single level change edge can be selected as the target read clock signal, and data latch failure can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of semiconductor memory technology, and more particularly to a memory, control device, clock processing method, and electronic device. Background Technology

[0002] In electronic devices, the Central Processing Unit (CPU) sends a read instruction to the memory and then receives the read clock signal and read data signal returned by the memory. The CPU uses the read clock signal to latch the read data signal to obtain the required data. However, during the process of the memory adjusting the duty cycle of the clock signal, the CPU needs to obtain the duty cycle parameter of the clock signal by reading the corresponding mode register in the memory. However, the clock signal inside the memory may be distorted during this process, resulting in a distorted read clock signal returned by the memory to the CPU. This causes the CPU to obtain incorrect data, ultimately leading to the failure of the clock signal duty cycle adjustment. Summary of the Invention

[0003] This disclosure provides a memory, a control device, a clock processing method, and an electronic device. When the duty cycle of the internal clock signal of the memory is distorted, a second read clock signal with a single level change edge can be selected as the target read clock signal to avoid data latch failure.

[0004] The technical solution disclosed herein is implemented as follows:

[0005] In a first aspect, embodiments of this disclosure provide a memory, the memory including a clock processing circuit, the clock processing circuit comprising:

[0006] The duty cycle module is configured to receive an externally generated data clock signal; adjust the duty cycle of the data clock signal; and output an internal clock signal.

[0007] The first clock generation module is configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal; wherein the first read clock signal is a pulse signal.

[0008] The second clock generation module is configured to generate and output a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level state change edge;

[0009] The selection module is 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 the target read clock signal.

[0010] In some embodiments, the clock processing circuit further includes a detection module and a mode register; wherein, the detection module is configured to receive the internal clock signal, perform duty cycle detection on the internal clock signal, and output a duty cycle parameter; the mode register is configured to receive and store the duty cycle parameter.

[0011] In some embodiments, the selection module is specifically configured to receive a selection indication signal, and when the selection indication signal is in a first state, output the first read clock signal as a target read clock signal; or, when the selection indication signal is in a second state, output the second read clock signal as a target read clock signal.

[0012] In some embodiments, the memory is configured to receive a data read instruction; based on the data read instruction, output a read data signal, and output a target read clock signal through the clock processing circuit; wherein the target read clock signal is used to latch the read data signal, and the level change edge of the second read clock signal indicates the end time of valid data in the read data signal.

[0013] In some embodiments, the memory is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or to set the selection indication signal to a second state when the data read instruction is a second read instruction; wherein the second read instruction indicates the acquisition of the duty cycle parameter of the mode register in the clock processing circuit, and the first read instruction refers to a data read instruction other than the second read instruction.

[0014] In some embodiments, the memory is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or, when the data read instruction is a second read instruction and the duty cycle of the internal clock signal is within a preset range; or, when the data read instruction is a second read instruction and the duty cycle of the internal clock signal is not within a preset range, the selection indication signal is set to a second state.

[0015] In some embodiments, the first read clock signal includes 8 clock cycles, and the level change edge of the second read clock signal is aligned with the rising edge of the 5th clock cycle of the first read clock signal; wherein, the level change edge of the second read clock signal refers to the second read clock signal changing from a low level state to a high level state.

[0016] In some embodiments, the duty cycle module includes: a receiving module configured to receive and output the data clock signal from an external source; and an adjustment module configured to adjust the duty cycle of the data clock signal and output the internal clock signal.

[0017] In some embodiments, the data clock signal is a write clock signal.

[0018] Secondly, embodiments of this disclosure provide a control device connected to a memory; wherein,

[0019] The control device is configured to send a data read instruction to the memory; and to receive a read data signal and a target read clock signal returned by the memory, and to perform latching processing on the read data signal using the target read clock signal.

[0020] The target read clock signal is either a first read clock signal or a second read clock signal. The first read clock signal is a pulse signal, while the second read clock signal has only one level state change edge.

[0021] In some embodiments, the control device is specifically configured to, when the data read instruction is a first read instruction, receive a first read clock signal returned by the memory and perform latching processing on the read data signal using the first read clock signal; or, when the data read instruction is a second read instruction, receive a second read clock signal returned by the memory and perform latching processing on the read data signal using the level state change edge of the second read clock signal; wherein the memory includes a clock processing circuit, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register in the clock processing circuit, and the first read instruction indicates a data read instruction other than the second read instruction.

[0022] In some embodiments, the control device is further configured to receive a first read clock signal returned by the memory when the data read instruction is a second read instruction, and to latch the read data signal using the level change edge of the first read clock signal.

[0023] Thirdly, embodiments of this disclosure provide a clock processing method applied to a memory, the method comprising:

[0024] Receive an externally generated data clock signal; adjust the duty cycle of the data clock signal to determine the internal clock signal;

[0025] Based on the internal clock signal, a first read clock signal is determined; wherein, the first read clock signal is a pulse signal;

[0026] During the presence of the first read clock signal, a second read clock signal is generated; wherein the second read clock signal has only one level state change edge;

[0027] One of the first read clock signal and the second read clock signal is output as the target read clock signal.

[0028] In some embodiments, the memory includes a mode register, and the method further includes:

[0029] The duty cycle of the internal clock signal is detected to obtain the duty cycle parameter; the duty cycle parameter is then stored in the mode register.

[0030] In some embodiments, 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:

[0031] Upon receiving a first read instruction from the control device, a read data signal is determined based on the first read instruction, and the first read clock signal is determined as the target read clock signal; upon receiving a second read instruction from the control device, the read data signal is determined based on the second read instruction, and the second read clock signal is determined as the target read clock signal; wherein, the target read clock signal is used to latch the read data signal, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register, and the first read instruction indicates a data read instruction other than the second read instruction.

[0032] In some embodiments, 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:

[0033] Upon receiving a first read instruction from the control device, a read data signal is determined based on the first read instruction, and the first read clock signal is determined as the target read clock signal. Upon receiving a second read instruction from the control device and the duty cycle parameter is within a preset range, a read data signal is determined based on the second read instruction, and the first read clock signal is determined as the target read clock signal. Upon receiving a second read instruction from the control device and the duty cycle parameter is not within the preset range, the read data signal is determined based on the second read instruction, and the second read clock signal is determined as the target read clock signal. The target read clock signal is used to latch the read data signal, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register, and the first read instruction indicates a data read instruction other than the second read instruction.

[0034] Fourthly, embodiments of this disclosure provide an electronic device, which includes at least a memory as described in the first aspect and a control device as described in the second aspect.

[0035] This disclosure provides a memory, a control device, a clock processing method, and an electronic device. The memory includes a clock processing circuit, which comprises: a duty cycle module configured to receive an externally generated data clock signal; adjust the duty cycle 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, wherein the first read clock signal is a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the existence of the first read clock signal, wherein the second read clock signal has only one level 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. Thus, in the event of duty cycle distortion of the memory's internal clock signal, the second read clock signal with a single level change edge can be selected as the target read clock signal, avoiding data latch failure. Attached Figure Description

[0036] Figure 1 This is a schematic diagram of the operation timing of the MRR instruction;

[0037] Figure 2 This is a schematic diagram of a clock processing circuit.

[0038] Figure 3 This is a waveform diagram of a clock signal.

[0039] Figure 4 A schematic diagram of the structure of a memory provided in an embodiment of this disclosure;

[0040] Figure 5 A partial structural diagram of a clock processing circuit provided in an embodiment of this disclosure. Figure 1 ;

[0041] Figure 6 A partial structural diagram of a clock processing circuit provided in an embodiment of this disclosure. Figure 2 ;

[0042] Figure 7 A schematic diagram of a signal waveform for data latching processing provided in an embodiment of this disclosure;

[0043] Figure 8 This is a schematic diagram illustrating the operation of a clock processing circuit provided in an embodiment of the present disclosure;

[0044] Figure 9This is a schematic diagram of the structure of a control device provided in an embodiment of the present disclosure;

[0045] Figure 10 A flowchart illustrating a clock processing method provided in an embodiment of this disclosure;

[0046] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0047] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining the relevant applications and are not intended to limit the applications. Furthermore, it should be noted that, for ease of description, only the parts relevant to the relevant applications are shown in the accompanying drawings.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of this disclosure only and is not intended to be limiting of this disclosure.

[0049] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0050] It should be noted that the terms "first, second, third" used in the embodiments of this disclosure are only used to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this disclosure described herein can be implemented in an order other than that illustrated or described herein.

[0051] DRAM (Dynamic Random Access Memory): Dynamic Random Access Memory

[0052] SDRAM (Synchronous Dynamic Random Access Memory): Synchronous Dynamic Random Access Memory

[0053] MRR (Mode Register Read): Mode register read instruction

[0054] Mbps (Million bits per second): megabits per second

[0055] NMOS (N-Metal-Oxide-Semiconductor): N-type channel field-effect transistor

[0056] PMOS (P-Metal-Oxide-Semiconductor): N-channel field-effect transistor

[0057] In memory (such as DRAM), MRR instructions and normal read instructions use the exact same timing sequence. See also Figure 1 It shows a schematic diagram of the operation timing of the MRR instruction. Figure 1 In this code, T0, T1, etc., are used to identify different clock cycles; CK_c and CK_t are a pair of differential clock signals; CS is the chip select signal; CA is the command address signal; COMMAND indicates the operation instruction; DQ[7:0] are the data signals for the 8-bit memory; DQ[15:0] are the data signals for the 16-bit memory; the data clock signal WCK is the external write clock signal sent from the host of the electronic device to the memory, which may appear as a single signal or a pair of differential clock signals WCK_c and WCK_t in different circuit locations; the read clock signal RDQS is the clock signal output from the memory to the electronic device, which may appear as a single signal or a pair of differential clock signals RDQS_c and RDQS_t in different circuit locations. Specifically, after the memory receives the MRR instruction sent by the CPU, it generates the data signal DQ (also called the read data signal) and uses the data clock signal WCK received from the outside to generate the read clock signal RDQS. During the execution of a data read instruction, the memory returns both the read data signal DQ and the read clock signal RDQS to the CPU. The CPU then uses the read clock signal RDQS to latch the read data signal DQ, thereby obtaining the required data. Additionally, Figure 1 The standard timing is specified by the Joint Electron Device Engineering Council (JEDEC) standard. The meaning of each signal, the principle of related changes, and some abbreviations not mentioned can be understood with reference to the industry standard document JEDEC. It is not related to the technical solution of the embodiments of this disclosure and will not affect the understanding of the embodiments of this disclosure by those skilled in the art. Therefore, it will not be explained.

[0058] The memory includes a clock processing circuit to adjust the duty cycle of the data clock signal WCK0 (including a pair of complementary signals WCK_c / WCK_t) to ensure that the duty cycle of the data clock signal WCK0 meets the requirements. See also... Figure 2 This illustrates a schematic diagram of a clock processing circuit. For example... Figure 2As shown, in the clock processing circuit, the receiving module receives the data clock signal WCK0 from the outside, the adjustment module adjusts the duty cycle of the data clock signal WCK0 to obtain the internal clock signal WCK1, and the detection module detects the duty cycle parameter of the internal clock signal WCK1 and stores it in the mode register. Simultaneously, during the duty cycle adjustment process in the memory, the CPU sends an MRR instruction to read the duty cycle parameter in the mode register, thereby determining the next operation. In one example, as... Figure 2 As shown, assuming the duty cycle of the externally input data clock signal WCK0 is the JEDEC-specified upper limit of 57%, in the initial step of duty cycle adjustment, the duty cycle adjustment module increases the duty cycle of the data clock signal WCK0 by 7 units (the JEDEC-specified upper limit, with each unit being 5 picoseconds), which is an increase of 35 picoseconds. This is equivalent to increasing the duty cycle by 15% at a speed of 8533 Mbps. At this point, the duty cycle of the internal clock signal WCK1 in the memory will be as high as 72%, and the duty cycle of the read clock signal RDQS generated by it will also be as high as 72%. See [link to relevant documentation]. Figure 3 It shows a waveform diagram of a read clock signal. For example... Figure 3 As shown, the read clock signal RDQS, with a duty cycle as high as 72%, is attenuated during transmission and becomes severely distorted when it reaches the CPU receiver. This makes it difficult for the CPU to correctly recognize the signal, meaning that the MRR instruction may receive incorrect data, ultimately leading to duty cycle adjustment failure. This problem will be even more severe if the memory speed is higher.

[0059] Based on this, embodiments of this disclosure provide a memory including a clock processing circuit. The clock processing circuit includes: a duty cycle module configured to receive an externally generated data clock signal; adjust the duty cycle 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; wherein the first read clock signal is a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level 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. Thus, in the event of duty cycle distortion in the memory's internal clock signal, the second read clock signal with a single level change edge can be selected as the target read clock signal, avoiding data latch failure.

[0060] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0061] In one embodiment of this disclosure, see Figure 4This illustrates a schematic diagram of the structure of a memory 10 provided in an embodiment of this disclosure. For example... Figure 4 As shown, the memory 10 includes a clock processing circuit 20, which includes:

[0062] Duty cycle module 21 is configured to receive externally generated data clock signals; adjust the duty cycle of the data clock signals; and output an internal clock signal.

[0063] The first clock generation module 22 is configured to receive an internal clock signal and output a first read clock signal based on the internal clock signal; wherein, the first read clock signal is a pulse signal;

[0064] The second clock generation module 23 is configured to generate and output a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level state change edge;

[0065] Select module 24, configured to receive a first read clock signal and a 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.

[0066] It should be noted that the memory 10 in this embodiment can be a variety of semiconductor memories, such as DRAM, SDRAM, double-rate DRAM, low-power double-rate DRAM, etc.

[0067] The memory 10 is equipped with both a first clock generation module 22 and a second clock generation module 23. The first clock generation module 22 can generate a first read clock signal with multiple pulses based on the data clock signal received from the outside. The second clock generation module 23 can generate a second read clock signal with only one level change edge. Thus, in different operating scenarios, either the first or second read clock signal can be selected as the target read clock signal and sent to the CPU to achieve data latching. In particular, since the second read clock signal is not affected by the duty cycle distortion of the internal clock signal, correct data latching can still be guaranteed even in scenarios where the duty cycle distortion of the internal clock signal is large.

[0068] Here, the specific waveform and generation process of the second read clock signal can have various possibilities, and the following embodiments are merely examples and do not constitute specific limitations. Specifically, the level change edge of the second read clock signal is synchronized with the end time of valid data in the read data signal, or the level change edge of the second read clock signal precedes the end time of valid data in the read data signal, thereby ensuring the correct latching of valid data. Furthermore, the level change edge can be a rising edge (i.e., the second read clock signal changes from low to high) or a falling edge (i.e., the second read clock signal changes from high to low).

[0069] It should be noted that, as Figure 5 As shown, the duty cycle module 21 includes two parts: a receiving module 211 and an adjustment module 212. The specific implementation can be found in the following description. The first clock generation module 22 can be composed of logic devices and delay units to achieve delay matching and conform to the standard timing specified by the JEDEC standard. The second clock generation module 23 can be composed of a frequency divider composed of D-type flip-flops and inverters. The selection module 24 can be implemented by a two-to-one data selector.

[0070] In some embodiments, the data clock signal is a write clock signal received from the outside, hereinafter referred to as WCK0; the internal clock signal is a write clock signal inside the memory after duty cycle adjustment, hereinafter referred to as WCK1; the target read clock signal is a read operation data strobe signal, hereinafter referred to as RDQS; and the read data signal can be represented as DQ.

[0071] In some embodiments, such as Figure 5 As shown, the clock processing circuit 20 also includes a detection module 25 and a mode register 26; wherein, the detection module 25 is configured to receive the internal clock signal WCK1, perform duty cycle detection on the internal clock signal WCK1, and output the duty cycle parameter; the mode register 26 is configured to receive and store the duty cycle parameter.

[0072] It should be noted that the detection module 25 can be composed of logic gates, transmission gates, capacitors, and signal comparators.

[0073] In some embodiments, such as Figure 6 As shown, the selection module 24 is specifically configured to receive a selection indication signal, and when the selection indication signal is in a first state, output a first read clock signal as a target read clock signal RDQS; or, when the selection indication signal is in a second state, output a second read clock signal as a target read clock signal RDQS.

[0074] Here, the selection module 24 can be a two-to-one data selector, thereby outputting a first read clock signal or a second read clock signal according to the state of the selection indication signal.

[0075] In some embodiments, the memory 10 is configured to receive a data read instruction; based on the data read instruction, output a read data signal DQ, and output a target read clock signal RDQS through the clock processing circuit 20; wherein, the target read clock signal RDQS is used to latch the read data signal DQ, and the level state change of the second read clock signal indicates the end time of valid data in the read data signal DQ.

[0076] In other words, in an electronic device containing memory 10, the CPU of the electronic device issues operation instructions to memory 10 to perform data writing or data reading. During data reading, the CPU sends a data read instruction to memory 10, and memory 10 generates a read data signal DQ (carrying the parameters that the CPU needs to read) according to the data read instruction, and generates a target read clock signal RDQS through clock processing circuit 20. In this way, both the read data signal DQ and the target read clock signal RDQS are sent to the CPU so that the CPU can latch the read data signal using the target read clock signal RDQS, and then decode it to obtain the required parameters.

[0077] In this embodiment, data read instructions are divided into two types: a first read instruction and a second read instruction. The second read instruction indicates the acquisition of the duty cycle parameter of the mode register 26 in the clock processing circuit 20, while the first read instruction refers to any data read instruction other than the second read instruction.

[0078] In one specific embodiment, the memory 10 is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or, to set the selection indication signal to a second state when the data read instruction is a second read instruction.

[0079] As mentioned earlier, when a data read instruction is used to read the duty cycle parameter in the mode register 26, the memory 10 may be in the process of duty cycle adjustment. In some cases, the internal clock signal WCK1 may have been distorted, for example, the duty cycle of the internal clock signal WCK1 may be as high as 72%. At this time, the first read clock signal will also be distorted, and the CPU may obtain incorrect results when using the first read clock signal to latch the read data signal DQ. In the embodiments of this disclosure, when a data read instruction is used to read the duty cycle parameter in the mode register 26, the second read clock signal is output as the target read clock signal RDQS. Since the second read clock signal has only one level change edge, it is not affected by the duty cycle distortion of the internal clock signal WCK1. Therefore, the CPU can use the level change edge in the second read clock signal to latch the data signal, thereby obtaining the correct duty cycle parameter.

[0080] In addition, in order to save power consumption, when the data read instruction is the first read instruction, the second clock generation module 23 can be disabled, that is, the second clock generation module 23 does not work, thereby reducing current and power consumption.

[0081] In another specific embodiment, the memory 10 is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or, when the data read instruction is a second read instruction and the duty cycle of the internal clock signal WCK1 is within a preset range; or, when the data read instruction is a second read instruction and the duty cycle of the internal clock signal WCK1 is not within the preset range, set the selection indication signal to a second state.

[0082] In other words, when the data read instruction is used to read the duty cycle parameter in the mode register 26, if the duty cycle of the internal clock signal WCK1 meets the requirements, the first read clock signal will not be distorted, and the CPU can still use the first read clock signal to latch the read data signal.

[0083] The following example uses a DRAM with a burst length of 16 and 16 DQ pins to illustrate the specific waveform of the second read clock signal and the latching process of the read data signal.

[0084] For the second read instruction, the first 8 bits of the read data signal DQ carry valid data, represented as DQ<7:0>. According to the JEDEC standard, the parameter value of the mode register (MR Content) is transmitted in the first 8 clock cycles (first 4 clock cycles) of the target read clock signal RDQS, and the irrelevant data (Valid) is transmitted in the last 8 clock cycles. At this time, the first read clock signal consists of 8 clock cycles, and the level change edge of the second read clock signal is aligned with the rising edge of the 5th clock cycle of the first read clock signal; where the level change edge of the second read clock signal refers to the change from a low level to a high level.

[0085] In other words, such as Figure 7 As shown in (1), if the first read clock signal is used as the target read clock signal RDQS, the CPU will latch the read data signal DQ<7:0> using the signal edge of the target read clock signal RDQS. The data latched in the first 4 clock cycles is MR Content, and the data latched in the last 4 clock cycles is Valid and is not used; Figure 7 As shown in (2), if the second read clock signal is used as the target read clock signal RDQS, the CPU will use the rising edge of the second read clock signal to latch the read data signal DQ<7:0> to obtain MR Content.

[0086] In some embodiments, such as Figure 5 or Figure 6As shown, the duty cycle module 21 includes: a receiving module 211, configured to receive and output a data clock signal WCK0 from the outside; and an adjustment module 212, configured to adjust the duty cycle of the data clock signal WCK0 and output an internal clock signal WCK1.

[0087] It should be noted that the adjustment module 212 is used for duty cycle adjustment. At the start of duty cycle adjustment, the default setting of the adjustment module 212 will cause the duty cycle of the data clock signal WCK0 to increase by a certain value. According to JEDEC specifications, the upper limit of the duty cycle increase is 7 units (Step), which is 35 picoseconds.

[0088] The receiving module 211 can be implemented by a signal receiver composed of devices such as NMOS and PMOS. The adjustment module 212 can be composed of cascaded delay units, each of which is composed of NMOS and PMOS, thereby realizing the forward / backward adjustment of the rising edge in the data clock signal WCK0, and / or realizing the forward / backward adjustment of the falling edge in the data clock signal WCK0, and finally adjusting the duty cycle of the data clock signal WCK0.

[0089] The following provides a possible working scenario to illustrate the technical effects of the embodiments of this disclosure. Figure 8 As shown in (a), the duty cycle of the externally generated data clock signal WCK0 is 57%. At the start of the duty cycle adjustment process, the duty cycle of the data clock signal WCK0 is increased by 7 units (35 picoseconds) by default. If the memory speed is 8633 Mbps, the duty cycle of the internal clock signal WCK1 will increase by 15% based on the data clock signal WCK0, meaning the duty cycle of the internal clock signal WCK1 will reach as high as 72%. Figure 8 As shown in (b), at this time the CPU sends a second read instruction to the memory, the selection indicator signal will be set to the second state, the memory 10 will use the second read clock signal with a single signal edge as the target read clock signal RDQS, so that the CPU can use the second read clock signal to latch the read data signal DQ<7:0> to obtain the correct duty cycle parameters and ensure the success of the duty cycle adjustment operation.

[0090] In summary, the embodiments of this disclosure provide a memory including a clock processing circuit. The clock processing circuit includes: a duty cycle module configured to receive an externally generated data clock signal; adjust the duty cycle 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; wherein the first read clock signal is a pulse signal; a second clock generation module configured to generate and output a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level change edge; and a selection module configured to receive the first and second read clock signals and output one of the first and second read clock signals as a target read clock signal. Thus, in the event of duty cycle distortion of the internal clock signal, the second read clock signal with a single level change edge can be selected as the target read clock signal, avoiding data latch failure.

[0091] In another embodiment of this disclosure, see Figure 9 This illustrates a structural schematic diagram of a control device 30 provided in an embodiment of the present disclosure. For example... Figure 9 As shown, the control device 30 is connected to the memory 10; wherein,

[0092] The control device 30 is configured to send a data read command to the memory 10; and to receive a read data signal DQ and a target read clock signal RDQS returned by the memory 10, and to perform latching processing on the read data signal DQ using the target read clock signal RDQS; wherein the target read clock signal RDQS 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.

[0093] It should be noted that the control device 30 can be a CPU. Specifically, the control device 30 sends instructions through the memory controller of the memory 10 to read data from the mode register / memory array in the memory 10. Specifically, when reading data from the memory 10, the CPU sends a data read instruction to the memory via the command bus and data bus. The memory 10 parses the data read instruction and executes the corresponding read operation to obtain the read data signal. In addition, the memory generates a target read clock signal, RDQS, so that the control device 30 can latch the read data signal DQ to obtain the required data.

[0094] Please combine Figures 4-6In this embodiment of the present disclosure, the target read clock signal RDQS received by the control device 30 from the memory 10 may have multiple pulses or only one level change edge. That is, when the duty cycle of the first read clock signal is distorted, the memory 10 sends the second read clock signal with only one level change edge as the target read clock signal RDQS to the control device 30 so as to correctly latch the read data signal DQ.

[0095] In one specific embodiment, the control device 30 is specifically configured to receive a first read clock signal returned by the memory 10 when the data read instruction is a first read instruction, and use the first read clock signal to latch the read data signal DQ; or, when the data read instruction is a second read instruction, receive a second read clock signal returned by the memory 10, and use the level change edge of the second read clock signal to latch the read data signal DQ.

[0096] It should be noted that the memory 10 includes a clock processing circuit 20, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register in the clock processing circuit 20, and the first read instruction indicates a data read instruction other than the second read instruction.

[0097] Thus, when the data read instruction is the second read instruction, the memory 10 may be in the process of duty cycle adjustment, and the internal clock signal WCK1 in the memory 10 may be distorted, that is, the first read clock signal is distorted. The second read clock signal can be used as the target read clock signal RDQS so that the control device 30 can obtain the correct duty cycle parameters. Conversely, when the data read instruction is the first read instruction, both the internal clock signal WCK1 and the first read clock signal in the memory are normal. Therefore, the first read clock signal can be used as the target read clock signal RDQS, and the control device 30 can obtain the correct result.

[0098] In another specific embodiment, the control device 30 is further configured to receive a first read clock signal returned by the memory 10 when the data read instruction is a second read instruction, and to perform latching processing on the read data signal DQ using the level state change edge of the first read clock signal.

[0099] Thus, when the data read instruction is the second read instruction, the internal clock signal WCK1 and the first read clock signal in memory 10 may still be normal, so memory 10 can still use the first read clock signal as the target read clock signal RDQS.

[0100] This disclosure provides a control device 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 by the memory, and latch the read data signal using the target read clock signal. The target read clock signal is either 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 change edge. This allows the read data signal to be latched using the second read clock signal with a single level change edge even when the internal clock signal experiences duty cycle distortion, thus preventing data latching failure.

[0101] In yet another embodiment of this disclosure, see [link to relevant documentation]. Figure 10 This illustrates a flowchart of a clock processing method provided in an embodiment of this disclosure. Figure 10 As shown, the method includes:

[0102] S401: Receives externally generated data clock signals; adjusts the duty cycle of the data clock signals to determine the internal clock signals.

[0103] S402: Determine the first read clock signal based on the internal clock signal; wherein, the first read clock signal is a pulse signal.

[0104] S403: During the presence of the first read clock signal, a second read clock signal is generated; wherein the second read clock signal has only one level state change edge.

[0105] S404: Output one of the first read clock signal and the second read clock signal as the target read clock signal.

[0106] It should be noted that this method is applied to the aforementioned memory 10. In this way, memory 10 can simultaneously generate a first read clock signal and a second read clock signal. In different operating scenarios, either the first or second read clock signal can be selected as the target read clock signal RDQS and sent to the CPU to achieve data signal latching. Specifically, since the second read clock signal is not affected by the duty cycle distortion of the internal clock signal WCK1, correct data signal latching can still be guaranteed even in scenarios where the duty cycle distortion of the internal clock signal WCK1 is large.

[0107] In some embodiments, as described above, memory 10 includes mode register 26, and the method further includes:

[0108] The duty cycle of the internal clock signal is detected to obtain the duty cycle parameter; the duty cycle parameter is then stored in the mode register.

[0109] 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:

[0110] Upon receiving a first read command from the control device, a read data signal is determined based on the first read command, and the first read clock signal is determined as the target read clock signal; upon receiving a second read command from the control device, a read data signal is determined based on the second read command, and the second read clock signal is determined as the target read clock signal.

[0111] Here, the target read clock signal is used to latch the read data signal, the second read instruction indicates the duty cycle parameter of the mode register to be retrieved, and the first read instruction indicates the data read instruction other than the second read instruction.

[0112] In another specific embodiment, outputting one of the first read clock signal and the second read clock signal as the target read clock signal includes:

[0113] Upon receiving a first read command from the control device, a read data signal is determined based on the first read command, and the first read clock signal is determined as the target read clock signal; upon receiving a second read command from the control device and the duty cycle parameter is within a preset range, a read data signal is determined based on the second read command, and the first read clock signal is determined as the target read clock signal; upon receiving a second read command from the control device and the duty cycle parameter is not within a preset range, a read data signal is determined based on the second read command, and the second read clock signal is determined as the target read clock signal.

[0114] This disclosure provides a clock processing method, comprising: receiving an externally generated data clock signal; adjusting the duty cycle of the data clock signal to determine an internal clock signal; determining a first read clock signal based on the internal clock signal; wherein the first read clock signal is a pulse signal; generating a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level change edge; and outputting one of the first read clock signal and the second read clock signal as a target read clock signal. Thus, in the event of duty cycle distortion in the internal clock signal, the second read clock signal with a single level change edge can be selected as the target read clock signal, avoiding data latch failure.

[0115] In yet another embodiment of this disclosure, see [link to relevant documentation]. Figure 11 This illustrates a schematic diagram of the structural composition of an electronic device 50 provided in an embodiment of this disclosure. For example... Figure 11 As shown, the electronic device 50 includes at least the aforementioned memory 10 and the aforementioned control device 30.

[0116] Since the memory 10 can output a first read clock signal with multiple pulses or a second read clock signal with a single level change edge, when the duty cycle of the internal clock signal in the memory 10 is distorted, the second read clock signal with a single level change edge can be selected as the target read clock signal. The control device 30 uses the level change edge in the second read clock signal to latch the data and avoid obtaining erroneous data.

[0117] The above are merely preferred embodiments of this disclosure and are not intended to limit the scope of protection of this disclosure. It should be noted that in this disclosure, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. The sequence numbers of the embodiments in this disclosure are merely descriptive and do not represent the superiority or inferiority of the embodiments. The methods disclosed in the several method embodiments provided in this disclosure can be arbitrarily combined to obtain new method embodiments without conflict. The features disclosed in the several product embodiments provided in this disclosure can be arbitrarily combined to obtain new product embodiments without conflict. The features disclosed in the several method or device embodiments provided in this disclosure can be arbitrarily combined to obtain new method or device embodiments without conflict. The above are merely specific embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. A memory, characterized in that, The memory includes a clock processing circuit, which includes: The duty cycle module is configured to receive an externally generated data clock signal; adjust the duty cycle of the data clock signal; and output an internal clock signal. The first clock generation module is configured to receive the internal clock signal and output a first read clock signal based on the internal clock signal; wherein the first read clock signal is a pulse signal. The second clock generation module is configured to generate and output a second read clock signal during the existence of the first read clock signal; wherein the second read clock signal has only one level state change edge; The selection module is 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 the target read clock signal; The selection module is specifically configured to receive a selection indication signal, and when the selection indication signal is in a first state, output the first read clock signal as a target read clock signal; or, when the selection indication signal is in a second state, output the second read clock signal as a target read clock signal.

2. The memory according to claim 1, characterized in that, The clock processing circuit also includes a detection module and a mode register; wherein... The detection module is configured to receive the internal clock signal, perform duty cycle detection on the internal clock signal, and output duty cycle parameters. The mode register is configured to receive and store the duty cycle parameter.

3. The memory according to claim 1, characterized in that, The memory is configured to receive a data read instruction; based on the data read instruction, output a read data signal, and output the target read clock signal through the clock processing circuit; The target read clock signal is used to latch the read data signal, and the level change edge of the second read clock signal indicates the end time of valid data in the read data signal.

4. The memory according to claim 3, characterized in that, The memory is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or to set the selection indication signal to a second state when the data read instruction is a second read instruction. The second read instruction indicates the acquisition of the duty cycle parameter of the mode register in the clock processing circuit, and the first read instruction refers to a data read instruction other than the second read instruction.

5. The memory according to claim 4, characterized in that, The memory is further configured to set the selection indication signal to a first state when the data read instruction is a first read instruction; or, When the data read instruction is the second read instruction and the duty cycle of the internal clock signal is within a preset range, the selection indication signal is set to the first state; or, When the data read instruction is the second read instruction and the duty cycle of the internal clock signal is not within the preset range, the selection indication signal is set to the second state.

6. The memory according to any one of claims 1-5, characterized in that, The first read clock signal includes 8 clock cycles, and the level change edge of the second read clock signal is aligned with the rising edge of the 5th clock cycle of the first read clock signal; The level change edge of the second read clock signal refers to the change of the second read clock signal from a low level to a high level.

7. The memory according to claim 6, characterized in that, The duty cycle module includes: The receiving module is configured to receive and output the data clock signal from an external source; The adjustment module is configured to adjust the duty cycle of the data clock signal and output the internal clock signal.

8. The memory according to claim 7, characterized in that, The data clock signal is a write clock signal.

9. A control device, characterized in that, The control device is connected to the memory as described in claim 1; wherein... The control device is configured to send a data read instruction to the memory; and to receive a read data signal and a target read clock signal returned by the memory, and to perform latching processing on the read data signal using the target read clock signal. The target read clock signal is either a first read clock signal or a second read clock signal. The first read clock signal is a pulse signal, while the second read clock signal has only one level state change edge.

10. The control device according to claim 9, characterized in that, The control device is specifically configured to receive a first read clock signal returned by the memory when the data read instruction is a first read instruction, and to perform latching processing on the read data signal using the first read clock signal; or, When the data read instruction is the second read instruction, the second read clock signal returned by the memory is received, and the read data signal is latched using the level change edge of the second read clock signal; The memory includes a clock processing circuit, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register in the clock processing circuit, and the first read instruction indicates a data read instruction other than the second read instruction.

11. The control device according to claim 9, characterized in that, The control device is further configured to receive a first read clock signal returned by the memory when the data read instruction is a second read instruction, and to latch the read data signal using the level change edge of the first read clock signal.

12. A clock processing method, characterized in that, Applied to a memory, the method includes: Receive an externally generated data clock signal; adjust the duty cycle of the data clock signal to determine the internal clock signal; Based on the internal clock signal, a first read clock signal is determined; wherein, the first read clock signal is a pulse signal; During the presence of the first read clock signal, a second read clock signal is generated; wherein the second read clock signal has only one level state change edge; Output one of the first read clock signal and the second read clock signal as the target read clock signal; The memory includes a mode register, and the method further includes: The duty cycle of the internal clock signal is detected to obtain the duty cycle parameter; Store the duty cycle parameter into the mode register; The memory is connected to the control device, 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: Upon receiving a first read instruction from the control device, a read data signal is determined based on the first read instruction, and the first read clock signal is determined as the target read clock signal. When a second read command is received from the control device and the duty cycle parameter is within a preset range, a read data signal is determined based on the second read command, and the first read clock signal is determined as the target read clock signal. When a second read command is received from the control device and the duty cycle parameter is not within the preset range, the read data signal is determined based on the second read command, and the second read clock signal is determined as the target read clock signal. The target read clock signal is used to latch the read data signal, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register, and the first read instruction indicates a data read instruction other than the second read instruction.

13. The clock processing method according to claim 12, characterized in that, The memory is connected to the control device, 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: Upon receiving a first read instruction from the control device, a read data signal is determined based on the first read instruction, and the first read clock signal is determined as the target read clock signal. Upon receiving a second read command from the control device, the read data signal is determined based on the second read command, and the second read clock signal is determined as the target read clock signal; The target read clock signal is used to latch the read data signal, the second read instruction indicates the acquisition of the duty cycle parameter of the mode register, and the first read instruction indicates a data read instruction other than the second read instruction.

14. An electronic device, characterized in that, The electronic device includes a memory as described in any one of claims 1-8 and a control device as described in any one of claims 9-11.

Citation Information

Patent Citations

  • Nonvolatile memory device

    CN108986860A

  • Memory reading speed measuring circuit

    CN110047552A