Remote data concentrator verification system and method based on FPGA

CN118690694APending Publication Date: 2024-09-24SHAANXI QIANSHAN AVIONICS
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410721784.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Traditional verification methods are insufficient for complete system verification, especially in edge cases, resulting in designs that may have timing violations before they are delivered to users, resulting in high costs and downtime.

Method used

A remote data concentrator verification system based on FPGA is designed, including AD analog-to-digital conversion module, test case module, timing interface module and data comparison module, which is used to perform functional simulation and timing simulation on the FPGA platform to meet boundary conditions. Verification and timing verification.

Benefits of technology

Through this system, timing problems can be discovered and corrected during the verification process, reducing product delivery cycle and improving verification reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690694A
    Figure CN118690694A
Patent Text Reader

Abstract

The invention belongs to the technical field of verification, and particularly relates to a remote data concentrator verification system and method based on an FPGA (Field Programmable Gate Array), which are used for performing function simulation and time sequence simulation on an AD (Analog to Digital) access module and are beneficial to improving the verification efficiency and the verification completeness. According to the verification platform, the analog AD chip module is used for sampling a to-be-tested module, the working time sequence of a chip internal signal is simulated in the module, the boundary condition can be tested by combining a large number of test cases for time sequence simulation of to-be-tested equipment, and the simulation time is shorter than that of a board-level test. Meanwhile, the verification platform classifies the simulation reports according to different simulation types and the serial numbers of the test cases, and a basis is provided for follow-up result tracing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of verification technology, and in particular relates to a remote data concentrator verification system and method based on FPGA. Background Art

[0002] As FPGAs grow in size and complexity, designers are increasingly in need of effective verification methods. Timing simulation can be a verification method that can find the most problems. Virtually every engineer today relies on system testing, where if the design can be tested on the board, it will be released. While the industry considers this testing to be the final test, this method is not perfect. For example, sometimes the design needs to run for quite a long time before some edge cases are discovered. Problems such as timing violations do not manifest themselves in the same way in all chips. When these problems are discovered, the design is usually already in the hands of the user. This means high costs, downtime, and frustration in order to find this problem.

[0003] From the above, we can see that traditional verification methods are not sufficient for complete system verification. Summary of the invention

[0004] In view of this, the present invention provides a remote data concentrator verification system and method based on FPGA, and a verification platform is built to implement functional simulation and timing simulation. The analog AD chip module and the test case module can not only meet the verification of boundary conditions, but also perform timing verification, thereby saving product delivery cycle.

[0005] In order to achieve the above technical objectives, the specific technical solutions adopted by the present invention are:

[0006] A remote data concentrator verification system based on FPGA is used to verify the AD data acquisition function of the remote data concentrator, and the verification system includes: an AD analog-to-digital conversion module, a test case module, a timing interface module and a data comparison module built in the FPGA;

[0007] The test case module is used to generate data according to requirements and configure the initial values ​​of registers in the device under test;

[0008] The AD analog-to-digital conversion module obtains the data to be converted from the test case module;

[0009] The interface timing control module reads and writes the data successfully converted by the AD analog-to-digital conversion module according to the timing of the bus interface, and interacts with the device under test;

[0010] The data comparison module verifies the AD data acquisition function of the device under test, and outputs the generated data comparison result as a first file.

[0011] Furthermore, the test case control module sends an analog signal, which is received by the AD analog-to-digital conversion module and converted into a digital signal and sent to the data comparison module;

[0012] The interface timing control module sends the digital signal to the device under test according to the timing of the device under test;

[0013] After receiving the digital signal, the device under test generates feedback data to the timing control module, and the timing control module gives the feedback data to the data comparison module;

[0014] The data comparison module compares the digital signal and the feedback data, and generates a first file based on the comparison result.

[0015] Further, the AD analog-to-digital conversion module is connected to the test case control module via an SPI interface;

[0016] The AD analog-to-digital conversion module meets the setup time when sending the digital signal to the device under test;

[0017] The feedback data is stored in a register of the device under test.

[0018] Furthermore, if the timing relationship between the digital signal and the signal of the feedback data is correct, the data comparison module confirms that the timing function of the device under test is correct.

[0019] Furthermore, the first file output includes simulation results of each test case of the test case module;

[0020] The verification system also outputs a second file output of a signal waveform diagram pattern during the simulation verification process;

[0021] The second file output contains the waveform of the signal for each test case.

[0022] Furthermore, the FPGA-based remote data concentrator verification system is also used to perform functional simulation and timing simulation on the remote data concentrator.

[0023] Further, the functional simulation result and the timing simulation result are output based on the first file output and the second file output;

[0024] The report results output by the first file are sorted according to the numbers of the test cases; the report results output by the second file are sorted according to the numbers of the test cases.

[0025] The present invention also proposes a remote data concentrator verification method based on FPGA, which is implemented based on the above remote data concentrator verification system based on FPGA, and includes the following steps:

[0026] S1: Build test case module; write test cases according to requirements and generate simulation signals;

[0027] S2: Input do run.tcl rtl simcase_xx xxms in the console, the verification system starts, and the automatic simulation of the verification system is completed using the tcl script.

[0028] S3: The AD analog-to-digital conversion module receives the analog signal of the test case, and after processing, sends out the digital signal according to the timing of the internal signal of the AD device;

[0029] S4: After the timing interface module obtains the digital signal, it sends it to the device under test according to the receiving timing;

[0030] S5: The data comparison module reads the register data of the device under test through the interface timing module and compares it with the digital signal;

[0031] S6: The data comparison module generates a report of the comparison results and saves it to the folder of the functional simulation and automatically classifies and stores it according to the test case number.

[0032] Furthermore, the method for implementing the timing simulation is:

[0033] Replace rtl in the S1 instruction with gates_max, gates_min or gates_type.

[0034] Furthermore, the gates_max, gates_min and gates_type are used to simulate the maximum delay, the minimum delay and the typical value respectively.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention builds a verification platform to implement functional simulation and timing simulation. The simulation AD core module and the test case module slice not only meet the requirements of increasing the reliability of boundary test enhancement verification but also can perform timing verification, thereby saving the product delivery cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 It is a schematic diagram of the structure of the ADC verification platform;

[0039] Figure 2It is the operation flow chart of the ADC verification platform. DETAILED DESCRIPTION

[0040] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0041] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0042] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0043] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0044] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0045] In one embodiment of the present invention, a remote data concentrator verification system based on FPGA is proposed. Figure 1, used to verify the AD data acquisition function of the remote data concentrator, the verification system includes: an AD analog-to-digital conversion module, a test case module, a timing interface module and a data comparison module built in the FPGA;

[0046] The test case module is used to generate data according to requirements and configure the initial values ​​of registers in the device under test;

[0047] The AD analog-to-digital conversion module obtains the data to be converted from the test case module;

[0048] The interface timing control module reads and writes the data successfully converted by the AD analog-to-digital conversion module according to the timing of the bus interface, and interacts with the device under test;

[0049] The data comparison module verifies the AD data acquisition function of the device under test, and outputs the generated data comparison result as a first file.

[0050] In this embodiment, the test case control module sends an analog signal, which is received by the AD analog-to-digital conversion module and converted into a digital signal and sent to the data comparison module;

[0051] The interface timing control module sends the digital signal to the device under test according to the timing of the device under test;

[0052] After receiving the digital signal, the device under test generates feedback data to the timing control module, and the timing control module gives the feedback data to the data comparison module;

[0053] The data comparison module compares the digital signal and the feedback data, and generates a first file based on the comparison result.

[0054] In this embodiment, the AD analog-to-digital conversion module is connected to the test case control module via an SPI interface;

[0055] The AD analog-to-digital conversion module meets the setup time when sending the digital signal to the device under test;

[0056] The feedback data is stored in a register of the device under test.

[0057] In this embodiment, if the timing relationship between the digital signal and the signal of the feedback data is correct, the data comparison module confirms that the timing function of the device under test is correct.

[0058] In this embodiment, the first file output includes simulation results of each test case of the test case module;

[0059] The verification system also outputs a second file output of a signal waveform diagram pattern during the simulation verification process;

[0060] The second file output contains the waveform of the signal for each test case.

[0061] In this embodiment, the FPGA-based remote data concentrator verification system is also used to perform functional simulation and timing simulation on the remote data concentrator.

[0062] In this embodiment, the functional simulation result and the timing simulation result are output based on the first file output and the second file output;

[0063] The report results output by the first file are sorted according to the numbers of the test cases; the report results output by the second file are sorted according to the numbers of the test cases.

[0064] This embodiment simulates the timing of the internal signal of the AD device according to the device manual to verify the correctness of the module to be tested. Finally, the simulation process report and the waveform diagrams of the internal signal of the device and the design module signal are automatically stored and classified according to each test case.

[0065] In one embodiment, the present invention further proposes a remote data concentrator verification method based on FPGA based on the above remote data concentrator verification system, see Figure 2 , including the following steps:

[0066] S1: Build test case module; write test cases according to requirements and generate simulation signals;

[0067] S2: Input do run.tcl rtl simcase_xx xxms in the console, the verification system starts, and the automatic simulation of the verification system is completed using the tcl script.

[0068] S3: The AD analog-to-digital conversion module receives the analog signal of the test case, and after processing, sends out the digital signal according to the timing of the internal signal of the AD device;

[0069] S4: After the timing interface module obtains the digital signal, it sends it to the device under test according to the receiving timing;

[0070] S5: The data comparison module reads the register data of the device under test through the interface timing module and compares it with the digital signal;

[0071] S6: The data comparison module generates a report of the comparison results and saves it to the folder of the functional simulation and automatically classifies and stores it according to the test case number.

[0072] In this embodiment, the method for implementing the timing simulation is:

[0073] Replace rtl in the S1 instruction with gates_max, gates_min or gates_type.

[0074] In this embodiment, the gates_max, gates_min and gates_type are used to simulate the maximum delay, the minimum delay and the typical value respectively.

[0075] The present invention provides a verification platform for the system architecture of ARM STM32+FPGA. It mainly verifies the logic and timing functions of the AD fetching module. And the simulation results are automatically stored and classified according to each test case. The whole acquisition process is mainly divided into the following steps:

[0076] S1: Build a test case module. First, write a test case as needed to generate the data that AD needs to sample.

[0077] S2: Input do run.tcl rtl simcase_xx xxms in the console to start the verification platform, and use the tcl script to complete the automatic simulation of the platform.

[0078] S3: The module simulating the AD chip receives the data of the test case, and after processing, sends it out according to the timing of the internal signal of the AD device.

[0079] S4: The interface module obtains the data sampled by the AD chip and sends it to the module under test (DUT) according to the receiving timing.

[0080] S5: The test case reads the register data of the device under test through the interface module and compares it with the sampling data of the analog AD chip in the data comparison module.

[0081] S6: The result generation report is saved in the folder of the functional simulation and automatically classified and stored according to the test case number.

[0082] S7: You can replace the rtl in the S1 instruction with gates_max, gates_min, gates_typ to implement timing simulation. The timing simulation includes the maximum delay, minimum delay, and typical value. This can increase the completeness of the timing simulation.

[0083] S8: The generated report is saved to the folders of maximum, minimum, and typical delays of the timing simulation and automatically classified and stored according to the test case number.

[0084] This embodiment builds an analog AD digital-to-analog conversion chip module, a test case module, a timing interface module, and a data comparison module in the FPGA.

[0085] The test case module is used to generate response data as needed and to configure the initial values ​​of registers in the device under test.

[0086] The analog AD analog-to-digital conversion chip module is used to obtain the data that needs to be converted from the test case module.

[0087] The interface timing control module is used to read and write data successfully converted by the ADC according to the timing of the bus interface, thereby realizing interaction with the device under test.

[0088] The data comparison module is used to verify the device under test of the AD data acquisition function, and the generated data comparison result is output as the first file.

[0089] In some embodiments, the method further comprises:

[0090] The analog AD conversion chip module collects data for the device under test through the SPI interface.

[0091] Meet the SPI interface data establishment time between the device under test and the analog AD digital-to-analog conversion chip module.

[0092] In response to the sampled data being identical to the data stored in the register of the device under test, it is confirmed that the logic function of the device under test is correct.

[0093] In response to the timing relationship between the sampled data and the signal of the device under test being correct, it is confirmed that the timing function of the device under test is correct.

[0094] The first file output contains the simulation results of each test case, and the report results are sorted by the test case number.

[0095] The second file output contains the waveform of the signal for each test case, and the report results are sorted by the test case number.

[0096] Both types of files include comparison results of functional simulation and timing simulation as well as signal waveform diagrams.

[0097] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A remote data concentrator verification system based on FPGA, characterized in that: Used to verify the AD data acquisition function of the remote data concentrator, the verification system includes: an AD analog-to-digital conversion module, a test case module, a timing interface module and a data comparison module built in the FPGA; The test case module is used to generate data according to requirements and configure the initial values ​​of registers in the device under test; The AD analog-to-digital conversion module obtains the data to be converted from the test case module; The interface timing control module reads and writes the data successfully converted by the AD analog-to-digital conversion module according to the timing of the bus interface, and interacts with the device under test; The data comparison module verifies the AD data acquisition function of the device under test, and outputs the generated data comparison result as a first file.

2. The FPGA-based remote data concentrator verification system according to claim 1, characterized in that: The test case control module sends an analog signal, which is received by the AD analog-to-digital conversion module and converted into a digital signal and sent to the data comparison module; The interface timing control module sends the digital signal to the device under test according to the timing of the device under test; After receiving the digital signal, the device under test generates feedback data to the timing control module. The timing control module gives feedback data to the data comparison module; The data comparison module compares the digital signal and the feedback data, and generates a first file based on the comparison result.

3. The FPGA-based remote data concentrator verification system according to claim 2, characterized in that: The AD analog-to-digital conversion module is connected to the test case control module via an SPI interface; The AD analog-to-digital conversion module meets the setup time when sending the digital signal to the device under test; The feedback data is stored in a register of the device under test.

4. The FPGA-based remote data concentrator verification system according to claim 3, characterized in that: If the timing relationship between the digital signal and the signal of the feedback data is correct, the data comparison module confirms that the timing function of the device under test is correct.

5. The FPGA-based remote data concentrator verification system according to claim 4, characterized in that: The first file output includes simulation results of each test case of the test case module; The verification system also outputs a second file output of a signal waveform diagram pattern during the simulation verification process; The second file output contains the waveform of the signal for each test case.

6. The FPGA-based remote data concentrator verification system according to claim 5, characterized in that: The FPGA-based remote data concentrator verification system is also used to perform functional simulation and timing simulation on the remote data concentrator.

7. The FPGA-based remote data concentrator verification system according to claim 6, characterized in that: The functional simulation result and the timing simulation result are output based on the first file output and the second file output; The report results output by the first file are sorted according to the numbers of the test cases; The report results output by the second file are sorted according to the numbers of the test cases.

8. A remote data concentrator verification method based on FPGA implemented by the remote data concentrator verification system based on FPGA according to any one of claims 1 to 7, characterized in that: The following steps are involved: S1: Build test case module; Write test cases according to requirements and generate simulation signals; S2: Input do run.tcl rtl simcase_xx xxms in the console, the verification system starts, and the automatic simulation of the verification system is completed using the tcl script. S3: The AD analog-to-digital conversion module receives the analog signal of the test case, and after processing, sends out the digital signal according to the timing of the internal signal of the AD device; S4: After the timing interface module obtains the digital signal, it sends it to the device under test according to the receiving timing; S5: The data comparison module reads the register data of the device under test through the interface timing module and compares it with the digital signal; S6: The data comparison module generates a report of the comparison results and saves it to the folder of the functional simulation and automatically classifies and stores it according to the test case number.

9. The FPGA-based remote data concentrator verification method according to claim 8, characterized in that: The method for implementing the timing simulation is: Replace rtl in the S1 instruction with gates_max, gates_min or gates_type.

10. The FPGA-based remote data concentrator verification method according to claim 9, characterized in that: The gates_max, gates_min, and gates_type are used to simulate the maximum delay, the minimum delay, and the typical value, respectively.

Citation Information

Cited By

  • Chip verification platform based on FPGA and verification method thereof

    CN121351736A

  • FPGA-based chip verification platform and verification method thereof

    CN121351736B