1. Technical Field
The present invention relates to a test apparatus, a measurement apparatus, and an electric device.
2. Related Art
A conventional technique for testing a device under test, such as a semiconductor device, involves measuring noise included in a signal under measurement output by the device under test. For example, Japanese Patent Application Publication No. 2001-337121 describes techniques of using a time interval analyzer to measure jitter and converting an input signal into a complex analytic signal to measure jitter.
When using a time interval analyzer or the like to measure jitter, however, the measurement cost increases. When using an analytic signal, the computation for the measurement data becomes complicated.
Therefore, it is an object of an aspect of the innovations herein to provide a test apparatus, a measurement apparatus, and an electric device, which are capable of overcoming the above drawbacks accompanying the related art. The above and other objects can be achieved by combinations described in the independent claims. According to a first aspect related to the innovations herein, provided is a test apparatus that judges pass/fail of a signal under measurement, comprising a frequency counter that repeatedly performs a counting step of counting the number of pulses of a reference signal whose period is known and the number of pulses of the signal under measurement in parallel within the same measurement period; an average period calculating section that calculates, for each counting step, an average period of the signal under measurement within the measurement period, based on a period of the reference signal and a ratio between the number of pulses of the signal under measurement and the number of pulses of the reference signal counted within the same measurement period; a noise calculating section that calculates spread of the average periods calculated by the average period calculating section; and a judging section that judges pass/fail of the signal under measurement based on the spread of the average periods.
The summary clause does not necessarily describe all necessary features of the embodiments of the present invention. The present invention may also be a sub-combination of the features described above.
Hereinafter, some embodiments of the present invention will be described. The embodiments do not limit the invention according to the claims, and all the combinations of the features described in the embodiments are not necessarily essential to means provided by aspects of the invention.
The measurement apparatus 300 measures the noise in the signal under measurement. For example, the measurement apparatus 300 may measure jitter in the signal under measurement. The measurement apparatus 300 includes an input section 60, a frequency counter 10, an average period calculating section 20, a noise calculating section 32, and a reference signal generating section 50.
The input section 60 inputs the signal under measurement received from the outside to the frequency counter 10. The reference signal generating section 50 may generate a reference signal with a predetermined frequency and input the reference signal to the frequency counter 10. The reference signal generating section 50 may be an oscillator.
The frequency counter 10 counts in parallel the number of pulses of the signal under measurement and the number of pulses of a reference signal whose period is known, within the same measurement period. The frequency counter 10 performs a plurality of repetitions of this counting step, which involves counting in parallel the number of pulses of the signal under measurement and the reference signal within the same measurement period. The frequency counter 10 may set the measurement period to be a time period in which n pulses of the signal under measurement are counted, where n is a natural number.
The average period calculating section 20 calculates the average period of the signal under measurement in each measurement period, based on the period of the reference signal and a ratio between the number of pulses of the signal under measurement and the number of pulses of the reference signal counted within the same measurement period. The average period Ta of the signal under measurement in each measurement period is expressed as shown below.
Ta=(m×Tr)/n
Here, m is a natural number indicating the number of pulses of the reference signal counted in the measurement period, and Tr indicates the period of the reference signal. The average period calculating section 20 calculates the average period Ta corresponding to the count results, for each repetition of the counting step.
The noise calculating section 32 calculates spread of a plurality of average periods Ta calculated by the average period calculating section 20 for the plurality of counting steps. The spread of the average periods Ta is a statistical value corresponding to the distribution of the average periods Ta, such as a peak-to-peak value, an RMS value, or a standard deviation of the average periods Ta.
The judging section 34 judges pass/fail of the signal under measurement based on the spread of the average periods Ta. The judging section 34 may judge whether the statistical value indicating the spread of the average periods Ta fulfills a predetermined standard.
The average period Ta of the signal under measurement is the sum of (i) the ideal period of the signal under measurement and (ii) a value obtained by dividing the integrated value of the period jitter in the measurement period by the number of pulses n of the signal under measurement. Since the ideal period of the signal under measurement is constant, change in the average period Ta of the signal under measurement corresponds to period jitter.
The integrated value of the period jitter in the measurement period changes according to the relative phase of the jitter with respect to the measurement period. The following describes the example shown in
In this way, the measured jitter value changes according to the relative phase of the signal under measurement with respect to the measurement period, and therefore the frequency counter 10 preferably repeats the counting step, which involves counting the number of pulses of the signal under measurement and the reference signal within the same measurement period, a plurality of times. The average period calculating section 20 then calculates the peak-to-peak value or the like of the average period Ta of the signal under measurement calculated for each counting step.
The measurement period of the frequency counter 10 is preferably set to not be an integer multiple of the jitter period of the signal under measurement, and also to not be equal to one divided by an integer multiple of the jitter period. Generally, the jitter and the measurement period of the frequency counter are not synchronized, but the start timing or the end timing of the measurement period of the frequency counter 10 may be controlled to prevent the measurement period from being constant, thereby preventing synchronization between the jitter and the measurement period. For example, the jitter and the measurement period can be made asynchronous by changing the count value of the number of pulses of the signal under measurement or the reference signal designated for the measurement period. As one example, when the measurement period is a time period in which n pulses of the signal under measurement are counted, the frequency counter 10 may change the value of n.
The jitter can be measured while reducing the effect of jitter on the phase by measuring the jitter of the signal under measurement over a plurality of counting steps. When using the frequency counter 10, the measurement gain of the jitter changes according to the jitter frequency.
However, the top portions and bottom portions of the first five cycles of the sinusoidal jitter cancel each other out, and therefore the measured period jitter is only the top portion of the final wave. The top portion of a wave refers to the portion in which the level of the jitter waveform is positive. The bottom portion of a wave refers to the portion in which the level of the jitter waveform is negative. Therefore, if the integrated value of the example in
As made clear by
When the jitter period is smaller, as shown in
When the jitter period is equal to one divided by an integer multiple of the measurement period, the top wave portions and the bottom wave portions of the jitter in the measurement period completely cancel each other out, and therefore the measurement gain at this frequency is zero. It should be noted that the ridge line, which is the dotted line connecting the peaks in
As shown in
In the band that is greater than or equal to the attenuation start frequency, the gain of the frequency characteristic of the measurement apparatus 300 is attenuated by −20 dB/dec, and therefore the measurement result in this region is attenuated by −40 dB/dec. A value obtained by integrating the frequency characteristic over the frequency axis after the superimposition shown in
As shown in
The noise calculating section 32 may calculate a spectrum of the flicker noise included in the signal under measurement based on the calculated value, such as the peak-to-peak value or the RMS value, indicating the spread of the average period Ta of the signal under measurement. The noise calculating section 32 calculates the spread of the average period Ta for each measurement period value. The noise calculating section 32 may determine the spectrum of the flicker noise based on the spread of the calculated plurality of average periods Ta.
More specifically, the noise calculating section 32 calculates the measurement spectrum of the flicker noise based on each calculated value. The RMS value of the flicker noise on the time axis corresponds to the integrated value of the power spectrum on the frequency axis. More specifically, the RMS value on the time axis can be calculated from the square root of the integrated value of the power spectrum. It is known that the measurement spectrum of the flicker noise is attenuated by −20 dB/dec in the band that is less than or equal to the attenuation start frequency and by −40 dB/dec in the band that is greater than or equal to the attenuation start frequency, and therefore the measurement spectrum of the flicker noise can be calculated from the RMS value of the flicker noise on the time axis.
The attenuation start frequency can be determined by the measurement period of the frequency counter 10. Accordingly, by calculating the power P1 at the base frequency f=0 such that the integrated value of the measurement spectrum becomes a value corresponding to the calculated value S1, the measurement spectrum corresponding to the calculated value Si can be determined. The noise calculating section 32 may calculate the power P1 of the measurement spectrum at the base frequency based on the calculated value S1. The noise calculating section 32 may obtain the spectrum of the flicker noise by calculating the spectrum in which the attenuation is −20 dB/dec from the power P1.
For example, the noise calculating section 32 may calculate the average value Pa of a plurality of powers P1, P2, etc. of a plurality of measurement spectra at the base frequency. The noise calculating section 32 then sets the spectrum of the flicker noise to be the spectrum that is attenuated by −20 dB/dec from the average value Pa. The judging section 34 may judge pass/fail of the signal under measurement based on the spectrum of the flicker noise. For example, the judging section 34 may judge pass/fail of the signal under measurement based on whether the average value Pa described above is within a prescribed range.
As a result of the above process, the flicker noise in the signal under measurement can be analyzed to judge pass/fail of the signal under measurement. In the above example, the noise calculating section 32 determines the spectrum of the flicker noise from the calculated values S1, S2, etc., but as another example, the noise calculating section 32 may determine the spectrum of the flicker noise from a single calculated value.
The noise measured by the measurement apparatus 300 is not limited to the flicker noise. The measurement apparatus 300 may use the above process to measure noise having a spectrum with a known slope in a predetermined low-frequency band. The measurement apparatus 300 may receive the slope of the spectrum in advance from a user or the like. The measurement apparatus 300 may calculate the noise spectrum of a constant power at each frequency, such as white noise.
The predetermined low-frequency band may be set according to the attenuation start frequency. For example, the predetermined low-frequency band may be a band from 0 to a frequency that is 2 to 10 times the attenuation start frequency.
The noise calculating section 32 calculates the peak-to-peak value, RMS value, or the like of the jitter based on the corrected average periods Ta. As a result of this process, the effect of the change over time in the average period Ta of the signal under measurement can be decreased, thereby enabling accurate measurement of the jitter.
The device under test 200 may be a SerDes circuit, and includes a plurality of parallel circuits 202 arranged in parallel, a clock generating section 206 that generates an operation clock, a converting section 204, and an output buffer 208. The converting section 204 outputs a serial signal generated by sequentially selecting parallel signals acquired from the parallel circuits 202, according to an operation clock. The output buffer 208 outputs the serial signal to the outside.
The device control section 40 controls the parallel circuits 202 such that the serial signal output from the converting section 204 becomes a clock signal that alternates between logic H and logic L according to the operation frequency of the converting section 204. For example, the device control section 40 may alternate between fixing a logic value of H and a logic value of L for the logic value output by each parallel circuit 202, according to the order in which the parallel circuits 202 are selected by the converting section 204. For example, the device control section 40 may fix the output of parallel circuits 202 that are even-numbered selections to be logic L and fix the output of parallel circuits 202 that are odd-numbered selections to be logic H.
As a result, the serial signal output by the converting section 204 can be made into a clock signal with a constant period. After the device control section 40 has controlled the output of the parallel circuits 202, the frequency counter 10 measures the serial signal output by the converting section 204. With this control, the jitter caused by the converting section 204, the clock generating section 206, and the like can be measured using the measurement apparatus 300.
The feedback section 214 receives the output signal from the circuit under test 210, which is branched from an output line of the circuit under test 210, and feeds this signal back to the circuit under test 210 as an input signal. The selecting section 212 selects which of an input signal from the outside and the signal from the feedback section 214 is input to the circuit under test 210.
The device control section 40 causes the selecting section 212 to select the signal from the feedback section 214. By feeding back the signal output by the circuit under test 210 into the circuit under test 210 as input, the circuit under test 210 can output an oscillated signal with a prescribed period. After the device control section 40 has controlled the output of the parallel circuits 202, the frequency counter 10 measures the signal output by the converting section 204. With the control described above, a change in the delay amount of the circuit under test 210 can be measured using the measurement apparatus 300.
The measurement apparatus 300 may change the delay setting of the circuit under test 210 and measure the change in the delay amount of the circuit under test 210 for each delay setting. The device under test 200 may include two each of the circuits under test 210, the feedback sections 214, and the selecting sections 212 in parallel, thereby forming two loops. When measuring the change in the delay amount at each delay setting for one of the circuits under test 210, the measurement apparatus 300 can compensate for the effect of the change in temperature or the like over time by measuring the delay amount of the other circuit under test 210 in parallel.
Specifically, the first circuit under test 210 and the second circuit under test 210 receive a power supply voltage from a common power supply. The first selecting section 212 and the second selecting section 212 each receive a signal from the corresponding feedback section 214, and both receive a common input signal. The first feedback section 214 and the second feedback section 214 each feed back, to the corresponding selecting section 212, the signal output by the corresponding circuit under test 210.
The measurement apparatus 300 sequentially sets different delay setting values in the first circuit under test 210. At this time, the measurement apparatus 300 does not change the delay setting value of the second circuit under test 210. For each delay setting value, the measurement apparatus 300 measures the spread of the average period Ta of the oscillated signal output by the first circuit under test 210, i.e. the change in the delay amount of the first circuit under test 210. At this time, the measurement apparatus 300 measures, in parallel, the spread of the average period Ta of the oscillated signal output by the second circuit under test 210. The measurement apparatus 300 may include two frequency counters 10 and two average period calculating sections 20.
Since the delay setting value of the second circuit under test 210 does not change, the overall change of the average period Ta calculated by the average period calculating section 20, with respect to the oscillated signal output by the second circuit under test 210, represents the effect of the temperature change or the like. Therefore, the noise calculating section 32 corrects the average period Ta calculated by the average period calculating section 20 for the oscillated signal output by the first circuit under test 210, by using the average period Ta calculated by the average period calculating section 20 for the oscillated signal output by the second circuit under test 210.
More specifically, the noise calculating section 32 may detect a long-term change in the average period Ta calculated by the average period calculating section 20 for the oscillated signal output by the second circuit under test 210. For example, the noise calculating section 32 may detect a low-frequency component of the change of the average period Ta calculated by the average period calculating section 20. The noise calculating section 32 can compensate for the long-term change over time in the measurement result, by subtracting this low frequency component from the average period Ta calculated by the average period calculating section 20 for the oscillated signal output by the first circuit under test 210.
The functions of the selecting section 212, the feedback section 214, and the device control section 40 may be the same as the functions of the selecting section 212, the feedback section 214, and the device control section 40 described in relation to
The voltage-controlled oscillator 70 receives the voltage generated by the power supply 220 and outputs an oscillated signal with a frequency corresponding to the voltage. The frequency counter 10 measures the oscillated signal output by the voltage-controlled oscillator 70. With this configuration, the power supply voltage change of the power supply 220 can be detected.
The input buffer 230 branches a clock signal input thereto to each of the buffers 232. Each buffer 232 supplies the clock signal received from the input buffer 230 to a corresponding circuit block in the device under test 200. As a result, the same clock can be provided to each circuit block in the device under test 200.
The frequency counter 10 acquires the clock signal output by each buffer 232 outside the device under test 200, and measures these clock signals. The feedback section 214 is provided in parallel with the frequency counter 10, and feeds the clock signal back to the input end of the device under test 200.
The selecting section 212 selects one of an input clock received from the outside and the clock signal fed back from the feedback section 214, and inputs the selected signal to the input buffer 230. The device control section 40 controls the selecting section 212. With this control, a loop is formed that includes a path from the input buffer 230 to a buffer 232, and an oscillated signal can be generated. Therefore, the change in the delay amount of the path in the device under test 200 can be measured. The measurement apparatus 300 may sequentially select each of the buffers 232, and measure the change in the delay amount for each path.
The measurement apparatus 300 may have the same function and configuration as any one of the measurement apparatuses 300 described in relation to
While the embodiments of the present invention have been described, the technical scope of the invention is not limited to the above described embodiments. It is apparent to persons skilled in the art that various alterations and improvements can be added to the above-described embodiments. It is also apparent from the scope of the claims that the embodiments added with such alterations or improvements can be included in the technical scope of the invention.
The operations, procedures, steps, and stages of each process performed by an apparatus, system, program, and method shown in the claims, embodiments, or diagrams can be performed in any order as long as the order is not indicated by “prior to,” “before,” or the like and as long as the output from a previous process is not used in a later process. Even if the process flow is described using phrases such as “first” or “next” in the claims, embodiments, or diagrams, it does not necessarily mean that the process must be performed in this order.
As made clear from the above, the embodiments of the present invention can be used to realize a test apparatus, a measurement apparatus, and an electric device that can easily measure jitter in a signal under measurement.
Number | Date | Country | Kind |
---|---|---|---|
2010-017462 | Jan 2010 | JP | national |