A spread spectrum clock signal testing device and method
Through low-pass filtering, mixing and zero-crossing detection technology, the problem of high cost of spread spectrum clock signal test equipment is solved, and a low-cost, high-efficiency test method is realized, which is suitable for chip batch testing and replaces expensive test instruments.
Patent Information
- Application Number
- CN202010097987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-02-17
AI Technical Summary
In the existing technology, spread spectrum clock signal testing equipment is high in cost and difficult to meet the needs of chip batch testing. The testing efficiency is low and cannot meet the different needs of functional and performance testing.
Low-pass filtering, mixing and zero-crossing detection technology are used to filter out high-order harmonics through the low-pass filter. After mixing with the mixer, low-pass filtering is performed to obtain the digital baseband signal, and the waveform parameters are analyzed through the digital detection circuit. , determine whether the test results are within the expected range.
It realizes low-cost spread spectrum clock signal testing, improves test efficiency, and can effectively sample and analyze on FPGA, CPLD, ARM microcontroller and other devices, replacing expensive desktop test instruments, with low hardware cost and fast response speed. .
Smart Images

Figure CN112367078B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of electronic testing, and in particular relates to a spread spectrum clock signal testing device and method. Background Art
[0002] Spread spectrum clock is widely used in engineering projects with electromagnetic compatibility design requirements, such as PCIE 3.0 bus, DDR3 storage and other fields. Figure 1 By frequency modulating the clock signal within a certain frequency range, the signal power is dispersed within a certain frequency domain bandwidth, thereby reducing the peak power of the clock signal in the frequency domain.
[0003] At present, mainstream test instrument manufacturers have test solutions for spread spectrum clocks. For example, Tektronix's DPO7000 series high-performance oscilloscopes integrate DPOJET test software, which can test the modulation period and frequency range parameters of spread spectrum clock signals.
[0004] Although the DPO7000 series oscilloscope has mature technology for measuring spread spectrum clocks, the cost of the instrument is high and cannot meet the needs of chip batch testing. Chip testing needs to be performed under different test function conditions, working voltage conditions, working environment temperature and other conditions, and the test efficiency will directly affect the test cost. Therefore, a low-cost test method is needed to meet the different needs of functional testing and performance testing. Summary of the invention
[0005] In view of this, an object of the present invention is to reduce the cost of chip spread spectrum clock signal testing, improve test efficiency, and facilitate batch testing.
[0006] In order to solve the above technical problems, the present invention provides a spread spectrum clock signal testing method, comprising:
[0007] Step 1, low-pass filtering is performed on the tested spread spectrum clock signal and the reference clock signal respectively to filter out high-order harmonics and retain the fundamental frequency part;
[0008] Step 2, sending the two low-pass filtered signals to the mixer for mixing;
[0009] Step 3, low-pass filtering the mixed signal;
[0010] Step 4, performing zero-crossing detection on the mixed and low-pass filtered signal to obtain a digital baseband signal;
[0011] Step 5: Analyze the digital baseband signal to obtain waveform parameters, compare them with expected waveform parameters, and determine whether the test results are within the expected range.
[0012] Furthermore, the analysis of the digital baseband signal to obtain waveform parameters described in step 5 is specifically as follows: first, the pulse width of the digital baseband signal obtained by zero-crossing detection is analyzed to find the repetition period of the pulse signal with the widest or narrowest time width, that is, the modulation period Tmod; second, based on the frequency relationship between the reference clock signal and the spread spectrum clock signal being tested, the modulation period Tssc of the spread spectrum clock being tested is obtained, Tssc=Tmod; third, the digital baseband signal obtained by zero-crossing detection is analyzed to find the pulse width Tmin of the pulse with the narrowest time width, and obtain the approximate value 1 / Tmin of the maximum frequency offset between the spread spectrum clock and the reference clock.
[0013] The present invention also provides a spread spectrum clock signal testing device, which includes a first low-pass filter, a second low-pass filter, a mixer, a third low-pass filter, a comparator and a digital detection circuit; the first low-pass filter performs low-pass filtering on the spread spectrum clock signal to be tested, and the second low-pass filter performs low-pass filtering on the reference clock signal, the first low-pass filter and the second low-pass filter respectively filter out the higher harmonics of the spread spectrum clock signal to be tested and the reference clock, and retain the baseband part; the first low-pass filter and the second low-pass filter send the low-pass filtered signal to the mixer for mixing, the third low-pass filter performs low-pass filtering on the mixed signal and sends it to the comparator, the comparator performs zero-crossing detection to obtain a digital baseband signal and sends it to the digital detection circuit, the digital detection circuit analyzes the digital baseband signal to obtain waveform parameters, compares them with the expected waveform parameters of the external input digital detection circuit, and determines whether the test result is within the expected range.
[0014] Furthermore, the digital detection circuit includes a pulse width repetition period analysis module, a spread spectrum clock modulation period analysis module, a frequency offset analysis module and a comparison module; the pulse width repetition period analysis module analyzes the pulse width of the digital baseband signal to find the repetition period of the pulse signal with the widest or narrowest time width, that is, the modulation period Tmod; the spread spectrum clock modulation period analysis module obtains the modulation period Tssc of the spread spectrum clock being tested based on the frequency relationship between the reference clock signal and the spread spectrum clock signal being tested, Tssc=Tmod; the spread spectrum clock modulation period analysis module analyzes the digital baseband signal to find the pulse width Tmin of the pulse with the narrowest time width, and obtains the approximate value 1 / Tmin of the maximum frequency offset between the spread spectrum clock and the reference clock.
[0015] Beneficial Effects
[0016] The present invention uses a frequency mixing technology and a zero-crossing detection method of a baseband signal when testing a chip spread spectrum clock signal, thereby obtaining a digital signal with a frequency far lower than the spread spectrum clock, thereby being able to sample and analyze the spread spectrum clocks of various digital devices such as FPGA, CPLD, ARM microcontroller, PowerPC microcontroller, DSP microcontroller, etc., with low hardware cost and fast test response speed, and can replace expensive desktop test instruments and equipment to a certain extent, and has strong feasibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a schematic diagram of spread spectrum clock;
[0018] Figure 2 It is the basic structure of the spread spectrum clock signal testing device of the present invention;
[0019] Figure 3 It is a waveform diagram of the signal processing flow of the spread spectrum clock signal testing device of the present invention;
[0020] Figure 4 is a waveform diagram of a digital baseband signal obtained after zero-crossing detection of the present invention;
[0021] Figure 5 It is a schematic diagram of the spread spectrum signal to be measured in the present invention. DETAILED DESCRIPTION
[0022] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.
[0023] The basic structure of the spread spectrum clock signal testing device of the present invention is as follows: Figure 2 As shown. This solution requires two input clocks, one of which is the spread spectrum clock signal to be tested, and the other is the reference clock signal. The two input clock signals are filtered using low-pass filters, mixed by mixers, and then passed through a low-pass filter. Then, a comparator is used to detect zero crossing of the waveform to obtain a digital baseband signal. Finally, the baseband signal is analyzed based on the digital detection circuit, compared with the expected waveform parameters of the external input, and it is determined whether the test result is within the expected range.
[0024] The frequency of the reference clock signal is generally set to a value close to the frequency of the spread spectrum clock signal being measured. The frequency of the reference clock signal can be less than or equal to the minimum value of the spread spectrum clock signal being measured, or greater than or equal to the maximum value of the spread spectrum clock signal being measured, or between the maximum value and the minimum value of the spread spectrum clock signal being measured. If the difference between the frequency of the reference clock signal and the frequency of the spread spectrum clock signal being measured is too large, the frequency of the clock signal output by the mixer may exceed the operating frequency range supported by the back-end comparator circuit. Therefore, the difference between the frequency of the reference clock signal and the frequency of the spread spectrum signal being measured is determined by the operating frequency range supported by the comparator circuit.
[0025] The measured spread spectrum clock signal is a clock signal output after frequency modulation, and the frequency of the output clock changes periodically between the maximum frequency value and the minimum frequency value; the reference clock signal is a point frequency clock signal with stable frequency. The former is obtained after the first low-pass filter as the RF input signal of the mixer; the latter is used as the local oscillator input signal of the mixer after the second low-pass filter.
[0026] The waveform diagram of the signal processing flow of the spread spectrum clock signal testing device of the present invention is as follows: Figure 3 As shown. First, the two input clock signals are digital signals. The high-order harmonics are filtered out by the low-pass filter, and only the base frequency part is retained. Then, after mixing and low-pass filtering, an analog signal similar to linear frequency modulation is obtained. After zero-crossing detection using a comparator, a digital signal is obtained. In addition, the frequency of the digital signal is much lower than the reference clock signal of the measured spread spectrum clock signal, so it can be easily sampled and parameters such as pulse width can be analyzed.
[0027] On the basis of the above, by analyzing the pulse width of the comparator output signal, we can find the repetition period of the pulse signal with the widest or narrowest time width, that is, the modulation period Tmod, such as Figure 4 As shown. Combining the frequency relationship between the reference clock and the spread spectrum clock, the modulation period Tssc of the spread spectrum clock can be obtained. At the same time, by measuring the minimum pulse width (Tmin) of the comparator output signal, the approximate value of the maximum frequency deviation between the spread spectrum clock and the reference clock can also be obtained.
[0028] Take the upper spread spectrum mode as an example, the explanation is as follows: If the measured spread spectrum clock signal is in the upper spread spectrum mode, the clock frequency after the spread spectrum is higher than the clock frequency before the spread spectrum, such as Figure 5 In this mode, if the reference clock frequency is the same as the clock frequency before spectrum spread, then Figure 4 The obtained modulation period Tmod is the same as the modulation period Tssc of the spread spectrum clock. The maximum frequency deviation Fdev_max of the spread spectrum clock is approximately equal to 1 / Tmin.
[0029] The above are only preferred embodiments of the invention and are not intended to limit the invention. Any modifications, equivalent substitutions, improvements, etc. made within the conceptual principles of the invention should be included in the protection scope of the invention.
Claims
1. A method for testing a spread spectrum clock signal, characterized in that include: Step 1, low-pass filtering is performed on the two signals of the tested spread spectrum clock signal and the reference clock signal respectively to filter out high-order harmonics and retain the fundamental frequency part; Step 2, sending the two low-pass filtered signals to the mixer for mixing; Step 3, low-pass filtering the mixed signal; Step 4, performing zero-crossing detection on the mixed and low-pass filtered signal to obtain a digital baseband signal; Step 5: Analyze the digital baseband signal to obtain waveform parameters, compare them with expected waveform parameters, and determine whether the test results are within the expected range.
2. The spread spectrum clock signal testing method as claimed in claim 1, characterized in that The analysis of the digital baseband signal to obtain waveform parameters described in step 5 is specifically as follows: first, the pulse width of the digital baseband signal obtained by zero-crossing detection is analyzed to find the repetition period of the pulse signal with the widest or narrowest time width, that is, the modulation period Tmod; second, based on the frequency relationship between the reference clock signal and the spread spectrum clock signal being tested, the modulation period Tssc of the spread spectrum clock being tested is obtained, Tssc=Tmod; third, the digital baseband signal obtained by zero-crossing detection is analyzed to find the pulse width Tmin of the pulse with the narrowest time width, and the approximate value 1 / Tmin of the maximum frequency offset between the spread spectrum clock and the reference clock is obtained.
3. A spread spectrum clock signal test device, characterized in that It includes a first low-pass filter, a second low-pass filter, a mixer, a third low-pass filter, a comparator and a digital detection circuit; the first low-pass filter performs low-pass filtering on the tested spread spectrum clock signal, the second low-pass filter performs low-pass filtering on the reference clock signal, the first low-pass filter and the second low-pass filter respectively filter out the higher harmonics of the tested spread spectrum clock signal and the reference clock, and retain the baseband part; the first low-pass filter and the second low-pass filter send the low-pass filtered signals to the mixer for mixing, the third low-pass filter performs low-pass filtering on the mixed signals and sends them to the comparator, the comparator performs zero-crossing detection to obtain a digital baseband signal and sends it to the digital detection circuit, the digital detection circuit analyzes the digital baseband signal to obtain waveform parameters, compares them with the expected waveform parameters of the external input digital detection circuit, and determines whether the test result is within the expected range.
4. The spread spectrum clock signal testing device as claimed in claim 3, characterized in that The digital detection circuit includes a pulse width repetition period analysis module, a spread spectrum clock modulation period analysis module, a frequency offset analysis module and a comparison module; the pulse width repetition period analysis module analyzes the pulse width of the digital baseband signal to find the repetition period of the pulse signal with the widest or narrowest time width, that is, the modulation period Tmod; the spread spectrum clock modulation period analysis module obtains the modulation period Tssc of the spread spectrum clock under test according to the frequency relationship between the reference clock signal and the spread spectrum clock signal under test, Tssc=Tmod; the spread spectrum clock modulation period analysis module analyzes the digital baseband signal to find the pulse width Tmin of the pulse with the narrowest time width, and obtains the approximate value 1 / Tmin of the maximum frequency offset between the spread spectrum clock and the reference clock.
Citation Information
Patent Citations
Spread spectrum clock signal testing device
CN211509036U
