CN1399136A - Clock signal frequency verification device and method - Google Patents

Clock signal frequency verification device and method Download PDF

Info

Publication number
CN1399136A
CN1399136A CN 02127705 CN02127705A CN1399136A CN 1399136 A CN1399136 A CN 1399136A CN 02127705 CN02127705 CN 02127705 CN 02127705 A CN02127705 A CN 02127705A CN 1399136 A CN1399136 A CN 1399136A
Authority
CN
China
Prior art keywords
signal
clock signal
frequency
time point
measured
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.)
Granted
Application number
CN 02127705
Other languages
Chinese (zh)
Other versions
CN1171090C (en
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.)
Weisheng Electronics Shenzhen Co ltd
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB021277052A priority Critical patent/CN1171090C/en
Publication of CN1399136A publication Critical patent/CN1399136A/en
Application granted granted Critical
Publication of CN1171090C publication Critical patent/CN1171090C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to a clock signal frequency verification device and a method, which are used for the verification process of a clock signal source. The method comprises the following steps: inputting a clock signal to be measured to the frequency divider; in response to activation of a reset signal, the frequency divider starts to act in response to the triggering of the clock signal to be detected and outputs a double-potential frequency-divided signal to be detected; the comparison detector detects the signal potential of the frequency-divided signal to be detected every a preset time Ts corresponding to the activation of the reference clock signal and the reset signal sent by the reset signal generating source; and when the detected signal to be detected after frequency division from the 1 st time point to the p-q time points is at a first potential and the detected signal potential of the signal to be detected after frequency division at the p +1 th time point is at a second potential, judging that the clock signal source works normally and obtaining a period error range Te of the clock signal to be detected.

Description

时钟信号频率验证装置与方法Clock signal frequency verification device and method

技术领域technical field

本发明涉及一种时钟信号频率验证装置与方法,尤指应用于集成电路测试过程中的时钟信号频率验证装置与方法。The invention relates to a clock signal frequency verification device and method, in particular to a clock signal frequency verification device and method used in the integrated circuit testing process.

背景技术Background technique

在现今的各式电路装置中,时钟信号是协调各元器件操作时所不可或缺的重要信号,因此,在一电路装置制造完成后所进行的一测试验证程序中,必然包括有对产生时钟信号的一时钟信号源所进行的一测试验证动作。请参见图1,其对时钟信号源执行测试验证动作的常用测试装置的方块示意图,其主要由一分频器11与一检测电路12所完成,由于时钟信号源10(通常为一振荡器或是一锁相回路)所产生时钟信号的频率相当高,因此必需经过分频器11的降频处理而形成一低切换频率的测试信号后,方才馈入该检测电路12进行检测。但常用的检测电路12仅具有检测该测试信号是否具有由低电位切换至高电位以及由高电位切换至低电位的电位变化,进而判断出时钟信号源10是否正常动作的功能。In today's various circuit devices, the clock signal is an important signal that is indispensable for coordinating the operation of various components. Therefore, in a test and verification procedure performed after a circuit device is manufactured, it must include the generation of the clock. A test verification action performed by a clock signal source of the signal. Please refer to FIG. 1 , it is a schematic block diagram of a common test device for performing a test verification action on a clock signal source, which is mainly completed by a frequency divider 11 and a detection circuit 12, because the clock signal source 10 (usually an oscillator or The frequency of the clock signal generated by a phase-locked loop) is quite high, so it must be processed by the frequency divider 11 to form a test signal with a low switching frequency before being fed into the detection circuit 12 for detection. However, the commonly used detection circuit 12 only has the function of detecting whether the test signal has a potential change from low potential to high potential and from high potential to low potential, so as to determine whether the clock signal source 10 is operating normally.

然而,当电路的操作速度日益增加时,对于时钟信号源10的要求就不再只是正常动作与否,而是必须验证其频率的准确度。但显然上述的常用手段并无法有效验证时钟信号源10的频率准确度是否合乎需求,However, when the operation speed of the circuit increases day by day, the requirement for the clock signal source 10 is no longer just normal operation or not, but the accuracy of its frequency must be verified. However, it is obvious that the above-mentioned common means cannot effectively verify whether the frequency accuracy of the clock signal source 10 meets the requirements,

发明内容Contents of the invention

本发明的主要目的在于改善常用手段的缺失,进而可同时对时钟信号源是否正常动作以及其频率准确度进行验证。The main purpose of the present invention is to improve the lack of common means, and to simultaneously verify whether the clock signal source operates normally and its frequency accuracy.

本发明公开一种时钟信号频率验证方法,应用于一时钟信号源的验证过程中,其方法包括下列步骤:将该时钟信号源所输出的一待测时钟信号输入至一分频器,该待测时钟信号具有一第一周期T1;对应一重置信号的激活,该分频器开始对应该待测时钟信号的触发而动作,进而输出一双电位的分频后待测信号,该分频后待测信号具有一第二周期T2,而T2/n=T1;对应该重置信号的激活,每隔一预定时间Ts便检测该分频后待测信号的信号电位;以及当从第1个时间点至第p-q个时间点上所检测到的该分频后待测信号处于一第一电位,且于第p+1个时间点上所检测到的该分频后待测信号的信号电位处于一第二电位时,判断该时钟信号源为正常工作且得出该待测时钟信号的周期误差范围Te。The invention discloses a clock signal frequency verification method, which is applied in the verification process of a clock signal source. The method comprises the following steps: input a clock signal to be tested outputted by the clock signal source into a frequency divider, and the clock signal to be tested The test clock signal has a first period T1; corresponding to the activation of a reset signal, the frequency divider starts to act in response to the trigger of the clock signal to be tested, and then outputs a double-potential frequency-divided signal to be tested. The signal to be tested has a second period T2, and T2/n=T1; corresponding to the activation of the reset signal, the signal potential of the signal to be tested after the frequency division is detected every predetermined time Ts; and when starting from the first From the time point to the p-qth time point, the frequency-divided signal to be measured is at a first potential, and the signal potential of the frequency-divided signal to be measured at the p+1th time point is detected When it is at a second potential, it is judged that the clock signal source is working normally and the period error range Te of the clock signal under test is obtained.

根据上述构想,本发明的时钟信号频率验证方法,其中p=(T2/(2Ts)),q=(T1/Ts),Te=(q+(1/2))*Ts/(n/2)。According to above-mentioned design, clock signal frequency verification method of the present invention, wherein p=(T2/(2Ts)), q=(T1/Ts), Te=(q+(1/2))*Ts/(n/2) .

根据上述构想,本发明的时钟信号频率验证方法,其中还包括下列步骤:当持续检测第2p-q个时间点与第2p+1个时间点、第3p-q个时间点与第3p+1个时间点、...以及第mp-q个时间点与第mp+1个时间点上的该分频后待测信号的信号电位,而该时钟信号源都被判断为正常工作时,该待测时钟信号的周期误差范围Te=(q+(1/2))*Ts/(m*n/2)。According to the above idea, the clock signal frequency verification method of the present invention also includes the following steps: when continuously detecting the 2p-q time point and the 2p+1 time point, the 3p-q time point and the 3p+1 time point time point, ... and the signal potential of the frequency-divided signal to be measured at the mp-q time point and the mp+1 time point, and when the clock signal source is judged to be working normally, the The periodic error range Te=(q+(1/2))*Ts/(m*n/2) of the clock signal to be tested.

根据上述构想,本发明的时钟信号频率验证方法,其中该预定时间Ts由一参考时钟信号的上升沿所决定,而该重置信号的变化沿与该参考时钟信号的下降沿对齐,至于该周期误差范围Te=(q+(1/2))*Ts/(m*n/2)。According to the above idea, the clock signal frequency verification method of the present invention, wherein the predetermined time Ts is determined by the rising edge of a reference clock signal, and the change edge of the reset signal is aligned with the falling edge of the reference clock signal, as for the period Error range Te=(q+(1/2))*Ts/(m*n/2).

根据上述构想,本发明的时钟信号频率验证方法,其中当从第1个时间点至第p-q个时间点上所检测到的该分频后待测信号非都处于一第一电位,或于第p+1个时间点上所检测到的该分频后待测信号的信号电位非处于一第二电位时,则判断该时钟信号源为非正常工作。According to the above idea, in the method for verifying the clock signal frequency of the present invention, when the frequency-divided signals detected from the first time point to the p-q time point are not all at a first potential, or at the first When the signal potential of the frequency-divided signal to be detected at p+1 time points is not at a second potential, it is determined that the clock signal source is not working normally.

本发明还公开一种时钟信号频率验证装置,应用于验证一时钟信号源的准确度,其配合一参考时钟信号与重置信号产生源进行动作,参考时钟信号与重置信号产生源产生一参考时钟信号以及一重置信号,且该参考时钟信号具有一预定周期Ts;而该验证装置包括:一分频器,电连接于该时钟信号源与该参考时钟信号与重置信号产生源,其接收该时钟信号源所输出的一待测时钟信号,并对应该重置信号的激活,而开始对应该待测时钟信号的触发而动作,进而输出一双电位的分频后待测信号,其中该待测时钟信号具有一第一周期T1,该分频后待测信号具有一第二周期T2,而T2/n=T1;以及一比较检测器,电连接于该分频器与该参考时钟信号与重置信号产生源,其对应该重置信号的激活与该参考时钟信号的触发,每隔该预定周期Ts便检测该分频后待测信号的信号电位,而当从第1个时间点至第p-q个时间点上所检测到的该分频后待测信号处于一第一电位,且于第p+1个时间点上所检测到的该分频后待测信号的信号电位处于一第二电位时,输出一工作正常信号并可得出该待测时钟信号的周期误差范围Te。The present invention also discloses a clock signal frequency verifying device, which is used to verify the accuracy of a clock signal source. clock signal and a reset signal, and the reference clock signal has a predetermined period Ts; and the verification device includes: a frequency divider, electrically connected to the clock signal source and the reference clock signal and reset signal generation source, which Receive a clock signal to be tested outputted by the clock signal source, and corresponding to the activation of the reset signal, start to act in response to the triggering of the clock signal to be tested, and then output a double-potential frequency-divided signal to be tested, wherein the The clock signal to be tested has a first period T1, the frequency-divided signal to be tested has a second period T2, and T2/n=T1; and a comparison detector, electrically connected to the frequency divider and the reference clock signal and the reset signal generation source, which corresponds to the activation of the reset signal and the triggering of the reference clock signal, detects the signal potential of the signal to be tested after frequency division every predetermined period Ts, and when starting from the first time point The frequency-divided signal to be detected at the p-qth time point is at a first potential, and the signal potential of the frequency-divided signal to be detected at the p+1th time point is at a At the second potential, a normal working signal is output and the cycle error range Te of the clock signal to be tested can be obtained.

根据上述构想,本发明的时钟信号频率验证装置,其中p=(T2/(2Ts)),q=(T1/Ts),Te=(q+(1/2))*Ts/(n/2)。According to the above design, the clock signal frequency verification device of the present invention, wherein p=(T2/(2Ts)), q=(T1/Ts), Te=(q+(1/2))*Ts/(n/2) .

根据上述构想,本发明的时钟信号频率验证装置,其中当检测第2p-q个时间点与第2p+1个时间点、第3p-q个时间点与第3p+1个时间点、...以及第mp-q个时间点与第mp+1个时间点上的该分频后待测信号的信号电位时,该比较检测器持续输出一工作正常信号时,代表该待测时钟信号的周期误差范围Te=(q+(1/2))*Ts/(m*n/2)。According to the above idea, the clock signal frequency verification device of the present invention, when detecting the 2p-q time point and the 2p+1 time point, the 3p-q time point and the 3p+1 time point, .. .And when the signal potential of the frequency-divided signal to be measured at the mp-q time point and the mp+1 time point, when the comparison detector continues to output a normal working signal, it represents the clock signal to be measured Periodic error range Te=(q+(1/2))*Ts/(m*n/2).

根据上述构想,本发明的时钟信号频率验证装置,其中该检测时间点为该参考时钟信号的上升沿,而该重置信号的变化沿与该参考时钟信号的下降沿对齐,至于该周期误差范围Te=(q+(1/2))*Ts/(m*n/2)。According to the above idea, in the clock signal frequency verifying device of the present invention, wherein the detection time point is the rising edge of the reference clock signal, and the change edge of the reset signal is aligned with the falling edge of the reference clock signal, as for the period error range Te=(q+(1/2))*Ts/(m*n/2).

根据上述构想,本发明的时钟信号频率验证装置,其中该分频器、该比较检测器以及该时钟信号源整合于同一芯片上。According to the idea above, in the clock signal frequency verification device of the present invention, the frequency divider, the comparison detector and the clock signal source are integrated on the same chip.

根据上述构想,本发明的时钟信号频率验证装置,其中当从第1个时间点至第p-q个时间点上所检测到的该分频后待测信号非都处于一第一电位,或于第p+1个时间点上所检测到的该分频后待测信号的信号电位非处于一第二电位时,输出一错误信号。According to the above idea, in the clock signal frequency verification device of the present invention, when the frequency-divided signals detected from the first time point to the p-q time point are not all at a first potential, or at the first When the signal potential of the frequency-divided signal to be detected at p+1 time points is not at a second potential, an error signal is output.

根据上述构想,本发明的时钟信号频率验证装置,其中当输出该错误信号,代表该待测时钟信号的周期误差范围Te必大于(1/2)*Ts/(n/2)。According to the above idea, the clock signal frequency verification device of the present invention, when outputting the error signal, means that the cycle error range Te of the clock signal to be tested must be greater than (1/2)*Ts/(n/2).

附图说明Description of drawings

本发明得藉由下列附图及详细说明,俾得一更深入的了解:The present invention can gain a deeper understanding by the following drawings and detailed description:

图1为对时钟信号源执行测试验证动作的常用测试装置的方块示意图。FIG. 1 is a schematic block diagram of a common test device for performing test and verification actions on a clock signal source.

图2为本发明对于时钟信号频率验证装置所发展出的一较佳实施例方块示意图。FIG. 2 is a schematic block diagram of a preferred embodiment of the clock signal frequency verification device developed by the present invention.

图3为对上述技术手段举出一实例进行说明的相关信号波形示意图。FIG. 3 is a schematic diagram of related signal waveforms illustrating an example of the above-mentioned technical means.

本发明附图中所包括的各元器件如下:Each component included in the accompanying drawings of the present invention is as follows:

10--时钟信号源  11--分频器后   12--检测电路10--Clock signal source 11--After the frequency divider 12--Detection circuit

20--时钟信号源  21--分频器     22--比较检测器20--Clock signal source 21--Frequency divider 22--Comparison detector

23--参考时钟信号与重置信号产生源23--Reference clock signal and reset signal generation source

具体实施方式Detailed ways

请参见图2,本发明为对于时钟信号频率验证装置所发展出的一较佳实施例方块示意图,其主要应用于验证时钟信号源20的准确度,该装置主要包括有一分频器21以及一比较检测器22,该分频器21接收该时钟信号源20所输出的一待测时钟信号,并对应一重置信号的激活,而开始对应该待测时钟信号的触发而动作,进而输出一双电位的分频后待测信号,其中该待测时钟信号具有一第一周期T1,该分频后待测信号具有一第二周期T2,而T2/n=T1(n为分频的倍数)。至于该比较检测器22则对应该重置信号的激活与该参考时钟信号的触发,每隔一预定周期Ts便检测该分频后待测信号的信号电位,而当从第1个时间点至第p-q个时间点上所检测到的该分频后待测信号处于一第一电位,且于第p+1个时间点上所检测到的该分频后待测信号的信号电位处于一第二电位时输出一工作正常信号,若检测到的电位不符上述条件,则输出一错误信号,因为该分频后待测信号在一周期中具有一次上升沿与一次下降沿可供判断,因此p可被定义为(T2/(2Ts)),至于q则定义为T1/Ts。至于上述参考时钟信号以及重置信号可由一参考时钟信号与重置信号产生源23所发出。Please refer to FIG. 2 , the present invention is a schematic block diagram of a preferred embodiment of a clock signal frequency verification device, which is mainly used to verify the accuracy of a clock signal source 20, and the device mainly includes a frequency divider 21 and a The comparison detector 22, the frequency divider 21 receives a clock signal to be tested outputted by the clock signal source 20, and corresponds to the activation of a reset signal, and starts to act in response to the trigger of the clock signal to be tested, and then outputs a pair of The signal to be measured after the frequency division of the potential, wherein the clock signal to be measured has a first period T1, the signal to be measured after the frequency division has a second period T2, and T2/n=T1 (n is a multiple of frequency division) . As for the comparison detector 22, corresponding to the activation of the reset signal and the triggering of the reference clock signal, every predetermined cycle Ts detects the signal potential of the signal to be tested after frequency division, and when from the first time point to The frequency-divided signal to be detected at the p-qth time point is at a first potential, and the signal potential of the frequency-divided signal to be detected at the p+1th time point is at a first potential Output a normal working signal at two potentials, if the detected potential does not meet the above conditions, then output an error signal, because the signal to be tested after frequency division has a rising edge and a falling edge in a period for judgment, so p It can be defined as (T2/(2Ts)), and q is defined as T1/Ts. As for the reference clock signal and reset signal mentioned above, a reference clock signal and reset signal generation source 23 can be sent out.

再请参见图3,其为对上述技术手段举出一实例进行说明的相关信号波形示意图,其中参考时钟信号(REFCLK)的预定周期Ts为20纳秒(ns),而重置信号(RESET#)的变化沿与该参考时钟信号的一下降沿对齐。而由于该时钟信号源20所输出的待测时钟信号(CLK)与参考时钟信号并不同步,因此在重置信号(RESET#)变化至高电位后的A时间范围内,待测时钟信号(CLK)都有可能由低电位转变为高电位,而该A时间范围的长度便为该待测时钟信号(CLK)的第一周期T1(本例为40纳秒,恰与预定周期20纳秒成2倍频关系,但实际上并不一定必须为2倍频关系,1倍频关系也可以,其与所能容许的频率误差有关)。此外,该比较检测器22对应该重置信号的激活与该参考时钟信号上升沿的触发,每隔该预定周期Ts(20纳秒)便检测该分频后待测信号的信号电位,而其检测时间点计数值(STROBE NO)如图所示。然本例的分频器21为一9位的分频器(即除以512),使得所输出的分频后待测信号(TESTCLK)的第二周期T2便等于40*512纳秒。因此,在理想状态下,分频后待测信号(TESTCLK)应在B时间范围内发生其于重置信号激活后的第一次上升沿,也就是说,在小于等于第510次的检测时间点所检测到的信号电位都应该是低电位,而大于等于第513次的检测时间点所检测到的信号电位都应该是高电位。至于在B时间范围(40纳秒)内,因为两个电位都有可能,故不列入考虑。另外,在理想状态下,分频后待测信号(TESTCLK)应在C时间范围(40纳秒)内发生其于重置信号激活后的第一次下降沿,也就是说,在小于等于第1022次的检测时间点所检测到的信号电位都应该是高电位,而大于等于第1025次的检测时间点所检测到的信号电位都应该是低电位。至于在C时间范围(40纳秒)内,因为两个电位都有可能,故也不列入考虑。Please refer to FIG. 3 again, which is a schematic diagram of relevant signal waveforms illustrating an example of the above-mentioned technical means, wherein the predetermined period Ts of the reference clock signal (REFCLK) is 20 nanoseconds (ns), and the reset signal (RESET# ) is aligned with a falling edge of the reference clock signal. Since the clock signal to be tested (CLK) output by the clock signal source 20 is not synchronized with the reference clock signal, the clock signal to be tested (CLK) is not synchronized within the time range A after the reset signal (RESET#) changes to high ) may change from a low potential to a high potential, and the length of the time range of A is the first period T1 of the clock signal (CLK) to be tested (40 nanoseconds in this example, which is exactly the same as the predetermined period of 20 nanoseconds) 2 times the frequency relationship, but in fact it does not necessarily have to be 2 times the frequency relationship, 1 times the frequency relationship is also possible, which is related to the frequency error that can be tolerated). In addition, corresponding to the activation of the reset signal and the triggering of the rising edge of the reference clock signal, the comparison detector 22 detects the signal potential of the frequency-divided signal to be measured every predetermined period Ts (20 nanoseconds), and its The detection time point count value (STROBE NO) is shown in the figure. However, the frequency divider 21 in this example is a 9-bit frequency divider (that is, divided by 512), so that the second period T2 of the output signal to be tested (TESTCLK) after frequency division is equal to 40*512 nanoseconds. Therefore, in an ideal state, the signal to be tested after frequency division (TESTCLK) should have its first rising edge after the activation of the reset signal within the B time range, that is, at the detection time less than or equal to the 510th time The signal potentials detected at all points should be low potentials, and the signal potentials detected at the detection time point greater than or equal to the 513th time should be high potentials. As for the B time range (40 nanoseconds), since both potentials are possible, they are not taken into consideration. In addition, in an ideal state, the signal to be tested (TESTCLK) after frequency division should have its first falling edge after the activation of the reset signal within the C time range (40 nanoseconds), that is, at less than or equal to the first falling edge The signal potentials detected at the 1022th detection time point should all be high potentials, and the signal potentials detected at the 1025th detection time point or greater should be low potentials. As for the C time range (40 nanoseconds), since both potentials are possible, they are not considered.

综上所述,当本例中的该时钟信号源20所输出的待测时钟信号(CLK)的频率为理想中25Mhz且维持一定,上述测试结果必然成立而使比较检测器22持续输出一工作正常信号。但是当该时钟信号源20所输出的待测时钟信号(CLK)的频率F略大于25Mhz但仍维持一定时,分频后待测信号(TESTCLK)的变化沿将向波形图的左方移动。考虑一极端状态,当分频后待测信号(TESTCLK)于产生m个变化沿且其变化沿位置由最右边移动至最左边(如图中的D箭头所示,共50纳秒),如此便可推算出其周期应为40-50/(m*512/2)纳秒,而频率F则为其倒数。如此一来,只要待测时钟信号(CLK)的实际频率略大于上述的频率F,比较检测器22于其第m个变化沿时必然会输出一错误信号。再考虑另一极端状态,当分频后待测信号(TESTCLK)于产生m个变化沿且其变化沿位置由左边移动至最左边(如图中的E箭头所示,共10纳秒)时,如此便可推算出其周期应为40-10/(m*512/2)纳秒,而频率F则为其倒数。如此一来,只要待测时钟信号(CLK)的实际频率略小于上述的频率F,比较检测器22于其第m个变化沿时必然仍输出一工作正常信号。相同地,对一个频率略小于25Mhz但仍维持一定的待测时钟信号(CLK),其分析过程与上述并无太大不同,仅为变化沿位置移动方向相反而已(如图中的F箭头与G箭头所示)。To sum up, when the frequency of the clock signal (CLK) to be tested output by the clock signal source 20 in this example is ideally 25Mhz and maintained constant, the above test result must be established and the comparison detector 22 will continue to output a working normal signal. But when the frequency F of the clock signal to be tested (CLK) output by the clock signal source 20 is slightly greater than 25Mhz but still remains constant, the change edge of the signal to be tested (TESTCLK) after frequency division will move to the left of the waveform diagram. Consider an extreme state, when the signal to be tested (TESTCLK) generates m change edges after frequency division and its change edge position moves from the rightmost to the leftmost (as shown by the D arrow in the figure, a total of 50 nanoseconds), so It can be calculated that its period should be 40-50/(m*512/2) nanoseconds, and the frequency F is its reciprocal. In this way, as long as the actual frequency of the clock signal (CLK) to be tested is slightly greater than the above-mentioned frequency F, the comparison detector 22 will inevitably output an error signal at its mth change edge. Consider another extreme state, when the signal to be tested (TESTCLK) after frequency division generates m change edges and its change edge position moves from the left to the leftmost (as shown by the E arrow in the figure, a total of 10 nanoseconds) , so it can be deduced that its period should be 40-10/(m*512/2) nanoseconds, and the frequency F is its reciprocal. In this way, as long as the actual frequency of the clock signal (CLK) to be tested is slightly lower than the above-mentioned frequency F, the comparison detector 22 must still output a normal working signal at its mth change edge. Similarly, for a clock signal to be tested (CLK) whose frequency is slightly less than 25Mhz but still maintains a certain value, the analysis process is not much different from the above, except that the change moves in the opposite direction along the position (the F arrow in the figure and the G arrows).

根据上述分析进行归纳而得出如下公式:Based on the above analysis, the following formula can be obtained:

绝对错误频率:1/(T1±(q+(1/2))*Ts/(m*n/2))Absolute error frequency: 1/(T1±(q+(1/2))*Ts/(m*n/2))

绝对正确频率范围:1/(T1±(1/2)*Ts/(m*n/2))Absolutely correct frequency range: 1/(T1±(1/2)*Ts/(m*n/2))

而以上述数据(T1=40纳秒、Ts=20纳秒、而q=T1/Ts=2至于n=512)为例且m=4时,其绝对错误频率为25MHz±1222ppm,而其绝对正确频率为25MHz±244ppm,其中ppm为百万分之一。意即,当比较检测器22在经过分频后待测信号(TESTCLK)的4个变化沿后仍然输出工作正常信号时,便可推论出该待测时钟信号(CLK)的频率F至少在25MHz±1222ppm的范围中。And taking the above data (T1=40 nanoseconds, Ts=20 nanoseconds, and q=T1/Ts=2 to n=512) as an example and when m=4, its absolute error frequency is 25MHz±1222ppm, and its absolute The correct frequency is 25MHz±244ppm, where ppm is one millionth. That is, when the comparison detector 22 still outputs a normal working signal after the 4 changing edges of the signal to be tested (TESTCLK) after frequency division, it can be deduced that the frequency F of the clock signal to be tested (CLK) is at least 25MHz In the range of ±1222ppm.

而在某些情况下,设计者对于时钟信号频率的精确度不需要那么高,因此可忽略更多的检测时间点,意即容许分频后待测信号(TESTCLK)变化沿的位置更宽。以上述为例,若前后各放宽一个检测时间点,则其错误频率可由25MHz±1222ppm放大至25MHz±1706ppm(公式变为1/(T1±(1+q+(1/2))*Ts/(m*n/2)))。In some cases, the designer does not need the high accuracy of the clock signal frequency, so more detection time points can be ignored, which means that the position of the change edge of the signal to be tested (TESTCLK) after frequency division is allowed to be wider. Taking the above as an example, if one detection time point is relaxed before and after, the error frequency can be amplified from 25MHz±1222ppm to 25MHz±1706ppm (the formula becomes 1/(T1±(1+q+(1/2))*Ts/( m*n/2))).

而基于重置信号、参考时钟信号与待测时钟信号的相对关系,可有两种方式来实现该比较检测器22。第一种方式,以缓存器-晶体管阶层(RTL)的语法来描述该比较检测器22,并使用逻辑合成工具来转换成实际电路,此方法的优点是将此实际电路嵌入待测集成电路中,使得待测集成电路能自我检测出错误。而为能提高所测得频率误差的精确度,可将观察该分频后待测信号(TESTCLK)产生变化沿的个数增加,于本例中m=4,也可增加成m=5、6、..8等,但在提升所测得频率误差的精确度的同时,也相对增加硬件的复杂程度,而使成本也随之增加。Based on the relative relationship between the reset signal, the reference clock signal and the clock signal to be tested, there are two ways to implement the comparison detector 22 . In the first way, the comparison detector 22 is described in register-transistor-level (RTL) syntax and converted into an actual circuit using a logic synthesis tool. The advantage of this method is that the actual circuit is embedded in the integrated circuit to be tested , so that the integrated circuit under test can detect errors by itself. And in order to improve the accuracy of the frequency error measured, the number of changing edges of the signal to be tested (TESTCLK) after observing the frequency division can be observed to increase, in this example m=4, also can be increased to m=5, 6, ..8, etc., but while improving the accuracy of the measured frequency error, the complexity of the hardware is relatively increased, and the cost is also increased accordingly.

至于第二种方式,其直接以测试机台来取代该比较检测器22,此方式需事先准备正确的分频后待测信号(TESTCLK)的测试向量(test vector),而向量值为每个检测时间点上该分频后待测信号(TESTCLK)的理想值。如此一来,仅需将分频器21输出的实际分频后待测信号(TESTCLK)送至测试机台,并将测试向量以参考时钟信号为动作基准而送至测试机台,由测试机台来比较分频器21输出的实际分频后待测信号与理想值间的异同,进而达成频率验证的目的。As for the second method, it directly replaces the comparison detector 22 with a test machine. This method needs to prepare in advance the correct test vector (test vector) of the signal to be tested (TESTCLK) after frequency division, and the vector value is each The ideal value of the signal to be tested (TESTCLK) after the frequency division at the detection time point. In this way, it is only necessary to send the actual frequency-divided signal (TESTCLK) to be tested (TESTCLK) output by the frequency divider 21 to the test machine, and send the test vector to the test machine with the reference clock signal as the action reference, and the test machine The platform compares the similarities and differences between the actual frequency-divided signal to be tested output by the frequency divider 21 and the ideal value, and then achieves the purpose of frequency verification.

因此,本发明除了可测出时钟信号源是否正常动作之外,更可有效验证时钟信号源的频率准确度是否合乎需求,进而改善常用手段的缺失,进而达成发展本发明的主要目的。Therefore, in addition to detecting whether the clock signal source is operating normally, the present invention can also effectively verify whether the frequency accuracy of the clock signal source meets the requirements, thereby improving the lack of common means, and achieving the main purpose of the present invention.

Claims (10)

1. a clock signal frequency verifying method is applied to it is characterized in that in the proof procedure of a clock signal source that this method comprises the following steps:
The clock signal to be measured that this signal source of clock is exported inputs to a frequency divider, and this clock signal to be measured has a period 1 T1;
The activation of a corresponding reset signal, this frequency divider begin triggering that should clock signal to be measured is moved, and then export measured signal behind the frequency division of a bipotential, behind this frequency division measured signal have one second round T2, and T2/n=T1;
To activation that should reset signal, the signal potential of measured signal after a schedule time Ts detects this frequency division; And
Measured signal is in one first current potential behind detected this frequency division from the 1st time point to a p-q time point, and when the signal potential of measured signal is in one second current potential behind detected this frequency division on p+1 time point, judge that this signal source of clock is operate as normal and the circular error scope Te that draws this clock signal to be measured.
2. clock signal frequency verifying method as claimed in claim 1 is characterized in that, p=(T2/ (2Ts)), q=(T1/Ts), Te=(q+ (1/2)) * Ts/ (n/2).
3. clock signal frequency verifying method as claimed in claim 1 is characterized in that, also comprises the following steps:
The signal potential of measured signal behind this frequency division that continue to detect on 2p-q time point and 2p+1 time point, a 3p-q time point and 3p+1 time point and mp-q time point and mp+1 the time point, and this signal source of clock is when all being judged as operate as normal, the circular error scope Te=of this clock signal to be measured (q+ (1/2)) * Ts/ (m*n/2).
4. clock signal frequency verifying method as claimed in claim 3, it is characterized in that, this schedule time, Ts was determined by the rising edge of a reference clock signal, and the variation of this reset signal is along aliging with the negative edge of this reference clock signal, as for this circular error scope Te=(q+ (1/2)) * Ts/ (m*n/2).
5. clock signal frequency verifying method as claimed in claim 1, it is characterized in that, non-this first current potential that all is in of measured signal behind detected this frequency division from the 1st time point to a p-q time point, or the signal potential of measured signal is non-behind detected this frequency division on p+1 time point when being in this second current potential, judges that then this signal source of clock is a non-normal working.
6. clock signal frequency verifying device, be applied to verify the accuracy of a clock signal source, it cooperates a reference clock signal and reset signal generation source to move, reference clock signal and reset signal generation source produce a reference clock signal and a reset signal, and this reference clock signal has a predetermined period Ts; It is characterized in that this demo plant comprises:
One frequency divider, be electrically connected on this signal source of clock and this reference clock signal and reset signal and produce the source, it receives the clock signal to be measured that this signal source of clock is exported, and to activation that should reset signal, and begin triggering that should clock signal to be measured and move, and then export measured signal behind the frequency division of a bipotential, wherein this clock signal to be measured has a period 1 T1, behind this frequency division measured signal have one second round T2, and T2/n=T1; And
One compares detecting device, be electrically connected on this frequency divider and this reference clock signal and reset signal and produce the source, it is to the activation that should reset signal and the triggering of this reference clock signal, the signal potential of measured signal after this predetermined period Ts just detects this frequency division, and measured signal is in one first current potential behind detected this frequency division from the 1st time point to a p-q time point, and when the signal potential of measured signal is in one second current potential behind detected this frequency division on p+1 time point, export the circular error scope Te that a signal working properly also can draw this clock signal to be measured.
7. clock signal frequency verifying device as claimed in claim 6 is characterized in that, p=(T2/ (2Ts)), q=(T1/Ts), Te=(q+ (1/2)) * Ts/ (n/2).
8. clock signal frequency verifying device as claimed in claim 7, it is characterized in that, when detect 2p-q time point and 2p+1 time point, a 3p-q time point and 3p+1 time point ... and behind this frequency division on mp-q time point and mp+1 the time point during signal potential of measured signal, this represents circular error scope Te=(q+ (1/2)) the * Ts/ (m*n/2) of this clock signal to be measured when relatively detecting device continues output one signal working properly.
9. clock signal frequency verifying device as claimed in claim 8, it is characterized in that, put this detection time and be the rising edge of this reference clock signal, and the variation of this reset signal is along aliging with the negative edge of this reference clock signal, as for this circular error scope Te=(q+ (1/2)) * Ts/ (m*n/2).
10. clock signal frequency verifying device as claimed in claim 6 is characterized in that, this frequency divider, this comparison detecting device and this signal source of clock are integrated on the same chip.
CNB021277052A 2002-08-08 2002-08-08 clock signal frequency verification device and method Expired - Lifetime CN1171090C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021277052A CN1171090C (en) 2002-08-08 2002-08-08 clock signal frequency verification device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021277052A CN1171090C (en) 2002-08-08 2002-08-08 clock signal frequency verification device and method

Publications (2)

Publication Number Publication Date
CN1399136A true CN1399136A (en) 2003-02-26
CN1171090C CN1171090C (en) 2004-10-13

Family

ID=4745823

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021277052A Expired - Lifetime CN1171090C (en) 2002-08-08 2002-08-08 clock signal frequency verification device and method

Country Status (1)

Country Link
CN (1) CN1171090C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100362353C (en) * 2003-12-24 2008-01-16 华为技术有限公司 Clock signal amplitude detecting method and circuit
CN102692563A (en) * 2012-05-18 2012-09-26 大唐微电子技术有限公司 Clock frequency detector
CN105182067A (en) * 2015-09-30 2015-12-23 上海大学 SOC frequency testing method
CN106160883A (en) * 2015-03-27 2016-11-23 江苏艾科半导体有限公司 A kind of RF transceiver Auto-Test System
CN106788420A (en) * 2016-11-30 2017-05-31 上海顺久电子科技有限公司 A kind of signal frequency detection method, device and signal frequency controller
CN112448717A (en) * 2019-08-27 2021-03-05 西门子(深圳)磁共振有限公司 Clock generation device and method for magnetic resonance wireless coil and wireless coil

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100362353C (en) * 2003-12-24 2008-01-16 华为技术有限公司 Clock signal amplitude detecting method and circuit
CN102692563A (en) * 2012-05-18 2012-09-26 大唐微电子技术有限公司 Clock frequency detector
CN102692563B (en) * 2012-05-18 2015-06-17 大唐微电子技术有限公司 Clock frequency detector
CN106160883A (en) * 2015-03-27 2016-11-23 江苏艾科半导体有限公司 A kind of RF transceiver Auto-Test System
CN105182067A (en) * 2015-09-30 2015-12-23 上海大学 SOC frequency testing method
CN105182067B (en) * 2015-09-30 2018-03-06 上海大学 SOC frequency test method
CN106788420A (en) * 2016-11-30 2017-05-31 上海顺久电子科技有限公司 A kind of signal frequency detection method, device and signal frequency controller
CN106788420B (en) * 2016-11-30 2020-09-22 上海顺久电子科技有限公司 Signal frequency detection method and device and signal frequency controller
CN112448717A (en) * 2019-08-27 2021-03-05 西门子(深圳)磁共振有限公司 Clock generation device and method for magnetic resonance wireless coil and wireless coil

Also Published As

Publication number Publication date
CN1171090C (en) 2004-10-13

Similar Documents

Publication Publication Date Title
US6661266B1 (en) All digital built-in self-test circuit for phase-locked loops
CN1938788A (en) Test apparatus, phase adjusting method and memory controller
US20040128601A1 (en) Arrangements for self-measurement of I/O specifications
TWI391692B (en) Test device, test method, measurement device, and measurement method
US8010933B2 (en) Source synchronous timing extraction, cyclization and sampling
JP3625400B2 (en) Test circuit for variable delay element
US7543202B2 (en) Test apparatus, adjustment apparatus, adjustment method and adjustment program
US7174279B2 (en) Test system with differential signal measurement
CN104899165A (en) Method and device for performing storage interface control on electronic device
US7536617B2 (en) Programmable in-situ delay fault test clock generator
CN1399136A (en) Clock signal frequency verification device and method
US7949922B2 (en) Test apparatus, shift amount measuring apparatus, shift amount measuring method and diagnostic method
US8006154B2 (en) Semiconductor integrated circuit and method for testing semiconductor integrated circuit
JP3413342B2 (en) Jitter measurement method and semiconductor test apparatus
US7363568B2 (en) System and method for testing differential signal crossover using undersampling
JP2002006003A (en) All digital built-in self-inspection circuit for phase lock loop and inspecting method
US6898741B2 (en) Arrangements for self-measurement of I/O timing
US7788573B2 (en) Fault detection method, test circuit and semiconductor device
EP1746428A1 (en) Timing generator and semiconductor testing apparatus
CN101206236A (en) Phase difference detection device and phase detection method thereof
US6798186B2 (en) Physical linearity test for integrated circuit delay lines
JP5225925B2 (en) ADJUSTMENT DEVICE, ADJUSTMENT METHOD, AND TEST DEVICE
CN1912644A (en) Semiconductor integrated circuit
EP1634089A1 (en) Delay-fault testing method, related system and circuit
US20040155642A1 (en) Method and device for verifying frequency of clock signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: WEISHENG ELECTRONIC( SHENZHEN ) CO., LTD.

Free format text: FORMER OWNER: WEISHENG ELECTRONICS CO., LTD.

Effective date: 20090724

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090724

Address after: A Fiyta building, South Guangdong city of Shenzhen province 18

Patentee after: Weisheng Electronics (Shenzhen) Co.,Ltd.

Address before: Taipei County of Taiwan Province

Patentee before: VIA TECHNOLOGIES, Inc.

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20041013