[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102361445B - High precision protocol pulse generator based on digital frequency synthesizer - Google Patents

High precision protocol pulse generator based on digital frequency synthesizer Download PDF

Info

Publication number
CN102361445B
CN102361445B CN201110244475.1A CN201110244475A CN102361445B CN 102361445 B CN102361445 B CN 102361445B CN 201110244475 A CN201110244475 A CN 201110244475A CN 102361445 B CN102361445 B CN 102361445B
Authority
CN
China
Prior art keywords
digital
frequency synthesizer
sign
digital signal
phase information
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.)
Active
Application number
CN201110244475.1A
Other languages
Chinese (zh)
Other versions
CN102361445A (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.)
China Academy of Space Technology CAST
Original Assignee
China Academy of Space Technology CAST
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 China Academy of Space Technology CAST filed Critical China Academy of Space Technology CAST
Priority to CN201110244475.1A priority Critical patent/CN102361445B/en
Publication of CN102361445A publication Critical patent/CN102361445A/en
Application granted granted Critical
Publication of CN102361445B publication Critical patent/CN102361445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

The invention relates to a high-accuracy protocol pulse generator based on a digital frequency synthesizer. The high-accuracy protocol pulse generator comprises the digital frequency synthesizer, an adder and a digital signal output interface, wherein a clock frequency generated by the digital frequency synthesizer is transmitted to the digital signal output interface, and simultaneously phase information corresponding to the clock frequency generated by the digital frequency synthesizer is transmitted to the adder; the adder transmits the phase information corresponding to the clock frequency generated by the digital frequency synthesizer and phase information of an externally input signal to the digital signal output interface after performing an add operation on the phase information corresponding to the clock frequency generated by the digital frequency synthesizer and the phase information of the externally input signal; and the digital signal output interface positions a pulse according to a rising edge and a falling edge of a digital signal to update the signal output. The high-accuracy protocol pulse generator based on the digital frequency synthesizer improves the structure of a conventional digital frequency synthesizer, can singly configure the phase information according to a protocol, can accurately set a clock frequency and advance or delay information relative to a clock for each digital signal, and is less in resource consumption and simple in structure.

Description

基于数字频率合成器的高精度协议脉冲发生器High precision protocol pulse generator based on digital frequency synthesizer

技术领域 technical field

本发明涉及一种协议脉冲发生器,适用于生成具有复杂协议的对频率和相位有高精度要求的同步数字信号。The invention relates to a protocol pulse generator, which is suitable for generating synchronous digital signals with complex protocols requiring high precision in frequency and phase.

背景技术 Background technique

随着集成电路技术的不断发展,芯片间、板间及单机之间的协议也越来越复杂,速度越来越快。为了协议实现及协议测试,需要一种方法实现高频率精度和相位精度的协议脉冲。With the continuous development of integrated circuit technology, the protocols between chips, boards and stand-alone devices are becoming more and more complex and faster. For protocol implementation and protocol testing, a method is needed to realize protocol pulses with high frequency accuracy and phase accuracy.

最基本的数字频率合成器是一个累加器,累加器的宽度及工作频率决定了数字频率合成器产生的频率精度及相位精度。如图1所示,一般的数字频率合成器由频率控制字寄存器、累加寄存器和一个加法器组成,累加寄存器的宽度与时钟频率决定了数字频率合成器产生信号频率的精度。设累加寄存器的宽度为N,频率合成器的时钟频率为f,频率控制字为FCW,那么生成的时钟频率fclk为:The most basic digital frequency synthesizer is an accumulator. The width and operating frequency of the accumulator determine the frequency accuracy and phase accuracy generated by the digital frequency synthesizer. As shown in Figure 1, a general digital frequency synthesizer consists of a frequency control word register, an accumulation register and an adder. The width of the accumulation register and the clock frequency determine the accuracy of the signal frequency generated by the digital frequency synthesizer. Assuming that the width of the accumulation register is N, the clock frequency of the frequency synthesizer is f, and the frequency control word is FCW, then the generated clock frequency f clk is:

ff clkclk == ff ·· FCWFCW 22 NN

协议脉冲一般包含多个数字信号,一般的数字频率合成器只能生成一个频率信号,无法实现复杂的协议。Protocol pulses generally contain multiple digital signals, and general digital frequency synthesizers can only generate one frequency signal, which cannot implement complex protocols.

发明内容 Contents of the invention

本发明的技术解决问题是:克服现有技术的不足,提供了一种具有高频率和相位精度的复杂协议脉冲发生器。The technical solution of the invention is to overcome the deficiencies of the prior art and provide a complex protocol pulse generator with high frequency and phase precision.

本发明的技术解决方案是:基于数字频率合成器的高精度协议脉冲发生器,包括数字频率合成器,还包括R个加法器和一个数字信号输出接口,数字频率合成器生成的时钟频率送至数字信号输出接口,同时与数字频率合成器生成的时钟频率对应的相位信息分别送至R个加法器;R个加法器中,每一个加法器将与数字频率合成器生成的时钟频率对应的相位信息与外部输入的一路信号的相位信息进行加法运算后送至数字信号输出接口;数字信号输出接口对R个加法器的输出最高位进行采样,对于R路信号中的任意一路,数字信号输出接口利用当前时钟周期的最高位sigN_nco与上一时钟周期的最高位sigN_nco_l,生成包含有上升沿和下降沿的数字信号定位脉冲,根据数字信号定位脉冲,数字信号输出接口在相应的上升沿和下降沿将该路外部输入信号包含的相位信息输出;其中数字信号的上升沿sigN_p的确定方法为sigN_nco为1且sigN_nco_l为0,数字信号的下降沿sigN_n的确定方法为sigN_nco为0且sigN_nco_l为1。The technical solution of the present invention is: a high-precision protocol pulse generator based on a digital frequency synthesizer, including a digital frequency synthesizer, also including R adders and a digital signal output interface, and the clock frequency generated by the digital frequency synthesizer is sent to Digital signal output interface, and the phase information corresponding to the clock frequency generated by the digital frequency synthesizer is sent to R adders respectively; among the R adders, each adder will generate the phase information corresponding to the clock frequency generated by the digital frequency synthesizer The information is added to the phase information of an externally input signal and then sent to the digital signal output interface; the digital signal output interface samples the highest output bits of the R adders. For any one of the R signals, the digital signal output interface Use the highest bit sigN_nco of the current clock cycle and the highest bit sigN_nco_l of the previous clock cycle to generate a digital signal positioning pulse including a rising edge and a falling edge. According to the digital signal positioning pulse, the digital signal output interface is on the corresponding rising edge and falling edge Output the phase information contained in the external input signal; the method for determining the rising edge sigN_p of the digital signal is that sigN_nco is 1 and sigN_nco_l is 0, and the method for determining the falling edge sigN_n of the digital signal is that sigN_nco is 0 and sigN_nco_l is 1.

所述的外部输入信号的相位信息比累加寄存器多一位符号位,代表该输入信号的相位为超前还是延时于数字频率合成器生成的时钟频率。The phase information of the external input signal has one sign bit more than that of the accumulating register, which represents whether the phase of the input signal is ahead or delayed with respect to the clock frequency generated by the digital frequency synthesizer.

本发明与现有技术相比的优点在于:本发明改进了传统数字频率合成器的结构,添加了对应各信号的相位加法器,并可以根据协议单独配置相位信息。与传统数字频率合成器相比,只增加了与协议信号数量相等的加法器及寄存器,资源消耗少,结构精简,实现了高精度的协议脉冲发生器。采用本发明可以生成、多信号、具有复杂相位信息的协议脉冲,并且可以精确设定时钟频率及各数字信号相对于时钟的提前或延时信息。Compared with the prior art, the present invention has the advantages that: the present invention improves the structure of the traditional digital frequency synthesizer, adds a phase adder corresponding to each signal, and can separately configure the phase information according to the protocol. Compared with traditional digital frequency synthesizers, only adders and registers equal to the number of protocol signals are added, with less resource consumption and a simplified structure, realizing a high-precision protocol pulse generator. The invention can generate, multi-signal, and protocol pulse with complex phase information, and can accurately set the clock frequency and the advance or delay information of each digital signal relative to the clock.

附图说明 Description of drawings

图1为传统数字频率合成器结构图;Fig. 1 is a structural diagram of a traditional digital frequency synthesizer;

图2为本发明协议脉冲发生器结构图;Fig. 2 is a structural diagram of the protocol pulse generator of the present invention;

图3为协议脉冲发生器内部各信号时序图。Figure 3 is a timing diagram of each signal inside the protocol pulse generator.

具体实施方式 Detailed ways

如图2所示,本发明协议脉冲发生器在传统的数字频率合成器基础上只增加了加法器,可以实现任意信号数量的同步数字信号协议,并且有很高的频率精度及相位精度。As shown in Figure 2, the protocol pulse generator of the present invention only adds an adder on the basis of a traditional digital frequency synthesizer, can realize a synchronous digital signal protocol with any number of signals, and has high frequency accuracy and phase accuracy.

1、使用数字频率合成器精确模拟信号的相位,产生具有精确频率的时钟信号。1. Use a digital frequency synthesizer to accurately phase the analog signal and generate a clock signal with an accurate frequency.

设累加寄存器的宽度为N,频率合成器的时钟频率为f,频率控制字为FCW,那么生成的时钟频率fclk为:Assuming that the width of the accumulation register is N, the clock frequency of the frequency synthesizer is f, and the frequency control word is FCW, then the generated clock frequency f clk is:

ff clkclk == ff ·· FCWFCW 22 NN

为提高生成信号的精度,累加寄存器的宽度N与时钟频率f应尽可能高,但过高的N与f会增加资源消耗和设计难度。数字频率合成器的频率精度为f/2N,时间分辨率为2/f。在实际应用中,根据协议时钟的频率精度要求及其他协议信号的相位精度要求,确定N与f。In order to improve the precision of generated signals, the width N and clock frequency f of the accumulation register should be as high as possible, but too high N and f will increase resource consumption and design difficulty. The digital frequency synthesizer has a frequency accuracy of f/2 N and a time resolution of 2/f. In practical applications, N and f are determined according to the frequency accuracy requirements of the protocol clock and the phase accuracy requirements of other protocol signals.

2、使用数字频率合成器产生的时钟相位信息,与协议中其它信号的相位信息输入相加后,得到其它各信号的相位信息。2. Use the clock phase information generated by the digital frequency synthesizer to add the phase information input of other signals in the protocol to obtain the phase information of other signals.

如图2所示,外部输入包括时钟频率输入(N比特)及相位信息(N+1比特)输入。时钟频率输入为数字频率合成器的频率控制字,由协议的时钟要求确定。其它各相位信息输入为其它各信号相对于时钟相位的差值(根据生成信号的要求确定),为N+1比特,比累加寄存器多一位符号位,代表该信号的相位为超前还是延时于时钟信号。As shown in FIG. 2, the external input includes a clock frequency input (N bits) and a phase information (N+1 bits) input. The clock frequency input is the frequency control word of the digital frequency synthesizer, which is determined by the clock requirement of the agreement. The input of other phase information is the difference between other signals relative to the clock phase (determined according to the requirements of the generated signal), which is N+1 bits, one more sign bit than the accumulation register, representing whether the phase of the signal is advanced or delayed on the clock signal.

使用加法器将累加寄存器的输出与相位信息输入求和后得到需生成信号的相位信息,这里的加法器要根据输入相位信息最高位,对累加器内的相位进行加或减。Use the adder to sum the output of the accumulation register and the phase information input to obtain the phase information of the signal to be generated. The adder here needs to add or subtract the phase in the accumulator according to the highest bit of the input phase information.

使用外部输入的多个相位信息输入和加法器可以产生复杂的带有提前或延时的协议脉冲信号的相位。Multiple phase information inputs and adders for external input can generate complex phases with advanced or delayed protocol pulse signals.

3、根据各信号的相位信息及协议,生成协议信号。3. According to the phase information and protocol of each signal, a protocol signal is generated.

图3为各信号时序图。Figure 3 is a timing diagram of each signal.

使用频率合成器中累加寄存器的最高位作为时钟(nco_clk)向外部输出。该信号即为时钟。数字信号输出接口接收外部协议发生器生成的各信号输入(信号1输入、信号2输入等,图3中为sigN_in),这些信号与协议信号的时钟同步,不带有相位信息。Use the highest bit of the accumulation register in the frequency synthesizer as the clock (nco_clk) to output to the outside. This signal is the clock. The digital signal output interface receives each signal input (signal 1 input, signal 2 input, etc., sigN_in in Figure 3) generated by an external protocol generator. These signals are synchronized with the clock of the protocol signal without phase information.

数字信号输出接口对各信号相位输入最高位进行采样,对于每一路信号,利用当前时钟周期的最高位(sigN_nco)与上一时钟周期(sigN_nco_l)的最高位,生成数字信号的上升沿(sigN_p)和下降沿(sigN_n)定位脉冲,上升沿与下降沿的确定方法如下:The digital signal output interface samples the highest bit of each signal phase input, and for each signal, uses the highest bit of the current clock cycle (sigN_nco) and the highest bit of the previous clock cycle (sigN_nco_l) to generate the rising edge of the digital signal (sigN_p) and falling edge (sigN_n) positioning pulse, the determination method of rising edge and falling edge is as follows:

sigN_p=sigN_nco为1且sigN_nco_l为0,sigN_p = sigN_nco is 1 and sigN_nco_l is 0,

sigN_n=sigN_nco为0且sigN_nco_l为1;sigN_n=sigN_nco is 0 and sigN_nco_l is 1;

根据各信号的上升沿及下降沿定位脉冲,数字信号输出接口在相应的上升沿和下降沿把外部协议发生器的输入更新到信号输出接口(sigN)。According to the rising edge and falling edge positioning pulse of each signal, the digital signal output interface updates the input of the external protocol generator to the signal output interface (sigN) at the corresponding rising edge and falling edge.

本发明说明书中未作详细描述的内容属本领域技术人员的公知技术。The content that is not described in detail in the description of the present invention belongs to the well-known technology of those skilled in the art.

Claims (2)

1.基于数字频率合成器的高精度协议脉冲发生器,包括数字频率合成器,其特征在于:还包括R个加法器和一个数字信号输出接口,R为脉冲发生器的输出信号个数;数字频率合成器生成的时钟频率送至数字信号输出接口,同时与数字频率合成器生成的时钟频率对应的相位信息分别送至R个加法器;R个加法器中,每一个加法器将与数字频率合成器生成的时钟频率对应的相位信息与外部输入的一路信号的相位信息进行加法运算后送至数字信号输出接口;数字信号输出接口对R个加法器的输出最高位进行采样,对于R路信号中的任意一路,数字信号输出接口利用当前时钟周期的最高位sigN_nco与上一时钟周期的最高位sigN_nco_l,生成包含有上升沿和下降沿的数字信号定位脉冲,根据数字信号定位脉冲,数字信号输出接口在相应的上升沿和下降沿将该路外部输入信号包含的相位信息输出;其中数字信号的上升沿sigN_p的确定方法为sigN_nco为1且sigN_nco_l为0,数字信号的下降沿sigN_n的确定方法为sigN_nco为0且sigN_nco_l为1。1. A high-precision protocol pulse generator based on a digital frequency synthesizer, including a digital frequency synthesizer, is characterized in that: it also includes R adders and a digital signal output interface, and R is the output signal number of the pulse generator; The clock frequency generated by the frequency synthesizer is sent to the digital signal output interface, and the phase information corresponding to the clock frequency generated by the digital frequency synthesizer is sent to R adders respectively; among the R adders, each adder will be connected with the digital frequency The phase information corresponding to the clock frequency generated by the synthesizer is added to the phase information of an external input signal and then sent to the digital signal output interface; the digital signal output interface samples the highest output bits of the R adders. For the R signal Any one of the channels, the digital signal output interface uses the highest bit sigN_nco of the current clock cycle and the highest bit sigN_nco_l of the previous clock cycle to generate a digital signal positioning pulse including a rising edge and a falling edge, position the pulse according to the digital signal, and output the digital signal The interface outputs the phase information contained in the external input signal at the corresponding rising and falling edges; the rising edge sigN_p of the digital signal is determined as sigN_nco is 1 and sigN_nco_l is 0, and the falling edge of the digital signal sigN_n is determined as sigN_nco is 0 and sigN_nco_l is 1. 2.根据权利要求1所述的基于数字频率合成器的高精度协议脉冲发生器,其特征在于:所述的外部输入信号的相位信息比数字频率合成器中的累加寄存器多一位符号位,代表该输入信号的相位为超前还是延时于数字频率合成器生成的时钟频率。2. the high-accuracy protocol pulse generator based on digital frequency synthesizer according to claim 1, is characterized in that: the phase information of described external input signal has one sign bit more than the accumulation register in the digital frequency synthesizer, Indicates whether the phase of the input signal is leading or lagging the clock frequency generated by the digital frequency synthesizer.
CN201110244475.1A 2011-08-23 2011-08-23 High precision protocol pulse generator based on digital frequency synthesizer Active CN102361445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110244475.1A CN102361445B (en) 2011-08-23 2011-08-23 High precision protocol pulse generator based on digital frequency synthesizer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110244475.1A CN102361445B (en) 2011-08-23 2011-08-23 High precision protocol pulse generator based on digital frequency synthesizer

Publications (2)

Publication Number Publication Date
CN102361445A CN102361445A (en) 2012-02-22
CN102361445B true CN102361445B (en) 2014-02-19

Family

ID=45586705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110244475.1A Active CN102361445B (en) 2011-08-23 2011-08-23 High precision protocol pulse generator based on digital frequency synthesizer

Country Status (1)

Country Link
CN (1) CN102361445B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873017B (en) * 2012-12-10 2018-09-25 北京普源精电科技有限公司 A kind of device and method improving porch temporal resolution
CN103873052A (en) * 2012-12-12 2014-06-18 普诚科技股份有限公司 Numerically Controlled Oscillator and Digital Phase Locked Loop

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6617936B2 (en) * 2001-02-20 2003-09-09 Velio Communications, Inc. Phase controlled oscillator
CN1900703A (en) * 2005-07-18 2007-01-24 北京海思威科技有限公司 Novel digital spectrum instrument for nuclear magnetic resonance imaging system
CN102006059A (en) * 2010-09-21 2011-04-06 湖北众友科技实业股份有限公司 Sigma delta controlled phase locked loop and calibration circuit and calibration method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6617936B2 (en) * 2001-02-20 2003-09-09 Velio Communications, Inc. Phase controlled oscillator
CN1900703A (en) * 2005-07-18 2007-01-24 北京海思威科技有限公司 Novel digital spectrum instrument for nuclear magnetic resonance imaging system
CN102006059A (en) * 2010-09-21 2011-04-06 湖北众友科技实业股份有限公司 Sigma delta controlled phase locked loop and calibration circuit and calibration method thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BP网络硬件实现的方法研究;王志勇等;《中国宇航学会特种装备专业委员会第十次学术交流会论文集》;20001001;220-223 *
基于TMS320F2812的脉冲发生器设计;李嘉;《中国硕士学位论文全文数据库》;20071231;全文 *
李嘉.基于TMS320F2812的脉冲发生器设计.《中国硕士学位论文全文数据库》.2007,全文.
王志勇等.BP网络硬件实现的方法研究.《中国宇航学会特种装备专业委员会第十次学术交流会论文集》.2000,220-223.

Also Published As

Publication number Publication date
CN102361445A (en) 2012-02-22

Similar Documents

Publication Publication Date Title
CN102495912B (en) Multichannel high-speed data acquisition system with synchronous correction function
CN106533401A (en) DPWM module for synchronous segmentation delay chain based on FPGA
CN105675981B (en) A kind of frequency meter and frequency measurement method based on FPGA
CN107819456B (en) High-precision delay generator based on FPGA carry chain
JP5787849B2 (en) Frequency synthesizer
WO2017124219A1 (en) Fpga-based square-wave generator and square-wave generation method
CN105718404A (en) Square-wave generator and generating method based on FPGA
CN101997524A (en) Method and digital chip for generating multi-path SPWM signals
US20130214826A1 (en) Fully digital method for generating sub clock division and clock waves
CN106597097A (en) High-precision frequency measurement method
TWI768384B (en) Circuit and method for generating pulse output
CN102361445B (en) High precision protocol pulse generator based on digital frequency synthesizer
CN103595522B (en) A kind of Dual-channel digital analog converter synchronization method
CN107395123B (en) A Power-of-2 Frequency Multiplication Method Based on GPS Second Pulse
CN104283561B (en) A kind of asynchronous clock parallel-serial conversion half period output circuit
CN102651685A (en) Signal delay device and method
CN108389225A (en) A kind of TDC implementation methods based on FPGA
CN108540128B (en) Clock frequency dividing circuit and frequency dividing method thereof
CN109656123B (en) High-precision time difference measuring and generating method based on mathematical combination operation
CN104467852B (en) A kind of multi-channel A/D synchronous method based on clock phase shift technology
CN104133409B (en) A kind of symmetry adjustable triangular wave synthesizer
CN107104750B (en) A kind of synchronous method of the signal source based on more DAC parallel organizations
CN102843127A (en) Digital data delaying method for agile signal control
JP2012099921A (en) Circuit and method for data transfer with clock domain crossing
CN101923106B (en) Four-way sinusoidal signal generator

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