CN-122019304-A - FPGA software monitoring information collection method based on layered serial summarization
Abstract
The invention belongs to the technical field of signal processing, and discloses a hierarchical serial summary-based FPGA software monitoring information collection method. According to the invention, a monitoring sampling module is arranged in an FPGA top layer module, a timer is arranged in the monitoring sampling module, monitoring acquisition signals are generated at regular time, the monitoring acquisition signals are output to a monitoring information collecting module in the top layer module through an AXI stream interface, summarized monitoring information returned by the monitoring information collecting module in the top layer module is converted into common IO data to be output, and the common IO data is transmitted to a serial output interface module to be converted into a required serial output protocol to be output. The invention provides an effective means for on-line health management of FPGA software, monitoring of the running state of the FPGA software and fault positioning.
Inventors
- HAN WENJUN
- HAO MING
- WU QINWEN
- SUN JIAN
- LING YUAN
- WU QINGNAN
- WEN ZHITAO
- WANG SHANSHAN
Assignees
- 中国电子科技集团公司第十四研究所
Dates
- Publication Date
- 20260512
- Application Date
- 20260127
Claims (5)
- 1. The FPGA software monitoring information collecting method based on layered serial summarization is characterized by comprising the following steps of: the method comprises the steps that 1, a monitoring information parallel-to-serial module is adopted to convert a plurality of monitoring signals which are input into a monitored module in parallel into serial data, and the serial data are output through an AXI stream interface; step 2, a monitoring information collection module is adopted to connect monitoring output AXI stream interfaces of a plurality of monitored modules, and multiple paths of monitoring information are combined into one path of AXI stream interface to be output; And 3, setting a monitoring sampling module in the FPGA top layer module, setting a timer in the monitoring sampling module, generating monitoring acquisition signals at regular time, outputting the monitoring acquisition signals to the monitoring information collecting module in the top layer module through the AXI stream interface, converting summarized monitoring information returned by the monitoring information collecting module in the top layer module into common IO data for output, and transmitting the common IO data to the serial output interface module to be converted into a required serial output protocol for output.
- 2. The method for collecting the monitoring information of the FPGA software based on the layered serial summarization according to claim 1, wherein the serial output interface module in the step 3 is an optical fiber output interface module, and the monitoring data is output by adopting a RocketIO or Aurora optical fiber protocol.
- 3. The method for collecting information based on layered serial summarization according to claim 1, wherein the FPGA software comprises a top layer Module, an L1 layer Module and an L2 layer Module, wherein two sub-modules of l1_module1 and l1_module2 are arranged under the top layer Module, no sub-Module is arranged under the l1_module1 Module, and a sub-Module l2_module1 is arranged under the l1_module2 Module.
- 4. The method for collecting monitoring information of FPGA software based on layered serial aggregation according to claim 3, wherein the monitoring information parallel-serial Module is not set in the top Module, and the monitoring information parallel-serial modules are set in the l1_module1 Module, the l1_module2 Module and the l2_module1 Module.
- 5. The method for collecting monitoring information of FPGA software based on layered serial summarization according to claim 3, wherein each Module with sub-modules comprises a top Module and an L1_Module2 Module, wherein the monitoring information collecting Module is arranged in the Module, and the monitoring information of all the sub-modules and the monitoring information of the Module are combined into one path to be output to the upper Module.
Description
FPGA software monitoring information collection method based on layered serial summarization Technical Field The invention mainly relates to the technical field of signal processing, in particular to a method for collecting FPGA software monitoring information based on layered serial summarization. Background In the traditional FPGA software development process, a monitoring information collection means of a system is lacked. Compared with conventional software development, the FPGA software development has the advantages that requirements on various layers such as timing convergence and resource occupation are paid attention to, the work is relatively complex, under the condition, a developer can concentrate the points of interest on whether the function of the FPGA software can be normally operated after the FPGA software is finished, and the collection of monitoring information in the FPGA software is less paid attention to. If faults occur after the FPGA software is delivered and operated, the FPGA software signals are captured and debugged in real time by adding ila acquisition cores in the design of the FPGA software. But this approach has multiple aspects of short plates. Firstly, adding ila in the design requires extra consumption of BRAM resources, the more the number of sampled signals is, the more the depth is, the more the number of consumed BRAM is, but the BRAM resources of the FPGA chip are limited, so that only a limited number ila can be added each time to grasp part of signals in the FPGA software design, when other signals need to be checked for a trace fault, ila needs to be changed, the process of ila-compiling to generate a bit stream-grabbing signal-analyzing the fault is required to be repeated for a plurality of times, and each compiling of the FPGA software needs to consume tens of minutes to a plurality of hours, so that the fault checking process of the FPGA software is extremely time-consuming. And secondly, an observer needs to download a cable by using the FPGA to connect with a JTAG port on a board card where the FPGA is located when looking up ila to grasp signals, or to connect with a network cable by using the Internet port on the board card where the FPGA is located to observe ila grasped signals in real time through an XVC technology. Thus, the ila signal troubleshooting cannot be observed in the absence or inconvenient connection of the download cable or network cable. More importantly, adding ila to the design belongs to an invasive debugging technology, and adding ila not only increases the use of BRAM, but also inevitably causes the change of the layout and wiring of the FPGA chip, thereby possibly changing the fault phenomenon, so that the fault becomes difficult to be checked or can not be accurately positioned. This shortcoming suggests that we need to introduce non-invasive debug techniques into FPGA software design to assist or directly locate faults. Adding monitoring information and collecting reporting is a very effective means in the design. Therefore, it is needed to provide a method for collecting monitoring information of FPGA software based on layered serial summarization, which can collect and report the running state in the FPGA software design, can be widely applied to various FPGA software designs, and provides effective means for on-line health management of the FPGA software, monitoring the running state of the FPGA software and locating faults. Disclosure of Invention The invention aims to provide a method for collecting monitoring information of FPGA software based on layered serial summarization, which aims to collect and report the running state in the design of the FPGA software and provides an effective means for on-line health management of the FPGA software, monitoring the running state of the FPGA software and locating faults. In order to achieve the above purpose, the invention provides a method for collecting FPGA software monitoring information based on layered serial summarization, which comprises the following steps: the method comprises the steps that 1, a monitoring information parallel-to-serial module is adopted to convert a plurality of monitoring signals which are input into a monitored module in parallel into serial data, and the serial data are output through an AXI stream interface; step 2, a monitoring information collection module is adopted to connect monitoring output AXI stream interfaces of a plurality of monitored modules, and multiple paths of monitoring information are combined into one path of AXI stream interface to be output; And 3, setting a monitoring sampling module in the FPGA top layer module, setting a timer in the monitoring sampling module, generating monitoring acquisition signals at regular time, outputting the monitoring acquisition signals to the monitoring information collecting module in the top layer module through the AXI stream interface, converting summarized monitoring information returned by th