CN114116342A - Excitation control method of application register component - Google Patents
Excitation control method of application register component Download PDFInfo
- Publication number
- CN114116342A CN114116342A CN202111404041.3A CN202111404041A CN114116342A CN 114116342 A CN114116342 A CN 114116342A CN 202111404041 A CN202111404041 A CN 202111404041A CN 114116342 A CN114116342 A CN 114116342A
- Authority
- CN
- China
- Prior art keywords
- component
- information data
- state information
- register
- uvm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000005284 excitation Effects 0.000 title claims abstract description 31
- 238000012360 testing method Methods 0.000 claims abstract description 13
- 238000012795 verification Methods 0.000 claims abstract description 13
- 230000005540 biological transmission Effects 0.000 claims abstract description 9
- 238000004806 packaging method and process Methods 0.000 claims description 7
- 238000012546 transfer Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 6
- 238000012544 monitoring process Methods 0.000 description 5
- 239000000872 buffer Substances 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/263—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/39—Circuit design at the physical level
- G06F30/398—Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
The invention discloses an excitation control method of an application register component, which comprises the steps of establishing an interface and a transaction which are required by a tested device, wherein the transaction corresponds to the interface; creating a register component in a verification environment of UVM, wherein the register component acquires and temporarily stores state information data of a device to be tested; the register component transmits state information data to other components and objects in the UVM through the transmission component of the UVM; creating an execution event in an excitation component of the UVM, wherein the excitation component acquires state information data through a transmission component and triggers the execution event; an execution component in the stimulus component applies the execution event and the state information data to generate and control the test stimulus. The invention combines the communication between the UVM components and the configuration database to realize the control of the generation and the sending of the stimulus according to the state of the DUT, and provides a new technical route and thought selection for the generation and the control of the stimulus so as to meet the working habits of different developers.
Description
Technical Field
The invention relates to the technical field of chip verification, in particular to an excitation control method of an application register component.
Background
Generally, in order to verify a DUT (Device Under Test) designed by RTL (Register Transfer Level), it is necessary to apply corresponding input stimuli to the DUT, and verify the DUT by monitoring and comparing output results of the DUT. However, in the verification process, it is necessary to determine what stimulus is to be applied to the DUT next according to the internal state of the DUT, and therefore, it is necessary to know the internal state of the DUT in the sequence and generate the sequence _ item.
In the prior art, the following two implementation methods of fig. 1 and fig. 2 exist:
fig. 1 is a first implementation method, that is, an internal state signal in a DUT is encapsulated into an interface, and then the interface is transmitted to a verification environment through config _ db, at this time, since a sequence stimulus is mounted on a corresponding sequence r, a virtual interface handle of the internal state signal of the DUT can be taken in the sequence, and the sequence can monitor a value on the interface, so that what stimulus is to be applied to the DUT next step is finally implemented in the interface according to the internal state signal of the DUT.
Fig. 2 shows a second implementation method, in order to verify the correctness of the DUT operation function, a corresponding reference model is usually written, and then the same stimulus is applied to both to compare the output results of both, and if they are consistent, the function is considered to be expected, otherwise, where a problem may occur, further debugging determination is needed. In short, there should also be a part of internal state signals corresponding to the DUT in the reference model, and then the handle of the reference model is directly passed to the sequence, and then the sequence can be taken to the handle of the reference model because the sequence is also mounted on the sequence, so that it can finally decide what kind of stimulus to be applied to the DUT next according to the DUT internal state signals corresponding to the reference model.
Disclosure of Invention
According to an embodiment of the present invention, a method for controlling an excitation of an application register component is provided, which includes the following steps:
creating an interface and a transaction required by the tested device, wherein the transaction corresponds to the interface;
creating a register component in a verification environment of UVM, wherein the register component acquires and temporarily stores state information data of a device to be tested;
the register component transmits state information data to other components and objects in the UVM through the transmission component of the UVM;
creating an execution event in an excitation component of the UVM, wherein the excitation component acquires state information data through a transmission component and triggers the execution event;
an execution component in the stimulus component applies the execution event and the state information data to generate and control the test stimulus.
Further, the interface includes: the input interface and the output interface respectively comprise a clock control block.
Further, the registering component acquiring and temporarily storing the state information data comprises the following sub-steps:
the packaging component of the UVM acquires the state information of the tested device;
packaging the state information of the tested device by the packaging assembly to obtain state information data;
the register component acquires and temporarily stores the state information data from the packaging component.
Further, the step of the incentive component acquiring the status information data through the transmission component comprises the following sub-steps:
creating an acquisition method in a register component;
the excitation component acquires the handle of the register component through the transmission component;
the excitation component uses the handle of the register component to call the acquisition method, and the excitation component uses the acquisition method to acquire the state information data.
According to the excitation control method of the application register component, the generation and the sending of the excitation are controlled according to the state of the DUT by combining the communication between the UVM components and the configuration database, and a new technical route and a new thought selection are provided for the generation and the control of the excitation so as to meet working habits of different developers.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and are intended to provide further explanation of the claimed technology.
Drawings
FIG. 1 is a schematic diagram of a prior art excitation control method using register elements;
FIG. 2 is a schematic diagram of a second prior art excitation control method using register elements;
FIG. 3 is a flowchart of an excitation control method using register elements according to an embodiment of the present invention;
FIG. 4 is a flowchart of the substeps of step S2 according to an embodiment of the present invention;
FIG. 5 is a flowchart of the substeps of step S4 according to an embodiment of the present invention;
FIG. 6 is an abstracted DUT example block diagram illustrating an example precision matching module;
FIG. 7 is a schematic diagram of an excitation control method using register elements according to an embodiment of the present invention;
fig. 8 is a schematic diagram of communications between application uvm _ tlm _ analysis _ fifo in fig. 7.
Detailed Description
The present invention will be further explained by describing preferred embodiments of the present invention in detail with reference to the accompanying drawings.
First, an excitation control method based on a Universal Verification Methodology (UVM) according to an embodiment of the present invention will be described with reference to fig. 3 to 8, where the excitation control method is used for chip Verification and has a wide application range.
As shown in fig. 3, the excitation control method of the application register component according to the embodiment of the present invention includes the following steps:
in S1, interfaces and transactions required by the Device Under Test (DUT), which correspond to the interfaces, are created as shown in fig. 3 and 7.
Further, the interface includes: the input interface and the output interface respectively comprise a clock control block, so that driving and monitoring are facilitated.
In S2, as shown in fig. 3 and 7, a register component (tlm _ analysis _ fifo) is created in the verification environment (env) of the UVM, and the register component (tlm _ analysis _ fifo) acquires and temporarily stores state information data of the Device Under Test (DUT).
Further, the register component (tlm _ analysis _ fifo) acquires and temporarily stores the status information data, comprising the sub-steps of:
in S21, the UVM package assembly (monitor) acquires status information of the Device Under Test (DUT), as shown in fig. 4.
In S22, as shown in fig. 4, the package component (monitor) packages the state information of the Device Under Test (DUT) and obtains state information data.
In S23, as shown in fig. 4, the register element (tlm _ analysis _ fifo) acquires and temporarily stores the state information data from the package element (monitor).
In S3, the register component (tlm _ analysis _ fifo) transfers the state information data to other components and objects in the UVM through the transfer component (config _ db) of the UVM, as shown in fig. 3.
In S4, as shown in fig. 3, an execution event is created in the stimulus component (sequence) of the UVM, and the stimulus component (sequence) acquires the state information data through the pass component (config _ db) and triggers the execution event.
Further, the obtaining of the status information data by the stimulus component (sequence) through the passing component (config _ db) comprises the sub-steps of:
in S41, as shown in fig. 5, a fetch method is created in the register element (tlm _ analysis _ fifo).
In S42, as shown in fig. 5, the stimulus component (sequence) acquires the handle of the register component (tlm _ analysis _ fifo) through the pass component (config _ db).
In S43, as shown in fig. 5, the stimulus component (sequence) calls the acquisition method using the handle of the register component (tlm _ analysis _ fifo), and the stimulus component (sequence) acquires the state information data using the acquisition method.
In S5, as shown in fig. 3, the execution component (sequence) in the stimulus component (sequence) applies the execution event and state information data to generate and control the test stimulus, so as to provide more implementation method choices for the verifier in the actual chip verification work.
This embodiment generates and controls test stimuli for the DUT as follows:
sending a write request, fully writing the internal storage space until write failure occurs, namely the storage space is fully written, and monitoring whether the total written data quantity is consistent with expectation or not at the moment, thereby helping to judge whether the storage space and the write request operation are successfully executed or not; and then sending a read request to read (delete) the previously written data until a read (delete) failure occurs, namely the storage space is emptied, monitoring whether the total written data quantity is consistent with the expectation, and monitoring and comparing whether the read data is consistent with the previously written data, thereby helping to judge whether the read-write function is correct.
As shown in fig. 7, according to the stimulus control method using register elements in the embodiment of the present invention, in the UVM verification platform, the present embodiment adds the register element (tlm _ analysis _ fifo) to the verification environment (env), and acquires the status information data broadcasted by the package component (monitor) through the UVM communication port, where the status information data includes the status information of the DUT, and then sends the status information data to the execution component (sequence), so as to finally realize the generation and control of the input stimulus by the execution component (sequence).
The present invention is exemplified by taking an accurate matching module as an example of a DUT, where the accurate matching module is used to complete mapping between key (addr) and pointer (data), and the module is often used in an ethernet switching chip in an instantiated manner. For the sake of example, the exact match module may be simply understood as a dictionary-type database (database) with basic write and read (delete) functions.
Therefore, a block diagram of the DUT obtained after abstraction is shown in fig. 6, and a verification platform corresponding to the DUT is built as shown in fig. 6.
The input ports are:
clk: a clock signal;
rst _ n: a low level reset signal;
vld: a data valid signal;
cmd: 1' b 0: a write request signal;
1' b 1: a read (delete) request signal;
addr: an address signal; data: a data signal.
The output port thereof has:
vld: a data valid signal;
rslt: a request execution success or failure signal; 1' b0, execution failed; 1' b1, execution was successful;
data: the data corresponding to the previous read (delete) request.
It can be seen that the patent is still built based on a typical UVM authentication platform, but UVM _ tlm _ analysis _ fifo is added mainly in the env authentication environment for communication connection, and the UVM configuration database is used for communication.
Further, as shown in fig. 8, the implementation principle of the present invention is UVM fifo communication, in the figure, circles and squares identify communication ports, and the communication between the component a and the component B is completed by using these ports and their interface methods, so UVM _ tlm _ analysis _ fifo mainly functions as a data buffer and a communication connection.
Further, as shown in fig. 8, the components a and uvm _ tlm _ analysis _ fifo are connected through put series ports. The component A calls interface methods (put, try _ put and can _ put) related to the put series port to send the transaction data to uvm _ tlm _ analysis _ fifo, then uvm _ tlm _ analysis _ fifo receives the data sent by the component A by using the put series interface methods realized in the component A and buffers the data into uvm _ tlm _ analysis _ fifo, and simultaneously broadcasts the received data to the outside by using the put _ ap port; the components B and uvm _ tlm _ analysis _ fifo are connected through get or peek family ports. The component B calls the get or peek series method to acquire the transaction data from the uvm _ tlm _ analysis _ fifo, and then the uvm _ tlm _ analysis _ fifo fetches the data in the cache to the component B using the get or peek series interface method implemented inside it, while broadcasting the data fetched from the cache to the outside using the get _ ap port.
In the above, with reference to fig. 3 to 8, a stimulus control method for applying a register component according to an embodiment of the present invention is described, and the control of generation and transmission of a stimulus according to a state of a DUT is implemented in combination with communication between UVM components and a configuration database, so as to provide a new technical route and a new concept choice for the generation and control of the stimulus to meet working habits of different developers.
It should be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.
Claims (4)
1. An excitation control method using a register component, comprising the steps of:
creating an interface and a transaction required by a device under test, wherein the transaction corresponds to the interface;
creating a register component in a verification environment of UVM, wherein the register component acquires and temporarily stores state information data of the device under test;
the register component transmits the state information data to other components and objects in the UVM through a transmission component of the UVM;
creating an execution event in an excitation component of the UVM, the excitation component acquiring the state information data through the transfer component and triggering the execution event;
and an execution component in the excitation component generates and controls test excitation by applying the execution event and the state information data.
2. The method for stimulus control of an application register unit according to claim 1, wherein said interface comprises: the input interface and the output interface respectively comprise a clock control block.
3. The excitation control method for the application register unit according to claim 1, wherein the register unit obtains and temporarily stores the status information data, comprising the sub-steps of:
the packaging component of the UVM acquires the state information of the device under test;
the packaging assembly packages the state information of the tested device to obtain the state information data;
the registering component acquires and temporarily stores the state information data from the packaging component.
4. An actuation control method for an application register element according to claim 1, wherein said actuation element acquiring said status information data via said transfer element comprises the sub-steps of:
creating an acquisition method in the register component;
the excitation component acquires the handle of the register component through the transmission component;
the excitation component calls the acquisition method by using the handle of the register component, and the excitation component acquires the state information data by using the acquisition method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111404041.3A CN114116342A (en) | 2021-11-24 | 2021-11-24 | Excitation control method of application register component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111404041.3A CN114116342A (en) | 2021-11-24 | 2021-11-24 | Excitation control method of application register component |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114116342A true CN114116342A (en) | 2022-03-01 |
Family
ID=80371902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111404041.3A Pending CN114116342A (en) | 2021-11-24 | 2021-11-24 | Excitation control method of application register component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114116342A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115190030A (en) * | 2022-06-30 | 2022-10-14 | 东风汽车集团股份有限公司 | Hardware device and UVM verification platform for realizing CAN FD |
-
2021
- 2021-11-24 CN CN202111404041.3A patent/CN114116342A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115190030A (en) * | 2022-06-30 | 2022-10-14 | 东风汽车集团股份有限公司 | Hardware device and UVM verification platform for realizing CAN FD |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101680932B (en) | Integrated circuit with self-test feature for validating functionality of external interfaces | |
US20040158788A1 (en) | Method for functional verification of an integrated circuit model in order to create a verification platform, equipment emulator and verification platform | |
US11507718B1 (en) | Chip verification system and verification method therefor | |
US20020019963A1 (en) | Tool to reconfigure pin connections between a DUT and a tester | |
US9690888B2 (en) | Method and apparatus for system design verification | |
CN112069074A (en) | RFID tag chip verification device based on UVM | |
CN100444127C (en) | System and method for testing software | |
CN113705140B (en) | Chip verification method, system, device and storage medium | |
CN112560372B (en) | Chip prototype verification method, device, equipment and medium | |
US20020163351A1 (en) | Method for producing test patterns for testing an integrated circuit | |
CN114116342A (en) | Excitation control method of application register component | |
US20060150021A1 (en) | Device and method for analyzing embedded systems | |
CN115081367A (en) | Register burst access modeling method based on UVM storage model | |
JP2005525660A (en) | Methods and mechanisms for improved performance analysis in transaction level models | |
Melikyan et al. | Uvm verification ip for axi | |
CN117076337B (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN114116346A (en) | Excitation control method of sequence feedback mechanism based on UVM | |
CN113835757B (en) | Method and device for sharing register model by multiple hosts and electronic equipment | |
CN111510483B (en) | Configuration synchronization system, method and device between different network domains in chip test | |
CN115081366A (en) | Modeling method for burst access of register | |
US8131531B2 (en) | System and method for simulating a semiconductor wafer prober and a class memory test handler | |
CN114840254A (en) | Read-write access method for register in UVM environment by using C language | |
CN113204929A (en) | Method for realizing AHB VIP based on SV and UVM, electronic device and storage medium | |
CN111859831A (en) | Chip verification method and system, and storage medium | |
CN118569161B (en) | Verification system for registers in RCD chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 3 / F, 665 Zhangjiang Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai Applicant after: Yunhe Zhiwang (Shanghai) Technology Co.,Ltd. Address before: 311200 floor 12, building 2, Zicheng international, No. 39, Jincheng Road, Xiaoshan District, Hangzhou, Zhejiang Province Applicant before: Hangzhou yunhezhi Network Technology Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information |