[go: up one dir, main page]

CN108614271B - Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction - Google Patents

Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction Download PDF

Info

Publication number
CN108614271B
CN108614271B CN201810741637.4A CN201810741637A CN108614271B CN 108614271 B CN108614271 B CN 108614271B CN 201810741637 A CN201810741637 A CN 201810741637A CN 108614271 B CN108614271 B CN 108614271B
Authority
CN
China
Prior art keywords
phase
channel
signal
amplitude
module
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
CN201810741637.4A
Other languages
Chinese (zh)
Other versions
CN108614271A (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 Jiliang University
Original Assignee
China Jiliang University
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 Jiliang University filed Critical China Jiliang University
Priority to CN201810741637.4A priority Critical patent/CN108614271B/en
Publication of CN108614271A publication Critical patent/CN108614271A/en
Application granted granted Critical
Publication of CN108614271B publication Critical patent/CN108614271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/88Sonar systems specially adapted for specific applications
    • G01S15/89Sonar systems specially adapted for specific applications for mapping or imaging
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/52Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S15/00

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

本发明公开了一种带反馈校正的多通道超声波任意波形信号发生器,包括PC端、JTAG接口、FPGA、有源晶振、DAC模块、滤波模块、反馈模块和启动键;本发明采用DDS技术并行产生m路相位信号;并在滤波电路后加上反馈模块和反馈信号处理模块;其特点在于只用一个m路选择器和ADC模块对多路信号进行检测,大大降低了资源的消耗,使得结构更加紧凑;同时反馈信号处理模块能对多路信号实际初始相位进行检测;其仅用一个零点检测模块能依次得到所有通道初始相位并结合查表的方式进行振幅与相位的转换,极大地减少了反馈信号处理所占的资源。

The invention discloses a multi-channel ultrasonic arbitrary waveform signal generator with feedback correction, including a PC terminal, a JTAG interface, an FPGA, an active crystal oscillator, a DAC module, a filter module, a feedback module and a start key; the invention adopts DDS technology for parallel processing Generate m-channel phase signals; and add a feedback module and feedback signal processing module after the filter circuit; its characteristic is that only one m-channel selector and ADC module are used to detect multi-channel signals, which greatly reduces the consumption of resources and makes the structure More compact; at the same time, the feedback signal processing module can detect the actual initial phase of multi-channel signals; it only uses a zero point detection module to obtain the initial phase of all channels in sequence and combines the look-up table to perform amplitude and phase conversion, which greatly reduces Feedback signal processing resources occupied.

Description

一种带反馈校正的多通道超声波任意波形信号发生器A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction

技术领域Technical field

本发明涉及一种多通道DDS信号发生器,尤其涉及一种带反馈校正的多通道超声波任意波形信号发生器。The invention relates to a multi-channel DDS signal generator, and in particular to a multi-channel ultrasonic arbitrary waveform signal generator with feedback correction.

背景技术Background technique

超声相控阵技术通过控制阵列换能器各阵元的发射,形成合成声束的聚焦、扫描等各种效果,从而进行超声成像。在相控阵超声发射状态下,阵列换能器中各阵元按一定延时规律顺序激发,产生的超声发射子波束在空间合成,形成聚焦点和指向性。改变各阵元激发的延时规律,可以改变焦点位置和波束指向,形成在一定空间范围内的扫描聚焦。超声相控阵系统中的关键数字技术主要是指波束的时空控制,采用先进的数字电子技术和微计算机技术,对发射状态的相控波束进行精确控制,以获得最佳的发射波束特性。Ultrasonic phased array technology controls the emission of each element of the array transducer to form various effects such as focusing and scanning of the synthetic sound beam, thereby performing ultrasonic imaging. In the phased array ultrasonic emission state, each array element in the array transducer is sequentially excited according to a certain delay rule, and the generated ultrasonic emission sub-beams are synthesized in space to form a focus point and directivity. Changing the delay pattern of excitation of each array element can change the focus position and beam direction, forming a scanning focus within a certain spatial range. The key digital technology in the ultrasonic phased array system mainly refers to the spatio-temporal control of the beam. Advanced digital electronic technology and microcomputer technology are used to accurately control the phased beam in the launch state to obtain the best launch beam characteristics.

直接数字频率合成器(DDS)与传统的频率合成器相比,在频率合成、任意波形产生方面有很多优势,比如频率转换快、输出信号建立时间短、频谱纯度高、极高的频率精度和分辨率以及易于控制各种调制方式等优点。FPGA(Field-Programmable Gate Array,现场可编程门阵列)作为一种高性能的可编程逻辑器件能够为多种电路提供优良的解决方案对数字频率合成来说,用FPGA实现将更加灵活易控。而且由于FPGA的集成度特别高,能够将整个系统下载至同一芯片中,实现所谓的片上系统(So C),从而大大小产品的体积,提高系统的可靠性。Compared with traditional frequency synthesizers, direct digital frequency synthesizers (DDS) have many advantages in frequency synthesis and arbitrary waveform generation, such as fast frequency conversion, short output signal setup time, high spectrum purity, extremely high frequency accuracy and resolution and easy control of various modulation methods. FPGA (Field-Programmable Gate Array), as a high-performance programmable logic device, can provide excellent solutions for a variety of circuits. For digital frequency synthesis, implementation with FPGA will be more flexible and easier to control. Moreover, because FPGA has a particularly high level of integration, the entire system can be downloaded to the same chip to implement a so-called system on a chip (SoC), thereby increasing the size of the product and improving the reliability of the system.

现有的多通道超声波信号发射技术,每个通道的基本结构由相位累加器(PD)、波形存储器(RAM)、数模转换器(DAC)和低通滤波器(LPF)组成,形成相互独立具有一定相位差的多通道信号发生器。In the existing multi-channel ultrasonic signal transmission technology, the basic structure of each channel consists of a phase accumulator (PD), a waveform memory (RAM), a digital-to-analog converter (DAC) and a low-pass filter (LPF), which are independent of each other. Multi-channel signal generator with certain phase difference.

上述超声波相控阵发射技术存在以下不足:一、由于布线以及芯片之间的延时差异造成实际相位与理想相位之间的相位误差大。二、带反馈的多通道信号发生器在多通路时需要多个相位累加器(PD)、波形存储器(RAM)、数模转换器(DAC)和滤波电路以及模数转换器(ADC)造成电路复杂,难以实现。The above-mentioned ultrasonic phased array transmission technology has the following shortcomings: 1. Due to the delay difference between wiring and chips, the phase error between the actual phase and the ideal phase is large. 2. A multi-channel signal generator with feedback requires multiple phase accumulators (PD), waveform memory (RAM), digital-to-analog converter (DAC), filter circuits and analog-to-digital converters (ADC) to form a circuit when using multiple channels. Complex and difficult to implement.

发明内容Contents of the invention

本发明的目的在于针对现有技术的不足,提供一种带反馈校正的多通道超声波任意波形信号发生器。The purpose of the present invention is to provide a multi-channel ultrasonic arbitrary waveform signal generator with feedback correction in view of the shortcomings of the existing technology.

本发明的目的是通过以下技术方案来实现的:一种带反馈校正的多通道超声波任意波形信号发生器,包括PC端、JTAG接口、FPGA、DAC模块、滤波模块、反馈模块;The object of the present invention is achieved through the following technical solutions: a multi-channel ultrasonic arbitrary waveform signal generator with feedback correction, including a PC terminal, JTAG interface, FPGA, DAC module, filter module, and feedback module;

所述PC端通过JTAG接口将超声波波形的相位和幅值映射数据存储到m个波形查找表RAM中,其中m表示通道数,将幅值和相位映射数据存到两个相位查找表RAM中,第一相位查找表存储第一象限和第四象限的相位信息,第二相位查找表存储第二象限和第三象限的相位信息,相位信号和幅值信号的数据类型为二进制无符号数,定义最高位表示符号位,其余位表示数据位;The PC side stores the phase and amplitude mapping data of the ultrasonic waveform into m waveform lookup table RAMs through the JTAG interface, where m represents the number of channels, and stores the amplitude and phase mapping data into two phase lookup table RAMs. The first phase lookup table stores the phase information of the first and fourth quadrants, and the second phase lookup table stores the phase information of the second and third quadrants. The data type of the phase signal and the amplitude signal is a binary unsigned number, defined The highest bit represents the sign bit, and the remaining bits represent the data bits;

所述FPGA通过JTAG接口接收相应RAM中的映射数据、通道控制信号、频率控制信号和初始相位信号;在FPGA内部利用DDS,根据通道控制信号和频率控制信号形成m个通道,m个通道的信号依次从相应的波形查找表中进行查找,得到相位所对应的幅值信号,再将幅值信号连接到DAC模块中进行数模转换,之后利用滤波模块对输出波形进行滤波,滤波后的各通道连接到反馈模块中;The FPGA receives the mapping data, channel control signal, frequency control signal and initial phase signal in the corresponding RAM through the JTAG interface; DDS is used inside the FPGA to form m channels and m channel signals based on the channel control signal and frequency control signal. Search the corresponding waveform lookup table in turn to obtain the amplitude signal corresponding to the phase, then connect the amplitude signal to the DAC module for digital-to-analog conversion, and then use the filter module to filter the output waveform. Each channel after filtering Connect to the feedback module;

所述反馈模块由一个多路选择器和一个ADC模块组成;多路选择器与ADC模块依次对各通道进行采样,并将采样后的信号输送到FPGA内的反馈信号处理模块中;The feedback module is composed of a multiplexer and an ADC module; the multiplexer and the ADC module sample each channel in turn, and transport the sampled signals to the feedback signal processing module in the FPGA;

所述反馈信号处理模块包括缓存器、零点检测模块、相位补偿单元、相位差计算单元、状态检测单元和相位修正单元;The feedback signal processing module includes a buffer, a zero point detection module, a phase compensation unit, a phase difference calculation unit, a state detection unit and a phase correction unit;

所述零点检测模块由一个比较器和m位进制的计数器组成,零点检测模块的计数器开始计数,将采样到的幅值信号与m个通道中的最小幅值信号进行比较,若检测出幅值大于最小幅值则将幅值信号记作wi,由计数器得到其所对应的通道序号i,依次将其后m-1个幅值信号记作:wi+1 wi+2 …wm w1 w2…wi-1,其所对应的通道序数记作:i+1 i+2 … 1 2 …i-1;再依次取一个计数周期后各通道的值:w′i w′i+1 w′i+2 … w′m w′1 w′2 … w′i-1;将所得的数据送到状态检测单元中,将各通道前一个幅值信号与后一个幅值信号相减,其最高位即符号位的值用A表示;若前一个幅值信号的幅值大于后一个幅值信号的幅值,则A=0,若小于则A=1;同时将m路幅值信号wi wi+1 wi+2 … wm w1 w2 … wi-1送入相位补偿单元,利用查表法从相位查找表中获得相应的相位值,若A=1,则从第一相位查找表中查询相应的相位;若A=0,则从第二相位查找表中查询相应的相位值;并对各通道的相位进行补偿;The zero point detection module is composed of a comparator and an m-digit counter. The counter of the zero point detection module starts counting and compares the sampled amplitude signal with the minimum amplitude signal in the m channels. If the amplitude signal is detected, If the value is greater than the minimum amplitude, the amplitude signal is recorded as wi , and the corresponding channel number i is obtained from the counter, and the subsequent m-1 amplitude signals are recorded as: wi +1 w i+2 ...w m w 1 w 2 …w i-1 , the corresponding channel number is recorded as: i+1 i+2 … 1 2 …i-1; then take the value of each channel after one counting period: w′ i w ′ i+1 w′ i+2 … w′ m w′ 1 w′ 2 … w′ i-1 ; send the obtained data to the state detection unit, and compare the previous amplitude signal of each channel with the next amplitude The signals are subtracted, and the value of the highest bit, that is, the sign bit, is represented by A; if the amplitude of the previous amplitude signal is greater than the amplitude of the next amplitude signal, then A = 0, if it is less than, then A = 1; at the same time, m The path amplitude signal w i w i+1 w i+2 … w m w 1 w 2 … w i-1 is sent to the phase compensation unit, and the corresponding phase value is obtained from the phase lookup table using the table lookup method. If A= 1, then query the corresponding phase from the first phase lookup table; if A=0, query the corresponding phase value from the second phase lookup table; and compensate the phase of each channel;

所述相位差计算单元将补偿后的相位值与预设的初始相位信号进行相减得到各通道相位差,其最高位即符号位的值用B表示;若补偿后的相位值大于初始相位,则B=0,若小于则B=1;再依据相位差计算单元来修改初始相位;B=0则表示相位超前,B=则表示相位滞后;若超前则根据相位修正单元将通道的初始相位减去该相位差,若滞后则根据相位修正单元将初始相位加上该相位差的补码,最后将其反馈给DDS进行修正。The phase difference calculation unit subtracts the compensated phase value from the preset initial phase signal to obtain the phase difference of each channel, and the highest bit, that is, the sign bit value is represented by B; if the compensated phase value is greater than the initial phase, Then B=0, if less than B=1; then modify the initial phase according to the phase difference calculation unit; B=0 means the phase is ahead, B= means the phase is lagging; if it is ahead, the initial phase of the channel is modified according to the phase correction unit The phase difference is subtracted. If it lags behind, the complement of the phase difference is added to the initial phase according to the phase correction unit, and finally it is fed back to the DDS for correction.

进一步地,利用MATLAB在PC端生成相位转幅值的.mif文件以及幅值转相位的.mif文件,通过Quartus Ⅱ软件中的IP核功能生成RAM IP核,并将生成的.mif文件数据导入其中;将控制指令和发射参数通过JTAG接口传入FPGA中。Furthermore, MATLAB is used to generate the phase-to-amplitude .mif file and the amplitude-to-phase .mif file on the PC. The RAM IP core is generated through the IP core function in the Quartus Ⅱ software, and the generated .mif file data is imported. Among them; the control instructions and transmission parameters are transmitted to the FPGA through the JTAG interface.

进一步地,通过有源晶振产生时钟信号fcLk,并分别连接到FPGA、DAC模块、反馈模块的多路选择器和ADC上。Further, the clock signal f cLk is generated through the active crystal oscillator and connected to the multiplexer and ADC of the FPGA, DAC module, feedback module respectively.

进一步地,所述通道控制信号包括用户选择的通道序号和通道数m,所述频率控制信号为用户设定的发射超声波波形的频率信号,所述初始相位信号为用户设定的发射超声波波形的初始相位信号。Further, the channel control signal includes the channel number and channel number m selected by the user, the frequency control signal is the frequency signal for transmitting the ultrasonic waveform set by the user, and the initial phase signal is the frequency signal for transmitting the ultrasonic waveform set by the user. initial phase signal.

进一步地,所述FPGA接收通道控制信号和频率控制信号生成一个对应的相位累加器,将相位累加器输出的数据送入相应的m个加法器中与接收的初始相位信号进行累加,得到每个通道的地址信息,根据地址信息到其对应的波形查找表中,查找相位对应的幅值信号。Further, the FPGA receives the channel control signal and the frequency control signal to generate a corresponding phase accumulator, and sends the data output by the phase accumulator to the corresponding m adders for accumulation with the received initial phase signal to obtain each According to the address information of the channel, go to its corresponding waveform lookup table to find the amplitude signal corresponding to the phase.

本发明的有益效果是:与现有技术相比,本发明采用DDS技术并行产生m路相位信号。并在滤波电路后加上反馈模块和反馈信号处理模块。其特点在于只用一个m路选择器和ADC模块对多路信号进行检测,大大降低了资源的消耗,使得结构更加紧凑。同时反馈信号处理模块能对多路信号实际初始相位进行检测。其仅用一个零点检测模块能依次得到所有通道初始相位并结合查表的方式进行振幅与相位的转换,提高了检测相位的精度,极大地减少了反馈信号处理所占的资源。The beneficial effects of the present invention are: compared with the existing technology, the present invention uses DDS technology to generate m phase signals in parallel. And add a feedback module and feedback signal processing module after the filter circuit. Its characteristic is that only one m-channel selector and ADC module are used to detect multi-channel signals, which greatly reduces resource consumption and makes the structure more compact. At the same time, the feedback signal processing module can detect the actual initial phase of multi-channel signals. It uses only one zero-point detection module to obtain the initial phases of all channels in sequence and combines the look-up table method to convert the amplitude and phase, which improves the accuracy of phase detection and greatly reduces the resources occupied by feedback signal processing.

附图说明Description of the drawings

图1是本发明整体结构的示意图;Figure 1 is a schematic diagram of the overall structure of the present invention;

图2是FPGA内部的工作原理图;Figure 2 is a diagram of the internal working principle of FPGA;

图3是DDS的工作原理图;Figure 3 is the working principle diagram of DDS;

图4是反馈模块的示意框图;Figure 4 is a schematic block diagram of the feedback module;

图5是反馈信号处理的示意框图。Figure 5 is a schematic block diagram of feedback signal processing.

具体实施方式Detailed ways

以下结合附图和具体实施例对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

本发明可以利用MATLAB在PC(个人计算机)端生成相位转幅值的.mif文件以及幅值转相位的.mif文件。通过Altera公司提供的QuartusⅡ软件中丰富的IP核(知识产权核)功能,生成RAM IP核并将生成的.mif文件数据导入其中。编写控制程序和发射参数,通过JTAG接口将其传入Altera公司FPGA(现场可编程门阵列)芯片的开发板中,使其相应的相位和幅值信息存入相应的波形查找表(RAM)和相位查找表(RAM)中,并在FPGA内部形成专用的电路。The present invention can use MATLAB to generate a phase-to-amplitude .mif file and an amplitude-to-phase .mif file on the PC (personal computer) side. Through the rich IP core (intellectual property core) function in the QuartusⅡ software provided by Altera, the RAM IP core is generated and the generated .mif file data is imported into it. Write the control program and emission parameters, and transfer them to the development board of Altera's FPGA (Field Programmable Gate Array) chip through the JTAG interface, so that the corresponding phase and amplitude information are stored in the corresponding waveform lookup table (RAM) and Phase lookup table (RAM), and form a dedicated circuit inside the FPGA.

图1是本发明整体结构示意图,本发明主要包括PC端、JTAG接口、FPGA、有源晶振、DAC模块、滤波模块、反馈模块和启动键。其中PC端通过JTAG接口将超声波波形的相位和幅值映射数据存储到m个波形查找表中,其中m表示通道数,将幅值和相位映射数据存到两个相位查找表中,第一个幅值和相位映射的相位查找表存储第一象限和第四象限的相位信息,第二个幅值和相位映射的相位查找表存储第二象限和第三象限的相位信息。并在FPGA内部形成相应的专用电路。有源晶振产生的时钟信号fcLk分别连接到FPGA、DAC模块和反馈模块上。Figure 1 is a schematic diagram of the overall structure of the present invention. The present invention mainly includes a PC terminal, JTAG interface, FPGA, active crystal oscillator, DAC module, filter module, feedback module and start key. The PC side stores the phase and amplitude mapping data of the ultrasonic waveform into m waveform lookup tables through the JTAG interface, where m represents the number of channels. The amplitude and phase mapping data are stored in two phase lookup tables. The first one The phase lookup table of the amplitude and phase mapping stores the phase information of the first and fourth quadrants, and the second phase lookup table of the amplitude and phase mapping stores the phase information of the second and third quadrants. And form corresponding dedicated circuits inside the FPGA. The clock signal f cLk generated by the active crystal oscillator is connected to the FPGA, DAC module and feedback module respectively.

图2给出了FPGA内部的工作原理图。FPGA通过JTAG接口接收相应RAM中的映射数据、通道控制信号、频率控制信号和初始相位信号;所述通道控制信号包括用户选择的通道序号和通道数m,所述频率控制信号为用户设定的发射超声波波形的频率信号,所述初始相位信号为用户设定的发射超声波波形的初始相位信号;当数据传输完成后,按下启动键;在FPGA内部利用DDS(直接数字频率合成器),根据通道控制信号和频率控制信号形成m个通道,m个通道的信号依次从相应的波形查找表i中,得到相位所对应的幅值信号,再将幅值信号连接到DAC(数字模拟转换器)模块中进行数模转换,之后对输出波形进行滤波,滤波后的各通道连接到反馈模块中,将其反馈模块输出的信号连接到FPGA内的反馈信号处理模块。Figure 2 shows the internal working principle diagram of FPGA. The FPGA receives the mapping data, channel control signal, frequency control signal and initial phase signal in the corresponding RAM through the JTAG interface; the channel control signal includes the channel number and channel number m selected by the user, and the frequency control signal is set by the user Transmit the frequency signal of the ultrasonic waveform, and the initial phase signal is the initial phase signal of the ultrasonic waveform set by the user; when the data transmission is completed, press the start button; use DDS (direct digital frequency synthesizer) inside the FPGA, according to The channel control signal and the frequency control signal form m channels. The signals of the m channels are sequentially obtained from the corresponding waveform lookup table i to obtain the amplitude signal corresponding to the phase, and then the amplitude signal is connected to the DAC (digital-to-analog converter) Digital-to-analog conversion is performed in the module, and then the output waveform is filtered. Each filtered channel is connected to the feedback module, and the signal output by the feedback module is connected to the feedback signal processing module in the FPGA.

图3给出了DDS的工作原理图。FPGA接收通道控制信号和频率控制信号生成一个对应的相位累加器,将相位累加器输出的数据送入相应的m个加法器中与接收的初始相位信号进行累加,得到每个通道的地址信息,根据地址信息到其对应的波形查找表i中,查找相位对应的幅值信号。Figure 3 shows the working principle diagram of DDS. The FPGA receives the channel control signal and frequency control signal to generate a corresponding phase accumulator, and sends the data output by the phase accumulator to the corresponding m adders to accumulate with the received initial phase signal to obtain the address information of each channel. According to the address information, go to its corresponding waveform lookup table i to find the amplitude signal corresponding to the phase.

图4给出了本发明中反馈模块的示意框图。其由一个多路选择器和一个ADC模块组成。多路选择器与ADC模块采用相同的频率fcLk的时钟信号。其依次对各通道进行采样,并将采样后的信号输送到FPGA内的反馈信号处理模块中。Figure 4 shows a schematic block diagram of the feedback module in the present invention. It consists of a multiplexer and an ADC module. The multiplexer and the ADC module use the same frequency f cLk clock signal. It samples each channel in turn and transmits the sampled signals to the feedback signal processing module in the FPGA.

图5给出了本发明反馈信号处理的示意框图。零点检测模块由一个比较器和m位进制的计数器组成,m的数值由通道控制信号确定。其工作原理是计数器开始计数,将采样到的幅值信号与m个通道中的最小幅值信号进行比较。若检测出幅值大于该最小值则将幅值信号记作wi,由计数器得到其所对应的通道序号i,依次将数据存入到存储器中,并将其后m-1个幅值信号记作:wi+1 wi+2 … wm w1 w2 … wi-1,其所对应的通道序数记作:i+1 i+2 …1 2 … i-1;再依此取一个计数周期后各通道的值:w′i w′i+1 w′i+2 … w′m w′1 w′2 …w′i-1。将所得的数据送到状态检测单元中,将各通道前一个幅值信号与后一个幅值信号进行相减,其最高位即符号位的值用A表示。若前一个幅值信号的幅值大于后一个幅值信号的幅值,则A=0,若小于则A=1。Figure 5 shows a schematic block diagram of feedback signal processing of the present invention. The zero-point detection module consists of a comparator and an m-digit counter. The value of m is determined by the channel control signal. Its working principle is that the counter starts counting and compares the sampled amplitude signal with the minimum amplitude signal among the m channels. If the detected amplitude is greater than the minimum value, the amplitude signal is recorded as wi , and the corresponding channel number i is obtained from the counter, and the data is stored in the memory in sequence, and the subsequent m-1 amplitude signals are It is recorded as: w i+1 w i+2 … w m w 1 w 2 … w i-1 , and the corresponding channel number is recorded as: i+1 i+2 … 1 2 … i-1; and so on Take the value of each channel after one counting period: w′ i w′ i+1 w′ i+2 … w′ m w′ 1 w′ 2 … w′ i-1 . The obtained data is sent to the state detection unit, and the previous amplitude signal of each channel is subtracted from the next amplitude signal. The value of the highest bit, that is, the sign bit, is represented by A. If the amplitude of the previous amplitude signal is greater than the amplitude of the next amplitude signal, then A=0; if it is less than the amplitude of the next amplitude signal, A=1.

同时将m路幅值信号wi wi+1 wi+2 … wm w1 w2 … wi-1送入相位补偿单元,利用查表法从相位查找表中获得相应的相位值pi,若A=1,则从第一相位查找表中查询相应的相位值。若A=0,则从第二相位查找表中查询相应的相位值。并对各通道的相位进行补偿:即通道i的相位为pi-0,第二个通道相位为pi+1-1,依次最后一个通道的相位为pi-1-(m-1)。At the same time, m amplitude signals w i w i+1 w i+2 ... w m w 1 w 2 ... w i-1 are sent to the phase compensation unit, and the corresponding phase value p is obtained from the phase lookup table using the table lookup method. i , if A=1, query the corresponding phase value from the first phase lookup table. If A=0, query the corresponding phase value from the second phase lookup table. And compensate the phase of each channel: that is, the phase of channel i is p i -0, the phase of the second channel is p i+1 -1, and the phase of the last channel is p i-1 -(m-1) .

相位差计算单元将补偿后的相位值与预设的初始相位信号进行相减得到各通道相位差,其最高位即符号位的值用B表示,若补偿后的相位值大于初始相位则B=0,若小于则B=1。再依据相位差计算单元来修改初始相位。比如说,B=0则表示相位超前;B=1则表示相位滞后。若超前则通道的初始相位减去该相位差,若滞后则初始相位加上该相位差的补码,最后将其反馈给DDS进行修正。The phase difference calculation unit subtracts the compensated phase value from the preset initial phase signal to obtain the phase difference of each channel. The value of the highest bit, the sign bit, is represented by B. If the compensated phase value is greater than the initial phase, then B = 0, if less than B=1. The initial phase is then modified according to the phase difference calculation unit. For example, B=0 means the phase leads; B=1 means the phase lags. If it leads, the phase difference is subtracted from the initial phase of the channel. If it lags, the complement of the phase difference is added to the initial phase, and finally it is fed back to the DDS for correction.

在此说明书中,应当指出,本发明实施例中提供的是多通道的信号发生器,仅是本发明的一个具体例子,显然,本发明的技术方案不限于上例所述的信号发生器,实际上,本发明的技术方案可还可以做出各种修改、变换和变形。因此,说明书和附图应被认为是说明性的而非限制性的。凡是依据本发明的技术实质对以上实施例所作的任何简单修改和等同变化与修饰,均应认为属于本发明的保护范围。In this description, it should be pointed out that the multi-channel signal generator provided in the embodiment of the present invention is only a specific example of the present invention. Obviously, the technical solution of the present invention is not limited to the signal generator described in the above example. In fact, various modifications, transformations and transformations can be made to the technical solution of the present invention. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive. Any simple modifications and equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention should be considered to belong to the protection scope of the present invention.

Claims (5)

1.一种带反馈校正的多通道超声波任意波形信号发生器,其特征在于,包括PC端、JTAG接口、FPGA、DAC模块、滤波模块、反馈模块;1. A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction, characterized by including a PC terminal, JTAG interface, FPGA, DAC module, filter module, and feedback module; 所述PC端通过JTAG接口将超声波波形的相位和幅值映射数据存储到m个波形查找表RAM中,其中m表示通道数,将幅值和相位映射数据存到两个相位查找表RAM中,第一相位查找表存储第一象限和第四象限的相位信息,第二相位查找表存储第二象限和第三象限的相位信息,相位信号和幅值信号的数据类型为二进制无符号数,定义最高位表示符号位,其余位表示数据位;The PC side stores the phase and amplitude mapping data of the ultrasonic waveform into m waveform lookup table RAMs through the JTAG interface, where m represents the number of channels, and stores the amplitude and phase mapping data into two phase lookup table RAMs. The first phase lookup table stores the phase information of the first and fourth quadrants, and the second phase lookup table stores the phase information of the second and third quadrants. The data type of the phase signal and the amplitude signal is a binary unsigned number, defined The highest bit represents the sign bit, and the remaining bits represent the data bits; 所述FPGA通过JTAG接口接收相应RAM中的映射数据、通道控制信号、频率控制信号和初始相位信号;在FPGA内部利用DDS,根据通道控制信号和频率控制信号形成m个通道,m个通道的信号依次从相应的波形查找表中进行查找,得到相位所对应的幅值信号,再将幅值信号连接到DAC模块中进行数模转换,之后利用滤波模块对输出波形进行滤波,滤波后的各通道连接到反馈模块中;The FPGA receives the mapping data, channel control signal, frequency control signal and initial phase signal in the corresponding RAM through the JTAG interface; DDS is used inside the FPGA to form m channels and m channel signals based on the channel control signal and frequency control signal. Search the corresponding waveform lookup table in turn to obtain the amplitude signal corresponding to the phase, then connect the amplitude signal to the DAC module for digital-to-analog conversion, and then use the filter module to filter the output waveform. Each channel after filtering Connect to the feedback module; 所述反馈模块由一个多路选择器和一个ADC模块组成;多路选择器与ADC模块依次对各通道进行采样,并将采样后的信号输送到FPGA内的反馈信号处理模块中;The feedback module is composed of a multiplexer and an ADC module; the multiplexer and the ADC module sample each channel in turn, and transport the sampled signals to the feedback signal processing module in the FPGA; 所述反馈信号处理模块包括缓存器、零点检测模块、相位补偿单元、相位差计算单元、状态检测单元和相位修正单元;The feedback signal processing module includes a buffer, a zero point detection module, a phase compensation unit, a phase difference calculation unit, a state detection unit and a phase correction unit; 所述零点检测模块由一个比较器和m位进制的计数器组成,零点检测模块的计数器开始计数,将采样到的幅值信号与m个通道中的最小幅值信号进行比较,若检测出幅值大于最小幅值则将幅值信号记作wi,由计数器得到其所对应的通道序号i,依次将其后m-1个幅值信号记作:wi+1 wi+2 … wm w1 w2 … wi-1,其所对应的通道序数记作:i+1 i+2 … 1 2 …i-1;再依次取一个计数周期后各通道的值:w′i w′i+1 w′i+2 … w′m w′1 w′2 … w′i-1;将所得的数据送到状态检测单元中,将各通道前一个幅值信号与后一个幅值信号相减,其最高位即符号位的值用A表示;若前一个幅值信号的幅值大于后一个幅值信号的幅值,则A=0,若小于则A=1;同时将m路幅值信号wi wi+1 wi+2 … wm w1w2 … wi-1送入相位补偿单元,利用查表法从相位查找表中获得相应的相位值,若A=1,则从第一相位查找表中查询相应的相位值;若A=0,则从第二相位查找表中查询相应的相位值;并对各通道的相位进行补偿;The zero point detection module is composed of a comparator and an m-digit counter. The counter of the zero point detection module starts counting and compares the sampled amplitude signal with the minimum amplitude signal in the m channels. If the amplitude signal is detected, If the value is greater than the minimum amplitude, the amplitude signal is recorded as w i , and the corresponding channel number i is obtained from the counter, and the subsequent m-1 amplitude signals are recorded as: w i+1 w i+2 ... w m w 1 w 2 … w i-1 , the corresponding channel number is recorded as: i+1 i+2 … 1 2 …i-1; then take the value of each channel after one counting period: w′ i w ′ i+1 w′ i+2 … w′ m w′ 1 w′ 2 … w′ i-1 ; send the obtained data to the state detection unit, and compare the previous amplitude signal of each channel with the next amplitude The signals are subtracted, and the value of the highest bit, that is, the sign bit, is represented by A; if the amplitude of the previous amplitude signal is greater than the amplitude of the next amplitude signal, then A = 0, if it is less than, then A = 1; at the same time, m The path amplitude signal w i w i+1 w i+2 … w m w 1 w 2 … w i-1 is sent to the phase compensation unit, and the corresponding phase value is obtained from the phase lookup table using the table lookup method. If A= 1, then query the corresponding phase value from the first phase lookup table; if A=0, query the corresponding phase value from the second phase lookup table; and compensate the phase of each channel; 所述相位差计算单元将补偿后的相位值与预设的初始相位信号进行相减得到各通道相位差,其最高位即符号位的值用B表示;若补偿后的相位值大于初始相位,则B=0,若小于则B=1;再依据相位差计算单元来修改初始相位;B=0则表示相位超前,B=则表示相位滞后;若超前则根据相位修正单元将通道的初始相位减去该相位差,若滞后则根据相位修正单元将初始相位加上该相位差的补码,最后将其反馈给DDS进行修正。The phase difference calculation unit subtracts the compensated phase value from the preset initial phase signal to obtain the phase difference of each channel, and the highest bit, that is, the sign bit value is represented by B; if the compensated phase value is greater than the initial phase, Then B=0, if less than B=1; then modify the initial phase according to the phase difference calculation unit; B=0 means the phase is ahead, B= means the phase is lagging; if it is ahead, the initial phase of the channel is modified according to the phase correction unit The phase difference is subtracted. If it lags behind, the complement of the phase difference is added to the initial phase according to the phase correction unit, and finally it is fed back to the DDS for correction. 2.根据权利要求1所述的一种带反馈校正的多通道超声波任意波形信号发生器,其特征在于,利用MATLAB在PC端生成相位转幅值的.mif文件以及幅值转相位的.mif文件,通过QuartusⅡ软件中的IP核功能生成RAM IP核,并将生成的.mif文件数据导入其中;将控制指令和发射参数通过JTAG接口传入FPGA中。2. A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction according to claim 1, characterized in that MATLAB is used to generate a phase-to-amplitude .mif file and an amplitude-to-phase .mif file on the PC. file, generate the RAM IP core through the IP core function in the Quartus II software, and import the generated .mif file data into it; transfer the control instructions and launch parameters into the FPGA through the JTAG interface. 3.根据权利要求1所述的一种带反馈校正的多通道超声波任意波形信号发生器,其特征在于,通过有源晶振产生时钟信号fcLk,并分别连接到FPGA、DAC模块、反馈模块的多路选择器和ADC上。3. A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction according to claim 1, characterized in that the clock signal f cLk is generated by an active crystal oscillator and is connected to the FPGA, DAC module and feedback module respectively. on the multiplexer and ADC. 4.根据权利要求1所述的一种带反馈校正的多通道超声波任意波形信号发生器,其特征在于,所述通道控制信号包括用户选择的通道序号和通道数m,所述频率控制信号为用户设定的发射超声波波形的频率信号,所述初始相位信号为用户设定的发射超声波波形的初始相位信号。4. A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction according to claim 1, wherein the channel control signal includes a user-selected channel number and channel number m, and the frequency control signal is A frequency signal for transmitting ultrasonic waveforms set by the user, and the initial phase signal is an initial phase signal for transmitting ultrasonic waveforms set by the user. 5.根据权利要求1所述的一种带反馈校正的多通道超声波任意波形信号发生器,其特征在于,所述FPGA接收通道控制信号和频率控制信号生成一个对应的相位累加器,将相位累加器输出的数据送入相应的m个加法器中与接收的初始相位信号进行累加,得到每个通道的地址信息,根据地址信息到其对应的波形查找表中,查找相位对应的幅值信号。5. A multi-channel ultrasonic arbitrary waveform signal generator with feedback correction according to claim 1, characterized in that the FPGA receives the channel control signal and the frequency control signal to generate a corresponding phase accumulator to accumulate the phases. The data output by the device is sent to the corresponding m adders and accumulated with the received initial phase signal to obtain the address information of each channel. According to the address information, it is entered into its corresponding waveform lookup table to find the amplitude signal corresponding to the phase.
CN201810741637.4A 2018-07-06 2018-07-06 Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction Active CN108614271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810741637.4A CN108614271B (en) 2018-07-06 2018-07-06 Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810741637.4A CN108614271B (en) 2018-07-06 2018-07-06 Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction

Publications (2)

Publication Number Publication Date
CN108614271A CN108614271A (en) 2018-10-02
CN108614271B true CN108614271B (en) 2023-10-20

Family

ID=63666054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810741637.4A Active CN108614271B (en) 2018-07-06 2018-07-06 Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction

Country Status (1)

Country Link
CN (1) CN108614271B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814656B (en) * 2018-12-28 2021-01-22 中电科仪器仪表有限公司 Signal generation device and method for arbitrary waveform generator
CN110045017A (en) * 2019-04-26 2019-07-23 中国计量大学 The underwater ultrasound phased array fault detection system of wireless data transmission and method of detection
CN110234119B (en) * 2019-06-06 2022-05-06 四川九洲电器集团有限责任公司 Signal source generating system based on DAC chip
CN110380216B (en) * 2019-07-30 2021-09-03 西安天和防务技术股份有限公司 Phase configuration method, device, equipment and storage medium in phased array radar
CN110333490B (en) * 2019-07-30 2022-12-27 西安电子工程研究所 Asynchronous multichannel arbitrary waveform generation method based on pipeline working mode
CN110838843B (en) * 2019-11-22 2022-08-02 中国电子科技集团公司第五十八研究所 Anti-irradiation DDS circuit
CN111707975B (en) * 2020-06-24 2022-09-02 中国电子科技集团公司第四十一研究所 Radio frequency signal generation system and method suitable for helium optical pump magnetometer
CN113720222B (en) * 2021-08-30 2023-06-16 山西宇翔信息技术有限公司 Radio fuse, phase correction method thereof, platform and readable storage medium
CN114129920B (en) * 2021-11-29 2023-09-26 中国医学科学院生物医学工程研究所 Phased array ultrasonic transducer excitation system for improving accurate frequency
CN114326924B (en) * 2022-03-03 2022-06-17 阿里巴巴达摩院(杭州)科技有限公司 Signal processing method and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324825A (en) * 1996-08-12 2008-12-17 蒂科电子公司 Acoustic condition sensor using multiple non-orthogonal waves
CN102481139A (en) * 2009-07-15 2012-05-30 美国国家半导体公司 Sub-beam forming transmitter circuitry for ultrasound system
CN103713279A (en) * 2014-01-07 2014-04-09 武汉大学 Multi-channel synchronization excitation source system
CN107635470A (en) * 2015-02-25 2018-01-26 决策科学医疗有限责任公司 Acoustic signal transmission connection and connection medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6901157B2 (en) * 2001-01-15 2005-05-31 Fuji Photo Film Co., Ltd. Ultrasonic diagnostic apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101324825A (en) * 1996-08-12 2008-12-17 蒂科电子公司 Acoustic condition sensor using multiple non-orthogonal waves
CN102481139A (en) * 2009-07-15 2012-05-30 美国国家半导体公司 Sub-beam forming transmitter circuitry for ultrasound system
CN103713279A (en) * 2014-01-07 2014-04-09 武汉大学 Multi-channel synchronization excitation source system
CN107635470A (en) * 2015-02-25 2018-01-26 决策科学医疗有限责任公司 Acoustic signal transmission connection and connection medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Enhancement of ultrasonic testing equipment time based resolution by synthetic waveform generator;Ohta, K. et al.;Proceedings of the 6th Symposium on Ultrasonic Electronics;全文 *
一种用于超声检漏探头激励的任意波形发生器;綦磊;孙立臣;李征;;电子测量技术(08);全文 *

Also Published As

Publication number Publication date
CN108614271A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN108614271B (en) Multichannel ultrasonic wave arbitrary waveform signal generator with feedback correction
CN109444819B (en) Radar system and its control method
CN208752198U (en) A Multi-Channel Ultrasonic Arbitrary Waveform Signal Generator with Feedback Correction
EP1548543B1 (en) Low jitter direct digital synthesizer
CN102468805B (en) The production method of a kind of swept signal generator and swept-frequency signal
US8171333B2 (en) Sub-beam forming transmitter circuitry for ultrasound system
CN101867371B (en) Realization Method of Linear Frequency Modulation Signal Based on FPGA
CN204731577U (en) A kind of multifunctional signal generator based on FPGA
US10733126B2 (en) FPGA-based square-wave generator and square-wave generation method
CN101190137B (en) Real time digital quadrature demodulation method and device used in ultrasonic imaging system
CN109298403B (en) High-speed signal processing and beam control device and method
CN112698321B (en) Digital down-conversion and Doppler compensation method based on DSP and FPGA adjustable phase increment
CN110488228A (en) Linear FM signal generation method, device and storage medium
CN106502308A (en) A kind of wave generator system of ultrasonic pulse pumping signal and production method
Qin et al. An integrated device with high performance multi-function generators and time-to-digital convertors
CN106774628A (en) A kind of multichannel editing device and method
CN104897994A (en) FPGA-based full-digital high-precision multi-path frequency sweep module
CN103179065B (en) Offset quadrature phase-shift-keying modulator approach, device and digital signal generator
CN105116183A (en) Multi-Channel Waveform Signal Generator
CN114814841A (en) Reconfigurable digital transceiver and electronic equipment for SAR radar
CN103888139A (en) Direct digital frequency synthesizer
US20030210758A1 (en) Recovered clock generator with high phase resolution and recovered clock generating method
CN115826674A (en) Implementation method and system of clock signal generator with stepped frequency in millihertz level
CN105490666B (en) High-resolution clock generation device and radar detection system
CN114157274A (en) A flexible and agile high-accuracy carrier generation system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant