Chip joint simulation system based on version management
Through the chip co-simulation system based on version management, the synchronization module of hardware and software subsystems is used to manage multi-version chip files, which solves the problem of low chip co-simulation efficiency, achieves a fast and accurate simulation process, and improves chip design and reference models. synchronization management.
Patent Information
- Application Number
- CN202410191219.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-02-21
AI Technical Summary
During the chip development process, how to quickly and accurately implement chip co-simulation based on multiple versions of chip files and improve the efficiency of chip co-simulation has become an urgent technical issue to be solved.
Provides a chip joint simulation system based on version management, including hardware subsystems and software subsystems. Through the first version management tool and the second version management tool, the synchronization module is used to realize the synchronization management of chip design configuration files and chip reference models. Generate the component modules of the target chip under test and the target chip reference model for joint simulation.
It improves the efficiency of chip joint simulation, realizes fast and accurate simulation of multi-version chip files, and enhances the synchronous management capabilities of chip design and reference models.
Smart Images

Figure CN118013743B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip technology, and in particular to a chip joint simulation system based on version management. Background Art
[0002] During the chip development process, it is necessary to develop a chip reference model based on the software language and build a chip design based on the hardware language. After the chip reference model is determined, joint simulation is performed based on the chip reference model and the chip design to verify the chip design. In this process, the chip files need to be constantly adjusted, and there will be multiple different versions of the chip files. The chip design includes chip component modules set at multiple levels. During the joint simulation process, chip component modules at different levels need to be jointly simulated separately. The chip reference model file has multiple versions. How to quickly and accurately implement chip joint simulation based on multi-version chip files and improve the efficiency of chip joint simulation has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present invention aims to provide a chip joint simulation system based on version management, thereby improving the efficiency of chip joint simulation.
[0004] According to a first aspect of the present invention, there is provided a chip co-simulation system based on version management, comprising a hardware subsystem, a software subsystem and a synchronization module connected to the hardware subsystem and the software subsystem;
[0005] The hardware subsystem includes a first version management tool, and the first version management tool includes a first master warehouse and a second slave warehouse;
[0006] The software subsystem includes a second version management tool, and the second version management tool includes a second master warehouse and a first slave warehouse;
[0007] The hardware subsystem is used to generate different versions of chip design configuration files and store them in the first master warehouse, and the synchronization module is used to synchronize the different versions of chip design configuration files stored in the first master warehouse to the first slave warehouse;
[0008] The software subsystem is used to generate different versions of chip reference models based on different versions of chip design configuration files in the first slave warehouse, and store the corresponding different versions of chip reference model code files in the second master warehouse. The synchronization module is used to synchronize the chip reference model code files stored in the second master warehouse to the second slave warehouse; the software subsystem is also used to verify the chip reference model, and after the verification is passed, send a joint simulation instruction to the hardware subsystem;
[0009] The hardware subsystem is also used to, after receiving the joint simulation instruction, obtain the chip design configuration file of the target version from the first master warehouse to generate the target chip component module to be tested, and obtain the chip reference model code file of the target version from the second slave warehouse to generate the target chip reference model, input the same test stimulus to the target chip component module to be tested and the target chip reference model to perform chip joint simulation, and compare the output results of the target chip component module to be tested and the target chip reference model. If the output results are the same, the chip joint simulation passes, otherwise, the chip joint simulation fails.
[0010] Compared with the prior art, the present invention has obvious advantages and beneficial effects. By means of the above technical solution, the chip joint simulation system based on version management 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 embodiment of the present invention implements the synchronous management of chip design configuration files and chip reference models in the software subsystem and the hardware subsystem through a first version management tool in the hardware subsystem, a second version management tool in the software subsystem, and a synchronization module connected to the hardware subsystem and the software subsystem, and then implements chip joint simulation in the hardware subsystem based on multi-version chip files, thereby improving the efficiency of chip joint simulation. 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 chip co-simulation system based on version management provided in 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 joint simulation system based on version management, such as Figure 1As shown, it includes a hardware subsystem, a software subsystem, and a synchronization module connected to the hardware subsystem and the software subsystem. The software subsystem is used to develop a chip reference model based on a software language, and the hardware subsystem is used to develop a chip design based on a hardware language. The software language can be C++, Python, SystemC, etc., and the hardware language can be vhdl, verilog, systemverilog, etc.
[0016] The hardware subsystem includes a first version management tool, and the first version management tool includes a first master warehouse and a second slave warehouse. The software subsystem includes a second version management tool, and the second version management tool includes a second master warehouse and a first slave warehouse. The first slave warehouse is a slave warehouse of the first master warehouse, and the second slave warehouse is a slave warehouse of the second master warehouse. The first version management tool and the second version management tool are any two of perforce, git, svn, and cvs version management tools. Perforce, git, svn, and cvs are all existing version management tools and will not be described in detail here.
[0017] The hardware subsystem is used to generate different versions of chip design configuration files and store them in the first master warehouse, and the synchronization module is used to synchronize the different versions of chip design configuration files stored in the first master warehouse to the first slave warehouse. One-way update is implemented between the first master warehouse and the first slave warehouse, that is, the update of the chip design configuration file can only be actively initiated by the first master warehouse. The chip design configuration file specifically includes chip functional feature description information, chip component module description information, bus description information and register description information between chip component modules. The chip design configuration file can be specifically generated based on python language, perl language, ruby language, yaml, Java language, etc. When the chip design configuration file is used on the software side, the chip design configuration file can be obtained and converted into configuration information in the software language form corresponding to the software side. When the chip design configuration file is used on the hardware side, the chip design configuration file can be obtained and converted into configuration information in the hardware language form corresponding to the hardware side.
[0018] The software subsystem is used to generate different versions of chip reference models based on different versions of chip design configuration files in the first slave warehouse, and store the corresponding different versions of chip reference model code files in the second master warehouse. The synchronization module is used to synchronize the chip reference model code files stored in the second master warehouse to the second slave warehouse; the software subsystem is also used to verify the chip reference model, and after the verification is passed, send a joint simulation instruction to the hardware subsystem.
[0019] The hardware subsystem is also used to, after receiving the joint simulation instruction, obtain the chip design configuration file of the target version from the first master warehouse to generate the target chip component module to be tested, and obtain the chip reference model code file of the target version from the second slave warehouse to generate the target chip reference model, input the same test stimulus to the target chip component module to be tested and the target chip reference model to perform chip joint simulation, and compare the output results of the target chip component module to be tested and the target chip reference model. If the output results are the same, the chip joint simulation passes, otherwise, the chip joint simulation fails.
[0020] During the chip development process, a chip reference model needs to be developed. After the chip reference model is verified, it can be used as a standard model to perform joint simulation with the chip design to verify the chip design. As an embodiment, the software subsystem is also used to verify the chip reference model, specifically including:
[0021] The software subsystem generates a software test case and sets corresponding preset result data, inputs the software test case into the chip reference model, generates output data, compares the output data with the preset result data, and if they are consistent, the verification is passed. It should be noted that the preset result data is preset standard data used to verify the chip reference model.
[0022] The chip design configuration file can be generated based on Python, Perl, Ruby, YAML, etc. When the software subsystem uses the chip design configuration file, the chip design configuration file can be obtained and converted into configuration information in the software language form corresponding to the software subsystem. When the hardware subsystem uses the chip design configuration file, the chip design configuration file can be obtained and converted into configuration information in the hardware language form corresponding to the hardware subsystem.
[0023] As an embodiment, the software subsystem is used to generate different versions of chip reference models based on different versions of chip design configuration files in the first slave warehouse, specifically including: the software subsystem obtains the chip design configuration file from the first slave warehouse, converts the chip design configuration file into configuration information corresponding to a preset software language, and generates a chip reference model based on the configuration information corresponding to the preset software language.
[0024] As an embodiment, the hardware subsystem obtains a chip design configuration file of a target version from the first main warehouse and generates a target chip component module to be tested, which specifically includes: the hardware subsystem obtains a chip design configuration file of a target version from the first main warehouse, converts the chip design configuration file into configuration information corresponding to a preset hardware language, and generates a chip reference model based on the configuration information corresponding to the preset hardware language.
[0025] As an embodiment, the first version management tool is used to generate the first version information (PU, PN, PD) corresponding to the chip design configuration file P submitted by the hardware subsystem, and store P and (PU, PN, PD) in the first main warehouse, wherein PU is the user identifier corresponding to P in the first version management tool, and PN is the version number generated by the first version management tool based on P. It should be noted that each time the first version management tool receives a new chip design configuration file, it will generate a corresponding version number for the chip design configuration file. PD is the reserved information segment of the first version management tool corresponding to P, and PD is initially empty. The reserved information segment is specifically a description information segment or a label information segment. Preferably, the reserved information segment is a label information segment, and the label information segment is more convenient for subsequent retrieval and query.
[0026] The synchronization module is used to obtain P and (PU, PN, PD) from the first version management tool and submit them to the second version management tool; as an embodiment, the synchronization module can be implemented based on Jenkins, which is an open source continuous integration tool that provides a user-friendly operation interface.
[0027] The second version management tool is used to generate the second version management information (QU, QN, QD) based on P and (PU, PN, PD), where QU is the user identifier corresponding to P in the second version management tool, and QU=PU is set; QN is the version number generated by the second version management tool based on P; it should be noted that the second version management tool will generate a corresponding version number for each new file received. QD is the reserved information segment of the second version management tool corresponding to P, and QD=PN is set to establish a version number mapping relationship of P in the second version management tool; P and (QU, QN, QD) are stored in the first slave warehouse, and QN is sent to the synchronization module.
[0028] The synchronization module is used to send QN to the first version management tool, and the first version management tool sets PD=QN, and establishes a version number mapping relationship of P in the first version management tool.
[0029] It should be noted that different version management tools generate version numbers in different ways. For example, some version numbers are generated based on random numbers, while some version management tools generate them by accumulating version numbers. The embodiment of the present invention utilizes the reserved information segments of the first version management tool and the second version management tool, stores the version numbers of the other party in the reserved information segments, and thus establishes a version number mapping relationship between the chip reference model code file T in the first version management tool and the second version management tool.
[0030] As an embodiment, the second version management tool is used to generate the second version information (XU, XN, XD) corresponding to X based on the chip reference model code file X submitted by the software subsystem, and store X and (XU, XN, XD) in the second main warehouse, wherein XU is the user identifier corresponding to X in the second version management tool, XN is the version number generated by the second version management tool based on X, and XD is the reserved information segment of the second version management tool corresponding to X, and XD is initially empty.
[0031] The synchronization module is used to obtain X and (XU, XN, XD) from the second version management tool and submit them to the first version management tool.
[0032] The first version management tool is used to generate first version management information (YU, YN, YD) based on X and (XU, XN, XD), where YU is the user identifier corresponding to X in the first version management tool, and YU=XU is set; YN is the version number generated by the first version management tool based on X; YD is the reserved information segment of the first version management tool corresponding to X, and YD=XN is set, and a version number mapping relationship of X is established in the first version management tool; X and (YU, YN, YD) are stored in the second slave warehouse, and YN is sent to the synchronization module.
[0033] The synchronization module is used to send YN to the second version management tool, and the second version management tool sets XD=YN, and establishes a version number mapping relationship of X in the second version management tool.
[0034] As an embodiment, if the chip joint simulation fails, there may be a problem with the target chip reference model, or there may be a problem with the chip component module to be tested. The hardware subsystem is also used to determine whether there is a problem with the target chip reference model. If so, the chip reference model code file corresponding to the target chip reference model is corrected, and the corrected chip reference model code file is stored in the second slave warehouse. The synchronization module is used to synchronize the corrected chip reference model code file of the chip stored in the second slave warehouse to the second slave warehouse.
[0035] The second master warehouse and the second slave warehouse implement bidirectional updates, that is, the second master warehouse can actively initiate the update of the chip reference model code file, and the second slave warehouse can also actively initiate the update of the chip reference model code file. As an embodiment, the first version management tool is used to generate the first version information (TU, TN, TD) corresponding to T based on the revised chip reference model code file T submitted by the hardware subsystem, and store T and (TU, TN, TD) in the second slave warehouse, where TU is the user identifier corresponding to T in the first version management tool, TN is the version number generated by the first version management tool based on T, TD is the reserved information segment of the first version management tool corresponding to T, and TD is initially empty.
[0036] The synchronization module is used to obtain T and (TU, TN, TD) from the first version management tool and submit them to the second version management tool. The second version management tool is used to generate the second version management information (SU, SN, SD) based on T and (TU, TN, TD), wherein SU is the user identifier corresponding to S in the second version management tool, and SU=TU is set; SN is the version number generated by the second version management tool based on T; SD is the reserved information segment of the second version management tool corresponding to T, and SD=TN is set to establish a version number mapping relationship of T in the second version management tool; T and (SU, SN, SD) are stored in the second main warehouse, and SN is sent to the synchronization module. The synchronization module is used to send SN to the first version management tool, and the first version management tool sets TD=SN to establish a version number mapping relationship of T in the first version management tool.
[0037] As an embodiment, when the synchronization mode between the first version management tool and the second version management tool is a two-way update, if the synchronization module detects that the first version management tool receives the chip reference model code file T submitted by the user, and the second version management tool also receives the chip reference model code file P submitted by the user, then the synchronization monitoring module determines whether there is a conflict between the chip reference model code file T and the chip reference model code file P. If so, an error is reported, otherwise, a file fusion instruction is sent to the first version management tool and the second version management tool. It should be noted that the conflict between the chip reference model code file T and the chip reference model code file P refers to the same part of the chip reference model code file being modified by both ends at the same time, and submitted to the first version management tool and the second version management tool at the same time. When a conflict occurs, this situation is not allowed, so an error needs to be reported in time.
[0038] The first version management tool obtains the newly added file part corresponding to the chip reference model code file P based on the received file fusion instruction, and updates the chip reference model code file T stored in the first storage warehouse to the union of the chip reference model code file T and the newly added file part corresponding to the chip reference model code file P.
[0039] The second version management tool obtains the newly added file part corresponding to the chip reference model code file T based on the received file fusion instruction, and updates the chip reference model code file P stored in the second storage warehouse to the union of the chip reference model code file P and the newly added file part corresponding to the chip reference model code file T.
[0040] The embodiment of the present invention implements the synchronous management of chip design configuration files and chip reference models in the software subsystem and the hardware subsystem through a first version management tool in the hardware subsystem, a second version management tool in the software subsystem, and a synchronization module connected to the hardware subsystem and the software subsystem, and then implements chip joint simulation in the hardware subsystem based on multi-version chip files, thereby improving the efficiency of chip joint simulation.
[0041] 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 joint simulation system based on version management, characterized in that: It includes a hardware subsystem, a software subsystem and a synchronization module connected with the hardware subsystem and the software subsystem; The hardware subsystem includes a first version management tool, and the first version management tool includes a first master warehouse and a second slave warehouse; The software subsystem includes a second version management tool, and the second version management tool includes a second master warehouse and a first slave warehouse; The hardware subsystem is used to generate different versions of chip design configuration files and store them in the first master warehouse, and the synchronization module is used to synchronize the different versions of chip design configuration files stored in the first master warehouse to the first slave warehouse; The software subsystem is used to generate different versions of chip reference models based on different versions of chip design configuration files in the first slave warehouse, and store the corresponding different versions of chip reference model code files in the second master warehouse, and the synchronization module is used to synchronize the chip reference model code files stored in the second master warehouse to the second slave warehouse; The software subsystem is also used to verify the chip reference model, and after the verification is passed, send a joint simulation instruction to the hardware subsystem; The hardware subsystem is further used to, after receiving the joint simulation instruction, obtain the chip design configuration file of the target version from the first master warehouse to generate the target chip component module to be tested, and obtain the chip reference model code file of the target version from the second slave warehouse to generate the target chip reference model, input the same test stimulus to the target chip component module to be tested and the target chip reference model to perform chip joint simulation, and compare the output results of the target chip component module to be tested and the target chip reference model. If the output results are the same, the chip joint simulation passes, otherwise, the chip joint simulation fails; The first version management tool is used to generate first version information (PU, PN, PD) corresponding to P based on the chip design configuration file P submitted by the hardware subsystem, and store P and (PU, PN, PD) in the first main warehouse, where PU is the user identifier corresponding to P in the first version management tool, PN is the version number generated by the first version management tool based on P, PD is the reserved information segment of the first version management tool corresponding to P, and PD is initially empty; The synchronization module is used to obtain P and (PU, PN, PD) from the first version management tool and submit them to the second version management tool; The second version management tool is used to generate second version management information (QU, QN, QD) based on P and (PU, PN, PD), where QU is the user identifier corresponding to P in the second version management tool, and QU=PU is set; QN is the version number generated by the second version management tool based on P; QD is the reserved information segment of the second version management tool corresponding to P, and QD=PN is set to establish a version number mapping relationship of P in the second version management tool; P and (QU, QN, QD) are stored in the first slave warehouse, and QN is sent to the synchronization module; The synchronization module is used to send QN to the first version management tool, and the first version management tool sets PD=QN, and establishes a version number mapping relationship of P in the first version management tool; The second version management tool is used to generate the second version information (XU, XN, XD) corresponding to X based on the chip reference model code file X submitted by the software subsystem, and store X and (XU, XN, XD) in the second main warehouse, where XU is the user identifier corresponding to X in the second version management tool, XN is the version number generated by the second version management tool based on X, and XD is the reserved information segment of the second version management tool corresponding to X, and XD is initially empty; The synchronization module is used to obtain X and (XU, XN, XD) from the second version management tool and submit them to the first version management tool; The first version management tool is used to generate first version management information (YU, YN, YD) based on X and (XU, XN, XD), where YU is the user identifier corresponding to X in the first version management tool, and YU=XU is set; YN is the version number generated by the first version management tool based on X; YD is the reserved information segment of the first version management tool corresponding to X, and YD=XN is set, and a version number mapping relationship of X is established in the first version management tool; X and (YU, YN, YD) are stored in the second slave warehouse, and YN is sent to the synchronization module; The synchronization module is used to send YN to the second version management tool, and the second version management tool sets XD=YN to establish a version number mapping relationship of X in the second version management tool.
2. The system according to claim 1, characterized in that The software subsystem is also used to verify the chip reference model, specifically including: The software subsystem generates a software test case and sets corresponding preset result data, inputs the software test case into the chip reference model, generates output data, and compares the output data with the preset result data. If they are consistent, the verification is passed.
3. The system according to claim 1, characterized in that The chip design configuration file includes chip functional feature description information, chip component module description information, bus description information between chip component modules, and register description information.
4. The system according to claim 1, characterized in that The software subsystem is used to generate different versions of chip reference models based on different versions of chip design configuration files in the first slave warehouse, specifically including: The software subsystem obtains a chip design configuration file from the first slave warehouse, converts the chip design configuration file into configuration information corresponding to a preset software language, and generates a chip reference model based on the configuration information corresponding to the preset software language.
5. The system according to claim 1, characterized in that The hardware subsystem obtains a chip design configuration file of a target version from the first main warehouse and generates a target chip component module to be tested, specifically including: The hardware subsystem obtains the chip design configuration file of the target version from the first main warehouse, converts the chip design configuration file into configuration information corresponding to a preset hardware language, and generates a chip reference model based on the configuration information corresponding to the preset hardware language.
6. The system according to claim 1, characterized in that If the chip joint simulation fails, the hardware subsystem is also used to determine whether there is a problem with the target chip reference model. If so, the chip reference model code file corresponding to the target chip reference model is corrected, and the corrected chip reference model code file is stored in the second slave warehouse. The synchronization module is used to synchronize the corrected chip reference model code file of the chip stored in the second slave warehouse to the second slave warehouse.
7. The system according to claim 6, characterized in that The first version management tool is used to generate the first version information (TU, TN, TD) corresponding to T based on the modified chip reference model code file T submitted by the hardware subsystem, and store T and (TU, TN, TD) in the second slave warehouse, where TU is the user identifier corresponding to T in the first version management tool, TN is the version number generated by the first version management tool based on T, TD is the reserved information segment of the first version management tool corresponding to T, and TD is initially empty; The synchronization module is used to obtain T and (TU, TN, TD) from the first version management tool and submit them to the second version management tool; The second version management tool is used to generate second version management information (SU, SN, SD) based on T and (TU, TN, TD), where SU is the user identifier corresponding to S in the second version management tool, and SU=TU is set; SN is the version number generated by the second version management tool based on T; SD is the reserved information segment of the second version management tool corresponding to T, and SD=TN is set, and a version number mapping relationship of T is established in the second version management tool; T and (SU, SN, SD) are stored in the second main warehouse, and SN is sent to the synchronization module; The synchronization module is used to send SN to the first version management tool, and the first version management tool sets TD=SN, and establishes a version number mapping relationship of T in the first version management tool.
8. The system according to claim 1, characterized in that The reserved information segment is a description information segment or a label information segment.
Citation Information
Patent Citations
Long-distance program updating method and system
CN102779056A
Verification method and related equipment
CN113127019A
Multi-mode GPU joint simulation system
CN115496034A
Verification method for solving poor consistency of rtl simulation design and chip algorithm
CN115688644A
Method for constructing reference model, chip verification method and system
CN116341428A
