[go: up one dir, main page]

CN114996074B - Chip reset verification method, device and equipment supporting multiple space domains - Google Patents

Chip reset verification method, device and equipment supporting multiple space domains

Info

Publication number
CN114996074B
CN114996074B CN202210718687.7A CN202210718687A CN114996074B CN 114996074 B CN114996074 B CN 114996074B CN 202210718687 A CN202210718687 A CN 202210718687A CN 114996074 B CN114996074 B CN 114996074B
Authority
CN
China
Prior art keywords
reset
reset signal
verification
under test
design under
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.)
Active
Application number
CN202210718687.7A
Other languages
Chinese (zh)
Other versions
CN114996074A (en
Inventor
马骁
徐昇洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunhe Zhiwang Shanghai Technology Co ltd
Hangzhou Clounix Technology Ltd
Original Assignee
Yunhe Zhiwang Shanghai Technology Co ltd
Hangzhou Clounix Technology Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Yunhe Zhiwang Shanghai Technology Co ltd, Hangzhou Clounix Technology Ltd filed Critical Yunhe Zhiwang Shanghai Technology Co ltd
Priority to CN202210718687.7A priority Critical patent/CN114996074B/en
Publication of CN114996074A publication Critical patent/CN114996074A/en
Application granted granted Critical
Publication of CN114996074B publication Critical patent/CN114996074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The embodiment of the invention provides a chip reset verification method, device and equipment supporting multiple spatial domains, which comprises the steps of packaging an independent reusable general verification component for reset signals in a verification platform, driving the reset signals to a reset signal input port of a design to be tested in a reset_phase stage during simulation so as to reset the design to be tested, monitoring the state of the reset signals by using the verification component related to the reset signals, jumping back to the reset_phase stage when the simulation is about to be finished, carrying out heavy load replacement on the verification platform by using a factor heavy load mechanism, restarting to execute a random test sequence after jumping back to the reset_phase, obtaining the actual response of the design to be tested to the random test sequence, and comparing the actual response with a predicted response so as to verify the reset function of the design to be tested. The invention solves the problem of resetting scene test of a plurality of clocks and corresponding resetting space domains possibly existing in the DUT.

Description

Chip reset verification method, device and equipment supporting multiple space domains
Technical Field
The present invention relates to the field of chip design, and in particular, to a method, apparatus, device, and medium for chip reset verification supporting multiple spatial domains.
Background
When verifying a design under test (DUT, design under test) during chip design, it is often necessary to consider the verification under a reset scenario, that is, to set a reset signal to an active state to reset the design under test during normal simulation operation of the design under test, and after a delay of a period of clock cycles, release the reset signal to restart the DUT, and verify whether the restarted DUT can work normally.
Typically, the designer resets the design under test at any point in the simulation process, which is likely to disrupt the running state of the test platform (testbench), causing unexpected problems. Meanwhile, a plurality of clocks and corresponding reset space domains can exist in the DUT, so that the test of the reset scene of the chips with the plurality of space domains in the same test platform is a complex and troublesome problem, and no existing scheme capable of being followed is available at present to perfectly solve the problem.
Disclosure of Invention
In view of the above, the present invention aims to provide a chip reset verification method, device, apparatus and medium method, device and medium for supporting multiple spatial domains, so as to improve the above-mentioned problems.
The embodiment of the invention provides a chip reset verification method supporting multiple spatial domains, which comprises the following steps:
In the verification platform, independent reusable general verification components are packaged for reset signals, wherein the independent verification components are positioned in different spatial domains;
During simulation, driving a reset signal to a reset signal input port of a design to be tested in a reset_phase stage through the universal verification component so as to reset the design to be tested, and monitoring the state of the reset signal by utilizing a verification component related to the reset signal;
Jumping back to reset_phase stage when the simulation is about to end;
The method comprises the steps that a factor reloading mechanism is used for reloading and replacing the verification platform, so that after jumping back to reset_phase, a random test sequence is restarted to be executed, and the test of a reset scene with a plurality of clocks and corresponding reset space domains in the design to be tested is completed;
and obtaining the actual response of the design to be tested to the random test sequence, and comparing the actual response with the predicted response to verify the reset function of the design to be tested.
Preferably, encapsulating a reset signal with a separate reusable generic authentication component specifically comprises:
creating a reset interface model to transmit a reset signal to the design to be tested;
Creating a transaction data type related to a reset signal, wherein the transaction data type comprises two data variable members which are respectively used for representing the delay time before reset and the effective duration time of the reset signal and restraining the delay time and the effective duration time of the reset signal to a reasonable expected range;
creating a stimulus sequence for generating a reset signal;
Creating a driver for driving an excitation sequence of the reset signal, driving the reset signal according to reset delay and duration time information in the transaction data type related to the reset signal, and applying the reset signal to a reset signal input port of the design to be tested;
creating a reset monitor to monitor the reset signal and package the reset signal into a corresponding transaction data type;
Creating a reset sequencer to arbitrate the stimulus sequence of the reset signal and transmit to the driver;
the various components described above in relation to the reset signal are packaged as agents to generate reusable generic authentication components.
Preferably, each component related to the reset signal is encapsulated as an agent to generate a reusable universal verification component, which specifically includes:
declaring a driver, a sequencer, a monitor and a configuration object contained in the exemplary proxy package, wherein the configuration object is used for configuring the number of times of effectively resetting a reset signal of a design to be tested in the whole simulation process;
In the reset_phase of UVM, if the agent is judged to be in a UVM_ACTIVE mode, calling an excitation sequence for executing a reset signal, thereby completing effective reset of a corresponding reset signal of the to-be-tested design;
judging whether the number of effective reset times is smaller than the number of previous configuration times when uvm _shutdown_phase which is about to end simulation is executed in a phase callback function phase_ready_to_end, if so, calling a jump method of phase to jump back to reset_phase to reset again, and executing a test of starting a random test sequence to send a reset function in main_phase again after reset.
Preferably, monitoring the state of the reset signal with a verification component associated with the reset signal comprises:
An interface method for monitoring a synchronous hardware reset signal is provided in a reset interface model for waiting for the reset signal to be activated and waiting for the reset signal to be released, respectively.
Preferably, monitoring the state of the reset signal with a verification component associated with the reset signal further comprises:
Two parallel threads are realized in a monitor of the input/output port signal of the design to be tested, one thread is used for monitoring data on the input/output port signal of the design to be tested and packaging the data into a transaction data type and then broadcasting the transaction data type to other components in the verification platform, the other thread is used for monitoring that a waiting reset signal is activated, and monitoring, packaging and broadcasting the port signal of the design to be tested are stopped when the reset signal is effective.
Preferably, monitoring the state of the reset signal with a verification component associated with the reset signal further comprises:
two parallel threads are implemented in a driver for driving an input signal sequence, one thread being used to acquire and drive an input excitation sequence of a design to be tested onto an input port of the design to be tested, the other thread being used to monitor for waiting for a reset signal to be activated, and stopping driving and resetting signals on an input interface bus when the reset signal is valid.
Preferably, monitoring the state of the reset signal with a verification component associated with the reset signal further comprises:
In a sequencer for arbitrating and transmitting an input stimulus sequence, there is no need to monitor a reset valid signal, and after a phase jump, all sequences running on the sequencer in arbitrate are automatically stopped and the sequencer is reset to an idle state.
Preferably, obtaining an actual response of the design under test to the random test sequence, and comparing the actual response with a predicted response to verify a reset function of the design under test, specifically including:
two parallel threads are implemented in a scoreboard component for comparing the output results of the design under test and the reference model, one thread is used for predicting the response and comparing with the actual response output by the design under test, the other thread is used for monitoring that a waiting reset signal is activated, and when the reset signal is valid, the internal logic is cleared.
The embodiment of the invention also provides a chip reset verification device supporting multiple space domains, which comprises:
the device comprises an encapsulation unit, a resetting unit and a resetting unit, wherein the encapsulation unit is used for encapsulating an independent reusable general verification component for the resetting signal in a verification platform, and the independent verification components are positioned in different spatial domains in the verification platform;
The reset unit is used for driving a reset signal to a reset signal input port of a design to be tested in a reset_phase stage through the universal verification component during simulation so as to reset the design to be tested, and monitoring the state of the reset signal by utilizing the verification component related to the reset signal;
the jump unit is used for jumping back to the reset_phase stage when the simulation is about to end;
The reloading unit is used for reloading and replacing the verification platform by using a factor reloading mechanism, so that after jumping back to reset_phase, the execution of the random test sequence is restarted, and the test of a reset scene with a plurality of clocks and corresponding reset space domains in the design to be tested is completed;
and the verification unit is used for obtaining the actual response of the design to be tested to the random test sequence, and comparing the actual response with the predicted response so as to verify the reset function of the design to be tested.
The embodiment of the invention also provides a chip reset verification device supporting multiple spatial domains, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the computer program can be executed by the processor so as to realize the chip reset verification method supporting multiple spatial domains.
The invention provides a phase jump method to supplement a test method of a design to be tested in a reset scene, and simultaneously combines a factor reloading mechanism and a domain mechanism of UVM to realize the support of a chip reset test scene of multiple space domains, thereby solving the reset scene test problem of multiple clocks and corresponding reset space domains possibly existing in a DUT.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram of an authentication platform architecture for a reset scenario.
Fig. 2 is a detailed partitioning and execution sequence diagram of the UVM phase mechanism.
Fig. 3 is a schematic diagram of a single clock domain digital logic circuit composition.
FIG. 4 is a schematic diagram of a multi-clock domain digital logic circuit
Fig. 5 is a flowchart of a chip reset verification method supporting multiple spatial domains according to a first embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a chip reset verification device supporting multiple spatial domains according to a second embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The embodiments of the present invention provide a method, an apparatus and a device for chip reset verification supporting multiple spatial domains, which comprehensively apply a phase mechanism of UVM, a factor reload mechanism and a domain mechanism to facilitate understanding of the present invention, and the mechanism related to the present invention is described below.
(1) Phase mechanism
The appearance of the phase mechanism is to unify the execution sequence of codes in simulation, so long as the sequence is complied with by everybody, the problem of difficult debugging caused by disordered code sequence can not occur, thereby helping to realize the reusability of codes and providing a unified standard for code simulation execution control.
The phase of UVM is mainly divided into three parts, as follows:
build phases, this stage is used to configure, build and connect a hierarchical authentication platform.
Run-TIME PHASES this stage consumes simulation time and generates and runs test cases.
Clean up phases this stage is used to collect and print simulation results.
A specific division is shown in fig. 2.
The phases are predefined functions or tasks, and are automatically invoked and executed according to a certain sequence. Common phases mainly include build, connect, run and report, which complete the setup, connection, operation, and reporting of the components, respectively.
In run_phase, the user typically needs to go through the following excitation sequence if the test is to be completed:
1. Powering up
2. Resetting
3. Configuration register
4. Performing test stimulus to complete target test content
5. Waiting for DUT to complete testing
In a simple way, the user can complete all the excitation sequences in run_phase, or in another way, if the above typical sequences can be divided into different intervals, the corresponding excitation can be executed according to the intervals, the test can be more layered and more refined simulation control can be realized. Therefore, run_phase can be further divided into 12 phases parallel to the right in fig. 2, and the execution sequence is from top to bottom.
For example, the above five steps are all originally completed in run_phase, and can now be completed by dispersing into the following phases:
1. Power-up- & gt pre_reset_phase
2. Reset → reset_phase
3. Configuration register → configuration_phase
4. Executing test stimulus to complete target test content- & gtmain_phase
5. Wait for DUT to finish testing- & gt shutDown_phase
(2) Factor reloading mechanism
The most important factor reloading mechanism of the UVM is the reloading function of the UVM, and the replacement of components (components) or objects (objects) of the existing verification platform can be realized, so that the verification platform can be reused conveniently.
In order to use the reloading function of the factory mechanism of UVM, the following three points are needed:
(1) An object or component is registered with a factory using macro 'uvm _object_units (T) or' uvm _component_units (T).
(2) A component or object is constructed using the type_name:: type_id:: create () instead of the new constructor.
(3) The class that is reloaded needs to be the parent class of the reloaded class.
Two heavy load using modes are supported, and the two heavy load using modes are respectively:
1. Replacing all components or objects A in the verification platform with components or objects B
2. Replacing part of component or object A with component or object B in verification platform
(3) Domain mechanism
As shown in fig. 3, the digital chip is composed of a stack of digital logic circuits, which are divided into a combinational logic circuit and a sequential logic circuit.
The sequential logic circuit is controlled by a clock (clk in fig. 3), and the data is synchronized and registered by rising edge or falling edge in a beat-to-beat manner like a heartbeat, while the combinational logic is a logic operation such as and, or, not, exclusive or, etc., and the path delay of the combinational logic circuit is different according to the complexity of the operation, but the setup time and the hold time of the sequential logic circuit need to be satisfied.
The general combinational logic circuit is between the two sets of flip-flops, and the operation process in fig. 3 is approximately:
The data input (data_in in fig. 3) is entered, then registered through a register (block formed by D, Q, CLK in fig. 3), then operated through a section of combinational logic, finally registered through a group of registers and output operation result (data_out in fig. 3), and the whole digital circuit is synchronized by a clock clk, which is equivalent to completing the processing and transmission of circuit signals according to the transitions of clk, so that the circuit is said to operate based on the clock of clk, and then the area of the circuit based on the clock of clk can be called as clk clock domain.
The DUT of fig. 3 has only one clk clock domain, and the case where there are multiple clock domains on one DUT is seen below. As shown in fig. 4:
At this time, there are two clock domains, respectively, the circuits operating based on clk1 and clk2 clocks in fig. 4, which are independent of each other.
In fact, often when verification is performed, it is often encountered that the Design Under Test (DUT) is based on multiple clock domains, how are the two mutually independent parts reset, configure, and start up, respectively?
By default, all components (components) in the verification platform are located in the same spatial domain (domain). However, to implement resetting, configuring, and starting two clock domains of the same DUT, but independent of each other, it is necessary to have the two independent portions located in two different domains, respectively.
By separating the two clock domains by means of these two domains, the subdivisions of Run-time in the two clock domains, which consume simulation time, can Run asynchronously, independently of each other.
Note, however, that here domains can only isolate the subdivided Run-time subdivision phases, and for other phases they are still synchronized, i.e. the run_phases of both domains remain synchronized, and other non-simulation time consuming functional phases are synchronized.
The present invention will be described in more detail below in connection with the above mechanism.
Referring to fig. 5, a first embodiment of the present invention provides a chip reset verification method supporting multiple spatial domains, which includes:
s101, in the verification platform, independent reusable general verification components are packaged for the reset signal, wherein in the verification platform, the independent verification components are located in different spatial domains.
In this embodiment, based on the domin mechanism described above, the verification components of the verification platform of this embodiment that are independent of each other are respectively located in two different domains. Thus, the clock domains can be separated by the independent domains, so that the subdivisions of Run-time consuming simulation time in the clock domains can Run asynchronously and independently of each other.
Specifically, in the present embodiment, step S101 includes:
creating a reset interface model to transmit a reset signal to the design to be tested;
Creating a transaction data type related to a reset signal, wherein the transaction data type comprises two data variable members which are respectively used for representing the delay time before reset and the effective duration time of the reset signal and restraining the delay time and the effective duration time of the reset signal to a reasonable expected range;
creating a stimulus sequence for generating a reset signal;
Creating a driver for driving an excitation sequence of the reset signal, driving the reset signal according to reset delay and duration time information in the transaction data type related to the reset signal, and applying the reset signal to a reset signal input port of the design to be tested;
creating a reset monitor to monitor the reset signal and package the reset signal into a corresponding transaction data type;
Creating a reset sequencer to arbitrate the stimulus sequence of the reset signal and transmit to the driver;
the various components described above in relation to the reset signal are packaged as agents to generate reusable generic authentication components.
The method specifically comprises the following steps:
declaring a driver, a sequencer, a monitor and a configuration object contained in the exemplary proxy package, wherein the configuration object is used for configuring the number of times of effectively resetting a reset signal of a design to be tested in the whole simulation process;
In the reset_phase of UVM, if the agent is judged to be in a UVM_ACTIVE mode, calling an excitation sequence for executing a reset signal, thereby completing effective reset of a corresponding reset signal of the to-be-tested design;
judging whether the number of effective reset times is smaller than the number of previous configuration times when uvm _shutdown_phase which is about to end simulation is executed in a phase callback function phase_ready_to_end, if so, calling a jump method of phase to jump back to reset_phase to reset again, and executing a test of starting a random test sequence to send a reset function in main_phase again after reset.
S102, driving a reset signal to a reset signal input port of a design to be tested in a reset_phase stage through the universal verification component during simulation so as to reset the design to be tested, and monitoring the state of the reset signal by utilizing the verification component related to the reset signal.
In this embodiment, after the universal verification component is obtained, by declaring and instantiating a reset signal excitation sequence (reset_sequence), the reset_phase stage in the simulation process can be started to generate a reset signal to a reset signal input port of the design to be tested. The method comprises the steps of carrying out random constraint configuration on effective reset times in a reset configuration object corresponding to an independent space domain in configuration_phase, so that reset effective excitation with random quantity is generated and applied to a reset signal port corresponding to a design to be tested, and random function test under a repeated reset scene is completed.
In this embodiment, monitoring the state of the reset signal with the verification component associated with the reset signal includes:
An interface method for monitoring a synchronous hardware reset signal is provided in a reset interface model for waiting for the reset signal to be activated and waiting for the reset signal to be released, respectively.
Two parallel threads are realized in a monitor of the input/output port signal of the design to be tested, wherein one thread is used for monitoring data on the input/output port signal of the design to be tested and packaging the data into a transaction data type and then broadcasting the transaction data type to other components in the verification platform, the other thread is used for monitoring that a waiting reset signal is activated, and when the reset signal is effective, monitoring, packaging and broadcasting of the port signal of the design to be tested are stopped. After that, the waiting reset signal is released, the design to be tested enters a normal operating state, and then the above-mentioned process is repeated continuously.
Two parallel threads are also implemented in the driver for driving the input signal sequence, one for taking and driving the design-under-test input stimulus sequence element (sequence_item) onto the input port of the design-under-test, and the other for monitoring. Waiting for the reset signal to be activated, stopping driving and resetting the signal on the input interface bus when the reset signal is valid. After that, the waiting reset signal is released, the design to be tested enters a normal operating state, and then the above-mentioned process is repeated continuously.
In a sequencer for arbitrating and transmitting an input stimulus sequence, there is no need to monitor a reset valid signal, and after a phase jump, all sequences running on the sequencer in arbitrate are automatically stopped and the sequencer is reset to an idle state.
S103, jumping back to the reset_phase stage when the simulation is about to end.
Specifically, the method can jump back to reset_phase when the simulation is about to end, which is equivalent to resetting the design to be tested in the simulation process, and then re-executing the random test sequence in main_phase, wherein if the random test sequence of the basic function is adopted, the method is equivalent to performing the basic function test of the design to be tested in the reset scene.
S104, carrying out reloading replacement on the verification platform by using a factor reloading mechanism, so that after jumping back to reset_phase, restarting to execute a random test sequence to finish the test of a reset scene with a plurality of clocks and corresponding reset space domains in the design to be tested.
Specifically, in this embodiment, the reloading replacement is performed on the verification platform of multiple spatial domains according to the factor reloading mechanism, which is mainly used for restarting the random test sequence after phase jump, so as to complete the test of the reset scene where multiple clocks and corresponding reset spatial domains exist in the design to be tested
And the verifying component is subjected to heavy-load replacement in the build_phase by using a factor mechanism, so that after the clock reset signal corresponding to the independent space domain is effectively reset, the corresponding random test sequence is retransmitted to apply the input stimulus to the design to be tested.
S105, obtaining the actual response of the design to be tested to the random test sequence, and comparing the actual response with the predicted response to verify the reset function of the design to be tested.
In this embodiment, after the random test sequence is applied to the design under test, the design under test operation is waited for to complete, and the corresponding actual response is returned.
Then, two parallel threads are implemented in the scoreboard component for comparing the output results of the design under test and the reference model, one for predicting the response and comparing with the actual response of the design under test output, the other for monitoring the wait for reset signal to be activated, and when the reset signal is valid, the internal logic is cleared.
In summary, the invention provides a phase jump method to supplement the test method of the design to be tested in the reset scene, and combines the factor reloading mechanism and domain mechanism of UVM to realize the support of the chip reset test scene of multiple space domains, thereby solving the reset scene test problem of multiple clocks and corresponding reset space domains possibly existing in the DUT.
Referring to fig. 6, a second embodiment of the present invention further provides a chip reset verification apparatus supporting multiple spatial domains, which includes:
an encapsulation unit 210, configured to encapsulate an independent reusable general purpose authentication component for the reset signal in an authentication platform, where the authentication components independent of each other are located in different spatial domains;
The reset unit 220 is configured to drive a reset signal to a reset signal input port of a design to be tested in a reset_phase stage through the general verification component during simulation, so as to reset the design to be tested, and monitor a state of the reset signal by using a verification component related to the reset signal;
a jumping unit 230 for jumping back to the reset_phase phase when the simulation is about to end;
The reloading unit 240 is configured to reload the verification platform by using a factor reloading mechanism, so that after the jump back to reset_phase, the execution of the random test sequence is restarted, so as to complete the test of the reset scenario in which a plurality of clocks and corresponding reset spatial domains exist in the design to be tested;
and the verification unit 250 is configured to obtain an actual response of the design to be tested to the random test sequence, and compare the actual response with a predicted response to verify a reset function of the design to be tested.
The third embodiment of the present invention further provides a chip reset verification device supporting multiple spatial domains, which includes a memory and a processor, where the memory stores a computer program, and the computer program can be executed by the processor to implement the chip reset verification method supporting multiple spatial domains as described above.
The fourth embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program can be executed by a processor of a device where the computer readable storage medium is located, so as to implement the chip reset verification method supporting multiple spatial domains as described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes. It should be noted that, in this document, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1.一种支持多空间域的芯片复位验证方法,其特征在于,包括:1. A chip reset verification method supporting multiple spatial domains, characterized by comprising: 在验证平台中,对复位信号封装独立的可重用的通用验证组件;其中,在所述验证平台中,相互独立的验证组件位于不同的空间域中;In a verification platform, an independent reusable universal verification component is encapsulated for a reset signal; wherein, in the verification platform, the independent verification components are located in different spatial domains; 在仿真时,通过所述通用验证组件在reset_phase阶段驱动复位信号至待测设计的复位信号输入端口,以对所述待测设计进行复位,并利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测;During simulation, the universal verification component drives a reset signal to a reset signal input port of the design under test in the reset_phase stage to reset the design under test, and a verification component associated with the reset signal is used to monitor the state of the reset signal; 在仿真即将结束时跳转回到reset_phase阶段;Jump back to the reset_phase stage when the simulation is about to end; 使用factory重载机制对所述验证平台进行重载替换,从而在跳转回到reset_phase后,重新启动执行随机测试序列,以完成对待测设计中存在多个时钟及其相应的复位空间域的复位场景的测试;Reloading and replacing the verification platform using the factory reload mechanism, so as to restart the execution of the random test sequence after jumping back to the reset_phase, so as to complete the test of the reset scenario in which there are multiple clocks and their corresponding reset space domains in the design under test; 获得所述待测设计对所述随机测试序列的实际响应,并将所述实际响应与预测响应进行对比,以对所述待测设计的复位功能进行验证。An actual response of the design under test to the random test sequence is obtained, and the actual response is compared with a predicted response to verify a reset function of the design under test. 2.根据权利要求1所述的支持多空间域的芯片复位验证方法,其特征在于,对复位信号封装一个独立的可重用的通用验证组件具体包括:2. The chip reset verification method supporting multiple spatial domains according to claim 1 is characterized in that encapsulating the reset signal into an independent reusable universal verification component specifically comprises: 创建复位接口模型,以向待测设计传输复位信号;Create a reset interface model to transmit a reset signal to the design under test; 创建复位信号相关的事务数据类型,所述事务数据类型包含两个数据变量成员,分别用于表示复位前的延迟时间和复位信号有效的持续时间,并约束上述两者时间到合理的期望范围;Create a transaction data type related to the reset signal, the transaction data type includes two data variable members, which are used to represent the delay time before the reset and the duration of the reset signal being valid, and constrain the above two times to a reasonable expected range; 创建用于产生复位信号的激励序列;Creating a stimulus sequence for generating a reset signal; 创建用于驱动复位信号的激励序列的驱动器,并根据复位信号相关的事务数据类型中的复位延迟和持续时间信息对复位信号进行驱动并施加给待测设计的复位信号输入端口;Creating a driver for driving a stimulus sequence of a reset signal, and driving the reset signal according to reset delay and duration information in a transaction data type related to the reset signal and applying the reset signal to a reset signal input port of the design under test; 创建复位监测器,以监测复位信号并封装成相应的事务数据类型;Create a reset monitor to monitor the reset signal and encapsulate it into the corresponding transaction data type; 创建复位序列器,以对复位信号的激励序列进行仲裁并传送给所述驱动器;Creating a reset sequencer to arbitrate and transmit a stimulus sequence of a reset signal to the driver; 将上述的与复位信号相关的各个组件封装成代理,以生成可重用的通用验证组件。The above-mentioned components related to the reset signal are encapsulated into agents to generate reusable general verification components. 3.根据权利要求2所述的支持多空间域的芯片复位验证方法,其特征在于,将上述的与复位信号相关的各个组件封装成代理,以生成可重用的通用验证组件,具体包括:3. The chip reset verification method supporting multiple spatial domains according to claim 2 is characterized in that the above-mentioned components related to the reset signal are encapsulated into agents to generate a reusable general verification component, specifically comprising: 声明例化代理封装包含的驱动器、序列器、监测器和配置对象,其中配置对象用来配置整个仿真过程中对待测设计的复位信号进行有效复位的次数;Declare the driver, sequencer, monitor and configuration object contained in the instantiation proxy package, where the configuration object is used to configure the number of times the reset signal of the design under test is effectively reset during the entire simulation process; 在UVM的reset_phase里,如果判断代理为UVM_ACTIVE模式,则调用执行复位信号的激励序列,从而完成对待测设计相应的复位信号进行有效复位;In the reset_phase of UVM, if the agent is judged to be in UVM_ACTIVE mode, the stimulus sequence of the execution reset signal is called to effectively reset the corresponding reset signal of the design under test; 在phase回调函数phase_ready_to_end中判断当执行到快要结束仿真的uvm_shutdown_phase时,判断有效复位的次数是否小于先前配置的次数,如果是的话,则调用phase的jump跳转方法跳转回reset_phase里再次进行复位,从而在复位后,重新执行到main_phase里启动发送随机测试序列进行复位功能的测试。In the phase callback function phase_ready_to_end, when the uvm_shutdown_phase that is about to end the simulation is executed, it is determined whether the number of valid resets is less than the previously configured number. If so, the jump method of the phase is called to jump back to the reset_phase to reset again. After the reset, the main_phase is re-executed to start sending a random test sequence to test the reset function. 4.根据权利要求1所述的支持多空间域的芯片复位验证方法,其特征在于,利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测包括:4. The chip reset verification method supporting multiple spatial domains according to claim 1, wherein monitoring the state of the reset signal by using a verification component related to the reset signal comprises: 在复位接口模型中提供监测同步硬件复位信号的接口方法,分别用于等待复位信号被激活以及等待复位信号被释放。An interface method for monitoring a synchronous hardware reset signal is provided in the reset interface model, which is used to wait for the reset signal to be activated and to wait for the reset signal to be released. 5.根据权利要求4所述的支持多空间域的芯片复位验证方法,其特征在于,利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测还包括:5. The chip reset verification method supporting multiple spatial domains according to claim 4, characterized in that monitoring the state of the reset signal by using a verification component related to the reset signal further comprises: 在待测设计输入输出端口信号的监测器中实现两个并行线程,其中一个线程用于监测待测设计输入输出端口信号上的数据并将其封装成事务数据类型后向验证平台中的其他组件进行广播;另一个线程用于监测等待复位信号被激活,在复位信号有效时,停止对待测设计的端口信号进行监测、封装和广播。Two parallel threads are implemented in the monitor of the input and output port signals of the design under test, one of which is used to monitor the data on the input and output port signals of the design under test and encapsulate it into transaction data types and then broadcast it to other components in the verification platform; the other thread is used to monitor and wait for the reset signal to be activated. When the reset signal is valid, the monitoring, encapsulation and broadcasting of the port signals of the design under test are stopped. 6.根据权利要求5所述的支持多空间域的芯片复位验证方法,其特征在于,利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测还包括:6. The chip reset verification method supporting multiple spatial domains according to claim 5, characterized in that monitoring the state of the reset signal by using a verification component related to the reset signal further comprises: 在用于驱动输入信号序列的驱动器中实现两个并行线程,其中一个线程用于获取待测设计输入激励序列并将其驱动到待测设计的输入端口上,另一个线程用于监测等待复位信号被激活,在复位信号有效时,停止进行驱动并将输入接口总线上的信号进行复位。Two parallel threads are implemented in the driver for driving the input signal sequence, one of which is used to obtain the input stimulus sequence of the design under test and drive it to the input port of the design under test, and the other thread is used to monitor and wait for the reset signal to be activated. When the reset signal is valid, the driving is stopped and the signal on the input interface bus is reset. 7.根据权利要求6所述的支持多空间域的芯片复位验证方法,其特征在于,利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测还包括:7. The chip reset verification method supporting multiple spatial domains according to claim 6, characterized in that monitoring the state of the reset signal by using a verification component related to the reset signal further comprises: 在用于对输入激励序列进行仲裁并传送的序列器中,不需要对复位有效信号进行监测,当进行phase跳转之后,自动停止所有在序列器上正在仲裁运行的序列,并将序列器复位到一个空闲状态。In a sequencer used to arbitrate and transmit input stimulus sequences, there is no need to monitor the reset valid signal. After a phase jump, all sequences being arbitrated and running on the sequencer are automatically stopped, and the sequencer is reset to an idle state. 8.根据权利要求1所述的支持多空间域的芯片复位验证方法,其特征在于,获得所述待测设计对所述随机测试序列的实际响应,并将所述实际响应与预测响应进行对比,以对所述待测设计的复位功能进行验证,具体包括:8. The chip reset verification method supporting multiple spatial domains according to claim 1 is characterized in that obtaining the actual response of the design under test to the random test sequence and comparing the actual response with the predicted response to verify the reset function of the design under test specifically comprises: 对用于比较待测设计和参考模型输出结果的记分板组件中实现两个并行线程,其中一个线程用于预测响应并与待测设计输出的实际响应进行比较,另一个线程用于监测等待复位信号被激活,在复位信号有效时,对内部逻辑进行清除。Two parallel threads are implemented in the scoreboard component used to compare the output results of the design under test with the reference model. One thread is used to predict the response and compare it with the actual response of the design under test output, and the other thread is used to monitor and wait for the reset signal to be activated. When the reset signal is valid, the internal logic is cleared. 9.一种支持多空间域的芯片复位验证装置,其特征在于,包括:9. A chip reset verification device supporting multiple spatial domains, characterized by comprising: 封装单元,用于在验证平台中,对复位信号封装一个独立的可重用的通用验证组件;其中,在所述验证平台中,相互独立的验证组件位于不同的空间域中;An encapsulation unit, used for encapsulating an independent reusable universal verification component for the reset signal in a verification platform; wherein, in the verification platform, the independent verification components are located in different spatial domains; 复位单元,用于在仿真时,通过所述通用验证组件在reset_phase阶段驱动复位信号至待测设计的复位信号输入端口,以对所述待测设计进行复位,并利用与所述复位信号相关的验证组件对所述复位信号的状态进行监测;A reset unit, used to drive a reset signal to a reset signal input port of the design under test in a reset_phase stage through the general verification component during simulation to reset the design under test, and monitor the state of the reset signal using a verification component related to the reset signal; 跳转单元,用于在仿真即将结束时跳转回到reset_phase阶段;The jump unit is used to jump back to the reset_phase when the simulation is about to end; 重载单元,用于使用factory重载机制对所述验证平台进行重载替换,从而在跳转回到reset_phase后,重新启动执行随机测试序列,以完成对待测设计中存在多个时钟及其相应的复位空间域的复位场景的测试;A reload unit, used to reload and replace the verification platform using a factory reload mechanism, so as to restart the execution of the random test sequence after jumping back to reset_phase, so as to complete the test of the reset scenario in which there are multiple clocks and their corresponding reset space domains in the design under test; 验证单元,用于获得所述待测设计对所述随机测试序列的实际响应,并将所述实际响应与预测响应进行对比,以对所述待测设计的复位功能进行验证。The verification unit is used to obtain the actual response of the design under test to the random test sequence, and compare the actual response with the predicted response to verify the reset function of the design under test. 10.一种支持多空间域的芯片复位验证设备,其特征在于,包括存储器以及处理器,所述存储器内存储有计算机程序,所述计算机程序能够被所述处理器执行,以实现如权利要求1至8任意一项所述的支持多空间域的芯片复位验证方法。10. A chip reset verification device supporting multiple spatial domains, characterized in that it includes a memory and a processor, wherein a computer program is stored in the memory, and the computer program can be executed by the processor to implement the chip reset verification method supporting multiple spatial domains as described in any one of claims 1 to 8.
CN202210718687.7A 2022-06-23 2022-06-23 Chip reset verification method, device and equipment supporting multiple space domains Active CN114996074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210718687.7A CN114996074B (en) 2022-06-23 2022-06-23 Chip reset verification method, device and equipment supporting multiple space domains

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210718687.7A CN114996074B (en) 2022-06-23 2022-06-23 Chip reset verification method, device and equipment supporting multiple space domains

Publications (2)

Publication Number Publication Date
CN114996074A CN114996074A (en) 2022-09-02
CN114996074B true CN114996074B (en) 2025-07-25

Family

ID=83036440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210718687.7A Active CN114996074B (en) 2022-06-23 2022-06-23 Chip reset verification method, device and equipment supporting multiple space domains

Country Status (1)

Country Link
CN (1) CN114996074B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102717540B1 (en) * 2023-09-27 2024-10-15 주식회사 세미파이브 Method and system for system-on-chip design validation
CN119203621B (en) * 2024-11-28 2025-02-28 沐曦集成电路(上海)股份有限公司 A processing method for accelerating simulation verification

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137330A (en) * 2014-05-22 2015-12-09 炬芯(珠海)科技有限公司 Verification device of multiple-voltage domain digital circuit and operation method thereof
CN114090423A (en) * 2021-10-11 2022-02-25 芯河半导体科技(无锡)有限公司 An automatic control method for chip verification

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100374328B1 (en) * 2000-06-03 2003-03-03 박현숙 chip design verification and test apparatus and method
FR3098316B1 (en) * 2019-07-04 2021-05-28 Continental Automotive Method for testing a computer reset device
CN111339731B (en) * 2020-01-21 2021-01-08 中国人民解放军军事科学院国防科技创新研究院 FPGA (field programmable Gate array) verification platform and method for SoC (System on chip)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105137330A (en) * 2014-05-22 2015-12-09 炬芯(珠海)科技有限公司 Verification device of multiple-voltage domain digital circuit and operation method thereof
CN114090423A (en) * 2021-10-11 2022-02-25 芯河半导体科技(无锡)有限公司 An automatic control method for chip verification

Also Published As

Publication number Publication date
CN114996074A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN114996074B (en) Chip reset verification method, device and equipment supporting multiple space domains
Lubbers et al. ReconOS: An RTOS supporting hard-and software threads
US10387605B2 (en) System and method for managing and composing verification engines
US5905883A (en) Verification system for circuit simulator
Le Moigne et al. A generic RTOS model for real-time systems simulation with SystemC
KR100483636B1 (en) Method and apparatus for design verification using emulation and simulation
US6427224B1 (en) Method for efficient verification of system-on-chip integrated circuit designs including an embedded processor
US8055946B2 (en) Semiconductor IC incorporating a co-debugging function and test system
US9098653B2 (en) Verifying processor-sparing functionality in a simulation environment
US20130227528A1 (en) Paradigm for concurrency testcase generation
JPH04216174A (en) Method and apparatus for logic simulation using hardware accelerator
Singhoff et al. AADL modeling and analysis of hierarchical schedulers
Bauer et al. Test strategies for reliable runtime reconfigurable architectures
CN108429787B (en) Container deployment method and device, computer storage medium and terminal
Sokolov et al. Automating the design of asynchronous logic control for AMS electronics
JP2007164781A (en) Method and system of coherent design verification of inter-cluster interactions
US6950963B1 (en) Control method and apparatus for testing of multiple processor integrated circuits and other digital systems
Socci et al. Modeling mixed-critical systems in real-time BIP
JP6528433B2 (en) Design support apparatus and design support method
de la Cámara et al. Model extraction for arinc 653 based avionics software
Chakrabarty SOC (System-on-a-Chip) Testing for Plug and Play Test Automation
Gamatié Design of streaming applications on MPSoCs using abstract clocks
US7277840B2 (en) Method for detecting bus contention from RTL description
Olivier et al. A hardware time manager implementation for the Xenomai real-time Kernel of embedded Linux
Rau et al. Optimal Test Access Mechanism (TAM) for Reducing Test Application Time of Core-Based SOCs

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
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: 310016 room 107, building D, integrated circuit design Industrial Park, No. 858, Jianshe Second Road, Xiaoshan Economic and Technological Development Zone, Xiaoshan District, Hangzhou City, Zhejiang Province

Applicant before: Hangzhou yunhezhi Network Technology Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant