CN105007075A - Method for adjusting frequency and phases of clock - Google Patents

Method for adjusting frequency and phases of clock Download PDF

Info

Publication number
CN105007075A
CN105007075A CN201510390536.3A CN201510390536A CN105007075A CN 105007075 A CN105007075 A CN 105007075A CN 201510390536 A CN201510390536 A CN 201510390536A CN 105007075 A CN105007075 A CN 105007075A
Authority
CN
China
Prior art keywords
frequency
phase
clock
fpga
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510390536.3A
Other languages
Chinese (zh)
Inventor
方学南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipsea Technologies Shenzhen Co Ltd
Original Assignee
Chipsea Technologies Shenzhen Co Ltd
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 Chipsea Technologies Shenzhen Co Ltd filed Critical Chipsea Technologies Shenzhen Co Ltd
Priority to CN201510390536.3A priority Critical patent/CN105007075A/en
Publication of CN105007075A publication Critical patent/CN105007075A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)

Abstract

The invention discloses a method for adjusting the frequency and the phases of a clock. The method comprises the steps that: an upper computer edits a waveform, frequency and phase command set for FPGA output according to the need, and then sends a related operation command to an FPGA processor through a serial port; the FPGA processor analyzes the command after receiving the response of the upper computer; the response of a test chip is waited; and after a response signal is received, the FPGA processor is informed of the related signal, and a test is performed. Compared with conventional methods, the method needs quite smaller NMOS and PMOS areas to achieve a same ESD level. In this way, the circuit area is reduced by reuse of an ESD protector and a driving tube. When the method is used for testing the chip, the frequency and the phases of the clock can be adjusted according to the need, so that the chip test is performed quickly and accurately; the method is only achieved by controlling the flow, the automated test can be performed, the test cost of the chip can be greatly reduced, and test equipment is small in occupied space.

Description

A kind of method for adjusting clock frequency and phase place
Technical field
The invention belongs to the technical field of chip testing, particularly the method for adjustment of clock frequency.
Background technology
In Circuits System, no matter be that picture is applied to the supercomputer of national defence or the little modulus conversion chip to thumbnail, all be unable to do without clock system, and no matter be quartz oscillator, temperature compensated oscillator or voltage controlled crystal oscillator etc., in different temperatures, humidity, under the factors such as electromagnetic interference, its output clock can not accomplish that frequency and phase place are strictly constant, and in practical application Circuits System need can steady operation under circumstances, now just need the clock redundancy of proof scheme system in the lab, a huge system is normally built by countless chip, in order to convenient test, testing equipment business large is at present as Tyke, Agilent and Pu Yuan have the oscilloscope that can produce various frequency signal source, some also support PLC technology, but both support PLC technology, the oscilloscope possessing again more than 100MHZ bandwidth is usually all expensive, large then four or five ten ten thousand, also want at least more than 10,000, expensive.
In addition market also there are some easy signal generators, sinusoidal signal is produced as built circuit by 555 oscillators, by shaping circuit, sinusoidal signal is transformed to square-wave signal again, again triangular wave is become to square-wave signal, so also can generate sine wave, square wave and the triangular signal that can produce characteristic frequency, also simple signal source can be generated additionally by monolithic die IC8038 or the mode such as single-chip microcomputer and AD converter combination, but the simple signal source that these implementation methods generate or bandwidth is little, or can not phase modulation.Test many is generally needed during chip prototype test, to guard against particularity, testing equipment is required to take up space in addition the smaller the better, to facilitate test, so volume is little, bandwidth is high, low price, the programmable signal source equipment of support have large demand in chip testing field.
Summary of the invention
For solving the problem, the object of the present invention is to provide a kind of method for adjusting clock frequency and phase place, the method can adjust clock frequency and phase place as required, can carry out chip testing quickly and accurately, reduces chip testing cost.
Another object of the present invention is to provide a kind of method for adjusting clock frequency and phase place, and the method realizes only by control flow, and except FGPA, do not increase extra hardware, equipment occupation space is little.
Further object of the present invention is to provide a kind of method for adjusting clock frequency and phase place, and the method supports PLC technology, and conveniently debug at a distance, device hardware cost is low in addition, and bandwidth is high, greatly can improve chip testing efficiency.
For achieving the above object, technical scheme of the present invention is as follows.
For adjusting a method for clock frequency and phase place, it is characterized in that the method comprises the steps:
101, host computer is edited as required waveform, frequency and phase command collection that FPGA exports, then by serial ports, associative operation instruction is sent to FPGA processor;
102, after FPGA processor receives host computer response, order is resolved; Wait for the response of chip to be tested;
103, after receiving answer signal, tell FPGA processor corresponding signal, carry out parsing to corresponding data and send to host computer, host computer is analyzed the signal detected and set point, detects clock frequency and whether arrives set point;
104, clock frequency arrives set point, then test.
In 101 described steps, the output frequency of FPGA is produced by 200MHZ clock division, and the work clock of host computer and FPGA is 25MHZ.
Further, described envelope 25MHZ crystal oscillator frequency, IP kernel through FPGA carries out frequency multiplication generation, production method is: the relative crystal oscillator of locking phase is zero, when needs produce characteristic frequency, FPGA processor requires to converse divide ratio according to incoming frequency, and the execution of program modules of FPGA selects frequency division scheme to carry out frequency division according to the value of divide ratio, produces the frequency needed.
Further, in described 103 steps, phase adjusted is included further after carrying out frequency division, phase adjusted carries out phase deviation to signal, so-called phase deviation refer to real-time signal relative to front signal generation phase deviation, described host computer and FPGA do not need to have deposited Wave data in advance, when performing clock phase shift operation, host computer can turn to temporal delay the variable quantity of phase place, reduction formula is as follows: Tdealy=TS/360*phase, in formula, TS is present clock period, and phase is the phase value wanting phase shift.
The understanding of formula is very simple, and when the clock cycle is TS, full width phase place is 360 degree, and therefore the time delay values of the change correspondence of 1 degree occurs phase place is TS/360, needs mobile how many phase places, is just multiplied by corresponding coefficient with phase.When system carries out clock phase shift, before the delay value that phase place converses being added on the clock cycle, the divide ratio made new advances that converts carries out clock division.
Described phase adjusted, just performs new clock division scheme on the half period, after the cycle also by the work of coefficient frequency division scheme before.
Method provided by the present invention is when chip testing, can adjust clock frequency and phase place as required, so that chip testing can be carried out quickly and accurately, realize only by control flow, automatic test can be carried out, can greatly reduce chip testing cost, and testing equipment takes up room little.
And the method supports PLC technology, conveniently debug at a distance, device hardware cost is low in addition, and bandwidth is high, greatly can improve chip testing efficiency.
Accompanying drawing explanation
Fig. 1 is the hardware structure diagram that the present invention implements.
Fig. 2 is the software control flow chart that the present invention implements.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Shown in Fig. 1, for the hardware configuration platform that the present invention realizes, mainly include host computer and fpga chip, wherein, the elementary fpga chip of current altera all has processor IP nuclear NIOSII, during the work of this equipment, NIOSII is as master controller, NIOSII is by serial ports and the intercommunication of host computer Active Tcl software interconnections, Active Tcl is Tcl development environment, Active Tcl comprises many useful expanding packet, Tcl is a kind of very general script, and it almost can explain operation on all platforms.First on host computer ActiveTcl, the waveform, frequency and the phase command collection that need FPGA to export is editted as required during test, then by serial ports, associative operation instruction is sent to processor NIOSII, after processor receives host computer response, order is resolved, tell that FPGA execution of program modules performs associative operation, meanwhile FPGA detection module is waiting for the response of chip to be tested always.After detection module receives answer signal, corresponding signal is told the processor NIOSII of FPGA, NIOSII carries out parsing to corresponding data and sends to host computer, and host computer is analyzed the signal detected and desired value, determines that next step test still terminates test.
Concrete control flow is:
101, host computer is edited as required waveform, frequency and phase command collection that FPGA exports, then by serial ports, associative operation instruction is sent to FPGA processor.
102, after FPGA processor receives host computer response, order is resolved; Wait for the response of chip to be tested.
103, after receiving answer signal, tell FPGA processor corresponding signal, carry out parsing to corresponding data and send to host computer, host computer is analyzed the signal detected and set point, detects clock frequency and whether arrives set point.
104, judge whether to need to carry out phase adjusted, detect phase shift after phase adjusted further and whether reach set point.
105, clock frequency arrives set point, then test.
Application claims possesses generation clock and clock phase offset functions, during concrete enforcement, FPGA output frequency is produced by 200MHZ clock division, the work clock of whole system is 25MHZ, the production method of 200MHZ clock is that 25MHZ crystal oscillator frequency carries out frequency multiplication generation through the IP kernel PLL of FPGA, the relative crystal oscillator of locking phase is zero, when needs produce characteristic frequency, NIOSII requires to converse divide ratio according to incoming frequency, frequency division by odd integers is had in FPGA execution of program modules, even frequency division and fractional frequency division function items, execution of program modules selects optimum frequency division scheme according to the value of divide ratio.
Realizing phase adjusted is important composition part of the present invention, phase adjusted carries out phase deviation to signal, so-called phase deviation refer to real-time signal relative to front signal generation phase deviation, the method of generation phase shift known is at present the time zero changing signal, first depositing Wave data in systems in which, when phase operation message being detected, having conversed delay time value according to phase operation, postpone periodic waveform during the next repetition period and occur starting point, the phase shift operation of clock can be realized.The present invention does not need previously to have deposited Wave data, when performing clock phase offset operation, host computer can turn to temporal delay the variable quantity of phase place, and reduction formula is as follows: Tdealy=TS/360*phase, in formula, TS is present clock period, and phase is the phase value wanting phase shift.The understanding of formula is very simple, and when the clock cycle is TS, full width phase place is 360 degree, and therefore the time delay values of the change correspondence of 1 degree occurs phase place is TS/360, needs mobile how many phase places, is just multiplied by corresponding coefficient with phase.When the present invention carries out clock phase shift, before the delay value that phase place converses being added on the clock cycle, the divide ratio that makes new advances of converting carries out clock division, and upper guarantee of now design just performs new clock division scheme on the half period, after the cycle also work by coefficient frequency division scheme before.
In addition, the system of FPGA own can only produce square wave, also often needs to use triangular wave and sine wave in practical application, at this moment, by integrating circuit, square wave can be become triangular wave, by active filter, triangular wave is converted to sine wave, the signal controlling conversion is provided by FPGA.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1., for adjusting a method for clock frequency and phase place, it is characterized in that the method comprises the steps:
101, host computer is edited as required waveform, frequency and phase command collection that FPGA exports, then by serial ports, associative operation instruction is sent to FPGA processor;
102, after FPGA processor receives host computer response, order is resolved; Wait for the response of chip to be tested;
103, after receiving answer signal, tell FPGA processor corresponding signal, carry out parsing to corresponding data and send to host computer, host computer is analyzed the signal detected and set point, detects clock frequency and whether arrives set point;
104, clock frequency arrives set point, then test.
2. as claimed in claim 1 for adjusting the method for clock frequency and phase place, it is characterized in that, in 101 described steps, the output frequency of FPGA is produced by 200MHZ clock division, the work clock of host computer and FPGA is 25MHZ.
3. as claimed in claim 2 for adjusting the method for clock frequency and phase place, it is characterized in that described envelope 25MHZ crystal oscillator frequency, IP kernel through FPGA carries out frequency multiplication generation, production method is: the relative crystal oscillator of locking phase is zero, when needs produce characteristic frequency, FPGA processor requires to converse divide ratio according to incoming frequency, and the execution of program modules of FPGA selects frequency division scheme to carry out frequency division according to the value of divide ratio, produces the frequency needed.
4. as claimed in claim 3 for adjusting the method for clock frequency and phase place, it is characterized in that in described 103 steps, phase adjusted is included further after carrying out frequency division, phase adjusted carries out phase deviation to signal, so-called phase deviation refer to real-time signal relative to front signal generation phase deviation, when performing clock phase offset operation, host computer can turn to temporal delay the variable quantity of phase place, reduction formula is as follows: Tdealy=TS/360*phase, in formula, TS is present clock period, and phase is the phase value wanting phase shift.
5. as claimed in claim 4 for adjusting the method for clock frequency and phase place, it is characterized in that described phase adjusted, just on the half period, perform new clock division scheme, after the cycle also work by coefficient frequency division scheme before.
CN201510390536.3A 2015-06-30 2015-06-30 Method for adjusting frequency and phases of clock Pending CN105007075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510390536.3A CN105007075A (en) 2015-06-30 2015-06-30 Method for adjusting frequency and phases of clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510390536.3A CN105007075A (en) 2015-06-30 2015-06-30 Method for adjusting frequency and phases of clock

Publications (1)

Publication Number Publication Date
CN105007075A true CN105007075A (en) 2015-10-28

Family

ID=54379617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510390536.3A Pending CN105007075A (en) 2015-06-30 2015-06-30 Method for adjusting frequency and phases of clock

Country Status (1)

Country Link
CN (1) CN105007075A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765164A (en) * 2017-09-28 2018-03-06 国营芜湖机械厂 A kind of circuit board high-frequency signal method of adjustment
CN110690641A (en) * 2019-10-11 2020-01-14 中国船舶重工集团公司第七0七研究所 Reference frequency source device and method for cold atom interferometer laser output control

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020007428A1 (en) * 1998-12-18 2002-01-17 Kendell Alan Chilton Data assembler/disassembler
CN102075166A (en) * 2009-11-20 2011-05-25 王晨 Direct digital frequency synthesis (DDS)-based high-precision arbitrary waveform generator
CN201886122U (en) * 2010-11-19 2011-06-29 中国电子科技集团公司第十四研究所 PXI (PCI extension for instrumentation) bus-based digital testing module
CN102769461A (en) * 2012-07-23 2012-11-07 北京理工大学 Method and system for improving output reliability of direct digital frequency synthesizer (DDS) signal source
CN104316737A (en) * 2014-10-20 2015-01-28 北京工业大学 FPGA-based offset adjustable waveform generation circuit and FPGA-based offset adjustable waveform generation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020007428A1 (en) * 1998-12-18 2002-01-17 Kendell Alan Chilton Data assembler/disassembler
CN102075166A (en) * 2009-11-20 2011-05-25 王晨 Direct digital frequency synthesis (DDS)-based high-precision arbitrary waveform generator
CN201886122U (en) * 2010-11-19 2011-06-29 中国电子科技集团公司第十四研究所 PXI (PCI extension for instrumentation) bus-based digital testing module
CN102769461A (en) * 2012-07-23 2012-11-07 北京理工大学 Method and system for improving output reliability of direct digital frequency synthesizer (DDS) signal source
CN104316737A (en) * 2014-10-20 2015-01-28 北京工业大学 FPGA-based offset adjustable waveform generation circuit and FPGA-based offset adjustable waveform generation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
华国环 等: ""RSDS接口工作频率测试方法研究"", 《仪器仪表学报》 *
方学南: ""基于FPGA的芯片自动测试平台的研究与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107765164A (en) * 2017-09-28 2018-03-06 国营芜湖机械厂 A kind of circuit board high-frequency signal method of adjustment
CN110690641A (en) * 2019-10-11 2020-01-14 中国船舶重工集团公司第七0七研究所 Reference frequency source device and method for cold atom interferometer laser output control

Similar Documents

Publication Publication Date Title
Hartmann et al. Digital current controller for a 1 MHz, 10 kW three-phase VIENNA rectifier
EP3386104B1 (en) Clock duty-cycle calibration and frequency-doubling circuit
CN107402597B (en) Method, device, medium and magnetic resonance equipment for aligning data and clock
CN103580523B (en) Based on the multichannel phase-shift PWM ripple generative circuit of FPGA
US8253450B2 (en) Clock signal frequency dividing circuit and method
CN105391447A (en) Phase interpolation spread spectrum clock generation method
CN103607183A (en) Multi-channel separation function signal generator and signal generating method
CN105007075A (en) Method for adjusting frequency and phases of clock
Zamiri et al. Sub-harmonic oscillations attenuation in hardware-in-the-loop models using the integration oversampling method
CN104460826B (en) The method that MIPI module DSI clocks are matched somebody with somebody again is realized based on FPGA
CN210958338U (en) Three-phase digital phase-locked loop, SVPWM modulator and power grid harmonic current control system based on FPGA chip
US9077408B1 (en) Circuitry and techniques for calculating scaling factors for crest factor reduction
CN112290934B (en) Controllable jitter clock generating device based on Bias-Tee signal synthesis
Fey et al. Development of a modular multilevel converter demonstrator with EtherCAT communication
CN103684362B (en) Multiphase clock frequency eliminator
CN115826674A (en) Implementation method and system of clock signal generator with stepped frequency in millihertz level
CN105116802A (en) An apparatus and method for generating deterministic clock jittering
CN103812473A (en) Arbitrary waveform generator
CN103595373A (en) Nine-component mixed signal generator and generation method of nine-component mixed signal
CN113708764A (en) Multi-chip high-speed DAC synchronization system based on FPGA
Liu et al. Design and implementation of DSP based high-frequency SPWM generator
CN209170328U (en) PWM generative circuit, processing circuit and chip
US9621146B2 (en) Digital current equalization method and power supply module
CN104868912A (en) Double-DA synchronous sampling device
CN111324569A (en) Multi-machine communication synchronization system, multi-machine communication synchronization method and electric appliance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151028