CN105630067A - High-precision clock detecting method based on FPGA - Google Patents

High-precision clock detecting method based on FPGA Download PDF

Info

Publication number
CN105630067A
CN105630067A CN201510994485.5A CN201510994485A CN105630067A CN 105630067 A CN105630067 A CN 105630067A CN 201510994485 A CN201510994485 A CN 201510994485A CN 105630067 A CN105630067 A CN 105630067A
Authority
CN
China
Prior art keywords
clock
event
fpga
clocksignal
signal
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
CN201510994485.5A
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.)
BEIJING HAOHAN DATA INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING HAOHAN DATA INFORMATION TECHNOLOGY 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 BEIJING HAOHAN DATA INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING HAOHAN DATA INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510994485.5A priority Critical patent/CN105630067A/en
Publication of CN105630067A publication Critical patent/CN105630067A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

The invention discloses a high-precision clock detecting method based on an FPGA and relates to a clock detection method. A plurality of clock signals at different phase positions are generated in one clock period, and generating time of measured signals are determined by judging the phase position relation between the measured signals and the clock signals. The time control precision of the 1588 function can be remarkably improved in the FPGA.

Description

A kind of high-precision clock detecting method based on FPGA
Technical field
The present invention relates to a kind of clock detection method, particularly relate to a kind of high-precision clock detecting method based on FPGA.
Background technology
1588 have other tolerance range of nanosecond, and information is short, it is few to occupy bandwidth resources, and comprehensive cost is low, reliability height, and therefore society is actively promoting development and the application of 1588 agreements at present.
At present, 1588 clock solutions based on FPGA mainly contain following feature:
1, local clock direct-detection event clock (message arrives or leaves) is directly used;
2, clock (Timer) adopts simple counter logic to safeguard;
The shortcoming of prior art:
1, the precision detecting clock time (message arrives or leaves) is low, directly accuracy during impact pair;
2, clock adopts simple technology device logic to safeguard, control accuracy is low, and error is big.
Summary of the invention
Because the above-mentioned defect of prior art, technical problem to be solved by this invention is to provide a kind of method of accuracy of detection improving event clock.
For achieving the above object, the present invention provides a kind of high-precision clock detecting method based on FPGA, the different clocksignal of multiple phase place is produced, by judging the phase relationship of measured signal and each clocksignal, it is determined that measured signal time of origin within a clock period;
System master clock produces n phase clock signal, and n is positive integer; The arrival of event clock, represents with a rising edge pulse; The clock input of d type flip flop is to the data input signal of clocksignal as d type flip flop; A system clock cycle is divided into n region by described clocksignal, then judges the generation area of event clock.
Preferably, the generation area of described judgement event clock carries out according to the following steps: when event clock signal arrives, latch is exported each phase clock signal by d type flip flop, exports 4 bits of encoded values; According to decoding mapping table, it is determined that event generation area.
The invention has the beneficial effects as follows: the present invention can significantly improve the time controling precision realizing 1588 functions in FPGA.
Accompanying drawing explanation
Fig. 1 is the structure block diagram of leggy of the present invention detection;
Fig. 2 is the schematic diagram of leggy detection.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described:
As depicted in figs. 1 and 2, a kind of high-precision clock detecting method based on FPGA, it is characterized in that: within a clock period, produce the different clocksignal of multiple phase place, by judging the phase relationship of measured signal and each clocksignal, it is determined that measured signal time of origin;
System master clock produces n phase clock signal, and n is positive integer. In the present embodiment, producing four phase clock signals, phase intervals is 90 degree. The arrival of time-event, represents (representing with the SOF signal rising edge signal of message, this signal is using the clocksignal as d type flip flop) with a rising edge pulse, it will be sent to the input end of clock of d type flip flop; The clocksignal of 4 phase places is as the data input signal of d type flip flop. The clocksignal of four phase places, is divided into 4 regions by a system clock cycle, and owing to the present invention can judge the generation area of event, so the accuracy of event detection will improve four times in theory.
The generation area of described judgement event clock carries out according to the following steps: when event clock signal arrives (SOF), latch is exported each phase clock signal by d type flip flop, exports 4 bits of encoded values to demoder; According to decoding mapping table, it is determined that event generation area. For setting forth the present embodiment, initialization system clock 125MHz (cycle 8ns), from table 1 it can be seen that under not considering the prerequisite that other factors affects, the judgement precision of event time of arrival can bring up to 2ns from 8ns.
Table 1. event decode time mapping table
Below the preferred embodiment of the present invention is described in detail. It is to be understood that the those of ordinary skill of this area just can make many modifications and variations according to the design of the present invention without the need to creative work. Therefore, the technical scheme that all technician in the art can be obtained by logical analysis, reasoning, or a limited experiment under this invention's idea on the basis of existing technology, all should by the determined protection domain of claim book.

Claims (2)

1. the high-precision clock detecting method based on FPGA, it is characterised in that: within a clock period, produce the different clocksignal of multiple phase place, by judging the phase relationship of measured signal and each clocksignal, it is determined that measured signal time of origin;
System master clock produces n phase clock signal, and n is positive integer; The arrival of event clock, represents with a rising edge pulse; The clock input of d type flip flop is to the data input signal of clocksignal as d type flip flop; A system clock cycle is divided into n region by described clocksignal, then judges the generation area of event clock.
2. a kind of high-precision clock detecting method based on FPGA as claimed in claim 1, is characterized in that:
The generation area of described judgement event clock carries out according to the following steps: when event clock signal arrives, latch is exported each phase clock signal by d type flip flop, exports 4 bits of encoded values; According to decoding mapping table, it is determined that event generation area.
CN201510994485.5A 2015-12-25 2015-12-25 High-precision clock detecting method based on FPGA Pending CN105630067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510994485.5A CN105630067A (en) 2015-12-25 2015-12-25 High-precision clock detecting method based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510994485.5A CN105630067A (en) 2015-12-25 2015-12-25 High-precision clock detecting method based on FPGA

Publications (1)

Publication Number Publication Date
CN105630067A true CN105630067A (en) 2016-06-01

Family

ID=56045118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510994485.5A Pending CN105630067A (en) 2015-12-25 2015-12-25 High-precision clock detecting method based on FPGA

Country Status (1)

Country Link
CN (1) CN105630067A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5796682A (en) * 1995-10-30 1998-08-18 Motorola, Inc. Method for measuring time and structure therefor
CN102334038A (en) * 2009-02-27 2012-01-25 古野电气株式会社 Phase determining device and frequency determining device
CN102466748A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Digital oscilloscope with equivalent sampling function, and equivalent sampling method for digital oscilloscope
CN103558753A (en) * 2013-10-30 2014-02-05 福建星网锐捷网络有限公司 High-resolution clock detection method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5796682A (en) * 1995-10-30 1998-08-18 Motorola, Inc. Method for measuring time and structure therefor
CN102334038A (en) * 2009-02-27 2012-01-25 古野电气株式会社 Phase determining device and frequency determining device
CN102466748A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Digital oscilloscope with equivalent sampling function, and equivalent sampling method for digital oscilloscope
CN103558753A (en) * 2013-10-30 2014-02-05 福建星网锐捷网络有限公司 High-resolution clock detection method and device

Similar Documents

Publication Publication Date Title
CN103346988B (en) A kind of FSK digital demodulator
CN109669899B (en) Method for adaptively adjusting serial port communication baud rate and serial port device
TWI325525B (en) Dynamically synchronizing a processor clock with the leading edge of a bus clock
CN105281776A (en) Manchester decoding device capable of carrying out error correction and method thereof
CN103634263A (en) Continuous-phase frequency-shift keying digital demodulation device and demodulation method implemented by same
CN102830247A (en) Method and device for detecting rotation state of rotation part
WO2014182448A3 (en) Synchronous data-link throughput enhancement technique based on data signal duty-cycle and phase modulation/demodulation
CN103558753B (en) A kind of high-resolution clock detection method and device
CN105262489A (en) Time delay circuit and time delay method for differential Manchester decoding
CN105245203A (en) System and method for duty ratio detection employing high precision and low speed clock
CN105045743A (en) Multi-protocol conversion method capable of realizing priority scheduling
CN103997331A (en) High-precision DC code encoding method and system based on FPGA
CN102043090A (en) Measurement system for frequency-shift signal parameter of track circuit
CN105630067A (en) High-precision clock detecting method based on FPGA
GB201211425D0 (en) Data tranfer between clock domains
CN104639176B (en) The asynchronous decoder and method of BMC signals
CN103312307B (en) Clock frequency deviation detection method and device
CN102957424B (en) Groove signal restoring circuit for ISO14443 TypeA agreement
CN204836104U (en) Anti -jamming circuit based on logic time delay locking
CN205584157U (en) Quadrature pulse generates device and motor drive
CN205899288U (en) Positive system is repaiied in time delay of data signal border
CN104133407A (en) Counting device and method for incremental encoder
CN104917497B (en) A kind of anti-jamming circuit that logic-based is delay locked and method
CN106018962A (en) Automatic digital phase demodulation circuit and system with phase difference 0 to 2pi between signals
CN103427803B (en) Based on the method for the filtering burr of synchronous circuit

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: 20160601