[go: up one dir, main page]

CN117054715A - Sampling synchronization method for multiple digital oscilloscopes - Google Patents

Sampling synchronization method for multiple digital oscilloscopes Download PDF

Info

Publication number
CN117054715A
CN117054715A CN202311028523.2A CN202311028523A CN117054715A CN 117054715 A CN117054715 A CN 117054715A CN 202311028523 A CN202311028523 A CN 202311028523A CN 117054715 A CN117054715 A CN 117054715A
Authority
CN
China
Prior art keywords
clock
trigger
slave
signal
master
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
CN202311028523.2A
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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN202311028523.2A priority Critical patent/CN117054715A/en
Publication of CN117054715A publication Critical patent/CN117054715A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0218Circuits therefor
    • G01R13/0272Circuits therefor for sampling
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/02Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form
    • G01R13/0218Circuits therefor
    • G01R13/0254Circuits therefor for triggering, synchronisation
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R13/00Arrangements for displaying electric variables or waveforms
    • G01R13/04Arrangements for displaying electric variables or waveforms for producing permanent records
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/005Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a sampling synchronization method of a plurality of digital oscilloscopes, which mainly comprises two steps of clock synchronization and trigger synchronization; in the clock synchronization part, a master device crystal oscillator provides a source clock and outputs a synchronous clock signal to a slave device, and the slave device obtains the transmission delay time of the synchronous clock signal through an internal counter and performs phase compensation to realize sampling clock synchronization; in a trigger synchronization part, the master device and the slave device set the same trigger depth, the slave device establishes a trigger system through a FIFO read-write enabling signal and an intermediate control signal FIFO_MID generated by the master device to realize the read-write operation of trigger data, then the FPGA performs delay processing on the extracted acquisition data to compensate the deterministic delay of edge detection and the uncertain delay of a transmission path, and finally performs time sequence adjustment on the slave trigger signal FIFO_MID to complete trigger synchronization; and when the digital oscilloscopes connected in series sequentially complete sampling clock synchronization and trigger synchronization, finally realizing sampling synchronization of a plurality of digital oscilloscopes.

Description

一种多台数字示波器的采样同步方法A sampling synchronization method for multiple digital oscilloscopes

技术领域Technical field

本发明属于数字示波器技术领域,更为具体地讲,涉及一种多台数字示波器的采样同步方法。The invention belongs to the technical field of digital oscilloscopes, and more specifically, relates to a sampling synchronization method for multiple digital oscilloscopes.

背景技术Background technique

数字示波器(Digital Storage oscilloscope,DSO)是一种高速高精度的测量仪器,广泛应用于各种复杂的电子测量领域,其相较于模拟示波器具有存储波形数据并对数据进行处理的能力,且触发方式更为丰富、对于复杂波形的捕获能力更强。而随着电子工艺的进步,电子设备的体积相差越来越大,测试环境也越来越复杂。因此为提高测试仪器对不同测试环境的适应能力,便携式、小型化的数字示波器需求日益增多。为减小设备体积和重量,这种小型数字示波器往往设计通道数量较少,不适用于在需要同时测量多个信号的测试场景下。因此为提高小型数字示波器测试能力,必须设计一种能同步多台数字示波器使其能够实现同步精密采样的方法。Digital Storage oscilloscope (DSO) is a high-speed and high-precision measuring instrument that is widely used in various complex electronic measurement fields. Compared with analog oscilloscopes, it has the ability to store waveform data and process data, and triggers The method is richer and the ability to capture complex waveforms is stronger. With the advancement of electronic technology, the size of electronic devices has become larger and larger, and the test environment has become more and more complex. Therefore, in order to improve the adaptability of test instruments to different test environments, the demand for portable and miniaturized digital oscilloscopes is increasing day by day. In order to reduce the size and weight of the equipment, such small digital oscilloscopes are often designed with a small number of channels and are not suitable for test scenarios that require simultaneous measurement of multiple signals. Therefore, in order to improve the testing capabilities of small digital oscilloscopes, it is necessary to design a method that can synchronize multiple digital oscilloscopes so that they can achieve synchronous precision sampling.

发明内容Contents of the invention

本发明的目的在于克服现有技术的不足,提供一种多台数字示波器的采样同步方法,通过时钟同步和触发同步,以实现多设备数据的采集同步、存储同步、显示同步,达到多设备同步触发的高精度指标。The purpose of the present invention is to overcome the shortcomings of the existing technology and provide a sampling synchronization method for multiple digital oscilloscopes, through clock synchronization and trigger synchronization, to achieve multi-device data collection synchronization, storage synchronization, and display synchronization to achieve multi-device synchronization. Triggered high-precision indicators.

为实现上述发明目的,本发明一种多台数字示波器的采样同步方法,其特征在于,包括以下步骤:In order to achieve the above-mentioned object of the invention, the present invention is a sampling synchronization method for multiple digital oscilloscopes, which is characterized in that it includes the following steps:

(1)、设系统中共有M台数字示波器需要采样同步,每台数字示波器依次串联;(1) Assume that there are M digital oscilloscopes in the system that need sampling synchronization, and each digital oscilloscope is connected in series in turn;

(2)、主从设备的采样时钟同步;(2) Synchronization of sampling clocks between master and slave devices;

(2.1)、将第一台数字示波器作为主设备,第二台数字示波器作为从设备,进行数字示波器采集进程;(2.1) Use the first digital oscilloscope as the master device and the second digital oscilloscope as the slave device to perform the digital oscilloscope acquisition process;

(2.1.1)、主设备的内部晶振为时钟芯片提供10MHz的时钟源,与此同时单独输出一路10MHz的同步时钟信号;(2.1.1) The internal crystal oscillator of the main device provides a 10MHz clock source for the clock chip, and at the same time outputs a separate 10MHz synchronous clock signal;

(2.1.2)、主从设备内部电路设计相同,均设计具有双向输入输出功能的时钟接口A和B,10MHz同步时钟信号经过主设备内的FPGA时钟编程控制电路传送给时钟接口B,该接口通过同轴线与从设备时钟接口A相连;(2.1.2) The internal circuit design of the master and slave devices is the same. Both clock interfaces A and B are designed with bidirectional input and output functions. The 10MHz synchronous clock signal is transmitted to the clock interface B through the FPGA clock programming control circuit in the master device. This interface Connected to the slave device clock interface A through a coaxial line;

(2.1.3)、10MHz同步时钟信号经过从设备内的FPGA时钟编程控制电路传送到从设备的时钟电路,该电路不断调节从设备晶振的相位,使其与10MHz同步时钟信号相位相等,调节好的晶振为从设备时钟芯片提供10MHz的时钟源;(2.1.3), the 10MHz synchronous clock signal is transmitted to the clock circuit of the slave device through the FPGA clock programming control circuit in the slave device. The circuit continuously adjusts the phase of the slave device crystal oscillator to make it equal to the phase of the 10MHz synchronous clock signal. When the adjustment is good The crystal oscillator provides a 10MHz clock source for the slave device clock chip;

(2.1.4)、主从设备以各自时钟源经过相同的时钟芯片产生ADC的采样时钟,开始数据采集,模拟信号以相同路径经过ADC传输至FPGA的内部FIFO存储器;(2.1.4). The master and slave devices use their respective clock sources to generate the sampling clock of the ADC through the same clock chip, start data collection, and the analog signal is transmitted to the internal FIFO memory of the FPGA through the ADC through the same path;

(2.2)、进行估算进程,计算同步时钟信号从主设备晶振传输至从设备晶振的传输延迟时间ΔTclk(2.2) Carry out the estimation process and calculate the transmission delay time ΔT clk of the synchronous clock signal from the master device crystal oscillator to the slave device crystal oscillator;

(2.2.1)、启动信号发生器产生10MHz测试信号,用等长的同轴连接线分别连接到主设备的时钟接口A和从设备的时钟接口B,并进入各设备内的FPGA,此传输时间记为T1和T2,T1=T2;(2.2.1), start the signal generator to generate a 10MHz test signal, use equal-length coaxial cables to connect to the clock interface A of the master device and the clock interface B of the slave device, and enter the FPGA in each device. This transmission Time is recorded as T1 and T2, T1=T2;

(2.2.2)、主设备内测试信号通过FPGA时钟编程控制模块传送到时钟电路,时钟电路不断调节主设备晶振的相位,使其与测试信号相位相等,此传输时间记为Tclk;调节好的晶振按(2.1.2)传输路径传输给从设备的时钟接口A,最后传输到从设备FPGA内部,传输时间记为Tnet;(2.2.2). The test signal in the main device is transmitted to the clock circuit through the FPGA clock programming control module. The clock circuit continuously adjusts the phase of the crystal oscillator of the main device to make it equal to the phase of the test signal. This transmission time is recorded as Tclk; the adjusted The crystal oscillator is transmitted to the clock interface A of the slave device according to the transmission path (2.1.2), and finally transmitted to the internal device FPGA. The transmission time is recorded as Tnet;

(2.2.3)、从设备启动FPGA内部计数器,并利用FPGA内部布线工具使测试信号到计数器的路径与时钟信号在FPGA时钟编程控制电路的传输路径相同,计数器在检测到信号发生器输出测试信号后开始计数,检测到同步时钟信号后结束计数,计数时间为:T=T1+Tclk+Tnet-T2=Tclk+Tnet;(2.2.3), start the FPGA internal counter from the device, and use the FPGA internal wiring tool to make the path of the test signal to the counter the same as the transmission path of the clock signal in the FPGA clock programming control circuit. The counter detects that the signal generator outputs the test signal. Then start counting, and end counting after detecting the synchronous clock signal. The counting time is: T=T1+Tclk+Tnet-T2=Tclk+Tnet;

(2.2.4)、由(2.1.2)和(2.1.3)中同步时钟信号传输路径以及(2.2.3)中FPGA内部布线布局可知:同步时钟信号从主设备晶振传输至从设备晶振的传输延迟ΔTclk=Tclk+Tnet,即ΔTclk=T;(2.2.4), from the synchronous clock signal transmission path in (2.1.2) and (2.1.3) and the FPGA internal wiring layout in (2.2.3), it can be seen that the synchronous clock signal is transmitted from the master device crystal oscillator to the slave device crystal oscillator. Transmission delay ΔT clk =Tclk + Tnet, that is, ΔT clk =T;

(2.3)、主从采样时钟偏斜校正;(2.3), master-slave sampling clock skew correction;

设ΔTclk_min为主从采样时钟相隔最近上升沿的相位差,T为采样时钟周期,N为ΔTclk包含的最大完整采样时钟周期数,根据ΔTclk=ΔTclk min+NT延迟从设备的ADC采样时钟相位差,直至主从设备采样时钟相位一致,至此主从设备的采样时钟同步完成;Let ΔT clk_min be the phase difference between the latest rising edge of the master-slave sampling clock, T is the sampling clock period, and N is the maximum number of complete sampling clock cycles included in ΔT clk . According to ΔT clk = ΔT clk min + NT, the ADC sampling of the slave device is delayed. The clock phase difference is until the sampling clock phases of the master and slave devices are consistent, and the sampling clock synchronization of the master and slave devices is completed;

(3)、主从设备的触发同步;(3) Trigger synchronization of master and slave devices;

(3.1)、主设备的触发源设置为自身模拟通道模式,从设备的触发源设置为外触发通道模式,主从设备设置相同的触发深度;(3.1). The trigger source of the master device is set to its own analog channel mode, the trigger source of the slave device is set to the external trigger channel mode, and the master and slave devices set the same trigger depth;

(3.2)、设置主设备触发条件,主设备的FPGA根据触发条件生成控制数据存储与读取的FIFO读写使能信号;(3.2) Set the trigger conditions of the master device. The FPGA of the master device generates FIFO read and write enable signals that control data storage and reading according to the trigger conditions;

(3.2.1)、主设备根据FIFO读写使能信号共同生成中间控制信号FIFO_MID,具体生成过程为:当检测到FIFO写使能信号的上升沿后拉高FIFO_MID,当检测到FIFO读使能信号的下降沿后拉低FIFO_MID,其他时间保持不变;(3.2.1), the master device jointly generates the intermediate control signal FIFO_MID according to the FIFO read and write enable signals. The specific generation process is: when the rising edge of the FIFO write enable signal is detected, the FIFO_MID is pulled high. When the FIFO read enable is detected, After the falling edge of the signal, FIFO_MID is pulled low and remains unchanged at other times;

(3.2.2)、FIFO_MID通过主从设备的连接线缆进入从设备,从设备的FPGA根据FIFO_MID生成控制从设备数据存储与读取的FIFO读写使能信号;当从设备的FPGA检测到FIFO_MID的上升沿后,拉高从设备的FIFO写使能信号,此时开始向从设备的FIFO写入采集数据,直到写入数据的长度等于预触发深度,然后拉高从设备的FIFO读使能信号,此时FIFO同时进行采集数据的写入和读出操作;(3.2.2), FIFO_MID enters the slave device through the connection cable of the master-slave device, and the FPGA of the slave device generates a FIFO read and write enable signal that controls the storage and reading of data from the slave device based on FIFO_MID; when the FPGA of the slave device detects FIFO_MID After the rise of signal, at this time the FIFO is simultaneously writing and reading the collected data;

当从设备的FPGA检测到FIFO_MID下降沿后,拉低从设备的FIFO读使能信号,FIFO停止读出数据,开始将采集数据写入后触发存储区,直到后触发存储区数据写满,然后控制从设备写使能拉低、读使能拉高,将写满后的采集数据取出以便后续处理,完成从设备触发过程;When the FPGA of the slave device detects the falling edge of FIFO_MID, it pulls the FIFO read enable signal of the slave device low, the FIFO stops reading data, and starts writing the collected data into the post-trigger storage area until the post-trigger storage area is filled with data, and then Control the write enable of the slave device to be low and the read enable to be high, take out the collected data after writing for subsequent processing, and complete the slave device triggering process;

(3.3)、触发点偏移校正;(3.3), trigger point offset correction;

从设备的FPGA对取出的采集数据做延时处理,补偿边沿检测以及传输路径的延迟,此延迟值通过上位机进行调节,直到触发点位置回到理想触发位置;The FPGA of the slave device performs delay processing on the collected data taken out to compensate for the delay in edge detection and transmission path. This delay value is adjusted by the host computer until the trigger point position returns to the ideal trigger position;

(3.4)、对从机触发信号FIFO_MID进行时序调节使其远离从机处理时钟亚稳态区间;(3.4) Adjust the timing of the slave trigger signal FIFO_MID to keep it away from the metastable range of the slave processing clock;

最佳延迟值按以下步骤确定:以从机触发信号延迟至恰好远离亚稳态区间,数据传输从不对齐到对齐为起点delay0,然后加大延迟值至数据恰好从对齐到不对齐为终点delay1,则最佳延迟值为(delay0+delay1)/2,然后FPGA调用内部IDELAYE2资源对从机触发信号进行独立调节延时,至此完成主从设备触发同步。The optimal delay value is determined according to the following steps: delay the slave trigger signal until it is just far away from the metastable range, and the data transmission is from unaligned to aligned as the starting point delay0, and then increase the delay value until the data is exactly from aligned to unaligned as the end point delay1 , then the optimal delay value is (delay0+delay1)/2, and then the FPGA calls the internal IDELAYE2 resource to independently adjust the delay of the slave trigger signal, thus completing the master-slave device trigger synchronization.

(4)、第一、二两台数字示波器同步完成后,将第二台数字示波器设置为主设备,第三台数字示波器设置为从设备,再按照步骤(2)、(3)完成同步,然后以此类推,完成所有数字示波器的同步;(4) After the synchronization of the first and second digital oscilloscopes is completed, set the second digital oscilloscope as the master device and the third digital oscilloscope as the slave device, and then follow steps (2) and (3) to complete the synchronization. Then by analogy, complete the synchronization of all digital oscilloscopes;

(5)、当所有数字示波器同步完成后,任意选择一台数字示波器作为主设备,其余的数字示波器均为从设备,从而形成多通道的数据采集系统。(5) After all digital oscilloscopes are synchronized, any digital oscilloscope can be selected as the master device, and the rest of the digital oscilloscopes are slave devices, thus forming a multi-channel data acquisition system.

本发明的发明目的是这样实现的:The invention purpose of the present invention is achieved in this way:

本发明一种多台数字示波器的采样同步方法,方法主要包括时钟同步和触发同步两个步骤;在时钟同步部分,主设备晶振提供源时钟并输出同步时钟信号给从设备,从设备通过内部计数器得到同步时钟信号的传输延迟时间并进行相位补偿来实现采样时钟同步;在触发同步部分,主从设备设置相同的触发深度,从设备通过FIFO读写使能信号和主设备产生的中间控制信号FIFO_MID建立触发系统,实现触发数据的读写操作,然后FPGA对取出的采集数据做延时处理,补偿边沿检测的确定性延迟和传输路径的不确定延迟,最后对从机触发信号FIFO_MID进行时序调节完成触发同步。相串连的数字示波器依次完成采样时钟同步和触发同步,最终实现多台数字示波器的采样同步。The present invention is a sampling synchronization method for multiple digital oscilloscopes. The method mainly includes two steps: clock synchronization and trigger synchronization; in the clock synchronization part, the master device crystal oscillator provides the source clock and outputs the synchronization clock signal to the slave device, and the slave device passes the internal counter Obtain the transmission delay time of the synchronous clock signal and perform phase compensation to achieve sampling clock synchronization; in the trigger synchronization part, the master and slave devices set the same trigger depth, and the slave device reads and writes the enable signal through the FIFO and the intermediate control signal FIFO_MID generated by the master device Establish a trigger system to realize the reading and writing operations of trigger data. Then the FPGA performs delay processing on the collected data to compensate for the deterministic delay of edge detection and the uncertain delay of the transmission path. Finally, the timing adjustment of the slave trigger signal FIFO_MID is completed. Trigger synchronization. Digital oscilloscopes connected in series complete sampling clock synchronization and trigger synchronization in sequence, and finally achieve sampling synchronization of multiple digital oscilloscopes.

同时,本发明一种多台数字示波器的采样同步方法还具有以下有益效果:At the same time, the sampling synchronization method of multiple digital oscilloscopes of the present invention also has the following beneficial effects:

(1)、本发明方法通过计算和补偿传输延迟时间,能够准确实现主从设备的时钟同步和触发同步,确保多台数字示波器在采样和触发时刻的一致性,相比于传统的多机同步方法提高了同步精度;较高的同步精度可以消除因时钟和触发不一致导致的采样误差,提供更准确、可信的数据;(1). By calculating and compensating the transmission delay time, the method of the present invention can accurately realize the clock synchronization and trigger synchronization of the master-slave device and ensure the consistency of the sampling and triggering moments of multiple digital oscilloscopes. Compared with the traditional multi-machine synchronization The method improves synchronization accuracy; higher synchronization accuracy can eliminate sampling errors caused by clock and trigger inconsistencies and provide more accurate and credible data;

(2)、本发明方法支持多台数字示波器的串联,可根据实际场景需求将多台示波器组合起来,达到扩宽通道数的目的;还可以拓展数字示波器在高速多信号测试场景的应用范围,解决其本身通道数量相对较少的问题,实现更大范围的信号采集和分析,满足复杂实验或测试需求;(2) The method of the present invention supports the series connection of multiple digital oscilloscopes. Multiple oscilloscopes can be combined according to actual scene requirements to expand the number of channels; it can also expand the application scope of digital oscilloscopes in high-speed multi-signal testing scenarios. It solves the problem of relatively small number of channels, realizes a wider range of signal collection and analysis, and meets the needs of complex experiments or testing;

(3)、多机同步功能是后续多机数据拼合开发的重要基础,可以将多机采样数据进行间隔拼合,采用类似TIADC方案提高数字示波器的最高采样率,进一步提升数字示波器的采集性能。(3) The multi-machine synchronization function is an important basis for the subsequent development of multi-machine data splicing. The sampling data of multiple machines can be spliced at intervals, and a TIADC-like solution can be used to increase the maximum sampling rate of the digital oscilloscope and further improve the acquisition performance of the digital oscilloscope.

附图说明Description of the drawings

图1是本发明一种多台数字示波器的采样同步方法流程图;Figure 1 is a flow chart of a sampling synchronization method for multiple digital oscilloscopes according to the present invention;

图2是多台数字示波器连接示意图;Figure 2 is a schematic diagram of the connection of multiple digital oscilloscopes;

图3是从设备的时钟电路结构图;Figure 3 is the clock circuit structure diagram of the slave device;

图4是时钟信号传输路径延迟示意图。Figure 4 is a schematic diagram of the clock signal transmission path delay.

具体实施方式Detailed ways

下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It is important to note that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.

实施例Example

图1是本发明一种多台数字示波器的采样同步方法流程图。Figure 1 is a flow chart of a sampling synchronization method for multiple digital oscilloscopes according to the present invention.

在本实施例中,如图1所示,本发明一种多台数字示波器的采样同步方法,包括以下步骤:In this embodiment, as shown in Figure 1, a sampling synchronization method for multiple digital oscilloscopes of the present invention includes the following steps:

S1、设系统中共有M台数字示波器需要采样同步,每台数字示波器依次串联,连接方式如图2所示;S1. Suppose there are M digital oscilloscopes in the system that need sampling synchronization. Each digital oscilloscope is connected in series in turn. The connection method is shown in Figure 2;

S2、主从设备的采样时钟同步;S2. The sampling clocks of the master and slave devices are synchronized;

S2.1、将第一台数字示波器作为主设备,第二台数字示波器作为从设备,进行数字示波器采集进程;S2.1. Use the first digital oscilloscope as the master device and the second digital oscilloscope as the slave device to perform the digital oscilloscope acquisition process;

S2.1.1、主设备的内部晶振为时钟芯片提供10MHz的时钟源,与此同时单独输出一路10MHz的同步时钟信号;S2.1.1. The internal crystal oscillator of the main device provides a 10MHz clock source for the clock chip, and at the same time outputs a separate 10MHz synchronous clock signal;

S2.1.2、主从设备内部电路设计相同,均设计具有双向输入输出功能的时钟接口A和B,时钟电路设计结构图以及采集模式下时钟信号传输路径如图3所示,10MHz同步时钟信号经过主设备内的FPGA时钟编程控制电路传送给时钟接口B,该接口通过同轴线与从设备时钟接口A相连;S2.1.2. The internal circuit design of the master and slave devices is the same. Both clock interfaces A and B are designed with bidirectional input and output functions. The clock circuit design structure diagram and the clock signal transmission path in acquisition mode are shown in Figure 3. The 10MHz synchronous clock signal passes through The FPGA clock programming control circuit in the master device transmits it to the clock interface B, which is connected to the slave device clock interface A through a coaxial line;

S2.1.3、10MHz同步时钟信号经过从设备内的FPGA时钟编程控制电路传送到从设备的时钟电路,该电路由电压优化电路、锁相控制器和压控振荡器VCO组成,该结构组成锁相环不断调节从设备晶振的相位,使其与同步时钟信号相位相等,调节好的晶振为从设备时钟芯片提供10MHz的时钟源;S2.1.3, 10MHz synchronous clock signal is transmitted to the clock circuit of the slave device through the FPGA clock programming control circuit in the slave device. The circuit is composed of a voltage optimization circuit, a phase-locked controller and a voltage-controlled oscillator VCO. This structure forms a phase-locked The ring continuously adjusts the phase of the slave device crystal oscillator to make it equal to the phase of the synchronous clock signal. The adjusted crystal oscillator provides a 10MHz clock source for the slave device clock chip;

S2.1.4、主从设备以各自时钟源经过相同的时钟芯片产生ADC的采样时钟,开始数据采集,模拟信号以相同路径经过ADC传输至FPGA的内部FIFO存储器;S2.1.4. The master and slave devices use their respective clock sources to generate the sampling clock of the ADC through the same clock chip, start data collection, and the analog signal is transmitted to the internal FIFO memory of the FPGA through the ADC through the same path;

S2.2、进行估算进程,计算同步时钟信号从主设备晶振传输至从设备晶振的传输延迟时间ΔTclkS2.2. Carry out the estimation process and calculate the transmission delay time ΔT clk of the synchronized clock signal from the master device crystal oscillator to the slave device crystal oscillator;

S2.2.1、启动信号发生器产生10MHz测试信号,用等长的同轴连接线分别连接到主设备的时钟接口A和从设备的时钟接口B,并进入各设备内的FPGA,此传输时间记为T1和T2,T1=T2,信号传输路径延迟如图4所示;S2.2.1. Start the signal generator to generate a 10MHz test signal. Use equal-length coaxial cables to connect to the clock interface A of the master device and the clock interface B of the slave device respectively, and enter the FPGA in each device. The transmission time is recorded For T1 and T2, T1=T2, the signal transmission path delay is shown in Figure 4;

S2.2.2、主设备内测试信号通过FPGA时钟编程控制模块传送到时钟电路,时钟电路不断调节主设备晶振的相位,使其与测试信号相位相等,此传输时间记为Tclk;调节好的晶振按S2.1.2传输路径传输给从设备的时钟接口A,最后传输到从设备FPGA内部,传输时间记为Tnet;S2.2.2. The test signal in the main device is transmitted to the clock circuit through the FPGA clock programming control module. The clock circuit continuously adjusts the phase of the main device crystal oscillator to make it equal to the phase of the test signal. This transmission time is recorded as Tclk; the adjusted crystal oscillator presses The S2.1.2 transmission path is transmitted to the clock interface A of the slave device, and finally transmitted to the internal device FPGA. The transmission time is recorded as Tnet;

S2.2.3、从设备启动FPGA内部计数器,并利用FPGA内部布线工具使测试信号到计数器的路径与时钟信号在FPGA时钟编程控制电路的传输路径相同,计数器在检测到信号发生器输出测试信号后开始计数,检测到同步时钟信号后结束计数,计数时间为:T=T1+Tclk+Tnet-T2=Tclk+Tnet;S2.2.3. Start the FPGA internal counter from the device, and use the FPGA internal wiring tool to make the path of the test signal to the counter the same as the transmission path of the clock signal in the FPGA clock programming control circuit. The counter starts after detecting the test signal output by the signal generator. Counting, the counting ends after detecting the synchronous clock signal, the counting time is: T=T1+Tclk+Tnet-T2=Tclk+Tnet;

S2.2.4、由S2.1.2和S2.1.3中同步时钟信号传输路径以及S2.2.3FPGA内部布线布局可知:同步时钟信号从主设备晶振传输至从设备晶振的传输延迟ΔTclk=Tclk+Tnet,即ΔTclk=T;S2.2.4. From the synchronous clock signal transmission path in S2.1.2 and S2.1.3 and the internal wiring layout of S2.2.3FPGA, it can be seen that the transmission delay of the synchronous clock signal from the master device crystal oscillator to the slave device crystal oscillator ΔT clk = Tclk + Tnet, That is ΔT clk =T;

S2.3、主从采样时钟偏斜校正;S2.3, master-slave sampling clock skew correction;

采样时钟相位调节可以在时钟芯片HMC7044或者ADC内部进行调节。HMC7044提供对输出时钟进行模拟调节方案,调节步进为25ps,最高可调600ps。本设计使用ADC对时钟延迟调节步进为粗调1.13ps,最高可调289ps,细调19fs,最高可调4.9ps,综合考虑选择调节精度更高的ADC内部调节方案;The sampling clock phase adjustment can be adjusted inside the clock chip HMC7044 or ADC. HMC7044 provides an analog adjustment solution for the output clock, with an adjustment step of 25ps and a maximum adjustment of 600ps. This design uses the ADC to adjust the clock delay in a coarse adjustment step of 1.13ps, with a maximum adjustment of 289ps, and a fine adjustment of 19fs, with a maximum adjustment of 4.9ps. After comprehensive consideration, an ADC internal adjustment scheme with higher adjustment accuracy is selected;

设ΔTclk_min为主从采样时钟相隔最近上升沿的相位差,T为采样时钟周期,N为ΔTclk包含的最大完整采样时钟周期数,根据ΔTclk=ΔTclk_min+NT延迟从设备的ADC采样时钟相位差,直至主从设备采样时钟相位一致,至此主从设备的采样时钟同步完成;Let ΔT clk_min be the phase difference between the latest rising edge of the master-slave sampling clock, T is the sampling clock period, and N is the maximum number of complete sampling clock cycles included in ΔT clk . According to ΔT clk = ΔT clk_min +NT, the ADC sampling clock of the slave device is delayed. The phase difference is until the sampling clock phases of the master and slave devices are consistent, and the sampling clock synchronization of the master and slave devices is completed;

S3、主从设备的触发同步;S3, trigger synchronization of master and slave devices;

S3.1、主设备的触发源设置为自身模拟通道模式,从设备的触发源设置为外触发通道模式,主从设备设置相同的触发深度;S3.1. The trigger source of the master device is set to its own analog channel mode, the trigger source of the slave device is set to the external trigger channel mode, and the master and slave devices set the same trigger depth;

S3.2、设置主设备触发条件,主设备的FPGA根据触发条件生成控制数据存储与读取的FIFO读写使能信号;S3.2. Set the trigger condition of the master device. The FPGA of the master device generates a FIFO read and write enable signal that controls data storage and reading according to the trigger condition;

S3.2.1、主设备根据FIFO读写使能信号共同生成中间控制信号FIFO_MID,具体生成过程为:当检测到FIFO写使能信号的上升沿后拉高FIFO_MID,当检测到FIFO读使能信号的下降沿后拉低FIFO_MID,其他时间保持不变;S3.2.1. The master device jointly generates the intermediate control signal FIFO_MID based on the FIFO read and write enable signals. The specific generation process is: when the rising edge of the FIFO write enable signal is detected, the FIFO_MID is pulled high. When the FIFO read enable signal is detected, Pull FIFO_MID low after the falling edge and remain unchanged at other times;

S3.2.2、FIFO_MID通过主从设备的连接线缆进入从设备,从设备的FPGA根据FIFO_MID生成控制从设备数据存储与读取的FIFO读写使能信号;当从设备的FPGA检测到FIFO_MID的上升沿后,拉高从设备的FIFO写使能信号,此时开始向从设备的FIFO写入采集数据,直到写入数据的长度等于预触发深度,然后拉高从设备的FIFO读使能信号,此时FIFO同时进行采集数据的写入和读出操作;S3.2.2. FIFO_MID enters the slave device through the connection cable of the master-slave device. The FPGA of the slave device generates a FIFO read and write enable signal that controls the data storage and reading of the slave device based on FIFO_MID; when the FPGA of the slave device detects the rise of FIFO_MID After the edge, pull up the FIFO write enable signal of the slave device. At this time, start writing the acquisition data to the FIFO of the slave device until the length of the written data is equal to the pre-trigger depth, and then pull up the FIFO read enable signal of the slave device. At this time, the FIFO performs writing and reading operations of collected data at the same time;

当从设备的FPGA检测到FIFO_MID下降沿后,拉低从设备的FIFO读使能信号,FIFO停止读出数据,开始将采集数据写入后触发存储区,直到后触发存储区数据写满,然后控制从设备写使能拉低、读使能拉高,将写满后的采集数据取出以便后续处理,完成从设备触发过程;When the FPGA of the slave device detects the falling edge of FIFO_MID, it pulls the FIFO read enable signal of the slave device low, the FIFO stops reading data, and starts writing the collected data into the post-trigger storage area until the post-trigger storage area is filled with data, and then Control the write enable of the slave device to be low and the read enable to be high, take out the collected data after writing for subsequent processing, and complete the slave device triggering process;

S3.3、触发点偏移校正;S3.3. Trigger point offset correction;

从机控制信号与主机控制信号相比存在一定延迟,包括因为边沿检测带来的确定打拍延迟和传输路径带来的不确定延迟。由于在触发过程之前已经设计了时钟电路同步,主从设备采样点已经实现同步,因此从机触发信号的延迟意味着触发点会早于触发信号进入FIFO,这将导致主从设备触发点的偏差以及从机触发点相对正常情况出现偏移的情况,因此必须将这些延迟进行校正操作,促使主从设备触发点同步并出现在理想触发位置上;There is a certain delay between the slave control signal and the master control signal, including the definite beat delay caused by edge detection and the uncertain delay caused by the transmission path. Since the clock circuit synchronization has been designed before the triggering process, the sampling points of the master and slave devices have been synchronized, so the delay of the slave trigger signal means that the trigger point will enter the FIFO earlier than the trigger signal, which will lead to a deviation in the trigger points of the master and slave devices. And the trigger point of the slave device deviates from the normal situation, so these delays must be corrected to promote the trigger points of the master and slave devices to be synchronized and appear at the ideal trigger position;

打拍延迟是固定且已知的,打拍时钟是320MHz,每一拍带来的延时是1/320MHz=3.125ns,拍数为主机检测一次沿和从机检测一次沿的两拍,因此只需要将从机采集数据也做两次打拍操作;传输路径带来的不确定延迟采用FPGA内部集成的IDELAYE2语句实现对采集数据的延迟调节,在上位机软件中修改相应端口配置值动态调节延迟值,直到触发点位置回到理想触发位置;The beat delay is fixed and known. The beat clock is 320MHz. The delay brought by each beat is 1/320MHz=3.125ns. The number of beats is two beats when the master detects one edge and the slave detects one edge. Therefore It is only necessary to collect data from the slave and perform two tapping operations; for the uncertain delay caused by the transmission path, the IDELAYE2 statement integrated within the FPGA is used to adjust the delay of the collected data, and the corresponding port configuration value is modified in the host computer software for dynamic adjustment. Delay value until the trigger point position returns to the ideal trigger position;

S3.4、对从机触发信号FIFO_MID进行时序调节使其远离从机处理时钟亚稳态区间;S3.4. Adjust the timing of the slave trigger signal FIFO_MID to keep it away from the metastable range of the slave processing clock;

当从机触发信号传输总延迟与处理时钟周期相近时,可能会不满足从机处理时钟的建立保持时间需求,从而导致亚稳态。亚稳态一旦产生,信号可能会在一个甚至多个周期后才生效,这将导致采集模式下触发信号出现时序混乱,FIFO进行错误读写控制,显示在波形上就是每次上电触发点位置都会不同。为了使传输信号远离从机处理时钟亚稳态区间,需对其进行合适的时序延迟;When the total slave trigger signal transmission delay is close to the processing clock cycle, the setup and hold time requirements of the slave processing clock may not be met, resulting in metastability. Once the metastable state is generated, the signal may not take effect until one or even multiple cycles, which will cause the timing of the trigger signal to be confused in the acquisition mode. The FIFO will perform incorrect read and write control, and the trigger point position displayed on the waveform will be the position of the trigger point each time the power is turned on. It will all be different. In order to keep the transmission signal away from the metastable range of the slave processing clock, appropriate timing delay is required;

最佳延迟值按以下步骤确定:以FIFO_MID信号延迟至恰好远离亚稳态区间,数据传输从不对齐到对齐为起点delay0,然后加大延迟值至数据恰好从对齐到不对齐为终点delay1,则最佳延迟值为(delay0+delay1)/2,然后FPGA调用内部IDELAYE2资源对从机触发信号进行独立调节延时,至此完成主从设备触发同步。The optimal delay value is determined according to the following steps: delay the FIFO_MID signal until it is just far away from the metastable range, and the data transmission is from unaligned to aligned as the starting point delay0, and then increase the delay value until the data is exactly from aligned to unaligned as the end point delay1, then The optimal delay value is (delay0+delay1)/2, and then the FPGA calls the internal IDELAYE2 resource to independently adjust the delay of the slave trigger signal, thus completing the master-slave device trigger synchronization.

S4、第一、二两台数字示波器同步完成后,将第二台数字示波器设置为主设备,第三台数字示波器设置为从设备,再按照步骤(2)、(3)完成同步,然后以此类推,完成所有数字示波器的同步;S4. After the synchronization of the first and second digital oscilloscopes is completed, set the second digital oscilloscope as the master device and the third digital oscilloscope as the slave device. Then follow steps (2) and (3) to complete the synchronization, and then use By analogy, the synchronization of all digital oscilloscopes is completed;

S5、当所有数字示波器同步完成后,任意选择一台数字示波器作为主设备,其余的数字示波器均为从设备,从而形成多通道的数据采集系统。S5. When all digital oscilloscopes are synchronized, select any digital oscilloscope as the master device, and the rest of the digital oscilloscopes are slave devices, thus forming a multi-channel data acquisition system.

尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention are described above to facilitate those skilled in the art to understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as the various changes are within the spirit and scope of the present invention as defined and determined by the appended claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

Claims (1)

1.一种多台数字示波器的采样同步方法,其特征在于,包括以下步骤:1. A sampling synchronization method for multiple digital oscilloscopes, characterized in that it includes the following steps: (1)、设系统中共有M台数字示波器需要采样同步,每台数字示波器依次串联;(1) Assume that there are M digital oscilloscopes in the system that need sampling synchronization, and each digital oscilloscope is connected in series in turn; (2)、主从设备的采样时钟同步;(2) Synchronization of sampling clocks between master and slave devices; (2.1)、将第一台数字示波器作为主设备,第二台数字示波器作为从设备,进行数字示波器采集进程;(2.1) Use the first digital oscilloscope as the master device and the second digital oscilloscope as the slave device to perform the digital oscilloscope acquisition process; (2.1.1)、主设备的内部晶振为时钟芯片提供10MHz的时钟源,与此同时单独输出一路10MHz同步时钟信号;(2.1.1) The internal crystal oscillator of the main device provides a 10MHz clock source for the clock chip, and at the same time outputs a separate 10MHz synchronous clock signal; (2.1.2)、主从设备内部电路设计相同,均设计具有双向输入输出功能的时钟接口A和B,10MHz同步时钟信号经过主设备内的FPGA时钟编程控制电路传送给时钟接口B,该接口通过同轴线与从设备时钟接口A相连;(2.1.2) The internal circuit design of the master and slave devices is the same. Both clock interfaces A and B are designed with bidirectional input and output functions. The 10MHz synchronous clock signal is transmitted to the clock interface B through the FPGA clock programming control circuit in the master device. This interface Connected to the slave device clock interface A through a coaxial line; (2.1.3)、10MHz同步时钟信号经过从设备内的FPGA时钟编程控制电路传送到从设备的时钟电路,该电路不断调节从设备晶振的相位,使其与10MHz同步时钟信号相位相等,调节好的晶振为从设备时钟芯片提供10MHz的时钟源;(2.1.3), the 10MHz synchronous clock signal is transmitted to the clock circuit of the slave device through the FPGA clock programming control circuit in the slave device. The circuit continuously adjusts the phase of the slave device crystal oscillator to make it equal to the phase of the 10MHz synchronous clock signal. When the adjustment is good The crystal oscillator provides a 10MHz clock source for the slave device clock chip; (2.1.4)、主从设备以各自时钟源经过相同的时钟芯片产生ADC的采样时钟,开始数据采集,模拟信号以相同路径经过ADC传输至FPGA的内部FIFO存储器;(2.1.4). The master and slave devices use their respective clock sources to generate the sampling clock of the ADC through the same clock chip, start data collection, and the analog signal is transmitted to the internal FIFO memory of the FPGA through the ADC through the same path; (2.2)、进行估算进程,计算同步时钟信号从主设备晶振传输至从设备晶振的传输延迟时间ΔTclk(2.2) Carry out the estimation process and calculate the transmission delay time ΔT clk of the synchronous clock signal from the master device crystal oscillator to the slave device crystal oscillator; (2.2.1)、启动信号发生器产生10MHz测试信号,用等长的同轴连接线分别连接到主设备的时钟接口A和从设备的时钟接口B,并进入各设备内的FPGA,此传输时间记为T1和T2,T1=T2;(2.2.1), start the signal generator to generate a 10MHz test signal, use equal-length coaxial cables to connect to the clock interface A of the master device and the clock interface B of the slave device, and enter the FPGA in each device. This transmission Time is recorded as T1 and T2, T1=T2; (2.2.2)、主设备内测试信号通过FPGA时钟编程控制模块传送到时钟电路,时钟电路不断调节主设备晶振的相位,使其与测试信号相位相等,此传输时间记为Tclk;调节好的晶振按(2.1.2)传输路径传输给从设备的时钟接口A,最后传输到从设备FPGA内部,传输时间记为Tnet;(2.2.2). The test signal in the main device is transmitted to the clock circuit through the FPGA clock programming control module. The clock circuit continuously adjusts the phase of the crystal oscillator of the main device to make it equal to the phase of the test signal. This transmission time is recorded as Tclk; the adjusted The crystal oscillator is transmitted to the clock interface A of the slave device according to the transmission path (2.1.2), and finally transmitted to the internal device FPGA. The transmission time is recorded as Tnet; (2.2.3)、从设备启动FPGA内部计数器,并利用FPGA内部布线工具使测试信号到计数器的路径与时钟信号在FPGA时钟编程控制电路的传输路径相同,计数器在检测到信号发生器输出测试信号后开始计数,检测到同步时钟信号后结束计数,计数时间为:T=T1+Tclk+Tnet-T2=Tclk+Tnet;(2.2.3), start the FPGA internal counter from the device, and use the FPGA internal wiring tool to make the path of the test signal to the counter the same as the transmission path of the clock signal in the FPGA clock programming control circuit. The counter detects that the signal generator outputs the test signal. Then start counting, and end counting after detecting the synchronous clock signal. The counting time is: T=T1+Tclk+Tnet-T2=Tclk+Tnet; (2.2.4)、由(2.1.2)和(2.1.3)中同步时钟信号传输路径以及(2.2.3)中FPGA内部布线布局可知:同步时钟信号从主设备晶振传输至从设备晶振的传输延迟ΔTclk=Tclk+Tnet,即ΔTclk=T;(2.2.4), from the synchronous clock signal transmission path in (2.1.2) and (2.1.3) and the FPGA internal wiring layout in (2.2.3), it can be seen that the synchronous clock signal is transmitted from the master device crystal oscillator to the slave device crystal oscillator. Transmission delay ΔT clk =Tclk + Tnet, that is, ΔT clk =T; (2.3)、主从采样时钟偏斜校正;(2.3), master-slave sampling clock skew correction; 设ΔTclk_min为主从采样时钟相隔最近上升沿的相位差,T为采样时钟周期,N为ΔTclk包含的最大完整采样时钟周期数,根据ΔTclk=ΔTclk_min+NT延迟从设备的ADC采样时钟相位差,直至主从设备采样时钟相位一致,至此主从设备的采样时钟同步完成;Let ΔT clk_min be the phase difference between the latest rising edge of the master-slave sampling clock, T is the sampling clock period, and N is the maximum number of complete sampling clock cycles included in ΔT clk . According to ΔT clk = ΔT clk_min +NT, the ADC sampling clock of the slave device is delayed. The phase difference is until the sampling clock phases of the master and slave devices are consistent, and the sampling clock synchronization of the master and slave devices is completed; (3)、主从设备的触发同步;(3) Trigger synchronization of master and slave devices; (3.1)、主设备的触发源设置为自身模拟通道模式,从设备的触发源设置为外触发通道模式,主从设备设置相同的触发深度;(3.1). The trigger source of the master device is set to its own analog channel mode, the trigger source of the slave device is set to the external trigger channel mode, and the master and slave devices set the same trigger depth; (3.2)、设置主设备触发条件,主设备的FPGA根据触发条件生成控制数据存储与读取的FIFO读写使能信号;(3.2) Set the trigger conditions of the master device. The FPGA of the master device generates FIFO read and write enable signals that control data storage and reading according to the trigger conditions; (3.2.1)、主设备根据FIFO读写使能信号共同生成中间控制信号FIFO_MID,具体生成过程为:当检测到FIFO写使能信号的上升沿后拉高FIFO_MID,当检测到FIFO读使能信号的下降沿后拉低FIFO_MID,其他时间保持不变;(3.2.1), the master device jointly generates the intermediate control signal FIFO_MID according to the FIFO read and write enable signals. The specific generation process is: when the rising edge of the FIFO write enable signal is detected, the FIFO_MID is pulled high. When the FIFO read enable is detected, After the falling edge of the signal, FIFO_MID is pulled low and remains unchanged at other times; (3.2.2)、FIFO_MID通过主从设备的连接线缆进入从设备,从设备的FPGA根据FIFO_MID生成控制从设备数据存储与读取的FIFO读写使能信号;当从设备的FPGA检测到FIFO_MID的上升沿后,拉高从设备的FIFO写使能信号,此时开始向从设备的FIFO写入采集数据,直到写入数据的长度等于预触发深度,然后拉高从设备的FIFO读使能信号,此时FIFO同时进行采集数据的写入和读出操作;(3.2.2), FIFO_MID enters the slave device through the connection cable of the master-slave device, and the FPGA of the slave device generates a FIFO read and write enable signal that controls the storage and reading of data from the slave device based on FIFO_MID; when the FPGA of the slave device detects FIFO_MID After the rise of signal, at this time the FIFO is simultaneously writing and reading the collected data; 当从设备的FPGA检测到FIFO_MID下降沿后,拉低从设备的FIFO读使能信号,FIFO停止读出数据,开始将采集数据写入后触发存储区,直到后触发存储区数据写满,然后控制从设备写使能拉低、读使能拉高,将写满后的采集数据取出以便后续处理,完成从设备触发过程;When the FPGA of the slave device detects the falling edge of FIFO_MID, it pulls the FIFO read enable signal of the slave device low, the FIFO stops reading data, and starts writing the collected data into the post-trigger storage area until the post-trigger storage area is filled with data, and then Control the write enable of the slave device to be low and the read enable to be high, take out the collected data after writing for subsequent processing, and complete the slave device triggering process; (3.3)、触发点偏移校正;(3.3), trigger point offset correction; 从设备的FPGA对取出的采集数据做延时处理,补偿边沿检测以及传输路径的延迟,此延迟值通过上位机进行调节,直到触发点位置回到理想触发位置;The FPGA of the slave device performs delay processing on the collected data taken out to compensate for the delay in edge detection and transmission path. This delay value is adjusted by the host computer until the trigger point position returns to the ideal trigger position; (3.4)、对从机触发信号FIFO_MID进行时序调节使其远离从机处理时钟亚稳态区间;(3.4) Adjust the timing of the slave trigger signal FIFO_MID to keep it away from the metastable range of the slave processing clock; 最佳延迟值按以下步骤确定:以FIFO_MID信号延迟至恰好远离亚稳态区间,数据传输从不对齐到对齐为起点delay0,然后加大延迟值至数据恰好从对齐到不对齐为终点delay1,则最佳延迟值为(delay0+delay1)/2,然后FPGA调用内部IDELAYE2资源对从机触发信号进行独立调节延时,至此完成主从设备触发同步;The optimal delay value is determined according to the following steps: delay the FIFO_MID signal until it is just far away from the metastable range, and the data transmission is from unaligned to aligned as the starting point delay0, and then increase the delay value until the data is exactly from aligned to unaligned as the end point delay1, then The optimal delay value is (delay0+delay1)/2, and then the FPGA calls the internal IDELAYE2 resource to independently adjust the delay of the slave trigger signal. At this point, the master-slave device trigger synchronization is completed; (4)、第一、二两台数字示波器同步完成后,将第二台数字示波器设置为主设备,第三台数字示波器设置为从设备,再按照步骤(2)、(3)完成同步,然后以此类推,完成所有数字示波器的同步;(4) After the synchronization of the first and second digital oscilloscopes is completed, set the second digital oscilloscope as the master device and the third digital oscilloscope as the slave device, and then follow steps (2) and (3) to complete the synchronization. Then by analogy, complete the synchronization of all digital oscilloscopes; (5)、当所有数字示波器同步完成后,任意选择一台数字示波器作为主设备,其余的数字示波器均为从设备,从而形成多通道的数据采集系统。(5) After all digital oscilloscopes are synchronized, any digital oscilloscope can be selected as the master device, and the rest of the digital oscilloscopes are slave devices, thus forming a multi-channel data acquisition system.
CN202311028523.2A 2023-08-15 2023-08-15 Sampling synchronization method for multiple digital oscilloscopes Pending CN117054715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311028523.2A CN117054715A (en) 2023-08-15 2023-08-15 Sampling synchronization method for multiple digital oscilloscopes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311028523.2A CN117054715A (en) 2023-08-15 2023-08-15 Sampling synchronization method for multiple digital oscilloscopes

Publications (1)

Publication Number Publication Date
CN117054715A true CN117054715A (en) 2023-11-14

Family

ID=88668761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311028523.2A Pending CN117054715A (en) 2023-08-15 2023-08-15 Sampling synchronization method for multiple digital oscilloscopes

Country Status (1)

Country Link
CN (1) CN117054715A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118011941A (en) * 2024-04-10 2024-05-10 中国人民解放军国防科技大学 Centralized trigger synchronization method and simulation verification platform for multi-FPGA distributed probes
CN118091221A (en) * 2024-04-23 2024-05-28 成都玖锦科技有限公司 Multichannel trigger offset adjustment method for FPGA parallel architecture

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118011941A (en) * 2024-04-10 2024-05-10 中国人民解放军国防科技大学 Centralized trigger synchronization method and simulation verification platform for multi-FPGA distributed probes
CN118011941B (en) * 2024-04-10 2024-06-25 中国人民解放军国防科技大学 Centralized trigger synchronization method and simulation verification platform for multi-FPGA distributed probes
CN118091221A (en) * 2024-04-23 2024-05-28 成都玖锦科技有限公司 Multichannel trigger offset adjustment method for FPGA parallel architecture

Similar Documents

Publication Publication Date Title
CN117054715A (en) Sampling synchronization method for multiple digital oscilloscopes
US8271824B2 (en) Memory interface and operating method of memory interface
TWI442241B (en) Data Synchronization System and Method for Multi - measure Instrument
CN106253902A (en) There is the reset of many device synchronization and identify the multi-channel parallel acquisition system of calibration function
CN113533815B (en) Multi-channel sampling synchronization method based on time stamps
WO2022057844A1 (en) Device synchronous calibration method and apparatus, devices, and storage medium
CN103309397B (en) Based on the synchronous sampling method of the data acquisition equipment of USB
CN103378826A (en) High precision single edge capture and delay measurement circuit
EP2445137B1 (en) Method and device for aligning phases of the master and stand-by clocks
CN103869182B (en) The combining unit transient test system controlled based on the Precise Discrete time
KR100995812B1 (en) Test device, test method, and program
WO2008007636A1 (en) Tester, adjustment method, and adjustment program
US10990120B2 (en) Low latency FIFO with auto sync
CN109032498A (en) A kind of waveform quantization synchronous method of the multichannel collecting system of more FPGA
US20110191066A1 (en) Method and Apparatus for Synchronization of Test and Measurement Apparatuses
US12092688B2 (en) Circuit for transferring data from one clock domain to another
CN107168163A (en) A kind of submicrosecond Multi-path synchronous triggering device and its triggering method
CN106918730A (en) A kind of digital oscilloscope and its multi channel signals synchronous method
CN117054949A (en) Sampling synchronous correction method for multiple digital oscilloscopes
CN103812731B (en) Digitization sampling time delay frequency conversion measuring method and measuring system
CN103105514B (en) A kind of oscillograph with digital meter frequency function
CN220207786U (en) Delay deviation measuring circuit
CN103048506B (en) Method for calibrating data merging sequences of parallel acquisition system
CN110955179A (en) Dual-channel shared clock trigger delay adjusting device based on PCI bus
JP7214855B2 (en) META STABLE STATE DETECTION APPARATUS AND METHOD, ADC CIRCUIT

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