A high-speed data acquisition system based on FPGA

Through the high-speed data acquisition system based on FPGA, the problem of traditional data acquisition system being difficult to meet the high sampling rate and high-precision requirements is solved, low-cost, high-precision data acquisition is achieved, suitable for a variety of application scenarios, and simplifies user interaction. and data analysis.

CN112859705BActive Publication Date: 2024-09-03JIANGXI LIANLU BIOTECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110120421.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-09-03
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

Traditional data acquisition systems are difficult to meet the needs of high sampling rate and high precision, are expensive, and cannot meet the requirements of modern industrial environments.

Method used

Design a high-speed data acquisition system based on FPGA, including FPGA, USB, PC terminal and AD acquisition card, using data transmission physical layer protocol IP core, solution data transmission protocol IP core, ADC data processor, bus interconnection IP core, XDMA The controller, FDMA controller, clock module, DDR3 memory and serial port module realize high-speed data collection and storage, and perform mode configuration and data display through the PC.

Benefits of technology

It achieves low-cost data collection with a sampling rate of 6GSPS and an accuracy higher than 10 bits. It is suitable for a variety of application scenarios, including automotive electronics and fault detection. Users can switch the collection mode and display waveform data through the PC, simplifying human-computer interaction. , and supports data preservation and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112859705B
    Figure CN112859705B
Patent Text Reader

Abstract

The present invention discloses a high-speed data acquisition system based on FPGA, wherein FPGA, USB and PC are connected in sequence, the AD acquisition card is connected to FPGA, the FPGA comprises a data transmission physical layer protocol IP core, a data transmission protocol IP core, an ADC data processor, a bus interconnection IP core, an XDMA controller, an FDMA controller, a clock module, a DDR3 memory, a DDR3 controller, a clock buffer and a serial port module; the PC comprises a control information serial port configuration unit and a data acquisition unit. The present invention can meet the requirements of the system in various application scenarios by switching different modes through the PC end, and has good application value in high-speed data real-time acquisition systems such as high-speed communication systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of high-speed data acquisition, and in particular relates to a high-speed data acquisition system based on FPGA. Background Art

[0002] With the rapid development of electronic industry technology, people's living standards are improving rapidly. At the same time, with the rapid development of electronic industry technology, people have put forward higher and higher requirements for high-speed information. As an indispensable part of today's electronic information technology, high-speed data acquisition systems are widely used in many scenarios, such as geological survey, biomedicine, automotive electronics, fault detection and many other fields.

[0003] With the increasing demand for accuracy and speed in industrial systems, data acquisition systems are crucial as a bridge between actual analog signals and processable digital signals. However, the data rate, data accuracy, storage depth and other parameters of many data acquisition systems in traditional solutions are difficult to meet the requirements of today's industrial environment. In addition, data acquisition products with sampling rates above 6GSPS and accuracy higher than 10 bits are basically very expensive. Summary of the invention

[0004] In order to achieve the above object, the technical solution of the present invention is as follows: a high-speed data acquisition system based on FPGA, including FPGA, USB, PC terminal and AD acquisition card;

[0005] The FPGA, USB and PC are connected in sequence, the AD acquisition card is connected to the FPGA, the FPGA includes a data transmission physical layer protocol IP core, a data transmission protocol IP core, an ADC data processor, a bus interconnection IP core, an XDMA controller, an FDMA controller, a clock module, a DDR3 memory, a DDR3 controller, a clock buffer and a serial port module; the PC includes a control information serial port configuration unit and a data acquisition unit;

[0006] The serial port module includes a bus controller and an SPI configurator. The clock module provides a reference clock for the serial port module, the ADC data processor, the FDMA controller, the bus interconnection IP core, the DDR3 controller, and the XDMA controller. The clock buffer buffers the clock provided by the outside world and provides it to the data transmission physical layer protocol IP core and the data transmission protocol IP core. After the data transmission physical layer protocol IP core converts the 8b / 10b code, it transmits the eight-channel data to the data transmission protocol IP core. After parsing the data, it is transmitted to the ADC data processor by the AXI_stream data stream. The processed raw data is converted into bus data by the FDMA controller, and then sent to the DDR3 memory for storage by the DDR3 controller. When the PC terminal requests to read data, the data is read from the DDR3 memory.

[0007] The control information serial port configuration unit includes an AD read-write configuration module and a bus register configuration read-write module. The PC sends instructions to the FPGA, which is processed by the FPGA. The AD acquisition card is configured in mode by writing the AD read-write configuration module, and the data transmission physical layer protocol IP core and the data transmission protocol IP core are spatially configured by writing the bus register configuration read-write module.

[0008] Preferably, it also includes a clock board, which is connected to the FPGA and AD acquisition card respectively. The clock board provides the required clock to the AD subcard, provides the reference clock and core clock of the four-way phase-locked loop QPLL to the data transmission physical layer protocol IP core of the FPGA, and provides the core clock and the reference clock of the solution protocol to the data transmission solution protocol IP core of the FPGA.

[0009] Preferably, the clock buffer buffers the clock provided by the clock board and then provides it to the data transmission physical layer protocol IP core and the data transmission protocol IP core.

[0010] Preferably, the AD acquisition card includes an ADC12DJ3200 chip.

[0011] Preferably, the data acquisition unit includes an optional storage depth switching module, a starting address reading module, a read data saving module, a waveform display module and an acquisition message acquisition notification module; the storage depth is set in the optional storage depth switching module, a sampling action is triggered by a sampling trigger button, the read data saving module reads the data from the DDR3 memory and reads it out to the waveform display module for display; if a single sampled waveform needs to be saved, the read data saving module selects a path for saving; the acquisition message acquisition notification module obtains the link status of the current communication.

[0012] Preferably, the USB includes a FT232 chip.

[0013] Preferably, the FPGA is connected and communicated with the USB via a gpio port.

[0014] Preferably, the FPGA communicates with the PC via a PCIe 3.0X8 interface.

[0015] Preferably, the ADC data processor includes an AXI_stream parsing module, a FIFO buffer module, a channel alignment module and a format conversion module, wherein the AXI_stream parsing module parses the data after the data transmission protocol IP core decrypts the protocol to obtain waveform data, and the FIFO buffer module performs cross-clock domain processing on the data after receiving the parsed data, and sends the processed data to the channel alignment module; the channel alignment module completes the alignment of the data bit width by padding the upper four bits of the twelve-bit data with zeros; the format conversion module completes the format conversion of the data stream so that the data is stored in the DDR3 memory.

[0016] The beneficial effects of the present invention include at least:

[0017] 1. The invention has low cost and is relatively inexpensive compared to high sampling rate instruments at home and abroad. Theoretically, data can be collected at a sampling rate of 6GSPS with high accuracy, which can be above 10 bits.

[0018] 2. The present invention can be applied in many scenarios. In addition to being applicable to general high-speed communication systems, it is also applicable to other scenarios where analog-to-digital conversion is applied, such as automotive electronics, fault detection, etc. It can not only meet the signal quality detection and product debugging in the early product testing, but is also suitable for the collection and expanded application of signal data in the actual operation of the later products.

[0019] 3. The user of the present invention can switch the mode of the data acquisition system through the PC. The specific method is to reconfigure the registers inside the AD chip and the IP core through the serial port to meet the switching of different modes, making human-computer interaction easier.

[0020] 4. The user of the present invention can display the collected waveform through the PC end, and can also save the collected waveform in the form of .COE file on the host, and import it into MATLAB for data analysis and processing, which makes the analysis of data information more convenient and intuitive, and greatly enhances the expansion and analysis of data. At the same time, the link status can also be observed in real time on the PC end, which is very user-friendly. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a structural block diagram of the high-speed data acquisition system based on FPGA of the present invention;

[0022] Figure 2It is a structural schematic diagram of a high-speed data acquisition system based on FPGA of the present invention;

[0023] Figure 3 This is an interface diagram of an AD read-write configuration module of a control information serial port configuration unit of a high-speed data acquisition system based on FPGA of the present invention;

[0024] Figure 4 It is a bus register configuration reading and writing module interface diagram of the control information serial port configuration part of the FPGA-based high-speed data acquisition system of the present invention;

[0025] Figure 5 This is an interface diagram of the data acquisition unit of the FPGA-based high-speed data acquisition system of the present invention;

[0026] Figure 6 The waveform diagram is collected by the high-speed data acquisition system based on FPGA of the present invention;

[0027] Figure 7 This is a spectrum analysis diagram of data collected by the FPGA-based high-speed data acquisition system of the present invention in Matlab. DETAILED DESCRIPTION

[0028] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0029] See also Figure 1 , Figure 2 , a high-speed data acquisition system based on FPGA, including FPGA10, USB20, PC terminal 30 and AD acquisition card 40;

[0030] Among them, FPGA10, USB20 and PC end 30 are connected in sequence, AD acquisition card 40 is connected to FPGA10, FPGA10 includes data transmission physical layer protocol IP core 11, data transmission protocol IP core 12, ADC data processor 13, bus interconnection IP core 14, XDMA controller 151, FDMA controller 152, clock module 16, DDR3 memory 171, DDR3 controller 172, clock buffer 18 and serial port module 19; PC end 30 includes control information serial port configuration unit 31 and data acquisition unit 32;

[0031] The serial port module 19 includes a bus controller 192 and an SPI configurator 191. The clock module 16 provides a reference clock for the serial port module 19, the ADC data processor 13, the data frame direct access controller FDMA152, the bus interconnection IP core 14, the DDR3 controller 172, and the XDMA151 of the memory random access controller DMA / Bridge Subsystem for PCI Express of Xilinx. The clock buffer 18 buffers the clock provided by the outside world and provides it to the data transmission physical layer protocol IP core 11 and the data transmission protocol IP core 12. After the data transmission physical layer protocol IP core 11 converts the 8b / 10b code, it transmits the eight-channel data to the data transmission protocol IP core 12. After parsing the data, it is transmitted to the ADC data processor 13 by the AXI_stream data stream. The processed raw data is converted into bus data by the FDMA controller 152, and then sent to the DDR3 memory 171 for storage by the DDR3 controller 172. When the PC end 30 requests to read data, the data is read from the DDR3 memory 171.

[0032] The control information serial port configuration unit 31 includes an AD read-write configuration module and a bus register configuration read-write module. The PC end 30 sends instructions to the FPGA 10. After being processed by the FPGA 10, the mode of the AD acquisition card 40 is configured by writing the AD read-write configuration module, and the data transmission physical layer protocol IP core 11 and the data transmission protocol IP core 12 are spatially configured by writing the bus register configuration read-write module.

[0033] The AD acquisition card 40 is connected to the SPI configurator 191 through the AD_SCLK, AD_SDO, AD_CSN and AD_SDI pins, and is connected to the data transmission physical layer protocol IP core 11 through the AD0-AD7 pins.

[0034] It also includes a clock board 50, which is connected to the FPGA 10 and the AD acquisition card 40 respectively. The clock board 50 provides the required clock to the AD acquisition card 40 through the AD_SYS_CLK and AD_CLK pins, provides the reference clock and core clock of the four-way phase-locked loop QPLL to the data transmission physical layer protocol IP core 11 of the FPGA 10, and provides the core clock and the reference clock of the protocol to the data transmission decomposition protocol IP core 12 of the FPGA 10. The clock buffer 18 buffers the clocks GTY_CLK, CORE_CLK and SYSREF provided by the clock board 50 and provides them to the data transmission physical layer protocol IP core 11 and the data transmission decomposition protocol IP core 12.

[0035] The AD acquisition card 40 includes an ADC12DJ3200 chip.

[0036] The data acquisition unit 32 includes an optional storage depth switching module, a start address reading module, a read data saving module, a waveform display module and an acquisition message acquisition notification module; the storage depth is set in the optional storage depth switching module, and a sampling action is triggered by a sampling trigger button. The read data saving module reads the data of the DDR3 memory 171 and reads it out to the waveform display module for display; if a single sampled waveform needs to be saved, the read data saving module selects a path for saving; the acquisition message acquisition notification module obtains the link status of the current communication.

[0037] The ADC data processor 13 includes an AXI_stream parsing module 131, a FIFO buffer module 132, a channel alignment module 133 and a format conversion module 134, wherein the AXI_stream parsing module 131 parses the data after the data transmission protocol IP core 12 decrypts the protocol to obtain waveform data, and the FIFO buffer module 132 performs cross-clock domain processing on the data after receiving the parsed data, and sends the processed data to the channel alignment module 133; the channel alignment module 133 completes the alignment of the data bit width by padding the upper four bits of the twelve-bit data with zeros; the format conversion module 134 completes the format conversion of the data stream so that the data is stored in the DDR3 memory 171.

[0038] The data transmission physical layer protocol IP core 11 adopts the JESD204 data transmission physical layer protocol IP core 11JESD204 PHY provided by Xilinx, the data transmission protocol IP core 12 adopts the IP core JESD204 for decoding the JESD204 data transmission protocol, and the bus interconnection IP core 14 is Axi_smartconnect.

[0039] USB20 uses the FT232 chip produced by FTDI. The voltage power supply of the chip can be selected as 1.8v, 3.3v, and 5v. The present invention selects 1.8v power supply to match the level requirements of the gpio port of FPGA10. The chip can convert different protocol data streams into USB20 protocol. When the user needs to reconfigure FPGA10 or AD acquisition card 40, the PC terminal 30 is used to configure the lower computer through this USB20.

[0040] See also Figure 3 , Figure 4 , which is an interface diagram of the control information serial port configuration unit 31 used in the present invention. Figure 3This is the configuration interface of the AD read / write configuration module. When the PC terminal 30 issues instructions to the lower computer through USB 20, an offset address is set in the instruction to enable FPGA 10 to distinguish different instruction types. When configuring AD read / write, the offset address is 0x0001. The serial port can transmit 8 bits of data at a time, and 32 bits of data are transmitted in four times. Figure 4 It is the bus configuration interface of the register internal space of the JESD204 PHY core and the JESD204 protocol core. The offset address is 0x0002 for the register internal space of the JESD204 PHY core and 0x0003 for the register internal space of the JESD204 protocol core. After opening the serial port and setting the corresponding address, press the send and get buttons to read and write the register value of the corresponding address space.

[0041] See also Figure 5 , which is the interface diagram of the PC terminal 30 of the high-speed data acquisition system of the present invention. In the data acquisition interface, the user first needs to set the storage depth, that is, the number of waveform points obtained by a sampling trigger. After the storage depth is set, a sampling action can be triggered by "sampling trigger". After a new sampling is completed, it is necessary to first set the number of waveform points to be read, and then read the data of DDR3 memory 171 to PC terminal 30 for display through the "read" button. The data acquisition interface can display the time domain waveform of the current read data. The data waveform obtained by a data acquisition is cached in the DDR3 memory 171 of FPGA10. If the user needs to save the waveform of a single sampling, he can click the "save coe file" button to select a suitable path to save it. The saved standard coe format file can be analyzed and processed by data analysis software such as Matlab.

[0042] See also Figure 6 , which is the actual waveform acquisition diagram of the acquisition interface of the PC terminal 30 of the present invention. This waveform acquisition is the waveform acquired in the normal mode. In this test, its storage depth is set to a fixed 2Kpts. The "sampling trigger" button can make FPGA10 generate a sampling action. Figure 6 This is the time domain waveform of the 2K storage points read from address 0x00001000.

[0043] See also Figure 7 , which is the spectrum analysis diagram of the sampling data on Matlab software. During the test, all the stored data are saved as coe files, and Matlab is used to perform FFT analysis on the sampling points. The test results are basically consistent with the actual waveform.

[0044] Finally, it should be noted that the above preferred embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail through the above preferred embodiments, those skilled in the art should understand that various changes can be made in form and details without departing from the scope defined by the claims of the present invention.

Claims

1. A high-speed data acquisition system based on FPGA, characterized in that: Including FPGA, USB, PC terminal and AD acquisition card; The FPGA, USB and PC are connected in sequence, the AD acquisition card is connected to the FPGA, the FPGA includes a data transmission physical layer protocol IP core, a data transmission protocol IP core, an ADC data processor, a bus interconnection IP core, an XDMA controller, an FDMA controller, a clock module, a DDR3 memory, a DDR3 controller, a clock buffer and a serial port module; the PC includes a control information serial port configuration unit and a data acquisition unit; The serial port module includes a bus controller and an SPI configurator. The clock module provides a reference clock for the serial port module, the ADC data processor, the FDMA controller, the bus interconnection IP core, the DDR3 controller, and the XDMA controller. The clock buffer buffers the clock provided by the outside world and provides it to the data transmission physical layer protocol IP core and the data transmission protocol IP core. After the data transmission physical layer protocol IP core converts the 8b / 10b code, it transmits the eight-channel data to the data transmission protocol IP core. After parsing the data, it is transmitted to the ADC data processor by the AXI_stream data stream. The processed raw data is converted into bus data by the FDMA controller, and then sent to the DDR3 memory for storage by the DDR3 controller. When the PC terminal requests to read data, the data is read from the DDR3 memory. The control information serial port configuration unit includes an AD read-write configuration module and a bus register configuration read-write module. The PC sends instructions to the FPGA, which is processed by the FPGA. The AD acquisition card is configured in mode by writing the AD read-write configuration module, and the data transmission physical layer protocol IP core and the data transmission protocol IP core are spatially configured by writing the bus register configuration read-write module.

2. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: It also includes a clock board, which is connected to the FPGA and AD acquisition card respectively. The clock board provides the required clock to the AD acquisition card, provides the reference clock and core clock of the four-way phase-locked loop QPLL to the data transmission physical layer protocol IP core of the FPGA, and provides the core clock and the reference clock of the solution protocol to the data transmission solution protocol IP core of the FPGA.

3. The FPGA-based high-speed data acquisition system according to claim 2, characterized in that: The clock buffer buffers the clock provided by the clock board and then provides it to the data transmission physical layer protocol IP core and the data transmission protocol IP core.

4. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The AD acquisition card includes an ADC12DJ3200 chip.

5. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The data acquisition unit includes an optional storage depth switching module, a start address reading module, a read data saving module, a waveform display module and an acquisition message acquisition notification module; the storage depth is set in the optional storage depth switching module, a sampling action is triggered by a sampling trigger button, the read data saving module reads the data from the DDR3 memory and reads it out to the waveform display module for display; if a single sampled waveform needs to be saved, the read data saving module selects a path for saving; the acquisition message acquisition notification module obtains the link status of the current communication.

6. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The USB includes a FT232 chip.

7. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The FPGA is connected and communicated with the USB via a gpio port.

8. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The FPGA communicates with the PC via a PCIe 3.0X8 interface.

9. The FPGA-based high-speed data acquisition system according to claim 1, characterized in that: The ADC data processor includes an AXI_stream parsing module, a FIFO buffer module, a channel alignment module and a format conversion module, wherein the AXI_stream parsing module parses the data after the data transmission protocol IP core decrypts the protocol to obtain waveform data, and the FIFO buffer module performs cross-clock domain processing on the data after receiving the parsed data, and sends the processed data to the channel alignment module; the channel alignment module aligns the data bit width by padding the upper four bits of the twelve-bit data with zeros; The format conversion module completes the format conversion of the data stream so that the data is stored in the DDR3 memory.