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 PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C16/00—Erasable programmable read-only memories
- G11C16/02—Erasable programmable read-only memories electrically programmable
- G11C16/06—Auxiliary circuits, e.g. for writing into memory
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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
Description
技术领域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
时钟产生电路11连接至取样电路12。取样电路12可用以接收信号(亦称为第一信号)S(1)与信号CLK。例如,信号S(1)是由外部装置提供,而信号CLK是由时钟产生电路11提供。此外,信号S(1)也具有特定的频率。信号S(1)的频率可不同于信号CLK的频率。例如,信号CLK的频率可高于信号S(1)的频率。The
取样电路12还可用以根据信号CLK对信号S(1)进行取样并产生取样信号。例如,取样电路12可使用信号CLK的上升沿和/或下降沿依序对信号S(1)进行取样,以产生取样信号。The
须注意的是,此取样信号包括信号(亦称为第一取样信号)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
控制电路13连接至时钟产生电路11与取样电路12。控制电路13可用以接收所述取样信号(包括信号SP(1)与SP(2))。控制电路13可根据所述取样信号(包括信号SP(1)与SP(2))获得第一目标信号的转态点(亦称为第一转态点)所对应的位置信息(亦称为第一位置信息)与第二目标信号的转态点(亦称为第二转态点)所对应的位置信息(亦称为第二位置信息)。然后,控制电路13可根据第一位置信息与第二位置信息评估信号S(1)与信号CLK之间的频率偏移状态。例如,此频率偏移状态是有关于信号S(1)与信号CLK之间的频率差。或者,从另一角度而言,此频率偏移状态可反映或对应信号S(1)与信号CLK之间的频率差。The
在一范例实施例中,取样电路12可基于信号CLK的多个取样窗来对信号S(1)(包含第一目标信号与第二目标信号)进行取样并依序产生信号SP(1)与SP(2)。因此,第一位置信息可反映第一目标信号的一个转态点(即第一转态点)位于信号CLK的某一个取样窗(亦称为第一取样窗)中的特定位置(亦称为第一位置)。此外,第二位置信息则可反映第二目标信号的一个转态点(即第二转态点)位于信号CLK的另一取样窗(亦称为第二取样窗)中的特定位置(亦称为第二位置)。第一取样窗的时间长度相同于第二取样窗的时间长度。In an exemplary embodiment, the
在一范例实施例中,第一位置信息包括一个计数值(亦称为第一计数值),且第二位置信息包括另一个计数值(亦称为第二计数值)。第一计数值对应于第一位置。第二计数值对应于第二位置。控制电路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
在一范例实施例中,控制电路13可持续分析取样电路12产生的取样信号。例如,控制电路13可判断取样信号是否符合预设条件。响应于取样信号符合预设条件,控制电路13可判定已检测到信号S(1)中的第一目标信号。响应于检测到第一目标信号,控制电路13可根据第一取样结果获得第一目标信号的转态点(即第一转态点)所对应的第一位置信息(例如第一计数值)。然后,控制电路13可持续分析取样电路12产生的取样信号。响应于取样信号再次符合预设条件,控制电路13可判定已检测到信号S(1)中的第二目标信号。响应于检测到第二目标信号,控制电路13可根据第二取样结果获得第二目标信号的转态点(即第二转态点)所对应的第二位置信息(例如第二计数值)。然后,控制电路13可根据第一计数值与第二计数值来评估信号S(1)与信号CLK之间的频率偏移状态。In an exemplary embodiment, the
在一范例实施例中,控制电路13可判断所述取样信号所对应的取样结果中是否存在连续的多个比特“1”(或“0”)。响应于取样结果中存在连续的多个比特“1”(或“0”),控制电路13可判定取样信号符合预设条件。然而,若取样结果中不存在连续的多个比特“1”(或“0”),则控制电路13可判定所述取样信号不符合预设条件。In an exemplary embodiment, the
在一范例实施例中,所述连续的多个比特“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
图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
在一范例实施例中,信号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
在一范例实施例中,信号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
在一范例实施例中,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
在一范例实施例中,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
图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
模数转换器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-
控制电路33连接至模数转换器32与时钟产生电路31。控制电路33可包括图1的控制电路13。控制电路33可根据信号S(2)获得第一目标信号的转态点(即第一转态点)所对应的位置信息(即第一位置信息)与第二目标信号的转态点(即第二转态点)所对应的位置信息(即第二位置信息)。然后,控制电路33可根据第一位置信息与第二位置信息评估信号S(1)与信号CLK之间的频率偏移状态。然后,控制电路33可根据此频率偏移状态发送信号ADJ,以指示时钟产生电路31调整信号CLK的频率。The
在一范例实施例中,控制电路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
低通滤波器332连接至频率检测器331与相位检测器333。低通滤波器332可根据频率检测器331的检测结果产生信号ADJ以调整信号CLK的频率。The
相位检测器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
在一范例实施例中,在刚开始对信号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
在完成信号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
均衡器34连接至模数转换器32。均衡器34可用以对模数转换器32的输出(即信号S(2))进行补偿。例如,均衡器34可包括前向回馈均衡(Feed Forward Equalization,FFE)均衡器和/或其他类型的均衡器。An
在一范例实施例中,通过依序调整信号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
图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
在一范例实施例中,响应于信号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
在一范例实施例中,在将第一计数值(即第一位置信息)与第二计数值(即第二位置信息)存储于事件存储器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
须注意的是,图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
图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
连接接口单元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
存储器控制电路单元502连接至连接接口单元501与可复写式非易失性存储器模块503。存储器控制电路单元502用以执行以硬件型式或固件型式实作的多个逻辑门或控制指令并且根据主机系统的指令在可复写式非易失性存储器模块503中进行数据的写入、读取与抹除等运作。The memory
可复写式非易失性存储器模块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
可复写式非易失性存储器模块503中的每一个存储单元是以电压(以下亦称为临界电压)的改变来存储一或多个比特。具体来说,每一个存储单元的控制门(control gate)与通道之间有一个电荷捕捉层。通过施予一写入电压至控制门,可以改变电荷补捉层的电子量,进而改变存储单元的临界电压。此改变存储单元的临界电压的操作亦称为“把数据写入至存储单元”或“程序化(programming)存储单元”。随着临界电压的改变,可复写式非易失性存储器模块503中的每一个存储单元具有多个存储状态。通过施予读取电压可以判断一个存储单元是属于哪一个存储状态,由此取得此存储单元所存储的一或多个比特。Each memory cell in the rewritable
在一范例实施例中,可复写式非易失性存储器模块503的存储单元可构成多个实体程序化单元,并且此些实体程序化单元可构成多个实体抹除单元。具体来说,同一条字线上的存储单元可组成一或多个实体程序化单元。若一个存储单元可存储2个以上的比特,则同一条字线上的实体程序化单元可至少可被分类为下实体程序化单元与上实体程序化单元。例如,一存储单元的最低有效比特(Least Significant Bit,LSB)是属于下实体程序化单元,并且一存储单元的最高有效比特(Most Significant Bit,MSB)是属于上实体程序化单元。一般来说,在MLC NAND型快闪存储器中,下实体程序化单元的写入速度会大于上实体程序化单元的写入速度,和/或下实体程序化单元的可靠度是高于上实体程序化单元的可靠度。In an exemplary embodiment, the storage units of the rewritable
在一范例实施例中,实体程序化单元为程序化的最小单元。即,实体程序化单元为写入数据的最小单元。例如,实体程序化单元可为实体页(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
在一范例实施例中,第一信号(即图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
在一范例实施例中,第一目标信号与第二目标信号是用来在此交握阶段中传递有关于存储器存储装置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
在一范例实施例中,在离开所述交握阶段后,第一信号(即图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
图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)
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) |
-
2023
- 2023-03-22 CN CN202310285205.8A patent/CN116301196A/en active Pending
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 |