WO2002037340A2 - System and method for test generation with dynamic constraints using static analysis - Google Patents

System and method for test generation with dynamic constraints using static analysis Download PDF

Info

Publication number
WO2002037340A2
WO2002037340A2 PCT/IL2001/001011 IL0101011W WO0237340A2 WO 2002037340 A2 WO2002037340 A2 WO 2002037340A2 IL 0101011 W IL0101011 W IL 0101011W WO 0237340 A2 WO0237340 A2 WO 0237340A2
Authority
WO
WIPO (PCT)
Prior art keywords
constraints
dynamic
instructions
constraint
graph
Prior art date
Application number
PCT/IL2001/001011
Other languages
French (fr)
Other versions
WO2002037340A3 (en
Inventor
Amos Noy
Original Assignee
Verisity 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 Verisity Ltd. filed Critical Verisity Ltd.
Priority to JP2002540016A priority Critical patent/JP2004513435A/en
Priority to IL15569201A priority patent/IL155692A0/en
Priority to EP01982688A priority patent/EP1374103A2/en
Priority to AU2002214229A priority patent/AU2002214229A1/en
Publication of WO2002037340A2 publication Critical patent/WO2002037340A2/en
Priority to IL155692A priority patent/IL155692A/en
Publication of WO2002037340A3 publication Critical patent/WO2002037340A3/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3183Generation of test inputs, e.g. test vectors, patterns or sequences
    • G01R31/318342Generation of test inputs, e.g. test vectors, patterns or sequences by preliminary fault modelling, e.g. analysis, simulation

Definitions

  • Design verification is the process of determining whether an integrated circuit, board, or system-level architecture, exactly implements the requirements defined by the specification of the architecture for that device.
  • Design verification for a device under testing (DUT) may be performed on the actual device, or on a simulation model of the device.
  • DUT device under testing
  • GML generator mini-language
  • These instructions are then executed in order to provide a correct random solution to a given set of dynamic constraints.
  • the process of execution is preferably performed by a constraint resolution engine, optionally and more preferably implemented as software, which manages the requirements imposed by the constraints on the execution, while simultaneously enabling a random solution to the set of constraints to be provided.
  • a constraint resolution engine may optionally be viewed as a type of state machine, in which individual elements of the state machine are more preferably represented by one or more dynamic graph(s).
  • PC personal computers
  • Such software operating systems include, but are not limited to, UNIX, VMS, Linux,
  • the method of the present invention could also be described as a plurality of instructions being performed by a virtual or actual data processor, such that the
  • a software application could be written in substantially any suitable programming language, which could ⁇ J i! J t 5 , J "M" ' , ⁇ _ fw n - easily be selected by one of ordinary skill in the art.
  • the programming language chosen should be compatible with the computing platform according to which the software application is executed. Examples of suitable programming languages include, but are not limited to, C, C++ and Java.
  • non-random refers to a process, or an entity selected by the process, which is not random but which is not necessarily deterministic.
  • FIG. 1 is a schematic block diagram illustrating an exemplary system according to the present invention
  • GML generator mini-language
  • individual elements of the state machine are more preferably represented by one or more dynamic graph(s).
  • the constraint resolution engine of the present invention enables the process of
  • the present invention is capable of separating the process of constraint resolution into two stages: during static
  • the present invention is also useful for verification
  • Test engine 16 features a test generator 18, connected to a run-time system 21
  • Run-time system 21 both
  • module 31 preferably receives these instructions, and executes them in conjunction
  • a data collector 24 requests the
  • Data collector 24 is able to communicate with test
  • Order manager 28 preferably maintains a dynamic graph 32 with bi-directional and uni-directional edges. Dynamic graph 32 is more preferably used to determine the order of incorporation of the instruction representing each constraint, according to the
  • Each node represents field ranges for specific variables, for which particular values can be
  • Dependency graph manager 30 uses
  • OM_create__nodes for creating order graph nodes for a given set of nodes for the
  • Specific instructions for dependency graph manager 30 optionally include, but are not limited to, DGM_create_constraint for creating a constraint node and
  • the AGM AGM
  • a generation role is a conceptualization of this need for a "struct-type in context", or for being able to define the struct according to the context,
  • Initial ranges are statically inferred ranges, or sets of
  • ROLE_gen_top in which the following instructions are executed: get next node Nfrom the OM using OM_get_next; if the picked node
  • roles may be either statically ordered or unordered.
  • OM_get_next( ) returns field A 38 with a ⁇ /indication.
  • the returned dof is field B

Abstract

A system and method for testing the quality of a simulation model for the DUT (device under test) with dynamic constraint solving and test generation for the testing and verification process. The present invention provides such dynamic constraint solving through the creation of a sequence of instructions in a 'generator mini-language (GML). These instructions are then executed in order to provide a correct random solution to any given set of dynamic constraints. the process of execution is preferably performed by a constraint resolution engine, optionally and more preferably implimented as software, which manages the requirements imposed by the constraints on the execution, while simultaneously enabling a random solution to the set of constraints to be provided. Such a constraint resolution engine may optionally be viewed as a type of state machine, in which the individual elements of the state machine are more preferably represented by one or more dynamic graph(s).

Description

SYSTEM AND METHOD FOR TEST GENERATION WITH DYNAMIC CONSTRAINTS USING STATIC ANALYSIS
FIELD AND BACKGROUND OF THE INVENTION
The present invention relates to a system and method for test generation with dynamic constraints, and in particular, to a system and method for dynamically solving constraints by creating a set of instructions which provide a specific, random solution when executed.
Design verification is the process of determining whether an integrated circuit, board, or system-level architecture, exactly implements the requirements defined by the specification of the architecture for that device. Design verification for a device under testing (DUT) may be performed on the actual device, or on a simulation model of the device. For the purposes of explanation only and without intending to be limiting in any way, the following discussion centers upon testing which is performed on simulation models of the device.
As designs for different types of devices and device architectures become more complex, the likelihood of design errors increases. However, design verification also becomes more difficult and time consuming, as the simulation models of the design of the device also become more complex to prepare and to test. I I "
The problem of design verification is compounded by the lack of widely generalizable tools which are useful for the verification and testing of a wide variety of devices and device architectures. Typical background art verification methods have often been restricted to a particular device having a specific design, such that the steps of preparing and implementing such verification methods for the simulation model must be performed for each new device.
The process of verifying a design through a simulation model of the device is aided by the availability of hardware description languages such as Nerilog and VHDL. These languages are designed to describe hardware at higher levels of abstraction than gates or transistors. The resultant simulated model of the device can receive input stimuli in the form of test vectors, which are a string of binary digits applied to the input of a circuit. The simulated model then produces results, which are checked against the expected results for the particular design of the device. However, these languages are typically not designed for actual verification. Therefore, the verification engineer must write additional programming code in order to interface with the models described by these hardware description languages in order to perform design verification of the device.
Examples of testing environments include static and dynamic testing environments. A static testing environment drives pre-computed test vectors into the simulation model of the DUT and/or examines the results after operation of the simulation model. In addition, if the static testing environment is used to examine the ILJ- . LLΪ - ϋ'j '— -JJ PPP ' results which are output from the simulation model, then errors in the test are not detected until after the test is finished. As a result, the internal state of the device at the point of error may not be determinable, requiring the simulation to be operated again in order to determine such internal states. This procedure consumes simulation cycles, and can require the expenditure of considerable time, especially during long
tests.
A more useful and efficient type of testing is a dynamic testing environment.
For this type of environment, a set of programming instructions is written to generate the test vectors in concurrence with the simulation of the model of the DUT and while potentially being controlled by the state feedback of the simulated device. This procedure enables directed random generation to be performed and to be sensitive to effects uncovered during the test itself on the state of the simulation model of the device. Thus, dynamic test generation clearly has many advantages for design verification. Within the area of testing environments, both static and dynamic testing environments can be implemented only with fixed-vector or pre-generation input. However, a more powerful and more sophisticated implementation uses test generation to produce the environment.
One example of such a test generator is disclosed in U.S. Patent Application No. 09/020,792, filed on February 6, 1998, incorporated by reference as if fully set forth herein. This test generation procedure interacts with, and sits as a higher level ft i ' > ) - , <" "'.' ' F ' ^M ') xz over, such hardware description languages as Nerilog and NHDL. The test generation procedure is written in a hardware-oriented verification specific object-oriented
programming language. This language is used to write various tests, which are then used to automatically create a device verification test by a test generator module. A
wide variety of design environments can be tested and verified with this language.
Thus, the disclosed procedure is generalizable, yet is also simple to program and to
debug by the engineer.
The disclosed language features a number of elements such as structs for more
richly and efficiently describing the design of the device to be simulated by the model. Unfortunately, the disclosed language and resultant test generation environment does
not include features for providing a good, random solution for dynamic constraints in a reasonable processing time, and also cannot react dynamically on the same scale as the time period which is actually required for simulation. Furthermore, such features are also not known in the background art, which handles such constraints with a non-
random solution.
Therefore, there is an unmet need for, and it would be highly useful to have, a system and method for solving dynamic constraints through a specific, random but
correct solution, which would be created by executing a specific set of instructions. JLiill-J-."' _-_-i' _! [' _1 .
SUMMARY OF THE INVENTION
The system and method of the present invention tests the quality of a simulation model for the DUT (device under test) with dynamic constraint solving and test generation for the testing and verification process. The present invention provides such dynamic constraint solving through the creation of a sequence of instructions in a
"generator mini-language" (GML). These instructions are then executed in order to provide a correct random solution to a given set of dynamic constraints. The process of execution is preferably performed by a constraint resolution engine, optionally and more preferably implemented as software, which manages the requirements imposed by the constraints on the execution, while simultaneously enabling a random solution to the set of constraints to be provided. Such a constraint resolution engine may optionally be viewed as a type of state machine, in which individual elements of the state machine are more preferably represented by one or more dynamic graph(s).
According to the present invention, there is provided a system for dynamically solving constraints for test generation for a DUT (device under test), comprising: (a) a data model for the DUT; (b) an abstract generation machine for solving the constraints by creating a plurality of static instructions; and (c) a test generator for performing test generation according to the plurality of static instructions and according to the data model. According to another embodiment of the present invention, there is provided a method for dynamically solving a plurality of dynamic constraints for test generation !_ PI : ' p}-P , for a DUT (device under test), each constraint featuring at least one parameter, the
steps of the method being performed by a data processor, the method comprising the
steps of: (a) creating at least one dynamic graph for describing the plurality of
dynamic constraints, each node of the at least one dynamic graph representing a
constraint or a parameter, and each edge representing a relationship between
constraints; (b) reducing a number of nodes for the at least one dynamic graph; and (c) determining a path for traveling through the at least one dynamic graph to create a plurality of instructions for solving the dynamic constraints.
Hereinafter, the term "computing platform" refers to a particular computer
hardware system or to a particular software operating system. Examples of such hardware systems include, but are not limited to, personal computers (PC),
Macintosh ^computers, mainframes, minicomputers and workstations. Examples of
such software operating systems include, but are not limited to, UNIX, VMS, Linux,
MacOS™, DOS, FreeBSD, one of the Windows™ operating systems by Microsoft
Inc. (USA), including Windows NT™, Windows95™, Windows98™ and Windows
2000™.
The method of the present invention could also be described as a plurality of instructions being performed by a virtual or actual data processor, such that the
method of the present invention could be implemented as hardware, software,
firmware or a combination thereof. For the present invention, a software application could be written in substantially any suitable programming language, which could J i! J t 5 , J"M"' , χ_ fw n- easily be selected by one of ordinary skill in the art. The programming language chosen should be compatible with the computing platform according to which the software application is executed. Examples of suitable programming languages include, but are not limited to, C, C++ and Java. Hereinafter, the term "non-random" refers to a process, or an entity selected by the process, which is not random but which is not necessarily deterministic.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention is herein described, by way of example only, with reference to the accompanying drawings, wherein:
FIG. 1 is a schematic block diagram illustrating an exemplary system according to the present invention;
FIG. 2 is a schematic block diagram of a more detailed illustrative AGM from Figure 1; and FIG. 3 is a schematic block diagram of a graph after construction according to the method of the present invention.
DESCRIPTION OF THE PREFERRED EMBODIMENTS
The system and method of the present invention tests the quality of a simulation model for the DUT (device under test) with dynamic constraint solving and test generation for the testing and verification process. The present invention provides ϊ_}r \ > ' " "'A i \- " '' Jl_ l' fm' P such dynamic constraint solving through the creation of a sequence of instructions in a
"generator mini-language" (GML). These instructions are then executed in order to
provide a correct random solution to any given set of dynamic constraints. The
process of execution is preferably performed by a constraint resolution engine,
optionally and more preferably implemented as software, which manages the
requirements imposed by the constraints on the execution, while simultaneously enabling a random solution to the set of constraints to be provided. Such a constraint
resolution engine may optionally be viewed as a type of state machine, in which
individual elements of the state machine are more preferably represented by one or more dynamic graph(s).
The constraint resolution engine of the present invention enables the process of
resolving constraints to be at least partially performed before run-time, in the static analysis stage, thereby making the process of constraint resolution both more effective and more efficient. A set of instructions is then prepared for execution during run-
time by the constraint resolution engine. Thus, unlike the background art, which requires constraint resolution to occur during run-time, the present invention is capable of separating the process of constraint resolution into two stages: during static
analysis (before run-time), after which a set of instructions is prepared; and during run-time, when these instructions are executed.
According to preferred embodiments of the present invention, the state
machine has two components. The first component is an order manager functional unit, which preferably maintains a dynamic graph with bi-directional and unidirectional edges. This dynamic graph is more preferably used to determine the order of incorporation of each constraint into the executed instructions, according to the order which is implied between the nodes of the graph. This order in turn is more preferably determined according to the set of provided constraints at generation time. The second component of the state machine is preferably implemented as a dependency graph manager, which optionally and preferably maintains a dynamic bipartite graph relating nodes and constraints. Each node represents field ranges which can be generated. The dependency graph manager uses this dynamic graph to maintain the consistency of ranges of the set of provided constraints, which are described by the graph. Optionally and more preferably, the dependency graph manager is able to reduce the number of relationships which must be examined to maintain consistency through the use of reduction mechanisms. These reduction mechanisms are a method for maintaining sets of consistent values across ranges of possible values for the constraints.
The combination of the interactions of the order manager and the dependency graph manager drive the actions of the state machine. In turn, these actions enable the constraints to be statically analyzed, such that rather than attempting to provide a general absolute solution to a dynamic set of constraints, a single specific random solution is provided which nonetheless fulfills the requirements of the constraints. . 'i-.r F' ;.!| F- -'ni ' ■">>;'
This solution is embodied as a set of specific instructions to be performed by the state machine.
The advantage of the present invention is that the static analysis of the
constraints, and therefore the static production of the set of instructions, enables many complex operations to be performed once, during the stage of static analysis, rather
than at run-time for actually generating the particular instance for the test generation.
In addition, the set of instructions can itself optionally be analyzed in order to
optimize the execution of the instructions. These advantages are available in
background art methods and systems, which require constraint resolution to occur at run-time.
Further advantages of the present invention include the optional but preferred ability to translate the sequence of instructions into a plurality of different computer programming languages and/or for execution on different types of hardware, such as
"C" or "C++" for example, which is useful for the testing of the DUT in different
applications. In addition, the sequences of instructions can optionally be debugged more easily, similar to regular computer program code.
The principles and operation of the system and method according to the present
invention may be better understood with reference to the drawings and the
accompanying description. Referring now to the drawings, Figure 1 is a schematic block diagram
illustrating an exemplary system according to the present invention for test generation. iJ.rc', ■" no i J- .JJ "i ;'- It should be noted that the illustrated system only includes those general functions of
the test generation procedure which are required for the description of the present
invention. A more complete description of the entire test generation procedure may
be found in U.S. Patent Application No. 09/020,792, previously incorporated by
reference. It should also be noted that although the present invention is described in
the context of a simulation model, the present invention is also useful for verification
of a physical device. Both the physical device and the simulation model can be described as a DUT (device under test), which is in a test environment.
A test generation system 10 features a simulator 12, which may accept a design
14 for the device under test (DUT), written in a hardware descriptive language such as
Nerilog or NHDL. In addition, simulator 12 interacts with a test engine 16 for performing the test generation procedure at run-time. The interaction between
simulator 12 and test engine 16 is shown as bi-directional, since test engine 16
provides input to simulator 12, and in turn receives the results from simulator 12 as input for further operation.
Test engine 16 features a test generator 18, connected to a run-time system 21
for testing DUT 14 at run-time. Test generator 18 receives a set of constraints 20 and
an I/O data model 22, and then performs the testing and verification of DUT 14.
According to the present invention, constraints 20 include at least one set of a
plurality of dynamic constraints, which are then solved according to the method of the present invention, as described in greater detail below. Run-time system 21 both
drives and samples simulator 12 during the run-time testing procedure.
In order for the dynamic constraints portion of constraints 20 to be solved, test
generator 18 preferably includes an AGM (abstract generation machine) module 26.
AGM module 26 creates a sequence of instructions in a "generator mini-language" (GML). These instructions are then executed in order to provide a correct random
solution to any given set of dynamic constraints. Briefly, a static analysis module 29
preferably performs an initial analysis of the dynamic constraints before run-time, in
cooperation with test generator 18. This initial analysis preferably produces a set of instructions for generating the correct, random solution. Next, a run-time interpreter
module 31 preferably receives these instructions, and executes them in conjunction
with run-time system 21. A more detailed description of AGM module 26 is provided
with regard to Figure 2 below.
During the process of testing and verification, a data collector 24 requests the
values for one or more variables from run-time system 21. These requests are optionally performed according to a triggering event emitted by run-time system 21.
For example, for collection of data related to temporal coverage, such a triggering
event is optionally a fixed, predefined sampling time and/or the occurrence of a
temporal pattern of state transitions as defined by a temporal expression given in a temporal language, for example. Data collector 24 is able to communicate with test
generator 18 and to access the requested data through the API (application programming interface) for test generator 18. Such an API specifies the software function calls required in order to collect the desired data. This collected data is then analyzed by a data analyzer 26.
According to a preferred embodiment of the present invention, constraints 20 and I/O data model 22 are preferably constructed in e code, which is the code
language provided by the Specman™ functional programming environment (Nerisity
Design, Inc., Mountain View, California, USA) and disclosed in U.S. Patent Application No. 09/020,792. Such an embodiment is preferred because of the ease and flexibility of programming in e code. The e code language is a hardware-oriented verification specific object- oriented programming language. Objects in this language are instances of "structs", which contain a field, and one or more functions, or methods, which operate on data stored within the field and which interact with other objects. Optionally, a constraint can operate on the field, thereby altering the data stored in the field, for example by restricting the range of possible values for the data. The field can also be used to store more complex structures, including other structs and lists of scalars or structs.
The process of test generation fills data elements, including structs and fields, with random values. The possible data values for each element can optionally be limited by constraints, which provide the direction for the directed test generation. For dynamic constraints, as described in greater detail with regard to Figure 2 below, a selected, specific solution is provided according to the present invention for each instance of test generation. This solution is then used to provide limitations on the generated data values.
Turning now to Figure 2, the schematic block diagram shows an exemplary but preferred implementation of AGM module 26 from Figure 1. As shown, AGM module 26 preferably features a constraint resolution engine 27, in addition to static analysis module 29 and run-time interpreter 31. Constraint resolution engine 27 enables the process of resolving constraints to be at least partially performed before run-time, in the static analysis stage, thereby making the process of constraint resolution both more effective and more efficient. A set of instructions is then
prepared for execution during run-time by constraint resolution engine 27. Thus, unlike the background art, which requires constraint resolution to occur during runtime, the present invention is capable of separating the process of constraint resolution into two stages: during static analysis (before run-time), after which a set of instructions is prepared; and during run-time, when these instructions are executed. According to preferred embodiments of the present invention, constraint resolution engine 27 may optionally and preferably feature an order manager 28 and a dependency graph manager 30. Briefly, static analysis module 29 performs the initial analysis of the constraints for creating a set of instructions for execution in order to
create the random solution, while run-time interpreter 31 executes these instructions. Order manager 28 preferably maintains a dynamic graph 32 with bi-directional and uni-directional edges. Dynamic graph 32 is more preferably used to determine the order of incorporation of the instruction representing each constraint, according to the
order which is implied between the nodes of dynamic graph 32. This order in turn is more preferably determined according to the set of provided constraints. Each node
represents an instruction to be executed. Each instruction is in turn created according
to the relationships between constraints, as determined by dependency graph manager
30.
Dependency graph manager 30 in turn optionally and preferably maintains a
dynamic bi-partite relational graph 34 relating nodes and constraints. Each node represents field ranges for specific variables, for which particular values can be
generated as part of the test generation process. Dependency graph manager 30 uses
relational graph 34 in a process by which the consistency of ranges of legal values of the set of provided constraints is maintained, which is part of the reducing
mechanism. Optionally and more preferably, dependency graph manager 30 is able to
reduce the number of relationships which must be examined to maintain consistency.
Order manager 28 and dependency graph manager 30 together preferably create
a static series of instructions according to commands from static analysis module 29,
which, when executed by run-time interpreter 31, provide a solution to the set of constraints. This solution is more preferably provided as a set of values for variables. As previously described, if the e language is used to describe the constraints and the
data model for test generation, then these values may optionally include data elements such as scalars, structs and fields. According to preferred embodiments of the present invention, specific
instructions for order manager 28 optionally include, but are not limited to, management of the generation of value(s) for a struct according to the set of dynamic
constraints, with one frame being generated per struct. These commands include the OM__start rame command to start the generation process for a particular struct, and
the OM_close_Jrame command to end the generation process for this struct;
OM_create__nodes for creating order graph nodes for a given set of nodes for the
struct from the static analysis procedure; OM_create_edges for creating order graph
edges for a given set of nodes; OM_get_next for returning the next node in the
maintained order of the graph.
Specific instructions for dependency graph manager 30 optionally include, but are not limited to, DGM_create_constraint for creating a constraint node and
parameter nodes in relational graph 34, in which the parameter nodes are those entities or parameters related by the constraints; DGM_mark_as_changed for marking a set of
parameter nodes as having their range changed; DGM_update_consistent_ranges for
applying the reduction mechanism to a set of parameter nodes, thereby maintaining consistency of the ranges of possible values between constraint nodes;
DGM_test_consistency for checking a conditional constraint to see if the value should
be true or false in the current version of relational graph 34; and DGM_expand_struct
for replacing a node representing a struct by a set of nodes representing the fields of
the struct, such that any constraint edges for the old node now point to the new node. According to other preferred embodiments of the present invention, the AGM
is used to create "roles". When creating a GML sequence for a role, some of the
previously described operations are grouped into higher level instructions. Each such
group then forms an example of a role. Roles enable instructions to be executed at
run time according to such groups, which has the advantage of providing correct,
random solutions to the dynamic constraints in a more efficient manner. In particular,
roles enable the same struct type to optionally be generated in different contexts, with different constraints applicable to the struct and to the descendants of struct. Thus,
the role is a representation of the context in which the struct is to be handled in set of
generated instructions.
Roles are optionally and more preferably either statically unordered or ordered,
according to the manner in which the instructions are to be executed at run time in order to form the correct random solution to the dynamic constraints.
Roles are preferably used in order to simplify the situation in which a struct
type might be generated in different contexts, with different constraints applicable to it and its descendants. A generation role is a conceptualization of this need for a "struct-type in context", or for being able to define the struct according to the context,
such that the struct type is correctly generated according to both the definition of the struct and the context in which the struct is generated.
Static analysis according to the present invention optionally and preferably
identifies such roles, and constructs a complex data structure for representing and manipulating them. For example, in the context of the previously described e code,
assume that a struct of type S is defined, and the following field definitions are used
for defining another struct 'sys':
extend sys {
sl: S;
keep sl.j = 3;
s2: S; keep s2.j > 100;
}; It can be seen from the above example that the fields si and s2 share the same struct type S, but have different generation roles. The first field si is of the role
<sys.sl>, in which its field 'j' is constrained to be equal to 3, while the field 's2' is generated in the context of the role <sys.s2>, in which its field 'j' is constrained to be
more than 100. Thus, the same struct type might be mapped into many different roles when generated Generation roles therefore encapsulate the following information for a struct-type: relevant fields; applicable constraints; initial ranges; ordering edges.
Relevant fields are a list of generatable fields, or fields which can be generated, of
that type in this role. Applicable constraints are a list of constraints which are to be applied to fields in this role. Initial ranges are statically inferred ranges, or sets of
possible values, of the relevant fields. Ordering edges are the set of edges for determining the order in which constraints are applied and which are implied by uni- and bi- directional (applicable) constraints between relevant fields.
The above information is optionally and more preferably used to derive a Generation Mini-Language program for each role at the static analysis phase. This program preferably features code which can be executed at the time of generation runtime, thus capturing the necessary constraints in a correct but random solution to the problem of applying dynamic constraints at run-time.
Examples of different types of instructions for forming roles are described in greater below, along with the required input for each such instruction, according to the output of previously described commands which are thus grouped together to form each role.
For example, the command ROLE nitJnstruction requires the following input: a set of nodes to be created using the previously described command OM_create_nodes; a set of initial edges to be created using the previously described command OM_create_edges; and a set of constraints and their parameters to add to the DGM. The command ROLE_gen_field(field) performs the following functions: calls the command DGM_update_consistent_ranges with the value for {field}; generates a random value for field from its consistent range; sets the field to that value; and calls the cotia and DGM_mark_as_changed-witla {field}. DGM_mar!c_as_changed will cause that field's status to become changed, indicating that the graph component connected to it is inconsistent and must be re-evaluated. Sometimes nodes might be dependent on values that are fixed, being
previously generated, or non-generatable. These are called "dependent on fixed" or
dof.
Yet another command is ROLE_gen_top, in which the following instructions are executed: get next node Nfrom the OM using OM_get_next; if the picked node
has a fifo/ dication, then get dofs using the command OM_get_dofs; call the
command DGM_update_consistent_ranges with the information about dofs in order to compute values for the dofs; and then call the command ROLE_gen ield(N), which
computes a consistent value for N. The term "dof means "dependent on fixed", which is a generatable field whose value depends upon either a previously generated field, or a field which cannot be generated. Thus, this command causes any such
required field to be either generated, or to be determine to be unable to be generated.
Still another such command is ROLE_end_instruction, which is used for handling book-keeping to close OM frames, run checks to be certain that all open
processes are closed, and so forth. In particular, this command ends the generation process for this particular struct in this particular context, or "role".
As previously described, roles may be either statically ordered or unordered.
Using the above high level instructions, roles are mapped into sequences having one of these two forms. For example, statically ordered roles preferably have the following structure:
ROLE_init_instruction(nodes, edges, constraints) ROLE_gen_field(fιeldl) ROLE_gen_field(field2)
ROLE_gen_field(fιeldN)
ROLE_end_instruction
By contrast, statically unordered roles preferably have the following different structure:
ROLE_init_instruction(nodes, edges, constraints)
(number) * ROLE_gen_top
ROLE_end_instruction
As previously described, since the same struct type might be generated in different contexts, with different applicable constraints, the GML sequence is not a
property of the struct-type itself, but rather of the role according to which the sequence is to be generated.
Figure 3 shows a schematic block diagram of an exemplary dependency graph
36, produced according to the method described in greater detail below, resulting from a particular set of constraints. Briefly, for the purposes of this example, the order of fields is as follows: X, Y, Z, A, B, C. The following set of constraints is used: Keep X > Y Keep Y =-= Z
Keep Y == F() Keep A= B
Keep (X > 0) => b = G(C),
where FQ and GO are functions.
Calling the function OM_get_nextQ on this constraint system returns a field A
38, but with a c/o indication due to a field Y 40. Field Y 40 is computed using a
function F() 42. The computed value of field Y 40 is propagated to fields Z 43 and X
44. At this point, the value for field X 44 is generated. Field Y 40 already has received
the final value. Next the value for field Z 43 is computed.
Depending on the value of X, if X >0 a unidirectional edge 46 is added by calling OM_create_ edge from C to B. In this case calling OM_get_nextQ returns a
field C 48 because of the edge. Next, a final value for field C 48 is generated. At this point, a field B 50 is marked as a dof, being dependent on a fixed value. Calling
OM_get_next( ) returns field A 38 with a σ/indication. The returned dof is field B
50, which is evaluated using G(C), and the value so obtained is propagated to field A
38. At that time, the value for field A 38 is generated and the process terminates.
In the case where the value for field X 44 is generated to be less than 0, the generation order is A, B, C which is the order of fields. While the invention has been described with respect to a limited number of embodiments, it will be appreciated that many variations, modifications and other applications of the invention may be made.

Claims

WHAT IS CLAIMED IS:
1. A system for dynamically solving constraints for test generation for a
DUT (device under test), comprising:
(a) a data model for the DUT;
(b) an abstract generation machine for solving the constraints by creating a
plurality of static instructions for generating values for test generation
before run-time; and
(c) a test generator for performing test generation according to said plurality of static instructions for generating values and according to said data model at run-time.
2. The system of claim 1 , wherein said abstract generation machine further comprises a constraint resolution engine for managing requirements imposed by the
constraints on the test generation.
3. The system of claim 2, wherein each constraint features at least one
parameter and said constraint engine is a state machine for receiving said at least one parameter of each constraint and for creating at least one of said plurality of static instructions according to said at least one parameter of each constraint.
4. The system of claim 2, wherein said state machine has a plurality of
elements and said constraint resolution engine features at least one dynamic graph for
representing at least one element of said state machine, such that each constraint and
each node is represented by a node of said at least one dynamic graph, and wherein a relationship between the constraints is represented by edges of said at least one
dynamic graph.
5. The system of claim 4, wherein said constraint resolution engine further
comprises:
(i) an order manager for managing a first dynamic graph for determining an order for executing said instructions; and
(ii) a dynamic graph manager for managing a second dynamic graph for determining relationships between constraints in said instructions.
6. The system of claim 5, wherein said order is determined according to the constraints during test generation.
7. The system of claim 5, wherein said second dynamic graph is a dynamic
bi-partite graph for relating nodes to constraints, wherein each node represents field ranges capable of being generated, such that said second dynamic graph maintains
consistency between said field ranges.
8. The system of claim 7, wherein said dynamic graph manager reduces a
number of said relationships between the constraints.
9. A method for dynamically solving a plurality of dynamic constraints for
test generation for a DUT (device under test), each constraint featuring at least one
parameter, the steps of the method being performed by a data processor, the method
comprising the steps of:
(a) creating at least one dynamic graph for describing the plurality of
dynamic constraints, each node of said at least one dynamic graph representing a parameter, and each edge representing a relationship
between constraints;
(b) reducing a number of nodes for said at least one dynamic graph; and
(c) determining a path for traveling through said at least one dynamic graph
to create a plurality of instructions for solving the dynamic constraints.
10. The method of claim 9, wherein step (a) further includes the step of
providing a second bi-partite graph, featuring two sets of nodes, a first set for said constraints and a second set for said parameters.
11. The method of claim 10, further comprising the step of:
(d) executing said plurality of instructions to form a single specific solution to the constraints.
12. The method of claim 10, further comprising the step of:
(d) translating said plurality of instructions into a particular computer programming language.
13. The method of claim 9, wherein step (c) further comprises the step of grouping at least a portion of said plurality of instructions into a role for representing a context for interpreting the constraints.
14. The method of claim 13, wherein each role is selected from the group consisting of statically ordered and unordered.
PCT/IL2001/001011 2000-11-03 2001-10-31 System and method for test generation with dynamic constraints using static analysis WO2002037340A2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2002540016A JP2004513435A (en) 2000-11-03 2001-10-31 System and method for dynamic constrained test generation using static analysis
IL15569201A IL155692A0 (en) 2000-11-03 2001-10-31 System and method for test generation with dynamic constraints using static analysis
EP01982688A EP1374103A2 (en) 2000-11-03 2001-10-31 System and method for test generation with dynamic constraints using static analysis
AU2002214229A AU2002214229A1 (en) 2000-11-03 2001-10-31 System and method for test generation with dynamic constraints using static analysis
IL155692A IL155692A (en) 2000-11-03 2003-04-30 System and method for test generation with dynamic constraints using static analysis

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US24514600P 2000-11-03 2000-11-03
US60/245,146 2000-11-03
US09/799,066 US6684359B2 (en) 2000-11-03 2001-03-06 System and method for test generation with dynamic constraints using static analysis
US09/799,066 2001-03-06

Publications (2)

Publication Number Publication Date
WO2002037340A2 true WO2002037340A2 (en) 2002-05-10
WO2002037340A3 WO2002037340A3 (en) 2003-10-16

Family

ID=26937028

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IL2001/001011 WO2002037340A2 (en) 2000-11-03 2001-10-31 System and method for test generation with dynamic constraints using static analysis

Country Status (6)

Country Link
US (1) US6684359B2 (en)
EP (1) EP1374103A2 (en)
JP (1) JP2004513435A (en)
AU (1) AU2002214229A1 (en)
IL (1) IL155692A0 (en)
WO (1) WO2002037340A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125996A (en) * 2019-12-10 2020-05-08 上海高性能集成电路设计中心 Method for realizing instruction set based on bidirectional constraint tree of pseudo-random excitation generator

Families Citing this family (60)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030188044A1 (en) * 2002-03-28 2003-10-02 International Business Machines Corporation System and method for verifying superscalar computer architectures
US6968285B1 (en) 2003-04-09 2005-11-22 Hamid Adnan A Method and apparatus for scenario search based random generation of functional test suites
EP1621945B1 (en) * 2004-07-30 2017-03-29 Siemens Aktiengesellschaft Ensuring data consistency in an automation system
US7667582B1 (en) * 2004-10-14 2010-02-23 Sun Microsystems, Inc. Tool for creating charts
US7634761B2 (en) * 2004-10-29 2009-12-15 Microsoft Corporation Breakpoint logging and constraint mechanisms for parallel computing systems
US7376876B2 (en) * 2004-12-23 2008-05-20 Honeywell International Inc. Test program set generation tool
US7313772B2 (en) * 2005-05-24 2007-12-25 International Business Machines Corporation Systems, methods, and media for block-based assertion generation, qualification and analysis
US7415444B2 (en) 2006-05-18 2008-08-19 International Business Machines Corporation Determining compliance rates for probabilistic requests
US7809369B2 (en) * 2006-06-02 2010-10-05 W2Bi, Inc. Adaptive testing of system acquisition and roaming characteristics for CDMA wireless communication systems
US7870523B1 (en) 2006-06-15 2011-01-11 Cadence Design Systems, Inc. System and method for test generation with dynamic constraints using static analysis and multidomain constraint reduction
US7779374B1 (en) 2006-09-29 2010-08-17 Breker Verification Systems, Inc. Generating self-checking test cases from reduced case analysis graphs
US7543266B2 (en) * 2006-11-20 2009-06-02 Microsoft Corporation Lock-free state merging in parallelized constraint satisfaction problem solvers
US20080155354A1 (en) * 2006-12-20 2008-06-26 Kolman Robert S Method and apparatus for collection and comparison of test data of multiple test runs
US8296697B2 (en) * 2007-03-19 2012-10-23 Cadence Design Systems, Inc. Method and apparatus for performing static analysis optimization in a design verification system
US8271257B2 (en) * 2007-05-24 2012-09-18 Palo Alto Research Center Incorporated Troubleshooting temporal behavior in “combinational” circuits
US8024610B2 (en) * 2007-05-24 2011-09-20 Palo Alto Research Center Incorporated Diagnosing intermittent faults
US7617468B2 (en) * 2007-07-31 2009-11-10 Synopsys, Inc. Method for automatic maximization of coverage in constrained stimulus driven simulation
US7904846B2 (en) * 2007-07-31 2011-03-08 Synopsys, Inc. Method for automatically extracting a functional coverage model from a constraint specification
US20090070570A1 (en) * 2007-09-11 2009-03-12 Shubhodeep Roy Choudhury System and Method for Efficiently Handling Interrupts
US8099559B2 (en) * 2007-09-11 2012-01-17 International Business Machines Corporation System and method for generating fast instruction and data interrupts for processor design verification and validation
US7669083B2 (en) * 2007-09-11 2010-02-23 International Business Machines Corporation System and method for re-shuffling test case instruction orders for processor design verification and validation
US7992059B2 (en) 2007-09-11 2011-08-02 International Business Machines Corporation System and method for testing a large memory area during processor design verification and validation
US8006221B2 (en) * 2007-09-11 2011-08-23 International Business Machines Corporation System and method for testing multiple processor modes for processor design verification and validation
US8019566B2 (en) * 2007-09-11 2011-09-13 International Business Machines Corporation System and method for efficiently testing cache congruence classes during processor design verification and validation
US8527965B2 (en) * 2008-04-14 2013-09-03 Oracle America, Inc. Layered static program analysis framework for software testing
US9294621B2 (en) 2008-04-21 2016-03-22 Aetherpal Inc. Virtual mobile management—remote control
US8140457B2 (en) * 2008-07-09 2012-03-20 International Business Machines Corporation Determining compliance rates for probabilistic requests
US7966521B2 (en) * 2008-07-14 2011-06-21 International Business Machines Corporation Light weight and high throughput test case generation methodology for testing cache/TLB intervention and diagnostics
US8694893B2 (en) * 2008-08-08 2014-04-08 Oracle International Corporation Interactive product configurator with persistent component association
US8209276B2 (en) * 2008-10-27 2012-06-26 Oracle International Corporation Constraint based system with dynamic consistency checking
US8065255B2 (en) * 2008-11-13 2011-11-22 Oracle International Corporation Management of sub-problems in a dynamic constraint satisfaction problem solver
US8504501B2 (en) * 2008-11-13 2013-08-06 Oracle International Corporation Dynamic constraint satisfaction problem solver
US9443210B2 (en) * 2008-11-24 2016-09-13 Oracle International Corporation Interactive product configurator with automatic selections
US8165980B2 (en) * 2009-01-23 2012-04-24 Oracle International Corporation Dynamic constraint solver with cross problem constraints
US20100191688A1 (en) * 2009-01-29 2010-07-29 Oracle International Corporation Dynamic constraint solver with resource sum constraints
US8386544B2 (en) * 2009-02-05 2013-02-26 Oracle International Corporation Managing floating point variables in constraint satisfaction problems
US8126834B2 (en) * 2009-04-21 2012-02-28 Oracle International Corporation Dynamic constraint satisfaction problem solver with hierarchical union constraints
US8229869B2 (en) * 2009-04-22 2012-07-24 Oracle International Corporation Constraint processing with zero value handling
US8645302B2 (en) * 2009-04-28 2014-02-04 Oracle International Corporation Dynamic constraint satisfaction problem solver with part-whole hierarchy constraints
US8229870B2 (en) * 2009-04-28 2012-07-24 Oracle International Corporation Constraint based system with domain splitting
US8949103B2 (en) * 2009-05-01 2015-02-03 Microsoft Corporation Program code simulator
US8751425B2 (en) * 2009-06-12 2014-06-10 Oracle International Corporation Constraint satisfaction problem solver with interactive conflict resolution
US8170970B2 (en) * 2009-06-24 2012-05-01 Oracle International Corporation Constraint based system that identifies top constraint expressions
US8447716B2 (en) * 2009-07-27 2013-05-21 Oracle International Corporation Dynamic constraint satisfaction problem solver with inferred problem association removal
US8301582B2 (en) * 2009-10-15 2012-10-30 Oracle International Corporation Dynamic constraint satisfaction problem solver with sub-problem placeholder
US20120174068A1 (en) * 2010-12-30 2012-07-05 Sap Ag Testing Software Code
US20120331124A1 (en) * 2011-06-22 2012-12-27 Raman Ramteke Venkatesh Constraint definition for capacity mangement
US8560893B1 (en) * 2011-10-21 2013-10-15 Cadence Design Systems, Inc. Systems and methods for automatically generating executable system level-tests from a partially specified scenario
US9015246B2 (en) 2012-03-30 2015-04-21 Aetherpal Inc. Session collaboration
US9141509B2 (en) 2012-03-30 2015-09-22 Aetherpal Inc. Mobile device remote control session activity pattern recognition
US9224001B2 (en) 2012-03-30 2015-12-29 Aetherpal Inc. Access control list for applications on mobile devices during a remote control session
US9069973B2 (en) 2012-03-30 2015-06-30 Aetherpal Inc. Password protect feature for application in mobile device during a remote session
US9473953B2 (en) 2012-03-30 2016-10-18 Aetherpal Inc. Roaming detection and session recovery during VMM-RC
US11468218B2 (en) 2012-08-28 2022-10-11 Synopsys, Inc. Information theoretic subgraph caching
US9720792B2 (en) 2012-08-28 2017-08-01 Synopsys, Inc. Information theoretic caching for dynamic problem generation in constraint solving
US8904320B2 (en) 2013-03-13 2014-12-02 Synopsys, Inc. Solving multiplication constraints by factorization
CN104462625B (en) * 2013-09-23 2017-08-22 广州汽车集团股份有限公司 A kind of automotive suspension kinetic model calibration method
CN105160135B (en) * 2015-10-08 2019-08-23 中国飞机强度研究所 A method of calculating testpieces test data and analysis data consistency
US10438682B2 (en) 2017-12-21 2019-10-08 International Business Machines Corporation List insertion in test segments with non-naturally aligned data boundaries
CN110175019B (en) * 2019-06-04 2021-11-16 南京大学 Interrupt driving system verification method based on interrupt sequence diagram

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998055879A1 (en) * 1997-06-03 1998-12-10 Verisity Ltd. Method and apparatus for test generation during circuit design

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04278475A (en) * 1990-12-26 1992-10-05 Internatl Business Mach Corp <Ibm> Method and system for generation and simulation of look-ahead pattern
US5377201A (en) * 1991-06-18 1994-12-27 Nec Research Institute, Inc. Transitive closure based process for generating test vectors for VLSI circuit
GB2278213A (en) * 1993-05-18 1994-11-23 Ibm Test program generator.
US6178533B1 (en) * 1997-06-30 2001-01-23 Sun Microsystems, Inc. Method and system for design verification
US6141630A (en) * 1997-08-07 2000-10-31 Verisity Design, Inc. System and method for automated design verification
US6212667B1 (en) * 1998-07-30 2001-04-03 International Business Machines Corporation Integrated circuit test coverage evaluation and adjustment mechanism and method
US6467058B1 (en) * 1999-01-20 2002-10-15 Nec Usa, Inc. Segmented compaction with pruning and critical fault elimination
US6341361B1 (en) * 1999-06-01 2002-01-22 Advanced Micro Devices, Inc. Graphical user interface for testability operation
US6484135B1 (en) * 1999-08-30 2002-11-19 Hewlett-Packard Company Method for adaptive test generation via feedback from dynamic emulation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998055879A1 (en) * 1997-06-03 1998-12-10 Verisity Ltd. Method and apparatus for test generation during circuit design

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
AHARON A ET AL: "VERIFICATION OF THE IBM RISC SYSTEM/6000 BY A DYNAMIC BIASED PSEUDO-RANDOM TEST PROGRAM GENERATOR" IBM SYSTEMS JOURNAL, IBM CORP. ARMONK, NEW YORK, US, vol. 30, no. 4, 1991, pages 527-538, XP000263591 ISSN: 0018-8670 *
BISWAS P ET AL: "Functional verification of the superscalar SH-4 microprocessor" COMPCON '97. PROCEEDINGS, IEEE SAN JOSE, CA, USA 23-26 FEB. 1997, LOS ALAMITOS, CA, USA,IEEE COMPUT. SOC, US, 23 February 1997 (1997-02-23), pages 115-120, XP010219520 ISBN: 0-8186-7804-6 *
LEWIN D ET AL: "A methodology for processor implementation verification" FORMAL METHODS IN COMPUTER-AIDED DESIGN. FIRST INTERNATIONAL CONFERENCE, FMCAD '96 PROCEEDINGS, PROCEEDINGS OF INTERNATIONAL CONFERENCE ON FORMAL METHODS IN COMPUTER-AIDED DESIGN (FMCAD - SUCCESSOR TO TPCD), PALO ALTO, CA, USA, 6-8 NOV. 1996, pages 126-142, XP002231570 1996, Berlin, Germany, Springer-Verlag, Germany ISBN: 3-540-61937-2 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125996A (en) * 2019-12-10 2020-05-08 上海高性能集成电路设计中心 Method for realizing instruction set based on bidirectional constraint tree of pseudo-random excitation generator
CN111125996B (en) * 2019-12-10 2023-04-07 上海高性能集成电路设计中心 Method for realizing instruction set based on bidirectional constraint tree of pseudo-random excitation generator

Also Published As

Publication number Publication date
US20020166089A1 (en) 2002-11-07
JP2004513435A (en) 2004-04-30
US6684359B2 (en) 2004-01-27
AU2002214229A1 (en) 2002-05-15
WO2002037340A3 (en) 2003-10-16
EP1374103A2 (en) 2004-01-02
IL155692A0 (en) 2003-11-23

Similar Documents

Publication Publication Date Title
US6684359B2 (en) System and method for test generation with dynamic constraints using static analysis
US6530054B2 (en) Method and apparatus for test generation during circuit design
US6219809B1 (en) System and method for applying flexible constraints
US7114111B2 (en) Method and apparatus for maximizing test coverage
Deng et al. Bogor/kiasan: A k-bounded symbolic execution for checking strong heap properties of open systems
Memon A comprehensive framework for testing graphical user interfaces
US8024691B2 (en) Automata unit, a tool for designing checker circuitry and a method of manufacturing hardware circuitry incorporating checker circuitry
US7234094B2 (en) Automaton synchronization during system verification
US7870523B1 (en) System and method for test generation with dynamic constraints using static analysis and multidomain constraint reduction
EP1707972A1 (en) Method and apparatus for functionally verifying a physical device under test
Holzmann et al. Validating SDL Specifications: an Experiment.
US6990438B1 (en) Method and apparatus for observability-based code coverage
EP1314045B1 (en) Method for providing bitwise constraints for test generation
US7665067B2 (en) Method and system for automatically creating tests
US6920583B1 (en) System and method for compiling temporal expressions
US8296697B2 (en) Method and apparatus for performing static analysis optimization in a design verification system
Na et al. Simulated fault injection using simulator modification technique
Sohn et al. State-based reproducible testing for CORBA applications
Kerraoui et al. MATT: multi agents testing tool based nets within nets
IL155692A (en) System and method for test generation with dynamic constraints using static analysis
Royce Status report: computer-aided prototyping
Adamek Addressing unbounded parallelism in verification of software components
Koprek et al. Software Layer for FPGA-Based TESLA Cavity Control System (Part I)
Flater Manufacturer’s CORBA Interface Testing Toolkit: Overview
Sohn et al. CORBA components testing with perception-based state behavior

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
WWE Wipo information: entry into national phase

Ref document number: 155692

Country of ref document: IL

Ref document number: 2001982688

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2002540016

Country of ref document: JP

Ref document number: 660/CHENP/2003

Country of ref document: IN

REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

WWP Wipo information: published in national office

Ref document number: 2001982688

Country of ref document: EP

WWR Wipo information: refused in national office

Ref document number: 2001982688

Country of ref document: EP

WWW Wipo information: withdrawn in national office

Ref document number: 2001982688

Country of ref document: EP