A UVM-based transponder chip multi-module synchronous verification platform and verification method
Through the multi-module synchronous verification platform and method based on UVM, the problem of low verification efficiency of the transponder chip in the existing technology is solved, and efficient simulation verification of the coordination and consistency of the multi-module transponder chip is realized, adapting to the needs of complex chip design.
Patent Information
- Application Number
- CN202111233476.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The existing transponder chip verification platform lacks systematic and modular verification methods, which makes it difficult to detect bugs in time, has low verification efficiency, and cannot meet the needs of complex chip design. Traditional verification technology cannot adapt to the increase in the complexity of integrated circuits.
Using the UVM-based multi-module synchronous verification platform and verification method of the transponder chip, the code writing and code reading of the transponder chip are simulated and verified through the excitation sequence generation module, writing agent, active agent, detector component and reference model component. Linked with active modules, transaction data packets are generated and compared to achieve multi-module coordination and consistency verification of the transponder chip.
It improves the verification efficiency of the transponder chip, can be closer to the actual application scenario of simulation, detects and corrects errors, improves the completeness and efficiency of verification, and is suitable for complex chip design.
Smart Images

Figure CN114036013B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of chip verification, and in particular relates to a UVM-based transponder chip multi-module synchronous verification platform and a verification method. Background Art
[0002] Existing transponder chips do not involve the use of UVM verification platform to verify the transponder module. In the past, the simulation verification platform for transponder chips was based on simple Verilog code, applying simple stimulation to the input and output ports, and there was no systematic and modular way to fully verify the transponder chip, which resulted in many bugs in the transponder chip not being discovered in time.
[0003] With the continuous development of the integrated circuit industry, the complexity of chip design has increased, and the chip scale has increased proportionally, which has brought difficulties to verification. A chip needs to be successfully taped out after multiple failed tape-outs. Improving the completeness of verification is a necessary condition for successful tape-out. Therefore, improving verification efficiency is an extremely urgent task at present. According to statistics, in the entire chip project cycle, the cycle used in the verification link gradually accounts for 80% of the total project cycle. Verification technology has not kept up with the development of design and manufacturing capabilities, and has become a bottleneck restricting the development of the chip design industry.
[0004] At present, the functional verification methods used in the verification field mainly include dynamic verification and prototype system verification. Dynamic verification mainly refers to a means of using a simulator to simulate the design to be tested to determine whether the function of the design to be tested is correct. In the dynamic verification method, the traditional verification technology is a directional test written in Verilog language. According to the different characteristics of the design to be tested, the test stimulus sequence is constructed one by one and applied to the design to be tested. The waveform and trace file are observed to determine whether the target design has achieved the expected function. The traditional verification technology Verilog language is limited by static instantiation and cannot be dynamically transformed according to the simulation situation. The verification platform built using it lacks hierarchy in structure. Traditional verification technology focuses more on the signal level. As the complexity of integrated circuits increases and the abstract level of design continues to increase, traditional verification methods are no longer applicable.
[0005] Prototype system verification takes advantage of FPGA's programmability and rich resources. Before the digital system design is tape-out, the RTL design model is comprehensively mapped to the FPGA unit to form a prototype system. The signal and state in the prototype system are sampled and observed by the logic analyzer to analyze whether the design function is correct. This verification method can reduce the development cost of large-scale system design and quickly simulate the logic capability of the design. However, the signal visibility of FPGA prototype system verification is poor, and it is difficult to verify the extreme boundaries under normal circumstances. Testing of extreme conditions can only be performed under special circumstances. It is generally suitable for stable post-system design integration verification, but not for functional verification in the early stage of chip development.
[0006] A transponder chip usually contains multiple functional modules. The overall linkage working process of the transponder is usually the result of the linkage of multiple modules. The common verification platform verifies each functional module one by one, which is not only inefficient but also cannot simulate the actual application scenario of the transponder. Summary of the invention
[0007] In view of the above problems, the present invention provides a transponder chip multi-module synchronous verification platform and verification method based on the UVM verification method, which can simulate the actual application scenario of the transponder and improve the verification efficiency.
[0008] A UVM-based transponder chip multi-module synchronization verification platform of the present invention comprises:
[0009] an excitation sequence generation module, configured to generate a transaction data packet, wherein the transaction data packet is configured according to the frame information of the transponder;
[0010] A writing agent, used for obtaining a writing transaction data packet from the stimulus sequence generating module and driving the writing module of the transponder to be verified, and performing simulation verification on the writing module and the reading module of the transponder to be verified;
[0011] An active agent, used to obtain an active transaction data packet from the stimulus sequence generation module and drive the active module of the transponder to be verified, and perform simulation verification on the active module;
[0012] A detector component, used for collecting actual data output by the transponder to be verified and sending it to a scoreboard;
[0013] A reference model component, used to generate reference data and send it to the scoreboard;
[0014] A scoreboard is used to obtain a verification result of the transponder to be verified after comparing the actual data with the reference data.
[0015] Further, the write agent includes a write stimulus sequence management module and a write driver packaged together;
[0016] Wherein, the write stimulus sequence management module is used to obtain the write code transaction data packet from the stimulus sequence generation module and pass it to the write driver;
[0017] The write driver is used to decompose the write code transaction data packet into signal-level data and drive the write code module through an interface module.
[0018] Further, the active agent comprises an active excitation sequence management module and the active driver packaged together;
[0019] The active excitation sequence management module is used to obtain the active transaction data packet from the excitation sequence generation module and pass it to the active driver;
[0020] The active driver is used to decompose the active transaction data packet into signal-level data and drive the active module through the interface module.
[0021] Furthermore, it also includes:
[0022] A virtual excitation sequence management module, the virtual excitation sequence management module bridges the write excitation sequence management module and the active excitation sequence management module;
[0023] The virtual excitation sequence management module has pointers to the write excitation sequence management module and the active excitation sequence management module, and is used to control and schedule the write excitation sequence management module and the active excitation sequence management module.
[0024] Furthermore, the detector assembly comprises:
[0025] An EEPROM input detector is used to detect signal changes at the port between the code reading module and the memory module EEPROM of the transponder chip, and to package the signal level data input to the code reading module port and restore it to the transaction data packet level before transmitting it to the scoreboard;
[0026] The reading module output detector is used to monitor the signal changes of the output ports of the reading module and the active module, and convert the collected signal level data of the output ports of the reading module and the active module into the transaction data packet level and transmit it to the scoreboard.
[0027] Furthermore, the reference model component includes:
[0028] A reading model, used to complete the same functions of the code writing module and the code reading module, and output corresponding reference data to the scoreboard;
[0029] The active model is used to complete the same function as the active module and output reference data corresponding to the active module to pass to the scoreboard.
[0030] The present invention also provides a UVM-based transponder chip multi-module synchronization verification method, comprising the following steps:
[0031] The write agent obtains the write transaction data packet and drives the transponder write module, and the active agent obtains the active transaction data packet and drives the transponder active module;
[0032] The code writing module parses the code writing transaction data packet to obtain a control command, and analyzes and determines whether the control command is: a read active signal command;
[0033] If the control command is not a read active signal command, the code writing module sends the control command to the code reading module, and the code reading module performs transponder function verification according to the received control command;
[0034] If the control command is a command for reading active signals, the code reading module reads active data from the active module and then performs read and write verification of active signals.
[0035] Furthermore, the control commands include: a write code command, a read ID command, a passive command and a read active signal command.
[0036] Furthermore, the code reading module performs transponder function verification according to the received control command, including the following steps:
[0037] When the control command obtained by the code writing module through parsing the code writing transaction data packet is: a code writing command, an ID reading command or a passive command, the code reading module is driven;
[0038] When the control command is a code writing command, the code reading module establishes a channel after receiving the code writing command, and outputs the corresponding code writing timing to the memory module EEPROM of the transponder chip;
[0039] When the control command is a read ID command or a passive command, the code reading module establishes a channel after receiving the read ID command or the passive command, and reads out the response command in the EEPROM of the memory module;
[0040] The EEPROM input detector collects address data of the memory module EEPROM and transmits it to the read model, and the read model simulates the function of the RAM to generate expected EEPROM data as the first reference data;
[0041] The read module output detector collects first actual data of the EEPROM port of the memory module;
[0042] The first reference data and the first actual data are compared in a scoreboard, and a verification result is obtained based on the comparison result analysis.
[0043] Further, comparing the first reference data with the first actual data to determine whether they are consistent:
[0044] If the first reference data is consistent with the first actual data, the verification is completed;
[0045] If the first reference data is inconsistent with the first actual data, the verification is suspended, and after performing problem finding and error correction operations, the verification is performed again.
[0046] Furthermore, the read and write verification of the active signal includes the steps of:
[0047] The active module establishes an active channel, and the code reading module reads active data from the active module;
[0048] The EEPROM input detector collects the active data read by the code reading module from the active module as the second actual data;
[0049] The active model obtains the active transaction data packet from the active agent, performs symbol conversion on the active transaction data packet and transmits it to the scoreboard as the second reference data;
[0050] The second reference data and the second actual data are compared in the scoreboard, and a verification result is obtained based on the comparison result analysis.
[0051] Further,
[0052] Compare the second reference data with the second actual data to see whether they are consistent:
[0053] If the second reference data is consistent with the second actual data, the verification is completed;
[0054] If the second reference data is inconsistent with the second actual data, the verification is suspended, and after performing problem finding and error correction operations, the verification is performed again.
[0055] The transponder chip verification platform and verification method based on the UVM verification method of the present invention, the code writing module, the code reading module and the active module of the transponder chip to be tested are designed, and the linkage between multiple modules in the working process of the transponder chip is taken into consideration. Simultaneously instantiating the three modules as the design DUT to be tested for simulation verification is more in line with the mutual cooperation and operation relationship between the code reading module, the code writing module and the active module of the transponder chip, and a closer simulation of the actual environment can be achieved. Verifying the three modules as a whole, compared with verifying the individual modules, converting part of the external interface into an internal interface signal, reducing the number of interface excitations that need to be applied, and at the same time, the signal coordination between the modules is closer, requiring a module to coordinate the output of another module, and the signal needs to be observed jointly during debugging, which reflects the coordinated and consistent work of the three modules of the transponder; it can verify the functional modules in multiple transponder chips at the same time, and can improve the verification efficiency of the transponder chip.
[0056] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A schematic diagram of the architecture of a transponder chip multi-module synchronous verification platform based on UVM according to an embodiment of the present invention is shown;
[0059] Figure 2 A data flow chart of a UVM-based transponder chip multi-module synchronous verification method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.
[0061] Universal Verification Methodology (UVM) is a verification platform development framework based on SystemVerilog class library. Verification engineers can use its reusable components to build a functional verification environment with standardized hierarchical structure and interface. In recent years, because the UVM verification method not only overcomes the shortcomings of traditional verification methods, but also has obvious advantages in building a verification environment, the UVM verification methodology adopts the verification language of SystemVerilog, which is an extension set of Verilog and is fully compatible with Verilog. It has the characteristics of object-oriented language: encapsulation, inheritance and polymorphism, and also provides some unique features for verification, such as constraints, functional coverage, etc.
[0062] UVM is a verification platform development framework based on the System Verilog class library. Verification engineers can use its reusable components to build a functional verification environment with standardized hierarchical structures and interfaces. UVM verification methodology effectively combines methods such as random generation of test stimuli, self-test platforms, and randomized constraints. It uses the best framework to achieve coverage-driven verification, allowing verification engineers to reduce risks by adopting advanced verification techniques to meet the urgent need to shorten product time to market.
[0063] The role of the verification platform is to find out possible errors in the design. The present invention will build a verification environment for the transponder chip based on the UVM advanced verification method. A verification platform structure of the transponder chip based on UVM of the present invention includes:
[0064] The device under test (DUT) and verification components, the verification components and the DUT are interconnected through the SV (system verilog) interface, so as to test the interface of the DUT and the actual system function of the DUT to ensure that the DUT can run according to the established logic after assembly and realize the corresponding functions.
[0065] The verification environment is built using UVM verification methodology and SystemVerilog language. The verification component is based on UVM methodology, and the various parts of the verification component communicate data using TLM interface (Transaction Level Model).
[0066] The structure of the UVM-based transponder chip verification platform is as follows: Figure 1 As shown, Figure 1As shown, in a specific embodiment of the present invention, the DUT to be tested is a transponder chip. Since the three modules are not used simultaneously during the operation of the transponder chip, the DUT to be tested in the embodiment of the present invention includes a code writing module DUT1 (u_write), a code reading module DUT2 (u_read) and an active module DUT3 (u_volatile) of the transponder chip, and these three modules are verified.
[0067] The invention discloses a UVM-based transponder chip multi-module synchronous verification platform, and based on the verification platform, provides a transponder chip multi-module synchronous verification method for verifying the transponder chip.
[0068] See also Figure 1 In a specific embodiment of the present invention, the verification component includes:
[0069] The stimulus sequence generation module sequence is used to generate a transaction data packet, that is, to generate a random test stimulus that meets the constraints, that is, to generate a transaction data packet corresponding to the module under test. Among them, the transaction data packet is configured according to the frame information of the transponder. According to the frame information of the transponder, configuring the transaction data packet is equivalent to configuring the various parameters of the transponder frame, and data exchange is exchanged in frames. The transponder frame information in the present invention mainly includes input configuration commands, operation commands, control commands, addresses, write data, read data, etc. Configuration input commands are divided into read passive or active commands, write code commands, read active default commands, read ID commands and invalid commands. The DBPL code (Differential BiPhase Level) is set to a single bit here, and each data packet has 1024 bits.
[0070] A stimulus sequence manager, used for sending the random test stimulus to a driver;
[0071] In this embodiment, the excitation sequence management sequencer includes write_sequencer (write excitation sequence management module) and volatile_sequencer (active excitation sequence management module), wherein write_sequencer and volatile_sequencer are connected through virtual_sequencer (virtual excitation sequence management module), and virtual_sequencer has pointers to write_sequencer and volatile_sequencer to control write_sequencer and volatile_sequencer, and its role is similar to that of a central router, playing a role of unified scheduling.
[0072] A driver, used for driving the random test stimulus to drive the DUT port of the design under test;
[0073] In this embodiment, the driver driver includes write_driver (write driver) and volatile_driver (active driver), among which write_driver and volatile_driver are drivers in the test platform, and are mainly responsible for decomposing the transaction data packets transmitted by write_sequencer and volatile_sequencer into signal-level data, and then driving the design DUT to be tested through the interface module.
[0074] Specifically, write_driver and volatile_driver play a connecting role in the verification platform. Data is packaged in the sequence and sent to write_sequencer and volatile_sequencer respectively under the control of virtual_sequencer. Write_sequencer and volatile_sequencer are used to detect whether there is a request to send a transaction data packet in the arbitration queue, and to detect whether write_driver and volatile_driver apply for a transaction data packet request, and are responsible for passing the transaction data packets generated by the sequence to write_driver and volatile_driver respectively. The transaction data packets pass through write_driver and volatile_driver respectively, and then pass through the interface module to become a signal level and are applied to the design under test DUT.
[0075] Since UVM provides a rich class library, when designing write_driver and volatile_driver, you first need to derive the write_driver class and volatile_driver class from the uvm_driver class provided by UVM. At the beginning of the core part of the code, you need to register the write_driver class and volatile_driver class with the factory (class factory). The factory mechanism can automatically create a verification platform instance for a class and call the functions and tasks contained therein.
[0076] Reference model component, used to generate reference data and send it to the scoreboard;
[0077] The reference model components include read_model (read model) and volatile_model (active model), which are used to complete the same functions as the corresponding module DUT to be tested and obtain the expected results. The reference data output by the reference model component is sent to the scoreboard and received by the scoreboard for comparison with the actual data output by the module DUT to be tested.
[0078] The actual data is stored in a memory module EEPROM (Electrically Erasable Programmable read only memory) of the transponder chip.
[0079] The detector component is used to collect the actual data output by the transponder to be verified (i.e., collect the data output by the port of the design under test DUT) and pass it to the scoreboard;
[0080] The detector assembly includes:
[0081] EEPROM_imonitor (EEPROM input detector), used to detect the signal change of the port between the code reader module and the memory module EEPROM, and pack the signal level data input to the code reader module port and restore it to the transaction data packet level before passing it to the scoreboard;
[0082] read_omonitor (read module output detector) is used to monitor the signal changes of the output ports of the code reading module and the active module, and convert the collected signal level data of the output ports of the code reading module and the active module into the transaction data packet level and pass it to the scoreboard.
[0083] The scoreboard is used to compare the actual data collected with the reference data generated by the reference model to obtain the verification result of the transponder to be verified (the module being verified).
[0084] The process of transmitting transaction data packets is as follows: when the driver asks the sequencer for a transaction data packet, the sequencer will in turn ask the sequence for data. When the sequence finds a transaction data packet, it will transmit the transaction data packet to the sequencer.
[0085] See also Figure 1 and Figure 2 , write_driver is used to drive the DUT1 (u_write) interface, and volatile_driver is used to drive the DUT3 (u_volatile) interface and part of the DUT2 (u_read) interface.
[0086] like Figure 1 As shown, the detector monitor includes EEPROM_imonitor and read_omonitor.
[0087] EEPROM_imonitor is used to detect the changes in port signals between DUT2 and EEPROM. EEPROM_imonitor is responsible for packaging the signal-level data input to the DUT2 signal port and restoring it to the data packet level. EEPROM_imonitor collects and converts the cs (EEPROM output control line), cp (EEPROM clock input line) and di (EEPROM operation command and data line) signals of the DUT2 port into the address of the EEPROM, and then sends the address information of the EEPROM to read_model.
[0088] read_omonitor is used to monitor the changes of the output port signals of DUT (including DUT2 and DUT3), obtain the DUT output port data, and convert the data in the DUT port into the transaction data packet level and pass it to the scoreboard for processing.
[0089] Specifically, read_omonitor collects the port data of DUT2, which includes two parts: one part is the data of the EEPROM port (i.e., the port signal change between DUT2 and EEPROM), and the other part belongs to the data of the active module DUT3 (u_volatile); then the collected data is handed over to the scoreboard. read_omonitor does not make judgments on the classified data, and the scoreboard performs the judgment on the classified data.
[0090] read_model completes the process of receiving the EEPROM address passed in from EEPROM_imonitor and transmitting the EEPROM data out; volatile_model completes the reading and writing process of the data flow active module. The two models together complete the same function as DUT. read_model and volatile_model obtain the transaction data packet from the iagent module (write agent and active agent) and pass the transaction data packet to the scoreboard. In UVM, the TLM interface is usually used to implement transaction-level communication between various verification components.
[0091] Since read_omonitor needs to be connected with DUT through interface, vif (virtual interface) needs to be declared in the code. In the present embodiment, a class of uvm_analysis_port is declared. The purpose of declaring this kind is to facilitate the interaction between detector component (read_omonitor or EEPROM_imonitor) and other modules. Wherein " uvm_analysis_port " is the basic class in UVM verification method, for transmitting transaction data packets.
[0092] See also Figure 1 In a preferred embodiment of the present invention, an agent is used to encapsulate sequencer and driver together, write_sequencer and write_driver are instantiated and encapsulated in write_iagent (write agent), and volatile_sequencer and volatile_driver are instantiated and encapsulated in volatile_iagent (active agent). After that, the verification platform only needs to establish a connection with the design under test DUT through the agent module, so that the tree structure of the UVM verification platform is clearer. Wherein, driver and sequencer are both basic component types in the UVM verification method, and this application expands the volatile_sequencer class based on the uvm_sequencer class according to the specific situation of the transponder chip.
[0093] EEPROM_iagent (EEPROM input agent) and read_oagent (read module output agent) are used to encapsulate EEPROM_imonitor and read_omonitor respectively. Here, the is_active variable needs to be set to UVM_PASSIVE mode. At this time, no signal needs to be driven at the output port, only the signal needs to be detected. Only the detector component monitor (read_omonitor or EEPROM_imonitor) is needed on the port, without instantiating the driver.
[0094] The scoreboard module is used to judge whether the behavior of the DUT is consistent with the expectation based on the output of the DUT. The expectation is the reference data generated by the reference model. It compares the actual data obtained by the read_omonitor of the read_oagent of the DUT at the receiving end with the expected output data of the read_model and volatile_model at the sending end. The scoreboard compares the two data according to the judgment conditions.
[0095] Among them, the actual EEPROM data collected by read_omonitor (i.e., the DUT port output data, the memory module EEPROM is connected to the design DUT to be tested, and the ports are also connected together) is compared with the EEPROM data expected by read_model; the actual data of the active module collected by read_omonitor is compared with the active transaction data packet expected by volatile_model.
[0096] The specific comparison process is: obtain the data of read_model and volatile_model through exp_port (expected port), and obtain the data of read_omonitor through act_port (actual port). Specifically, two processes are established through fork in main_phase. One process processes the data of exp_port. After receiving the data, the data is put into expect_queue; the other process processes the data of act_port, that is, the output data of the transponder chip DUT. After collecting these data, the data previously received from exp_port is popped out from expect_queue (expected queue), and the compare function of transaction is called to compare the data. If the two data are consistent, the verification / simulation is completed. If the two data are inconsistent, the verification process is suspended, and the transponder chip verification needs to be repeated after further finding the problem and correcting the error.
[0097] like Figure 2 As shown, when the verification platform of the present invention verifies the transponder chip, the operation data flow between the verification platform and the DUT includes two parts:
[0098] 1. When the operation command is analyzed as writing code, reading ID or passive signal, write_driver drives DUT1 (u_write) interface, establishes a channel through DUT2 (u_read), and then accesses the data stored in the memory module EEPROM.
[0099] 2. When the operation command is analyzed as reading active signals, volatile_driver is used to drive the DUT3 (u_volatile) module, and then the active signal reading and writing process is completed through DUT2 (u_read).
[0100] Common TDY transponder devices are divided into two types: active transponders and passive transponders. The system architecture of the device is divided into active circuit part and passive circuit part. Among them, the active transponder is composed of passive circuit part and active circuit part, and the passive transponder is only composed of passive circuit part.
[0101] The transponder chip is composed of four functional modules, namely, a code reading module, a code writing module, an active module A and an active module B, as well as modules peripheral to the transponder chip (including clock management, reset synchronization and signal synchronization modules) and a memory module EEPROM.
[0102] The data stream transmission method of the transponder, i.e., DUT, is as follows: the transponder starts the code writing module, analyzes the DBPL code encoding rules, parses the code metadata, and performs data command operations. When the code writing control command is received, the code reading module establishes a channel and outputs the corresponding code writing timing to the EEPROM; when the output active message command is received, the active module is started, and the code reading module establishes an output active message channel.
[0103] See also Figure 1 and Figure 2 In a specific embodiment of the present invention, the linkage process between the UVM-based transponder chip verification platform and the design under test DUT includes the following two processes:
[0104] 1. The write agent (write_agent module) obtains the write code transaction data packet and drives the transponder write code module, that is, DUT1 (u_write) in the figure. DUT1 (u_write) parses the code data according to the code transmission rate and DBPL code encoding rules, and analyzes the data command. When it is parsed as a write code (including write ID and write message) or read ID, passive command, it controls the corresponding control line and sets it to the corresponding level;
[0105] Then the code reading module DUT2 (u_read) is driven. If it is a code writing control command, after DUT2 (u_read) receives the command, it establishes a channel and outputs the corresponding code writing timing to the memory module EEPROM; if it is a read ID or passive control command, after DUT2 (u_read) receives the command, it establishes a channel and reads the response command in the memory module EEPROM.
[0106] Then EEPROM_imonitor collects the address data of the memory module EEPROM and transmits it to read_model. Read_model simulates the function of memory (RAM, random access memory) to generate the expected EEPROM data as the first reference data (that is, the generated reference data is the same as the data type / format in the memory module EEPROM, which is convenient for subsequent comparison); read_omonitor collects the data from the EEPROM port as the first actual data, and compares the first reference data with the first actual data in the scoreboard to see if they are consistent. If they are consistent, the simulation / verification ends. If the comparison is inconsistent, find the problem and correct the error.
[0107] 2. The active agent (volatile_agent) obtains the active transaction data packet and drives the transponder active module, that is, Figure 1 The active module DUT3 (u_volatile) in the code writing module DUT1 (u_write) is parsed as a module with active code element command, and the active module DUT3 (u_volatile) establishes an active channel, and the transponder code reading module is Figure 1 DUT2 (u_read) in the simulation reads active data from DUT3 (u_volatile) module; volatile_model obtains active transaction data packets from active agents and performs code conversion on active transaction data packets; after converting 1024-bit transaction code elements into 32-bit×32-bit code elements, they are passed to the scoreboard as the second reference data; read_imonitor collects active data from DUT3 (u_volatile) read from DUT2 (u_read) as the second actual data, and then the scoreboard compares the second actual data of read_omonitor and volatile_model with the second reference data. If they are consistent, the simulation ends. If the comparison is inconsistent, the problem is re-searched and the error is corrected. The specific flow chart is as follows: Figure 2 shown.
[0108] The present invention specifically performs synchronous verification on the code writing module, the code reading module and the active module. The verification platform of the present invention can also perform individual verification on each module: if each module is verified individually, it is only necessary to pay attention to the internal and external signal conditions of the single module and whether the function of the single module is realized, without considering the linkage conditions of other modules.
[0109] For example, to verify the code writing module alone, it is necessary to parse the input commands from the code reading and active modules, check how the code writing module processes these signals, and then observe whether the output signals are valid. This does not take into account the impact of the dynamic signals generated by the code reading or active module when it is working on the code writing module. Verification alone will result in inadequate verification.
[0110] The above process of the present invention is a process for simultaneously verifying the three modules, namely the code writing module DUT1 (u_write), the code reading module DUT2 (u_read) and the active module DUT3 (u_volatile). The present invention adopts the joint verification of the three modules, which is more in line with the actual application scenario of the transponder, and the joint verification of the three modules can mobilize the overall working process of the transponder, and finally achieve the coordinated work of the three modules. In this case, the verification is more in line with the overall linkage working process of the transponder.
[0111] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A UVM-based transponder chip multi-module synchronization verification platform, characterized in that: include: an excitation sequence generation module, configured to generate a transaction data packet, wherein the transaction data packet is configured according to the frame information of the transponder; A writing agent, used for obtaining a writing transaction data packet from the stimulus sequence generating module and driving the writing module of the transponder to be verified, and performing simulation verification on the writing module and the reading module of the transponder to be verified; An active agent, used to obtain an active transaction data packet from the stimulus sequence generation module and drive the active module of the transponder to be verified, and perform simulation verification on the active module; A detector component, used for collecting actual data output by the transponder to be verified, and sending it to a scoreboard; the detector component includes: an EEPROM input detector, used for detecting signal changes at the port between the code reading module and the memory module EEPROM of the transponder chip, and packaging and restoring the signal level data input to the code reading module port to a transaction data packet level before transmitting it to the scoreboard; a reading module output detector, used for monitoring signal changes at the output ports of the code reading module and the active module, and converting the collected signal level data at the output ports of the code reading module and the active module to a transaction data packet level and transmitting it to the scoreboard; A reference model component, used to generate reference data and send it to the scoreboard; the reference model component includes: a reading model, used to complete the same functions of the code writing module and the code reading module, and output the corresponding reference data to the scoreboard; an active model, used to complete the same functions of the active module, and output the reference data corresponding to the active module to the scoreboard; A scoreboard is used to obtain a verification result of the transponder to be verified after comparing the actual data with the reference data.
2. The UVM-based transponder chip multi-module synchronous verification platform according to claim 1, characterized in that, The write agent includes a write stimulus sequence management module and a write driver packaged together; Wherein, the write stimulus sequence management module is used to obtain the write code transaction data packet from the stimulus sequence generation module and pass it to the write driver; The write driver is used to decompose the write code transaction data packet into signal-level data and drive the write code module through an interface module.
3. The UVM-based transponder chip multi-module synchronous verification platform according to claim 2, characterized in that, The active agent includes an active excitation sequence management module and an active driver packaged together; The active excitation sequence management module is used to obtain the active transaction data packet from the excitation sequence generation module and pass it to the active driver; The active driver is used to decompose the active transaction data packet into signal-level data and drive the active module through the interface module.
4. The UVM-based transponder chip multi-module synchronization verification platform according to claim 3, characterized in that, Also includes: A virtual excitation sequence management module, the virtual excitation sequence management module bridges the write excitation sequence management module and the active excitation sequence management module; The virtual excitation sequence management module has pointers to the write excitation sequence management module and the active excitation sequence management module, and is used to control and schedule the write excitation sequence management module and the active excitation sequence management module.
5. A UVM-based transponder chip multi-module synchronization verification method, characterized in that: The following steps are included: The write agent obtains the write transaction data packet and drives the transponder write module, and the active agent obtains the active transaction data packet and drives the transponder active module; The code writing module parses the code writing transaction data packet to obtain a control command, and analyzes and determines whether the control command is: a read active signal command; If the control command is not a read active signal command, the code writing module sends the control command to the code reading module, and the code reading module performs transponder function verification according to the received control command; The code reading module performs transponder function verification according to the received control command, including: when the control command obtained by the code writing module parsing the code writing transaction data packet is: a code writing command, a read ID command or a passive command, the code reading module is driven; when the control command is a code writing command, the code reading module establishes a channel after receiving the code writing command, and outputs the corresponding code writing timing to the memory module EEPROM of the transponder chip; when the control command is a read ID command or a passive command, the code reading module establishes a channel after receiving the read ID command or the passive command, and reads out the response command in the memory module EEPROM; the EEPROM input detector collects the address data of the memory module EEPROM and transmits it to the read model, and the read model simulates the function of RAM to generate the expected EEPROM data as the first reference data; the read module output detector collects the first actual data of the memory module EEPROM port; compares the first reference data with the first actual data in the scoreboard, and obtains the verification result according to the comparison result analysis; If the control command is a command to read an active signal, the code reading module performs read and write verification of the active signal after reading the active data from the active module; the read and write verification of the active signal includes the following steps: the active module establishes an active channel, and the code reading module reads the active data from the active module; the EEPROM input detector collects the active data read by the code reading module from the active module as the second actual data; the active model obtains the active transaction data packet from the active agent, and performs code element conversion on the active transaction data packet and transmits it to the scoreboard as the second reference data; the second reference data is compared with the second actual data in the scoreboard, and the verification result is obtained based on the comparison result analysis.
6. The UVM-based transponder chip multi-module synchronous verification method according to claim 5, characterized in that, The control commands include: a write code command, a read ID command, a passive command and a read active signal command.
7. The UVM-based transponder chip multi-module synchronous verification method according to claim 5, characterized in that, Comparing the first reference data with the first actual data to see whether they are consistent: If the first reference data is consistent with the first actual data, the verification is completed; If the first reference data is inconsistent with the first actual data, the verification is suspended, and after performing problem finding and error correction operations, the verification is performed again.
8. The UVM-based transponder chip multi-module synchronous verification method according to claim 5, characterized in that, Compare the second reference data with the second actual data to see whether they are consistent: If the second reference data is consistent with the second actual data, the verification is completed; If the second reference data is inconsistent with the second actual data, the verification is suspended, and after performing problem finding and error correction operations, the verification is performed again.
