Multi-channel DMAC verification system and method based on UVM

Through the UVM-based multi-channel DMAC verification system and methods, a verification platform with high automation and reusability is built, and the number of channels is controlled, the problems of difficulty and low efficiency of verification environment reuse in the existing technology are solved, and efficient Low-cost DMAC verification.

CN118964251APending Publication Date: 2024-11-15上海芯钛信息科技有限公司
View PDF 0 Cites 11 Cited by

Patent Information

Application Number
CN202410998128.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing technology is difficult to build a flexible verification environment to adapt to the DMAC verification needs of different channels, making verification environment reuse difficult, low efficiency and high cost.

Method used

Using UVM-based multi-channel DMAC verification system and methods, we can build a verification platform with high automation and reusability through top-level simulation files and components such as alarm signal assertion module, platform environment components, channel configuration components, etc., and use channel number control parameters to flexibly Adjust the verification process.

Benefits of technology

It realizes high reusability and high efficiency DMAC verification, reduces costs, adapts to the verification needs of different channels, and improves the flexibility and automation of the verification system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964251A_ABST
    Figure CN118964251A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-channel DMAC verification system and method based on a UVM. A new UVM verification platform is established for multi-channel DMAC module verification based on a UVM verification methodology. The platform is composed of an alarm signal assertion module, and a platform environment component, an environment configuration component, a channel configuration component, a reference model component, a scoreboard component, a register model component, a verification sequence library and other components created based on a test case base class, and integrates the components based on an AHB protocol, so that the system structure of the platform is scientific and reasonable in function; and randomized excitation can be generated for verification. The whole verification can be flexibly changed through the means of transmitting channel number control parameters, the verification requirements of different channel numbers among different chips are well met, the reusability degree is greatly improved, the verification efficiency is greatly improved, and the cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of chip verification, and relates to a UVM-based multi-channel DMAC verification system and method. Background Art

[0002] With the rapid development and popularization of new energy vehicles, more and more intelligent electronic modules are used in new energy vehicles, such as vehicle controllers, autonomous driving domain controllers, and cockpit domain controllers. The application of these controllers is inseparable from a variety of automotive chips. With the increasing number of automotive chips and the increasing number of functions they implement, the efficiency of data transmission within the chip is also in urgent need of improvement. Among them, the Direct Memory Access Controller (DMAC) is a commonly used module to improve the efficiency of information transmission in the chip. It has multiple data transmission channels, which can greatly improve the efficiency of data transmission within the chip.

[0003] The basic functions and security mechanisms of DMAC in different automotive chips are basically the same, but the number of channels may be different. Too many channels will lead to redundancy of chip functions and increase costs; too few channels cannot meet the chip usage requirements. For DMAC verification, the verification method of the main functions of a single channel is basically the same, but the change in the number of channels means that the entire verification system must be upgraded or deleted. Therefore, how to build a flexible verification environment to adapt to the verification requirements of different numbers of channels and reduce the difficulty of reusing the verification environment is a technical problem that urgently needs to be solved in current verification technology. Summary of the invention

[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a multi-channel DMAC verification system based on UVM and a multi-channel DMAC verification method based on UVM, and builds a verification platform with high reusability and flexible structure, which can adapt to the verification requirements of different numbers of channels.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a UVM-based multi-channel DMAC verification system is provided, including a top-level simulation file based on UVM verification methodology, which is used to initialize the verification system and start a test case; the top-level simulation file includes an alarm signal assertion module and a platform environment component, an environment configuration component, a channel configuration component, a reference model component, a scoreboard component, a register model component and a verification sequence library created based on a test case base class;

[0007] The platform environment component is used to perform AHB protocol communication with the DMAC module to be verified, simulate the real data transmission to the DMAC module according to the test case and monitor whether the protocol timing is correct; the platform environment component includes the AHB environment component, CH_NUM DMA agent components and interrupt agent components, CH_NUM is the channel number control parameter;

[0008] The environment configuration component is used to configure the AHB environment, the channel configuration component is used to manage the configuration parameters of each DMAC channel of the DMAC module, the reference model component is used to simulate the basic functions of the DMAC module according to the test case, the scoreboard component is used to compare the expected data and the actually transmitted data of each DMAC channel, the register model component is used to configure the registers of the DMAC module, the verification sequence library is used to store and manage the verification sequence, and the alarm signal assertion module is used to monitor whether the security mechanism of the DMAC module responds successfully when the test case is a security mechanism test case.

[0009] On the other hand, a multi-channel DMAC verification method based on UVM is also provided, which is applied to the above-mentioned multi-channel DMAC verification system based on UVM, and the multi-channel DMAC verification method comprises the steps of:

[0010] Assign values ​​to the channel quantity control parameters in the external definition file;

[0011] Initialize the multi-channel DMAC verification system through the top-level simulation file and channel quantity control parameters;

[0012] After connecting the components of the multi-channel DMAC verification system, start the configuration data packet corresponding to the test case and perform verification test on the DMAC module to be tested;

[0013] Start a virtual test sequence and enable verification of all DMAC channels in the sequence;

[0014] According to the number of channels of the DMAC module, an address range of a DMAC channel for transmitting data is allocated for each DMAC channel in a virtual memory, and data to be transmitted of the DMAC channel is prepared;

[0015] The transmission address and register configuration of each DMAC channel are written into the register of the DMAC module through the AHB host agent component, the channel transmission is enabled, and the verification process of the DMAC module is completed.

[0016] One of the above technical solutions has the following advantages and beneficial effects:

[0017] The above-mentioned UVM-based multi-channel DMAC verification system and method builds a new UVM verification platform for multi-channel DMAC module verification based on UVM verification methodology. The platform consists of an alarm signal assertion module and platform environment components, environment configuration components, channel configuration components, reference model components, scoreboard components, register model components, and verification sequence library components created based on the test case base class. It integrates various components based on the AHB protocol, and functionally makes the system structure of the platform scientific and reasonable, and can generate randomized incentives for verification. By passing in the means of channel quantity control parameters, the entire verification can be flexibly changed, which is well adapted to the verification requirements of different channel quantities between different chips, and the degree of reusability has been greatly improved.

[0018] Compared with traditional multi-channel DMAC module verification technology, the design has built a highly automated and reusable verification environment, as well as a complete verification process. When the number of channels in the DMAC module design is changed, only the channel number control parameters of the verification platform need to be modified to directly perform verification, which greatly improves the verification efficiency and reduces the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A schematic diagram of a module architecture of a multi-channel DMAC verification system based on UVM in one embodiment;

[0021] Figure 2 A schematic diagram of a specific application flow of a multi-channel DMAC verification method based on UVM in one embodiment;

[0022] Figure 3 The figure is a flow chart of a multi-channel DMAC verification method based on UVM in one embodiment. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0024] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0025] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0026] First, it should be briefly explained that the key feature of UVM verification methodology is reusable components and standardized hierarchical structure on the one hand, and its SystemVerilog class library on the other hand. About the component function and effect in UVM verification methodology: the structure of UVM workbench comprises three parts such as top-level (simulation) file testbench, interface layer interface and part DUT to be tested from top to bottom, wherein, interface is used to connect top-level file and DUT, and DUT can be all kinds of products that need test verification, for example, multi-channel DMAC module for in the present invention. Mainly related to improvement in the present invention is the top-level simulation file part, adopts SystemVerilog language to build verification platform and put into the verification test of multi-channel DMAC module to be tested, realizes the complete verification of DAMC module to different channel numbers and meets the verification system reusability requirement.

[0027] In one embodiment, Figure 1As shown, a multi-channel DMAC verification system based on UVM is provided, including a top-level simulation file based on UVM verification methodology, which is used to initialize the verification system and start the test case. The top-level simulation file includes an alarm signal assertion module and a platform environment component, an environment configuration component, a channel configuration component, a reference model component, a scoreboard component, a register model component and a verification sequence library created based on the test case base class. The platform environment component is used to perform AHB protocol communication with the DMAC module to be verified, simulate the real data transmission to the DMAC module according to the test case and monitor whether the protocol timing is correct; the platform environment component includes an AHB environment component, CH_NUM DMA agent components and an interrupt agent component, and CH_NUM is a channel quantity control parameter. The environment configuration component is used to configure the AHB environment, the channel configuration component is used to manage the configuration parameters of each DMAC channel of the DMAC module, the reference model component is used to simulate the basic functions of the DMAC module according to the test case, the scoreboard component is used to compare the expected data and the actually transmitted data of each DMAC channel, the register model component is used to configure the registers of the DMAC module, the verification sequence library is used to store and manage the verification sequence, and the alarm signal assertion module is used to monitor whether the security mechanism of the DMAC module responds successfully when the test case is a security mechanism test case.

[0028] The above-mentioned UVM-based multi-channel DMAC verification system builds a new UVM verification platform for multi-channel DMAC module verification based on UVM verification methodology. The platform consists of an alarm signal assertion module and platform environment components, environment configuration components, channel configuration components, reference model components, scoreboard components, register model components, and verification sequence library components created based on the test case base class. It integrates various components based on the AHB protocol, which makes the system structure of the platform scientific and reasonable in terms of function, and can generate randomized incentives for verification. By passing in the means of controlling the number of channels, the entire verification can be flexibly changed, which is well adapted to the verification requirements of different numbers of channels between different chips, and the degree of reusability has been greatly improved.

[0029] Compared with traditional multi-channel DMAC module verification technology, the design has built a highly automated and reusable verification environment, as well as a complete verification process. When the number of channels in the DMAC module design is changed, only the channel number control parameters of the verification platform need to be modified to directly perform verification, which greatly improves the verification efficiency and reduces the cost.

[0030] Specifically, the UVM-based multi-channel DMAC verification system includes a top-level simulation file (testbench) based on the UVM verification methodology, which is used to initialize the verification system and start the test case; a channel number control parameter (which can be recorded as CH_NUM) is used to parameterize the configuration module code and the verification environment code. The multi-channel DMA controller is the controller of the DMAC module.

[0031] The top-level simulation file includes an alarm signal assertion module (which can be recorded as dmac_ahb_assert) and a platform environment component (which can be recorded as env), an environment configuration component (which can be recorded as env_config), a channel configuration component (ch_config), a reference model component (which can be recorded as reference_model), a scoreboard component (which can be recorded as scoreboard), a register model component (which can be recorded as reg_ral) and a verification sequence library (which can be recorded as seq_lib) created based on the test case base class.

[0032] The platform environment component is used to perform AHB protocol communication with the DMAC module to be verified, simulate the real data transmission to the DMAC module according to the test case and monitor whether the protocol timing is correct. The platform environment component includes the AHB environment component (which can be recorded as ahb_system_env), CH_NUM DMA agent components (which can be recorded as dmac_agt) and the interrupt agent component (which can be recorded as irq_agt).

[0033] In some embodiments, the AHB environment component encapsulates an AHB environment configuration component (which can be recorded as ahb_sys_cfg), an AHB host agent component, a first AHB slave agent component (i.e., AHB slave agent component [0]), a second AHB slave agent component (i.e., AHB slave agent component [1]), and a virtual memory (which can be recorded as svt_mem). The AHB host agent component is used to parse the configuration data packet into a randomized stimulus and then drive it to the AHB interface of the DMAC module, and monitor whether the protocol timing is correct. The first AHB slave agent component and the second AHB slave agent component are respectively used to receive data from the DMAC module and transmit it to the scoreboard component, and monitor whether the protocol timing is correct. The virtual memory is used to store the output reference result for the DMAC module.

[0034] In some embodiments, the DMA agent component encapsulates a sequence manager and a request stimulus driver, the sequence manager is used to receive the configuration data corresponding to the verification sequence and then parse it into a request stimulus; the request stimulus driver is used to drive the request stimulus to the AHB interface of the DMAC module. The interrupt agent component encapsulates an interrupt monitor, and each DMA agent component is used to drive the request stimulus to the request interface of each DMAC channel, and to perform random constraints on the register configuration variables of each DMAC channel. After each channel is configured, the sequence manager creates an independent DMA request stimulus sequence for each DMAC channel, which contains a channel code for indication, and drives the stimulus in the sequence to the DMA request signal of the corresponding DMAC channel, and copies the sequence to the reference model component. The interrupt agent component monitors the various interrupt output signals of the DMAC module to be tested in real time, and packages them into data packets and sends them to the scoreboard component.

[0035] The AHB host agent component, the first AHB slave agent component and the second AHB slave agent component all include a sequence manager, an excitation driver and an AHB monitor. The AHB environment component is used to perform AHB protocol communication with the module under test DUT to simulate real data transmission, and the AHB monitor in the AHB environment component is used to monitor whether the protocol timing is correct in real time. It can be understood that each agent component includes a sequence manager, an excitation driver and an AHB monitor, and these components interact with other components to complete the AHB communication of the DMAC module, configure data packet reception and analysis, excitation conversion generation and driving, AHB protocol timing monitoring and other functions. Through the structural design of the above-mentioned master-slave agent component, different functional test tasks can be undertaken by the master-slave agent component respectively, and the test tasks can be executed more efficiently while having a certain redundant computing power, thereby improving the reliability of the system.

[0036] The environment configuration component is used to configure the AHB environment, that is, to configure the platform environment and integrate the channel configuration component. The channel configuration component is used to manage the configuration parameters of each DMAC channel.

[0037] The reference model component is used to simulate the basic functions of the DMAC module according to the test case. After receiving the DMA request stimulus sequence, the reference model component will parse the sequence and read the register variable data in the register model. According to the parsing result and the register variable data, the corresponding channel-coded data to be transmitted is read from the virtual memory and packaged as expected data. At the same time, an expected interrupt transaction is generated, and the expected data and the expected interrupt transaction are packaged into a data packet and sent to the scoreboard component.

[0038] The scoreboard component is used to compare the expected data with the actual transmitted data. The scoreboard component generates CH_NUM data collection and comparison function code blocks. In the scoreboard component, every time a transmission sequence is received from the AHB monitor, the transmission sequence will be parsed, and the actual value queue of the corresponding DMAC channel will be judged and pushed according to the transmission address in the transmission sequence, and new data will be pushed from the expected value queue of the DMAC channel for comparison. Similarly, every time an interrupt sequence is received from the interrupt monitor, it will be judged and queried whether there is a value in the expected interrupt queue of the corresponding DMAC channel. If the comparison fails, the simulation ends after printing the data comparison error message or the interrupt error message.

[0039] The register model component is used to configure the registers of the DMAC module. The verification sequence library is used to store and manage the verification sequence. The alarm signal assertion module is used to monitor whether the security mechanism of the DMAC module responds successfully when the test case is a security mechanism test case.

[0040] It can be understood that the test case can be created in advance according to the actual functional needs of the test verification, and the test case corresponding to the DMAC module is created according to the various functions to be tested of the DMAC module, thereby forming a corresponding configuration data packet. After the system calls the configuration data packet and parses it, the stimulus corresponding to the test case is transmitted to the DMAC module; at the same time, the randomized constraint stimulus can be set according to the configuration of the DMAC module to start the configuration data packet.

[0041] For example, when creating a basic functional test case for testing the basic functions of the module under test DUT (ie, DMAC module), randomized constraints are set in the basic functional test case according to the configuration requirements of the DUT, test stimuli are generated, and configuration data packets are started and run.

[0042] For another example, when creating a safety mechanism test case for testing the ECC error detection mechanism and redundancy mechanism of the module under test DUT, the safety mechanism of the module under test DUT will be enabled in the safety mechanism test case, and then errors or chip failure behaviors will be manually injected into the module under test DUT to actively trigger the alarm signal of the module under test DUT to detect whether its safety mechanism is correctly effective. The alarm signal assertion module can be used to implement the timing monitoring of the signals related to the safety mechanism. It checks whether the safety mechanism of the module under test DUT will falsely alarm under normal transmission at each rising edge of the clock, and outputs the corresponding alarm information, thereby fully and reliably supporting the verification of the safety mechanism of the module under test DUT.

[0043] The above components are built using SystemVerilog language and follow the UVM verification methodology. They can be built and obtained by using the components in the UVM verification methodology according to the test interaction functions required to be provided. For example, the verification sequence library is a library for storing and managing verification sequences. In the UVM verification methodology, verification sequences are objects used to generate test scenarios and interactions. They describe the sequence of events that occur in the test, such as input, output and timing relationships. The verification sequence library provides a structured way to organize and call these verification sequences. When the verification sequence library is used to manage the verification sequence, it provides a central location for users to register, store and retrieve customized verification sequences. Users can register their verification sequences in the verification sequence library so that these sequences can be accessed and executed in the test. Such registration is usually completed in the initialization phase of the test environment. Once the verification sequence is registered, other components (such as tests, other verification sequences, etc.) can call these sequences through the verification sequence library. In this way, the test scenario can create complex test cases by organically combining different sequences. The verification sequence library can support a hierarchy, allowing users to organize and manage multiple related verification sequences. The verification sequence library also supports dynamic configuration, allowing users to dynamically select and configure verification sequences as needed during runtime. Therefore, when performing verification tests, users can use the verification sequence library to dynamically configure verification sequences according to the test needs of the DMAC module, thereby supporting more complete verification tests.

[0044] In actual verification applications, a specific channel quantity control parameter CH_NUM can be passed in from an external definition file. It can be 1, 16, or any other positive integer, which must be consistent with the channel quantity of the DMAC module to be tested. The channel quantity control parameter CH_NUM will affect the generation of some verification components: CH_NUM channel configuration components will be generated, each channel configuration component controls the register parameter configuration of a DMAC channel, and the number of channel configuration components is consistent with the number of DMAC channels; DMA agent components will also generate CH_NUM. The function of the DMA agent component is to drive the request signal of the DMAC channel. Each DMA agent component corresponds to a DMA request signal group of a DMAC channel. It can be understood that the transmission of DMAC channel data depends on the DMA request signal. Each time a DMA request signal comes, the channel will perform a data transmission. The DMA request signals of different channels are not shared. If the number of channels changes, the number of DMA request signals will increase or decrease accordingly. Correspondingly, the number of DMA agent components will also change accordingly.

[0045] It can be understood that the introduction of channel number control parameters to automatically adapt the generation of platform components is the key to improving the overall flexibility and reusability of the verification platform.

[0046] In one embodiment, after the verification platform is ready, a virtual sequence will be started, in which the verification process of all channels will be started, such as Figure 2 As shown, the specific process can be as follows:

[0047] According to the number of channels of the DMAC module to be tested, a storage address range is divided in the virtual memory for each DMAC channel; the number of channels is equal to the channel number control parameter, which will be automatically substituted into a specific function for calculation to obtain the address range of each DMAC channel; and data to be transmitted is prepared in the virtual memory for each DMAC channel.

[0048] Randomize all variables in each channel configuration component, write the register parameters in the channel configuration component into the DUT under test through the AHB environment component, turn on each channel enable in the DUT, and prepare for transmission.

[0049] Create CH_NUM DMA request stimulus sequences, and drive the stimulus to the DMA request signal of each DMAC channel through the stimulus driver in each DMA agent component; at the same time, these sequences will be forwarded to the reference model component.

[0050] After receiving the DMA request stimulus sequence, the reference model component will calculate the reference result based on the configuration information of each DMAC channel and the result of stimulus analysis, read the data to be transmitted and the expected interrupt transaction generated in the virtual memory based on the reference result, and package the data to be transmitted and the expected interrupt transaction into a data packet and send it to the scoreboard component. The scoreboard component will store the received data packets into the expected value queue by channel classification. It can be understood that the expected interrupt transaction is an indication of the status of the module, and its status can be expected by the channel configuration component and the request stimulus sent. The scoreboard component will automatically generate a corresponding number of expected value queues and actual value queues according to the channel quantity control parameter, and each queue corresponds to a DMAC channel.

[0051] The AHB monitors in the AHB host agent component, the first AHB slave agent component and the second AHB slave agent component will collect the read behavior on the AHB interface in real time, and generate a new transmission sequence to send to the scoreboard component. After receiving the transmission sequence, the scoreboard component will determine which channel controls the data in the sequence and store it in the actual value queue, and try to take out the data from the expected value queue of the corresponding DMAC channel for comparison. If the comparison fails, the data comparison error message (err) will be printed. If the expected value queue is empty, the excessive data failure message will be printed.

[0052] The interrupt monitor in the interrupt proxy component collects and records the interrupt information sent by the DUT and sends it to the scoreboard component. After receiving the interrupt sequence sent by the interrupt proxy component, the scoreboard component will parse it and compare it with the expected interrupt from the reference model component. If the comparison fails, an error message (err) will be printed.

[0053] At the end of the entire verification process, a final check will be performed to check whether the expected value queues and actual value queues in the scoreboard component are empty. If they are not empty, it means that some data has not been compared. An error message indicating that the comparison between the expected value and the actual value failed will be printed and the simulation will be stopped. If they are empty, the simulation is successful.

[0054] Each module in the above-mentioned UVM-based multi-channel DMAC verification system can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a device with a data processing function in the form of hardware, or can be stored in a memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules. The aforementioned device can be, but is not limited to, various types of verification computer devices existing in the art.

[0055] In one embodiment, Figure 3 As shown, a multi-channel DMAC verification method based on UVM is provided, which may include the following processing steps S10 to S20:

[0056] S10, assigning values ​​to the channel quantity control parameters in the external definition file;

[0057] S12, initializing a multi-channel DMAC verification system through a top-level simulation file and a channel quantity control parameter;

[0058] S14, after connecting the components of the multi-channel DMAC verification system, start the configuration data packet corresponding to the test case to perform a verification test on the DMAC module to be tested;

[0059] S16, start a virtual test sequence, and start verification of all DMAC channels in the sequence;

[0060] S18, dividing the address range of the DMAC channel for transmitting data for each DMAC channel in the virtual memory according to the number of channels of the DMAC module, and preparing the data to be transmitted of the DMAC channel;

[0061] S20, write the transmission address and register configuration of each DMAC channel into the register of the DMAC module through the AHB host agent component, start channel transmission, and complete the verification process of the DMAC module.

[0062] The above-mentioned UVM-based multi-channel DMAC verification method builds a new UVM verification platform for multi-channel DMAC module verification based on UVM verification methodology. The platform consists of an alarm signal assertion module and platform environment components, environment configuration components, channel configuration components, reference model components, scoreboard components, register model components, and verification sequence library components created based on the test case base class. It integrates various components based on the AHB protocol, which makes the system structure of the platform scientific and reasonable in terms of function, and can generate randomized incentives for verification. By means of the input channel number control parameter, the entire verification can be flexibly changed, which is well adapted to the verification requirements of different channel numbers between different chips, and the degree of reusability has been greatly improved.

[0063] Compared with traditional multi-channel DMAC module verification technology, the design has built a highly automated and reusable verification environment, as well as a complete verification process. When the number of channels in the DMAC module design is changed, only the channel number control parameters of the verification platform need to be modified to directly perform verification, which greatly improves the verification efficiency and reduces the cost.

[0064] In one embodiment, after the virtual sequence ends, the UVM-based multi-channel DMAC verification method may further include the following steps:

[0065] Perform a final simulation check to check whether the actual value queues and expected value queues in the scoreboard component are empty. If they are not empty, print an error message indicating that the comparison between the expected value and the actual value failed and then stop the simulation. Otherwise, the simulation is complete.

[0066] In one embodiment, during the entire simulation running process of the verification process, the alarm signal assertion module monitors in real time whether an alarm signal is generated. If an alarm signal is generated, an error message is printed; otherwise, no alarm signal needs to be generated.

[0067] It can be understood that, for the specific limitations of the UVM-based multi-channel DMAC verification method, reference can be made to the corresponding limitations of the UVM-based multi-channel DMAC verification system described above, which will not be repeated here.

[0068] It should be understood that although Figure 3 The steps in the method are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 3At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0069] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0070] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0071] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A multi-channel DMAC verification system based on UVM, It is characterized in that It includes a top-level simulation file based on UVM verification methodology, which is used to initialize the verification system and start the test case; the top-level simulation file includes an alarm signal assertion module and a platform environment component, an environment configuration component, a channel configuration component, a reference model component, a scoreboard component, a register model component and a verification sequence library created based on a test case base class; The platform environment component is used to perform AHB protocol communication with the DMAC module to be verified, simulate the real data transmission to the DMAC module according to the test case and monitor whether the protocol timing is correct; the platform environment component includes an AHB environment component, CH_NUM DMA agent components and an interrupt agent component, CH_NUM is a channel number control parameter; The environment configuration component is used to configure the AHB environment, the channel configuration component is used to manage the configuration parameters of each DMAC channel of the DMAC module, the reference model component is used to simulate the basic functions of the DMAC module according to the test case, the scoreboard component is used to compare the expected data and the actually transmitted data of each DMAC channel, the register model component is used to configure the registers of the DMAC module, the verification sequence library is used to store and manage verification sequences, and the alarm signal assertion module is used to monitor whether the security mechanism of the DMAC module responds successfully when the test case is a security mechanism test case.

2. The multi-channel DMAC verification system based on UVM according to claim 1, It is characterized in that The AHB environment component encapsulates an AHB environment configuration component, an AHB host agent component, a first AHB slave agent component, a second AHB slave agent component and a virtual memory; The AHB host agent component is used to parse the configuration data packet into randomized stimulus and then drive it to the AHB interface of the DMAC module, and monitor whether the protocol timing is correct. The first AHB slave agent component and the second AHB slave agent component are respectively used to receive data from the DMAC module and transmit it to the scoreboard component, and monitor whether the protocol timing is correct. The virtual memory is used to store the output reference result for the DMAC module.

3. The multi-channel DMAC verification system based on UVM according to claim 1 or 2, It is characterized in that The DMA agent component encapsulates a sequence manager and a request stimulus driver. The sequence manager is used to receive configuration data corresponding to a verification sequence and then parse it into a request stimulus. The request stimulus driver is used to drive the request stimulus to the AHB interface of the DMAC module.

4. A multi-channel DMAC verification method based on UVM, It is characterized in that Applicable to the UVM-based multi-channel DMAC verification system according to any one of claims 1 to 3, the multi-channel DMAC verification method comprises the steps of: Assign values ​​to the channel quantity control parameters in the external definition file; Initialize a multi-channel DMAC verification system through a top-level simulation file and the channel quantity control parameter; After connecting the components of the multi-channel DMAC verification system, start the configuration data packet corresponding to the test case to perform a verification test on the DMAC module to be tested; Start a virtual test sequence and enable verification of all DMAC channels in the sequence; According to the number of channels of the DMAC module, the address range of the DMAC channel for transmitting data is divided for each DMAC channel in the virtual memory, and the data to be transmitted of the DMAC channel is prepared; The transmission address and register configuration of each DMAC channel are written into the register of the DMAC module through the AHB host agent component, the channel transmission is enabled, and the verification process of the DMAC module is completed.

5. the multi-channel DMAC verification method based on UVM according to claim 4, It is characterized in that Also includes the steps: Perform a final simulation check to check whether the actual value queues and expected value queues in the scoreboard component are empty; If it is not empty, the simulation will be stopped after printing the error message indicating the failure to compare the expected value with the actual value; otherwise, the simulation is completed.

6. The multi-channel DMAC verification method based on UVM according to claim 4, It is characterized in that Also includes the steps: During the entire simulation process of the verification process, the alarm signal assertion module is used to monitor in real time whether an alarm signal is generated; If an alarm signal is generated, an error message is printed, otherwise no alarm signal is generated.

Citation Information

Cited By

  • Chip verification system and method based on RGB image data

    CN119227605A

  • Credit control verification assembly, system and method for DAMQ

    CN119623376A

  • United verification method and device of USART and DMA, equipment and medium

    CN119962448A

  • Joint verification method, device and equipment of usart and dma, and medium

    CN119962448B

  • High completeness verification method suitable for multi-device multi-channel HINOC system

    CN120050209A