A multi-channel data acquisition and storage system
By introducing technologies such as cross-clock domain conversion, filtering, arbitration transmission, and algorithm splicing into multi-channel data acquisition and storage systems, the problem that existing systems cannot flexibly read and write different starting addresses is solved, and efficient and flexible data processing and Storage improves system integration and read and write speeds.
Patent Information
- Application Number
- CN202111546275.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-12-16
AI Technical Summary
The existing multi-channel data acquisition system cannot start data reading and writing operations at different starting addresses according to terminal instructions, resulting in low integration, large space requirements, and excessive granularity and inflexibility of reading and writing operations.
A multi-channel data acquisition and storage system is designed, including a data acquisition module, a processing module and a terminal. Through cross-clock domain conversion, filtering, arbitration transmission, algorithm splicing and ping-pong operation modules, data reading and writing operations for different starting addresses are realized. , and control read and write operations through terminal configuration instructions.
It realizes the selectivity of the starting address of read and write operations, reduces the bit width and granularity of transmitted data, increases the read and write rate, reduces system space requirements, and improves integration.
Smart Images

Figure CN114281254B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission, and in particular to a multi-channel data acquisition and storage system. Background Art
[0002] Data acquisition refers to the automatic collection of non-electrical or electrical signals from analog and digital units such as sensors and other devices under test, and sending them to the host computer for analysis and processing. The data acquisition system is a flexible, user-defined measurement system that combines measurement software and hardware products based on computers or other dedicated test platforms. It is also a computer expansion card that realizes data acquisition functions and can be accessed through buses such as USB, PXI, PCI, PCI Express, FireWire (IEEE1394), PCMCIA, ISA, Compact Flash, 485, 232, Ethernet, and various wireless networks.
[0003] In the existing system, when collecting multi-channel data, it is composed of multiple cards. The collected data is directly stored, the parameters of the preprocessing operation are fixed, the starting address of the read and write operations of the data storage is fixed, and the data granularity read from the memory is too large; the existing system is composed of multiple cards. When collecting data from multiple channels, the integration is not high, and the space requirement of the entire system is too large; and the starting address of the read and write operations of the data storage is fixed, and it is impossible to start the data read and write operations at different starting addresses according to the instructions of the host computer.
[0004] In view of this, this application is hereby filed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that in the prior art, when multi-channel data is collected, it is impossible to start data reading and writing operations at different starting addresses according to terminal instructions. The purpose is to provide a multi-channel data acquisition storage system that can realize read and write operations on data at different starting addresses through terminal configuration related parameter instructions.
[0006] The present invention is achieved through the following technical solutions:
[0007] A multi-channel data acquisition and storage system comprises a data acquisition module, a first processing module, a second processing module and a terminal;
[0008] The data acquisition module is used to acquire first data and transmit the first data to the first processing module, wherein the first data is data transmitted through n channels in different clock domains;
[0009] The first processing module is used to perform filtering, arbitration and transmission processing on the first data in sequence, and transmit the second data obtained after the processing to the second processing module;
[0010] The second processing module is used to sequentially perform algorithm splicing and ping-pong operation processing on the second data, and store the third data obtained after the processing according to each channel;
[0011] The terminal is used to read the transmission data in the first processing module and the second processing module respectively, and after analyzing the transmission data, send parameter configuration instructions to the first processing module and the second processing module respectively.
[0012] Preferably, the first processing module includes a first FIFO module, a FIR module, a second FIFO module arbitration module and a data sending module.
[0013] The first FIFO module is used to receive the first data, perform cross-clock domain conversion processing on the first data, and send the first sub-data obtained after the conversion to the FIR module;
[0014] The FIR module is used for performing high-pass filtering on the first sub-data, and sending the second sub-data obtained after filtering to the second FIFO module;
[0015] The second FIFO module is used to perform cross-clock domain processing on the second sub-data and send the processed third sub-data to the arbitration module;
[0016] The arbitration module is used to arbitrate the data transmission and transmit the obtained second data to the data sending module;
[0017] The data sending module is used for sending the second data to the second processing module.
[0018] Preferably, in the first FIFO module, the cross-clock domain conversion processing is specifically: using a two-beat method or an asynchronous dual-port RAM method or a Gray code conversion method to convert the clock domain of the first data to the same as the clock domain in the FIR module to obtain the second sub-data.
[0019] Preferably, in the second FIFO module, the cross-clock domain conversion processing is specifically: using a two-beat method or an asynchronous dual-port RAM method or a Gray code conversion method to convert the clock domain of the second sub-data to the same as the clock domain in the arbitration module to obtain the third sub-data.
[0020] Preferably, the second processing module includes a data receiving module, an algorithm splicing module, a ping-pong operation module, a third FIFO module and a storage control module;
[0021] The data receiving module is used to receive the second data and transmit the second data to the algorithm splicing module;
[0022] The algorithm splicing module is used to perform algorithm splicing processing on the second data, and input the fourth data obtained after the processing into the ping-pong operation module;
[0023] The ping-pong operation module is used to perform read and write operations on the first memory group and the second memory group respectively under the control of the fourth data to obtain fifth data, and the fifth data is transmitted to the storage control module through the third FIFO module for storage.
[0024] Preferably, in the algorithm splicing module, the algorithm splicing processing of the second data is specifically: using a transparent transmission method to process the write operation data; using a pipeline method and a counter operation to segment the read operation data with a 16-bit granularity.
[0025] Preferably, the data acquisition module is n AD acquisition cards, and the data acquired by each of the AD acquisition cards are data with a clock domain.
[0026] Preferably, the system also includes a terminal and a first control module, the terminal is used to send control instructions to the first control module; the first control module is used to read the data information in the first processing module and the second processing module respectively, and under the control of the terminal, send a first configuration instruction to the first processing module and send a second configuration instruction to the second processing module.
[0027] Preferably, the first processing module includes a first instruction parsing module, the first instruction parsing module is used to send the data transmitted by the FIR module and the arbitration module to the first control module, and receive the first configuration instruction, and send the first configuration instruction to the FIR module and the arbitration module;
[0028] The second processing module also includes a second instruction parsing module, which is used to send the data transmitted by the algorithm splicing module and the storage control module to the first control module, and to receive the second configuration instruction and send the second configuration instruction to the algorithm splicing module and the storage control module.
[0029] Preferably, the first processing module, the second processing module, the first control module and the storage module are all integrated on a PCB circuit board.
[0030] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0031] 1. A multi-channel data acquisition and storage system provided by an embodiment of the present invention can select the starting address of the read and write operations by setting the module configuration related to the terminal to transmit data;
[0032] 2. A multi-channel data acquisition and storage system provided by an embodiment of the present invention, wherein the algorithm splicing module is capable of reducing the bit width and granularity of the transmitted data;
[0033] 3. A multi-channel data acquisition storage system provided by an embodiment of the present invention has a ping-pong operation module, which performs read and write operations on two groups of memories at the same time (that is, one group is performing a read operation while the other group is performing a write operation, thereby improving the read and write rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of the system structure. DETAILED DESCRIPTION
[0036] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0037] In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent to one of ordinary skill in the art that these specific details are not necessarily employed to practice the present invention. In other embodiments, in order to avoid obscuring the present invention, well-known structures, circuits, materials, or methods are not specifically described.
[0038] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment," "an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. In addition, it will be appreciated by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0039] In the description of the present invention, the directions or positional relationships indicated by terms such as “front”, “rear”, “left”, “right”, “up”, “down”, “vertical”, “horizontal”, “high”, “low”, “inside” and “outside” are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they should not be understood as limiting the scope of protection of the present invention. Example
[0040] This embodiment discloses a multi-channel data acquisition and storage system. Figure 1 As shown, it includes a data acquisition module, a first processing module, a second processing module and a terminal;
[0041] The data acquisition module is used to acquire first data and transmit the first data to the first processing module, wherein the first data is data transmitted through n channels in different clock domains;
[0042] The data acquisition module is used to collect multiple data, and among the multiple data, the channels for each data transmission are different, and the clock domains carried by each data are also different. Therefore, the data acquisition module collects data in different clock domains and transmits them simultaneously in multiple channels.
[0043] In this embodiment, the data acquisition module is n AD acquisition cards, and the AD acquisition cards are AD acquisition chips from HuaWei Electronics. Four acquisition chips are used for multi-channel data transmission, and the data collected by each of the AD acquisition cards are data with a clock domain. The data collected by each AD acquisition card are data with the clock domain of the card. When the data is transmitted, it can be transmitted with the clock domain of the AD card.
[0044] In this embodiment, the first processing module, the second processing module, the memory and the first control module are all integrated on the PCB circuit board. The AD card is connected to the PCB circuit board card through the FMC interface. The first processing module and the second processing module both use the 7v690t programmable gate array of Fudan Microelectronics, and the first control module uses the LSOCAM0201 dual-core ARM processor of Xi'an Microelectronics Research Institute. The use of these chips integrated on the PCB circuit board can reduce the space area between the boards while realizing the collection and storage of multi-channel data.
[0045] In this embodiment, the first processing module is used to filter, arbitrate and transmit the first data in sequence, and transmit the second data obtained after processing to the second processing module; the first processing module includes a first FIFO module, a FIR module, a second FIFO module arbitration module and a data sending module,
[0046] The first FIFO module is used to receive the first data, perform cross-clock domain conversion processing on the first data, and send the first sub-data obtained after the conversion to the FIR module;
[0047] In the first FIFO module of the present embodiment, the data transmitted in each channel is processed separately and processed by channel. The cross-clock domain conversion processing is specifically: the clock domain of the first data is converted to the same as the clock domain in the FIR module by using a two-beat method, an asynchronous dual-port RAM method, or a Gray code conversion method to obtain the second sub-data. The two-beat method, the asynchronous dual-port RAM method, or the Gray code conversion method used to process the first data are all methods for performing cross-clock domain conversion on data transmission in the prior art. In the first FIFO module, the clock domain of the first data before input is converted to match the clock domain that can adapt to data transmission in the FIR module.
[0048] In this embodiment, the FIR module is used to perform high-pass filtering on the first sub-data, and send the second sub-data obtained after filtering to the second FIFO module. In the FIR module, the first control module reconfigures instructions through the communication bus, which is very flexible, and inputs the data after filtering into the second FIFO module.
[0049] The second FIFO module is used for performing cross-clock domain processing on the second sub-data and sending the processed third sub-data to the arbitration module;
[0050] In the second FIFO module of the present embodiment, the cross-clock domain conversion process is specifically as follows: the clock domain of the second sub-data is converted to be the same as the clock domain in the arbitration module by using a two-beat method, an asynchronous dual-port RAM method or a Gray code conversion method, and the third sub-data is obtained. The method used for processing the data in the first FIFO module is the same, and after passing through the second FIFO module, the 16-bit input data can be converted into 512-bit output data, and the data is spliced and converted into 512-bit data.
[0051] The arbitration module is used to arbitrate the data transmission and transmit the obtained second data to the data sending module; in this embodiment, the arbitration module is to determine whether there is data in each FIFO of each channel of the previous module, and if there is data, it determines whether the data of this channel is transmitted. The module can be controlled by the ARM instruction to control the transmission priority and the threshold of the judgment condition, that is, when there is data in the FIFO, a non-empty flag signal will be generated, and the signal will be introduced into the arbitration module. The arbitration signal determines which channel is non-empty and has data according to the signal.
[0052] The data sending module is used to send the second data to the second processing module, and implements the sending protocol through the XilinxAurora IP core to send the data to the second processing module.
[0053] The second processing module is used to sequentially perform algorithm splicing and ping-pong operation processing on the second data, and store the third data obtained after the processing according to each channel; the second processing module includes a data receiving module, an algorithm splicing module, a ping-pong operation module, a third FIFO module and a storage control module;
[0054] The data receiving module is used to receive the second data and transmit the second data to the algorithm splicing module. The second processing module receives the data sent by the first processing module through the Aurora receiving module and implements the receiving protocol through the XilinxAurora IP core.
[0055] In the algorithm splicing module of this embodiment, the algorithm splicing processing of the second data is specifically as follows: the write operation data is processed by the transparent transmission method; the read operation data is segmented with a 16-bit granularity by using a pipeline method and a counter operation, and according to the configuration of the base address and the read address length given by the terminal, the data segmentation with a 16-bit granularity is realized through the pipeline method and the counter operation.
[0056] The specific algorithm splicing is as follows: the data width of the external interface is 512 bits, but the user provides 8 channels of 64-bit data. It is necessary to judge the data splicing based on the status. For example, if only 4 of the 8 channels of data are valid, the remaining 4 channels are automatically padded to 0 by FPGA, and so on, to achieve a 16-bit granularity read operation.
[0057] The algorithm splicing module is used to perform algorithm splicing processing on the second data, and input the fourth data obtained after the processing into the ping-pong operation module;
[0058] The ping-pong operation module is used to perform read and write operations on the first memory group and the second memory group respectively under the control of the fourth data to obtain fifth data, and the fifth data is transmitted to the storage control module through the third FIFO module for storage.
[0059] In this embodiment, the first memory group includes several DDR3 memories, and the second memory group includes several DDR3 memories. The ping-pong operation module can perform read and write operations on the first memory group and the second memory group at the same time, so as to realize the simultaneous generation of two groups of DDR3 control signals. The two groups of DDR3 perform read and write operations respectively, and the rate is improved. The control signal can directly control the read and write operations of DDR3 after passing through the DDR3 storage control module. The data is transmitted to the DDR3 storage control module after cross-clock conversion through the FIFO module. The DDR3 storage control module is implemented by the Xilinx MIG IP core, and the parameters of the module can be controlled by ARM-side instructions, such as the starting address of the read and write operation and the length of the read and write operation.
[0060] The terminal is used to read the transmission data in the first processing module and the second processing module respectively, and after analyzing the transmission data, send parameter configuration instructions to the first processing module and the second processing module respectively.
[0061] The first control module is set up, and the FIFO module in this control module is used for data storage and cross-clock domain processing; the FIR module is used to perform high-pass filtering on the collected signal; the arbitration module determines the output of four-way data according to the host computer instructions and the previous level FIFO status; the data sending module sends the data according to the Auro protocol.
[0062] The system also includes a first control module, and the terminal is used to send control instructions to the first control module; the first control module is used to read the data information in the first processing module and the second processing module respectively, and under the control of the terminal, send a first configuration instruction to the first processing module and send a second configuration instruction to the second processing module.
[0063] The first processing module includes a first instruction parsing module, the first instruction parsing module is used to send the data transmitted by the FIR module and the arbitration module to the first control module, and receive the first configuration instruction, and send the first configuration instruction to the FIR module and the arbitration module;
[0064] In the first processing module, a first instruction parsing module is set, which is mainly used to read the data transmitted in the FIR module and the arbitration module, transmit the data to the first control module, and then accept the configuration instructions sent by the first module. The configuration instructions mentioned in this embodiment refer to the corresponding parameter instructions distributed to the FIR module and the arbitration module, and through the configured instructions, the process of reading or writing any starting address of the transmitted data can be realized.
[0065] In the first instruction parsing module, the data first passes through the FIFO module for storage and cross-clock domain processing (dealing with the problem of signal cross-clock domain between the previous AD data clock domain and the next FIR module clock domain); then, the data passes through the FIR module for high-pass filtering to filter out interference signals; after that, the data is stored and cross-clock domain processed again (dealing with the problem of signal cross-clock domain between the previous FIR module clock domain and the next arbitration module clock domain); the data is then arbitrated to determine the channel for transmitting the signal; finally, the data of the channel is sent out according to the Auro protocol.
[0066] The second processing module also includes a second instruction parsing module, which is used to send the data transmitted by the algorithm splicing module and the storage control module to the first control module, and to receive the second configuration instruction and send the second configuration instruction to the algorithm splicing module and the storage control module. The function of the second instruction parsing module is the same as that of the first instruction parsing module, except that the data obtained by the second instruction parsing module is obtained from the algorithm splicing module and the storage control module, and instruction parameters are sent to the algorithm splicing module and the storage control module to perform read and write operations on the data.
[0067] A multi-channel data acquisition and storage system provided by the present embodiment improves integration and reduces space requirements; pre-processes the collected data (i.e., high-pass filtering) to reduce the workload of the terminal and speed up the processing of the collected data; the starting address of the read and write operations can be selected by parsing the terminal instructions; the data of the read operation in the data storage has a bit width of 256 bits and a granularity of 16 bits after passing through the algorithm splicing processing module; an arbitration module is designed to determine which channel is transmitted first according to the amount of input data of each channel, so that the data of a single channel can be self-spliced without the need for subsequent channel data separation; the ping-pong operation module can perform read and write operations on two groups of DDR3 (memory) at the same time (i.e., one group is performing a read operation while the other group is performing a write operation), thereby improving the read and write rates.
[0068] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multi-channel data acquisition and storage system, characterized in that: It includes a data acquisition module, a first processing module, a second processing module and a terminal; the data acquisition module is used to acquire first data and transmit the first data to the first processing module, and the first data is data transmitted by n channels in different clock domains; The first processing module is used to perform filtering and arbitration transmission processing on the first data in sequence, and transmit the second data obtained after the processing to the second processing module; the second processing module is used to perform algorithm splicing and ping-pong operation processing on the second data in sequence, and store the third data obtained after the processing according to each channel; the terminal is used to read the transmission data in the first processing module and the second processing module respectively, and after analyzing the transmission data, send parameter configuration instructions to the first processing module and the second processing module respectively; The first processing module includes a first FIFO module, a FIR module, a second FIFO module arbitration module and a data sending module. The first FIFO module is used to receive the first data, perform cross-clock domain conversion processing on the first data, and send the first sub-data obtained after the conversion to the FIR module; the FIR module is used to perform high-pass filtering on the first sub-data, and send the second sub-data obtained after filtering to the second FIFO module; the second FIFO module is used to perform cross-clock domain processing on the second sub-data, and send the processed third sub-data to the arbitration module; the arbitration module is used to perform arbitration transmission on data, and transmit the obtained second data to the data sending module; the data sending module is used to send the second data to the second processing module; The second processing module includes a data receiving module, an algorithm splicing module, a ping-pong operation module, a third FIFO module and a storage control module; the data receiving module is used to receive the second data and transmit the second data to the algorithm splicing module; the algorithm splicing module is used to perform algorithm splicing processing on the second data and input the fourth data obtained after the processing into the ping-pong operation module; the ping-pong operation module is used to perform read and write operations on the first memory group and the second memory group respectively under the control of the fourth data to obtain fifth data, and the fifth data is transmitted to the storage control module through the third FIFO module for storage; The system further includes a first control module, and the terminal is used to send a control instruction to the first control module; the first control module is used to read data information in the first processing module and the second processing module respectively, and under the control of the terminal, send a first configuration instruction to the first processing module and send a second configuration instruction to the second processing module; The first processing module includes a first instruction parsing module, the first instruction parsing module is used to send the data transmitted by the FIR module and the arbitration module to the first control module, and receive the first configuration instruction, and send the first configuration instruction to the FIR module and the arbitration module; the second processing module also includes a second instruction parsing module, the second instruction parsing module is used to send the data transmitted by the algorithm splicing module and the storage control module to the first control module, and receive the second configuration instruction, and send the second configuration instruction to the algorithm splicing module and the storage control module; The first processing module, the second processing module, the memory and the first control module are all integrated on a PCB circuit board. The first processing module and the second processing module both use a programmable gate array, and the first control module uses a dual-core ARM processor. After passing through the second FIFO module, the 16-bit input data is converted into 512-bit output data, and the data is spliced and converted into 512-bit data. By parsing the terminal instructions, the starting address of the read and write operations can be selected; the data of the read operation in the data storage passes through the algorithm splicing processing module, and the bit width is 256 bits and the granularity is 16 bits; the arbitration module decides which channel is transmitted first according to the amount of input data of each channel, so that the data of a single channel can be self-spliced, and there is no need for subsequent channel data separation.
2. A multi-channel data acquisition and storage system according to claim 1, characterized in that: In the first FIFO module, the cross-clock domain conversion process is specifically: using a two-beat method or an asynchronous dual-port RAM method or a Gray code conversion method to convert the clock domain of the first data to the same as the clock domain in the FIR module to obtain the second sub-data.
3. A multi-channel data acquisition and storage system according to claim 1, characterized in that: In the second FIFO module, the cross-clock domain conversion processing is specifically: using a two-beat method or an asynchronous dual-port RAM method or a Gray code conversion method to convert the clock domain of the second sub-data to the same as the clock domain in the arbitration module to obtain the third sub-data.
4. A multi-channel data acquisition and storage system according to claim 1, characterized in that: In the algorithm splicing module, the algorithm splicing processing of the second data is specifically: using the transparent transmission method to process the write operation data; using the pipeline method and counter operation to divide the read operation data with a 16-bit granularity.
5. The multi-channel data acquisition and storage system according to claim 1, characterized in that: The data acquisition module is n AD acquisition cards, and the data acquired by each of the AD acquisition cards are data with a clock domain.
