[go: up one dir, main page]

CN116301196A - Clock control circuit module, memory storage device and clock control method - Google Patents

Clock control circuit module, memory storage device and clock control method Download PDF

Info

Publication number
CN116301196A
CN116301196A CN202310285205.8A CN202310285205A CN116301196A CN 116301196 A CN116301196 A CN 116301196A CN 202310285205 A CN202310285205 A CN 202310285205A CN 116301196 A CN116301196 A CN 116301196A
Authority
CN
China
Prior art keywords
signal
sampling
clock
position information
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310285205.8A
Other languages
Chinese (zh)
Inventor
孙世洋
吴冠纬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Phison Electronics Corp
Original Assignee
Phison Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Phison Electronics Corp filed Critical Phison Electronics Corp
Priority to CN202310285205.8A priority Critical patent/CN116301196A/en
Publication of CN116301196A publication Critical patent/CN116301196A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a clock control circuit module, a memory storage device and a clock control method. The clock control circuit module is used for: generating a clock signal; receiving a first signal and the clock signal and sampling the first signal according to the clock signal to generate a first sampling signal and a second sampling signal; respectively obtaining first position information corresponding to a first transition point of a first target signal and second position information corresponding to a second transition point of a second target signal according to the first sampling signal and the second sampling signal; and evaluating a frequency offset state between the first signal and the clock signal according to the first position information and the second position information. Thus, the signal receiving quality of the signal receiving terminal can be improved.

Description

时钟控制电路模块、存储器存储装置及时钟控制方法Clock control circuit module, memory storage device and clock control method

技术领域technical field

本发明涉及一种时钟控制技术,尤其涉及一种时钟控制电路模块、存储器存储装置及时钟控制方法。The invention relates to a clock control technology, in particular to a clock control circuit module, a memory storage device and a clock control method.

背景技术Background technique

大部分的信号接收端都设置有相位检测器,此相位检测器可用以将接收到的数据信号的相位与用来取样此数据信号的内部时钟信号的相位互相对齐,从而提高数据信号的取样准确率。然而,随着数据信号的传输速度越来越快,将数据信号的相位与内部时钟信号的相位相互对齐的难度也越来越高。此外,一旦数据信号与内部时钟信号之间的频率差过大,则一般的相位检测器也无法顺利工作。为改善上述问题,部分类型的信号接收端会额外设置频率检测器,以协助减少数据信号与内部时钟信号之间的频率差。Most signal receiving ends are equipped with a phase detector, which can be used to align the phase of the received data signal with the phase of the internal clock signal used to sample the data signal, thereby improving the sampling accuracy of the data signal Rate. However, as the transmission speed of the data signal becomes faster and faster, it becomes more and more difficult to align the phase of the data signal with the phase of the internal clock signal. In addition, once the frequency difference between the data signal and the internal clock signal is too large, the general phase detector cannot work smoothly. In order to improve the above-mentioned problems, some types of signal receivers are additionally equipped with a frequency detector to help reduce the frequency difference between the data signal and the internal clock signal.

常见的频率检测器包括基于参考时钟信号的频率检测器(亦称为Clock FD)与基于数据信号的频率检测器(亦称为Data FD)。基于参考时钟信号的频率检测器可追踪参考时钟信号的频率来修正内部时钟信号的频率,然后再通过相位检测器来将接收到的数据信号的相位与此内部时钟信号的相位互相对齐。但是,采用此类的频率检测器仍无法解决数据信号的频率与参考时钟信号的频率相差过大而导致相位检测器无法顺利工作的问题。另一方面,基于数据信号的频率检测器可使用多个不同相位的内部时钟信号来依序取样数据信号并根据取样结果来评估数据信号的频率是否高于或低于内部时钟信号的频率。然而,此类的频率检测器在运作时需要使用到具有多种相位的内部时钟信号,故并非所有类型的信号接收端皆适用。上述这些缺陷都会导致信号接收端对数据信号的取样准确率下降。Common frequency detectors include a frequency detector based on a reference clock signal (also called Clock FD) and a frequency detector based on a data signal (also called Data FD). The frequency detector based on the reference clock signal can track the frequency of the reference clock signal to correct the frequency of the internal clock signal, and then use the phase detector to align the phase of the received data signal with the phase of the internal clock signal. However, the use of this type of frequency detector still cannot solve the problem that the frequency of the data signal and the frequency of the reference clock signal are too large, which leads to the problem that the phase detector cannot work smoothly. On the other hand, the frequency detector based on the data signal can use a plurality of internal clock signals with different phases to sequentially sample the data signal and evaluate whether the frequency of the data signal is higher or lower than the frequency of the internal clock signal according to the sampling results. However, this type of frequency detector needs to use internal clock signals with various phases during operation, so it is not suitable for all types of signal receiving ends. All of the above-mentioned defects will lead to a decrease in the sampling accuracy of the data signal at the signal receiving end.

发明内容Contents of the invention

本发明提供一种时钟控制电路模块、存储器存储装置及时钟控制方法,可提高信号接收端的信号接收质量。The invention provides a clock control circuit module, a memory storage device and a clock control method, which can improve the signal receiving quality of the signal receiving end.

本发明的范例实施例提供一种时钟控制电路模块,其包括时钟产生电路、取样电路及控制电路。所述时钟产生电路用以产生时钟信号。所述取样电路用以根据所述时钟信号对第一信号进行取样并产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果。所述控制电路连接至所述时钟产生电路与所述取样电路。所述控制电路用以:根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。An exemplary embodiment of the present invention provides a clock control circuit module, which includes a clock generation circuit, a sampling circuit and a control circuit. The clock generation circuit is used to generate a clock signal. The sampling circuit is used to sample the first signal according to the clock signal and generate a sampling signal, wherein the sampling signal includes a first sampling signal and a second sampling signal, and the first sampling signal reflects a pair of the clock signal A first sampling result of a first target signal in the first signal, and the second sampling signal reflects a second sampling result of the clock signal on a second target signal in the first signal. The control circuit is connected to the clock generating circuit and the sampling circuit. The control circuit is used to: obtain the first position information corresponding to the first transition point of the first target signal and the position of the second target signal according to the first sampling signal and the second sampling signal respectively. second position information corresponding to a second transition point; and evaluating a frequency offset state between the first signal and the clock signal according to the first position information and the second position information.

在本发明的一范例实施例中,所述第一位置信息反映所述第一转态点位于所述时钟信号的第一取样窗中的第一位置,且所述第二位置信息反映所述第二转态点位于所述时钟信号的第二取样窗中的第二位置。In an exemplary embodiment of the present invention, the first position information reflects that the first transition point is located at a first position in the first sampling window of the clock signal, and the second position information reflects the A second transition point is located at a second location in a second sampling window of the clock signal.

在本发明的一范例实施例中,所述第一取样窗的时间长度相同于所述第二取样窗的时间长度。In an exemplary embodiment of the present invention, the time length of the first sampling window is the same as the time length of the second sampling window.

在本发明的一范例实施例中,所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且所述控制电路根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的操作包括:根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。In an exemplary embodiment of the present invention, the first position information includes a first count value, the second position information includes a second count value, and the control circuit according to the first position information and the second count value The operation of evaluating the state of the frequency offset between the first signal and the clock signal by position information includes: evaluating the The frequency offset state between the first signal and the clock signal.

在本发明的一范例实施例中,所述差值正相关于所述第一信号与所述时钟信号之间的频率差。In an exemplary embodiment of the invention, the difference is positively related to a frequency difference between the first signal and the clock signal.

在本发明的一范例实施例中,所述控制电路根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的操作包括:持续分析所述取样信号;响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及响应于检测到所述所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In an exemplary embodiment of the present invention, the control circuit respectively obtains the first transition point corresponding to the first transition point of the first target signal according to the first sampling signal and the second sampling signal. The operation of the position information corresponding to the second transition point of the second target signal includes: continuously analyzing the sampling signal; in response to the sampling signal meeting a preset condition, determining detecting the first target signal in the first signal; in response to detecting the first target signal, obtaining the first position corresponding to the first transition point according to the first sampling result information; in response to the sampled signal meeting the preset condition again, it is determined that the second target signal in the first signal is detected; and in response to the detection of the second target signal, according to the The second sampling result obtains the second position information corresponding to the second transition point.

在本发明的一范例实施例中,所述控制电路还用以:根据所述频率偏移状态控制所述时钟产生电路调整所述时钟信号的频率。In an exemplary embodiment of the present invention, the control circuit is further configured to: control the clock generation circuit to adjust the frequency of the clock signal according to the frequency offset state.

在本发明的一范例实施例中,所述时钟控制电路模块设置于存储器存储装置中,且所述第一目标信号与所述第二目标信号是在所述存储器存储装置与主机系统的交握阶段中从所述主机系统接收。In an exemplary embodiment of the present invention, the clock control circuit module is disposed in a memory storage device, and the first target signal and the second target signal are handshaked between the memory storage device and a host system stage received from the host system.

在本发明的一范例实施例中,所述控制电路包括相位检测器、频率检测器及低通滤波器。所述低通滤波器连接至所述相位检测器、所述频率检测器及所述时钟产生电路。所述相位检测器用以检测所述第一信号与所述时钟信号之间的相位偏移状态。所述频率检测器用以检测所述第一信号与所述时钟信号之间的所述频率偏移状态。所述低通滤波器用以根据所述相位检测器与所述频率检测器的至少其中之一的检测结果来控制所述时钟产生电路调整所述时钟信号的频率。In an exemplary embodiment of the present invention, the control circuit includes a phase detector, a frequency detector and a low-pass filter. The low pass filter is connected to the phase detector, the frequency detector and the clock generation circuit. The phase detector is used for detecting a phase offset state between the first signal and the clock signal. The frequency detector is used for detecting the frequency offset state between the first signal and the clock signal. The low-pass filter is used for controlling the clock generation circuit to adjust the frequency of the clock signal according to a detection result of at least one of the phase detector and the frequency detector.

在本发明的一范例实施例中,所述频率检测器包括延迟线电路、目标信号检测器、窗口映射器、事件存储器及决策电路。所述目标信号检测器连接至所述延迟线电路。所述窗口映射器连接至所述延迟线电路与所述目标信号检测器。所述事件存储器连接至所述窗口映射器。所述决策电路连接至所述事件存储器。所述延迟线电路用以接收所述取样信号。所述目标信号检测器用以根据所述取样信号检测所述第一信号中的所述第一目标信号与所述第二目标信号。所述窗口映射器用以响应于所述第一目标信号而获得所述第一位置信息并响应于所述第二目标信号而获得所述第二位置信息。所述事件存储器用以存储所述第一位置信息与所述第二位置信息。所述决策电路用以根据所述第一位置信息与所述第二位置信息产生控制信号,以控制所述低通滤波器调整所述时钟信号的所述频率。In an exemplary embodiment of the present invention, the frequency detector includes a delay line circuit, a target signal detector, a window mapper, an event memory and a decision circuit. The target signal detector is connected to the delay line circuit. The window mapper is connected to the delay line circuit and the target signal detector. The event memory is connected to the window mapper. The decision circuit is connected to the event memory. The delay line circuit is used for receiving the sampling signal. The target signal detector is used for detecting the first target signal and the second target signal in the first signal according to the sampled signal. The window mapper is configured to obtain the first position information in response to the first target signal and obtain the second position information in response to the second target signal. The event memory is used for storing the first location information and the second location information. The decision circuit is used to generate a control signal according to the first position information and the second position information, so as to control the low-pass filter to adjust the frequency of the clock signal.

本发明的范例实施例另提供一种存储器存储装置,其包括连接接口单元、可复写式非易失性存储器模块、存储器控制电路单元及时钟控制电路模块。所述连接接口单元用以连接至主机系统。所述存储器控制电路单元连接至所述连接接口单元与所述可复写式非易失性存储器模块。所述时钟控制电路模块设置于所述连接接口单元中。所述时钟控制电路模块用以:产生时钟信号;接收第一信号与所述时钟信号并根据所述时钟信号对所述第一信号进行取样以产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果;根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。An exemplary embodiment of the present invention further provides a memory storage device, which includes a connection interface unit, a rewritable non-volatile memory module, a memory control circuit unit, and a clock control circuit module. The connection interface unit is used for connecting to a host system. The memory control circuit unit is connected to the connection interface unit and the rewritable non-volatile memory module. The clock control circuit module is arranged in the connection interface unit. The clock control circuit module is used to: generate a clock signal; receive a first signal and the clock signal and sample the first signal according to the clock signal to generate a sampling signal, wherein the sampling signal includes a first sampling signal and a second sampling signal, the first sampling signal reflects the first sampling result of the clock signal on the first target signal in the first signal, and the second sampling signal reflects the clock signal on the first sampling result The second sampling result of the second target signal in the first signal; respectively obtain the first position corresponding to the first transition point of the first target signal according to the first sampling signal and the second sampling signal information and second position information corresponding to a second transition point of the second target signal; and evaluating the distance between the first signal and the clock signal according to the first position information and the second position information frequency offset status.

在本发明的一范例实施例中,所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且所述时钟控制电路模块根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的操作包括:根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。In an exemplary embodiment of the present invention, the first position information includes a first count value, the second position information includes a second count value, and the clock control circuit module The operation of evaluating the state of the frequency offset between the first signal and the clock signal by the second position information includes: according to the difference between the first count value and the second count value, evaluating The frequency offset state between the first signal and the clock signal.

在本发明的一范例实施例中,所述时钟控制电路模块根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的操作包括:持续分析所述取样信号;响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及响应于检测到所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In an exemplary embodiment of the present invention, the clock control circuit module respectively obtains the corresponding values corresponding to the first transition point of the first target signal according to the first sampling signal and the second sampling signal. The operation of the second position information corresponding to the first position information and the second transition point of the second target signal includes: continuously analyzing the sampling signal; responding to the sampling signal meeting a preset condition , determine that the first target signal in the first signal is detected; in response to detecting the first target signal, obtain the first transition point corresponding to the first transition point according to the first sampling result position information; in response to the sampled signal meeting the preset condition again, it is determined that the second target signal in the first signal is detected; and in response to the detection of the second target signal, according to the The second sampling result obtains the second position information corresponding to the second transition point.

在本发明的一范例实施例中,所述时钟控制电路模块还用以:根据所述频率偏移状态调整所述时钟信号的频率。In an exemplary embodiment of the present invention, the clock control circuit module is further configured to: adjust the frequency of the clock signal according to the frequency offset state.

本发明的范例实施例另提供一种时钟控制方法,其包括:产生时钟信号;接收第一信号与所述时钟信号并根据所述时钟信号对所述第一信号进行取样以产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果;根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。An exemplary embodiment of the present invention further provides a clock control method, which includes: generating a clock signal; receiving a first signal and the clock signal and sampling the first signal according to the clock signal to generate a sampling signal, wherein The sampling signal includes a first sampling signal and a second sampling signal, the first sampling signal reflects a first sampling result of the clock signal on the first target signal in the first signal, and the second sampling signal The signal reflects the second sampling result of the clock signal on the second target signal in the first signal; the first rotation of the first target signal is respectively obtained according to the first sampling signal and the second sampling signal first position information corresponding to a state point and second position information corresponding to a second transition point of the second target signal; and evaluating the first position information according to the first position information and the second position information The frequency offset state between the signal and the clock signal.

在本发明的一范例实施例中,所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的步骤包括:根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。In an exemplary embodiment of the present invention, the first location information includes a first count value, the second location information includes a second count value, and the evaluation is based on the first location information and the second location information The step of said frequency offset state between said first signal and said clock signal includes evaluating said first signal and said second count value based on a difference between said first count value and said second count value. The frequency offset state between the clock signals.

在本发明的一范例实施例中,根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的步骤包括:持续分析所述取样信号;响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及响应于检测到所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In an exemplary embodiment of the present invention, the first position information and the first position information corresponding to the first transition point of the first target signal are respectively obtained according to the first sampling signal and the second sampling signal. The step of the second position information corresponding to the second transition point of the second target signal includes: continuously analyzing the sampling signal; in response to the sampling signal meeting a preset condition, determining that the The first target signal in the first signal; in response to detecting the first target signal, obtaining the first position information corresponding to the first transition point according to the first sampling result; in response The sampled signal meets the preset condition again, determining that the second target signal in the first signal is detected; and in response to detecting the second target signal, obtaining a corresponding signal according to the second sampling result The second position information at the second transition point.

在本发明的一范例实施例中,所述的时钟控制方法还包括:根据所述频率偏移状态调整所述时钟信号的频率。In an exemplary embodiment of the present invention, the clock control method further includes: adjusting the frequency of the clock signal according to the frequency offset state.

在本发明的一范例实施例中,所述的时钟控制方法还包括:由相位检测器检测所述第一信号与所述时钟信号之间的相位偏移状态;由频率检测器检测所述第一信号与所述时钟信号之间的所述频率偏移状态;以及根据所述相位检测器与所述频率检测器的至少其中之一的检测结果来调整所述时钟信号的频率。In an exemplary embodiment of the present invention, the clock control method further includes: detecting a phase offset state between the first signal and the clock signal by a phase detector; detecting the first signal by a frequency detector a state of the frequency offset between a signal and the clock signal; and adjusting the frequency of the clock signal according to a detection result of at least one of the phase detector and the frequency detector.

在本发明的一范例实施例中,由所述频率检测器检测所述第一信号与所述时钟信号之间的所述频率偏移状态的步骤包括:接收所述取样信号;根据所述取样信号检测所述第一信号中的所述第一目标信号与所述第二目标信号;响应于所述第一目标信号而获得所述第一位置信息并响应于所述第二目标信号而获得所述第二位置信息;存储所述第一位置信息与所述第二位置信息;以及根据所述第一位置信息与所述第二位置信息产生控制信号,以调整所述时钟信号的所述频率。In an exemplary embodiment of the present invention, the step of detecting, by the frequency detector, the state of the frequency offset between the first signal and the clock signal comprises: receiving the sampled signal; signal detection of the first target signal and the second target signal in the first signal; obtaining the first position information in response to the first target signal and obtaining in response to the second target signal the second location information; storing the first location information and the second location information; and generating a control signal according to the first location information and the second location information to adjust the clock signal frequency.

基于上述,在接收第一信号后,时钟信号可用以对第一信号进行取样以产生第一取样信号与第二取样信号。特别是,第一取样信号可反映所述时钟信号对第一信号中的第一目标信号的第一取样结果,且第二取样信号可反映所述时钟信号对第一信号中的第二目标信号的第二取样结果。然后,第一目标信号的第一转态点所对应的第一位置信息与第二目标信号的第二转态点所对应的第二位置信息可根据第一取样信号与第二取样信号而分别获得。此外,第一信号与所述时钟信号之间的频率偏移状态可根据第一位置信息与第二位置信息而评估。由此,可提高信号接收端的信号接收质量。Based on the above, after receiving the first signal, the clock signal can be used to sample the first signal to generate the first sampling signal and the second sampling signal. In particular, the first sampled signal may reflect a first sampling result of the clock signal to a first target signal in the first signal, and the second sampled signal may reflect the clock signal to a second target signal in the first signal The second sampling result of . Then, the first position information corresponding to the first transition point of the first target signal and the second position information corresponding to the second transition point of the second target signal can be separated according to the first sampling signal and the second sampling signal get. In addition, a frequency offset state between the first signal and the clock signal can be estimated based on the first location information and the second location information. Thus, the quality of signal reception at the signal receiving end can be improved.

附图说明Description of drawings

图1是根据本发明的范例实施例所示出的时钟控制电路模块的示意图;FIG. 1 is a schematic diagram of a clock control circuit module shown according to an exemplary embodiment of the present invention;

图2是根据本发明的范例实施例所示出的基于时钟信号的多个取样窗来对第一信号进行取样以产生第一取样信号与第二取样信号的示意图;2 is a schematic diagram of sampling a first signal based on a plurality of sampling windows of a clock signal to generate a first sampling signal and a second sampling signal according to an exemplary embodiment of the present invention;

图3是根据本发明的范例实施例所示出的时钟控制电路模块的示意图;FIG. 3 is a schematic diagram of a clock control circuit module shown according to an exemplary embodiment of the present invention;

图4是根据本发明的范例实施例所示出的频率检测器的示意图;FIG. 4 is a schematic diagram of a frequency detector shown according to an exemplary embodiment of the present invention;

图5是根据本发明的范例实施例所示出的存储器存储装置的示意图;5 is a schematic diagram of a memory storage device according to an exemplary embodiment of the present invention;

图6是根据本发明的范例实施例所示出的时钟控制方法的流程图。Fig. 6 is a flowchart of a clock control method according to an exemplary embodiment of the present invention.

具体实施方式Detailed ways

现将详细地参考本发明的示范性实施例,示范性实施例的实例说明于附图中。只要有可能,相同元件符号在附图和描述中用来表示相同或相似部分。Reference will now be made in detail to the exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers will be used in the drawings and description to refer to the same or like parts.

以下提出多个范例实施例来说明本发明,然而本发明不仅限于所例示的多个范例实施例。又范例实施例之间也允许有适当的结合。在本案说明书全文(包括权利要求)中所使用的“连接”一词可指任何直接或间接的连接手段。举例而言,若文中描述第一装置连接于第二装置,则应该被解释成该第一装置可以直接连接于该第二装置,或者该第一装置可以通过其他装置或某种连接手段而间接地连接至该第二装置。此外,“信号”一词可指至少一电流、电压、电荷、温度、数据、或任何其他一或多个信号。Several exemplary embodiments are proposed below to illustrate the present invention, but the present invention is not limited to the illustrated exemplary embodiments. Appropriate combinations are also allowed among exemplary embodiments. As used throughout this specification (including the claims), the term "attachment" may refer to any direct or indirect attachment means. For example, if it is described in the text that a first device is connected to a second device, it should be interpreted that the first device can be directly connected to the second device, or that the first device can be connected indirectly through other devices or some kind of connection means. Ground is connected to the second device. Additionally, the term "signal" may refer to at least one current, voltage, charge, temperature, data, or any other signal or signals.

图1是根据本发明的范例实施例所示出的时钟控制电路模块的示意图。FIG. 1 is a schematic diagram of a clock control circuit module according to an exemplary embodiment of the present invention.

请参照图1,时钟控制电路模块10包括时钟产生电路11、取样电路12及控制电路13。时钟产生电路11用以产生信号(亦称为时钟信号)CLK。例如,信号CLK可由时钟产生电路11中的压控振荡器(voltage-controlled oscillator,VCO)或其他类型的振荡电路产生。信号CLK可具有特定的频率。Referring to FIG. 1 , the clock control circuit module 10 includes a clock generation circuit 11 , a sampling circuit 12 and a control circuit 13 . The clock generating circuit 11 is used to generate a signal (also referred to as a clock signal) CLK. For example, the signal CLK can be generated by a voltage-controlled oscillator (VCO) in the clock generating circuit 11 or other types of oscillating circuits. Signal CLK may have a specific frequency.

时钟产生电路11连接至取样电路12。取样电路12可用以接收信号(亦称为第一信号)S(1)与信号CLK。例如,信号S(1)是由外部装置提供,而信号CLK是由时钟产生电路11提供。此外,信号S(1)也具有特定的频率。信号S(1)的频率可不同于信号CLK的频率。例如,信号CLK的频率可高于信号S(1)的频率。The clock generation circuit 11 is connected to the sampling circuit 12 . The sampling circuit 12 is configured to receive a signal (also referred to as a first signal) S(1) and a signal CLK. For example, the signal S(1) is provided by an external device, and the signal CLK is provided by the clock generating circuit 11 . In addition, the signal S(1) also has a specific frequency. The frequency of the signal S(1) may be different from that of the signal CLK. For example, the frequency of the signal CLK may be higher than the frequency of the signal S(1).

取样电路12还可用以根据信号CLK对信号S(1)进行取样并产生取样信号。例如,取样电路12可使用信号CLK的上升沿和/或下降沿依序对信号S(1)进行取样,以产生取样信号。The sampling circuit 12 can also be used to sample the signal S(1) according to the signal CLK and generate a sampled signal. For example, the sampling circuit 12 may sequentially sample the signal S(1) using the rising edge and/or the falling edge of the signal CLK to generate a sampled signal.

须注意的是,此取样信号包括信号(亦称为第一取样信号)SP(1)与信号(亦称为第二取样信号)SP(2)。信号SP(1)可反映信号CLK对信号S(1)中的特定信号(亦称为第一目标信号)的取样结果(亦称为第一取样结果)。信号SP(2)可反映信号CLK对信号S(1)中的另一信号(亦称为第二目标信号)的取样结果(亦称为第二取样结果)。例如,取样电路12可使用信号CLK的上升沿和/或下降沿依序对信号S(1)中的第一目标信号与第二目标信号进行取样,以产生信号SP(1)与SP(2)。It should be noted that the sampled signal includes a signal (also referred to as a first sampled signal) SP(1) and a signal (also referred to as a second sampled signal) SP(2). The signal SP( 1 ) may reflect a sampling result (also called a first sampling result) of a specific signal (also called a first target signal) in the signal S( 1 ) by the signal CLK. The signal SP( 2 ) may reflect the sampling result (also called the second sampling result) of the signal CLK on another signal (also called the second target signal) in the signal S( 1 ). For example, the sampling circuit 12 can use the rising edge and/or falling edge of the signal CLK to sequentially sample the first target signal and the second target signal in the signal S(1), so as to generate the signals SP(1) and SP(2 ).

控制电路13连接至时钟产生电路11与取样电路12。控制电路13可用以接收所述取样信号(包括信号SP(1)与SP(2))。控制电路13可根据所述取样信号(包括信号SP(1)与SP(2))获得第一目标信号的转态点(亦称为第一转态点)所对应的位置信息(亦称为第一位置信息)与第二目标信号的转态点(亦称为第二转态点)所对应的位置信息(亦称为第二位置信息)。然后,控制电路13可根据第一位置信息与第二位置信息评估信号S(1)与信号CLK之间的频率偏移状态。例如,此频率偏移状态是有关于信号S(1)与信号CLK之间的频率差。或者,从另一角度而言,此频率偏移状态可反映或对应信号S(1)与信号CLK之间的频率差。The control circuit 13 is connected to the clock generation circuit 11 and the sampling circuit 12 . The control circuit 13 is configured to receive the sampling signal (including the signals SP( 1 ) and SP( 2 )). The control circuit 13 can obtain the position information corresponding to the transition point (also referred to as the first transition point) of the first target signal (also referred to as The first location information) and the location information (also called second location information) corresponding to the transition point (also called the second transition point) of the second target signal. Then, the control circuit 13 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the first position information and the second position information. For example, the frequency offset state is related to the frequency difference between the signal S(1) and the signal CLK. Or, from another point of view, the frequency offset state may reflect or correspond to the frequency difference between the signal S(1) and the signal CLK.

在一范例实施例中,取样电路12可基于信号CLK的多个取样窗来对信号S(1)(包含第一目标信号与第二目标信号)进行取样并依序产生信号SP(1)与SP(2)。因此,第一位置信息可反映第一目标信号的一个转态点(即第一转态点)位于信号CLK的某一个取样窗(亦称为第一取样窗)中的特定位置(亦称为第一位置)。此外,第二位置信息则可反映第二目标信号的一个转态点(即第二转态点)位于信号CLK的另一取样窗(亦称为第二取样窗)中的特定位置(亦称为第二位置)。第一取样窗的时间长度相同于第二取样窗的时间长度。In an exemplary embodiment, the sampling circuit 12 can sample the signal S(1) (including the first target signal and the second target signal) based on a plurality of sampling windows of the signal CLK and sequentially generate the signals SP(1) and SP(2). Therefore, the first position information may reflect that a transition point (namely the first transition point) of the first target signal is located at a specific position (also called a first sample window) of the signal CLK (also called first position). In addition, the second position information may reflect that a transition point of the second target signal (ie, the second transition point) is located at a specific position (also called the second sampling window) of the signal CLK in another sampling window (also called for the second position). The time length of the first sampling window is the same as the time length of the second sampling window.

在一范例实施例中,第一位置信息包括一个计数值(亦称为第一计数值),且第二位置信息包括另一个计数值(亦称为第二计数值)。第一计数值对应于第一位置。第二计数值对应于第二位置。控制电路13可根据第一计数值与第二计数值之间的差值,评估信号S(1)与信号CLK之间的频率偏移状态。例如,控制电路13可将第一计数值减去第二计数值或将第二计数值减去第一计数值,以获得第一计数值与第二计数值之间的差值。然后,控制电路13可根据此差值评估信号S(1)与信号CLK之间的频率偏移状态。例如,此差值可正相关于信号S(1)与信号CLK之间的频率差。例如,若此差值越大,表示信号S(1)与信号CLK之间的频率差越大。In an exemplary embodiment, the first position information includes a count value (also referred to as a first count value), and the second position information includes another count value (also referred to as a second count value). The first count value corresponds to the first position. The second count value corresponds to the second position. The control circuit 13 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the difference between the first count value and the second count value. For example, the control circuit 13 may subtract the first count value from the second count value or subtract the second count value from the first count value to obtain the difference between the first count value and the second count value. Then, the control circuit 13 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the difference. For example, the difference may be directly related to the frequency difference between the signal S(1) and the signal CLK. For example, if the difference is larger, it means that the frequency difference between the signal S(1) and the signal CLK is larger.

在一范例实施例中,控制电路13可持续分析取样电路12产生的取样信号。例如,控制电路13可判断取样信号是否符合预设条件。响应于取样信号符合预设条件,控制电路13可判定已检测到信号S(1)中的第一目标信号。响应于检测到第一目标信号,控制电路13可根据第一取样结果获得第一目标信号的转态点(即第一转态点)所对应的第一位置信息(例如第一计数值)。然后,控制电路13可持续分析取样电路12产生的取样信号。响应于取样信号再次符合预设条件,控制电路13可判定已检测到信号S(1)中的第二目标信号。响应于检测到第二目标信号,控制电路13可根据第二取样结果获得第二目标信号的转态点(即第二转态点)所对应的第二位置信息(例如第二计数值)。然后,控制电路13可根据第一计数值与第二计数值来评估信号S(1)与信号CLK之间的频率偏移状态。In an exemplary embodiment, the control circuit 13 can continuously analyze the sampling signal generated by the sampling circuit 12 . For example, the control circuit 13 can determine whether the sampled signal meets a preset condition. In response to the sampled signal meeting the preset condition, the control circuit 13 may determine that the first target signal in the signal S(1) has been detected. In response to detecting the first target signal, the control circuit 13 may obtain first position information (eg, a first count value) corresponding to the transition point (ie, the first transition point) of the first target signal according to the first sampling result. Then, the control circuit 13 can continue to analyze the sampling signal generated by the sampling circuit 12 . In response to the sampled signal meeting the preset condition again, the control circuit 13 may determine that the second target signal in the signal S(1) has been detected. In response to detecting the second target signal, the control circuit 13 may obtain second position information (eg, a second count value) corresponding to the transition point (ie, the second transition point) of the second target signal according to the second sampling result. Then, the control circuit 13 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the first count value and the second count value.

在一范例实施例中,控制电路13可判断所述取样信号所对应的取样结果中是否存在连续的多个比特“1”(或“0”)。响应于取样结果中存在连续的多个比特“1”(或“0”),控制电路13可判定取样信号符合预设条件。然而,若取样结果中不存在连续的多个比特“1”(或“0”),则控制电路13可判定所述取样信号不符合预设条件。In an exemplary embodiment, the control circuit 13 can determine whether there are a plurality of consecutive bits “1” (or “0”) in the sampling result corresponding to the sampling signal. In response to the presence of a plurality of consecutive bits "1" (or "0") in the sampling result, the control circuit 13 may determine that the sampling signal meets a preset condition. However, if there are no consecutive multiple bits “1” (or “0”) in the sampling result, the control circuit 13 may determine that the sampling signal does not meet the preset condition.

在一范例实施例中,所述连续的多个比特“1”(或“0”)可以是指达到或超过预设数量的连续的多个比特“1”(或“0”)。例如,所述预设数量可以是16、32或其他数量,本发明不加以限制。此外,所述连续的多个比特“1”(或“0”)可以位于信号CLK的单一个取样窗中或者横跨信号CLK的多个取样窗。In an exemplary embodiment, the multiple consecutive bits "1" (or "0") may refer to a preset number of consecutive multiple bits "1" (or "0"). For example, the preset number may be 16, 32 or other numbers, which is not limited in the present invention. In addition, the consecutive multiple bits "1" (or "0") may be located in a single sampling window of the signal CLK or across multiple sampling windows of the signal CLK.

在一范例实施例中,控制电路13可根据信号S(1)与信号CLK之间的频率偏移状态来控制时钟产生电路11调整信号CLK的频率。例如,根据所述频率偏移状态,控制电路13可产生信号(亦称为调整信号)ADJ。控制电路13可通过信号ADJ来控制时钟产生电路11调整(例如提高或降低)信号CLK的频率。例如,假设所述频率偏移状态反映信号S(1)的频率高于信号CLK的频率,则控制电路13可通过信号ADJ来提高信号CLK的频率,以减少信号CLK与信号S(1)之间的频率差。或者,假设所述频率偏移状态反映信号S(1)的频率低于信号CLK的频率,则控制电路13可通过信号ADJ来降低信号CLK的频率,以减少信号CLK与信号S(1)之间的频率差。由此,调整后的信号CLK的频率可更接近信号S(1)的频率,甚至完全相同于信号S(1)的频率。相较于未经调整的信号CLK,使用调整后的信号CLK来对信号S(1)中的数据信号进行取样,可有效提高对此数据信号的取样质量(例如取样准确率)。In an exemplary embodiment, the control circuit 13 can control the clock generation circuit 11 to adjust the frequency of the signal CLK according to the frequency offset state between the signal S( 1 ) and the signal CLK. For example, according to the frequency offset state, the control circuit 13 can generate a signal (also referred to as an adjustment signal) ADJ. The control circuit 13 can control the clock generation circuit 11 to adjust (eg increase or decrease) the frequency of the signal CLK through the signal ADJ. For example, assuming that the frequency offset state reflects that the frequency of the signal S(1) is higher than that of the signal CLK, the control circuit 13 can increase the frequency of the signal CLK through the signal ADJ to reduce the difference between the signal CLK and the signal S(1). the frequency difference between them. Alternatively, assuming that the frequency offset state reflects that the frequency of the signal S(1) is lower than the frequency of the signal CLK, the control circuit 13 can reduce the frequency of the signal CLK through the signal ADJ to reduce the difference between the signal CLK and the signal S(1). the frequency difference between them. Therefore, the frequency of the adjusted signal CLK can be closer to the frequency of the signal S(1), even completely the same as the frequency of the signal S(1). Compared with the unadjusted signal CLK, using the adjusted signal CLK to sample the data signal in the signal S(1) can effectively improve the sampling quality (eg sampling accuracy) of the data signal.

图2是根据本发明的范例实施例所示出的基于时钟信号的多个取样窗来对第一信号进行取样以产生第一取样信号与第二取样信号的示意图。FIG. 2 is a schematic diagram of sampling a first signal based on a plurality of sampling windows of a clock signal to generate a first sampling signal and a second sampling signal according to an exemplary embodiment of the present invention.

请参照图1与图2,假设第一目标信号包括信号ST(1)且第二目标信号包括信号ST(2)。信号ST(1)与信号ST(2)可在不同的时间范围内夹带于信号S(1)中。信号ST(1)与信号ST(2)的频率和/或波形相同。例如,在信号S(1)中,信号ST(1)与信号ST(2)的频率可低于其余信号的频率,如图2所示。此外,信号ST(1)与信号ST(2)的频率可低于信号CLK的频率。在另一范例实施例中,信号ST(1)与信号ST(2)可为一组固定模式的信号,例如信号ST(1)与信号ST(2)可分别用以传递16个或其他数目的连续的0/1序列。Referring to FIG. 1 and FIG. 2 , it is assumed that the first target signal includes the signal ST(1) and the second target signal includes the signal ST(2). The signal ST(1) and the signal ST(2) can be carried in the signal S(1) in different time ranges. Signal ST(1) has the same frequency and/or waveform as signal ST(2). For example, in the signal S(1), the frequency of the signal ST(1) and the signal ST(2) may be lower than that of the rest of the signals, as shown in FIG. 2 . In addition, the frequency of the signal ST(1) and the signal ST(2) can be lower than the frequency of the signal CLK. In another exemplary embodiment, the signal ST(1) and the signal ST(2) can be a set of signals of a fixed pattern, for example, the signal ST(1) and the signal ST(2) can be respectively used to convey 16 or other numbers A sequence of consecutive 0/1s.

取样电路12可基于信号CLK所对应的多个连续的取样窗TW来对信号S(1)进行取样。例如,在某一个取样窗TW中,信号CLK可用以连续对信号S(1)执行k次取样以获得k个取样值。k可为大于1的任意整数。这k个取样值可反映在该取样窗TW中,使用信号CLK连续对信号S(1)执行该k次取样的取样结果。The sampling circuit 12 can sample the signal S(1) based on a plurality of consecutive sampling windows TW corresponding to the signal CLK. For example, in a certain sampling window TW, the signal CLK can be used to continuously sample the signal S(1) k times to obtain k sample values. k can be any integer greater than 1. The k sampling values can be reflected in the sampling window TW, and the signal S(1) is continuously sampled for k times by using the signal CLK.

在一范例实施例中,信号SP(1)可反映或呈现出,在取样窗TW(1)(即第一取样窗)中,信号CLK对信号ST(1)的取样结果(即第一取样结果)。例如,信号SP(1)可反映或呈现出,在取样窗TW(1)中,信号CLK对信号ST(1)的取样结果包含n(1)个连续的比特“1”及m(1)个连续的比特“0”。响应于n(1)和/或m(1)大于预设值(即取样信号符合预设条件),控制电路13可判定已检测到第一目标信号。响应于检测到第一目标信号,控制电路13可根据n(1)和/或m(1),来决定一个计数值(即第一计数值)。例如,第一计数值可等于n(1)或m(1)。特别是,在取样窗TW(1)中,这n(1)个连续的比特“1”及m(1)个连续的比特“0”的交界位置,反映出信号ST(1)的转态点TP(1)(即第一转态点)的位置(即第一位置)。或者,从另一角度而言,第一计数值可反映出信号ST(1)的转态点TP(1)在取样窗TW(1)中的位置。In an exemplary embodiment, the signal SP(1) may reflect or present, in the sampling window TW(1) (ie, the first sampling window), the sampling result of the signal CLK on the signal ST(1) (ie, the first sampling result). For example, the signal SP(1) may reflect or show that in the sampling window TW(1), the sampling result of the signal CLK on the signal ST(1) includes n(1) consecutive bits "1" and m(1) consecutive "0" bits. In response to n(1) and/or m(1) being greater than a preset value (ie, the sampled signal meets a preset condition), the control circuit 13 may determine that the first target signal has been detected. In response to detecting the first target signal, the control circuit 13 can determine a count value (ie, the first count value) according to n(1) and/or m(1). For example, the first count value may be equal to n(1) or m(1). In particular, in the sampling window TW(1), the boundary positions of the n(1) consecutive bits "1" and m(1) consecutive bits "0" reflect the transition of the signal ST(1) The position of point TP(1) (ie the first transition point) (ie the first position). Or, from another point of view, the first count value may reflect the position of the transition point TP(1) of the signal ST(1) within the sampling window TW(1).

在一范例实施例中,信号SP(2)可反映或呈现出,在取样窗TW(2)(即第二取样窗)中,信号CLK对信号ST(2)的取样结果(即第二取样结果)。例如,信号SP(2)可反映或呈现出,在取样窗TW(2)中,信号CLK对信号ST(2)的取样结果包含n(2)个连续的比特“1”及m(2)个连续的比特“0”。响应于n(2)和/或m(2)大于预设值(即取样信号再次符合预设条件),控制电路13可判定已检测到第二目标信号。响应于检测到第二目标信号,控制电路13可根据n(2)和/或m(2),来决定一个计数值(即第二计数值)。例如,第二计数值可等于n(2)或m(2)。特别是,在取样窗TW(2)中,这n(2)个连续的比特“1”及m(2)个连续的比特“0”的交界位置,反映出信号ST(2)的转态点TP(2)(即第二转态点)的位置(即第二位置)。或者,从另一角度而言,第二计数值可反映出信号ST(2)的转态点TP(2)在取样窗TW(2)中的位置。In an exemplary embodiment, the signal SP(2) may reflect or present, in the sampling window TW(2) (ie, the second sampling window), the sampling result of the signal CLK on the signal ST(2) (ie, the second sample result). For example, the signal SP(2) may reflect or show that in the sampling window TW(2), the sampling result of the signal CLK on the signal ST(2) includes n(2) consecutive bits "1" and m(2) consecutive "0" bits. In response to n(2) and/or m(2) being greater than the preset value (ie the sampled signal meets the preset condition again), the control circuit 13 may determine that the second target signal has been detected. In response to detecting the second target signal, the control circuit 13 can determine a count value (ie, the second count value) according to n(2) and/or m(2). For example, the second count value may be equal to n(2) or m(2). In particular, in the sampling window TW(2), the boundary positions of the n(2) consecutive bits "1" and m(2) consecutive bits "0" reflect the transition of the signal ST(2) The position of point TP(2) (ie the second transition point) (ie the second position). Or, from another point of view, the second count value may reflect the position of the transition point TP(2) of the signal ST(2) within the sampling window TW(2).

在一范例实施例中,n(1)与n(2)之间的差值(即第一计数值与第二计数值之间的差值)正相关于信号S(1)与信号CLK之间的频率差。例如,n(1)与n(2)之间的差值越大,表示信号S(1)与信号CLK之间的频率差越大。因此,控制电路13可根据n(1)与n(2)之间的差值,来评估信号S(1)与信号CLK之间的频率偏移状态。尔后,控制电路13可根据此频率偏移状态来调整信号CLK的频率。例如,假设n(1)为4且n(2)为8,表示信号CLK的频率高于信号S(1)的频率。因此,控制电路13可指示时钟产生电路11略为降低信号CLK的频率。或者,假设n(1)为28且n(2)为6,表示信号CLK的频率低于信号S(1)的频率。因此,控制电路13可指示时钟产生电路11略为提高信号CLK的频率。此外,信号CLK的频率的调整幅度也可正相关于n(1)与n(2)之间的差值(即第一计数值与第二计数值之间的差值)。In an exemplary embodiment, the difference between n(1) and n(2) (that is, the difference between the first count value and the second count value) is positively related to the difference between the signal S(1) and the signal CLK the frequency difference between them. For example, a larger difference between n(1) and n(2) indicates a larger frequency difference between the signal S(1) and the signal CLK. Therefore, the control circuit 13 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the difference between n(1) and n(2). Then, the control circuit 13 can adjust the frequency of the signal CLK according to the frequency offset state. For example, assuming that n(1) is 4 and n(2) is 8, it means that the frequency of the signal CLK is higher than that of the signal S(1). Therefore, the control circuit 13 can instruct the clock generation circuit 11 to slightly reduce the frequency of the signal CLK. Alternatively, assuming that n(1) is 28 and n(2) is 6, it means that the frequency of the signal CLK is lower than that of the signal S(1). Therefore, the control circuit 13 can instruct the clock generation circuit 11 to slightly increase the frequency of the signal CLK. In addition, the adjustment range of the frequency of the signal CLK may also be positively related to the difference between n(1) and n(2) (ie the difference between the first count value and the second count value).

在一范例实施例中,m(1)与m(2)之间的差值(即第一计数值与第二计数值之间的差值)也正相关于信号S(1)与信号CLK之间的频率差。例如,m(1)与m(2)之间的差值越大,表示信号S(1)与信号CLK之间的频率差越大。因此,控制电路13也可根据m(1)与m(2)之间的差值,来评估信号S(1)与信号CLK之间的频率偏移状态。尔后,控制电路13可根据此频率偏移状态来调整信号CLK的频率。In an exemplary embodiment, the difference between m(1) and m(2) (ie, the difference between the first count value and the second count value) is also positively related to the signal S(1) and the signal CLK the frequency difference between them. For example, a larger difference between m(1) and m(2) indicates a larger frequency difference between the signal S(1) and the signal CLK. Therefore, the control circuit 13 can also evaluate the frequency offset state between the signal S(1) and the signal CLK according to the difference between m(1) and m(2). Then, the control circuit 13 can adjust the frequency of the signal CLK according to the frequency offset state.

图3是根据本发明的范例实施例所示出的时钟控制电路模块的示意图。FIG. 3 is a schematic diagram of a clock control circuit module according to an exemplary embodiment of the present invention.

请参照图3,时钟控制电路模块30包括时钟产生电路31、模数转换器(Analog-to-Digital Converter,ADC)32、控制电路33及均衡器34。时钟产生电路31可包括图1的时钟产生电路11。例如,时钟产生电路31可用以产生信号CLK。Referring to FIG. 3 , the clock control circuit module 30 includes a clock generation circuit 31 , an analog-to-digital converter (Analog-to-Digital Converter, ADC) 32 , a control circuit 33 and an equalizer 34 . The clock generation circuit 31 may include the clock generation circuit 11 of FIG. 1 . For example, the clock generating circuit 31 can be used to generate the signal CLK.

模数转换器32连接至时钟产生电路31。模数转换器32可包括图1的取样电路12。例如,模数转换器32可根据信号CLK对信号S(1)进行取样并产生信号S(2)。信号S(2)可反映信号CLK对信号S(1)的取样结果。例如,信号S(2)可包括图1和/或图2的信号SP(1)(即第一目标信号)与信号SP(2)(即第二目标信号)。The analog-to-digital converter 32 is connected to the clock generation circuit 31 . The analog-to-digital converter 32 may include the sampling circuit 12 of FIG. 1 . For example, the analog-to-digital converter 32 can sample the signal S(1) according to the signal CLK and generate the signal S(2). The signal S(2) can reflect the sampling result of the signal S(1) by the signal CLK. For example, the signal S(2) may include the signal SP(1) (ie, the first target signal) and the signal SP(2) (ie, the second target signal) in FIG. 1 and/or FIG. 2 .

控制电路33连接至模数转换器32与时钟产生电路31。控制电路33可包括图1的控制电路13。控制电路33可根据信号S(2)获得第一目标信号的转态点(即第一转态点)所对应的位置信息(即第一位置信息)与第二目标信号的转态点(即第二转态点)所对应的位置信息(即第二位置信息)。然后,控制电路33可根据第一位置信息与第二位置信息评估信号S(1)与信号CLK之间的频率偏移状态。然后,控制电路33可根据此频率偏移状态发送信号ADJ,以指示时钟产生电路31调整信号CLK的频率。The control circuit 33 is connected to the analog-to-digital converter 32 and the clock generation circuit 31 . The control circuit 33 may include the control circuit 13 of FIG. 1 . The control circuit 33 can obtain the position information corresponding to the transition point of the first target signal (ie, the first transition point) and the transition point of the second target signal (ie, the first position information) according to the signal S(2). The position information corresponding to the second transition point (that is, the second position information). Then, the control circuit 33 can evaluate the frequency offset state between the signal S(1) and the signal CLK according to the first position information and the second position information. Then, the control circuit 33 can send the signal ADJ according to the frequency deviation state to instruct the clock generation circuit 31 to adjust the frequency of the signal CLK.

在一范例实施例中,控制电路33包括频率检测器331、低通滤波器332及相位检测器333。频率检测器331连接至模数转换器32。频率检测器331可接收信号S(2)并根据信号S(2)检测信号S(1)与信号CLK之间的频率偏移状态。例如,频率检测器331可参照图1与图2的范例实施例之描述来检测信号S(1)与信号CLK之间的频率偏移状态,在此不重复说明。In an exemplary embodiment, the control circuit 33 includes a frequency detector 331 , a low-pass filter 332 and a phase detector 333 . The frequency detector 331 is connected to the analog-to-digital converter 32 . The frequency detector 331 can receive the signal S(2) and detect the frequency offset state between the signal S(1) and the signal CLK according to the signal S(2). For example, the frequency detector 331 can detect the state of the frequency offset between the signal S(1) and the signal CLK with reference to the description of the exemplary embodiments of FIG. 1 and FIG. 2 , and the description will not be repeated here.

低通滤波器332连接至频率检测器331与相位检测器333。低通滤波器332可根据频率检测器331的检测结果产生信号ADJ以调整信号CLK的频率。The low pass filter 332 is connected to the frequency detector 331 and the phase detector 333 . The low-pass filter 332 can generate the signal ADJ according to the detection result of the frequency detector 331 to adjust the frequency of the signal CLK.

相位检测器333连接至模数转换器32与低通滤波器332。相位检测器333可接收信号S(2)并根据信号S(2)检测信号S(1)与信号CLK之间的相位偏移状态。此相位偏移状态可反映或对应信号S(1)与信号CLK之间的相位差。例如,相位检测器333可根据信号S(2)所反映的信号CLK连续对信号S(1)的取样结果,来评估信号S(1)的相位是否领先或落后信号CLK的相位。相位检测器333可包括任何习知的相位检测器,在此不多加赘述。然后,低通滤波器332可根据相位检测器333的检测结果产生信号ADJ以调整信号CLK的相位或频率。The phase detector 333 is connected to the analog-to-digital converter 32 and the low-pass filter 332 . The phase detector 333 can receive the signal S(2) and detect the phase shift state between the signal S(1) and the signal CLK according to the signal S(2). The phase offset state may reflect or correspond to the phase difference between the signal S(1) and the signal CLK. For example, the phase detector 333 can evaluate whether the phase of the signal S(1) leads or lags the phase of the signal CLK according to the continuous sampling results of the signal S(1) reflected by the signal CLK reflected by the signal S(2). The phase detector 333 may include any known phase detector, which will not be repeated here. Then, the low-pass filter 332 can generate the signal ADJ according to the detection result of the phase detector 333 to adjust the phase or frequency of the signal CLK.

在一范例实施例中,在刚开始对信号CLK的频率和/或相位进行校正时,控制电路33可先启动频率检测器331以调整信号CLK的频率。例如,所述启动频率检测器331可包括导通频率检测器331至低通滤波器332的信号路径和/或切断相位检测器333至低通滤波器332的信号路径。在启动频率检测器331后,控制电路33可通过频率检测器331来检测信号S(1)与信号CLK之间的频率偏移状态并根据此频率偏移状态来控制时钟产生电路31调整信号CLK的频率。由此,在刚开始对信号CLK的频率和/或相位进行校正时,控制电路33可优先减少信号S(1)与信号CLK之间的频率差。In an exemplary embodiment, when the frequency and/or phase of the signal CLK is first calibrated, the control circuit 33 may first activate the frequency detector 331 to adjust the frequency of the signal CLK. For example, the starting frequency detector 331 may include turning on a signal path from the frequency detector 331 to the low-pass filter 332 and/or turning off a signal path from the phase detector 333 to the low-pass filter 332 . After starting the frequency detector 331, the control circuit 33 can detect the frequency offset state between the signal S(1) and the signal CLK through the frequency detector 331 and control the clock generation circuit 31 to adjust the signal CLK according to the frequency offset state. Frequency of. Therefore, when the frequency and/or phase of the signal CLK is first corrected, the control circuit 33 can give priority to reducing the frequency difference between the signal S(1) and the signal CLK.

在完成信号CLK的频率调整(例如信号S(1)与信号CLK之间的频率差小于预设值)后,控制电路33可启动相位检测器333以调整信号CLK的相位。例如,所述启动相位检测器333可包括导通相位检测器333至低通滤波器332的信号路径和/或切断频率检测器331至低通滤波器332的信号路径。在启动相位检测器333后,控制电路33可通过相位检测器333来检测信号S(1)与信号CLK之间的相位偏移状态并根据此相位偏移状态来控制时钟产生电路31调整信号CLK的相位。由此,在已经初步完成对信号CLK的频率校正的情况下,控制电路33可进一步减少信号S(1)与信号CLK之间的相位差。After the frequency adjustment of the signal CLK is completed (eg, the frequency difference between the signal S(1) and the signal CLK is smaller than a preset value), the control circuit 33 can activate the phase detector 333 to adjust the phase of the signal CLK. For example, enabling the phase detector 333 may include turning on a signal path from the phase detector 333 to the low-pass filter 332 and/or turning off a signal path from the frequency detector 331 to the low-pass filter 332 . After starting the phase detector 333, the control circuit 33 can detect the phase offset state between the signal S(1) and the signal CLK through the phase detector 333 and control the clock generation circuit 31 to adjust the signal CLK according to the phase offset state. phase. Thus, the control circuit 33 can further reduce the phase difference between the signal S(1) and the signal CLK when the frequency correction of the signal CLK has been preliminarily completed.

均衡器34连接至模数转换器32。均衡器34可用以对模数转换器32的输出(即信号S(2))进行补偿。例如,均衡器34可包括前向回馈均衡(Feed Forward Equalization,FFE)均衡器和/或其他类型的均衡器。An equalizer 34 is connected to the analog-to-digital converter 32 . The equalizer 34 can be used to compensate the output of the analog-to-digital converter 32 (ie, the signal S(2)). For example, the equalizer 34 may include a feed forward equalization (Feed Forward Equalization, FFE) equalizer and/or other types of equalizers.

在一范例实施例中,通过依序调整信号CLK的频率与相位,可有效改善以往可能因为信号S(1)与信号CLK之间的相位差或频率差过大,而使得相位检测器333无法正常运作的问题。此外,在频率检测器331的运作过程中,也不需要引入额外的参考时钟信号或者采用多相位的信号CLK来对信号S(1)进行取样,从而有效提高频率检测器331的泛用性。In an exemplary embodiment, by sequentially adjusting the frequency and phase of the signal CLK, it is possible to effectively improve the conventional phase detector 333 that may be unable to perform due to the large phase difference or frequency difference between the signal S(1) and the signal CLK. Problems with normal functioning. In addition, during the operation of the frequency detector 331 , there is no need to introduce an additional reference clock signal or use a multi-phase signal CLK to sample the signal S(1), thereby effectively improving the versatility of the frequency detector 331 .

图4是根据本发明的范例实施例所示出的频率检测器的示意图。FIG. 4 is a schematic diagram of a frequency detector according to an exemplary embodiment of the present invention.

请参照图3与图4,在一范例实施例中,频率检测器331包括延迟线(delay line)电路41、目标信号检测器42、窗口映射器43、事件存储器44及决策电路45。延迟线电路41可用以接收信号S(2)并将经延迟的信号S(2)提供给目标信号检测器42。目标信号检测器42可分析经延迟的信号S(2)以检测信号S(1)中是否存在第一目标信号和/或第二目标信号。以图2为例,目标信号检测器42可根据符合预设条件的信号SP(1)与SP(2)来分别检测信号ST(1)与ST(2)。Referring to FIG. 3 and FIG. 4 , in an exemplary embodiment, the frequency detector 331 includes a delay line circuit 41 , a target signal detector 42 , a window mapper 43 , an event memory 44 and a decision circuit 45 . The delay line circuit 41 can be used to receive the signal S( 2 ) and provide the delayed signal S( 2 ) to the target signal detector 42 . The target signal detector 42 may analyze the delayed signal S(2) to detect whether the first target signal and/or the second target signal exist in the signal S(1). Taking FIG. 2 as an example, the target signal detector 42 can respectively detect the signals ST( 1 ) and ST( 2 ) according to the signals SP( 1 ) and SP( 2 ) meeting the preset conditions.

在一范例实施例中,响应于信号S(1)中存在第一目标信号,目标信号检测器42可通知窗口映射器43去获得第一目标信号的转态点(即第一转态点)所对应的位置信息(即第一位置信息)。例如,响应于目标信号检测器42的第一次通知,窗口映射器43可将第一计数值(即第一位置信息)存储于事件存储器44。稍后,响应于目标信号检测器42判定信号S(1)中存在第二目标信号,目标信号检测器42可再次通知窗口映射器43去获得第二目标信号的转态点(即第二转态点)所对应的位置信息(即第二位置信息)。例如,响应于目标信号检测器42的第二次通知,窗口映射器43可将第二计数值(即第二位置信息)存储于事件存储器44。In an exemplary embodiment, in response to the presence of the first target signal in the signal S(1), the target signal detector 42 may notify the window mapper 43 to obtain the transition point of the first target signal (ie, the first transition point) The corresponding location information (that is, the first location information). For example, in response to the first notification from the target signal detector 42 , the window mapper 43 may store the first count value (ie, the first position information) in the event memory 44 . Later, in response to the target signal detector 42 determining that there is a second target signal in the signal S(1), the target signal detector 42 can notify the window mapper 43 again to obtain the transition point of the second target signal (ie, the second transition point state point) corresponding to the location information (that is, the second location information). For example, in response to the second notification from the target signal detector 42 , the window mapper 43 may store the second count value (ie, the second position information) in the event memory 44 .

在一范例实施例中,在将第一计数值(即第一位置信息)与第二计数值(即第二位置信息)存储于事件存储器44后,决策电路45可根据事件存储器44中的第一计数值(即第一位置信息)与第二计数值(即第二位置信息)之间的差值来产生信号(亦称为控制信号)CT。信号CT可用来控制图3的低通滤波器332产生相对应的信号ADJ以调整信号CLK的频率。此外,其余相关的操作细节皆已详述于前述范例实施例中,在此不多加赘述。In an exemplary embodiment, after storing the first count value (that is, the first position information) and the second count value (that is, the second position information) in the event memory 44 , the decision circuit 45 can according to the first count value in the event memory 44 The difference between a count value (ie, the first position information) and a second count value (ie, the second position information) generates a signal (also called a control signal) CT. The signal CT can be used to control the low-pass filter 332 in FIG. 3 to generate a corresponding signal ADJ to adjust the frequency of the signal CLK. In addition, other relevant operation details have been described in the foregoing exemplary embodiments, and will not be repeated here.

须注意的是,图1、图3及图4的范例实施例所示出的时钟控制电路模块与频率检测器的内部结构仅为范例,而非用以限制本发明。亦即,前述时钟控制电路模块与频率检测器中的各电子电路之间的连接关系皆可以视实务需求调整。此外,前述时钟控制电路模块与频率检测器中还可包含其他类型的电子电路以提供额外功能,本发明不加以限制。It should be noted that the internal structures of the clock control circuit module and the frequency detector shown in the exemplary embodiments of FIG. 1 , FIG. 3 and FIG. 4 are only examples, not intended to limit the present invention. That is, the connection relationship between the aforementioned clock control circuit module and each electronic circuit in the frequency detector can be adjusted according to practical requirements. In addition, the aforementioned clock control circuit module and frequency detector may also include other types of electronic circuits to provide additional functions, which is not limited by the present invention.

在一范例实施例中,前述时钟控制电路模块10或30可设置于存储器存储装置中。或者,在一范例实施例中,前述时钟控制电路模块10或30亦可设置于任意类型的电子装置中,本发明不加以限制。In an exemplary embodiment, the aforementioned clock control circuit module 10 or 30 may be disposed in a memory storage device. Alternatively, in an exemplary embodiment, the aforementioned clock control circuit module 10 or 30 may also be disposed in any type of electronic device, which is not limited by the present invention.

图5是根据本发明的范例实施例所示出的存储器存储装置的示意图。FIG. 5 is a schematic diagram of a memory storage device according to an exemplary embodiment of the present invention.

请参照图5,存储器存储装置50包括连接接口单元501、存储器控制电路单元502及可复写式非易失性存储器模块503。前述时钟控制电路模块10或30可设置于存储器存储装置50中。Referring to FIG. 5 , the memory storage device 50 includes a connection interface unit 501 , a memory control circuit unit 502 and a rewritable non-volatile memory module 503 . The aforementioned clock control circuit module 10 or 30 may be disposed in the memory storage device 50 .

连接接口单元501用以将存储器存储装置50连接主机系统51。存储器存储装置50可通过连接接口单元501与主机系统51通信。在一范例实施例中,连接接口单元501是相容于外设部件互连局部总线(Peripheral Component Interconnect Express,PCI Express)标准。然而,必须了解的是,本发明不限于此,连接接口单元501亦可以是符合串行高级技术附件(Serial Advanced Technology Attachment,SATA)标准、并行高级技术附件(Parallel Advanced Technology Attachment,PATA)标准、电气和电子工程师协会(Institute of Electrical and Electronic Engineers,IEEE)1394标准、通用串行总线(Universal Serial Bus,USB)标准、SD接口标准、超高速一代(Ultra High Speed-I,UHS-I)接口标准、超高速二代(Ultra High Speed-II,UHS-II)接口标准、存储棒(MemoryStick,MS)接口标准、MCP接口标准、MMC接口标准、eMMC接口标准、通用快闪存储器(Universal Flash Storage,UFS)接口标准、eMCP接口标准、CF接口标准、整合式驱动电子接口(Integrated Device Electronics,IDE)标准或其他适合的标准。连接接口单元501可与存储器控制电路单元502封装在一个芯片中,或者连接接口单元501是布设于一包含存储器控制电路单元502的芯片外。The connection interface unit 501 is used to connect the memory storage device 50 to the host system 51 . The memory storage device 50 can communicate with the host system 51 through the connection interface unit 501 . In an exemplary embodiment, the connection interface unit 501 is compatible with the Peripheral Component Interconnect Express (PCI Express) standard. However, it must be understood that the present invention is not limited thereto, and the connection interface unit 501 may also conform to the Serial Advanced Technology Attachment (SATA) standard, the Parallel Advanced Technology Attachment (Parallel Advanced Technology Attachment, PATA) standard, Institute of Electrical and Electronic Engineers (IEEE) 1394 standard, Universal Serial Bus (Universal Serial Bus, USB) standard, SD interface standard, Ultra High Speed-I (UHS-I) interface Standard, Ultra High Speed-II (UHS-II) interface standard, Memory Stick (MS) interface standard, MCP interface standard, MMC interface standard, eMMC interface standard, Universal Flash Storage (Universal Flash Storage , UFS) interface standard, eMCP interface standard, CF interface standard, Integrated Device Electronics (IDE) standard or other suitable standards. The connection interface unit 501 can be packaged with the memory control circuit unit 502 in one chip, or the connection interface unit 501 can be arranged outside a chip including the memory control circuit unit 502 .

存储器控制电路单元502连接至连接接口单元501与可复写式非易失性存储器模块503。存储器控制电路单元502用以执行以硬件型式或固件型式实作的多个逻辑门或控制指令并且根据主机系统的指令在可复写式非易失性存储器模块503中进行数据的写入、读取与抹除等运作。The memory control circuit unit 502 is connected to the connection interface unit 501 and the rewritable non-volatile memory module 503 . The memory control circuit unit 502 is used to execute a plurality of logic gates or control instructions implemented in hardware or firmware, and write and read data in the rewritable non-volatile memory module 503 according to the instructions of the host system Works with Erase etc.

可复写式非易失性存储器模块503用以存储主机系统51所写入的数据。可复写式非易失性存储器模块503可包括单阶存储单元(Single Level Cell,SLC)NAND型快闪存储器模块(即,一个存储单元中可存储1个比特的快闪存储器模块)、二阶存储单元(MultiLevel Cell,MLC)NAND型快闪存储器模块(即,一个存储单元中可存储2个比特的快闪存储器模块)、三阶存储单元(Triple Level Cell,TLC)NAND型快闪存储器模块(即,一个存储单元中可存储3个比特的快闪存储器模块)、四阶存储单元(Quad Level Cell,QLC)NAND型快闪存储器模块(即,一个存储单元中可存储4个比特的快闪存储器模块)、其他快闪存储器模块或其他具有相同特性的存储器模块。The rewritable non-volatile memory module 503 is used for storing data written by the host system 51 . The rewritable non-volatile memory module 503 may include a single-level storage unit (Single Level Cell, SLC) NAND flash memory module (that is, a flash memory module that can store 1 bit in a storage unit), a second-level Storage unit (MultiLevel Cell, MLC) NAND flash memory module (that is, a flash memory module that can store 2 bits in a storage unit), triple level storage unit (Triple Level Cell, TLC) NAND flash memory module (that is, a flash memory module that can store 3 bits in one storage unit), and a fourth-order storage unit (Quad Level Cell, QLC) NAND flash memory module (that is, a flash memory module that can store 4 bits in one storage unit) flash memory module), other flash memory modules, or other memory modules with the same characteristics.

可复写式非易失性存储器模块503中的每一个存储单元是以电压(以下亦称为临界电压)的改变来存储一或多个比特。具体来说,每一个存储单元的控制门(control gate)与通道之间有一个电荷捕捉层。通过施予一写入电压至控制门,可以改变电荷补捉层的电子量,进而改变存储单元的临界电压。此改变存储单元的临界电压的操作亦称为“把数据写入至存储单元”或“程序化(programming)存储单元”。随着临界电压的改变,可复写式非易失性存储器模块503中的每一个存储单元具有多个存储状态。通过施予读取电压可以判断一个存储单元是属于哪一个存储状态,由此取得此存储单元所存储的一或多个比特。Each memory cell in the rewritable non-volatile memory module 503 stores one or more bits by changing a voltage (also referred to as threshold voltage hereinafter). Specifically, there is a charge trapping layer between the control gate and the channel of each memory cell. By applying a writing voltage to the control gate, the amount of electrons in the charge trapping layer can be changed, thereby changing the threshold voltage of the memory cell. The operation of changing the threshold voltage of the memory cell is also called "writing data into the memory cell" or "programming the memory cell". As the threshold voltage changes, each memory cell in the rewritable nonvolatile memory module 503 has multiple storage states. Which storage state a memory cell belongs to can be determined by applying a read voltage, thereby obtaining one or more bits stored in the memory cell.

在一范例实施例中,可复写式非易失性存储器模块503的存储单元可构成多个实体程序化单元,并且此些实体程序化单元可构成多个实体抹除单元。具体来说,同一条字线上的存储单元可组成一或多个实体程序化单元。若一个存储单元可存储2个以上的比特,则同一条字线上的实体程序化单元可至少可被分类为下实体程序化单元与上实体程序化单元。例如,一存储单元的最低有效比特(Least Significant Bit,LSB)是属于下实体程序化单元,并且一存储单元的最高有效比特(Most Significant Bit,MSB)是属于上实体程序化单元。一般来说,在MLC NAND型快闪存储器中,下实体程序化单元的写入速度会大于上实体程序化单元的写入速度,和/或下实体程序化单元的可靠度是高于上实体程序化单元的可靠度。In an exemplary embodiment, the storage units of the rewritable non-volatile memory module 503 may constitute a plurality of physical programming units, and these physical programming units may constitute a plurality of physical erasing units. Specifically, memory cells on the same word line can form one or more physical programming cells. If a memory cell can store more than 2 bits, the physical programming units on the same word line can be classified into at least lower physical programming units and upper physical programming units. For example, the Least Significant Bit (LSB) of a storage unit belongs to the lower physical programming unit, and the Most Significant Bit (MSB) of a storage unit belongs to the upper physical programming unit. Generally speaking, in MLC NAND flash memory, the writing speed of the lower physical programming unit will be greater than the writing speed of the upper physical programming unit, and/or the reliability of the lower physical programming unit is higher than that of the upper physical programming unit. The reliability of the programmatic unit.

在一范例实施例中,实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。例如,实体程序化单元可为实体页(page)或是实体扇(sector)。若实体程序化单元为实体页,则此些实体程序化单元可包括数据比特区与冗余(redundancy)比特区。数据比特区包含多个实体扇,用以存储用户数据,而冗余比特区用以存储系统数据(例如,错误更正码等管理数据)。在一范例实施例中,数据比特区包含32个实体扇,且一个实体扇的大小为512字节(byte,B)。然而,在其他范例实施例中,数据比特区中也可包含8个、16个或数目更多或更少的实体扇,并且每一个实体扇的大小也可以是更大或更小。另一方面,实体抹除单元为抹除的最小单位。亦即,每一实体抹除单元含有最小数目的一并被抹除的存储单元。例如,实体抹除单元为实体区块(block)。In an exemplary embodiment, the entity programming unit is the smallest unit of programming. That is, the entity programming unit is the smallest unit for writing data. For example, the physical programming unit may be a physical page or a physical sector. If the physical programming units are physical pages, these physical programming units may include data bit areas and redundancy (redundancy) bit areas. The data bit area includes a plurality of physical sectors for storing user data, and the redundant bit area is used for storing system data (eg, management data such as error correction codes). In an exemplary embodiment, the data bit area includes 32 physical sectors, and the size of one physical sector is 512 bytes (byte, B). However, in other exemplary embodiments, the data bit area may also include 8, 16 or more or less physical sectors, and the size of each physical sector may also be larger or smaller. On the other hand, the entity erasing unit is the smallest unit of erasing. That is, each physical erase unit contains the minimum number of memory cells to be erased together. For example, the physical erasing unit is a physical block.

在一范例实施例中,前述时钟控制电路模块10或30可设置于连接接口单元501中。因此,第一信号(即图1或图3的信号S(1))可包括来自主机系统51的信号。或者,在一范例实施例中,前述时钟控制电路模块10或30亦可设置于存储器控制电路单元502和/或可复写式非易失性存储器模块503中。In an exemplary embodiment, the aforementioned clock control circuit module 10 or 30 may be disposed in the connection interface unit 501 . Accordingly, the first signal (ie, signal S(1) of FIG. 1 or FIG. 3 ) may include a signal from the host system 51 . Alternatively, in an exemplary embodiment, the aforementioned clock control circuit module 10 or 30 may also be disposed in the memory control circuit unit 502 and/or the rewritable non-volatile memory module 503 .

在一范例实施例中,第一信号(即图1或图3的信号S(1))中的第一目标信号与第二目标信号是在存储器存储装置50与主机系统51的交握阶段中从主机系统51接收。例如,在存储器存储装置50与主机系统51之间的连线刚建立或者存储器存储装置50与主机系统51之间的连线不稳定时,存储器存储装置50可进入与主机系统51的交握阶段。在此交握阶段中,存储器存储装置50可与主机系统51执行交握操作,以进行与主机系统51之间的时钟校正和/或电压校正等互动行为。In an exemplary embodiment, the first target signal and the second target signal in the first signal (ie, the signal S(1) in FIG. 1 or FIG. 3 ) are in the handshake phase between the memory storage device 50 and the host system 51 Received from host system 51. For example, when the connection between the memory storage device 50 and the host system 51 is just established or the connection between the memory storage device 50 and the host system 51 is unstable, the memory storage device 50 can enter the handshake phase with the host system 51 . In this handshake phase, the memory storage device 50 can perform a handshake operation with the host system 51 to perform interactive actions such as clock correction and/or voltage correction with the host system 51 .

在一范例实施例中,第一目标信号与第二目标信号是用来在此交握阶段中传递有关于存储器存储装置50与主机系统51之间的通信标准的识别信息,例如PCI Express标准中的EIEOSQ信息。此外,第一目标信号与第二目标信号还可包括其他具有类似性质(即具有相同的信号样态且会在第一信号中依据特定规则重复传送)的信号,本发明不加以限制。In an exemplary embodiment, the first target signal and the second target signal are used to convey identification information about the communication standard between the memory storage device 50 and the host system 51 during the handshake phase, such as in the PCI Express standard EIEOSQ information. In addition, the first target signal and the second target signal may also include other signals with similar properties (that is, having the same signal pattern and being repeatedly transmitted in the first signal according to a specific rule), which is not limited by the present invention.

在一范例实施例中,在离开所述交握阶段后,第一信号(即图1或图3的信号S(1))可带有来自主机系统51的数据信号。例如,此数据信号可带有主机系统51所欲存储至存储器存储装置50的数据比特。在一范例实施例中,通过对图1或图3的信号CLK进行调整,后续对此数据信号的取样质量可被提升。In an exemplary embodiment, after leaving the handshake phase, the first signal (ie, signal S(1) of FIG. 1 or FIG. 3 ) may carry a data signal from the host system 51 . For example, the data signal may carry data bits that the host system 51 intends to store into the memory storage device 50 . In an exemplary embodiment, by adjusting the signal CLK in FIG. 1 or FIG. 3 , the subsequent sampling quality of the data signal can be improved.

图6是根据本发明的范例实施例所示出的时钟控制方法的流程图。Fig. 6 is a flowchart of a clock control method according to an exemplary embodiment of the present invention.

请参照图6,在步骤S601中,产生时钟信号。在步骤S602中,根据时钟信号对第一信号进行取样以产生第一取样信号与第二取样信号。在步骤S603中,根据第一取样信号与第二取样信号分别获得第一目标信号的第一转态点所对应的第一位置信息与第二目标信号的第二转态点所对应的第二位置信息。在步骤S604中,根据第一位置信息与第二位置信息评估第一信号与时钟信号之间的频率偏移状态。Referring to FIG. 6, in step S601, a clock signal is generated. In step S602, the first signal is sampled according to the clock signal to generate a first sampling signal and a second sampling signal. In step S603, the first position information corresponding to the first transition point of the first target signal and the second position information corresponding to the second transition point of the second target signal are respectively obtained according to the first sampling signal and the second sampling signal. location information. In step S604, a frequency offset state between the first signal and the clock signal is evaluated according to the first location information and the second location information.

然而,图6中各步骤已详细说明如上,在此便不再赘述。值得注意的是,图6中各步骤可以实作为多个程序码或是电路,本案不加以限制。此外,图6的方法可以搭配以上范例实施例使用,也可以单独使用,本案不加以限制。However, each step in FIG. 6 has been described in detail above, and will not be repeated here. It should be noted that each step in FIG. 6 can be implemented as multiple program codes or circuits, which is not limited in this case. In addition, the method in FIG. 6 can be used in combination with the above exemplary embodiments, or can be used alone, which is not limited in this case.

综上所述,本发明实施例提供的时钟控制电路模块、存储器存储装置及时钟控制方法,可在不需要引入额外的参考时钟信号且不采用多相位的时钟信号来对第一信号进行取样的前提下,有效评估(并减少)第一信号与时钟信号之间的频率差。由此,可有效提高信号接收端的信号接收质量。In summary, the clock control circuit module, memory storage device and clock control method provided by the embodiments of the present invention can sample the first signal without introducing an additional reference clock signal and without using multi-phase clock signals. Under the premise, effectively evaluate (and reduce) the frequency difference between the first signal and the clock signal. Thus, the signal receiving quality at the signal receiving end can be effectively improved.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (30)

1.一种时钟控制电路模块,其特征在于,包括:1. A clock control circuit module, characterized in that, comprising: 时钟产生电路,用以产生时钟信号;A clock generating circuit, used to generate a clock signal; 取样电路,用以根据所述时钟信号对第一信号进行取样并产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果;以及The sampling circuit is used to sample the first signal according to the clock signal and generate a sampling signal, wherein the sampling signal includes a first sampling signal and a second sampling signal, and the first sampling signal reflects the effect of the clock signal on the a first sampling result of a first target signal in the first signal, and the second sampling signal reflects a second sampling result of the clock signal on a second target signal in the first signal; and 控制电路,连接至所述时钟产生电路与所述取样电路,a control circuit connected to the clock generating circuit and the sampling circuit, 其中所述控制电路用以:Wherein said control circuit is used for: 根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及Obtaining the first position information corresponding to the first transition point of the first target signal and corresponding to the second transition point of the second target signal according to the first sampling signal and the second sampling signal respectively the second location information of ; and 根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。A frequency offset state between the first signal and the clock signal is evaluated based on the first location information and the second location information. 2.根据权利要求1所述的时钟控制电路模块,其中所述第一位置信息反映所述第一转态点位于所述时钟信号的第一取样窗中的第一位置,且所述第二位置信息反映所述第二转态点位于所述时钟信号的第二取样窗中的第二位置。2. The clock control circuit module according to claim 1, wherein the first position information reflects that the first transition point is located at a first position in the first sampling window of the clock signal, and the second The position information reflects that the second transition point is located at a second position in the second sampling window of the clock signal. 3.根据权利要求2所述的时钟控制电路模块,其中所述第一取样窗的时间长度相同于所述第二取样窗的时间长度。3. The clock control circuit module according to claim 2, wherein the time length of the first sampling window is the same as the time length of the second sampling window. 4.根据权利要求1所述的时钟控制电路模块,其中所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且所述控制电路根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的操作包括:4. The clock control circuit module according to claim 1, wherein the first position information includes a first count value, the second position information includes a second count value, and the control circuit according to the first position information and said second position information evaluating said frequency offset state between said first signal and said clock signal comprises: 根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。The state of the frequency offset between the first signal and the clock signal is evaluated based on a difference between the first count value and the second count value. 5.根据权利要求4所述的时钟控制电路模块,其中所述差值正相关于所述第一信号与所述时钟信号之间的频率差。5. The clock control circuit module of claim 4, wherein the difference value is positively related to a frequency difference between the first signal and the clock signal. 6.根据权利要求1所述的时钟控制电路模块,其中所述控制电路根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的操作包括:6. The clock control circuit module according to claim 1, wherein the control circuit respectively obtains the first transition point of the first target signal according to the first sampling signal and the second sampling signal. The operation corresponding to the first position information and the second position information corresponding to the second transition point of the second target signal includes: 持续分析所述取样信号;continuously analyzing the sampled signal; 响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;determining that the first target signal in the first signals is detected in response to the sampling signal meeting a preset condition; 响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;obtaining the first position information corresponding to the first transition point according to the first sampling result in response to detecting the first target signal; 响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及determining that the second target signal in the first signal is detected in response to the sampled signal meeting the preset condition again; and 响应于检测到所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In response to detecting the second target signal, the second position information corresponding to the second transition point is obtained according to the second sampling result. 7.根据权利要求1所述的时钟控制电路模块,其中所述控制电路还用以:7. The clock control circuit module according to claim 1, wherein the control circuit is also used for: 根据所述频率偏移状态控制所述时钟产生电路调整所述时钟信号的频率。controlling the clock generation circuit to adjust the frequency of the clock signal according to the frequency offset state. 8.根据权利要求1所述的时钟控制电路模块,其中所述时钟控制电路模块设置于存储器存储装置中,且所述第一目标信号与所述第二目标信号是在所述存储器存储装置与主机系统的交握阶段中从所述主机系统接收。8. The clock control circuit module according to claim 1, wherein the clock control circuit module is disposed in a memory storage device, and the first target signal and the second target signal are in the memory storage device and received from the host system during the handshake phase of the host system. 9.根据权利要求1所述的时钟控制电路模块,其中所述控制电路包括:9. The clock control circuit module according to claim 1, wherein the control circuit comprises: 相位检测器;phase detector; 频率检测器;以及a frequency detector; and 低通滤波器,连接至所述相位检测器、所述频率检测器及所述时钟产生电路,a low-pass filter connected to the phase detector, the frequency detector and the clock generation circuit, 其中所述相位检测器用以检测所述第一信号与所述时钟信号之间的相位偏移状态,wherein the phase detector is used to detect a phase offset state between the first signal and the clock signal, 所述频率检测器用以检测所述第一信号与所述时钟信号之间的所述频率偏移状态,并且the frequency detector is configured to detect the frequency offset state between the first signal and the clock signal, and 所述低通滤波器用以根据所述相位检测器与所述频率检测器的至少其中之一的检测结果来控制所述时钟产生电路调整所述时钟信号的频率。The low-pass filter is used for controlling the clock generation circuit to adjust the frequency of the clock signal according to a detection result of at least one of the phase detector and the frequency detector. 10.根据权利要求9所述的时钟控制电路模块,其中所述频率检测器包括:10. The clock control circuit module according to claim 9, wherein said frequency detector comprises: 延迟线电路;delay line circuit; 目标信号检测器,连接至所述延迟线电路;a target signal detector connected to the delay line circuit; 窗口映射器,连接至所述延迟线电路与所述目标信号检测器;a window mapper connected to the delay line circuit and the target signal detector; 事件存储器,连接至所述窗口映射器;以及an event memory connected to said window mapper; and 决策电路,连接至所述事件存储器,decision circuit, connected to the event memory, 其中所述延迟线电路用以接收所述取样信号,wherein the delay line circuit is used to receive the sampling signal, 所述目标信号检测器用以根据所述取样信号检测所述第一信号中的所述第一目标信号与所述第二目标信号,The target signal detector is configured to detect the first target signal and the second target signal in the first signal according to the sampled signal, 所述窗口映射器用以响应于所述第一目标信号而获得所述第一位置信息并响应于所述第二目标信号而获得所述第二位置信息,the window mapper to obtain the first position information in response to the first target signal and to obtain the second position information in response to the second target signal, 所述事件存储器用以存储所述第一位置信息与所述第二位置信息,并且the event memory is used to store the first location information and the second location information, and 所述决策电路用以根据所述第一位置信息与所述第二位置信息产生控制信号,以控制所述低通滤波器调整所述时钟信号的所述频率。The decision circuit is used to generate a control signal according to the first position information and the second position information, so as to control the low-pass filter to adjust the frequency of the clock signal. 11.一种存储器存储装置,其特征在于,包括:11. A memory storage device, comprising: 连接接口单元,用以连接至主机系统;connecting the interface unit for connecting to the host system; 可复写式非易失性存储器模块;Rewritable non-volatile memory module; 存储器控制电路单元,连接至所述连接接口单元与所述可复写式非易失性存储器模块;以及a memory control circuit unit connected to the connection interface unit and the rewritable non-volatile memory module; and 时钟控制电路模块,设置于所述连接接口单元中,a clock control circuit module, set in the connection interface unit, 其中所述时钟控制电路模块用以:Wherein the clock control circuit module is used for: 产生时钟信号;generate a clock signal; 接收第一信号与所述时钟信号并根据所述时钟信号对所述第一信号进行取样以产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果;receiving a first signal and the clock signal and sampling the first signal according to the clock signal to generate a sampling signal, wherein the sampling signal includes a first sampling signal and a second sampling signal, and the first sampling signal Reflecting the first sampling result of the clock signal on the first target signal in the first signal, and the second sampling signal reflects the second sampling result of the clock signal on the second target signal in the first signal sampling results; 根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及Obtaining the first position information corresponding to the first transition point of the first target signal and corresponding to the second transition point of the second target signal according to the first sampling signal and the second sampling signal respectively the second location information of ; and 根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。A frequency offset state between the first signal and the clock signal is evaluated based on the first location information and the second location information. 12.根据权利要求11所述的存储器存储装置,其中所述第一位置信息反映所述第一转态点位于所述时钟信号的第一取样窗中的第一位置,且所述第二位置信息反映所述第二转态点位于所述时钟信号的第二取样窗中的第二位置。12. The memory storage device of claim 11 , wherein the first location information reflects a first location of the first transition point in a first sampling window of the clock signal, and the second location The information reflects that the second transition point is located at a second position in a second sampling window of the clock signal. 13.根据权利要求12所述的存储器存储装置,其中所述第一取样窗的时间长度相同于所述第二取样窗的时间长度。13. The memory storage device of claim 12, wherein a temporal length of the first sampling window is the same as a temporal length of the second sampling window. 14.根据权利要求11所述的存储器存储装置,其中所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且所述时钟控制电路模块根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的操作包括:14. The memory storage device according to claim 11 , wherein the first location information includes a first count value, the second location information includes a second count value, and the clock control circuit module according to the first The location information and the second location information evaluating the frequency offset state between the first signal and the clock signal include: 根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。The state of the frequency offset between the first signal and the clock signal is evaluated based on a difference between the first count value and the second count value. 15.根据权利要求14所述的存储器存储装置,其中所述差值正相关于所述第一信号与所述时钟信号之间的频率差。15. The memory storage device of claim 14, wherein the difference value is positively related to a frequency difference between the first signal and the clock signal. 16.根据权利要求11所述的存储器存储装置,其中所述时钟控制电路模块根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的操作包括:16. The memory storage device according to claim 11, wherein the clock control circuit module respectively obtains the first transition point of the first target signal according to the first sampling signal and the second sampling signal The corresponding operation of the first position information and the second position information corresponding to the second transition point of the second target signal includes: 持续分析所述取样信号;continuously analyzing the sampled signal; 响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;determining that the first target signal in the first signals is detected in response to the sampling signal meeting a preset condition; 响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;obtaining the first position information corresponding to the first transition point according to the first sampling result in response to detecting the first target signal; 响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及determining that the second target signal in the first signal is detected in response to the sampled signal meeting the preset condition again; and 响应于检测到所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In response to detecting the second target signal, the second position information corresponding to the second transition point is obtained according to the second sampling result. 17.根据权利要求11所述的存储器存储装置,其中所述时钟控制电路模块还用以:17. The memory storage device according to claim 11, wherein the clock control circuit module is further used for: 根据所述频率偏移状态调整所述时钟信号的频率。The frequency of the clock signal is adjusted according to the frequency offset state. 18.根据权利要求11所述的存储器存储装置,其中所述第一目标信号与所述第二目标信号是在所述存储器存储装置与所述主机系统的交握阶段中从所述主机系统接收。18. The memory storage device of claim 11 , wherein the first target signal and the second target signal are received from the host system during a handshake phase of the memory storage device with the host system . 19.根据权利要求11所述的存储器存储装置,其中所述时钟控制电路模块包括:19. The memory storage device of claim 11 , wherein the clock control circuit module comprises: 相位检测器;phase detector; 频率检测器;以及a frequency detector; and 低通滤波器,连接至所述相位检测器与所述频率检测器,a low-pass filter connected to the phase detector and the frequency detector, 其中所述相位检测器用以检测所述第一信号与所述时钟信号之间的相位偏移状态,wherein the phase detector is used to detect a phase offset state between the first signal and the clock signal, 所述频率检测器用以检测所述第一信号与所述时钟信号之间的所述频率偏移状态,并且the frequency detector is configured to detect the frequency offset state between the first signal and the clock signal, and 所述低通滤波器用以根据所述相位检测器与所述频率检测器的至少其中之一的检测结果来调整所述时钟信号的频率。The low-pass filter is used for adjusting the frequency of the clock signal according to a detection result of at least one of the phase detector and the frequency detector. 20.根据权利要求19所述的存储器存储装置,其中所述频率检测器包括:20. The memory storage device of claim 19, wherein the frequency detector comprises: 延迟线电路;delay line circuit; 目标信号检测器,连接至所述延迟线电路;a target signal detector connected to the delay line circuit; 窗口映射器,连接至所述延迟线电路与所述目标信号检测器;a window mapper connected to the delay line circuit and the target signal detector; 事件存储器,连接至所述窗口映射器;以及an event memory connected to said window mapper; and 决策电路,连接至所述事件存储器,decision circuit, connected to the event memory, 其中所述延迟线电路用以接收所述第一取样信号与所述第二取样信号,wherein the delay line circuit is used to receive the first sampling signal and the second sampling signal, 所述目标信号检测器用以根据所述取样信号检测所述第一信号中的所述第一目标信号与所述第二目标信号,The target signal detector is configured to detect the first target signal and the second target signal in the first signal according to the sampled signal, 所述窗口映射器用以响应于所述第一目标信号而获得所述第一位置信息并响应于所述第二目标信号而获得所述第二位置信息,the window mapper to obtain the first position information in response to the first target signal and to obtain the second position information in response to the second target signal, 所述事件存储器用以存储所述第一位置信息与所述第二位置信息,并且the event memory is used to store the first location information and the second location information, and 所述决策电路用以根据所述第一位置信息与所述第二位置信息产生控制信号,以控制所述低通滤波器调整所述时钟信号的所述频率。The decision circuit is used to generate a control signal according to the first position information and the second position information, so as to control the low-pass filter to adjust the frequency of the clock signal. 21.一种时钟控制方法,其特征在于,包括:21. A clock control method, characterized in that, comprising: 产生时钟信号;generate a clock signal; 接收第一信号与所述时钟信号并根据所述时钟信号对所述第一信号进行取样以产生取样信号,其中所述取样信号包括第一取样信号与第二取样信号,所述第一取样信号反映所述时钟信号对所述第一信号中的第一目标信号的第一取样结果,且所述第二取样信号反映所述时钟信号对所述第一信号中的第二目标信号的第二取样结果;receiving a first signal and the clock signal and sampling the first signal according to the clock signal to generate a sampling signal, wherein the sampling signal includes a first sampling signal and a second sampling signal, and the first sampling signal Reflecting the first sampling result of the clock signal on the first target signal in the first signal, and the second sampling signal reflects the second sampling result of the clock signal on the second target signal in the first signal sampling results; 根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的第一转态点所对应的第一位置信息与所述第二目标信号的第二转态点所对应的第二位置信息;以及Obtaining the first position information corresponding to the first transition point of the first target signal and corresponding to the second transition point of the second target signal according to the first sampling signal and the second sampling signal respectively the second location information of ; and 根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的频率偏移状态。A frequency offset state between the first signal and the clock signal is evaluated based on the first location information and the second location information. 22.根据权利要求21所述的时钟控制方法,其中所述第一位置信息反映所述第一转态点位于所述时钟信号的第一取样窗中的第一位置,且所述第二位置信息反映所述第二转态点位于所述时钟信号的第二取样窗中的第二位置。22. The clock control method according to claim 21, wherein the first position information reflects that the first transition point is located at a first position in the first sampling window of the clock signal, and the second position The information reflects that the second transition point is located at a second position in a second sampling window of the clock signal. 23.根据权利要求22所述的时钟控制方法,其中所述第一取样窗的时间长度相同于所述第二取样窗的时间长度。23. The clock control method according to claim 22, wherein the time length of the first sampling window is the same as the time length of the second sampling window. 24.根据权利要求21所述的时钟控制方法,其中所述第一位置信息包括第一计数值,所述第二位置信息包括第二计数值,且根据所述第一位置信息与所述第二位置信息评估所述第一信号与所述时钟信号之间的所述频率偏移状态的步骤包括:24. The clock control method according to claim 21, wherein the first position information includes a first count value, the second position information includes a second count value, and according to the first position information and the second count value The step of evaluating said frequency offset state between said first signal and said clock signal comprising: 根据所述第一计数值与所述第二计数值之间的差值,评估所述第一信号与所述时钟信号之间的所述频率偏移状态。The state of the frequency offset between the first signal and the clock signal is evaluated based on a difference between the first count value and the second count value. 25.根据权利要求24所述的时钟控制方法,其中所述差值正相关于所述第一信号与所述时钟信号之间的频率差。25. The clock control method of claim 24, wherein the difference value is positively related to a frequency difference between the first signal and the clock signal. 26.根据权利要求21所述的时钟控制方法,其中根据所述第一取样信号与所述第二取样信号分别获得所述第一目标信号的所述第一转态点所对应的所述第一位置信息与所述第二目标信号的所述第二转态点所对应的所述第二位置信息的步骤包括:26. The clock control method according to claim 21, wherein the first transition point corresponding to the first transition point of the first target signal is respectively obtained according to the first sampling signal and the second sampling signal. The step of a position information and the second position information corresponding to the second transition point of the second target signal includes: 持续分析所述取样信号;continuously analyzing the sampled signal; 响应于所述取样信号符合预设条件,判定检测到所述第一信号中的所述第一目标信号;determining that the first target signal in the first signals is detected in response to the sampling signal meeting a preset condition; 响应于检测到所述第一目标信号,根据所述第一取样结果获得对应于所述第一转态点的所述第一位置信息;obtaining the first position information corresponding to the first transition point according to the first sampling result in response to detecting the first target signal; 响应于所述取样信号再次符合所述预设条件,判定检测到所述第一信号中的所述第二目标信号;以及determining that the second target signal in the first signal is detected in response to the sampled signal meeting the preset condition again; and 响应于检测到所述第二目标信号,根据所述第二取样结果获得对应于所述第二转态点的所述第二位置信息。In response to detecting the second target signal, the second position information corresponding to the second transition point is obtained according to the second sampling result. 27.根据权利要求21所述的时钟控制方法,还包括:27. The clock control method according to claim 21, further comprising: 根据所述频率偏移状态调整所述时钟信号的频率。The frequency of the clock signal is adjusted according to the frequency offset state. 28.根据权利要求21所述的时钟控制方法,其中所述第一目标信号与所述第二目标信号是在存储器存储装置与主机系统的交握阶段中从所述主机系统接收。28. The clock control method of claim 21, wherein the first target signal and the second target signal are received from the host system during a handshake phase of the memory storage device and the host system. 29.根据权利要求21所述的时钟控制方法,还包括:29. The clock control method according to claim 21, further comprising: 由相位检测器检测所述第一信号与所述时钟信号之间的相位偏移状态;detecting a phase offset state between the first signal and the clock signal by a phase detector; 由频率检测器检测所述第一信号与所述时钟信号之间的所述频率偏移状态;以及detecting the frequency offset state between the first signal and the clock signal by a frequency detector; and 根据所述相位检测器与所述频率检测器的至少其中之一的检测结果来调整所述时钟信号的频率。The frequency of the clock signal is adjusted according to a detection result of at least one of the phase detector and the frequency detector. 30.根据权利要求29所述的时钟控制方法,其中由所述频率检测器检测所述第一信号与所述时钟信号之间的所述频率偏移状态的步骤包括:30. The clock control method according to claim 29, wherein the step of detecting, by the frequency detector, the state of the frequency offset between the first signal and the clock signal comprises: 接收所述取样信号;receiving the sampled signal; 根据所述取样信号检测所述第一信号中的所述第一目标信号与所述第二目标信号;detecting the first target signal and the second target signal in the first signal according to the sampled signal; 响应于所述第一目标信号而获得所述第一位置信息并响应于所述第二目标信号而获得所述第二位置信息;obtaining the first position information in response to the first target signal and obtaining the second position information in response to the second target signal; 存储所述第一位置信息与所述第二位置信息;以及storing the first location information and the second location information; and 根据所述第一位置信息与所述第二位置信息产生控制信号,以调整所述时钟信号的所述频率。A control signal is generated according to the first location information and the second location information to adjust the frequency of the clock signal.
CN202310285205.8A 2023-03-22 2023-03-22 Clock control circuit module, memory storage device and clock control method Pending CN116301196A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310285205.8A CN116301196A (en) 2023-03-22 2023-03-22 Clock control circuit module, memory storage device and clock control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310285205.8A CN116301196A (en) 2023-03-22 2023-03-22 Clock control circuit module, memory storage device and clock control method

Publications (1)

Publication Number Publication Date
CN116301196A true CN116301196A (en) 2023-06-23

Family

ID=86828483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310285205.8A Pending CN116301196A (en) 2023-03-22 2023-03-22 Clock control circuit module, memory storage device and clock control method

Country Status (1)

Country Link
CN (1) CN116301196A (en)

Similar Documents

Publication Publication Date Title
US9712175B2 (en) Clock and data recovery circuit module and phase lock method
US10523223B2 (en) Phase-locked loop circuit calibration method, memory storage device and connection interface circuit
US10326622B2 (en) Equalizer tuning method, signal receiving circuit and a memory storage device
TWI692206B (en) Clock and data recovery circuit, memory storage device and flash memory controller
TWI701906B (en) Connection interface circuit、memory storage device and phase-locked loop circuit calibration method
US11206157B1 (en) Signal receiving circuit, memory storage device and calibration method of equalizer circuit
CN109450439B (en) Clock data recovery circuit module, memory storage device and phase locking method
TWI700896B (en) Signal calibration circuit, memory storage device and signal calibration method
US11636902B2 (en) Signal modulation apparatus, memory storage apparatus, and signal modulation method
US12008242B2 (en) Signal calibration method, memory storage device, and memory control circuit unit
US12282353B2 (en) Clock control circuit module, memory storage device and clock control method
CN110299914B (en) Phase-locked loop circuit correction method, memory storage device and connection interface circuit
CN116301196A (en) Clock control circuit module, memory storage device and clock control method
TWI727656B (en) Clock and data recovery circuit, memory storage device and signal adjustment method
CN112019225B (en) Signal receiving circuit, memory storage device and method for calibrating equalizer circuit
CN113643733B (en) Signal modulation device, memory storage device and signal modulation method
TWI857357B (en) Signal calibration method, memory storage device and memory control circuit unit
CN111654266B (en) Clock data recovery circuit, memory storage device and flash memory controller
CN111585547B (en) Signal correction circuit, memory storage device and signal correction method
CN116631467A (en) Clock control circuit, memory storage device and clock control method
CN113077825A (en) Connection interface circuit, memory storage device and phase-locked loop circuit correction method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination