SOC verification method, system and device for automatically configuring chip IO
Through the SOC verification method of automatically configuring chip IO, using UVM and SystemVerilog languages, IO connections and configuration files are generated through python scripts, solving the inefficiency problem caused by IO port reusability in SOC-level verification, and achieving efficient IO configuration and Verification process.
Patent Information
- Application Number
- CN202411092663.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-12
AI Technical Summary
In the SOC-level verification of system-level chips, the reusability of the IO port makes it difficult for verification engineers to locate and configure the IO port, resulting in low verification efficiency, and the IO multiplexing relationship between different projects is complex, which wastes time on debugging configuration.
The automated configuration method based on UVM verification method and SystemVerilog language is adopted. IO multiplexing tables are read through python scripts, IO connection files and IO configuration files are generated, chip IO is automatically configured, and the connection and configuration process of IO modules are simplified.
It greatly improves the efficiency of SOC-level verification and the reusability of the verification system, optimizes the configuration process, so that when modifying IO modules or switching projects, you only need to load a new IO multiplexing table to regenerate the configuration file, reducing verification Workload.
Smart Images

Figure CN118940704A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of chip verification, and relates to a SOC verification method, system and device for automatically configuring chip IO. Background Art
[0002] System on Chip (SOC) integrates all the functions of a chip, which generally includes processor core, memory and various peripherals in automotive chips. Depending on the size, the chip has dozens or hundreds of input / output ports (IO), which are used for data exchange and communication between the chip and the outside. When performing SOC-level verification, the verification platform also needs to connect to the chip through IO, and then communicate with the modules inside the chip to verify their functions one by one.
[0003] The IO port has the feature of being reusable, that is, the same IO port can be used by both module 1 and module 2 inside the chip. At the same time, the signal group of a module can be used by both IO group 1 and IO group 2, which is mutual. During SOC-level verification, the verification engineer needs to select an IO group for the module to be tested inside the chip for communication by looking up the reuse table of the IO module, and at the same time, configure the registers of the corresponding IO to establish the connection relationship between the module to be tested and the IO. When the chip is large in scale, the number of IOs in a reuse table will be large, making it difficult to locate the desired IO port. The IO reuse relationship between different projects is also different, causing verification engineers to waste energy on debugging and configuring IO during SOC-level verification, resulting in a technical problem of low verification efficiency. Summary of the invention
[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a SOC verification method for automatically configuring chip IO, a SOC verification system for automatically configuring chip IO, a computer device and a computer-readable storage medium, which can effectively improve the verification efficiency of SOC-level verification, enhance the reusability of verification environment and test cases, and standardize the chip IO configuration process.
[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:
[0006] On the one hand, a SOC verification method for automatically configuring chip IO is provided, which is applied to a verification system built based on UVM verification methodology and SystemVerilog language. The verification system creates a platform environment component, an environment configuration component, an IO connection signal and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring IO module registers. The platform environment component contains various sub-module proxy components corresponding to each sub-module in a SOC chip to be tested. The environment configuration component is used to configure the environment of the verification system. The IO connection signal is used as an intermediate signal for connecting the SOC chip to be tested with the verification system. The IO connection file is used to connect the SOC chip to be tested and the verification system. The verification system uses a python script to read the IO reuse table of the SOC chip to be tested and automatically generates IO connection files and IO configuration files of each sub-module. The IO configuration file is used to configure the IO ports required by the sub-modules.
[0007] The SOC verification method includes the following steps:
[0008] After defining the input and output connection signals for the SOC chip to be tested in the top-level simulation file of the verification system, initialize the verification system;
[0009] Use Python script to read the IO reuse table of the SOC chip to be tested and identify all the sub-module names in the IO reuse table. De-duplicate the IO ports according to the sub-module names to obtain the IO port lists. Use the IO port lists to generate the IO connection files and IO configuration files of each sub-module.
[0010] Use the `include syntax to put the IO connection file into the top-level simulation file;
[0011] Use the `include syntax to put the IO configuration file into the test case of the verification system;
[0012] Start the test case of the verification system to perform SOC-level verification simulation on the SOC chip to be tested, compare and analyze the simulation results to complete the verification.
[0013] On the other hand, a SOC verification system for automatically configuring chip IO is also provided. The SOC verification system is built based on UVM verification methodology and SystemVerilog language. The SOC verification system creates a platform environment component, an environment configuration component, an IO connection signal and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring IO module registers. The platform environment component contains various sub-module proxy components corresponding to each sub-module in the SOC chip to be tested. The environment configuration component is used to configure the environment of the SOC verification system. The IO connection signal serves as an intermediate signal for connecting the SOC chip to be tested with the SOC verification system. The IO connection file is used to connect the SOC chip to be tested and the SOC verification system. The SOC verification system uses a python script to read the IO reuse table of the SOC chip to be tested and identify all sub-module names in the IO reuse table. IO port deduplication is performed according to the sub-module name to obtain a list of each IO port. The IO connection file and IO configuration file of each sub-module are generated using the IO port list. The IO configuration file is used to configure the IO port required by the sub-module.
[0014] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the SOC verification method for automatically configuring the chip IO are implemented.
[0015] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the SOC verification method for automatically configuring the chip IO are implemented.
[0016] One of the above technical solutions has the following advantages and beneficial effects:
[0017] The SOC verification method, system and device for automatically configuring chip IO above build a verification system based on UVM verification methodology and SystemVerilog language, create corresponding platform environment components, environment configuration components, IO connection signals and IO connection files based on the test case base class, the test case base class contains IO configuration functions, and the platform environment component contains various sub-module proxy components, which makes the structure of the verification system scientific and reasonable in terms of function, and can generate randomized incentives for verification. By reading the IO reuse table through an automated python script, corresponding IO connection files and IO configuration files are generated for each sub-module. After the test case is started, the required IO port registers will be automatically configured to complete the connection between the verification system and the SOC chip to be tested, realize the function of automatic IO configuration, and optimize and unify the configuration process. When the IO module is modified or when entering different SOC projects, it only needs to load the new IO reuse table and start the python script to regenerate the IO connection file and IO configuration file, which greatly improves the SOC level verification efficiency and the reusability of the SOC verification system. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. 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.
[0019] Figure 1 It is a schematic diagram of IO multiplexing in the system-level chip;
[0020] Figure 2 A schematic flow chart of a SOC verification method for automatically configuring chip IO in one embodiment;
[0021] Figure 3 A schematic diagram of a verification system for an SOC verification method for automatically configuring chip IO in an embodiment;
[0022] Figure 4 Design a flow chart for a SOC-level verification method for automated IO configuration in one embodiment;
[0023] Figure 5 A schematic diagram of the composition of a SOC verification system for automatically configuring chip IO in an embodiment. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0025] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0026] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.
[0027] First, it should be briefly explained that the verification system and test cases built in the embodiments of the present invention use the UVM verification methodology. The key features of the UVM verification methodology are reusable components and standardized hierarchical structures on the one hand, and its SystemVerilog class library on the other hand. The UVM verification methodology is one of the mainstream chip verification technologies.
[0028] like Figure 1 As shown in the figure, it is a schematic diagram of IO multiplexing in the system-level chip (also known as SOC chip). All sub-modules of the system-level chip that can exchange data with the outside are connected to specific IO ports through the IO multiplexing module. A sub-module can only be assigned to several specific IO ports; an IO port can be used by several specific sub-modules, and which sub-module uses it is subject to the selection and allocation of the IO multiplexing module. It can be understood that the above IO allocation multiplexing relationship is reflected in the IO multiplexing table. The verification engineer determines which group of IO ports the sub-module to be verified uses by querying the table.
[0029] In one embodiment, Figure 2As shown, a SOC verification method for automatically configuring chip IO is provided, which is applied to a verification system built based on UVM verification methodology and SystemVerilog language. The verification system creates a platform environment component, an environment configuration component, an IO connection signal and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring IO module registers, the platform environment component contains various sub-module proxy components corresponding to each sub-module in the SOC chip to be tested, the environment configuration component is used to configure the environment of the verification system, the IO connection signal is used as an intermediate signal for connecting the SOC chip to be tested with the verification system, the IO connection file is used to connect the SOC chip to be tested and the verification system, the verification system uses a python script to read the IO reuse table of the SOC chip to be tested and automatically generates IO connection files and IO configuration files of each sub-module, and the IO configuration file is used to configure the IO ports required by the sub-modules.
[0030] The SOC verification method may include the following processing steps S10 to S18:
[0031] S10, after defining input and output connection signals for the SOC chip to be tested in the top-level simulation file of the verification system, the verification system is initialized;
[0032] S12, using a python script to read the IO reuse table of the SOC chip to be tested and identify all the sub-module names in the IO reuse table, de-duplicating the IO ports according to the sub-module names to obtain a list of each IO port, and using each IO port list to generate an IO connection file and an IO configuration file for each sub-module;
[0033] S14, put the IO connection file into the top-level simulation file through the `include syntax;
[0034] S16, put the IO configuration file into the test case of the verification system through the `include syntax;
[0035] S18, starting the test case of the verification system to perform SOC-level verification simulation on the SOC chip to be tested, performing data comparison and result analysis on the simulation results, and completing the verification.
[0036] The SOC verification method for automatically configuring chip IO builds a verification system based on UVM verification methodology and SystemVerilog language, creates corresponding platform environment components, environment configuration components, IO connection signals and IO connection files based on the test case base class, contains IO configuration functions in the test case base class, and contains various sub-module proxy components in the platform environment component, which makes the structure of the verification system scientific and reasonable in terms of function, and can generate randomized incentives for verification. By reading the IO reuse table through an automated python script, corresponding IO connection files and IO configuration files are generated for each sub-module. After the test case is started, the required IO port registers will be automatically configured to complete the connection between the verification system and the SOC chip to be tested, realize the function of automatic IO configuration, and optimize and unify the configuration process. When the IO module is modified or when entering different SOC projects, you only need to load the new IO reuse table and start the python script to regenerate the IO connection file and IO configuration file, which greatly improves the SOC level verification efficiency and the reusability of the SOC verification system.
[0037] It can be understood that a UVM-based verification system is first provided, such as Figure 3 As shown, it includes a top-level (simulation) file based on UVM verification methodology, which is used to initialize the verification system and start the test case. The top-level simulation file includes a platform environment component and an environment configuration component, IO connection signals, and IO connection files created based on the test case base class. The test case base class has functions for configuring IO module registers; the platform environment component includes various sub-module proxy components inside the chip; the environment configuration component is used to configure the environment of the verification system; and the IO connection file is used to connect the SOC chip to be tested and the verification system.
[0038] Among them, the IO connection signal in the top-level simulation file corresponds one-to-one to the connection signal in the SOC chip. It is the intermediate signal connecting the verification system and the SOC chip. It is connected to the IO port of the SOC chip and the virtual interface of each sub-module proxy component of the verification system; the IO connection file connects the IO port of the SOC chip, the IO connection signal and the virtual interface of each sub-module proxy component of the verification system. The IO connection file is automatically generated using a python script, which can effectively reduce the workload of verification.
[0039] It can be understood that using IO connection signals as intermediate signals can effectively separate the SOC chip to be tested and the verification system. The benefit is that when the project is transplanted or the IO reuse relationship of the SOC chip to be tested changes, the connection relationship between the verification system and the SOC chip to be tested can be easily and quickly updated through automated python scripts. At the same time, when each verification engineer is responsible for the SOC-level verification of his own sub-module, he does not need to understand the IO allocation of the SOC chip, but only needs to select the IO connection signal, which reduces the proficiency requirements of the SOC-level chip.
[0040] Among them, there is a function for configuring the IO module register in the test case base class, which can be recorded as the IO configuration function. By passing the IO port number, input / output selection switch and function parameters into the IO configuration function, it is used to operate the processor bus in the SOC chip under test, access the registers for configuring the corresponding IO, and configure the IO function. Specifically, the IO configuration function can be used by test cases, and its role is to integrate the configuration process of the IO port. By passing the IO port number, input / output selection switch and function parameters into the IO configuration function, the IO configuration function will operate the processor bus in the SOC chip under test, access the specified registers for configuring the IO, and configure the function of the specified IO port.
[0041] Among them, the platform environment components include various sub-module proxy components inside the chip. These proxy components are used to generate stimuli for the corresponding sub-modules, exchange data with the sub-modules through corresponding IO connection relationships, and monitor the protocol timing of data exchange.
[0042] This technology uses Python scripts to automatically generate IO connection files and IO configuration files for each submodule. Figure 4 The SOC level verification method design flow chart of the automated IO configuration is shown in the figure. After the top-level simulation file and the components of the verification system are created, the test cases for the SOC level verification of each sub-module can be constructed. Figure 3 It can be understood that different test cases will operate different sub-module proxy components to achieve functional verification of different sub-modules. In the test case, the IO configuration process generated by the automated python script is included, which is reflected in the form of input and output configuration files to configure the IO ports required by the sub-module to be tested.
[0043] It can be understood that the Python script is used to read the IO multiplexing table of the IO module, identify all the sub-module names in the IO multiplexing table, and divide all the IO ports into different IO port lists according to the sub-module names. Figure 1It can be understood that the signals of a sub-module can be used on multiple IO ports. Therefore, it is necessary to filter out the duplicate IO ports in each IO port list to obtain a set of non-duplicate IO ports sorted by sub-module name. Then, the processed IO port lists are used to generate different IO connection files and IO configuration files through a predefined template. It can be understood that each sub-module will generate an independent IO connection file and an IO configuration file.
[0044] The role of the IO connection file is to connect the corresponding IO connection signals with the interface signals of the sub-module according to the numbers of the IO ports selected by the Python script. The IO connection file is directly used in the top-level simulation file. The IO configuration file uses several IO configuration functions in the test case base classes to write the parameters that need to be configured for the IO group captured by the Python script into the corresponding registers inside the chip. This IO configuration file will be directly used in each test case through SystemVerilog syntax. The IO connection file is placed in the top-level simulation file through SystemVerilog syntax. The code example can be as follows:
[0045] module top;
[0046] ......<Other code>
[0047] `include <IO connection file>
[0048] ......<Other code>
[0049] endmodule
[0050] It can be understood that `include is a fixed syntax, and its role here is to apply all the content in the IO connection file to the corresponding position in the top-level simulation file. It can be understood that the method of putting the IO configuration file into the test case is the same as that of placing the IO connection file in the top-level simulation file through SystemVerilog syntax.
[0051] After the automated Python script finishes running, start the test case. In the test case, all the content in the IO configuration file will be executed to configure the IO registers, and data exchange and result comparison will be carried out with the corresponding sub-module through the sub-module proxy component to be tested and the IO connection.
[0052] Specifically, after configuring the chip IO, updating the verification system, and test cases through an automated Python script, the test cases can be started and the simulation can be run. All the contents in the IO configuration file will be executed in the test cases, the IO registers will be configured, data exchange will be performed with the sub-module through the sub-module proxy component under test and the IO connection, and the sub-module will be functionally verified on the SOC chip under test according to the existing verification idea of the sub-module. The simulation results will be subjected to existing data comparison and result analysis to complete the verification.
[0053] In one embodiment, further, macro isolation is used for the connection of the sub-module in the IO connection file.
[0054] It can be understood that in the IO connection file, in order to avoid the same IO port being used when different sub-modules are running simultaneously, macro isolation is used for the connection of each sub-module. For example, the code:
[0055] `define <Sub-module x connection>
[0056] / / Specific connection logic (i.e., the pre-set template) ...
[0058] `endif
[0059] It can be understood that `define and `endif are SystemVerilog syntax, which means that when the <Sub-module x connection> macro is defined, the code between the two will be effective. Further, when simulating sub-module 1, it is necessary to define the <Sub-module 1 connection> macro in the simulation instruction to make the IO connection relationship effective, so that the data exchange path between the SOC chip under test and the verification system can be打通, and at the same time, the IO connections of other sub-modules will not be connected, avoiding interference from the verification components of other sub-modules.
[0060] In one embodiment, in the process of generating the IO connection file and IO configuration file of each sub-module using the list of each IO port, the pre-set template used when generating the IO connection file of each sub-module is:
[0061] logic <Connection signal>;
[0062] assign <Connection signal> = <IO interface>; (if the IO connection signal is an output signal);
[0063] Or assign <IO interface> = <Connection signal>; (if the IO connection signal is an input signal);
[0064] Among them, logic is the variable type in SystemVerilog syntax; assign is the "connection" in SystemVerilog syntax.
[0065] The preset template used when generating the IO configuration files for each sub-module is as follows:
[0066] io_config(<IO interface number>, <input / output selection>, <function parameter>);
[0067] Among them, io_config() is the said IO configuration function.
[0068] Specifically, for each IO connection signal, the preset template in the IO connection file is as follows:
[0069] logic <connection signal>;
[0070] assign <connection signal> = <IO interface>; (if this IO connection signal is an output signal);
[0071] Or assign <IO interface> = <connection signal>; (if this IO connection signal is an input signal).
[0072] Among them, logic is the variable type in the SystemVerilog syntax, followed by the signal name; assign is the "connection" in the SystemVerilog syntax, which gives the change of the signal on the right side of the equal sign to the signal on the left side of the equal sign. It can be understood that all the IO connection signals in the IO connection file apply this template.
[0073] For each IO interface, the preset template in the IO configuration file is as follows:
[0074] io_config(<IO interface number>, <input / output selection>, <function parameter>);
[0075] Among them, io_config() is the aforementioned IO configuration function. By passing the three variables <IO interface number>, <input / output selection>, and <function parameter> into the IO configuration function, the IO function can be configured. Among them, the <IO interface number> and <input / output selection> are automatically captured and generated by the python script, and the <function parameter> is preset to 1, indicating that no other functions are required.
[0076] It should be understood that although Figure 2 the various steps in are shown sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. And Figure 2At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0077] In one embodiment, Figure 5 As shown, a SOC verification system 100 for automatically configuring chip IO is provided. The SOC verification system is built based on UVM verification methodology and SystemVerilog language. The SOC verification system creates a platform environment component, an environment configuration component, an IO connection signal and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring IO module registers. The platform environment component contains various sub-module proxy components corresponding to each sub-module in the SOC chip to be tested. The environment configuration component is used to configure the environment of the SOC verification system. The IO connection signal is used as an intermediate signal for connecting the SOC chip to be tested with the SOC verification system. The IO connection file is used to connect the SOC chip to be tested and the SOC verification system. The SOC verification system uses a python script to read the IO reuse table of the SOC chip to be tested and identify all sub-module names in the IO reuse table. IO port deduplication is performed according to the sub-module name to obtain a list of each IO port. The IO connection file and IO configuration file of each sub-module are generated using the IO port list. The IO configuration file is used to configure the IO port required by the sub-module.
[0078] The SOC verification system 100 for automatically configuring chip IO is constructed by building a verification system based on UVM verification methodology and SystemVerilog language, creating corresponding platform environment components, environment configuration components, IO connection signals and IO connection files based on the test case base class, the test case base class contains IO configuration functions, and the platform environment component contains various sub-module proxy components, which makes the structure of the verification system scientific and reasonable in terms of function, and can generate randomized incentives for verification. By reading the IO reuse table through an automated python script, corresponding IO connection files and IO configuration files are generated for each sub-module. After the test case is started, the required IO port registers will be automatically configured, and the connection between the verification system and the SOC chip to be tested will be completed, realizing the function of automated IO configuration, and optimizing and unifying the configuration process. When the IO module is modified or when entering different SOC projects, it only needs to load a new IO reuse table and start the python script to regenerate the IO connection file and IO configuration file, which greatly improves the SOC level verification efficiency and the reusability of the SOC verification system.
[0079] In one embodiment, in the process of generating the IO connection files and IO configuration files for each sub-module using the list of each IO port, the preset template used for generating the IO connection files for each sub-module is as follows:
[0080] logic <connection signal>;
[0081] assign <connection signal> = <IO interface>; (if the IO connection signal is an output signal);
[0082] Or assign <IO interface> = <connection signal>; (if the IO connection signal is an input signal);
[0083] Wherein, logic is a variable type in the SystemVerilog syntax; assign is a "connection" in the SystemVerilog syntax;
[0084] The preset template used for generating the IO configuration files for each sub-module is as follows:
[0085] io_config(<IO interface number>, <input / output selection>, <function parameter>);
[0086] Wherein, io_config() is the IO configuration function.
[0087] In one embodiment, macro isolation is adopted for the connection of sub-modules in the IO connection file.
[0088] For the specific limitations of the SOC verification system 100 for automatically configuring the IO of the chip, reference can be made to the corresponding limitations of the SOC verification method for automatically configuring the IO of the chip in the above text, which will not be elaborated here. Each module in the above SOC verification system 100 for automatically configuring the IO of the chip can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules can be embedded in or independent of a device with data processing functions in the form of hardware, or stored in the memory of the aforementioned device in the form of software, so as to facilitate the processor to call and execute the operations corresponding to each of the above modules. The aforementioned device can be, but is not limited to, various types of verification computer devices existing in the art.
[0089] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following processing steps when executing the computer program: after defining input and output connection signals for a SOC chip to be tested in a top-level simulation file of a verification system, the verification system is initialized; a python script is used to read an IO reuse table of the SOC chip to be tested and identify all sub-module names in the IO reuse table, IO port deduplication is performed according to the sub-module names to obtain a list of each IO port, and an IO connection file and an IO configuration file of each sub-module are generated using each IO port list; the IO connection file is placed in the top-level simulation file through the `include syntax; the IO configuration file is placed in a test case of the verification system through the `include syntax; the test case of the verification system is started to perform SOC-level verification simulation on the SOC chip to be tested, and data comparison and result analysis are performed on the simulation results to complete the verification.
[0090] In one embodiment, when the processor executes the computer program, the added steps or sub-steps in each embodiment of the above-mentioned SOC verification method for automatically configuring the chip IO can also be implemented.
[0091] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: after defining input and output connection signals for a SOC chip to be tested in a top-level simulation file of a verification system, the verification system is initialized; a python script is used to read an IO reuse table of the SOC chip to be tested and identify all sub-module names in the IO reuse table, IO port deduplication is performed according to the sub-module names to obtain a list of each IO port, and an IO connection file and an IO configuration file of each sub-module are generated using each IO port list; the IO connection file is placed in the top-level simulation file through the `include syntax; the IO configuration file is placed in a test case of the verification system through the `include syntax; the test case of the verification system is started to perform SOC-level verification simulation on the SOC chip to be tested, and data comparison and result analysis are performed on the simulation results to complete the verification.
[0092] In one embodiment, when the computer program is executed by a processor, the added steps or sub-steps in each embodiment of the above-mentioned SOC verification method for automatically configuring the chip IO can also be implemented.
[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).
[0094] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0095] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.
Claims
1. A SOC verification method for automatically configuring chip IO, characterized in that: Applied to a verification system built based on the UVM verification methodology and SystemVerilog language. The verification system creates a platform environment component, an environment configuration component, IO connection signals, and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring the registers of the IO module. The platform environment component contains various sub-module proxy components corresponding to each sub-module within the SOC chip under test. The environment configuration component is used to configure the environment of the verification system. The IO connection signals serve as intermediate signals for connecting the SOC chip under test and the verification system. The IO connection file is used to connect the SOC chip under test and the verification system. The verification system uses a Python script to read the IO multiplexing table of the SOC chip under test and automatically generate the IO connection files and IO configuration files for each sub-module. The IO configuration file is used to configure the IO ports required by the sub-modules; The SOC verification method includes the steps: After defining the input and output connection signals for the SOC chip under test in the top-level simulation file of the verification system, initialize the verification system; Use a Python script to read the IO multiplexing table of the SOC chip under test and identify all the sub-module names in the IO multiplexing table. Remove duplicates from the IO ports according to the sub-module names to obtain a list of each IO port. Use the list of each IO port to generate the IO connection files and IO configuration files for each sub-module; Put the IO connection file into the top-level simulation file through the `include syntax; Put the IO configuration file into the test case of the verification system through the `include syntax; Start the test case of the verification system to perform SOC-level verification simulation on the SOC chip under test, compare the simulation results for data and analyze the results to complete the verification.
2. The SOC verification method for the automatic configuration chip IO according to claim 1, characterized in that: During the process of using the list of each IO port to generate the IO connection files and IO configuration files for each sub-module, the preset template used for generating the IO connection files for each sub-module is: logic <connection signal>; assign <connection signal> = <IO interface>; (if the IO connection signal is an output signal); Or assign <IO interface> = <connection signal>; (if the IO connection signal is an input signal); Wherein, logic is a variable type in the SystemVerilog syntax; assign is the "connection" in the SystemVerilog syntax; The preset template used for generating the IO configuration files for each sub-module is: io_config(<IO interface number>, <input / output selection>, <function parameter>); Wherein, io_config() is the IO configuration function.
3. The SOC verification method of the automatic configuration chip IO according to claim 1 or 2, characterized in that: Macro isolation is used for the connection of sub-modules in the IO connection file.
4. A SOC verification system for automatically configuring chip IO, characterized in that: The SOC verification system is built based on the UVM verification methodology and the SystemVerilog language. The SOC verification system creates a platform environment component, an environment configuration component, IO connection signals, and an IO connection file based on a test case base class. The test case base class contains an IO configuration function for configuring the registers of the IO module. The platform environment component contains various sub-module proxy components corresponding to each sub-module within the SOC chip under test. The environment configuration component is used to configure the environment of the SOC verification system. The IO connection signals serve as intermediate signals for connecting the SOC chip under test and the SOC verification system. The IO connection file is used to connect the SOC chip under test and the SOC verification system. The SOC verification system uses a Python script to read the IO multiplexing table of the SOC chip under test and identify all the sub-module names in the IO multiplexing table. It performs IO port de-duplication based on the sub-module names to obtain each IO port list, and generates an IO connection file and an IO configuration file for each sub-module using each IO port list. The IO configuration file is used to configure the IO ports required by the sub-module.
5. The SOC verification system for automatically configuring chip IO according to claim 4, characterized in that: During the process of generating the IO connection file and the IO configuration file for each sub-module using each IO port list, the pre-set template used for generating the IO connection file for each sub-module is: logic <connection signal>; assign <connection signal> = <IO interface>; (if the IO connection signal is an output signal); or assign <IO interface> = <connection signal>; (if the IO connection signal is an input signal); Among them, logic is the variable type in the SystemVerilog syntax; assign is the "connection" in the SystemVerilog syntax; The pre-set template used for generating the IO configuration file for each sub-module is: io_config(<IO interface number>, <input / output selection>, <function parameter>); Among them, io_config() is the IO configuration function.
6. The SOC verification system for automatically configuring chip IO according to claim 4 or 5, characterized in that: Macro isolation is used for the connection of sub-modules in the IO connection file.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the SOC verification method for automatically configuring the chip IO according to any one of claims 1 to 3.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the SOC verification method for automatically configuring the chip IO according to any one of claims 1 to 3.
Citation Information
Cited By
Reusable SOC system verification system, construction method thereof and medium
CN119149325A
