Chip verification system based on database

By using the memory model generated by high-level language to communicate with the database in the chip verification system, file operations are reduced, the problem of frequent IO operations in large-scale chip verification is solved, and verification efficiency is improved.

CN118550933AActive Publication Date: 2024-08-27METAX INTEGRATED CIRCUITS (SHANGHAI) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410680352.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-27
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

In large-scale chip verification, file reading and writing operations are frequent, resulting in a large number of IO operations and affecting efficiency.

Method used

Using a database-based chip verification system, a high-level language-generated memory model is set in the verification IP, and a structured query interface is used to communicate with the file database to reduce file operations and achieve data verification reading and result storage.

Benefits of technology

It improves the data processing efficiency in the chip verification process, reduces large-scale file operations, and improves the overall verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550933A
    Figure CN118550933A
Patent Text Reader

Abstract

The invention relates to the technical field of chips, in particular to a database-based chip verification system, which comprises a first file database, a second file database, a verification IP (Internet Protocol) and a first memory model arranged in the verification IP, the first file database is used for storing verification data; the verification IP reads verification data in the first file database through the structured query interface and stores the verification data in the first memory model; the verification IP comprises a first data conversion interface and a second data conversion interface; the verification IP is also used for obtaining verification data from the first memory model through the first data conversion interface, processing the verification data to generate result data, and storing the result data into the first memory model through the second data conversion interface; the verification IP is also used for storing the result data in the first memory model into the second file database through the structured query interface. According to the invention, the chip verification efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip technology, and in particular to a chip verification system based on a database. Background Art

[0002] With the development of chip technology, the scale of chips is getting larger and larger. When doing large-scale chip verification, the verification IP (Intellectual Property) needs to read large-scale source data from the file and store it in the memory, then read the data from the storage for processing, and store the processed result data in the memory, and then store the large-scale result data in the memory into the file. Due to the huge scale of the chip, the amount of data that needs to be read from and written to the file is also huge. This process involves a large number of IO operations, which greatly affects the efficiency of chip verification. It can be seen that how to improve the efficiency of chip verification has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present invention aims to provide a chip verification system based on a database, thereby improving chip verification efficiency.

[0004] The present invention provides a database-based chip verification system, comprising a first file database, a second file database, a verification IP, and a first memory model set in the verification IP, wherein the verification IP is generated based on the SystemVerilog language, the first memory model is generated based on a preset high-level language, and the first memory model is connected to the first file database and the second file database through a structured query interface;

[0005] The first file database is used to store verification data;

[0006] The verification IP reads the verification data in the first file database through a structured query interface and stores it in the first memory model;

[0007] The verification IP includes a first data conversion interface and a second data conversion interface, wherein the first data conversion interface is used to convert data in a preset high-level language into data in a SystemVerilog language, and the second data conversion interface is used to convert data in a SystemVerilog language into data in a preset high-level language;

[0008] The verification IP is further used to obtain verification data from the first memory model through the first data conversion interface for processing, generate result data, and then store the result data in the first memory model through the second data conversion interface;

[0009] The verification IP is also used to store the result data in the first memory model into the second file database through a structured query interface.

[0010] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the database-based chip verification system provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:

[0011] The present invention realizes data verification reading and result data storage by setting a first memory model generated by a high-level language in the verification IP, communicating with an external first file database and a second file database through the first memory model, reducing large-scale file operations, and improving data processing efficiency in the chip verification process, thereby improving chip verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 1 A schematic diagram of a database-based chip verification system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0015] The embodiment of the present invention provides a chip verification system based on a database, such as Figure 1As shown, it includes a first file database, a second file database, a verification IP, and a first memory model set in the verification IP. The verification IP is generated based on the SystemVerilog language, and the first memory model is generated based on a preset high-level language, and the preset high-level language can specifically be C++. The first memory model is connected to the first file database and the second file database through a structured query interface. Specifically, the first file database and the second file database can be respectively provided with a corresponding structured query interface, and the verification IP interacts with the first file database and the second file database respectively through the corresponding structured query interface. The structured query interface is generated based on the structured query language (Structured Query Language, referred to as SQL), which is a database query and programming language used to access data and query, update and manage relational database systems.

[0016] As an embodiment, the first file database is used to store verification data. The system can write verification data into the first file database through a structured query interface based on a preset first script. The verification data includes data to be processed and data to be compared. The data to be processed can specifically be stimulus data used in the verification process, and the data to be compared can specifically be preset target result data for comparison with the target result data of the actual output. The verification data is very large. For example, when verifying a GPU chip, the verification data may be large-scale image data. The verification data can be quickly stored in the first file database through the first script, which reduces large-scale operations such as opening and closing files, and greatly improves the storage efficiency of the verification data. The first script can specifically be a script such as Python, JavaScript, Ruby, Perl, Shell, etc.

[0017] The verification IP reads the verification data in the first file database through the structured query interface and stores it in the first memory model. The verification IP cannot directly communicate with the first file database and the second file database, but the first memory model can directly communicate with the first file database and the second file database. The interaction between the verification IP and the first file database and the second file database must be carried out through the first memory model.

[0018] Since the verification IP is generated based on the SystemVerilog language and the first memory model is generated based on a preset high-level language, the SystemVerilog language and the preset high-level language cannot communicate directly. Therefore, the verification IP includes a first data conversion interface and a second data conversion interface. The first data conversion interface is used to convert data in the preset high-level language into data in the SystemVerilog language, and the second data conversion interface is used to convert data in the SystemVerilog language into data in the preset high-level language. The existing implementation methods of converting data in the preset high-level language into the SystemVerilog language and converting data in the SystemVerilog language into data in the preset high-level language all fall within the protection scope of the present invention and will not be repeated here.

[0019] The verification IP is further used to obtain verification data from the first memory model through the first data conversion interface for processing, generate result data, and then store the result data in the first memory model through the second data conversion interface.

[0020] The verification IP is also used to store the result data in the first memory model in the second file database through the structured query interface. The system can store the result data in the first memory model in the second file database in real time, so that the result data storage has higher real-time performance. A data block of a preset size can also be set. When the result data in the first memory model reaches the size of the data block of the preset size, the entire data block of the preset size is stored in the second file database to implement block storage processing and further improve system performance.

[0021] The embodiment of the present invention also directly stores the result data in the database without storing it in a file, thereby reducing the large-scale file operation steps and improving the storage efficiency of the result data. When the result needs to be analyzed, the second file database can be directly parsed through the preset second script to generate the data to be analyzed without performing a large number of file reading operations, thereby improving the acquisition efficiency of the data to be analyzed. The second script can specifically be a script such as Python, JavaScript, Ruby, Perl, Shell, etc.

[0022] The result data can be specifically divided into two types, one is required for subsequent analysis and processing, and the other is released after the operation is completed. Therefore, in order to further improve the processing efficiency of the result data, the result data can be classified and processed, and there is no need to store all of them in the second file database. As an embodiment, the system also includes a virtual memory module, and the result data includes first result data and second result data. The first result data is the result data that needs to be compared, and the second result data is the result data that does not need to be compared. The verification IP is also used to store the first result data in the first memory model in the second file database through a structured query interface, and store the second result data in the virtual memory module. When the verification is completed, the second result data in the virtual memory module is released.

[0023] As an embodiment, the system parses the second file database based on a preset second script, generates target result data, obtains the data to be compared from the first file database, and compares the target result data with the data to be compared. If they are consistent, the verification passes; otherwise, the verification fails. When the verification fails, specific information on the target result data that is inconsistent with the comparison can also be presented to the user.

[0024] During the chip verification process, it is also necessary to obtain the interface data of the verification IP for analysis, and the prior art also requires reading and writing the original file to obtain it. The embodiment of the present invention can also be implemented based on the interaction between the first memory model and the database. Specifically, the verification IP includes multiple verification interfaces. The verification IP is also used to read the performance data and bandwidth data corresponding to the interface, and store the performance data and bandwidth data corresponding to the verification interface in the first memory model through the second data conversion interface. The verification IP is also used to store the performance data and bandwidth data corresponding to the verification interface stored in the first memory model in the second file database through the structured query interface. The performance data and bandwidth data corresponding to the interface can be subsequently obtained through the second script analysis for analysis.

[0025] In order to further improve the data processing efficiency during the chip verification process, the system also includes a second memory model, the second memory model is generated based on the SystemVerilog language, and the first memory model and the second memory model are mirror images of each other, that is, the first memory model and the second memory model are provided with the same storage address space, and the same data will be stored at the same address. Since the verification IP and the second memory model are both generated based on the SystemVerilog language, the verification IP can communicate directly with the second memory model, that is, the verification IP can directly obtain data from the second memory model and directly store data to the second memory model.

[0026] As an embodiment, a third data conversion interface and a fourth data conversion interface are provided between the first memory model and the second memory model, wherein the third data conversion interface is used to convert the data stored in the first memory model into data in SystemVerilog language, and store the converted data in SystemVerilog language in the address corresponding to the second memory model; the second data conversion interface is used to convert the data stored in the second memory model into data in a preset high-level language, and store the converted data in the preset high-level language in the address corresponding to the first memory model. Since the first memory model and the second memory model are mirror images of each other, the speed of data conversion and storage between the first memory model and the second memory model is greatly improved compared with the speed of data conversion and storage between the verification IP and the first storage model, further improving the data processing efficiency of chip verification. The verification IP is also used to obtain verification data from the second memory model for processing, generate result data, and then store the result data in the first memory model. The verification IP stores the result data in the first memory model in the second file database through the structured query interface.

[0027] The system described in the embodiment of the present invention realizes data verification reading and result data storage by setting a first memory model generated by a high-level language in the verification IP, communicating with an external first file database and a second file database through the first memory model, reducing large-scale file operations, and improving data processing efficiency in the chip verification process, thereby improving chip verification efficiency.

[0028] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.

Claims

1. A chip verification system based on a database, characterized in that: It includes a first file database, a second file database, a verification IP, and a first memory model set in the verification IP, wherein the verification IP is generated based on the SystemVerilog language, the first memory model is generated based on a preset high-level language, and the first memory model is connected to the first file database and the second file database through a structured query interface; The first file database is used to store verification data; The verification IP reads the verification data in the first file database through a structured query interface and stores it in the first memory model; The verification IP includes a first data conversion interface and a second data conversion interface, wherein the first data conversion interface is used to convert data in a preset high-level language into data in a SystemVerilog language, and the second data conversion interface is used to convert data in a SystemVerilog language into data in a preset high-level language; The verification IP is further used to obtain verification data from the first memory model through the first data conversion interface for processing, generate result data, and then store the result data in the first memory model through the second data conversion interface; The verification IP is also used to store the result data in the first memory model into the second file database through a structured query interface.

2. The system according to claim 1, characterized in that The system writes verification data into the first file database through a structured query interface based on a preset first script, and the verification data includes data to be processed and data to be compared.

3. The system according to claim 1, characterized in that The system further includes a virtual memory module, the result data includes first result data and second result data, the first result data is result data that needs to be compared, and the second result data is result data that does not need to be compared; The verification IP is also used to store the first result data in the first memory model into the second file database through the structured query interface, store the second result data into the virtual memory module, and release the second result data in the virtual memory module when the verification is completed.

4. The system according to claim 1, characterized in that The system parses the second file database based on a preset second script, generates target result data, obtains the data to be compared from the first file database, and compares the target result data with the data to be compared. If they are consistent, verification is successful, otherwise, verification fails.

5. The system according to claim 1, characterized in that The verification IP includes multiple verification interfaces. The verification IP is also used to read performance data and bandwidth data corresponding to the interface, and store the performance data and bandwidth data corresponding to the verification interface in the first memory model through the second data conversion interface. The verification IP is also used to store the performance data and bandwidth data corresponding to the verification interface stored in the first memory model in the second file database through a structured query interface.

6. The system according to claim 1, characterized in that The system also includes a second memory model, which is generated based on the SystemVerilog language, and the first memory model and the second memory model are mirror images of each other.

7. The system according to claim 6, characterized in that A third data conversion interface and a fourth data conversion interface are provided between the first memory model and the second memory model, wherein the third data conversion interface is used to convert the data stored in the first memory model into data in SystemVerilog language, and store the converted data in SystemVerilog language into the address corresponding to the second memory model; The second data conversion interface is used to convert the data stored in the second memory model into data in a preset high-level language, and store the converted data in the preset high-level language into an address corresponding to the first memory model.

8. The system according to claim 7, characterized in that The verification IP is used to obtain verification data from the second memory model for processing, generate result data, and then store the result data in the first memory model.

Citation Information

Patent Citations

  • Non-standard protocol chip verification device for hardware acceleration

    CN115345123A

  • Tracking information generation system based on memory database

    CN115470751A

  • Chip verification method and device

    CN116738901A

  • Diatom microbubbler for preventing oral candidiasis

    KR1020240002903A