FPGA-based multi-channel signal generator waveform synchronization method and system

文档序号:1598504 发布日期:2020-01-07 浏览:38次 中文

阅读说明:本技术 一种基于fpga多通道信号发生器波形同步方法及系统 (FPGA-based multi-channel signal generator waveform synchronization method and system ) 是由 张孝飞 赵素梅 刘强 于 2019-09-24 设计创作,主要内容包括:本发明涉及信号发生器输出波形同步领域,具体提供了一种基于FPGA多通道信号发生器波形同步方法及系统。与现有技术相比,本发明在在FPGA内部设置以下三部分,a、例化一个带DMA的PCIE IP核,b、在FPGA内部搭建一个相位校准模块,经过比较器输入给FPGA的信号通过相位校准模块进行粗调的,c、搭建一个DA输出波形控制的DA控制输出模块;将带PCIE接口的多通道信号发生器插入上位机中,由上位机发送粗调控制命令和微调控制命令,利用粗调和微调命令来使多通道信号发生器输出波形同步,在信号发生器输出波形同步领域具有良好的推广价值。(The invention relates to the field of output waveform synchronization of signal generators, and particularly provides a waveform synchronization method and system of a multi-channel signal generator based on an FPGA (field programmable gate array). Compared with the prior art, the method comprises the following three parts of a, instantiating a PCIE IP core with DMA (direct memory access), b, building a phase calibration module in the FPGA, roughly adjusting signals input to the FPGA through a comparator through the phase calibration module, and c, building a DA control output module for controlling DA output waveforms; the multichannel signal generator with the PCIE interface is inserted into an upper computer, a coarse adjustment control command and a fine adjustment control command are sent by the upper computer, the output waveforms of the multichannel signal generator are synchronized by the coarse adjustment command and the fine adjustment command, and the multichannel signal generator has good popularization value in the field of synchronization of the output waveforms of the signal generator.)

1. A waveform synchronization method of a multi-channel signal generator based on an FPGA is characterized in that: b, building a phase calibration module in the FPGA, roughly adjusting a signal input to the FPGA through a comparator through the phase calibration module, and c, building a DA control output module for controlling DA output waveforms;

inserting a multi-channel signal generator with a PCIE interface into an upper computer, sending a coarse adjustment control command to a phase calibration module through the upper computer, and automatically adjusting the phase calibration module by checking output waveform data, wherein the adjustment precision is within 1 ns;

when the checked and output waveform needs to be fine-tuned, the wiring delay of the DA channel of the output module at ps level is controlled through the DA, the modulation parameters are sent repeatedly, and the waveform data of the checked multi-channel reaches the synchronization requirement.

2. The FPGA-based multi-channel signal generator waveform synchronization method of claim 1, characterized in that: when fine tuning is needed, bus delay adjustment is carried out by adjusting the length of a bus of a corresponding data signal of an IP core of the High Speed SelectIO in the DA control output module, the delay adjustment range of the IP core of the High Speed SelectIO is 0-1250ps, and ps-level configuration is achieved.

3. The FPGA-based multi-channel signal generator waveform synchronization method of claim 1 or 2, characterized in that: and the PCIE IP core with the DMA is responsible for interacting data and commands with an upper computer and communicating with the phase calibration module and the DA control output module through an AXI bus.

4. The FPGA-based multi-channel signal generator waveform synchronization method of claim 3, characterized in that: the AXI bus includes an AXI Stream interface for data transfer and an AXI Lite interface for command transfer.

5. The FPGA-based multi-channel signal generator waveform synchronization method of claim 3, characterized in that: the phase calibration module converts the signals passing through the comparator into parallel data by using internal Iserdes, compares the parallel data converted by each channel, and delays the output signals of the DA particles according to the comparison result if the parallel data are different, so as to perform phase adjustment.

6. The FPGA-based multi-channel signal generator waveform synchronization method of claim 4, characterized in that: the DA control output module introduces waveform data to be sent by a multi-channel DA from an upper computer by using an AXI Stream interface, and the AXI Lite interface receives a control command from the upper computer, wherein the control command comprises a register connected with a DA chip behind the DA control output module and a control command for fine-tuning ps-level delay by using high speed selected IO.

7. The utility model provides a based on FPGA multichannel signal generator waveform synchronization system which characterized in that: the PFGA comprises an upper computer, a PCIE IP core with DMA, a DA control output module, a phase calibration module, a DA chip and a comparator, wherein the PCIE IP core is arranged on the PFGA; the upper computer is connected with a PCIE IP core with DMA on the PFGA, the PCIE IP core with DMA is respectively connected with the DA control output module and the phase calibration module through an AXI bus, the DA control output module is connected with the DA chip, the DA chip is connected with the comparator, and the comparator is connected with the phase calibration module.

8. The FPGA-based multi-channel signal generator waveform synchronization system of claim 7, wherein: the PCIE IP core with the DMA is connected with the DA control output module and the phase calibration module through an AXI bus, and the AXI bus comprises an AXI Stream interface used for data transmission and an AXI Lite interface used for command transmission.

9. An FPGA-based multi-channel signal generator waveform synchronization system as defined in claim 7 or 8, characterized in that: the phase calibration module consists of a coarse tuning phase and an Iserdes submodule, and the coarse tuning phase is connected with the Iserdes submodule.

10. The FPGA-based multi-channel signal generator waveform synchronization system of claim 9, wherein: the DA control output module consists of a DAC _ CTRL submodule, a DAC _ Intf submodule and an Oserdes submodule, the DAC _ CTRL submodule is respectively connected with a coarse tuning phase and a DA chip in the phase calibration module, the DAC _ Intf submodule is respectively connected with an AXI Stream interface and the Oserdes submodule of an AXI bus, and the Oserdes submodule is connected with the DA chip;

the DAC _ CTRL submodule is used for configuring a DA chip at the rear end according to an upper computer configuration command; the DAC _ Intf submodule is used for processing waveform data sent by an upper computer, and performing data bit width change and data adding processing; the Oserdes submodule is used for carrying out parallel-serial conversion on data, so that single-channel data sent to the DA chip can reach 1 Gbps.

Technical Field

The invention relates to the technical field of output waveform synchronization of signal generators, and particularly provides a signal generator output synchronization method and system based on an FPGA.

Background

A signal generator is a device that can provide electrical signals of various frequencies, waveforms and output levels. The device is used as a signal source or an excitation source for testing when measuring amplitude characteristics, frequency characteristics, transmission characteristics and other electrical parameters of various telecommunication systems or telecommunication equipment and when measuring characteristics and parameters of components.

Signal generators, also known as signal sources or oscillators, are widely used in production practice and in the field of science and technology. Various wave curves can be expressed by trigonometric functions. A circuit capable of generating various waveforms such as a triangular wave, a sawtooth wave, a rectangular wave (including a square wave), and a sine wave is called a function signal generator.

The technical development of the signal generator is relatively mature up to now, and the technical trend is guided by a plurality of overseas instrument companies, such as Agilent, Tektronix and the like. Compared with foreign countries, domestic signal generators start late, but the development is still international and can be gradually followed up to now, and high-performance multifunctional signal generators reaching the international level can be developed by utilizing high-tech.

With the continuous development of signal generator technology, the requirement for synchronization of a multi-channel signal generator is higher and higher, and how to accurately synchronize output waveforms of the multi-channel signal generator is a problem to be solved in the prior art.

Disclosure of Invention

Aiming at the defects of the prior art, the invention provides a waveform synchronization system based on an FPGA multi-channel signal generator, which has reasonable design, safety and applicability.

The invention further aims to provide a waveform synchronization method based on the FPGA multi-channel signal generator, which is high in practicability.

The technical scheme adopted by the invention for solving the technical problems is as follows:

a waveform synchronization method of a multi-channel signal generator based on an FPGA comprises the following three parts of a PCIE IP core with DMA is instantiated in the FPGA, b, a phase calibration module is built in the FPGA, signals input to the FPGA through a comparator are roughly adjusted through the phase calibration module, and c, a DA control output module for controlling DA output waveforms is built;

inserting a multi-channel signal generator with a PCIE interface into an upper computer, sending a coarse adjustment control command to a phase calibration module through the upper computer, and automatically adjusting the phase calibration module by checking output waveform data, wherein the adjustment precision is within 1 ns;

when the checked and output waveform needs to be fine-tuned, the wiring delay of the DA channel of the output module at ps level is controlled through the DA, the modulation parameters are sent repeatedly, and the waveform data of the checked multi-channel reaches the synchronization requirement.

Further, when fine tuning is needed, bus delay tuning is performed by adjusting the bus length of the data signal corresponding to the IP core of the High Speed selectrio in the DA control output module, and the delay tuning range of the IP core of the High Speed selectrio is 0-1250ps, so that ps-level configuration is achieved.

Furthermore, a PCIE IP core with DMA is responsible for interacting data and commands with an upper computer, and communicates with the phase calibration module and the DA control output module through an AXI bus.

Preferably, the AXI bus includes an AXI Stream interface for data transfer and an AXI Lite interface for command transfer.

Furthermore, the phase calibration module converts the signals passing through the comparator into parallel data by using internal Iserdes, compares the parallel data converted by each channel, and delays the output signals of the DA particles according to the comparison result if the parallel data are different, so as to perform phase adjustment.

Further, the DA control output module introduces waveform data to be sent by the multichannel DA from an upper computer by using an AXI Stream interface, and the AXI Lite interface receives a control command from the upper computer, wherein the control command comprises a register connected with a DA chip behind the DA control output module and a control command for fine-tuning ps-level delay by using High Speed SelectIO.

A waveform synchronization system of a multi-channel signal generator based on an FPGA (field programmable gate array) is composed of an upper computer, a PCIE IP core with DMA (direct memory access) arranged on a PFGA (pulse frequency grid array), a DA (digital-to-analog) control output module, a phase calibration module, a DA chip and a comparator; the upper computer is connected with a PCIE IP core with DMA on the PFGA, the PCIE IP core with DMA is respectively connected with the DA control output module and the phase calibration module through an AXI bus, the DA control output module is connected with the DA chip, the DA chip is connected with the comparator, and the comparator is connected with the phase calibration module.

Further, the PCIE IP core with DMA is connected to the DA control output module and the phase calibration module through an AXI bus, where the AXI bus includes an AXI Stream interface for data transmission and an AXILite interface for command transmission.

Furthermore, the phase calibration module consists of a coarse tuning phase and an Iserdes submodule, and the coarse tuning phase is connected with the Iserdes submodule.

Further, the DA control output module consists of a DAC _ CTRL submodule, a DAC _ Intf submodule and an Oserdes submodule, the DAC _ CTRL submodule is respectively connected with a coarse tuning phase and a DA chip in the phase calibration module, the DAC _ Intf submodule is respectively connected with an AXI Stream interface and the Oserdes submodule of the AXI bus, and the Oserdes submodule is connected with the DA chip;

the DAC _ CTRL submodule is used for configuring a DA chip at the rear end according to an upper computer configuration command; the DAC _ Intf submodule is used for processing waveform data sent by an upper computer, and performing data bit width change and data adding processing; the Oserdes submodule is used for carrying out parallel-serial conversion on data, so that single-channel data sent to the DA chip can reach 1 Gbps.

Compared with the prior art, the waveform synchronization method and system based on the FPGA multichannel signal generator have the following outstanding beneficial effects:

the method is suitable for the environment that the output waveforms of the multi-channel signal generator need to be synchronized. In an environment with high synchronization requirements, the coarse tuning module can enable signals of different channels to reach phases within 1ns, and under an ideal condition, the fine tuning module can enable the phases to reach within 1ps, and can meet the requirement of high PCB design requirements.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

FIG. 1 is a schematic structural diagram of a waveform synchronization system of a multi-channel signal generator based on an FPGA.

Detailed Description

The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

A preferred embodiment is given below:

referring to fig. 1, the waveform synchronization method of the FPGA-based multi-channel signal generator in the present embodiment includes:

firstly, setting three parts in an FPGA, namely a instantiating a PCIE IP core with DMA, b establishing a phase calibration module in the FPGA, roughly adjusting signals input to the FPGA through a comparator through the phase calibration module, and c establishing a DA control output module for controlling DA output waveforms.

And inserting the multi-channel signal generator with the PCIE interface into the PC. And electrifying, entering a system to check that the enumeration of the PCIE equipment is successful, and sending the same waveform data to the multichannel signal generator through the PCIE. Measuring the output waveform by using an oscilloscope, and checking that the phase relation is not fixed; then sent to the phase calibration module through the PC, the phase calibration module can be adjusted automatically by looking at the output waveform data, and the accuracy of the adjustment is within 1 ns.

When the checked and output waveform needs to be fine-tuned, the wiring delay of the DA channel of the output module at ps level is controlled through the DA, the modulation parameters are sent repeatedly, and the waveform data of the checked multi-channel reaches the synchronization requirement.

When fine tuning is needed, bus delay adjustment is carried out by adjusting the length of a bus of a data signal corresponding to the IP core of the High Speed SelectIO in the DA control output module, the delay adjustment range of the IP core of the High Speed SelectIO is 0-1250ps, and ps-level configuration can be achieved.

The PCIE IP core with the DMA is responsible for interacting data and commands with a PC, carrying out data transmission through an AXI Stream interface of an AXI bus, carrying out command transmission through an AXI Lite interface of the AXI bus, transmitting the data and the commands to a DAC _ Intf sub-module in a DA control output module, configuring a rear-end DA chip by the DAC _ CTRL sub-module according to a configuration command of an upper computer, and carrying out message communication between the DA chip and a phase calibration module through a comparator. The DA control output module introduces waveform data to be sent by a multi-channel DA from a PC through an AXIStream interface, and the AXI Lite interface receives a control command from the PC, wherein the control command comprises a register connected with a DA chip behind the DA control output module and a control command for fine-tuning ps-level delay through High Speed SelectIO.

The phase calibration module converts signals passing through the comparator into parallel data by using internal Iserdes, the parallel data converted by each channel are compared, if the parallel data are different, the output signal of the DA particles is delayed according to the comparison result, and phase adjustment is carried out.

The waveform synchronization system based on the FPGA multichannel signal generator for realizing the method consists of an upper computer, a PCIE IP core with DMA (direct memory access) arranged on a PFGA (pulse frequency synthesizer), a DA (digital-to-analog) control output module, a phase calibration module, a DA chip and a comparator; the upper computer is connected with a PCIE IP core with DMA on the PFGA, the PCIE IP core with DMA is respectively connected with the DA control output module and the phase calibration module through an AXI bus, the DA control output module is connected with the DA chip, the DA chip is connected with the comparator, and the comparator is connected with the phase calibration module.

The PCIE IP core with the DMA is connected with the DA control output module and the phase calibration module through an AXI bus, wherein the AXI bus comprises an AXI Stream interface used for data transmission and an AXI Lite interface used for command transmission.

The phase calibration module consists of a coarse tuning phase and an Iserdes submodule, and the coarse tuning phase is connected with the Iserdes submodule.

The DA control output module consists of a DAC _ CTRL submodule, a DAC _ Intf submodule and an Oserdes submodule, the DAC _ CTRL submodule is respectively connected with a coarse adjustment phase and a DA chip in the phase calibration module, the DAC _ Intf submodule is respectively connected with an AXI Stream interface and the Oserdes submodule of an AXI bus, and the Oserdes submodule is connected with the DA chip.

The DAC _ CTRL submodule is used for configuring a DA chip at the rear end according to a PC configuration command, mainly configuring whether a single channel or double channels of the DA chip are configured, the sampling rate of the DA chip, whether DA data are in a complementary code form or not, controlling the amplitude and bias of the DA chip and controlling the delay (1-3 ns) of a coarse adjustment module of an output signal. And the DAC _ Intf submodule is used for processing the waveform data sent by the PC and carrying out data bit width change and data adding processing. The Oserdes submodule is used for carrying out parallel-serial conversion on data, so that single-channel data sent to the DA chip can reach 1 Gbps.

The above embodiments are only specific ones of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any suitable changes or substitutions that are consistent with the claimed method and system for synchronizing waveforms of FPGA-based multi-channel signal generator and that are made by one of ordinary skill in the art shall fall within the scope of the present invention.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:时钟树合成方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!