A digital oscilloscope based on FPGA preprocessing

By using FPGA in a digital oscilloscope for parallel preprocessing of waveform data, constructing a vertical voltage distribution histogram and sending it to the CPU, the problem of slow waveform analysis of digital oscilloscopes is solved, and the waveform display speed and overall processing efficiency are improved.

CN118795194BActive Publication Date: 2024-12-03成都玖锦科技有限公司
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202411283998.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-03
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

Existing digital oscilloscopes have slow waveform display speed due to slow waveform analysis.

Method used

Design a digital oscilloscope based on FPGA preprocessing. By processing in parallel in the acquisition module, cache module and preprocessing statistics module in the FPGA, constructing a histogram of vertical voltage distribution, and sending it to the CPU synchronously with the waveform data to reduce the CPU's Scan the calculation burden one by one to improve waveform analysis and display speed.

Benefits of technology

Through the hardware parallel processing capability of FPGA, the waveform display speed of the digital oscilloscope is significantly improved, the computing burden on the CPU is reduced, and the overall analysis and display efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795194B_ABST
    Figure CN118795194B_ABST
Patent Text Reader

Abstract

The present application provides a digital oscilloscope based on FPGA preprocessing, which relates to the technical field of digital oscilloscopes and is used to solve the problem of slow waveform display speed caused by slow waveform analysis in existing digital oscilloscopes. Each acquisition module acquires waveform data of the corresponding channel and sends it to the cache module connected to each acquisition module; each cache module caches the waveform data of the corresponding channel and sends it in parallel to the transmission module and the preprocessing statistics module connected to each cache module; each preprocessing statistics module constructs a vertical voltage distribution histogram of the corresponding channel according to the waveform data of the corresponding channel and sends it to the transmission module; the transmission module processes the vertical voltage distribution histograms of multiple channels and the waveform data of multiple channels and sends them to the CPU; the CPU extracts waveform parameters from the vertical voltage distribution histogram, performs waveform analysis and waveform display on the waveform data according to the waveform parameters, thereby improving the overall waveform display speed of the digital oscilloscope.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of digital oscilloscopes and provides a digital oscilloscope based on FPGA preprocessing. Background Art

[0002] In existing digital oscilloscopes, after the Field-Programmable Gate Array (FPGA) collects waveform data, it sends it to the Digital Signal Processing (DSP) or the Central Processing Unit (CPU). The software in the DSP or CPU reads the waveform data and performs corresponding analysis and calculation to obtain different waveform parameters, which are finally displayed on the screen.

[0003] It can be seen that the waveform analysis of digital oscilloscopes is currently basically analyzed and processed by software. The software needs to scan and calculate the received waveform data one by one. As the amount of waveform data increases, the speed of software analyzing data decreases, resulting in a decrease in the waveform display speed of the digital oscilloscope. Summary of the invention

[0004] The present application provides a digital oscilloscope based on FPGA preprocessing, which is used to solve the problem of slow waveform display speed caused by slow waveform analysis in existing digital oscilloscopes.

[0005] In a first aspect, a digital oscilloscope based on FPGA preprocessing is provided, the digital oscilloscope comprising a field programmable gate array FPGA and a central processing unit CPU; the FPGA comprises a plurality of acquisition modules, a plurality of cache modules, a plurality of preprocessing statistics modules and a transmission module; the plurality of acquisition modules are connected to a plurality of channels;

[0006] Each acquisition module is used to acquire waveform data of a corresponding channel, and send the waveform data of the corresponding channel to a buffer module connected to each acquisition module;

[0007] Each cache module is used to cache the waveform data of the corresponding channel, and send the waveform data of the corresponding channel in parallel to the transmission module and the pre-processing statistics module connected to each cache module;

[0008] Each pre-processing statistical module is used to construct a vertical voltage distribution histogram of the corresponding channel according to the waveform data of the corresponding channel, and send the vertical voltage distribution histogram of the corresponding channel to the transmission module;

[0009] The transmission module is used for processing the vertical voltage distribution histograms of the multiple channels and the waveform data of the multiple channels and sending them to the CPU;

[0010] The CPU is used to extract waveform parameters from the vertical voltage distribution histogram of each channel, and perform waveform analysis and waveform display on the waveform data of the corresponding channel according to the waveform parameters; wherein the waveform parameters include average value, maximum value, minimum value, and standard deviation.

[0011] Optionally, each preprocessing statistics module is also used to:

[0012] Count the maximum and minimum values ​​in the waveform data of the corresponding channel;

[0013] Plotting the minimum value at the leftmost side of the vertical voltage distribution histogram of the corresponding channel;

[0014] The maximum value is plotted at the far right of the vertical voltage distribution histogram of the corresponding channel.

[0015] Optionally, each cache module is specifically used to store each frame of waveform data of the corresponding channel in a common manner, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module and the preprocessing statistics module connected to each cache module;

[0016] Each pre-processing statistical module is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module;

[0017] The transmission module is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel and send it to the CPU;

[0018] The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

[0019] Optionally, each preprocessing statistics module is specifically used for:

[0020] Extract multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module.

[0021] Optionally, the transmission module is specifically used for:

[0022] While waiting to receive the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, the received each frame of waveform data is analyzed and cached; the analysis includes determining the corresponding channel for receiving each frame of waveform data, dividing the data type, and selecting the sending channel;

[0023] After receiving the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, combining the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel to obtain combined data of the multiple channels;

[0024] Packing and bit-width converting the combined data of the multiple channels according to data types to obtain multiple packed data;

[0025] Each packet data is sent to the CPU through the selected sending channel.

[0026] Optionally, each cache module is specifically used to perform deep storage on multiple frames of waveform data of the corresponding channel, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module and the pre-processing statistics module connected to each cache module;

[0027] Each pre-processing statistical module is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module; and after constructing a vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel according to multiple frames of waveform data of the corresponding channel, send the vertical voltage distribution histogram corresponding to the multiple frames of waveform data of the corresponding channel to the transmission module;

[0028] The transmission module is specifically used for combining the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel and then sending it to the CPU, and combining the vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel to the tail of multiple frames of waveform data of the corresponding channel and then sending it to the CPU;

[0029] The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel and the vertical voltage distribution histogram corresponding to multiple frames of waveform data, and perform waveform analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

[0030] Optionally, each preprocessing statistics module is specifically used for:

[0031] Extracting multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, constructing a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and sending the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module;

[0032] The multiple quantization amplitude values ​​are saved until the multi-frame waveform data of the corresponding channel is extracted, and a vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is constructed according to the frequency of occurrence of each quantization amplitude value in the multi-frame waveform data of the corresponding channel, and the vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is sent to the transmission module.

[0033] Optionally, each pre-processing statistics module is further used to mark a frame for a vertical voltage distribution histogram corresponding to each frame of waveform data of a corresponding channel;

[0034] The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frame mark, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

[0035] Optionally, the CPU is specifically used to extract waveform parameters from a vertical voltage distribution histogram corresponding to multiple frames of waveform data of a corresponding channel, and perform eye diagram analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present application provides a digital oscilloscope based on FPGA preprocessing, which includes a field programmable gate array FPGA and a central processing unit CPU; the FPGA includes multiple acquisition modules, multiple cache modules, multiple preprocessing statistics modules and a transmission module; the multiple acquisition modules are connected to multiple channels; each acquisition module is used to acquire waveform data of a corresponding channel, and send the waveform data of the corresponding channel to the cache module connected to each acquisition module; each cache module is used to cache the waveform data of the corresponding channel, and send the waveform data of the corresponding channel to the transmission module and the preprocessing statistics module connected to each cache module in parallel; each preprocessing statistics module is used to construct a vertical voltage distribution histogram of the corresponding channel according to the waveform data of the corresponding channel, and send the vertical voltage distribution histogram of the corresponding channel to the transmission module; the transmission module is used to process the vertical voltage distribution histograms of multiple channels and the waveform data of multiple channels, and send them to the CPU; the CPU is used to extract waveform parameters from the vertical voltage distribution histogram of each channel, and perform waveform analysis and waveform display on the waveform data of the corresponding channel according to the waveform parameters; wherein the waveform parameters include average value, maximum value, minimum value and standard deviation.

[0038] In this application, before uploading waveform data, FPGA counts vertical voltage distribution histogram according to waveform data, provides pre-processing for subsequent software to do various waveform analysis, and then uploads vertical voltage distribution histogram and waveform data to CPU synchronously. The software in the subsequent CPU does not need to scan the waveform data one by one to calculate the waveform parameters, and can directly extract various waveform parameters from the vertical voltage distribution histogram, perform waveform analysis and display according to these waveform parameters, and improve the waveform analysis speed of the CPU. And FPGA belongs to hardware digital circuit, has parallel processing capability, and is faster than the analysis speed of software operation. The FPGA undertakes the histogram statistics work, which can improve the overall waveform display speed of the digital oscilloscope. And by processing waveform data of different channels in parallel through multiple modules, the processing speed of FPGA can be further improved. After the waveform data and vertical voltage distribution histogram of multiple channels are processed by a transmission module, they are sent to the central processing unit for waveform analysis and waveform display, thereby improving the overall display speed of the digital oscilloscope. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0040] Figure 1A structural schematic diagram of a digital oscilloscope based on FPGA preprocessing involved in an embodiment of the present application;

[0041] Figure 2 A data processing flow chart of the acquisition module and the cache module provided in the embodiment of the present application;

[0042] Figure 3 A statistical diagram of a vertical voltage distribution histogram provided in an embodiment of the present application;

[0043] Figure 4 A data processing flow chart of the FPGA provided in the embodiment of the present application;

[0044] Figure 5 A schematic diagram of the data processing flow of multiple channels provided in an embodiment of the present application.

[0045] Markings in the figure: 10 - field programmable gate array, 20 - central processing unit, 101 - acquisition module, 102 - cache module, 103 - pre-processing statistics module, 104 - transmission module. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other arbitrarily. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0047] In order to solve the problem that the existing digital oscilloscope has a slow waveform display speed due to slow waveform analysis, the present application embodiment provides a digital oscilloscope based on FPGA preprocessing. Figure 1 , which is a structural diagram of a digital oscilloscope based on FPGA preprocessing provided in an embodiment of the present application. The field programmable gate array 10 includes multiple acquisition modules 101, multiple cache modules 102, multiple preprocessing statistics modules 103 and a transmission module 104; multiple acquisition modules 101 are connected to multiple channels; each acquisition module 101 is connected to a cache module 102, each cache module 102 is respectively connected to a preprocessing statistics module 103 and a transmission module 104, each preprocessing statistics module 103 is connected to the transmission module 104, and the transmission module 104 is connected to the central processing unit 20. The functions of each module are introduced below.

[0048] Each acquisition module 101 is used to acquire waveform data of a corresponding channel, and send the waveform data of the corresponding channel to the buffer module 102 connected to each acquisition module.

[0049] Each buffer module 102 is used to buffer the waveform data of the corresponding channel, and send the waveform data of the corresponding channel in parallel to the transmission module 104 and the pre-processing statistics module 103 connected to each buffer module 102 .

[0050] Each pre-processing statistics module 103 is used to construct a vertical voltage distribution histogram of the corresponding channel according to the waveform data of the corresponding channel, and send the vertical voltage distribution histogram of the corresponding channel to the transmission module 104 .

[0051] The transmission module 104 is used to process the vertical voltage distribution histograms of the multiple channels and the waveform data of the multiple channels and send them to the central processor 20 .

[0052] The central processing unit 20 is used to extract waveform parameters from the vertical voltage distribution histogram of each channel, and perform waveform analysis and waveform display on the waveform data of the corresponding channel according to the waveform parameters; wherein the waveform parameters include average value, maximum value, minimum value, and standard deviation.

[0053] In the specific implementation process, the acquisition module 101 can be an analog-to-digital converter (ADC). If the ADC has an 8-bit resolution, it outputs a 0-255 value, and if the ADC has a 12-bit resolution, it outputs a quantized value of 0-4095, and sends the waveform data of the digital signal to the cache module 102. Since the acquisition module 101 directly outputs the quantized waveform data, after receiving the waveform data, the subsequent pre-processing statistics module 103 does not need to quantize, but directly counts the frequency of each voltage amplitude value in the vertical direction, and draws a vertical voltage distribution histogram (vertical histogram for short), thereby improving the processing speed of drawing the vertical voltage distribution histogram.

[0054] The cache module 102 has two storage modes. One is a normal storage mode, which uses First In First Out (FIFO) for storage. The depth of a FIFO is one frame of waveform data. Each time the trigger comes, the reading is turned off and the writing is continued. When the FIFO generates a full mark, the one frame of waveform data is sent to the subsequent module for processing. The other is a deep storage mode, which uses double data rate (Double Data Rate 3, DDR3) for storage. Specifically, it uses Synchronous Dynamic Random-Access Memory (SDRAM), which can store large-capacity multi-frame waveform data, and then take out one frame at a time and send it to the subsequent module for processing.

[0055] Please refer to Figure 2 , a data processing flow chart of the acquisition module and the cache module provided in an embodiment of the present application.

[0056] After the acquisition module 101 (i.e., the front-end ADC) acquires the waveform data, the cache module 102 triggers the control to cache the waveform data in the normal storage mode or the deep storage mode, takes out each frame of waveform data from the normal storage FIFO or the deep storage DDR3, and performs signal processing data splicing, that is, splicing the waveform data from the sub-band data into channel data, and then sends each frame of waveform data to the transmission module 104 and the pre-processing statistics module 103 in parallel through the FIFO cache.

[0057] The transmission module 104 receives the waveform data of multiple channels sent by the buffer module 102 and the vertical voltage distribution histograms of multiple channels sent by the pre-processing statistics module 103 , and sends them to the central processor 20 after combining, packaging, gating and other processing.

[0058] The central processing unit 20 can directly extract the waveform parameters such as the average value, maximum value, minimum value, standard deviation, etc. required for waveform analysis based on the vertical voltage distribution histogram, and then perform jitter analysis, eye diagram analysis, etc. on the waveform data based on the waveform parameters, thereby improving the waveform analysis speed of the CPU and further improving the overall waveform display speed of the digital oscilloscope.

[0059] If the preprocessing statistics module 103 is added serially during the waveform transmission process, the transmission speed of the waveform data will be reduced due to the addition of the preprocessing steps of the preprocessing statistics module 103. Therefore, in the embodiment of the present application, the process of the cache module 102 transmitting the waveform data and the preprocessing statistics module 103 preprocessing the waveform data is parallel. While the transmission module 104 receives the cache and parses the waveform data, the preprocessing statistics module 103 statistically analyzes the waveform data and constructs a vertical voltage distribution histogram. In this way, after receiving the vertical voltage distribution histogram sent by the preprocessing statistics module 103, the transmission module 104 can directly perform subsequent processing. Such a pipeline parallel processing method can further improve the processing and transmission speed of the FPGA, thereby improving the overall processing speed of the digital oscilloscope.

[0060] In an embodiment of the present application, multiple acquisition modules 101 respectively acquire waveform data of different channels, multiple cache modules 102 respectively perform FIFO cache on waveform data of different channels, and multiple pre-processing statistics modules 103 respectively construct histograms for waveform data of different channels. By processing waveform data of different channels in parallel by multiple modules, the processing speed of FPGA can be further improved. The waveform data and vertical voltage distribution histogram of multiple channels are combined, packaged, and selected by a transmission module 104, and then sent to the central processing unit 20 for waveform analysis and waveform display, thereby improving the overall display speed of the digital oscilloscope.

[0061] In a possible embodiment, each pre-processing statistics module 103 is further used for:

[0062] Count the maximum and minimum values ​​in the waveform data of the corresponding channel; draw the minimum value on the leftmost side of the vertical voltage distribution histogram of the corresponding channel; draw the maximum value on the rightmost side of the vertical voltage distribution histogram of the corresponding channel.

[0063] Please refer to Figure 3 , which is a statistical diagram of the vertical voltage distribution histogram provided in the embodiment of the present application. The cache module 102 inputs the waveform data S[t] of the digital signal into the preprocessing statistics module 103, performs parallel judgment and parallel calculation statistics, and quickly obtains the frequency of occurrence of each quantized amplitude value at all times, that is, the vertical voltage histogram vector value PV[i], where S[t]=i, S[t] represents the waveform data of the digital signal, i is the quantized amplitude value, and the value range of i is 0-255 or 0-4095, and "+" represents accumulation.

[0064] The preprocessing statistics module 103 can also detect the maximum and minimum values ​​of a frame of waveform data, and compare them by copying two paths of data. A maximum value register and a minimum value register are designed to compare the current time point with the previous time point. The maximum value register always retains the maximum value of the current comparison, and the minimum value register always saves the minimum value of the current comparison. After a frame of waveform data passes through the maximum value register, the maximum value is output, and the maximum value is plotted on the far right of the vertical voltage distribution histogram. After a frame of waveform data passes through the minimum value register, the minimum value is output, and the minimum value is plotted on the far left of the vertical voltage distribution histogram.

[0065] In the embodiment of the present application, considering that the maximum value and the minimum value are the most basic waveform parameters in waveform analysis and are used in many waveform analyses, the maximum value and the minimum value are counted in advance by the pre-processing statistics module 103 of the field programmable gate array 10, and the central processor 20 directly extracts the leftmost and rightmost values ​​of the vertical voltage distribution histogram, thereby eliminating the process of calculating the maximum value and the minimum value according to the vertical voltage distribution histogram, and further improving the waveform analysis speed of the central processor 20. Although the field programmable gate array 10 increases the statistical time, the field programmable gate array 10 can count the maximum value and the minimum value in parallel, which can improve the statistical speed compared to the process of the central processor 20 scanning and comparing one by one, thereby reducing the overall processing time of the digital oscilloscope and improving the waveform display speed.

[0066] In a possible embodiment, each buffer module 102 is specifically used to store each frame of waveform data of the corresponding channel in a common manner, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module 104 and the pre-processing statistics module 103 connected to each buffer module 102;

[0067] Each pre-processing statistics module 103 is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module 104;

[0068] The transmission module 104 is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel, and then send it to the central processor 20;

[0069] The central processing unit 20 is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

[0070] In the embodiment of the present application, when the cache module 102 adopts the normal storage mode, each frame of waveform data is cached and sent out immediately, and the pre-processing statistics module 103 performs statistics on each frame of waveform data in real time, obtains the statistical results of the vertical voltage distribution histogram vector, draws it into a vertical voltage distribution histogram and uploads it to the transmission module 104. The transmission module 104 combines each vertical voltage distribution histogram with the tail of each corresponding frame of waveform data and then uploads it, and the central processing unit 20 extracts waveform parameters from each vertical voltage distribution histogram in real time, and performs waveform analysis and waveform display on each corresponding frame of waveform data.

[0071] In a possible embodiment, the preprocessing statistics module 103 is specifically used for:

[0072] Extract multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module 104.

[0073] In an embodiment of the present application, in normal storage mode, the vertical voltage distribution histogram vector of each frame of waveform data is counted in real time, and the vertical voltage distribution histogram corresponding to each frame of waveform data is drawn, which can immediately reflect the characteristics and distribution of each frame of waveform data, which is crucial for real-time monitoring of system status and data quality, and can quickly discover and respond to abnormal situations, such as equipment failures or data acquisition problems.

[0074] In a possible embodiment, the transmission module 104 is specifically configured to:

[0075] While waiting to receive the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, parse and process and cache each frame of waveform data that has been received; the parsing process includes determining the corresponding channel for receiving each frame of waveform data, dividing the data type, and selecting a sending channel; after receiving the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the end of each frame of waveform data of the corresponding channel to obtain combined data of multiple channels; pack and convert the bit width of the combined data of multiple channels according to the data type to obtain multiple packed data; send each packed data to the central processor 20 through the selected sending channel.

[0076] In the specific implementation process, since the cache module 102 directly sends the waveform data to the transmission module 104, the pre-processing statistics module 103 constructs the vertical voltage distribution histogram according to the waveform data, and then sends the vertical voltage distribution histogram to the transmission module 104. Therefore, the transmission module 104 will first receive the waveform data of multiple channels, and then receive the vertical voltage distribution histograms of multiple channels. In order to improve the processing efficiency of the transmission module 104, in the embodiment of the present application, the transmission module 104 can first parse and process and cache the received waveform data of multiple channels while waiting to receive the vertical voltage distribution histograms of multiple channels.

[0077] The waveform data from multiple channels may include different types of data such as frequency domain data, time domain data, trigger data, and statistical distribution information. Each frame of waveform data from multiple channels received may be subjected to analysis processing such as determining the corresponding channel of the received waveform data, dividing the data type, and selecting the transmission channel. After receiving the vertical voltage distribution histograms of multiple channels, there is no need to perform analysis processing on the waveform data. The waveform data and the vertical voltage distribution histogram from the same channel may be directly combined according to the analysis results, packaged according to the data type, and the packaged data may be converted to a bit width. Finally, the data may be sent to the central processor 20 according to the selected transmission channel, and the processing efficiency of the transmission module 104 may be improved through parallel processing.

[0078] The transmission module 104 uploads the data to the CPU via Direct Memory Access (DMA). DMA is a 256-bit reception method. Each packaged data may not be of this bit width. It needs to be converted into a bit width and then filled into DMA. The data is then uploaded to the software of the central processor 20 via the selected transmission channel.

[0079] In a possible embodiment, each buffer module 102 is specifically used to perform deep storage on multiple frames of waveform data of the corresponding channel, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module 104 and the pre-processing statistics module 103 connected to each buffer module 102;

[0080] Each pre-processing statistics module 103 is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module 104; and after constructing a vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel according to multiple frames of waveform data of the corresponding channel, send the vertical voltage distribution histogram corresponding to the multiple frames of waveform data of the corresponding channel to the transmission module 104;

[0081] The transmission module 104 is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel and send it to the central processor 20, and combine the vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel to the tail of multiple frames of waveform data of the corresponding channel and send it to the central processor 20;

[0082] The central processor 20 is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel and the vertical voltage distribution histogram corresponding to multiple frames of waveform data, and perform waveform analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

[0083] In the embodiment of the present application, when the cache module 102 adopts the deep storage mode, DDR3 is used to store large-capacity multi-frame waveform data, which are taken out frame by frame in sequence and sent to the pre-processing statistics module 103 and the transmission module 104 through the FIFO cache.

[0084] The pre-processing statistics module 103 obtains the vertical voltage distribution histogram corresponding to each frame of waveform data according to the statistics of each frame of waveform data, and first uploads the vertical voltage distribution histogram corresponding to each frame of waveform data to the transmission module 104 in real time. At the same time, the statistics of multiple frames of waveform data are accumulated, and after the statistics of the last frame of waveform data are completed, the vertical voltage distribution histogram corresponding to the multiple frames of waveform data is obtained, and the vertical voltage distribution histogram corresponding to the multiple frames of waveform data is uploaded to the transmission module 104.

[0085] The transmission module 104 combines the vertical voltage distribution histogram corresponding to each frame of waveform data to the end of each frame of waveform data and uploads it to the central processor 20 in real time. When the last frame of waveform data is received, the vertical voltage distribution histogram corresponding to multiple frames of waveform data is obtained at the same time, and it is combined to the end of the corresponding multiple frames of waveform data and then uploaded to the central processor 20.

[0086] The central processing unit 20 combines the vertical voltage distribution histogram corresponding to each frame of waveform data with the vertical voltage distribution histogram corresponding to multiple frames of waveform data to perform waveform analysis and waveform display on the multiple frames of waveform data.

[0087] In a possible embodiment, the preprocessing statistics module 103 is specifically used for:

[0088] Extracting multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, constructing a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and sending the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module;

[0089] The multiple quantization amplitude values ​​are saved until the multi-frame waveform data of the corresponding channel is extracted, and a vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is constructed according to the frequency of occurrence of each quantization amplitude value in the multi-frame waveform data of the corresponding channel, and the vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is sent to the transmission module.

[0090] In an embodiment of the present application, in the deep storage mode, not only are the vertical voltage distribution histogram vectors of each frame of waveform data counted in real time and the vertical voltage distribution histogram corresponding to each frame of waveform data drawn, but the vertical voltage distribution histogram vectors of multiple frames of waveform data are also cumulatively counted and the vertical voltage distribution histograms corresponding to multiple frames of waveform data are drawn. This can display the cumulative characteristics and distribution trends of waveform data over a long period of time, and can detect long-term or periodic changes in the waveform data.

[0091] In a possible embodiment, each pre-processing statistics module 103 is further used to mark a frame for the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel. The central processor 20 is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frame mark, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

[0092] In the embodiment of the present application, whether it is ordinary storage or deep storage, the pre-processing statistics module 103 adds a frame mark to the vertical voltage distribution histogram after counting the vertical voltage distribution histogram based on each frame of waveform data. The central processing unit 20 can analyze each frame of waveform data in an orderly manner according to the frame mark, which can ensure the timing consistency and accuracy in the waveform analysis process, thereby improving the accuracy of the analysis results.

[0093] In a possible embodiment, the central processor 20 is specifically used to extract waveform parameters from a vertical voltage distribution histogram corresponding to multiple frames of waveform data of a corresponding channel, and perform eye diagram analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

[0094] In the embodiment of the present application, considering that eye diagram analysis requires waveform parameters of multiple frames of waveform data, in deep storage mode, vertical voltage distribution histograms corresponding to multiple frames of waveform data are statistically analyzed to facilitate the central processing unit 20 to perform eye diagram analysis and improve the efficiency of eye diagram analysis.

[0095] Please refer to Figure 4 , is a data processing flow chart of the FPGA provided in the embodiment of the present application, and the following is combined with Figure 4 This paper introduces the data processing flow of FPGA.

[0096] The process starts, waveform data is collected, and it is determined whether it is normal storage. If it is normal storage, the cache module 102 stores the waveform data normally. After a frame of waveform data enters the cache module 102, the cache module 102 immediately uploads the frame of waveform data to the pre-processing statistics module 103. The pre-processing statistics module 103 performs statistics on the frame of waveform data to obtain a vertical voltage distribution histogram of the frame of waveform data, and combines the vertical voltage distribution histogram with the tail of the frame of waveform data and uploads it to the central processor 20, and the process ends.

[0097] If it is not ordinary storage, the cache module 102 performs deep storage on the waveform data. After multiple frames of waveform data enter the cache module 102, let i=1, and the cache module 102 uploads the i-th frame of waveform data to the pre-processing statistics module 103. The pre-processing statistics module 103 performs statistics on the i-th frame of waveform data and temporarily stores the statistical results, and determines whether the preset depth is reached. If the preset depth is not reached, let i=i+1, continue to perform statistics on the i-th frame of waveform data and temporarily store the statistical results. If the preset depth is reached, the vertical voltage distribution histogram of the multiple frames of waveform data is obtained, and the vertical voltage distribution histogram is combined with the tail of the multiple frames of waveform data and uploaded to the central processor 20, and the process ends.

[0098] Please refer to Figure 5 , is a schematic diagram of the data processing flow of multiple channels provided in the embodiment of the present application. It should be noted that, Figure 5 The example of multiple channels including 1 / 2 channel and 3 / 4 channel is taken, but in fact the number of channels is not limited.

[0099] After the FIFOs of different cache modules 102 cache the waveform data of 1 / 2 channels and 3 / 4 channels, different preprocessing statistics modules 103 preprocess the waveform data of 1 / 2 channels and 3 / 4 channels to obtain statistical results (vertical voltage distribution histogram, maximum value, minimum value, etc.). The preprocessing process includes: taking ADC quantization amplitude value, judging the statistical vertical voltage histogram vector value, maximum value detection, parameter combination, marking frame number, and deep storage multi-frame statistics.

[0100] Taking the quantization amplitude value refers to the quantization amplitude value extracted from each frame of waveform data. Deep storage multi-frame statistics refers to continuously accumulating the quantization amplitude value extracted from each frame of waveform data in deep storage mode, and obtaining the quantization amplitude value extracted from multiple frames of waveform data. Judging and counting the vertical voltage histogram vector value refers to counting the frequency of occurrence of each quantization amplitude value in each frame of waveform data to obtain the vertical voltage distribution histogram corresponding to each frame of waveform data, and counting the frequency of occurrence of each quantization amplitude value in multiple frames of waveform data to obtain the vertical voltage distribution histogram corresponding to multiple frames of waveform data. Maximum value detection refers to detecting the maximum and minimum values ​​in each frame of waveform data. Parameter combination refers to drawing the minimum value on the left side of the vertical voltage distribution histogram and drawing the maximum value on the far right of the vertical voltage distribution histogram. Marking the frame number refers to adding a frame mark to the vertical voltage distribution histogram corresponding to each frame of waveform data.

[0101] The waveform data of channels 1 / 2 and 3 / 4 are received and analyzed in real time. After receiving the statistical results of channels 1 / 2 and 3 / 4, the data are combined, packaged, selected, and bit-width converted, and finally sent to the CPU via DMA. The CPU reads the data, analyzes, and displays it.

[0102] In summary, since it is relatively slow to perform statistical analysis on the waveform data after the software obtains the waveform data, and the speed of FPGA processing data is relatively fast, in order to speed up the waveform analysis and display speed of the overall digital oscilloscope, the embodiment of the present application first calculates the vertical voltage distribution histogram based on the waveform data before uploading the waveform data to the FPGA, and then compares the waveform data and the vertical voltage distribution histogram. Figure 1 The data is sent to the CPU, and the software in the CPU directly extracts various waveform parameters from the vertical voltage distribution histogram for waveform analysis, eliminating the process of scanning and judging the waveform data one by one, reducing the basic data comparison and analysis work, improving the waveform analysis speed of the software, and thus improving the overall waveform analysis and display speed of the digital oscilloscope.

[0103] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0104] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0106] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

[0107] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0108] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0109] Through the description of the above implementation methods, technical customer service personnel in this field can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a disk, or an optical disk), and includes a number of instructions for a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0110] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A digital oscilloscope based on FPGA preprocessing, characterized in that: The digital oscilloscope includes a field programmable gate array FPGA and a central processing unit CPU; the FPGA includes multiple acquisition modules, multiple cache modules, multiple pre-processing statistics modules and a transmission module; Multiple acquisition modules are connected to multiple channels; Each acquisition module is used to acquire waveform data of a corresponding channel, and send the waveform data of the corresponding channel to a buffer module connected to each acquisition module; Each cache module is used to cache the waveform data of the corresponding channel, and send the waveform data of the corresponding channel in parallel to the transmission module and the pre-processing statistics module connected to each cache module; Each pre-processing statistical module is used to construct a vertical voltage distribution histogram of the corresponding channel according to the waveform data of the corresponding channel, and send the vertical voltage distribution histogram of the corresponding channel to the transmission module; The transmission module is used for processing the vertical voltage distribution histograms of the multiple channels and the waveform data of the multiple channels and sending them to the CPU; The CPU is used to extract waveform parameters from the vertical voltage distribution histogram of each channel, and perform waveform analysis and waveform display on the waveform data of the corresponding channel according to the waveform parameters; wherein the waveform parameters include average value, maximum value, minimum value, and standard deviation; The transmission module is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel, and send it to the CPU; or, the transmission module is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel, and send it to the CPU, and combine the vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel to the tail of multiple frames of waveform data of the corresponding channel, and send it to the CPU.

2. The digital oscilloscope based on FPGA preprocessing as claimed in claim 1, characterized in that: Each preprocessing statistics module is also used to: Count the maximum and minimum values ​​in the waveform data of the corresponding channel; Plotting the minimum value at the leftmost side of the vertical voltage distribution histogram of the corresponding channel; The maximum value is plotted at the far right of the vertical voltage distribution histogram of the corresponding channel.

3. The digital oscilloscope based on FPGA preprocessing as claimed in claim 1, characterized in that: Each cache module is specifically used to store each frame of waveform data of the corresponding channel in a common manner, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module and the pre-processing statistics module connected to each cache module; Each pre-processing statistical module is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module; The transmission module is specifically used to combine the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel and send it to the CPU; The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

4. The digital oscilloscope based on FPGA preprocessing as claimed in claim 3, characterized in that: Each preprocessing statistics module is specifically used for: Extract multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module.

5. The digital oscilloscope based on FPGA preprocessing as claimed in claim 3, characterized in that: The transmission module is specifically used for: While waiting to receive the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, the received each frame of waveform data is analyzed and cached; The analysis process includes determining the corresponding channel for receiving each frame of waveform data, dividing the data types, and selecting the transmission channel; After receiving the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel, combining the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel to obtain combined data of the multiple channels; Packing and bit-width converting the combined data of the multiple channels according to data types to obtain multiple packed data; Each packet data is sent to the CPU through the selected sending channel.

6. The digital oscilloscope based on FPGA preprocessing as claimed in claim 1, characterized in that: Each cache module is specifically used to perform deep storage of multiple frames of waveform data of the corresponding channel, and to send each frame of waveform data of the corresponding channel in parallel to the transmission module and the pre-processing statistics module connected to each cache module; Each pre-processing statistical module is specifically used to construct a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to each frame of waveform data of the corresponding channel, and send the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module; and after constructing a vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel according to the multi-frame waveform data of the corresponding channel, sending the vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel to the transmission module; The transmission module is specifically used for combining the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the tail of each frame of waveform data of the corresponding channel and then sending it to the CPU, and combining the vertical voltage distribution histogram corresponding to multiple frames of waveform data of the corresponding channel to the tail of multiple frames of waveform data of the corresponding channel and then sending it to the CPU; The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel and the vertical voltage distribution histogram corresponding to multiple frames of waveform data, and perform waveform analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

7. The digital oscilloscope based on FPGA preprocessing as claimed in claim 6, characterized in that: Each preprocessing statistics module is specifically used for: Extracting multiple quantized amplitude values ​​from each frame of waveform data of the corresponding channel, constructing a vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frequency of occurrence of each quantized amplitude value in each frame of waveform data of the corresponding channel, and sending the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel to the transmission module; The multiple quantization amplitude values ​​are saved until the multi-frame waveform data of the corresponding channel is extracted, and a vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is constructed according to the frequency of occurrence of each quantization amplitude value in the multi-frame waveform data of the corresponding channel, and the vertical voltage distribution histogram corresponding to the multi-frame waveform data of the corresponding channel is sent to the transmission module.

8. The digital oscilloscope based on FPGA preprocessing as claimed in claim 3 or 6, characterized in that: Each pre-processing statistics module is also used to mark a frame for the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel; The CPU is specifically used to extract waveform parameters from the vertical voltage distribution histogram corresponding to each frame of waveform data of the corresponding channel according to the frame mark, and perform waveform analysis and waveform display on each frame of waveform data of the corresponding channel according to the waveform parameters.

9. The digital oscilloscope based on FPGA preprocessing as claimed in claim 6, characterized in that: The CPU is specifically used to extract waveform parameters from a vertical voltage distribution histogram corresponding to multiple frames of waveform data of a corresponding channel, and perform eye diagram analysis and waveform display on the multiple frames of waveform data of the corresponding channel according to the waveform parameters.

Citation Information

Patent Citations

  • Digital oscilloscope and method for controlling display waveform

    CN101413968A

  • Method and device for completely displaying column diagram of measured data

    CN102466746A

  • Waveform data processing method for digital three-dimensional oscilloscope

    CN102998500A

  • Automatic measuring range system and measuring method used for measuring digital storage oscilloscope

    CN103116053A

  • Oscilloscope having recorded waveform analysis function

    CN103869125A