CN109581016B - Random time equivalent sampling system - Google Patents

Random time equivalent sampling system Download PDF

Info

Publication number
CN109581016B
CN109581016B CN201811321479.3A CN201811321479A CN109581016B CN 109581016 B CN109581016 B CN 109581016B CN 201811321479 A CN201811321479 A CN 201811321479A CN 109581016 B CN109581016 B CN 109581016B
Authority
CN
China
Prior art keywords
module
data
sampling
pulse
trigger
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
CN201811321479.3A
Other languages
Chinese (zh)
Other versions
CN109581016A (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.)
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 CN201811321479.3A priority Critical patent/CN109581016B/en
Publication of CN109581016A publication Critical patent/CN109581016A/en
Application granted granted Critical
Publication of CN109581016B publication Critical patent/CN109581016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0209Arrangements for displaying electric variables or waveforms for displaying measured electric variables in digital form in numerical form

Abstract

The invention discloses a random time equivalent sampling system, which is characterized in that sampling data acquired once is subjected to serial-parallel conversion and then is cached, the time interval between a trigger signal and a first followed channel clock is obtained through measurement, an obtained pulse signal is subjected to broadening and then is measured by a pulse measurement module to obtain a measured value, the initial storage unit serial number of the sampling data is obtained through calculation according to the measured value, then a waveform reconstruction RAM reads the cached data, the read data is subjected to parallel-serial conversion firstly, then the storage unit serial numbers corresponding to the sampling points are calculated according to the initial storage unit serial numbers and equivalent sampling multiples, and the sampling data is stored; and when the batch of the sampling data reaches the equivalent sampling times, outputting the data stored in the waveform reconstruction RAM as equivalent sampling data. Compared with a software implementation mode, the method has the advantages of high data rearrangement efficiency and high waveform recovery speed, so that the waveform refresh rate of the oscilloscope in an equivalent sampling mode is improved.

Description

Random time equivalent sampling system
Technical Field
The invention belongs to the technical field of sampling, and particularly relates to a random time equivalent sampling system.
Background
The digital storage oscilloscope is one of main instruments for testing and analyzing signals, and has wide application in information communication, high-energy physics, medical electronics and other industries. The digital storage oscilloscope mainly works on the principle that a signal conditioning circuit regulates an input signal into the optimal input range of an analog-to-digital converter (ADC), the ADC collects and quantizes an analog input signal, and a Field-Programmable Gate Array (FPGA) controls a memory to access data according to a trigger condition. Due to the limitation of the ADC sampling rate and the Nyquist sampling theorem, the bandwidth of a signal which can be observed by the digital storage oscilloscope in a real-time sampling mode is very limited, and a random equivalent sampling technology is generally required to observe a high-frequency periodic signal.
The current random equivalent sampling technology utilizes FPGA to output random pulses, broadens the pulses through an external circuit, simultaneously caches random sampling data, then utilizes upper computer software to rearrange and combine the random sampling data, and finally recovers and displays waveforms. Fig. 1 is a flow chart of a software reconstruction waveform. As shown in fig. 1, when the waveform is reconstructed by using software, the oscilloscope needs to repeatedly perform start-up acquisition, determine whether acquisition is completed, and read data many times every time the oscilloscope refreshes one waveform software. Due to the limitation of the bus rate and the operation rate of the main controller, particularly under the condition of larger equivalent sampling multiplying power, software needs to spend a large amount of time for waveform reconstruction, so that dead time is longer in an equivalent sampling mode of the oscilloscope, the waveform refresh rate is reduced, the oscilloscope is insensitive to signal change, and the practicability is not strong.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a random time equivalent sampling system, which utilizes an FPGA (field programmable gate array) to reconstruct data and has the characteristics of high data rearrangement efficiency, high waveform recovery speed and the like compared with a software implementation mode, thereby improving the waveform refresh rate of an oscilloscope in an equivalent sampling mode.
In order to achieve the purpose, the random time equivalent sampling system comprises an ADC (analog-to-digital converter) module, a trigger signal generation module, a serial-parallel conversion module, a data cache module, a pulse output module, a pulse widening module, a pulse measurement module, an initial storage unit calculation module, a parallel-serial conversion module and a waveform reconstruction RAM (random access memory), wherein the serial-parallel conversion module, the data cache module, the pulse output module, the pulse measurement module, the initial storage unit calculation module, the parallel-serial conversion module and the waveform reconstruction RAM are realized in an FPGA (field programmable gate array);
the ADC module is used for sampling an input signal, sending the acquired sampling data to the data serial-parallel conversion module, and sending a channel associated clock ADCLK of the sampling data to the data cache module and the pulse output module;
the trigger signal generation module is used for receiving an input signal, comparing the input signal with a preset trigger level, generating a trigger signal TRIG and sending the trigger signal TRIG to the pulse output module;
the serial-parallel conversion module deserializes and reduces the speed of the sampled DATA, and sends M paths of converted DATA to the DATA cache module as parallel sampled DATA DATA, wherein M represents the deserializing and speed reducing multiplying power of the sampled DATA, the value of the deserializing and speed reducing multiplying power is set according to an associated clock ADCLK, and the clock of the parallel sampled DATA DATA is required to be consistent with the associated clock ADCLK;
the DATA caching module receives the parallel sampling DATA DATA and the associated clock ADCLK, caches the parallel sampling DATA DATA under the associated clock ADCLK, generates a trigger enable signal TRIG _ EN during caching and sends the trigger enable signal TRIG _ EN to the pulse output module;
the pulse output module comprises 4 flip-flops D1, D2, D3, D4 and an inverter I, and is used for generating a pulse signal T according to the received associated clock ADCLK, the trigger signal TRIG and the trigger enable signal TRIG _ EN and sending the pulse signal T to the pulse stretching module; the method comprises the steps that a reference voltage Vcc is used as a D end and a set pin of a trigger D1 to be input, a trigger signal TRIG is used as a CP end input of a trigger D1 to be input, a trigger enable signal TRIG _ EN is used as a zero clearing input of a trigger D1, a Q end output signal of a trigger D1 is used as a D end input of a trigger D2 and a CP end input of a trigger D4 to be input, a slave clock ADCLK is used as CP end inputs of triggers D2 and D3, a Q end output signal of the trigger D2 is used as a D end input of a trigger D3, a Q end output signal of the trigger D3 is inverted by an inverter I to be used as a zero clearing input of a trigger D4, the reference voltage Vcc is used as a D end and a set pin of the trigger D4 to be input, and an output signal of a trigger D4 is a pulse signal T;
the pulse stretching module is used for stretching the pulse signal T and sending the stretched pulse signal EXPEND _ T to the pulse measuring module;
the pulse measurement module is used for measuring a pulse signal EXPEND _ T and sending an obtained measurement value count to the initial storage unit calculation module;
the initial storage unit calculation module is used for calculating an initial storage unit serial number S of the sampling data according to the received measured value count and sending the initial storage unit serial number S to the waveform reconstruction RAM; the calculation formula of the initial storage unit number S is as follows:
Figure BDA0001857630570000031
wherein, count _ T and count _2T respectively represent the measured values of the pulse signals which are correspondingly stretched at 1 sampling interval T and 2 sampling intervals 2T and are measured in advance by the pulse measurement module, and X represents the equivalent sampling multiple;
the method comprises the steps of presetting a storage space with the size of X × N × d in a waveform reconstruction RAM, wherein N represents the number of sampling points of an ADC module in single sampling, d represents the data bit width of each sampling point, dividing the storage space into X × N storage units, sending a sampling data reading instruction to a data cache module and a parallel-serial conversion module after the waveform reconstruction RAM receives the serial number S of an initial storage unit of the sampling data, receiving and storing serial sampling data sent by the parallel-serial conversion module, and storing the serial number A of the storage unit corresponding to the nth sampling pointnThe waveform reconstruction RAM generates a reset signal after the sampling data is stored, and sends the reset signal to the data cache module, the pulse output module, the pulse measurement module, the initial storage unit calculation module and the parallel-serial conversion module to start next acquisition;
and the parallel-serial conversion module is used for reading the parallel sampling DATA DATA of this time from the DATA cache module, performing parallel-serial conversion and then sending the serial sampling DATA to the waveform reconstruction RAM.
The invention relates to a random time equivalent sampling system, which is characterized in that sampling data acquired once is subjected to serial-parallel conversion and sent to a data cache module in an FPGA for caching, a pulse output module measures to obtain a time interval between a trigger signal and a first followed channel clock, the output pulse signal is widened by a pulse widening module and then measured by a pulse measuring module to obtain a measured value, an initial storage unit calculating module calculates to obtain an initial storage unit serial number of the sampling data according to the measured value, then a waveform reconstruction RAM reads data from a data cache module, the read data is subjected to parallel-serial conversion firstly, then storage unit serial numbers corresponding to all sampling points are calculated according to the initial storage unit serial number and an equivalent sampling multiple, and the sampling data is stored; and when the batch of the sampling data reaches the equivalent sampling times, outputting the data stored in the waveform reconstruction RAM as equivalent sampling data. Compared with a software implementation mode, the method has the advantages of high data rearrangement efficiency and high waveform recovery speed, so that the waveform refresh rate of the oscilloscope in an equivalent sampling mode is improved.
Drawings
FIG. 1 is a flow chart of a software reconstruction waveform;
FIG. 2 is a block diagram of one embodiment of a random time equivalent sampling system of the present invention;
FIG. 3 is a block diagram of a pulse output module according to the present invention;
fig. 4 is a schematic diagram of a charge-discharge pulse spreading circuit based on a double-slope capacitor in the present embodiment.
Detailed Description
The following description of the embodiments of the present invention is provided in order to better understand the present invention for those skilled in the art with reference to the accompanying drawings. It is to be expressly noted that in the following description, a detailed description of known functions and designs will be omitted when it may obscure the subject matter of the present invention.
Fig. 2 is a block diagram of an embodiment of a random time equivalent sampling system according to the present invention. As shown in fig. 2, the random time equivalent sampling system of the present invention includes an ADC module 1, a trigger signal generation module 2, a serial-to-parallel conversion module 3, a data buffer module 4, a pulse output module 5, a pulse stretching module 6, a pulse measurement module 7, an initial storage unit calculation module 8, a parallel-to-serial conversion module 9, and a waveform reconstruction RAM10, where the serial-to-parallel conversion module 3, the data buffer module 4, the pulse output module 5, the pulse measurement module 7, the initial storage unit calculation module 8, the parallel-to-serial conversion module 9, and the waveform reconstruction RAM10 are implemented in an FPGA, and each module is specifically described below.
The ADC module 1 is configured to sample an input signal, send obtained sampling data to the data serial-to-parallel conversion module 3, and send a channel associated clock ADCLK of the sampling data to the data buffer module 4 and the pulse output module 5.
The trigger signal generating module 2 is configured to receive an input signal, compare the input signal with a preset trigger level, generate a trigger signal TRIG, and send the trigger signal TRIG to the pulse output module 5.
The serial-parallel conversion module 3 performs deserializing and speed reduction on the sampled DATA, and sends the converted M paths of DATA as parallel sampled DATA DATA to the DATA cache module 4. The purpose of serial-parallel conversion is to reduce the speed of the sampled DATA to meet the DATA rate requirement of the FPGA, obviously, the speed of the parallel sampled DATA after speed reduction is 1/M of the original sampled DATA, M represents the deserializing speed reduction multiplying factor of the sampled DATA, the value of M is set according to the associated clock ADCLK, and the clock of the parallel sampled DATA DATA needs to be consistent with the associated clock ADCLK. In fact, the slave clock ADCLK is the working clock of the FPGA.
The DATA buffer module 4 receives the parallel sampling DATA and the associated clock ADCLK, buffers the parallel sampling DATA under the associated clock ADCLK, generates a trigger enable signal TRIG _ EN during buffering, and sends the trigger enable signal TRIG _ EN to the pulse output module 5. During random equivalent sampling, single sampling data is distributed at positions which are equidistant before and after a trigger point, and the generation time of a trigger signal is not fixed, so that the data before and after the trigger point needs to be dynamically cached, and in order to simplify the read-write control flow of cached data, the data caching module 4 is realized based on an asynchronous FIFO inside an FPGA. The generation process of the trigger enable signal TRIG _ EN can be briefly described as follows:
in the data buffer module 4, a counter is provided, which has a size of only half the FIFO capacity and is used to count the data before the trigger signal. When the data buffering starts, the FIFO starts to store data, the counter starts to count, when the data in the FIFO does not reach half, the trigger signal TRIG _ EN is invalid, and at this time, even if the trigger signal is generated, the trigger signal is considered invalid. This is because single sample data is incomplete if the data in the FIFO is less than half capacity. When the counter is full, which means that half of the data in the FIFO is reached, the trigger signal TRIG _ EN is asserted, and the latter trigger signal is an asserted trigger signal, which can be used to control the data buffering. If the trigger signal TRIG _ EN is set to be effective, no trigger signal arrives temporarily, the first half data in the FIFO needs to be dynamically updated, and the data is always kept to be half of the capacity, that is, the first half data is the data before triggering. When the trigger signal comes, the data is continuously written into the storage space at the back half part of the FIFO until the FIFO is full.
The pulse output module 5 comprises 4 flip-flops D1, D2, D3, D4 and an inverter I, and is configured to generate a pulse signal T according to the received slave clock ADCLK, the trigger signal TRIG and the trigger enable signal TRIG _ EN, and send the pulse signal T to the pulse stretching module 6. The design idea of the pulse output module 5 in the invention is as follows:
because the ADC module 1 always works at the highest sampling rate in the equivalent sampling mode, the data output mode of the ADC module 1 is double-edge double-data-rate output, and the data speed reduction module performs four-time speed reduction on the assumption that the highest sampling rate is 1.25 GHz. After the speed reduction processing, the frequency of the associated channel clock is 312.5MHz, the corresponding clock period is 3.2ns, and the time interval delta t between the trigger signal and the first associated channel clock immediately after the trigger signal is in the range of 0-3.2 ns. The key problem of realizing random equivalent sampling is how to accurately measure the time interval delta t between the arrival of a trigger pulse and the first sampling pulse, and the time interval directly determines how to store the acquired data after triggering according to the time sequence, thereby ensuring the correct reconstruction of the waveform. Because delta t is usually below ns level, the pulse widening circuit can accurately measure the pulse signal after being widened by an external circuit, and in order to ensure that the pulse widening circuit outside the FPGA works in a linear region, the widened pulse signal cannot be too narrow, a sampling interval (3.2ns) is superposed on the basis of the original time interval delta t, so that the pulse width of the signal finally sent to the pulse widening circuit is within the range of 3.2-6.4 ns.
Fig. 3 is a structural diagram of a pulse output module in the present invention. As shown in fig. 3, a reference voltage Vcc is input as a D terminal and a set pin of the flip-flop D1, a trigger signal TRIG is input as a CP terminal of the flip-flop D1, a trigger enable signal TRIG _ EN is input as a clear input of the flip-flop D1, a Q terminal output signal of the flip-flop D1 is input as a D terminal of the flip-flop D2 and input as a CP terminal of the flip-flop D4, a slave clock ADCLK is input as CP terminals of the flip-flops D2 and D3, a Q terminal output signal of the flip-flop D2 is input as a D terminal of the flip-flop D3, a Q terminal output signal of the flip-flop D3 is inverted by an I and then input as a clear input of the flip-flop D4, a reference voltage Vcc is input as a D terminal and a set pin of the flip-flop D4, and an output signal of the flip-flop D4 is a pulse signal T.
The specific working process of the pulse output module 5 is as follows: after initial acquisition, output signals of Q ends of the flip-flops D1-D4 are all logic level '0', when the system allows triggering, the output of the TRIG _ EN is high level, the flip-flop D1 is triggered by rising edges, the output level of the flip-flop D1 is changed from '0' to '1', meanwhile, the flip-flop D4 is also triggered by the rising edges, and the output signal, namely the level of the pulse signal T is changed from '0' to '1'; after the flip-flop D1 receives the first trigger edge, the flip-flop D2 detects that the first ADCLK clock edge latches the high level output from the flip-flop D1, and the second ADCLK clock edge latches the high level output from the flip-flop D2 at the flip-flop D3, at which time the flip-flop D4 is cleared, and the pulse signal T output from the flip-flop D4 changes from "1" to "0".
According to the above description, the flip-flops D2 and D3 are used to superimpose a sampling interval on the time interval Δ T, so that the pulse time interval Δ T of the final pulse signal T is between 3.2ns and 6.4 ns.
The pulse stretching module 6 is configured to stretch the pulse signal T, and send the stretched pulse signal EXPEND _ T to the pulse measurement module 7. The specific circuit and the stretching multiple of the pulse stretching module 6 can be set as required, and in this embodiment, the pulse stretching module 6 adopts a pulse stretching circuit based on charging and discharging of a double-slope capacitor. Fig. 4 is a schematic diagram of a charge-discharge pulse spreading circuit based on a double-slope capacitor in the present embodiment. As shown in fig. 4, in the present embodiment, based on the dual-ramp capacitor charge-discharge pulse stretching circuit, when the rising edge of the pulse signal T arrives, the capacitor is charged by the low-current constant current source, and when the falling edge of the pulse arrives, the capacitor is immediately stopped being charged, and simultaneously, the capacitor is charged by the low-current constant current sourceThe charging constant current source is in direct proportion to the low current constant current source to discharge the capacitor, and the voltage of the capacitor is delta U when the capacitor is charged and discharged, namely the charging and discharging time of the capacitor is determined by the current output by the constant current source: Δ T/Δ T ═ Ic/IfK, wherein IfFor discharge current, IcFor charging current, K is the pulse stretching multiple. The stretched pulses can form the time gate of the pulse measuring module 7.
The pulse measurement module 7 is configured to measure the pulse signal EXPEND _ T, and send the obtained measurement value count to the initial storage unit calculation module 7.
The initial storage unit calculation module 7 is configured to calculate an initial storage unit serial number S of the current sampling data according to the received measurement value count, and send the initial storage unit serial number S to the waveform reconstruction RAM 10. The calculation formula of the initial storage unit number S is as follows:
Figure BDA0001857630570000071
wherein, count _ T and count _2T respectively represent the measured values of the pulse signal after stretching corresponding to 1 sampling interval T and 2 sampling intervals measured in advance by the pulse measurement module 7, and X represents the equivalent sampling multiple. count _2T-count _ T is theoretically equal to count _ T, but due to the presence of non-linear factors in the pulse stretching module, the measurement result is affected, the actual value is different from the theoretical value, and in order to reduce the effect on the calculation result, count _2T-count _ T is still used in the denominator.
A storage space with the size of X × N × d is preset in the waveform reconstruction RAM10, where N represents the number of sampling points of a single sampling of the ADC module 1, and d represents the data bit width of each sampling point, and the storage space is divided into X × N storage units, and obviously, the size of each storage unit is d, the waveform reconstruction RAM10 sends a sampling data reading instruction to the data cache module 4 and the parallel-serial conversion module 9 after receiving the initial storage unit serial number S of the current sampling data, then receives and stores serial sampling data sent by the parallel-serial conversion module 9, and the storage unit serial number a corresponding to the nth sampling point is a serial number a of the storage unit corresponding to the nth sampling pointn=S+n×X,n=1,2,…,N。
Because the sampling data of the ADC module 1 is only a part of a complete equivalent sampling, that is, the processing of the waveform reconstruction RAM10 is only partial data each time, in order to obtain a complete equivalent sampling waveform, it is necessary to perform multiple times of acquisition, triggering, buffering, and sorting, that is, to splice together the sampling points at different positions of the repetitive cycle signal waveform, and to recover the original signal. Since sampling is performed for multiple times, other related modules except the waveform reconstruction RAM10 need to be reset every time the sampling is completed, and therefore, after the waveform reconstruction RAM10 finishes storing the sampled data, a reset signal is generated and sent to the data cache module 4, the pulse output module 5, the pulse measurement module 7, the initial storage unit calculation module 7 and the parallel-serial conversion module 9 to be reset, so as to start the next sampling. When the storage frequency of the waveform reconstruction RAM10 reaches the equivalent sampling multiple X, that is, a complete equivalent sampling is completed, and the storage space is full, the data stored in the storage space is output as equivalent sampling data.
The parallel-serial conversion module 9 is configured to read the parallel sample DATA of this time from the DATA buffer module 4, perform parallel-serial conversion, and send the serial sample DATA to the waveform reconstruction RAM 10.
Examples
In order to better explain the technical scheme of the invention, a specific process of the random time equivalent sampling system of the invention is explained in detail by using a specific embodiment.
The present embodiment sets the equivalent sampling magnification to 40. The single-channel highest sampling rate of the ADC module 1 is 1.25GHz, that is, the sampling rate of the ADC module 1 is 1.25GHz, the bit width of data of each sampling point is 8 bits, and the rate of the output slave clock ADCLK is 312.5 MHz. Therefore, the number of ways of the parallel data after the serial-parallel conversion by the serial-parallel conversion module 3 is 4, that is, 1/4 speed reduction is performed, the input data rate of the data cache module 4 is 312.5MHz, and the bit width of the input data is 32 bit. And setting the number of single sampling points to be 64, wherein the data amount stored in the FIFO every time is 16 32-bit data, and the number of the data points corresponds to 64 data points with 8 bits. The FIFO output data rate is determined by the data storage rate of the data reconstruction RAM, and the data bit width is also 32 bits and corresponds to 4 sampling points.
The pulse output module 5 generates a pulse signal T, the pulse stretching module 6 stretches the pulse signal T to obtain a pulse signal EXPEND _ T, and the pulse measurement module 7 sends a measured value count obtained by measurement of the pulse signal T to the initial storage unit calculation module 7. Assume that the measurement value count is 1500.
In order to reduce the error generated when the serial number of the memory cell is calculated each time, pulses corresponding to one clock period (3.2ns) and two clock periods (6.4ns) are input to the pulse measurement module 7 in advance, and count values corresponding to pulse widths of 3.2ns and 6.4ns are obtained by using the pulse measurement module 7, and are respectively recorded as count _3.2ns being 2000 and count _6.4ns being 1000. The initial storage unit calculating module 7 calculates the initial storage unit serial number S after receiving the count value:
Figure BDA0001857630570000081
in the embodiment, the size of a storage space in a data reconstruction RAM is 4 × 40 × d, a waveform reconstruction RAM10 sends a sampling data reading instruction to a data cache module 4 and a parallel-serial conversion module 9 after receiving an initial storage unit serial number S of sampling data of the time, the FIFO outputs one beat of data, the parallel-serial conversion module 9 divides the data into 4 points and stores the points into the data reconstruction RAM, the data reconstruction RAM obtains the storage unit serial number of the sampling data at the current time in the storage space from the initial storage unit serial number and equivalent multiplying power, and the calculation formula is that AnS + N × X is 80+ N × 40, N is 1,2, …, N, i.e., the memory cell number is 80,120,160,200,240 … in that order.
It should be noted that: if the starting memory cell number S is calculated to be 120, the memory cell numbers are 120,160,200 … in sequence, that is, although the starting memory cell numbers are different, the memory cells storing data of two times of sampling data are the same except for the first point, and overwriting of data occurs. This is because the pulse signal T is generated by the slave clock ADCLK and the trigger signal, and the slave clock is obtained by slowing down the sampling rate (data rate) of the ADC. In this embodiment, the speed is reduced by 4 times, that is, M in the calculation formula of the starting storage unit serial number is 4, so when the calculated starting storage unit serial number S is 4 values, i.e., 40, 80,120, and 160, the storage units following each group of data are the same, that is, the previous data are overwritten. The research shows that the sampling times are more in the equivalent random time sampling, so that the occurrence of the above conditions does not have substantial influence on the finally obtained equivalent sampling data.
Although illustrative embodiments of the present invention have been described above to facilitate the understanding of the present invention by those skilled in the art, it should be understood that the present invention is not limited to the scope of the embodiments, and various changes may be made apparent to those skilled in the art as long as they are within the spirit and scope of the present invention as defined and defined by the appended claims, and all matters of the invention which utilize the inventive concepts are protected.

Claims (1)

1. A random time equivalent sampling system is characterized by comprising an ADC (analog-to-digital converter) module, a trigger signal generation module, a serial-parallel conversion module, a data cache module, a pulse output module, a pulse broadening module, a pulse measurement module, an initial storage unit calculation module, a parallel-serial conversion module and a waveform reconstruction RAM (random access memory), wherein the serial-parallel conversion module, the data cache module, the pulse output module, the pulse measurement module, the initial storage unit calculation module, the parallel-serial conversion module and the waveform reconstruction RAM are realized in an FPGA (field programmable gate array);
the ADC module is used for sampling an input signal, sending the acquired sampling data to the data serial-parallel conversion module, and sending a channel associated clock ADCLK of the sampling data to the data cache module and the pulse output module;
the trigger signal generation module is used for receiving an input signal, comparing the input signal with a preset trigger level, generating a trigger signal TRIG and sending the trigger signal TRIG to the pulse output module;
the serial-parallel conversion module deserializes and reduces the speed of the sampled DATA, and sends M paths of converted DATA to the DATA cache module as parallel sampled DATA DATA, wherein M represents the deserializing and speed reducing multiplying power of the sampled DATA, the value of the deserializing and speed reducing multiplying power is set according to an associated clock ADCLK, and the clock of the parallel sampled DATA DATA is required to be consistent with the associated clock ADCLK;
the DATA caching module receives the parallel sampling DATA DATA and the associated clock ADCLK, caches the parallel sampling DATA DATA under the associated clock ADCLK, generates a trigger enable signal TRIG _ EN during caching and sends the trigger enable signal TRIG _ EN to the pulse output module;
the pulse output module comprises 4 flip-flops D1, D2, D3, D4 and an inverter I, and is used for generating a pulse signal T according to the received associated clock ADCLK, the trigger signal TRIG and the trigger enable signal TRIG _ EN and sending the pulse signal T to the pulse stretching module; the method comprises the steps that a reference voltage Vcc is used as a D end and a set pin of a trigger D1 to be input, a trigger signal TRIG is used as a CP end input of a trigger D1 to be input, a trigger enable signal TRIG _ EN is used as a zero clearing input of a trigger D1, a Q end output signal of a trigger D1 is used as a D end input of a trigger D2 and a CP end input of a trigger D4 to be input, a slave clock ADCLK is used as CP end inputs of triggers D2 and D3, a Q end output signal of the trigger D2 is used as a D end input of a trigger D3, a Q end output signal of the trigger D3 is inverted by an inverter I to be used as a zero clearing input of a trigger D4, the reference voltage Vcc is used as a D end and a set pin of the trigger D4 to be input, and an output signal of a trigger D4 is a pulse signal T;
the pulse stretching module is used for stretching the pulse signal T and sending the stretched pulse signal EXPEND _ T to the pulse measuring module;
the pulse measurement module is used for measuring a pulse signal EXPEND _ T and sending an obtained measurement value count to the initial storage unit calculation module;
the initial storage unit calculation module is used for calculating an initial storage unit serial number S of the sampling data according to the received measured value count and sending the initial storage unit serial number S to the waveform reconstruction RAM; the calculation formula of the initial storage unit number S is as follows:
Figure FDA0002630897690000021
wherein, count _ T and count _2T respectively represent the measured values of the pulse signals which are correspondingly stretched at 1 sampling interval T and 2 sampling intervals 2T and are measured in advance by the pulse measurement module, and X represents the equivalent sampling multiple;
the method comprises the steps of presetting a storage space with the size of X × N × d in a waveform reconstruction RAM, wherein N represents the number of sampling points of an ADC module in single sampling, d represents the data bit width of each sampling point, dividing the storage space into X × N storage units, sending a sampling data reading instruction to a data cache module and a parallel-serial conversion module after the waveform reconstruction RAM receives the serial number S of an initial storage unit of the sampling data, receiving and storing serial sampling data sent by the parallel-serial conversion module, and storing the serial number A of the storage unit corresponding to the nth sampling pointnThe waveform reconstruction RAM generates a reset signal after the sampling data is stored, and sends the reset signal to the data cache module, the pulse output module, the pulse measurement module, the initial storage unit calculation module and the parallel-serial conversion module to start next acquisition;
and the parallel-serial conversion module is used for reading the parallel sampling DATA DATA of this time from the DATA cache module, performing parallel-serial conversion and then sending the serial sampling DATA to the waveform reconstruction RAM.
CN201811321479.3A 2018-11-07 2018-11-07 Random time equivalent sampling system Active CN109581016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811321479.3A CN109581016B (en) 2018-11-07 2018-11-07 Random time equivalent sampling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811321479.3A CN109581016B (en) 2018-11-07 2018-11-07 Random time equivalent sampling system

Publications (2)

Publication Number Publication Date
CN109581016A CN109581016A (en) 2019-04-05
CN109581016B true CN109581016B (en) 2020-10-16

Family

ID=65921735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811321479.3A Active CN109581016B (en) 2018-11-07 2018-11-07 Random time equivalent sampling system

Country Status (1)

Country Link
CN (1) CN109581016B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110836993B (en) * 2019-11-14 2021-01-26 电子科技大学 FPGA-based random equivalent acquisition system
CN110941461B (en) * 2019-11-26 2023-08-04 杭州皓智天诚信息科技有限公司 Parameter configuration terminal of business processing software
CN115509167B (en) * 2022-11-17 2023-01-20 安徽省国盛量子科技有限公司 Parameter configuration method of pulse sequence, signal control and acquisition method and equipment
CN117420342B (en) * 2023-11-08 2024-04-09 苏州联讯仪器股份有限公司 Multichannel acquisition method, device, system, FPGA and sampling oscilloscope

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749985A (en) * 2005-10-10 2006-03-22 中国人民解放军国防科学技术大学 Periodic signal equivalent sampling method based on parametric model
EP1847103A2 (en) * 2005-02-07 2007-10-24 Lecroy Corporation Coherent interleaved sampling
CN101275973A (en) * 2008-04-18 2008-10-01 电子科技大学 Digital storage oscillograph with very high waveform capturing rate
CN201489112U (en) * 2009-05-23 2010-05-26 桂林电子科技大学 Pulse ultra-wide-band radar signal receiving device
CN101726644A (en) * 2009-11-20 2010-06-09 电子科技大学 Digital storage oscilloscope with functions of waveform fast location and zooming
CN103197108A (en) * 2013-03-25 2013-07-10 大连理工常州研究院有限公司 Equivalent sampling method of data acquisition card
CN103490749A (en) * 2013-09-25 2014-01-01 电子科技大学 Digital synthesis device for high-speed ultra-narrow pulses
CN103809001A (en) * 2012-11-09 2014-05-21 江苏绿扬电子仪器集团有限公司 Digital phosphor oscilloscope pretrigger device
CN104407190A (en) * 2014-11-26 2015-03-11 电子科技大学 Fully-digital random sampling method
CN105044420A (en) * 2015-08-27 2015-11-11 电子科技大学 Waveform searching method of digital oscilloscope
CN106850473A (en) * 2016-12-27 2017-06-13 电子科技大学 A kind of broadband compression sampling system based on random demodulation
CN108307267A (en) * 2017-11-27 2018-07-20 中科观世(北京)科技有限公司 Stochastical sampling system based on target information distribution pattern

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003185683A (en) * 2001-12-21 2003-07-03 Yokogawa Electric Corp Waveform measuring device
US8304719B2 (en) * 2009-02-22 2012-11-06 Xin Wang Precise and thorough background subtraction
US8566053B2 (en) * 2009-03-19 2013-10-22 William Marsh Rice University Method and apparatus for compressive parameter estimation and tracking

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1847103A2 (en) * 2005-02-07 2007-10-24 Lecroy Corporation Coherent interleaved sampling
CN1749985A (en) * 2005-10-10 2006-03-22 中国人民解放军国防科学技术大学 Periodic signal equivalent sampling method based on parametric model
CN101275973A (en) * 2008-04-18 2008-10-01 电子科技大学 Digital storage oscillograph with very high waveform capturing rate
CN201489112U (en) * 2009-05-23 2010-05-26 桂林电子科技大学 Pulse ultra-wide-band radar signal receiving device
CN101726644A (en) * 2009-11-20 2010-06-09 电子科技大学 Digital storage oscilloscope with functions of waveform fast location and zooming
CN103809001A (en) * 2012-11-09 2014-05-21 江苏绿扬电子仪器集团有限公司 Digital phosphor oscilloscope pretrigger device
CN103197108A (en) * 2013-03-25 2013-07-10 大连理工常州研究院有限公司 Equivalent sampling method of data acquisition card
CN103490749A (en) * 2013-09-25 2014-01-01 电子科技大学 Digital synthesis device for high-speed ultra-narrow pulses
CN104407190A (en) * 2014-11-26 2015-03-11 电子科技大学 Fully-digital random sampling method
CN105044420A (en) * 2015-08-27 2015-11-11 电子科技大学 Waveform searching method of digital oscilloscope
CN106850473A (en) * 2016-12-27 2017-06-13 电子科技大学 A kind of broadband compression sampling system based on random demodulation
CN108307267A (en) * 2017-11-27 2018-07-20 中科观世(北京)科技有限公司 Stochastical sampling system based on target information distribution pattern

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
A sparse signal reconstruction approach for sequential equivalent time sampling;Yijiu Zhao;《2016 IEEE International Instrumentation and Measurement Technology Conference Proceedings》;20160526;全文 *
Design and implementation of 500GSPS random equivalent sampling;Design and implementation of 500GSPS random equivalent sampling;《 2015 12th IEEE International Conference on Electronic Measurement & Instruments (ICEMI)》;20160718;全文 *
Design method of automatic calibration software based on intelligent fitting;Fu Zaiming;《2017 13th IEEE International Conference on Electronic Measurement & Instruments (ICEMI)》;20171022;全文 *
Design of acquisition system with real time sampling rate of 5Gsps;Dai Zhijian;《2017 13th IEEE International Conference on Electronic Measurement & Instruments (ICEMI)》;20171022;全文 *
Enhanced Random Equivalent Sampling Based on Compressed Sensing;Yijiu Zhao;《 IEEE Transactions on Instrumentation and Measurement》;20111027;全文 *
Power spectral density estimation from random interleaved samples;Zhao Yijiu;《2017 13th IEEE International Conference on Electronic Measurement & Instruments (ICEMI)》;20171022;全文 *
Ultrasonic signal compressive detection using improved random equivalent sampling;Y.-J. Zhao;《 IET Science, Measurement & Technology 》;20120820;全文 *
Waveform missing mechanisms and a countermeasure in a random sampling system;K. Uchida;《IMTC/98 Conference Proceedings. IEEE Instrumentation and Measurement Technology Conference. Where Instrumentation is Going (Cat. No.98CH36222)》;19980521;全文 *
基于随机解调的压缩采样与波形重构的实现;吴浩;《CNKI优秀硕士学位论文全文库》;20130115;全文 *
谱稀疏信号随机等效采样重构方法研究;庄晓燕;《电子测量与仪器学报》;20151031;全文 *

Also Published As

Publication number Publication date
CN109581016A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN109581016B (en) Random time equivalent sampling system
CN110836993B (en) FPGA-based random equivalent acquisition system
JP5389357B2 (en) Time measurement using a phase-shifted periodic waveform
CN103018512B (en) A kind of oscillograph with external trigger function
CN108158577B (en) Low-power-consumption electrocardiosignal processing circuit and method based on compressed sensing
CN104297543A (en) Hybrid oscilloscope with channel synchronization function
CN104077492A (en) Sample data interpolation method based on FPGA
CN111367158B (en) Waveform digitization time measuring method and system based on SCA
CN103391099A (en) Random sampler suitable for one-dimensional slowly varying signals
CN106338908B (en) Edge detection circuit and time-to-digit converter
Zhijian et al. The application of random equivalent sampling in acquisition system with 5Gsps real-time sampling
CN112067870B (en) Automatic oscilloscope parameter measuring device and method based on FPGA
Hao et al. Key technology design of 6 GSPS high-speed digital storage oscilloscope
CN113091897B (en) Coincidence counting method and device, coincidence counting equipment and storage medium
Kleinfelder et al. The SST multi-G-sample/s switched capacitor array waveform recorder with flexible trigger and picosecond-level timing accuracy
Wanyu et al. Design of random equivalent sampling control module based on FPGA
CN110568233A (en) meter-source integrated synchronous dynamic distortion power source with trigger and implementation method
CN117420342B (en) Multichannel acquisition method, device, system, FPGA and sampling oscilloscope
CN114384288B (en) Signal generating device
Zhijian et al. Design of acquisition system with real time sampling rate of 5Gsps
Li et al. High Precision Digital Trigger Method in 20GSPS High Speed Acquisition System
Hao et al. Research on the technology of high-speed large-capacity data storage in DSO
Zhiqiang et al. Design and implement of the digital storage oscilloscope card based on VHDL
Peng et al. Research on Technique of Intelligent Trigger Unit in Hand-hold Scopemeter
JPH052030A (en) Digital storage oscilloscope

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