A PCI bus data acquisition system based on FPGA
By designing a PCI bus data acquisition system based on FPGA and utilizing the hardware environment and programming capabilities of FPGA, efficient data acquisition and transmission of the PCI bus is achieved, which solves the lack of high real-time and universal PCI bus data acquisition in the existing technology. problems, improving the controllability and adaptability of data collection.
Patent Information
- Application Number
- CN202210709347.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-22
AI Technical Summary
The existing technology lacks a high-real-time and universal PCI bus data acquisition method, making it difficult to meet the high-speed and universal needs of the data acquisition system.
A PCI bus data acquisition system based on FPGA is designed, including PCI chip, FPGA and ADC chip. Through the local bus interface module, instruction judgment module, cache module and configuration module of FPGA, the analysis and data transmission of the PCI bus are realized. Adapt to most ADC chips on the market, dynamically change the ADC working mode and cache data.
It achieves high real-time and universal PCI bus data collection, solves the problem of real-time data transmission between the data collection card and the computer, and improves the controllability and adaptability of data collection.
Smart Images

Figure CN115080491B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition, and in particular to a PCI bus data acquisition system based on FPGA. Background Art
[0002] With the rapid development of software radio technology, users can configure different application software on the same hardware platform to meet the functional requirements of different periods and environments without changing the hardware environment. At present, software radio technology is widely used in data acquisition systems. Thanks to the rise of FPGA (Field Programmable Gate Array) technology, data acquisition cards can be made with FPGA as the core, and various ADC (analog to digital) signal processing chips can be mounted. Its rich peripheral interfaces, register hardware resources, and strong parallel capabilities can flexibly perform drive configuration and transmit signal data.
[0003] At present, in order to meet the high-speed and universal requirements of the data acquisition system and solve the problem of real-time data transmission between the data acquisition card and the computer, the PCI (Peripheral Component Interconnect) bus can be used as the communication interface between the FPGA and the computer. With its advantages of high performance, low cost, and high speed, the PCI bus has surpassed other buses and become the mainstream bus standard for computers. Using the PCI bus as the bus interface of the data acquisition card is also convenient for the development of the host computer. However, there is currently no real-time and universal PCI bus data acquisition method. Therefore, how to provide a real-time and universal PCI bus data acquisition method has become a technical problem that needs to be solved urgently by technicians in this field. Summary of the invention
[0004] The invention provides a PCI bus data acquisition system based on FPGA, which solves the problem of lack of high-real-time and universal PCI bus data acquisition in the related art.
[0005] As one aspect of the present invention, there is provided a PCI bus data acquisition system based on FPGA, which includes a host computer and a board card that is communicatively connected to the host computer, the board card includes a PCI chip, an FPGA and an ADC chip, the PCI chip and the ADC chip are both communicatively connected to the FPGA, the FPGA includes a local bus interface module, an instruction judgment module, a cache module and a configuration module, the instruction judgment module is communicatively connected to the bus interface module, and the configuration module and the cache module are both communicatively connected to the instruction judgment module;
[0006] The local bus interface module is used to parse the instruction data sent by the host computer through the PCI chip to obtain a read / write request signal, and upload the cache signal in the cache module fed back by the instruction judgment module and the collected data of the ADC chip to the host computer through the PCI chip;
[0007] The instruction judgment module is used to send the read / write request signal to the cache module, and feed back the cache signal in the cache module and the collected data of the ADC chip to the local bus interface module;
[0008] The cache module is used to cache the collected data of the ADC chip;
[0009] The configuration module is used to configure the ADC chip according to the configuration data of the host computer.
[0010] Furthermore, the local bus interface module is used to parse the instruction data sent by the host computer through the PCI chip to obtain a read / write request signal, including:
[0011] The local bus interface module is used to configure the interface of the PCI chip to the local bus slave mode, and to parse the instruction data sent by the host computer according to the read and write timing to obtain a read and write request signal when the interface of the PCI chip is in the local slave mode.
[0012] Furthermore, the ADC chip includes a first ADC chip and a second ADC chip, and both the first ADC chip and the second ADC chip are capable of collecting data.
[0013] Furthermore, the cache module includes a data cache module and a clock cache module. The data cache module is used to cache the collected data of the first ADC chip and the collected data of the second ADC chip. The clock cache module is used to synchronize the data clocks of the collected data of the first ADC chip and the collected data of the second ADC chip.
[0014] Furthermore, the instruction judgment module is used to send the read / write request signal to the cache module, including:
[0015] The instruction judgment module is used to send the instruction data to the data cache module for caching according to the write request signal.
[0016] Furthermore, the configuration module is used to perform mode configuration and data acquisition configuration on the first ADC chip and the second ADC chip respectively according to the configuration data of the host computer.
[0017] Furthermore, the local bus of the PCI chip includes: a local bus request signal, a local bus response signal, a synchronous clock signal, a start valid address signal, a read / write indication signal, a transmission end flag signal, a data valid flag signal, a data line signal and an address line signal.
[0018] Furthermore, the working state of the local bus interface module includes an initial state, a single-shot write state, a burst read state and an end state.
[0019] When the local bus of the PCI chip satisfies that the starting effective address signal is equal to 0, the read / write indication signal is equal to 1, and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state to the one-shot write state;
[0020] When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the one-shot write state to the end state;
[0021] When the local bus of the PCI chip satisfies that the start effective address signal is equal to 0, the read / write indication signal is equal to 0, and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state to the burst read state;
[0022] When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the burst read state to the end state;
[0023] When the local bus of the PCI chip meets the rising edge of the next clock signal, the local bus interface module jumps from the end state back to the initial state.
[0024] Furthermore, the cache module is used to implement the cache of the collected data of the ADC chip, including:
[0025] After the PCI chip writes instruction data into the specified address of the RAM memory in the FPGA, the cache module can receive the instruction data transmitted by the instruction judgment module;
[0026] The cache module can start the RAM memory according to the value of the reset flag register and store the sampling data of the ADC chip;
[0027] The cache module can determine whether the sampling data of the ADC chip has been written according to the address of the RAM memory, and update the value of the reset register when it is determined that the sampling data of the ADC chip has been written.
[0028] The FPGA-based PCI bus data acquisition system provided by the present invention is built based on the hardware environment of FPGA, and performs acquisition control and data transmission on the ADC chip through the PCI bus. By relying on the powerful mounting ability of FPGA and its flexible programming language development ability, the problem of real-time data transmission between the data acquisition card and the computer is solved. Compared with the prior art, the system has a higher degree of generalization, can adapt to the vast majority of ADC chips on the market, and performs PCI bus data acquisition with FPGA as the core. In addition, a control command is issued on the upper computer end, the ADC working mode is dynamically changed through the PCI local bus, and then the data cache is started, which effectively ensures the controllability of PCI bus data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention. In the accompanying drawings:
[0030] Figure 1 This is a structural block diagram of the FPGA-based PCI bus data acquisition system provided by the present invention.
[0031] Figure 2 This is a structural block diagram of the FPGA provided by the present invention.
[0032] Figure 3 This is a state jump diagram of the local bus interface module provided by the present invention.
[0033] Figure 4 This is a flow chart of the implementation of the first data cache module provided by the present invention. DETAILED DESCRIPTION
[0034] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.
[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0037] In this embodiment, a PCI bus data acquisition system based on FPGA is provided. Figure 1 is a structural block diagram of a PCI bus data acquisition system based on FPGA provided according to an embodiment of the present invention, Figure 2 for Figure 1 The specific structure diagram of the FPGA in Figure 1 and Figure 2 As shown, it includes: a host computer 100 and a board 200 that is communicatively connected to the host computer 100, the board 200 includes a PCI chip 210, an FPGA 220 and an ADC chip, the PCI chip 210 and the ADC chip are both communicatively connected to the FPGA 220, the FPGA 220 includes a local bus interface module pci_local, an instruction judgment module cmd_judge, a cache module and a configuration module, the instruction judgment module cmd_judge is communicatively connected to the bus interface module pci_local, the configuration module and the cache module are both communicatively connected to the instruction judgment module;
[0038] The local bus interface module pci_local is used to parse the instruction data sent by the host computer through the PCI chip 210 to obtain a read / write request signal, and upload the cache signal in the cache module fed back by the instruction judgment module cmd_judge and the collected data of the ADC chip to the host computer 100 through the PCI chip 210;
[0039] The command judgment module cmd_judge is used to send the read / write request signal to the cache module, and feed back the cache signal in the cache module and the collected data of the ADC chip to the local bus interface module pci_local;
[0040] The cache module is used to cache the collected data of the ADC chip;
[0041] The configuration module is used to configure the ADC chip according to the configuration data of the host computer.
[0042] In the embodiment of the present invention, the PCI chip 210 has two sets of data buses, wherein the PCI bus is connected to the host computer 100 to realize the host computer 100's main control of the PCI chip 210, and the local bus of the PCI chip 210 is connected to the FPGA 220. The FPGA 220 acts as a controller of the PCI slave device to control the instructions and data interaction of the PCI local bus. The FPGA is connected to the ADC chip, and the mode configuration of the ADC chip is configured by the host computer 100 and loaded by the FPGA. The data collected by the ADC chip is sent to the FPGA 220, and then uploaded to the host computer 100 through the PCI chip 210.
[0043] In summary, the FPGA-based PCI bus data acquisition system provided by the embodiment of the present invention is built based on the hardware environment of FPGA, and the ADC chip is collected and controlled and data is transmitted through the PCI bus. By relying on the powerful mounting ability of FPGA and its flexible programming language development ability, the problem of real-time data transmission between the data acquisition card and the computer is solved. Compared with the prior art, the degree of generalization is higher, and it can adapt to the vast majority of ADC chips on the market, and PCI bus data acquisition is performed with FPGA as the core. In addition, a control command is issued on the host computer end, the ADC working mode is dynamically changed through the PCI local bus, and then the data cache is started, which effectively ensures the controllability of PCI bus data acquisition.
[0044] Specifically, in the embodiment of the present invention, Figure 1 and Figure 2 As shown, the ADC chip includes a first ADC chip 230 and a second ADC chip 240 , and both the first ADC chip 230 and the second ADC chip 240 are capable of collecting data.
[0045] In the embodiment of the present invention, the local bus interface module pci_local is used to parse the instruction data sent by the host computer 100 through the PCI chip 210 to obtain a read / write request signal, including:
[0046] The local bus interface module pci_local is used to configure the interface of the PCI chip 210 to the local bus slave mode, and to parse the instruction data sent by the host computer 100 according to the read and write timing to obtain a read and write request signal when the interface of the PCI chip 210 is in the local slave mode.
[0047] Specifically, the local bus interface module pci_local is used to reset and control the interface of the PCI local bus. After the PCI bus is configured as the local bus slave mode, the local bus interface module pci_local interfaces with the PCI local bus, performs data parsing according to the read and write timing, and establishes data and instruction transmission between the FPGA and the PCI bus based on the proposed protocol. The parsed write request and read request signals are given to the next instruction judgment module cmd_judge.
[0048] In an embodiment of the present invention, the command judgment module cmd_judge is used to send the read / write request signal to the cache module, including:
[0049] The command judgment module cmd_judge is used to send the command data to the data cache module for caching according to the write request signal.
[0050] Specifically, the command judgment module cmd_judge is used to guide the data of the PCI local bus read and write operations, and to issue the control instructions of the ADC. Based on the proposed protocol, the command data that needs to be written to a specific address is transmitted to the data acquisition cache module, the data cache is started, and the acquisition data and the cache full signal flag are sent to the PCI local bus interface and uploaded to the host computer. The module is more about scheduling and allocating instructions on the PCI local bus end, and completing the docking work with multiple modules.
[0051] In an embodiment of the present invention, the cache module includes a data cache module and a clock cache module. The data cache module is used to cache both the collected data of the first ADC chip and the collected data of the second ADC chip. The clock cache module is used to synchronize the data clocks of the collected data of the first ADC chip and the collected data of the second ADC chip.
[0052] Specifically, the data buffer module may include a first data buffer module data_buf0 and a second data buffer module data_buf1, and the clock buffer module may include a first clock buffer module clk_buf0 and a second clock buffer module clk_buf1. Figure 2 As shown, the first data cache module data_buf0 and the second data cache module data_buf1 are both connected to the instruction judgment module cmd_judge, the first clock cache module clk_buf0 is connected to the first data cache module data_buf0, and the second clock cache module clk_buf1 is connected to the second data cache module data_buf1.
[0053] In the embodiment of the present invention, the configuration module is used to perform mode configuration and data acquisition configuration on the first ADC chip and the second ADC chip respectively according to the configuration data of the host computer.
[0054] Specifically, Figure 2 As shown, the configuration module includes a first configuration module adc_ctrl0 and a second configuration module adc_ctrl1. The first configuration module adc_ctrl0 is respectively connected to the instruction judgment module cmd_judge and the first clock buffer module clk_buf0, and the second configuration module adc_ctrl1 is respectively connected to the instruction judgment module cmd_judge and the first clock buffer module clk_buf1.
[0055] It should also be understood that the first ADC chip 230 is connected to the first configuration module adc_ctrl0, and the second ADC chip is connected to the second configuration module adc_ctrl1.
[0056] Specifically, the first configuration module adc_ctrl0 is used for the FPGA to configure the mode and data acquisition of the first ADC chip, and the second configuration module adc_ctrl1 is used for the FPGA to configure the mode and data acquisition control of the second ADC chip. The mode configuration instruction is sent from the PCI bus, and after being parsed by the FPGA, it is sent to the instruction judgment module cmd_judge. According to the corresponding register address, the configuration of the corresponding ADC chip is activated. The first configuration module adc_ctrl0 and the second configuration module adc_ctrl1 also receive the analog-to-digital data acquisition of the two ADC chips and send them to the FPGA in parallel.
[0057] Further specifically, the specific mode configuration and data use configuration, such as configuring the sampling frequency, internal or external DDS (signal generator), sweep mode, DMA transmission mode, etc., the detailed configuration method is set according to the ADC chip manual. The orthogonal sampling data is transmitted to the first clock buffer module clk_buf0 and the second clock buffer module clk_buf1 in parallel in I and Q channels respectively.
[0058] In the embodiment of the present invention, the first clock buffer module clk_buf0 is used for data synchronization after the first ADC chip collects data, and the second clock buffer module clk_buf1 is used for data synchronization after the second ADC chip collects data. Since the multi-channel data sampling frequency of the ADC is configurable, the data synchronization clock sent to the FPGA is also not fixed, so it needs to be matched to the FPGA operating frequency to avoid metastable state and facilitate data storage.
[0059] Specifically, since the IQ data sampling frequency of the ADC chip changes dynamically from 20 to 60Mhz, and considering that the subsequent data processing is performed at a fixed frequency, the two fifo buffers in the FPGA are called separately. The input frequency of the fifo is connected to the ADC sampling frequency, and the output frequency of the fifo is connected to the fixed frequency of 80Mhz. This operation processes the ADC sampling data across clock domains to avoid clock mismatch, and the output clock is faster than the input clock, so the fifo will not overflow.
[0060] In an embodiment of the present invention, the first data cache module data_buf0 is used for FGPA to store data of the first ADC chip, and the second data cache module data_buf1 is used for FPGA to store data of the second ADC chip. Considering that the collected data will be sampled and analyzed later, a continuous sampling value is cached to the corresponding data cache module. After the PCI local bus sends a start cache signal, the command judgment module cmd_judge controls the data cache module to store ADC data. After the PCI local bus sends a read signal, the command judgment module cmd_judge reads the ADC cache data in the data cache module.
[0061] In the embodiment of the present invention, the local bus of the PCI chip 210 includes: a local bus request signal lhold, a local bus response signal lholda, a synchronous clock signal lclk, a start valid address signal ads, a read / write indication signal lwr, a transmission end flag signal blast, a data valid flag signal ready, a data line signal ld and an address line signal la.
[0062] Specifically, Figure 3 As shown, the working states of the local bus interface module include an initial state IDLE, a single-trigger write state SINGLE_WR, a burst read state Burst_RD and an end state STOP. When the local bus of the PCI chip satisfies that the start effective address signal is equal to 0, the read / write indication signal is equal to 1 and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state IDLE to the single-trigger write state SINGLE_WR;
[0063] When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the single-shot write state SINGLE_WR to the end state STOP;
[0064] When the local bus of the PCI chip satisfies that the start effective address signal is equal to 0, the read / write indication signal is equal to 0, and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state IDLE to the burst read state Burst_RD;
[0065] When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the burst read state Burst_RD to the end state STOP;
[0066] When the local bus of the PCI chip meets the rising edge of the next clock signal, the local bus interface module jumps from the end state STOP back to the initial state IDLE.
[0067] pass Figure 3 As shown in the state transition diagram, the local bus interface module pci_local connects to the PCI local bus, performs data parsing according to the read and write timing, and establishes data and command transmission between the FPGA and the PCI local bus based on the proposed protocol. According to the above state transitions, the data and command transmission between the PCI local bus and the FPGA is completed.
[0068] In an embodiment of the present invention, the cache module is used to implement the cache of the collected data of the ADC chip, including:
[0069] After the PCI chip writes instruction data into the specified address of the RAM memory in the FPGA, the cache module can receive the instruction data transmitted by the instruction judgment module;
[0070] The cache module can start the RAM memory according to the value of the reset flag register and store the sampling data of the ADC chip;
[0071] The cache module can determine whether the sampling data of the ADC chip has been written according to the address of the RAM memory, and update the value of the reset register when it is determined that the sampling data of the ADC chip has been written.
[0072] like Figure 4As shown, it is a flow chart for implementing the first data cache module data_buf0, which is used for FPGA to distribute and store the sampled data of the first ADC chip. Considering that the collected data will be continuously sampled and analyzed later, it is recommended to cache a continuous section of sampled data to the first data cache module data_buf0. The first data cache module data_buf0 calls the BRAM memory in the FPGA. After the PCI local bus writes 8'hAA to the address 32'h0800_0000, the instruction judgment module cmd_judge transmits the instruction to the cache module to start the BRAM and cache the sampled data of the first ADC chip. At the same time, the reset flag register reg0 is 8'h00 and the address is 32'h0800_0001, indicating that the BRAM is not finished. When the BRAM finishes writing addresses 0~65535, the first data cache module data_buf0 updates reg0 to 8'hFF, indicating that the BRAM is full. The PCI local bus will poll the register. If it is judged to be 8'hFF, all the cached data of the BRAM will be read out. After the PCI local bus processes the ADC cache data, it will rewrite 8'hAA to address 32'h0800_0000, and then start the BRAM cache, and the subsequent round-trip operation can be performed. The start write address of the second data cache module data_buf1 is 32'h0800_0002, and the flag register address is 32'h0800_0003. The implementation process is the same as the first data cache module data_buf0, which will not be repeated here.
[0073] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A PCI bus data acquisition system based on FPGA, characterized in that: It includes a host computer and a board connected to the host computer for communication, the board includes a PCI chip, an FPGA and an ADC chip, the PCI chip and the ADC chip are both connected to the FPGA for communication, the FPGA includes a local bus interface module, an instruction judgment module, a cache module and a configuration module, the instruction judgment module is connected to the bus interface module for communication, the configuration module and the cache module are both connected to the instruction judgment module for communication; The local bus interface module is used to parse the instruction data sent by the host computer through the PCI chip to obtain a read / write request signal, and upload the cache signal in the cache module fed back by the instruction judgment module and the collected data of the ADC chip to the host computer through the PCI chip; The instruction judgment module is used to send the read / write request signal to the cache module, and feed back the cache signal in the cache module and the collected data of the ADC chip to the local bus interface module; The cache module is used to cache the collected data of the ADC chip; The configuration module is used to configure the ADC chip according to the configuration data of the host computer; The local bus interface module is used to parse the instruction data sent by the host computer through the PCI chip to obtain a read / write request signal, including: The local bus interface module is used to configure the interface of the PCI chip to the local bus slave mode, and to parse the instruction data issued by the host computer according to the read and write timing to obtain a read and write request signal when the interface of the PCI chip is in the local slave mode; The local bus of the PCI chip includes: a local bus request signal, a local bus response signal, a synchronous clock signal, a start valid address signal, a read / write indication signal, a transmission end flag signal, a data valid flag signal, a data line signal and an address line signal; The working states of the local bus interface module include an initial state, a single-trigger write state, a burst read state and an end state. When the local bus of the PCI chip satisfies that the starting effective address signal is equal to 0, the read / write indication signal is equal to 1, and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state to the one-shot write state; When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the one-shot write state to the end state; When the local bus of the PCI chip satisfies that the start effective address signal is equal to 0, the read / write indication signal is equal to 0, and the transmission end flag signal is equal to 1, the local bus interface module jumps from the initial state to the burst read state; When the local bus of the PCI chip satisfies that the local bus request signal is equal to 1 and the local bus response signal is equal to 0, the local bus interface module jumps from the burst read state to the end state; When the local bus of the PCI chip meets the rising edge of the next clock signal, the local bus interface module jumps from the end state back to the initial state.
2. The system according to claim 1, characterized in that The ADC chip includes a first ADC chip and a second ADC chip, and both the first ADC chip and the second ADC chip can collect data.
3. The system according to claim 2, characterized in that The cache module includes a data cache module and a clock cache module. The data cache module is used to cache the collected data of the first ADC chip and the collected data of the second ADC chip. The clock cache module is used to synchronize the data clocks of the collected data of the first ADC chip and the collected data of the second ADC chip.
4. The system according to claim 3, characterized in that The instruction judgment module is used to send the read / write request signal to the cache module, including: The instruction judgment module is used to send the instruction data to the data cache module for caching according to the write request signal.
5. The system according to claim 2, characterized in that The configuration module is used to perform mode configuration and data acquisition configuration on the first ADC chip and the second ADC chip respectively according to the configuration data of the host computer.
6. The system according to claim 1, characterized in that The cache module is used to implement the cache of the collected data of the ADC chip, including: After the PCI chip writes instruction data into the specified address of the RAM memory in the FPGA, the cache module can receive the instruction data transmitted by the instruction judgment module; The cache module can start the RAM memory according to the value of the reset flag register and store the sampling data of the ADC chip; The cache module can determine whether the sampling data of the ADC chip has been written according to the address of the RAM memory, and update the value of the reset flag register when it is determined that the sampling data of the ADC chip has been written.
