Search

CN-120448353-B - Processing method and device for FPGA test result file

CN120448353BCN 120448353 BCN120448353 BCN 120448353BCN-120448353-B

Abstract

The application relates to the field of computers, in particular to a method and a device for processing an FPGA test result file. The method comprises the steps of obtaining a target file, determining target analysis rules corresponding to target FPGA development tools from a preset rule base, wherein the target FPGA development tools are the FPGA development tools corresponding to the target file, the preset rule base comprises a plurality of analysis rules, the plurality of analysis rules are respectively used for analyzing FPGA test result files output by different FPGA development tools, the target file is analyzed according to the target analysis rules to obtain m test results contained in the target file, and m is a positive integer.

Inventors

  • ZHAO GUOLIANG
  • WANG LIEWEI
  • Shi Anbo
  • ZHAO QI
  • WANG AIFEI
  • Mu Peipei
  • Zuo Binglin
  • ZHANG FULU
  • Cheng Xinfei

Assignees

  • 航天中认软件测评科技(北京)有限责任公司

Dates

Publication Date
20260512
Application Date
20250428

Claims (9)

  1. 1. The method for processing the FPGA test result file is characterized by being applied to an FPGA test management device, and comprises the following steps: Acquiring a target file; determining a target analysis rule corresponding to a target FPGA development tool from a preset rule base; The target FPGA development tool is an FPGA development tool corresponding to the target file, and the preset rule base comprises a plurality of analysis rules which are respectively used for analyzing FPGA test result files output by different FPGA development tools; Analyzing the target file according to the target analysis rule to obtain m test results included in the target file, wherein m is a positive integer; analyzing the target file according to the target analysis rule to obtain m test results included in the target file, including: And extracting m test results conforming to the m regular expressions from the target file by using the m regular expressions included in the target analysis rule, wherein the regular expressions correspond to character strings used for representing the test results.
  2. 2. The method according to claim 1, wherein the method further comprises: And storing m test results included in the target file into a preset database according to a preset data structure, wherein the preset database is used for storing test results in FPGA test result files output by various FPGA development tools according to the preset data structure.
  3. 3. The method according to claim 2, wherein the method further comprises: acquiring a test round corresponding to the target file in a tested item; The storing the m test results included in the target file into a preset database according to a preset data structure includes: And according to the test turn corresponding to the target file, storing m test results included in the target file into a preset database according to a preset data structure.
  4. 4. A method according to any one of claims 1-3, wherein the obtaining the target file comprises: and acquiring a target file from the target FPGA development tool through a RESTful API between the FPGA test management device and the target FPGA development tool.
  5. 5. The method according to any one of claims 1-4, further comprising: Displaying a preset interface, wherein the preset interface comprises a first interaction area for inputting an FPGA test result file; The obtaining the target file comprises obtaining the target file according to a first user operation on the first interaction area.
  6. 6. The method of claim 5, wherein the preset interface further comprises a second interaction area for determining a test type and a test case used, and wherein the method further comprises: according to a second user operation on the second interaction area, acquiring a test type corresponding to the target file and a used test case; and according to the test type corresponding to the target file and the used test case, storing m test results included in the target file into a preset database according to a preset data structure.
  7. 7. A method according to any one of claims 1-3, wherein the method further comprises: And generating a test report conforming to a preset document template according to m test results included in the target file.
  8. 8. An FPGA test management apparatus, comprising: An acquisition unit configured to acquire a target file; The processing unit is used for determining a target analysis rule corresponding to the target FPGA development tool from a preset rule base; The target FPGA development tool is an FPGA development tool corresponding to the target file, and the preset rule base comprises a plurality of analysis rules which are respectively used for analyzing FPGA test result files output by different FPGA development tools; The processing unit is further used for analyzing the target file according to the target analysis rule to obtain m test results included in the target file, wherein m is a positive integer; The processing unit is specifically configured to: And extracting m test results conforming to the m regular expressions from the target file by using the m regular expressions included in the target analysis rule, wherein the regular expressions correspond to character strings used for representing the test results.
  9. 9. An FPGA test management apparatus comprising a memory for storing a computer program and a processor for causing the FPGA test management apparatus to implement the method of any of claims 1-7 when the computer program is executed.

Description

Processing method and device for FPGA test result file Technical Field The application relates to the field of computers, in particular to a method and a device for processing an FPGA test result file. Background A Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) is a commonly used Programmable logic device. Currently, in the FPGA development process, a large number of tests are performed and a large number of FPGA measurement result files are generated. And the FPGA test result files generated by different FPGA development tools often have unique file formats and data organization modes. In the prior art, when information recorded in different FPGA measurement result files is extracted, a tester is required to manually browse each FPGA measurement result file and extract the information therein. Therefore, a tester is required to be familiar with the file formats and data organization modes of various FPGA test result files, and the accuracy of information is difficult to ensure in the manual operation process. This severely affects the testing efficiency of the FPGA. Therefore, how to more efficiently extract the information recorded in different FPGA measurement result files is a problem that needs to be solved at present. Disclosure of Invention In order to solve the technical problems, the application provides a processing method and a processing device for an FPGA test result file. The method comprises the steps of obtaining a target file, determining target analysis rules corresponding to target FPGA development tools from a preset rule base, wherein the target FPGA development tools are FPGA development tools corresponding to the target file, the preset rule base comprises a plurality of analysis rules, the plurality of analysis rules are respectively used for analyzing FPGA test result files output by different FPGA development tools, the target file is analyzed according to the target analysis rules to obtain m test results included in the target file, and m is a positive integer. In some implementations, parsing the target file according to the target parsing rule to obtain m test results included in the target file includes extracting m test results conforming to m regular expressions from the target file using the m regular expressions included in the target parsing rule. In some implementations, the method further includes storing m test results included in the target file to a preset database according to a preset data structure, wherein the preset database is used for storing test results in FPGA test result files output by various FPGA development tools according to the preset data structure. In some implementations, the method further comprises the steps of obtaining test rounds corresponding to the target files in the tested items, storing m test results included in the target files into a preset database according to a preset data structure, and storing the m test results included in the target files into the preset database according to the preset data structure according to the test rounds corresponding to the target files. In some implementations, obtaining the target file includes obtaining the target file from the target FPGA development tool through a RESTful API between the FPGA test management device and the target FPGA development tool. In some implementations, the method further includes displaying a preset interface, wherein the preset interface includes a first interaction area for inputting the FPGA test result file, and acquiring the target file includes acquiring the target file according to a first user operation on the first interaction area. In some implementations, the method further comprises the steps of obtaining the test type and the used test case corresponding to the target file according to a second user operation on the second interaction area, and storing m test results included in the target file to a preset database according to a preset data structure according to the test type and the used test case corresponding to the target file. In some implementations, the method further includes generating a test report conforming to a preset document template according to m test results included in the target file. The application provides an FPGA test management device, which comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a target file, the processing unit is used for determining a target analysis rule corresponding to a target FPGA development tool from a preset rule base, the target FPGA development tool is an FPGA development tool corresponding to the target file, the preset rule base comprises a plurality of analysis rules, the plurality of analysis rules are respectively used for analyzing FPGA test result files output by different FPGA development tools, the processing unit is further used for analyzing the target file according to the target analysis rules to obtai