CN-119808704-B - Testbench simulation verification platform and system
Abstract
The invention discloses a testbench simulation verification platform and system, which comprise an excitation database for collecting and storing simulation source data, excitation contents corresponding to configuration parameters are determined when parameter configuration instructions of a module to be tested are received, the excitation contents are output through a parameter interface, the excitation contents are used for simulation test of the module to be tested, and a data conversion module is used for obtaining output signals of the module to be tested and converting the output signals into response contents in a preset format according to conversion rules. The invention simplifies the simulation flow, reduces manual intervention, improves the automation degree and accuracy of simulation test, and effectively improves the test efficiency and reusability.
Inventors
- ZHU FUSHENG
- GUO LINGFEI
Assignees
- 广东省新一代通信与网络创新研究院
Dates
- Publication Date
- 20260505
- Application Date
- 20250121
Claims (8)
- 1. A testbench simulation verification platform, comprising: The simulation system comprises a simulation database, a simulation source data acquisition module and a simulation source data acquisition module, wherein when a parameter configuration instruction of a module to be tested is received, excitation content corresponding to a configuration parameter is determined, and the excitation content is output through a parameter interface; The excitation database comprises a data splitting unit, a data configuration unit and a data generation unit, wherein the data splitting unit is used for splitting parameter configuration instructions of the module to be detected; The data splitting unit determines the configuration parameters of each module to be tested according to the parameter configuration instructions, and splits the input signals of the modules to be tested into independent small units which are easy to manage; the data configuration unit independently configures each split configuration parameter, configures different parameters for different simulation tasks, and sets required working conditions for each module to be tested; after the data generating unit receives the configuration parameters from the data configuration unit, according to the configuration, excitation contents meeting the requirements of the module to be tested are automatically generated, and corresponding excitation signals are constructed; And the data conversion module is used for obtaining an output signal of the module to be detected and converting the output signal into response content in a preset format according to a conversion rule.
- 2. The testbench simulation verification platform of claim 1 wherein the stimulus content includes data types and data parameters, the data types including single tone, broad spectrum, constant, the data parameters including bandwidth, sampling rate, number of antennas, time series data.
- 3. The testbench simulation verification platform of claim 1, wherein the data generation unit determines motivational content by one or more of: different configuration parameters are defined as macros or parameters by system verilog or verilog, and corresponding incentive data is generated according to the configuration.
- 4. A testbench simulation verification platform according to claim 3 wherein the module to be tested defines the required configuration parameters via the parameter interfaces and each stimulus content sets a corresponding parameter interface.
- 5. The testbench simulation verification platform of claim 4, wherein said data conversion module comprises a data format conversion unit for converting a data format of said output signal into a response content of a preset data format, and a file import export unit for converting said output signal into a response content of a preset file format.
- 6. The testbench simulation verification platform of claim 5 wherein the response content includes a data format including a databank and a file format including txt, xlsx formats.
- 7. A testbench simulation verification platform as claimed in claim 3 wherein the incentive database, response content is written in verilog or system verilog.
- 8. A testbench simulation verification system, the system comprising: a testbench simulation verification platform as claimed in any one of claims 1 to 7; And the module to be tested performs simulation test according to the excitation content to generate an output signal.
Description
Testbench simulation verification platform and system Technical Field The invention relates to the technical field of FPGA (field programmable gate array), in particular to testbench simulation verification platform and system. Background With the rapid development of FPGA (field programmable gate array) technology, FPGAs are increasingly used in a plurality of fields such as communication technology, digital signal processing, embedded systems, and the like. In order to ensure the correctness and stability of the design function of the FPGA, simulation testing becomes an integral part of the design process. testbench as an important tool for verifying whether the FPGA design function meets the expectations, is generally composed of three parts, namely excitation signal input, top-level interface signal instantiation and output result checking. testbench design has a reasonable direct influence on the efficiency and accuracy of the simulation test. However, in practical applications, FPGA developers often face the following problems when using testbench: 1. the re-programming testbench-each time a new simulation task is performed, the developer typically needs to re-program testbench modules according to the specific test objectives. This practice results in a great deal of repeated labor, increasing development costs and time. 2. The existing testbench modules are generally custom designed for specific tasks and modules, and lack compatibility with different test scenarios and configurations. Whenever the simulation requirements change, the testbench modules often need to be rewritten or adjusted, reducing their versatility and reusability. Disclosure of Invention According to one aspect of the invention, a testbench simulation verification platform is provided, which can be compatible with various modules to be tested, and improves the simulation efficiency of FPGA engineering. In order to solve the technical problems, a first aspect of the present invention discloses a testbench simulation verification platform, which includes: The simulation system comprises a simulation database, a simulation source data acquisition module and a simulation source data acquisition module, wherein when a parameter configuration instruction of a module to be tested is received, excitation content corresponding to a configuration parameter is determined, and the excitation content is output through a parameter interface; And the data conversion module is used for obtaining an output signal of the module to be detected and converting the output signal into response content in a preset format according to a conversion rule. In some embodiments, the excitation database includes a data splitting unit, a data configuration unit and a data generation unit, where the data splitting unit is used to split parameter configuration instructions of the modules to be tested, the data configuration unit is used to determine configuration parameters of each module to be tested according to the parameter configuration instructions, and the data generation unit is used to automatically generate excitation content meeting requirements of the modules to be tested according to the configuration parameters of users. In some embodiments, the motivational content includes data types including single tone, broad spectrum, constant, and data parameters including bandwidth, sampling rate, number of antennas, time series data. In some embodiments, the data generation unit determines the motivational content by one or more of: different configuration parameters are defined as macros or parameters by system verilog or verilog, and corresponding incentive data is generated according to the configuration. In some embodiments, the module to be tested defines the required configuration parameters through the parameter interfaces, and each motivational content sets a corresponding parameter interface. In some embodiments, the data conversion module includes a data format conversion unit for converting a data format of the output signal into a response content of a preset data format, and a file import/export unit for converting the output signal into the response content of the preset file format. In some implementations, the response content includes a data format including a data system and a file format including txt, xlsx formats. In some embodiments, the incentive database, response content, is written in verilog language or system verilog language. In a second aspect, a testbench simulation verification system is disclosed, the system comprising: A testbench simulation verification platform as described above; And the module to be tested performs simulation test according to the excitation content to generate an output signal. Compared with the prior art, the invention has the beneficial effects that: the invention provides a testbench simulation verification platform and a testbench simulation verification system, wherein an excitation database can a