Bus interconnection verification method and device, electronic equipment, storage medium and program
The method of generating a universal UVM verification platform and automatically generating configuration files through automated tools solves the problem of flexibility and low efficiency of the bus interconnection verification environment, enabling rapid adaptation to design changes and efficient verification.
Patent Information
- Application Number
- CN202410697422.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
Existing bus interconnection verification methods have problems such as poor flexibility of the verification environment and low efficiency of the verification process. Especially when functional requirements and design solutions change frequently in the early stages of chip design, it is difficult to quickly adapt to changes in the bus interconnection architecture.
Generate a universal UVM verification platform through automated tools, integrate verification tools and verification components suitable for bus interconnection, automatically read bus interface configuration parameter information, automatically generate platform environment configuration files, and send input transactions and data through the bus interconnection UVM verification platform. Obtain output transactions for comparison and verification to achieve rapid environment configuration and efficient verification.
It improves the flexibility and verification efficiency of the bus interconnection verification environment, simplifies the parameter configuration process, can quickly adapt to changes in the bus connection structure, and improves the efficiency of the verification process.
Smart Images

Figure CN118586052A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of bus interconnection testing, and in particular to a bus interconnection verification method, device, electronic device, storage medium and program product. Background Art
[0002] As the integration of chips continues to increase, the number of devices connected to the bus is increasing, and the complexity of the bus interconnection matrix has increased significantly. As a bridge for communication between modules on the chip, the verification of the function and performance of the bus interconnection is the key to SOC (System on Chip, also known as System on Chip) development. However, in the early stages of chip design, functional requirements and design solutions often change. With the iteration of the code, the interconnection architecture needs to be adjusted accordingly. The number of devices supported by the bus, the interface clock frequency, the address bit width, the data bit width, etc. may all change. Therefore, the verification environment of the bus interconnection must be highly flexible and able to adapt to changes in the design in a timely manner.
[0003] At present, in an existing bus interconnection verification method, the host transaction data is sent to the slave sequence (stimulus sequence), thereby constraining the slave sequence to generate transaction data, thereby realizing data interaction between the host and the slave, and comparing the results in the scoreboard (scoreboard) to realize the verification of the bus protocol. Another bus interconnection verification method uses the powerful element indexing and search functions of the queue to reduce the complexity of the data comparison process, and at the same time places the AXI read and write comparison in the monitor, omitting the development of the reference model and the scoreboard. Another bus interconnection verification method uses a script to configure the attribute parameters of the AXI (Advanced eXtensible Interface, a bus protocol) slave device, including bus data bit width, address bit width, ID bit width, and read and write attributes.
[0004] The inventor found that the prior art has the following defects in the process of realizing the present invention: although the verification method of the above-mentioned first bus interconnection realizes the data interaction between the main machine and the slave machine through Sequence and realizes automatic comparison in the scoreboard, it only relies on UVM verification methodology and can not meet the requirement of the flexibility of the verification environment. Once the function of the master / slave machine changes, it is necessary to make complicated modifications to Sequence, and Sequence, as the most basic sequence for generating the master / slave data interaction, should meet the versatility. Although the verification method of the above-mentioned second bus interconnection utilizes queue and associative array, by obtaining the signals such as address, bit width, ID and gating, the read-write data is compared in detail, but the flexibility problem of the verification environment is not solved yet, and AXI_RD_WR_CHECKER (AXI protocol read-write checker) is integrated into the monitor of the main device. In the bus interconnection environment with more main devices, the configuration information and function of each main device are inconsistent, which makes the development work of the monitor complicated instead. The comparison process of the third bus interconnection verification method mentioned above is implemented in the sequence, and can only perform simple data comparison, and only verify the interaction between the slave device and the AXI bus, and is not suitable for the host-to-slave interconnection path verification of the bus interconnection.
[0005] In summary, existing bus interconnection verification methods usually have the following problems:
[0006] (1) The verification environment configuration parameters of bus interconnection are numerous and often change. Taking NIC (network interconnect) bus interconnection as an example, the master / slave device may support AXI / AHB (Advanced High-performance Bus) / APB (Advanced Peripheral Bus) protocols. Each protocol has corresponding configuration parameters. Once the device function changes, the configuration parameter modification process is complicated. The configuration parameters and environment components in the verification environment should be relatively independent to improve the flexibility of the environment.
[0007] (2) Due to the large number of master / slave devices, the interconnection topology and access relationship verification process are complex. Different types of bus devices often need to access different address spaces and have different requirements for the bus clock frequency. Figure 1 The figure shows a common cross-type bus interconnection structure diagram, which generally adopts a topology scheme in which multiple bus bridges are connected. In the early stage of design, the topology structure and access relationship may change, which increases the difficulty of verification. Summary of the invention
[0008] The embodiments of the present invention provide a bus interconnection verification method, device, electronic device, storage medium and program product, which can improve the flexibility of the bus interconnection verification environment and the bus interconnection verification efficiency.
[0009] According to one aspect of the present invention, there is provided a bus interconnection verification method, comprising:
[0010] Generate a universal UVM verification platform through an automated tool, integrate a verification tool and a verification component suitable for bus interconnection into the universal UVM verification platform, and complete the construction of the bus interconnection UVM verification platform;
[0011] Automatically read bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generate a platform environment configuration file, integrate the platform environment configuration file into the bus interconnection UVM verification platform, and complete the environment configuration of the bus interconnection UVM verification platform;
[0012] Sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified;
[0013] The input transaction and the output transaction are compared and verified by the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
[0014] According to another aspect of the present invention, there is provided a bus interconnection verification device, characterized in that it comprises:
[0015] A verification platform building module generates a general UVM verification platform through an automated tool, integrates a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completes the building of the bus interconnection UVM verification platform;
[0016] An environment configuration module is used to automatically read the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generate a platform environment configuration file, integrate the platform environment configuration file into the bus interconnection UVM verification platform, and complete the environment configuration of the bus interconnection UVM verification platform;
[0017] A transaction generation and receiving module, used for sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified;
[0018] The transaction comparison and verification module is used to compare and verify the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain the verification result of the bus connection structure to be verified.
[0019] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0020] at least one processor; and
[0021] a memory communicatively connected to the at least one processor; wherein,
[0022] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the bus interconnection verification method described in any embodiment of the present invention.
[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the bus interconnection verification method described in any embodiment of the present invention when executed.
[0024] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the bus interconnection verification method according to any embodiment of the present invention is implemented.
[0025] The embodiment of the present invention generates a general UVM verification platform by an automation tool, integrates a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completes the construction of the bus interconnection UVM verification platform. Further, the bus interface configuration parameter information of the bus connection structure to be verified is automatically read by an automation script, and a platform environment configuration file is automatically generated, the platform environment configuration file is integrated into the bus interconnection UVM verification platform, and the bus interconnection UVM verification platform completes the environment configuration. Correspondingly, after completing the environment configuration, the bus connection structure to be verified can be sent an input transaction through the bus interconnection UVM verification platform, and the output transaction of the bus connection structure to be verified is obtained, thereby the input transaction and the output transaction are compared and verified by the bus interconnection UVM verification platform, and the verification result of the bus connection structure to be verified is obtained. The above technical scheme can solve the problems that the verification environment flexibility of the existing bus interconnection verification method is poor and the verification process efficiency is low, and the flexibility of the bus interconnection verification environment and the verification efficiency of the bus interconnection can be improved.
[0026] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 It is a schematic diagram of a cross-type bus interconnection structure in the prior art;
[0029] Figure 2 is a flow chart of a bus interconnection verification method provided by Embodiment 1 of the present invention;
[0030] Figure 3 It is a structural schematic diagram of a bus interconnection UVM verification platform provided by Embodiment 1 of the present invention;
[0031] Figure 4 It is a schematic diagram of the hierarchical structure of an env layer configuration file provided in the first embodiment of the present invention;
[0032] Figure 5 is a schematic diagram of a bus interconnection register model structure hierarchy provided by the first embodiment of the present invention;
[0033] Figure 6 is a flow chart of a bus interconnection verification method provided by Embodiment 2 of the present invention;
[0034] Figure 7 is a flow chart of a bus interconnection verification method provided by Embodiment 3 of the present invention;
[0035] Figure 8 is a schematic diagram of a random processing flow of input transactions provided by Embodiment 3 of the present invention;
[0036] Fig. 9 is a flow chart of a bus interconnection verification method provided by Embodiment 4 of the present invention;
[0037] Fig.10 is a schematic diagram of a scoreboard structure provided by Embodiment 4 of the present invention;
[0038] Fig.11 is a schematic diagram of a bus interconnection verification device provided by Embodiment 5 of the present invention;
[0039] Fig.12 A schematic diagram of the structure of an electronic device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatus.
[0042] Embodiment 1
[0043] Figure 2 This is a flow chart of a bus interconnection verification method provided by the first embodiment of the present invention. This embodiment is applicable to the case where a bus interconnection UVM verification platform is used to efficiently and flexibly verify the bus interconnection. The method can be executed by a bus interconnection verification device, which can be implemented by software and / or hardware, and can generally be integrated in an electronic device. The electronic device can be a terminal device or a server device. As long as the bus interconnection verification method can be executed based on the verification platform, the embodiment of the present invention does not limit the specific device type of the electronic device. Accordingly, Figure 2 As shown, the method includes the following operations:
[0044] S110, generating a general UVM verification platform through an automation tool, integrating a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completing the construction of the bus interconnection UVM verification platform.
[0045] In an embodiment of the present invention, the automation tool provided by any type of chip manufacturer can be adopted to generate a universal UVM (Universal Verification Methodology, a standard methodology for hardware verification) verification platform, and integrated verification tool in the universal UVM verification platform generated. Exemplary, AMBA (Advanced Microcontroller Bus Architecture, advanced microcontroller bus architecture) verification IP (Verification Intellectual Properties, Verification IP) can be integrated in the universal UVM verification platform built. In order to realize the function of platform bus interconnection verification, the verification component applicable to bus interconnection can also be integrated in the universal UVM verification platform. After completing the integrated operation of the verification tool and the verification component applicable to bus interconnection in the universal UVM verification platform, the building process of the bus interconnection UVM verification platform can be completed.
[0046] In an optional embodiment of the present invention, a universal UVM verification platform is generated by an automation tool, including: building a verification case layer, a top connection layer and a verification environment layer of the bus interconnection UVM verification platform by the automation tool; wherein the verification case layer is used to construct a stimulus sequence sequence to simulate a simulation test scenario of the bus connection structure to be verified; the top connection layer is used to instantiate the bus connection structure to be verified, and provide a protocol interface to connect the bus connection structure to be verified and the verification environment layer; the verification environment layer is used to integrate the subsystem environment of the verification tool and the verification component of the bus connection structure to be verified.
[0047] The bus connection structure to be verified is also the bus connection structure that needs to be interconnected and verified. Optionally, the bus connection structure to be verified may be a SOC bus interconnection structure to be verified.
[0048] The universal UVM verification platform generated by the automation tool generally only includes the verification environment layer, the top connection layer and the verification use case layer. The various configuration files and special verification components integrated into the universal UVM verification platform need to be developed by the verification personnel for different verification objects. For example, when the verification object adopts a bus interconnection structure, it is necessary to adapt the verification environment layer, the top connection layer and the verification use case layer of the universal UVM verification platform to the bus interconnection structure.
[0049] Figure 3 1 is a schematic diagram of the structure of a bus interconnection UVM verification platform provided by the first embodiment of the present invention. In a specific example, AMBA verification IP is used as a verification tool for example. Figure 3As shown in the figure, the structure of the bus interconnection UVM verification platform mainly includes the verification case layer (test_case), the top connection layer (top_tb) and the verification environment layer (env), where:
[0050] The test_case layer is mainly used to construct specific test cases. In this layer, you can design and construct sequences to simulate the test scenarios of the bus connection structure to be verified. In addition, this layer can be used through the virtual_sequencer (virtual sequencer, i.e. Figure 3 The virtual_sqr in the program is used to uniformly schedule the sequence to generate a specific transaction (input transaction, referred to as transaction), which is then driven by the corresponding agent to complete the interaction with the DUT (Device Under Test, which refers to the device being tested in the communication system and can be used as the bus connection structure to be verified in the embodiment of the present invention).
[0051] The top_tb layer can include env, bus connection structure to be verified, various interfaces (protocol interfaces), and clock and reset. At this level, the bus connection structure to be verified needs to be completed, such as Figure 3 The DUT is instantiated as shown, and the verification environment layer env is connected to the bus connection structure to be verified through the corresponding protocol interface.
[0052] The env layer can be used to integrate the subsystem environment provided by the verification tool and various verification components developed for bus interconnection, such as Figure 3 The subsystem environment shown is: amba_system_env and verification components: env_cfg, scoreboard, reg_model, virtual_sqr, and callback.
[0053] Among them, the subsystem environment amba_system_env can include master_agent (host agent) and slave_agent (slave agent) corresponding to the AXI / AHB / APB protocol, which is used to simulate the various master / slave (host / slave) connected to the interface of the bus connection structure to be verified (hereinafter referred to as DUT). Amba_system_cfg is the configuration file of the entire subsystem environment, amba_sys_sequencer is used to uniformly manage the sequencers in each agent, and amba_sys_monitor is the monitor of the entire subsystem environment, which can monitor the interaction between the agent and the DUT in real time. It contains a transaction monitoring interface: item_observed_port, which is used to obtain the transaction sent by the master and slave in real time, and the transaction monitoring interface is connected to the external fifo (First Input First Output). Once the transaction is received, the transaction monitoring interface is temporarily stored in the fifo.
[0054] like Figure 3 As shown, env_cfg is the environment configuration class, which is the configuration file of the entire env layer. Figure 4 is a schematic diagram of the hierarchical structure of an env layer configuration file provided in the first embodiment of the present invention. In a specific example, Figure 4 As shown, the env layer configuration file can mainly include amba_cfg, bus_cfg, bus_map and other related configuration information. Among them:
[0055] Amb_cfg is the Amb protocol configuration class, which is connected to the configuration file amba_system_cfg in amba_system_env. It mainly includes the configuration files of axi / ahb / apb systems and the bus interface configuration class bus_info_cfg and other related configuration information. Among them, the bus interface configuration class bus_info_cfg is a custom data structure corresponding to bus_cfg.
[0056] bus_cfg is the platform environment configuration file, which mainly includes all the configuration information of the bus connection structure to be verified. bus_cfg includes the configuration parameters of the axi / ahb / apb bus protocol interface axi / ahb / apb_m / s_node_infos, and its type is a custom data structure: node_info_cfg.
[0057] bus_map is the address range mapping table of the bus connection structure to be verified, which includes the address mapping file slv_map of all slaves, and its type is the custom data structure slave_info.
[0058] In the embodiment of the present invention, a bus node abstraction model can be established for the bus connection structure to be verified, and the configuration parameters of the bus master / slave interface can be packaged into a custom data structure node_info_cfg. Optionally, the custom data structure node_info_cfg can include the following parameters:
[0059] (1) name: node name;
[0060] (2) MS_type: node type, the value is master or slave;
[0061] (3) Interface_type: bus protocol type, for example, AXI / AHB / APB;
[0062] (4) Data_width: bus interface data width;
[0063] (5)Addr_width: bus interface address width;
[0064] (6) Secure_type: security access configuration of the bus interface, which can support secure / non-secure / per-access;
[0065] (7) w / r_outstanding: the maximum outstanding (number of concurrent transactions) capacity supported by the read / write channel;
[0066] (8) id_width: AXI protocol characteristics, i.e. AxID bit width;
[0067] (9) aw / ar_qos: AXI protocol feature, i.e. Ax QOS priority;
[0068] (10) has_slv[]: Node access permission table. This array contains the names of all accessible nodes.
[0069] Optionally, the custom data structure slave_info can include the following parameters:
[0070] (1) name: slave name;
[0071] (2) start / end_addr: slave's first and last addresses.
[0072] Correspondingly, the automation script can automatically obtain the bus interface environment configuration parameters based on the above-mentioned custom data structure, thereby generating the corresponding platform environment configuration file. Through the custom data structure node_info_cfg, the configuration parameters of the bus interconnection master-slave interface and the parameterization of the corresponding master-slave access relationship are realized, and the acquisition and configuration process of the bus interface parameters are realized through the automation script, shortening the construction configuration time of the bus interconnection UVM verification platform.
[0073] like Figure 3 As shown in the figure, the Scoreboard in the bus interconnection UVM verification platform structure is a scoreboard, which can be used to complete the correctness check of bus interconnection such as access relationship, address mapping range, data consistency and configuration parameters. reg_model is the register model of bus interconnection, and its structure hierarchy is as follows Figure 5 shown.
[0074] like Figure 5 As shown, the register model of the bus interconnection in the environment can be divided into the main bus block ral_main_bus_block and the secondary bus block ral_peri_bus_block based on its topological structure. In each register block, only the register uvm_reg corresponding to the bus is instantiated and added to the default register address map default_map. Among them, uvm_reg_filed represents the register domain.
[0075] like Figure 5 As shown in the figure, master_map[x] in different register blocks can be used to create independent register address mappings for all hosts in the bus interconnect. First, determine the registers that a host can configure; then, add the register to the host's register address mapping master_map[x] through the add_submap function in the register model and specify the offset address; finally, only one register model needs to be instantiated, and different hosts can read and write registers with access rights through the corresponding register mapping, which facilitates the unified management of global distributed registers.
[0076] Virtual_sequencer is also Figure 3 The virtual_sqr shown can include handles of all sequencers in the verification environment and is connected to the sequencers in each master / slave_agent in the env, so as to facilitate the unified scheduling and startup of sequences at the test_case layer.
[0077] Callback is the callback function of the axi protocol interface, which is connected to the monitor in the axi master / slave_agent. It is called at the start and end of the startup sequence to generate transactions, count the number of transactions, and check the configuration of the outstanding capabilities of the bus interface.
[0078] S120, automatically reading the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generating a platform environment configuration file, integrating the platform environment configuration file into the bus interconnection UVM verification platform, and completing the environment configuration of the bus interconnection UVM verification platform.
[0079] In an embodiment of the present invention, when a general UVM verification platform is generated by an automation tool, and after the verification tool is integrated, the initialization creation stage of the bus interconnection UVM verification platform is completed. After further developing and integrating the bus interconnection UVM verification platform and being applicable to the bus interconnection verification component, it is necessary to complete the environment configuration of the bus interconnection UVM verification platform. Specifically, due to adopting a custom data structure to define the bus interface configuration parameter information of the bus connection structure to be verified, therefore, the bus interface configuration parameter information of the custom data structure format of the bus connection structure to be verified can be automatically read by an automation script, and the platform environment configuration file bus_cfg is automatically generated by the automation script according to the bus interface configuration parameter information automatically read, thereby automating the environment configuration process of the bus interconnection UVM verification platform.
[0080] S130, sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified.
[0081] The input transaction may be a transaction input by the bus interconnection UVM verification platform to the bus connection structure to be verified, which may be a conventional transaction or a randomly generated transaction. The output transaction may be a transaction output by the bus connection structure to be verified based on the corresponding input transaction.
[0082] S140, comparing and verifying the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
[0083] Correspondingly, after completing the environment configuration of the bus interconnection UVM verification platform, the bus interconnection UVM verification platform can send input transactions to the bus connection structure to be verified, and obtain the transactions output by the bus connection structure to be verified for the input transactions, so as to compare and verify the input transactions and the corresponding output transactions, thereby realizing the test of the bus interconnection architecture of the bus connection structure to be verified.
[0084] This shows that, because the bus interconnection UVM verification platform automatically reads the bus interface configuration parameter information of the bus connection structure to be verified by the automation script, and automatically generates the platform environment configuration file, its environment configuration process can be automatically completed. Therefore, even if the bus connection structure to be verified changes, the automation script can also be based on the bus interface configuration parameter information of the custom data structure to quickly adapt to modify the platform environment configuration file, thereby dynamically and quickly updating the environment configuration process, simplifying the parameter configuration process, and improving the verification environment flexibility. Meanwhile, because the bus interconnection UVM verification platform can quickly build the verification environment of the current bus connection structure to be verified, the verification efficiency of the bus interconnection can also be improved.
[0085] The embodiment of the present invention generates a general UVM verification platform by an automation tool, integrates a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completes the construction of the bus interconnection UVM verification platform. Further, the bus interface configuration parameter information of the bus connection structure to be verified is automatically read by an automation script, and a platform environment configuration file is automatically generated, the platform environment configuration file is integrated into the bus interconnection UVM verification platform, and the bus interconnection UVM verification platform completes the environment configuration. Correspondingly, after completing the environment configuration, the bus connection structure to be verified can be sent an input transaction through the bus interconnection UVM verification platform, and the output transaction of the bus connection structure to be verified is obtained, thereby the input transaction and the output transaction are compared and verified by the bus interconnection UVM verification platform, and the verification result of the bus connection structure to be verified is obtained. The above technical scheme can solve the problems that the verification environment flexibility of the existing bus interconnection verification method is poor and the verification process efficiency is low, and the flexibility of the bus interconnection verification environment and the verification efficiency of the bus interconnection can be improved.
[0086] Embodiment 2
[0087] Figure 6 is a flow chart of a bus interconnection verification method provided by the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, a specific optional implementation method for obtaining bus interface configuration parameter information and automatically generating a platform environment configuration file is provided. Figure 6 As shown, the method of this embodiment may include:
[0088] S210, generating a general UVM verification platform through an automated tool, integrating a verification tool and a verification component suitable for bus interconnection into the general UVM verification platform, and completing the construction of the bus interconnection UVM verification platform.
[0089] S220, automatically reading the bus interface configuration information, address mapping information, and access relationship information of the bus connection structure to be verified through the automation script.
[0090] The bus interface configuration information may be configuration information of various interfaces in the bus connection structure to be verified. The address mapping information may be address mapping information of the slave. The access relationship information may be configuration information of the access rights relationship between the host and the slave. Optionally, the line interface configuration information, address mapping information and access relationship information may be stored in the form of a list.
[0091] S230: Configure the parameters in the custom data structure of the platform environment configuration file in the verification tool through the bus interface configuration information, address mapping information, and access relationship information of the bus connection structure to be verified.
[0092] In an embodiment of the present invention, optionally, the bus interface configuration information of the bus connection structure to be verified can be stored through a bus interface configuration table, the address mapping information can be stored through an address mapping table, and the access relationship information can be stored through an access relationship table. Among them, the bus interface configuration table bus may include the configuration information of all master interfaces and all slave interfaces on the bus in the bus connection structure to be verified, and the bus interface configuration table is read through an automated script such as a self-developed python (a computer programming language) script, and the bus interface configuration file, namely bus_info_cfg.sv file, is automatically generated according to the read bus interface configuration table, and the file can correspond to bus-cfg in env_cfg. At the same time, the address mapping table can be read through an automated script to automatically generate an address range mapping file master_mapping.sv file, which can correspond to bus_map in env_cfg. At the same time, the access relationship table can be read through an automated script to automatically configure the has_slv[] parameter in node_info_cfg. Among them, the interface configuration information of each host or slave is stored in a custom data structure node_info_cfg, and has_slv is a parameter in node_info_cfg, which is used to save the slave name that the host can access.
[0093] Table 1 is a bus interface configuration file table provided in Embodiment 2 of the present invention. In a specific example, as shown in Table 1, the parameter name can be obtained by reading the header of the bus interface configuration file table through an automated script, and then starting from the first row, each column is read in turn to obtain the configuration value of the teammate, and output to the bus interface configuration file bus_info_cfg.sv. Each row of the bus interface configuration file table corresponds to a node's custom data structure node_info_cf: node_info_cfg, which is used to store the interface configuration information of each node (host or slave) on the bus.
[0094] Table 1 Bus interface configuration file table
[0095]
[0096] Table 2 is an address mapping table provided by Embodiment 2 of the present invention. In a specific example, as shown in Table 2, each row in the address mapping table may correspond to a slave_info class. The automated script may read the address mapping table row by row and output it to the address mapping file slv_map[string], which corresponds to the slv_map in env_cfg and is included in the bus address range mapping bus_map. The string index of the address mapping file slv_map[string] corresponds to the module name, and the automated script reads each row of data in the address mapping table in turn, and then establishes the address mapping of all slaves according to the read data.
[0097] Table 2 Address mapping table
[0098] Module Name Starting address End address xxx 0x0_0000_0000 0x0_7FFF_FFFF
[0099] Table 3 is an address mapping table provided by the second embodiment of the present invention. In a specific example, as shown in Table 3, an automated script can be used to read the slave columns from left to right starting from the master_0 row to determine whether the table content is a specified identifier, such as a check mark. If so, the slave name corresponding to the column is converted into a string and saved in has_slv[] of the master corresponding to the row, thereby obtaining the access relationship of all hosts to the slaves.
[0100] Table 3 Access relationship table
[0101]
[0102] In a specific example, taking AMBA verification IP as a verification tool, during the parameter configuration process, the handle bus_info_cfg in amba_cfg is connected to the platform environment configuration file bus_cfg, and the configuration parameters of each master and slave interface in the platform environment configuration file are indexed through the handle in amba_cfg to configure amba_vip (AMBA protocol verification IP). Optionally, the following function can be used to configure amba_vip:
[0103] Set_axi_system_configuration: axi subsystem environment configuration function, which obtains parameters by indexing the configuration information axi_m / s_node_infos of the axi protocol master / slave interface in the environment configuration class bus_cfg to configure the interface parameters of axi_master / slave (master / slave based on AXI protocol).
[0104] Set_ahb_system_configuration: ahb subsystem environment configuration function.
[0105] Set_apb_system_configuration: apb subsystem environment configuration function.
[0106] S240, integrating the platform environment configuration file into the bus interconnection UVM verification platform, and completing the environment configuration of the bus interconnection UVM verification platform.
[0107] S250: Sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified.
[0108] S260: Compare and verify the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
[0109] The above technical solution simplifies the configuration process of bus interconnection verification environment parameters, improves the flexibility of the verification environment, and can adapt to the bus structure that may change frequently in the early stage of chip design.
[0110] Embodiment 3
[0111] Figure 7 is a flow chart of a bus interconnection verification method provided by Embodiment 3 of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, a specific optional implementation method for sending an input transaction to a bus connection structure to be verified is provided. Figure 7 As shown, the method of this embodiment may include:
[0112] S310, generating a general UVM verification platform through an automation tool, integrating a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completing the construction of the bus interconnection UVM verification platform.
[0113] S320, automatically reading the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generating a platform environment configuration file, integrating the platform environment configuration file into the bus interconnection UVM verification platform, and completing the environment configuration of the bus interconnection UVM verification platform.
[0114] S330: construct a base test sequence sequence suitable for bus interconnection verification through the verification tool.
[0115] The base test sequence sequence may be a stimulus sequence sequence applicable to a general working scenario of bus interconnection. The base test sequence sequence can generate basic input transactions. The basic input transactions can verify the common working scenarios of the bus connection structure to be verified, and realize the automatic inspection of the basic functions of the bus interconnection of the bus connection structure to be verified.
[0116] S340: construct a custom derived sequence for the bus interconnect UVM verification platform according to the base class test sequence sequence.
[0117] The custom derived sequence may be a sequence obtained by modifying the base class test sequence sequence.
[0118] It is understandable that there are a large number of different configurable parameters in different bus protocol interfaces, and the base class sequence provided by the verification tool in the bus interconnection UVM verification platform is difficult to simulate the complex working scene of the bus interconnection. In order to facilitate the host to generate the stimulus sequence under different working scenes of the bus interconnection, the test case is quickly constructed to start verification, and in the embodiment of the present invention, the bus interconnection UVM verification platform is constructed to customize the derived sequence according to the base class sequence provided by the verification tool in the bus interconnection UVM verification platform.
[0119] S350: Generate the input transaction through the custom derived sequence, where the custom function in the custom derived sequence is used to configure transaction parameters to generate different types of input transactions.
[0120] S360: Input the input transaction to the driver through the custom derived sequence, and send the input transaction to the bus connection structure to be verified through the driver.
[0121] In an optional embodiment of the present invention, generating the input transaction through the custom derived sequence may include: adding a random configuration class inside the custom derived sequence; wherein the random configuration class is used to obtain configuration information and mutual access relationships of all master-slave interfaces, constrain target associated parameters, and after randomization, configure the parameter random results to the created input transaction to complete the randomization processing of the input transaction.
[0122] The target-related parameters may include, but are not limited to, parameters associated with the transaction type xact_type, the transaction address addr, the data bit width data_size, and the burst transmission length burst_length.
[0123] Specifically, based on the base class sequence of the axi / ahb protocol provided by the verification tool, a custom derived sequence suitable for bus interconnection can be derived: cust_axi / ahb_master_base_sequence. Different target functions are used inside the sequence to configure the target protocol parameters in common working scenarios. Taking cust_axi_master_base_sequence suitable for the AXI protocol as an example, the custom derived sequence can add the following functions:
[0124] trans_addr_wr: initiates directional read and write operations with configurable addresses;
[0125] trans_rand_addr_wr: initiates random address read and write operations;
[0126] trans_id_rand_addr_wr: initiates random read and write operations of addresses with configurable id values;
[0127] trans_qos_rand_addr_wr: initiates random read and write operations on addresses with configurable qos values;
[0128] trans_id_outstanding_wr: initiates concurrent read and write operations with configurable id values.
[0129] Secondly, in order to cover all transaction types supported by the bus interface as much as possible and verify the boundary scenarios, the host needs to send a large number of random transactions for testing. Therefore, it is necessary to complete the randomization of transactions when constructing incentives in the custom derived sequence.
[0130] Figure 8 is a schematic diagram of a random processing flow of input transactions provided by Embodiment 3 of the present invention. In a specific example, Figure 8As shown. A random configuration class random_cfg can be added inside the base class sequence, and the random configuration class can include a handle to the platform environment configuration file bus_cfg. Through this handle, the configuration information and mutual access relationship of all master-slave interfaces can be obtained, so as to constrain the target-related parameters such as transaction type xact_type, transaction address addr, data bit width data_size, burst transmission length burst_length, and stimulus sequence length Sequence_length, and then the randomization result is configured to the created input transaction to complete the randomization of the input transaction. Subsequently, the randomized input transaction can be input into the driver, and the input transaction can be sent to the bus connection structure to be verified through the driver. Among them, the randomized input transaction can verify the complex working scenarios of the bus connection structure to be verified, and realize the automatic inspection of all aspects of the bus interconnection functions of the bus connection structure to be verified.
[0131] In a specific example, Figure 8 As shown, no matter it is a basic input transaction or a random input transaction, the custom derived sequence can input it to the driver, and then the driver further sends the input transaction to the bus connection structure to be verified. Correspondingly, after the bus connection structure to be verified processes the received input transaction, it can first output the processed transaction to the monitor, and then the monitor outputs the transaction to the scoreboard score_board.
[0132] S370, obtaining the output transaction of the bus connection structure to be verified, and performing comparative verification on the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
[0133] Accordingly, the bus interconnect UVM verification platform can compare and verify output transactions and input transactions through the scoreboard.
[0134] The above technical solution constructs a more reusable custom derived sequence containing a random configuration class rand_cfg for bus interconnection verification, which can adapt to different working scenarios, simplifies the process of generating different test stimuli, and improves reusability in different scenarios.
[0135] Embodiment 4
[0136] Fig. 9 4 is a flowchart of a bus interconnection verification method provided by the fourth embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, a specific optional implementation method for comparing and verifying input transactions and output transactions is provided. Fig. 9As shown, the method of this embodiment may include:
[0137] S410, generating a general UVM verification platform through an automation tool, integrating a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completing the construction of the bus interconnection UVM verification platform.
[0138] S420, automatically reading the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generating a platform environment configuration file, integrating the platform environment configuration file into the bus interconnection UVM verification platform, and completing the environment configuration of the bus interconnection UVM verification platform.
[0139] S430: Send input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtain output transactions of the bus connection structure to be verified.
[0140] S440, acquiring the input transaction and the output transaction in real time through the monitor of the master-slave agent in the bus interconnection UVM verification platform, and temporarily storing them in the input and output transaction cache queue.
[0141] The input and output transaction cache queue is connected to the scoreboard through the communication structure of the bus interconnection UVM verification platform. The input and output transaction cache queue may include an input transaction cache queue and an output transaction cache queue. The input transaction cache queue is used to cache input transactions, and the output transaction cache queue is used to cache output transactions.
[0142] In the entire transaction processing flow, the host sends a transaction, which is passed to the slave through the bus structure, and the slave receives the transaction. In view of the complete handshake protocol, after receiving the transaction sent by the host, the slave will return a response to the host to notify the host that the transaction has been received. Therefore, the transaction sent by the host can be used as an input transaction, and the transaction received by the slave can be used as an output transaction.
[0143] Fig.10 is a schematic diagram of a scoreboard structure provided by the fourth embodiment of the present invention. In a specific example, Fig.10As shown, a series of blcoking_get_port (communication interface in UVM verification methodology) ports can be defined in scoreboard, and these communication interfaces are connected to blcoking_get_export (a UVM communication port) of master / slave_port_fifo (host / slave transaction cache). The transaction monitoring interface item_observed_port of monitor in master / slave_agent is connected to the analysis_export (a UVM communication port) of master / slave_port_fifo in the verification environment, and the communication interface built-in function get_item() for obtaining transactions can be used in scoreboard to obtain transactions sent by the master and slave in real time and then compare.
[0144] S450, obtaining the transaction to be verified from the input and output transaction cache queue through the scoreboard, and checking the transaction to be verified after processing.
[0145] The transaction to be verified may be a transaction that needs to be compared and verified, and may include an input transaction to be verified and an output transaction to be verified.
[0146] In an optional embodiment of the present invention, the checking of the transaction to be verified after processing may include: in response to the triggering operation of the host-side transaction event and the slave-side transaction event, obtaining the transaction to be verified from the transaction queue; unpacking the transaction to be verified to obtain the address and data of the current input transaction; verifying the slave address mapping range of the transaction to be verified; converting each beat of data transmitted in the burst in the transaction to be verified into a bit stream, pushing them into the data queue in sequence, and then comparing the data queue byte by byte to complete the data consistency check.
[0147] The host-side transaction event may be a host-side event, which is used to indicate that the host side initiates a transaction when triggered. The slave-side transaction event may be a slave-side event, which is used to indicate that the slave side receives a transaction when triggered.
[0148] It is understandable that after obtaining the transaction of the master-slave interface through the communication interface blcoking_get_port of the scoreboard, due to the inconsistency of the master and slave transactions in timing or data attributes, the input transactions cannot be directly compared, and it is necessary to check and process the input transaction to be verified and the corresponding output transaction to be verified before comparison to determine whether the transaction can be passed through the bus. If the input transaction to be verified and the corresponding output transaction to be verified are not checked and processed before comparison, the transaction may not be passed through the bus, and a hang problem may occur.
[0149] First, due to transmission delay, the time when the host and the slave receive the transaction is inconsistent. In order to avoid the host or slave interface from immediately starting to compare and occupy resources once the transaction data is obtained, all transactions can be temporarily stored in the corresponding transaction queue. Through event synchronization, the host side event is triggered after the host issues a transaction, and the slave side event is triggered after the slave receives the corresponding transaction. Only when both the host event and the slave event are triggered, the input transaction to be verified and the output transaction to be verified are processed. Specifically, the input transaction to be verified and the output transaction to be verified can be unpacked to obtain information such as address, data, and control parameters to improve the efficiency of scoreboard transaction comparison. If the master / slave supports the outstanding scenario, multiple transactions are temporarily stored in the transaction queue of the master and slave at the same time, which may cause data comparison errors due to disorder. At this time, the input transaction and the output transaction can be reordered according to the unique identifier object_id of each transaction, and then popped out from the head of each queue in sequence, realizing transaction comparison in the outstanding scenario.
[0150] Secondly, for the slave address mapping range of the transaction to be verified, the slave's get_port (a UVM communication port), transaction queue and corresponding slv_map in bus_map can be associated, that is, the connection relationship between the port and the corresponding slave and the slave's address mapping range are fixed. After the slave port obtains the transaction, check whether its address is within the start / end_addr range of the address mapping, and verify the slave's address mapping range while checking the mutual access relationship, reducing the verification workload.
[0151] Finally, to address the data bit width mismatch between the master and slave, each burst of data in a transaction to be verified can be converted into a byte stream, pushed into the data queue in sequence, and then the data queue is compared byte by byte to complete the data consistency check to determine whether the transaction to be verified has been passed through the bus.
[0152] S460: When it is determined that the transaction to be verified is transmitted through the bus, compare and verify whether the transaction association information of the transaction to be verified satisfies the verification rules.
[0153] In an optional embodiment of the present invention, the comparison and verification of whether the transaction association information of the transaction to be verified satisfies the verification rules may include: unpacking the transaction to be verified to obtain the address, data and transaction parameters of the transaction to be verified; wherein the transaction parameters include quality of service QoS and security attributes; constraining the expected address of the transaction to be verified according to the platform environment configuration file, and verifying whether the address of the transaction to be verified is within the expected address range; verifying the correctness of the data of the input transaction to be verified after being transmitted through the bus interconnection, and the consistency of the data of the input transaction to be verified and the output transaction to be verified; verifying whether the QoS of the transaction to be verified is consistent with the expected design value; verifying whether the security attribute of the transaction to be verified is the set value, or verifying whether the security attributes of the transaction to be verified are consistent.
[0154] The transaction parameters may include, but are not limited to, security attributes of the transaction, QoS of the transaction and other related information.
[0155] Scoreboard not only needs to implement data consistency comparison, but also should check the routing path, address mapping range, security, QoS and outstanding configuration parameters of the bus interconnection to verify whether the basic functions of the bus interconnection are correct.
[0156] Accordingly, when determining whether the transaction association information of the transaction to be verified satisfies the verification rules, the following contents may be specifically compared and verified:
[0157] Start the access check through the Check_access_error() function: By obtaining the platform environment configuration file bus_cfg, associate the slave's port with the corresponding slv_map in bus_map, constrain the expected address of each slave port, check whether the address of the port to be verified is within the expected address range, verify the mutual access relationship and check whether the address mapping range is correct.
[0158] The data of the transaction to be verified is checked on the axi / ahb / apb_slave side through the compare_axi / ahb / apb_data() function to verify the correctness of the data of the input transaction to be verified after being transmitted through the bus interconnection, as well as the consistency of the data of the input transaction to be verified and the output transaction to be verified. The two working modes correspond to axi / ahb_master. Because the configuration parameters under different protocols are different, some configurations do not need to be compared. Therefore, the master and slave can be subdivided, and the comparison mode can be selected by passing the mode parameter, thereby reducing unnecessary comparison links, improving the efficiency of scoreboard comparison, and quickly detecting errors.
[0159] Check the bus interface QoS value configuration through the Check_qos_cfg() function. Among them, the bus interface has three QoS value configuration attributes: fixed (mixed mode) / programmable (programming mode) / from_master (master-slave mode). For fixed mode, you can check whether the transaction QoS received by the slave side is consistent; for programable mode, the QoS value on the bus interface is configured by the corresponding register. When configuring the register, the expected value in the scoreboard is updated synchronously; for from_master mode, compare the QoS of the master and slave transactions in the scoreboard to see if they are consistent.
[0160] The custom check function Check_security_cfg() in the scoreboard compares the input transaction to be verified with the output transaction to be verified to check whether the security attribute configuration of the bus interface is correct. Among them, the bus interface has three security attributes: secure (in security mode, transactions through the bus interface will be configured as secure) / non-secure (transactions through the bus interface will be configured as non-secure) / per-access (the security of transactions through the bus interface will not change and will be consistent with the host). For the secure / non-secure attribute, you can check in the scoreboard whether the security attribute of the slave transaction is secure / non-secure; for the per-access attribute, you can check whether the security attributes of the master and slave transactions are consistent.
[0161] The above technical solution breaks through the task scope of the conventional scoreboard which is only centered on data consistency checking, enriches the scoreboard checking function, and further adopts means such as automatic checking of bus mutual access relationships, address mapping ranges, interface configuration parameters, etc., to enhance the scoreboard checking function, quickly verify the bus function, and improve the verification efficiency of bus interconnection.
[0162] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0163] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0164] Embodiment 5
[0165] Fig.11 Schematic diagram of a bus interconnection verification device provided by Embodiment 5 of the present invention. Fig.11As shown, the device includes: a verification platform building module 510, an environment configuration module 520, a transaction generation and receiving module 530 and a transaction comparison and verification module 540, wherein:
[0166] A verification platform building module 510 is used to generate a general UVM verification platform through an automation tool, integrate a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and complete the construction of the bus interconnection UVM verification platform;
[0167] An environment configuration module 520 is used to automatically read the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generate a platform environment configuration file, integrate the platform environment configuration file into the bus interconnection UVM verification platform, and complete the environment configuration of the bus interconnection UVM verification platform;
[0168] The transaction generation and receiving module 530 is used to send input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtain output transactions of the bus connection structure to be verified;
[0169] The transaction comparison and verification module 540 is used to compare and verify the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain the verification result of the bus connection structure to be verified.
[0170] The embodiment of the present invention generates a general UVM verification platform by an automation tool, integrates a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completes the construction of the bus interconnection UVM verification platform. Further, the bus interface configuration parameter information of the bus connection structure to be verified is automatically read by an automation script, and a platform environment configuration file is automatically generated, the platform environment configuration file is integrated into the bus interconnection UVM verification platform, and the bus interconnection UVM verification platform completes the environment configuration. Correspondingly, after completing the environment configuration, the bus connection structure to be verified can be sent an input transaction through the bus interconnection UVM verification platform, and the output transaction of the bus connection structure to be verified is obtained, thereby the input transaction and the output transaction are compared and verified by the bus interconnection UVM verification platform, and the verification result of the bus connection structure to be verified is obtained. The above technical scheme can solve the problems that the verification environment flexibility of the existing bus interconnection verification method is poor and the verification process efficiency is low, and the flexibility of the bus interconnection verification environment and the verification efficiency of the bus interconnection can be improved.
[0171] Optionally, the verification platform building module 510 is also used to: build the verification case layer, top connection layer and verification environment layer of the bus interconnection UVM verification platform through the automation tool; wherein the verification case layer is used to construct a stimulus sequence sequence to simulate a simulation test scenario of the bus connection structure to be verified; the top connection layer is used to instantiate the bus connection structure to be verified, and provide a protocol interface to connect the bus connection structure to be verified and the verification environment layer; the verification environment layer is used to integrate the subsystem environment of the verification tool and the verification components of the bus connection structure to be verified.
[0172] Optionally, the environment configuration module 520 is also used to: automatically read the bus interface configuration information, address mapping information and access relationship information of the bus connection structure to be verified through the automation script; and configure the parameters in the custom data structure of the platform environment configuration file in the verification tool through the bus interface configuration information, address mapping information and access relationship information of the bus connection structure to be verified.
[0173] Optionally, the transaction generation and receiving module 530 is also used to: construct a base class test sequence sequence suitable for bus interconnection verification through the verification tool; construct a custom derived sequence for the bus interconnection UVM verification platform according to the base class test sequence sequence; generate the input transaction through the custom derived sequence, and the custom function in the custom derived sequence is used to configure transaction parameters to generate different types of input transactions; input the input transaction to the driver through the custom derived sequence, and send the input transaction to the bus connection structure to be verified through the driver.
[0174] Optionally, the transaction generation and receiving module 530 is also used to: add a random configuration class inside the custom derived sequence; wherein the random configuration class is used to obtain the configuration information and mutual access relationship of all master-slave interfaces, constrain the target associated parameters, and after randomization, configure the parameter random results to the created input transaction to complete the randomization processing of the input transaction.
[0175] Optionally, the transaction comparison and verification module 540 is also used for: the input transaction obtains the input transaction and the output transaction in real time through the monitor of the master-slave agent in the bus interconnection UVM verification platform, and temporarily stores them in the input and output transaction cache queue, wherein the input and output transaction cache queue is connected to the scoreboard scoreboard through the communication structure of the bus interconnection UVM verification platform; obtains the transaction to be verified from the input and output transaction cache queue through the scoreboard, and checks the transaction to be verified after processing; wherein the transaction to be verified includes an input transaction to be verified and an output transaction to be verified; when it is determined that the transaction to be verified is passed through the bus, compare and verify whether the transaction association information of the transaction to be verified meets the verification rules.
[0176] Optionally, the transaction comparison and verification module 540 is also used to: unpack the transaction to be verified to obtain the address, data and transaction parameters of the transaction to be verified; wherein the transaction parameters include quality of service QoS and security attributes; constrain the expected address of the transaction to be verified according to the platform environment configuration file, and verify whether the address of the transaction to be verified is within the expected address range; verify the correctness of the data of the input transaction to be verified after being transmitted through the bus interconnection, and the consistency of the data of the input transaction to be verified and the output transaction to be verified; verify whether the QoS of the transaction to be verified is consistent with the expected design value; verify whether the security attribute of the transaction to be verified is the set value, or verify whether the security attribute of the transaction to be verified is consistent.
[0177] The above bus interconnection verification device can execute the bus interconnection verification method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the bus interconnection verification method provided by any embodiment of the present invention.
[0178] Since the bus interconnection verification device introduced above is a device that can execute the bus interconnection verification method in the embodiment of the present invention, based on the bus interconnection verification method introduced in the embodiment of the present invention, the technicians in this field can understand the specific implementation of the bus interconnection verification device of this embodiment and its various variations, so how the bus interconnection verification device implements the bus interconnection verification method in the embodiment of the present invention is not described in detail here. As long as the technicians in this field implement the device used by the bus interconnection verification method in the embodiment of the present invention, it belongs to the scope of protection of this application.
[0179] Embodiment 6
[0180] Fig.12A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0181] like Fig.12 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0182] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0183] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a verification method for bus interconnection.
[0184] Optionally, the bus interconnection verification method may include: generating a general UVM verification platform through an automation tool, integrating a verification tool and a verification component suitable for bus interconnection into the general UVM verification platform, and completing the construction of the bus interconnection UVM verification platform; automatically reading the bus interface configuration parameter information of the bus connection structure to be verified through an automation script, and automatically generating a platform environment configuration file, integrating the platform environment configuration file into the bus interconnection UVM verification platform, and completing the environment configuration of the bus interconnection UVM verification platform; sending an input transaction to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining an output transaction of the bus connection structure to be verified; and comparing and verifying the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
[0185] In some embodiments, the verification method of the bus interconnection may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the verification method of the bus interconnection described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the verification method of the bus interconnection in any other appropriate manner (e.g., by means of firmware).
[0186] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0187] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0188] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0189] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0190] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0191] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0192] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0193] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A bus interconnection verification method, characterized in that: include: Generate a general UVM verification platform through an automated tool, integrate a verification tool and a verification component suitable for bus interconnection into the general UVM verification platform, and complete the construction of the bus interconnection UVM verification platform; Automatically read bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generate a platform environment configuration file, integrate the platform environment configuration file into the bus interconnection UVM verification platform, and complete the environment configuration of the bus interconnection UVM verification platform; Sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified; The input transaction and the output transaction are compared and verified by the bus interconnection UVM verification platform to obtain a verification result of the bus connection structure to be verified.
2. The method according to claim 1, characterized in that: The method of generating a general UVM verification platform by an automated tool includes: The verification use case layer, the top connection layer and the verification environment layer of the bus interconnection UVM verification platform are built by the automation tool; The verification case layer is used to construct a stimulus sequence sequence to simulate a simulation test scenario of the bus connection structure to be verified; The top connection layer is used to instantiate the bus connection structure to be verified and provide a protocol interface to connect the bus connection structure to be verified and the verification environment layer; The verification environment layer is used to integrate the subsystem environment of the verification tool and the verification components of the bus connection structure to be verified.
3. The method according to claim 1, characterized in that The method of automatically reading the bus interface configuration parameter information of the bus connection structure to be verified by an automated script includes: Automatically reading the bus interface configuration information, address mapping information and access relationship information of the bus connection structure to be verified through the automation script; The automatically generated platform environment configuration file includes: The parameters in the custom data structure of the platform environment configuration file in the verification tool are configured through the bus interface configuration information, address mapping information and access relationship information of the bus connection structure to be verified.
4. The method according to claim 1, characterized in that: Sending an input transaction to the bus connection structure to be verified through the bus interconnect UVM verification platform includes: Constructing a base class test sequence sequence suitable for bus interconnection verification by means of the verification tool; Constructing a custom derived sequence for the bus interconnect UVM verification platform according to the base class test sequence sequence; Generating the input transaction through the custom derivation sequence, wherein the custom function in the custom derivation sequence is used to configure transaction parameters to generate different types of input transactions; The input transaction is input to a driver through the user-defined derived sequence, and the input transaction is sent to the bus connection structure to be verified through the driver.
5. The method according to claim 4, characterized in that Generating the input transaction by using the custom derived sequence includes: Add a random configuration class inside the custom derived sequence; The random configuration class is used to obtain the configuration information and mutual access relationship of all master and slave interfaces, constrain the target associated parameters, and after randomization, configure the parameter random results to the created input transaction to complete the randomization processing of the input transaction.
6. The method according to claim 1, characterized in that The comparing and verifying the input transaction and the output transaction through the bus interconnection UVM verification platform includes: The input transaction and the output transaction are acquired in real time by a monitor of a master-slave agent in the bus interconnection UVM verification platform, and temporarily stored in an input-output transaction cache queue, wherein the input-output transaction cache queue is connected to a scoreboard scoreboard through a communication interface of the bus interconnection UVM verification platform; Obtaining the transactions to be verified from the input and output transaction cache queue through the scoreboard, and checking the transactions to be verified after processing; wherein the transactions to be verified include input transactions to be verified and output transactions to be verified; When it is determined that the transaction to be verified is transmitted through the bus, a comparison is performed to verify whether the transaction association information of the transaction to be verified satisfies a verification rule.
7. The method according to claim 6, characterized in that The comparing and verifying whether the transaction association information of the transaction to be verified satisfies the verification rules includes: Unpacking the transaction to be verified to obtain the address, data and transaction parameters of the transaction to be verified; wherein the transaction parameters include quality of service QoS and security attributes; Constraining the expected address of the transaction to be verified according to the platform environment configuration file, and verifying whether the address of the transaction to be verified is within the expected address range; Verifying the correctness of the data of the input transaction to be verified after being transmitted through the bus interconnection, and the consistency of the data of the input transaction to be verified and the output transaction to be verified; Verifying whether the QoS of the transaction to be verified is consistent with the expected design value; Verify whether the security attribute of the transaction to be verified is a set value, or verify whether the security attribute of the transaction to be verified is consistent.
8. A bus interconnection verification device, characterized in that: include: A verification platform building module generates a general UVM verification platform through an automated tool, integrates a verification tool and a verification component suitable for bus interconnection in the general UVM verification platform, and completes the building of the bus interconnection UVM verification platform; An environment configuration module is used to automatically read the bus interface configuration parameter information of the bus connection structure to be verified through an automated script, and automatically generate a platform environment configuration file, integrate the platform environment configuration file into the bus interconnection UVM verification platform, and complete the environment configuration of the bus interconnection UVM verification platform; A transaction generation and receiving module, used for sending input transactions to the bus connection structure to be verified through the bus interconnection UVM verification platform, and obtaining output transactions of the bus connection structure to be verified; The transaction comparison and verification module is used to compare and verify the input transaction and the output transaction through the bus interconnection UVM verification platform to obtain the verification result of the bus connection structure to be verified.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the bus interconnection verification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the bus interconnection verification method described in any one of claims 1-7 when executed.
11. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the bus interconnection verification method described in any one of claims 1-7 is implemented.
Citation Information
Cited By
Bus verification method and device, electronic equipment and readable storage medium
CN119397969A
Request comparison method applied to UVM verification
CN119598519A
Equipment communication verification method and device, equipment, storage medium and program product
CN120144520A
Complex bus interconnection bridge end-to-end random verification method based on UVM
CN121116728A
A random verification method for complex bus interconnection bridge end to end based on UVM
CN121116728B
