Verification method, electronic device and computer readable storage medium
By generating empty module files during SOC verification, the functional logic and interconnection topology of unrelated subsystems are cleared, solving the problem of resource waste in the full compilation process, achieving a more efficient compilation and verification process, and maintaining the integrity of the original design.
Patent Information
- Application Number
- CN202611340142.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
In existing SOC verification methods, the full compilation process leads to unnecessary waste of resources and time, especially when verifying specific subsystems or in the early stages of debugging. Unrelated subsystem code consumes a lot of platform resources, prolonging compilation time.
By obtaining replacement requirements, searching for subsystems to be replaced, clearing their functional logic and interconnection topology, preserving ports and assigning default values to generate empty module files, replacing the corresponding paths in the source file list, reducing the resource consumption of unrelated subsystems, reducing compilation time, and decoupling subsystems or modules at the SOC level.
It effectively reduces the resource consumption of unrelated subsystems, shortens compilation time, improves verification efficiency, ensures the accuracy and completeness of verification results, and does not require modification of the original RTL code.
Smart Images

Figure CN123139931A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of chip verification technology, and more particularly to a verification method, electronic device, and computer-readable storage medium. Background Technology
[0002] SOC (System on Chip) verification refers to the process of testing and verifying various indicators such as the function, performance, and stability of the system on chip. It is an essential and critical step before chip tape-out. Its core function is to discover logical errors, timing problems, and other defects in the design in advance, so as to avoid huge R&D losses caused by problems after tape-out.
[0003] The SOC verification process in related technologies basically involves integrating all the design code of the entire SOC, compiling it as a whole, and then generating an image that can run on the corresponding platform. The specific steps are as follows: First, integrate the design files of all sub-modules to generate a complete list of top-level files. Next, perform overall compilation, synthesis, and place-and-route of all design code. Finally, generate a runnable verification image.
[0004] However, the aforementioned SOC verification is part of the full compilation process, which can lead to unnecessary waste of resources and time. Summary of the Invention
[0005] This application provides an improved verification method, electronic device, and computer-readable storage medium.
[0006] This application provides a verification method, including: Obtain the configured replacement requirements; the replacement requirements include indications of unnecessary subsystems to be replaced; According to the replacement requirements, search the project's source file list to obtain the content of the subsystem to be replaced; Based on the content of the subsystem to be replaced, all functional logic code and interconnection bus topology of the subsystem to be replaced are cleared, all ports of the subsystem to be replaced are assigned preset default values, and an empty module file is generated. Replace the paths in the original top-level file list that point to the original sub-file list of the subsystem to be replaced with the paths to the empty module files, and obtain and output the empty module file directory and the new top-level file list; the new top-level file list is used to start verification on the verification platform.
[0007] Furthermore, according to the replacement requirements, the process of searching the project's source file list to obtain the content of the subsystem to be replaced includes: Based on the replacement requirements, a search is performed in the original top-level file list of the project to obtain the content of the subsystem to be replaced.
[0008] Furthermore, according to the replacement requirements, a search is performed in the original top-level file list of the project to obtain the content of the subsystem to be replaced, including: According to the replacement requirements, the list of sub-files corresponding to all subsystems to be replaced is searched from top to bottom from the original top-level file list of the project to obtain the content of the subsystems to be replaced.
[0009] Furthermore, the replacement requirement is obtained in the following manner: Based on the actual needs of this verification and debugging, the functional subsystems that need to be retained and the subsystems that need to be replaced are identified; the subsystems to be replaced include those that are not needed. The subsystems to be replaced are assembled according to the tool specifications to obtain the replacement requirements.
[0010] Furthermore, the replacement requirement is obtained in the following way: the names of the subsystems to be replaced are concatenated into the replacement requirement according to the tool parameter specifications; The method further includes: Obtain the list of source files for the specified verification platform used in this verification debugging or software development; After obtaining and outputting the empty module file directory and the new top-level file list, the method further includes: Output the empty module file directory and the new top-level file list to the designated verification platform, and output the project file in the target platform format that is compatible with the designated verification platform; the project file is used to start verification on the verification platform.
[0011] Furthermore, the designated verification platform includes the VCS simulation platform; correspondingly, the output project file adapted to the target platform format of the designated verification platform includes: Output a new list of top-level files that conforms to the VCS syntax specification; this new list of top-level files is used to directly submit the VCS simulation platform to start compilation and simulation.
[0012] Furthermore, the designated verification platform includes an EMU simulation platform; correspondingly, the output project file adapted to the target platform format of the designated verification platform includes: The empty module file directory and the new top-level file list are adapted to the requirements of the EMU simulation platform for source file path declaration and file organization format, and a first new project file that conforms to the EMU simulation platform import standard is output; the first new project file is used for direct import into the EMU simulation platform.
[0013] Furthermore, the designated verification platform includes an FPGA verification platform, and correspondingly, the output project file adapted to the target platform format of the designated verification platform includes: The empty module file directory and the new top-level file list are adapted to the requirements of the FPGA verification platform for file list format and source file path, and a second new project file that conforms to the FPGA project execution is output; the second new project file is used to directly import the FPGA project for comprehensive implementation.
[0014] Secondly, this application provides a verification method, including: Based on the specified verification platform type corresponding to this verification, a verification tool matching the specified verification platform is invoked; the verification tool executes the verification method as described in the first aspect; the specified verification platform type includes at least one of VCS simulation platform, EMU simulation platform, and FPGA verification platform; Input the configured replacement requirements into the verification tool so that the verification tool executes the verification method as described in the first aspect and outputs a project file in a target platform format that is compatible with the specified verification platform.
[0015] Thirdly, this application provides an electronic device including one or more processors for implementing the method as described in any of the preceding claims.
[0016] Fourthly, this application provides a computer-readable storage medium having a program stored thereon that, when executed by a processor, implements the method described in any of the preceding claims.
[0017] Fifthly, this application provides a computer program product including a computer program / instructions that, when executed by a processor, implement the method described in any of the preceding claims.
[0018] In some embodiments, the verification method of this application, after obtaining the replacement requirements, searches for the subsystem to be replaced, removes its functional logic and interconnection topology, retains the ports and assigns default values to generate an empty module file, and replaces the corresponding path in the source file list. This reduces the resource consumption of unrelated subsystems and lowers compilation time. Furthermore, it decouples subsystems or modules at the SOC level, preventing unrelated modules from consuming resources. Attached Figure Description
[0019] Figure 1 The diagram shown is a system schematic of the verification method according to an embodiment of this application. Figure 2 The diagram shown is a flowchart illustrating the verification method provided in an embodiment of this application. Figure 3 As shown Figure 2 The flowchart shows a specific application example of the verification method. Figure 4 The diagram shown is another flowchart of the verification method provided in an embodiment of this application; Figure 5 The diagram shown is a structural schematic of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0021] It should be noted that the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification in other embodiments. In some other embodiments, the methods may include more or fewer steps than described in this specification. Furthermore, a single step described in this specification may be broken down into multiple steps in other embodiments; and multiple steps described in this specification may be combined into a single step in other embodiments.
[0022] SOC verification refers to the process of testing and verifying various indicators such as the function, performance, and stability of the on-chip system. It is an essential and critical step before chip tape-out. Its core function is to discover defects such as logical errors and timing problems in the design in advance, so as to avoid huge R&D losses due to problems after tape-out.
[0023] The process of SOC verification in related technologies basically involves integrating all the design code of the entire SOC, compiling it as a whole, and then generating an image that can run on the corresponding platform.
[0024] The specific steps are as follows: First, integrate the design files of all sub-modules to generate a complete list of top-level files. Then, compile, synthesize, and place and route all the design code as a whole to generate a verification image that can be run.
[0025] However, when performing functional verification or preliminary debugging for a specific subsystem, this full compilation process still includes all unrelated subsystem code. These unrelated modules not only consume a significant amount of platform resources, raising the resource usage threshold, but also further increase compilation time. In short, this results in unnecessary waste of resources and time.
[0026] To address the technical problem of unnecessary resource and time waste caused by the full compilation process in SOC verification in related technologies, the verification method provided in this application searches for the subsystem to be replaced after obtaining the replacement requirements, removes its functional logic and interconnection topology, retains ports and assigns default values to generate an empty module file, and replaces the corresponding path in the source file list. This reduces the resource consumption of unrelated subsystems and lowers compilation time. Furthermore, it decouples subsystems or modules at the SOC level, preventing unrelated modules from consuming resources.
[0027] Figure 1 The diagram shown is a system schematic of the verification method applied in an embodiment of this application.
[0028] like Figure 1 As shown, the systems used in applying the verification method include different verification platforms and verification tools adapted to each platform. Among them, Different verification platforms may include, but are not limited to, at least one of the following: VCS (Verilog Compiler Simulator, the industry-leading Verilog / SystemVerilog platform launched by Synopsys), EMU (Emulator, hardware simulator) simulation platform, and FPGA (Field-Programmable Gate Array) verification platform. Users can select the corresponding type of verification platform to carry out verification work according to the different needs of the verification stage and design scale.
[0029] The verification tool is an automated processing tool that integrates the full-process verification logic described in this application. It has a unified and standardized configuration entry point. Users only need to input the basic information of the chip project to be processed and the replacement requirements marked with the target subsystem to be replaced into the verification tool. The verification tool can automatically complete the entire process from locating the subsystem to be replaced to adapting to the target platform format. The final output is a project file that can be directly imported into the target verification platform, allowing the verification platform to directly start the compilation and verification process. The entire process does not require users to manually modify the original RTL design code or manually adjust the project file format for different platforms, which reduces the operational threshold and environment setup workload of chip subsystem-level on-demand verification.
[0030] Firstly, Figure 2 The diagram shown is a flowchart of the verification method provided in an embodiment of this application.
[0031] like Figure 2 As shown, this verification method may include, but is not limited to, the following steps 110 to 140: Step 110: Obtain the configured replacement requirements; the replacement requirements contain indications of the subsystems that are not needed and need to be replaced.
[0032] The replacement requirement is used to mark the subsystems that need to be removed from the original chip design project and replaced with empty modules that retain port definitions in this verification task. The tool can automatically complete all the location, replacement and platform adaptation work based on this configuration. The original RTL design file will not be modified throughout the process. Only a brand new project file adapted to the verification requirements will be output. While realizing the on-demand trimming of irrelevant subsystems, the integrity of the original design is fully preserved.
[0033] The replacement requirements mentioned above may include, but are not limited to, the name and path of the subsystem to be replaced.
[0034] The replacement requirements in step 110 above can be obtained in the following ways: Users can directly select the subsystems to be replaced that are not needed for this verification in the chip project hierarchy structure tree automatically generated by the tool through the visual project interaction interface provided by this verification tool. The tool will then automatically extract the name, storage path and other information of the corresponding subsystems to generate the corresponding replacement requirements. Alternatively, users can directly import a pre-written XX format configuration file, which pre-marks the relevant information of all subsystems to be replaced. The tool can directly extract the complete replacement requirements by parsing the configuration file.
[0035] Step 120: According to the replacement requirements, search the source file list of the project to obtain the content of the subsystem to be replaced.
[0036] The source file list records the hierarchical relationships and storage paths of all sub-files and source files in the entire chip design project. The verification platform relies on the source file list to read the project content level by level to complete the compilation and verification process. The source file list is a manifest file that records the paths of all RTL code files in the chip design.
[0037] The original top-level file list of the project corresponds to the sub-file list of each subsystem. The index of the original content of the subsystem to be replaced is recorded in the sub-file list associated with the top-level list. Therefore, by searching from the top level based on the replacement requirements, all the content that needs to be replaced can be accurately located, providing accurate operation objects for subsequent path replacement operations.
[0038] In addition, the aforementioned project refers to the chip design and integration project for which verification work is being carried out. This is a SOC design project that includes multiple functional subsystems. Different subsystems may correspond to different functional development tasks, which are carried out by different development teams. The delivery schedule and verification requirements are different, in order to adapt to the application scenarios targeted by this application, which involve tailoring irrelevant subsystems as needed and verifying only the target subsystem. This allows the entire process of verification preparation work to be completed without modifying the original design code.
[0039] The aforementioned target subsystem refers to the designated functional module that requires key testing and debugging in this verification task. The independent verification of the target subsystem is achieved by replacing the remaining subsystems that do not participate in this verification process with empty modules that only retain port definitions.
[0040] Step 130: Based on the content of the subsystem to be replaced, clear all functional logic code of the subsystem to be replaced and the interconnection bus topology of the subsystem to be replaced, assign preset default values to all ports of the subsystem to be replaced, and generate an empty module file.
[0041] Empty module files are used to replace the top-level interconnect structure of the original subsystems to be replaced in the project. Only port definitions that meet the top-level port connection requirements are retained, and all functional logic code of the original subsystems is removed. On the one hand, this ensures the integrity of the overall interconnect topology of the project, allowing the verification platform to complete connection checks and initial startup normally without errors such as port mismatches or incomplete structures due to the removal of some subsystems. On the other hand, it minimizes unnecessary resource consumption during verification, allowing the verification platform's computing resources to be fully allocated to the retained subsystems that need to be verified, effectively improving compilation and verification speed, while also not interfering with the signal interaction logic between the retained subsystems, thus ensuring the accuracy of the final verification results.
[0042] Step 140: Replace the paths in the original top-level file list that point to the original sub-file list of the subsystem to be replaced with the paths to the empty module files, and obtain and output the empty module file directory and the new top-level file list; the new top-level file list is used to start verification on the verification platform.
[0043] The aforementioned empty module file directory is used in conjunction with the list of modules to be replaced generated by the tool. This allows developers to quickly verify the replacement results and troubleshoot potential configuration errors. If the scope of the subsystems to be replaced needs to be adjusted later, the corresponding empty modules can be added, modified, or deleted quickly based on this directory, improving the efficiency of subsequent debugging and adjustments. At the same time, the independent directory also facilitates separate version management for the lightweight verification project without interfering with the version control process of the original project.
[0044] Furthermore, replacing the top-level file list ensures that the verification platform can successfully load and start the entire project, preventing the verification process from being interrupted due to the invalidation of the original subsystem paths to be replaced. By pointing the paths to the processed empty module files, the verification platform can initialize the entire verification environment normally according to the project startup process, without causing abnormal errors due to the removal of some subsystems.
[0045] Based on this, the empty module only retains the default values of the corresponding port, does not output additional interference signals, and does not occupy additional computing resources. It can achieve independent verification of only the reserved subsystems without changing the interconnection topology of other reserved subsystems or affecting the original logic operation, effectively shortening the verification cycle and improving the accuracy of the verification results.
[0046] In this embodiment, after obtaining the replacement requirements, the subsystem to be replaced is searched, its functional logic and interconnection topology are cleared, ports are retained and assigned default values to generate an empty module file, and the corresponding path in the source file list is replaced. Irrelevant subsystems can be trimmed without modifying the original RTL code, reducing verification environment setup time, reducing compilation resource consumption, and improving compilation speed. Furthermore, this application generates only one copy adapted to the current verification requirements based on the original top-level file list. All path replacement operations are performed on this copy, and the original top-level file list and all original RTL design code remain unchanged, fully preserving the version integrity of the original design project. The structure of the original project will not be damaged by multiple verification trimming operations with different requirements. After completing this verification, developers do not need to additionally restore the original project files and can directly carry out the next round of verification work with different requirements, further improving the efficiency of multi-round iterative verification.
[0047] See also Figure 2 As shown, step 130 above can be implemented using the following specific embodiments of steps 131 to 134: Step 131: Traverse and parse the top-level module definition of the original subsystem to be replaced, extract all port information of the subsystem's external interaction, and completely retain the original definition information such as signal type, bit width, and transmission direction of each port to ensure that the generated empty module fully matches the interface requirements of the top-level interconnection topology.
[0048] Step 132: Clear all functional logic code inside the original subsystem to be replaced, including internal register definitions, combinational logic descriptions, submodule instantiation information, interconnect bus logic, etc., and retain only the extracted top-level port definition part.
[0049] Step 133: Assign preset default values to all reserved ports: the input ports retain their original top-level input driver connections, the output ports are bound to preset fixed level values, and the bidirectional ports are set to high impedance by default to avoid interference with the signal interaction of the reserved subsystem.
[0050] Step 134: Finally, the module code with only port definitions and default configurations is saved as an empty module file that conforms to the format required by the target verification platform, and stored in a pre-created independent directory for empty modules, thus completing the process of generating the empty module file.
[0051] The meanings of the custom terms appearing in steps 131 to 134 above are explained as follows: The aforementioned port information for external interaction refers to all the interface signal definition information used by the subsystem to be replaced as an independent integrated module to complete signal interaction with other subsystems and the top-level interconnect bus in the chip project. It is the core element to ensure that the generated empty module can fully adapt to the original top-level interconnect topology.
[0052] The above signal types refer to the functional classification of port signals in chip RTL design, specifically including different types such as logic signals, clock signals, reset signals, address bus signals, and data bus signals. This application fully retains this definition during the generation of empty modules to ensure that the port attributes of the empty modules are completely matched with the original design requirements.
[0053] The bit width mentioned above refers to the number of binary bits of the digital signal carried by the port. It is a key parameter to ensure port signal parsing and matching and to avoid signal misalignment errors. The bit width definition of the original design is retained during the generation of the empty module, and the original port signal specifications will not be changed.
[0054] The aforementioned transmission direction refers to the signal flow direction of the port, which is divided into three categories: input, output, and bidirectional. This defines the signal transmission and reception attributes of the port. This application fully retains the original design's transmission direction definition to ensure that the signal flow of the empty module meets the requirements of the top-level interconnection.
[0055] The aforementioned functional logic code refers to all the RTL description code written by the subsystem to be replaced to implement its specific chip functions. It is the carrier of the core functions of the subsystem to be replaced and also the main part that occupies computing and storage resources during the verification process. Therefore, it will be completely cleared when an empty module is generated.
[0056] The above-mentioned submodule instantiation information refers to the instantiation declaration and connection information of lower-level functional submodules within the subsystem to be replaced. It belongs to the internal functional implementation content of the subsystem to be replaced and does not involve external port interaction. Therefore, it is cleared along with the internal functional logic when an empty module is generated.
[0057] The aforementioned interconnect bus logic refers to the bus control and bridging logic within the subsystem to be replaced, which enables signal interconnection and data transmission between various sub-modules. It falls under the category of internal functional logic, and its removal will not affect the connection and matching between the empty module and the top-level external bus.
[0058] The aforementioned default values refer to the default port parameter values pre-configured by this application for generating empty modules. These values are used to ensure that after the empty module is connected to the verification environment, it will not output uncertain or unpredictable signals that interfere with the normal operation of the retention subsystem, thus ensuring the stability and reliability of the verification results.
[0059] The aforementioned fixed level value refers to the preset constant level bound to the output port, which can be preset to high or low level according to the chip design specifications to avoid the output port being in an unpredictable state and causing interference to the overall verification environment.
[0060] The aforementioned high-impedance state refers to the default high-impedance state of the bidirectional port. In this state, the bidirectional port will not generate additional drive for the bus signal, but will only maintain a high-impedance listening state, and will not interfere with the normal drive and use of the bus by other reserved modules.
[0061] The aforementioned target verification platform requirement format refers to the differentiated requirements of different types of verification platforms for RTL (Register Transfer Level) code file formats. This application will generate an empty module file format that conforms to the compilation specifications of the verification platform type selected by the user in advance, so as to achieve cross-platform adaptation output with a single configuration.
[0062] The aforementioned independent directory for empty modules refers to an independent storage path used to store all empty module files generated in this verification task. This directory is independent of the storage path of the original RTL design files, which facilitates separate version management of the lightweight verification project and will not cause the original design files to be overwritten or modified.
[0063] In this way, by using a layered processing approach, all functional computational logic of the original subsystems to be replaced was eliminated, while the port matching relationships required for the top-level interconnection were fully preserved. This approach minimizes the computational and storage resource consumption of the empty modules on the verification platform and ensures the integrity of the entire project's interconnection structure. It prevents verification anomalies such as top-level port mismatches and interconnection topology breaks caused by the removal of partial subsystems. Furthermore, the entire process of generating empty modules is based entirely on parsing and extracting the original RTL code to generate entirely new files, without making any modifications to the original RTL design files. This approach fully preserves the integrity of the original project design while achieving subsystem tailoring, and will not interfere with the implementation of other system-wide verification tasks.
[0064] Combination Figure 2 As shown, step 120 above may include, but is not limited to, step 121: Step 121: According to the replacement requirements, search the original top-level file list of the project to obtain the content of the subsystem to be replaced.
[0065] When searching for subsystems to be replaced using related technologies, it is necessary to traverse the entire list of files at all levels, which is inefficient and prone to missing subsystems.
[0066] Compared to related technologies, this embodiment searches for the subsystem content to be replaced within the original top-level file list of the project, replacing the corresponding paths to generate a new top-level file list. This direct search from the top-level file list narrows the search scope, improves subsystem location efficiency, avoids mismatches with irrelevant files, and enhances search accuracy. Simultaneously, it ensures that all references to the subsystems to be replaced are accurately identified and replaced, avoiding compilation errors caused by missing subfile list references, thereby improving replacement accuracy.
[0067] Furthermore, step 121 above may include, but is not limited to, step 1211 below: according to the replacement requirements, search from top to bottom the original top-level file list of the project for a list of sub-files that match all sub-systems to be replaced, and obtain the content of the sub-systems to be replaced.
[0068] For example, the tool has a reserved option stub. When it is necessary to replace the subsystem to be replaced (such as subsys_a, subsys_b, subsys_c) with an empty file, stub=subsys_a+subsys_b+subsys_c. The tool will search from top to bottom from soc.f for subsys_a.f, subsys_b.f, and subsys_c.f.
[0069] In this embodiment, a top-down traversal of the original top-level file list is adopted for matching. This method can completely cover all index references to target subsystem files in the top-level list. It will not miss nested subsystem indexes due to search order issues, nor will it generate multiple duplicate matches for the same subsystem to be replaced. This can effectively ensure that all targets can be accurately located and replaced in scenarios where multiple subsystems to be replaced are replaced at the same time, avoiding compilation errors caused by replacement omissions, and further improving the processing efficiency and accuracy in multi-subsystem replacement scenarios.
[0070] When the sub-file list of related technologies has complex reference relationships, unordered searching is prone to problems such as duplicate replacement or omission.
[0071] Compared to the disordered search of related technologies, the embodiments of this application search from top to bottom from the original top-level file list to match the sub-file lists corresponding to all subsystems to be replaced. This top-down search order eliminates the need for backtracking, ensuring that all multiple subsystems to be replaced are accurately located without omissions or duplicate matches. This guarantees the determinism of the replacement logic, improves processing speed, and completely avoids logical errors such as duplicate or missed replacements.
[0072] As an optional embodiment of this application, the above-mentioned replacement requirement can be obtained by at least one of the following optional implementation methods: In the first optional implementation, step 210 involves obtaining the functional subsystems that need to be retained and the subsystems that need to be replaced, based on the actual needs of this verification and debugging; the subsystems to be replaced include the subsystems that are not needed.
[0073] Step 220: Assemble the subsystems to be replaced according to the tool specifications to obtain the replacement requirements.
[0074] Compared to other technologies where configuring and trimming parameters requires manual modification of macro definitions or scripts, making the configuration process complex and error-prone, this embodiment determines the subsystems to be retained and replaced based on verification requirements, and generates replacement requirements by piecing them together according to tool specifications. In this way, users only need to provide the name of the subsystem to be replaced to automatically generate configuration parameters. The standardized replacement requirement generation method ensures a consistent format for replacement requirements, allowing the tool to accurately identify them, thereby improving usability and lowering the barrier to entry.
[0075] In the second optional implementation, step 310 involves concatenating the names of the subsystems to be replaced into the replacement requirements according to the tool parameter specifications.
[0076] Accordingly, the above method may also include, but is not limited to, steps 410 to 420: Step 410: Obtain the list of source files for the specified verification platform used in this verification debugging or software development.
[0077] Step 420: After obtaining and outputting the empty module file directory and the new top-level file list, output the empty module file directory and the new top-level file list to the specified verification platform, and output the project file in a target platform format adapted to the specified verification platform; the project file is used to start verification on the verification platform.
[0078] The project file can contain, but is not limited to, a collection of files containing information such as a list of source files, compilation options, and platform configurations. It can be directly imported into the corresponding verification platform to start the verification process.
[0079] Compared to other methods where project files, after being tailored from related technologies, require manual format adjustments for different verification platforms, making cross-platform reuse impossible and resulting in a large workload for adaptation, this embodiment obtains a list of source files for a specified verification platform and outputs project files adapted to the corresponding platform format. Thus, a single configuration can simultaneously generate project files adapted to VCS, EMU, and FPGA platforms, achieving automatic multi-platform format adaptation and output. Furthermore, it enables cross-platform reuse across VCS, EMU, and FPGA without requiring secondary file format adjustments, improving verification efficiency. The VCS simulation platform is used for functional verification of chip designs.
[0080] Furthermore, as an optional embodiment of this application, the designated verification platform includes a simulation tool.
[0081] Accordingly, the output of project files in a target platform format adapted to the specified verification platform may include, but is not limited to, step 510, outputting a new top-level file list that conforms to the VCS syntax specification; the new top-level file list is used to directly submit to the VCS simulation platform to start compilation and simulation.
[0082] Compared to the VCS simulation platform in related technologies, which has requirements for the syntax and path format of the file list and is prone to syntax errors when manually adjusted, in this embodiment, a new top-level file list that conforms to the VCS syntax specification is output. In this way, the generated file list can be directly submitted to the VCS platform for compilation without secondary modification, thereby improving the simulation startup efficiency.
[0083] As another optional embodiment of this application, the designated verification platform includes the EMU simulation platform; correspondingly, the output of project files adapted to the target platform format of the designated verification platform may include, but is not limited to, step 610, adapting the empty module file directory and the new top-level file list to the requirements of the EMU simulation platform for source file path declaration and file organization format, and outputting a first new project file that conforms to the import standard of the EMU simulation platform; the first new project file is used for direct import into the EMU simulation platform.
[0084] Among them, the EMU simulation platform is a verification solution between software simulation and FPGA prototyping. It can achieve a running speed close to that of the actual chip and is used for functional verification and software debugging of large-scale SOC designs.
[0085] Compared to the EMU hardware simulation platform of related technologies, which has strict requirements on the source file organization format and path declaration, and whose manual adaptation process is cumbersome and prone to import failure, the embodiments of this application require the output of a first new project file that conforms to the import standard when adapting to the EMU platform. In this way, the generated project file automatically completes the EMU platform format adaptation and can be directly imported into the EMU platform for use, reducing the workload of manual adaptation.
[0086] As another optional embodiment of this application, the designated verification platform includes an FPGA verification platform. Accordingly, the output of project files adapted to the target platform format of the designated verification platform may include, but is not limited to, the following step 710: adapting the empty module file directory and the new top-level file list to the requirements of the FPGA verification platform for file list format and source file path, and outputting a second new project file that conforms to FPGA project execution; the second new project file is used to directly import the FPGA project for comprehensive implementation.
[0087] An FPGA verification platform is a semi-custom integrated circuit that can be configured using a hardware description language to implement custom circuit functions for chip prototype verification and early-stage algorithm verification.
[0088] Compared to FPGA synthesis tools in related technologies, which have requirements for file list formats and path references, and manual adaptation can easily lead to synthesis errors, the embodiments of this application automatically generate project files that meet FPGA requirements. These files can be directly imported into FPGA tools for synthesis without manual adjustments, thus shortening FPGA project setup time. Furthermore, the generated project files can be directly imported into FPGA projects for synthesis and implementation, improving prototype verification efficiency.
[0089] Figure 3 As shown Figure 2 The flowchart shows a specific application example of the verification method.
[0090] like Figure 3 As shown, step 1 involves reading the source file list. The tool first reads the original top-level file list of the SOC project, which completely records the index relationship of all subsystem subfile lists. To ensure the accuracy of subsequent search and replacement, the subfile list names of each subsystem must be exactly the same as the subsystem's top-level module name. For example, if the subsystem's top-level module is module subsys_a, then its corresponding subfile list must be named subsys_a.f so that the tool can match the corresponding subsystem.
[0091] In the original top-level file list of the project, the sub-file list of each subsystem must be named the same as the top-level module of the subsystem; for example, if the subsystem file list is subsys_a.f, the top-level module of the subsystem is module subsys_a.
[0092] Step 2, Subsystem Search and Replacement Phase: The tool receives configured replacement requests. When it needs to replace a subsystem to be replaced (such as subsys_a, subsys_b, subsys_c) with an empty module file, it traverses the top-level file list in a top-down order to locate the subfile list paths corresponding to all subsystems to be replaced. Then, it performs two operations simultaneously: First, it directly replaces the paths in the top-level file list that point to the original subfile list of the subsystem to be replaced with the paths of the subsequently generated empty module files (for example, replacing subsys_a.f with subsys_a_stub.sv); Second, it parses the top-level module definition of the original subsystem to be replaced, retains the original definitions of all external ports, clears all internal functional logic code, and assigns preset fixed level values to the output ports, generating an empty module file that only retains the port definitions.
[0093] The tool will search the original top-level file list from top to bottom for subsys_a.f, subsys_b.f, and subsys_c.f, and then perform the following steps a and b: a. Replace the sub-file list of the subsystem in the original top-level file list (such as subsys_a.f, subsys_b.f, subsys_c.f) with the corresponding generated empty module file subsys_a_stub.sv.
[0094] b. Parse the top-level module subsys_a / b / c of the original subsys_a / b / cf, keep the port definitions, and remove the module entity; assign the output port the default value 0 / 1.
[0095] Step 3: Generate a new top-level file list, replacing the original list of subsystem files to be replaced with the newly generated empty module files; output the new top-level file list for simulation or prototype verification. Specifically, output project files in the corresponding format according to the specified verification platform type.
[0096] Secondly, Figure 4 The following is another flowchart of the verification method provided in an embodiment of this application.
[0097] like Figure 4 As shown, the verification method may include, but is not limited to, the following steps 810 to 820: Step 810: Based on the specified verification platform type corresponding to this verification, call the verification tool that matches the specified verification platform; the verification tool executes the verification method as described in the first aspect; the specified verification platform type includes at least one of VCS simulation platform, EMU simulation platform, and FPGA verification platform.
[0098] The verification tool refers to an automated tool that integrates the verification methods described in the first aspect. It can call the corresponding adaptation logic according to the specified verification platform type and output project files that meet the platform requirements. The verification tool may include, but is not limited to, at least one of the following: subsystem trimming automation tools, VCS simulation tools, EMU hardware simulation tools, and FPGA synthesis verification tools.
[0099] Step 820: Input the configured replacement requirements into the verification tool so that the verification tool performs the verification method as described in the first aspect and outputs a project file in a target platform format that is compatible with the specified verification platform.
[0100] Compared to other technologies where verification tools on different platforms have inconsistent logic, requiring the development of separate adaptation scripts and incurring high maintenance costs, this application's embodiment automatically calls the matching verification tool based on the specified verification platform type. After inputting replacement requirements, it outputs the corresponding platform's project file, thereby achieving automatic matching and invocation of verification tools with a unified entry point. As a result, users do not need to worry about the differences between tools on different platforms; they can complete multi-platform verification processes through a unified interface, reducing user operational complexity, increasing the automation level of the verification process, lowering tool maintenance costs, and lowering the barrier to entry.
[0101] The verification method of this application embodiment is applied to the functional verification scenario of SOC, which can improve the compilation efficiency of SOC and save server, EMU or FPGA resources. It is applicable to a variety of verification platforms such as VCS simulation platform, EMU simulation platform, FPGA prototype verification, etc.
[0102] The verification method of this application embodiment is applied to an electronic device. The aforementioned electronic device can be at least one of a PC (Personal Computer) terminal device, a mobile / embedded device, and a server-side device. Among them, the PC terminal device can include, but is not limited to, desktop computers, laptops, and tablet computers, and is mainly used for verifying requirement configuration, tool parameter settings, verification result viewing, and debugging.
[0103] The aforementioned server-side equipment may include, but is not limited to, at least one of a simulation server, a hardware emulator (EMU device), and an FPGA prototype verification board.
[0104] The aforementioned simulation server refers to a rack-mounted server configured with a high-performance CPU and large memory, used to run software simulation tools such as VCS to handle the compilation and simulation tasks of large-scale SOC designs.
[0105] Hardware emulators (EMU devices) are dedicated hardware-accelerated verification devices that support rapid simulation of SOC designs with billions of gates.
[0106] An FPGA prototype verification board is a development board equipped with a high-capacity FPGA chip, used to realize chip prototypes and carry out hardware-level functional verification and software debugging.
[0107] The aforementioned mobile / embedded devices may include, but are not limited to, smartphones, smartwatches, and in-vehicle terminals, which can be used as debugging terminals during the verification process or as testing devices for the actual operation scenarios of SOC chips.
[0108] Figure 5 The diagram shown is a structural schematic of the electronic device 90 provided in an embodiment of this application.
[0109] like Figure 5As shown, the electronic device 90 includes one or more processors 91 for implementing the verification method described in the first or second aspect as above.
[0110] In some embodiments, electronic device 90 may include storage medium 99. For example, a computer-readable storage medium may store a program that can be invoked by processor 91, and may include non-volatile storage medium. In some embodiments, electronic device 90 may include memory 98 and interface 97. In some embodiments, electronic device 90 may also include other hardware depending on the specific application.
[0111] The computer-readable storage medium of this application embodiment stores a program thereon, which, when executed by processor 91, is used to implement the verification method described above.
[0112] This application provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the method described in any of the preceding claims.
[0113] This application also provides a computer program stored in a computer-readable storage medium, for example... Figure 5 The storage medium 99, and when the processor executes the computer program, causes the processor 91 to perform the method described above.
[0114] This application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented using any method or technology. Information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0115] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
[0116] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element qualified by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A verification method, characterized in that, include: Obtain the configured replacement requirements; the replacement requirements include indications of unnecessary subsystems to be replaced; According to the replacement requirements, search the project's source file list to obtain the content of the subsystem to be replaced; Based on the content of the subsystem to be replaced, all functional logic code and interconnection bus topology of the subsystem to be replaced are cleared, all ports of the subsystem to be replaced are assigned preset default values, and an empty module file is generated. Replace the paths in the original top-level file list that point to the original sub-file list of the subsystem to be replaced with the paths to the empty module files, and obtain and output the empty module file directory and the new top-level file list; the new top-level file list is used to start verification on the verification platform.
2. The verification method as described in claim 1, characterized in that, According to the replacement requirements, the process involves searching the project's source file list to obtain the content of the subsystem to be replaced, including: Based on the replacement requirements, a search is performed in the original top-level file list of the project to obtain the content of the subsystem to be replaced.
3. The verification method as described in claim 2, characterized in that, According to the replacement requirements, a search is performed in the original top-level file list of the project to obtain the content of the subsystem to be replaced, including: According to the replacement requirements, the list of sub-files corresponding to all subsystems to be replaced is searched from top to bottom from the original top-level file list of the project to obtain the content of the subsystems to be replaced.
4. The verification method according to any one of claims 1 to 3, characterized in that, The replacement requirements were obtained in the following manner: Based on the actual needs of this verification and debugging, the functional subsystems that need to be retained and the subsystems that need to be replaced are identified; the subsystems to be replaced include those that are not needed. The subsystems to be replaced are assembled according to the tool specifications to obtain the replacement requirements.
5. The verification method according to any one of claims 1 to 3, characterized in that, The replacement requirements are obtained in the following way: the names of the subsystems to be replaced are concatenated into the replacement requirements according to the tool parameter specifications; The method further includes: Obtain the list of source files for the specified verification platform used in this verification debugging or software development; After obtaining and outputting the empty module file directory and the new top-level file list, the method further includes: Output the empty module file directory and the new top-level file list to the designated verification platform, and output the project file in the target platform format that is compatible with the designated verification platform; the project file is used to start verification on the verification platform.
6. The verification method as described in claim 5, characterized in that, The designated verification platform includes the VCS simulation platform; correspondingly, the output project files adapted to the target platform format of the designated verification platform include: Output a new list of top-level files that conforms to the VCS syntax specification; this new list of top-level files is used to directly submit the VCS simulation platform to start compilation and simulation.
7. The verification method as described in claim 5, characterized in that, The specified verification platform includes an EMU simulation platform; correspondingly, the output project files adapted to the target platform format of the specified verification platform include: The empty module file directory and the new top-level file list are adapted to the requirements of the EMU simulation platform for source file path declaration and file organization format, and a first new project file that conforms to the EMU simulation platform import standard is output; the first new project file is used for direct import into the EMU simulation platform.
8. The verification method as described in claim 5, characterized in that, The designated verification platform includes an FPGA verification platform. Correspondingly, the project files outputting the target platform format are adapted to the designated verification platform, including: The empty module file directory and the new top-level file list are adapted to the requirements of the FPGA verification platform for file list format and source file path, and a second new project file that conforms to the FPGA project execution is output; the second new project file is used to directly import the FPGA project for comprehensive implementation.
9. A verification method, characterized in that, include: Based on the specified verification platform type corresponding to this verification, a verification tool matching the specified verification platform is invoked; the verification tool executes the verification method as described in any one of claims 1 to 8; the specified verification platform type includes at least one of VCS simulation platform, EMU simulation platform, and FPGA verification platform; Input the configured replacement requirements into the verification tool so that the verification tool executes the verification method as described in any one of claims 1 to 8 and outputs a project file in a target platform format that is compatible with the specified verification platform.
10. An electronic device, characterized in that, It includes one or more processors for implementing the verification method as described in any one of claims 1 to 8, or the verification method as described in claim 9.
