US 5,691,925 AGrant
Deriving Tractable Sub-System for Model of Larger System
Issue Date:1997-11-25
•3 Claims
•19 Drawing Sheets
Abstract
The invention concerns reduction of a complex model of a system to a simpler model. The invention defines a task postulates a simple sub-system, and inquires whether the sub-system achieves the task. If not, the invention selects components from the complex model, based on functional relationship of the components to the task, adds the components to the simpler sub-system, and again inquires whether the sub-system achieves the task. The addition process is repeated until a sub-system is attained which does achieve the task.
Metadata
Assignee
- Lucent Technologies Inc.
Inventors
- Ronald H. Hardin
- Robert P. Kurshan
Application Information
Application Number:US 3833410
Filing Date:1995-02-03
Priority Date:1992-06-29
Art Unit:244
Classifications
IPC:
G06F 1700
Field of Search:
364395578;5;4;2;232.3;281.6;933.8;488;489;512;553500;919;920;921;922;66;67
Patent Drawings (19 sheets)
Description
BACKGROUND OF THE INVENTION
The designer of a complex system generally wishes to verify that the system will perform as expected, prior to actually constructing the system. The designer commonly generates a model of the system, in order to simulate operation of the system.
Frequently, the model takes the form of a complex state machine. However, a complex state machine can reside in an astronomical number of states, and it is generally unfeasible to examine all states, in the testing process.
Example of Large Number of States
An illustration of a large number of states can be found in random access memory, RAM (which is not necessarily a state machine, but which illustrates the magnitude of the problem). Consider a RAM which contains one million bytes, giving a total of eight million bits of storage capacity. The number of possible different combinations of stored bits is 2.sup.8,000,000, which is an utterly enormous number. The RAM, or even a model of it, cannot be tested by storing all possible bit combinations.
Luckily, in the case of RAM, all possible combinations need not necessarily be used. It may be sufficient to write a specific word into every memory location (instead of every possible combination of words), and then read each word, to verify that the words have been stored properly. This process involves one million write operations, plus one million read operations, together with the analysis of each read operation.
This simpler test can be done in a reasonable length of time. However, success of this test does not necessarily guarantee perfect functioning of the system. For example, it is possible (but unlikely) that use of a different word will produce errors. This fact will not be detected by use of the original word. As another example, it is possible that storing two different words at adjacent locations may cause an error, and this fact would also not be detected by the original word.
Large State Machines
State machines also possess large numbers of possible states, and it is not feasible, or even possible, in many cases, to cycle the state machine through all states. Simplifications are done, as by (a) defining tasks which are to be attained, (b) selecting a sub-system of the system, and (c) examining whether the sub-system attains the task. One prior-art approach to simplification, or reduction, is the following. (See F. Balarin and A. Sangiovanni-Vincentelli, "An Iterative Approach to Language Containment," Lecture Notes in Computer Science (LNCS), 697, pages 29-40 1993!.)
Example of Simplification
A user begins with a simpler model, and inquires whether the simpler model accomplishes the task. If not, then the user randomly adds one or more components to the model, and repeats the inquiry. At some point, after a sufficient number of components have been added, the simpler model will probably achieve the task.
However, this approach suffers two disadvantages. One lies in the random approach to expansion of the simple model. There is no assurance that addition of a randomly selected component will increase the likelihood of achievement of the task. Thus, time will probably be wasted in testing non-relevant subsystems, en route to a successful sub-system.
A second is that, the final sub-system probably contains non-relevant components, because of the random addition process. Thus, the model, while perhaps smaller than the larger model which it intended to replace, is nevertheless probably larger than necessary.
SUMMARY OF THE INVENTION
In one form of the invention, a model of a system is reduced to a simpler model by the steps of
a) defining a task;
b) defining a subsystem; and
c) successively expanding the sub-system, based on functional relationships between the subsystem and components not included in the sub-system, until the task is achieved.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1.1 illustrates ascending level of complexity in different model checking processes.
FIG. 1.2 illustrates a data-flow diagram for a hypothetical traffic signal.
FIG. 1.3 illustrates state transition diagrams for the data-flow diagram of FIG. 1.2
FIG. 1.4 illustrates an omega-automaton which defines the task "no cars collide."
FIG. 1.5 illustrates an automaton which models the requirement that all cars on Avenue A eventually succeed in crossing the intersection.
FIG. 1.5A illustrates a reduced state model.
FIG. 1.5B illustrates reduced state space of a component.
FIG. 1.5C illustrates application of state minimization to the model of FIG. 1.5B.
FIG. 1.5D illustrates an error track.
FIG. 1.5E illustrates two automata.
FIG. 2.1 illustrates classical dynamic representation of an automaton transition structure.
FIG. 2.1A illustrates conditions for transitions.
FIG. 2.2 is a static representation of an automata transition structure, in terms of Boolean predicates.
FIG. 2.3 illustrates parallel composition of the transition structures M and M'.
FIG. 2.4 is a matrix representation of a transition structure.
FIG. 2.5 illustrates that a Boolean algebra may be represented as an N-cube.
FIG. 4.1A illustrates abstraction of detailed events.
FIG. 5.1 illustrates a shift register.
FIG. 5.2 illustrates a deterministic binary counter.
FIG. 5.3 illustrates change of language accepted by an input.
FIG. 6.1A illustrates a state diagram for use with Example 6.1.9
FIG. 6.1B illustrates a state diagram for use with Example 6.2.47.
FIG. 6.1C illustrates a process involved in a proof of Theorem 6.2.49.
FIG. 6.1D illustrates paths in state space along recur edges.
FIG. 7.1 illustrates an s/r model.
FIG. 7.2 illustrates the concept of delay.
FIG. 7.3 illustrates a canonical pair of states.
FIG. 7.4 illustrates a two-level signal alternating between x.sub.0 and x.sub.1.
FIGS. 7.5 and 7.6 illustrate lockup-free Moore processes.
FIGS. 7.6A and 7.6B illustrate asynchronous equivalence.
FIG. 8.1 illustrate two processes.
FIG. 8.2 illustrates graphically the situation described in Theorem 8.3.16.
FIG. 8.2A illustrates relationships between different languages.
FIGS. 8.3 and 8.4 illustrate a development methodology for use with the invention.
FIG. 8.4A illustrates setting of a bit each time a recur edge is crossed, and unsetting each time a non-recur edge is crossed.
FIG. 8.5 illustrates graphically a situation involved in the proof of Theorem 8.10.6.
FIG. 8.6 illustrates reduction of a graph.
FIG. 8.6A defines the task "All cars on each road eventually get through the intersection."
FIG. 8.6B illustrates reduction of a circular queue.
FIGS. 9-11 contain flow charts which illustrate logic implemented by one form of the invention.
DETAILED DESCRIPTION OF THE INVENTION
Appendices A (incorporated by reference) and B (attached hereto) contain technical information sufficient to explain how to implement the invention using a programmable digital computer. A highly simplified view of one form of the invention can be given as follows.
Assume that the overall system is an automobile. However, suppose that the task of interest is reception of radio broadcasts. To examine whether the automobile achieves the task, the radio sub-system is to be isolated from the overall automobile.
To a knowledgeable engineer, this particular isolation is straightforward: the radio subsystem contains a list of elements such as the following:
1. power supply (ie, the car battery),
2. power cables,
3. antenna,
4. antenna cable, and
5. the radio itself.
When these are all connected properly, the radio will function.
In the general case, however, such a list is not available, because a minimal set of components (such as the five components listed above) required to perform the defined task is not known. The sub-system must be derived, or abstracted, from the larger system. The invention assists this derivation. One simplified view of the procedure taken by the invention is the following.
Simplified Procedure
Each component, such as the five given in the list above, is described by a model, or specification of operational characteristics. The models may be more, or less, complex, depending on the intentions of the designer. The models describe the relevant behavior of their respective components, generally in terms of input-output relations. As examples, models for the five components given would contain information such as the following.
1. Power supply. Inputs: none. Output: 13.5 volts. Maximum current, 100 amps.
The power supply model may be more complex. It may contain a function which describes output current vs. output voltage. It may also contain input requirements, such as (a) specific temperatures needed, (b) a specified amount of electrolyte needed, having a stated specific gravity or stated chemical composition, and so on. Again, the degree of complexity of each specification will depend on the circumstances.
2. Power cables. Input: power supply. Output: voltage of power supply, minus I-squared-R losses due to current drawn.
3. Antenna. Input requirements: access to ambient rf radiation. Output: rf signal.
4. Antenna cable. Input: antenna output. Output: rf signal, minus attenuation. More complicated specifications will add noise to the output.
5. Radio. Input: antenna cable and power cables. Output: sound of selected channel.
The invention begins by selecting a component known to be involved in the sub-system to be developed, such as the radio itself, item number 5. The invention attempts to cause the radio to operate, by attempting to simulate the radio. However, the radio fails to operate, because, as the radio's specification indicate, power cables and antenna cables are required to provide inputs.
Next, the invention adds these cables to the model, tries to get the radio to operate, but fails again. The invention then examines the specification of the added components. For the antenna cable, the invention finds that antenna output is required as an input. Similarly, for the power cables, the invention learns that the battery is required as an input. The invention adds the battery and the antenna to the model.
Now, the invention tries to operate the radio, and succeeds. A reduced model of has been attained. Chapter 8.4 of Appendix A, incorporated by reference entitled "Automatic Localization Reduction," contains greater detail on the process of reduction, and provides a basis for writing computer code to implement the reduction process. Appendix B, entitled "Task Manager/Reduction Assistant," is a specification which can also be used as a basis for code development.
Significant Features
1. Derivation of the sub-system is not random, but systematic. For example, when the radio in isolation was found inoperative, the invention sought dependencies, and added the components upon which the radio depended, such as the cables described above.
When the radio still failed, the invention sought further dependencies, namely, those of the added components (the cables), and so on. The invention did not add clearly irrelevant components, such as a spare tire, because the component specifications do not express a dependency upon a spare tire.
An extremely simple example of dependency is the following: assume that the output Y of a component Y is described by the following expression, which would be contained in the specification for Y:
Y clearly depends upon M, X, and B. Assume that M and B are constants, and that the functional specification of Y contains the values for M and B, but not for X, because X is the output of another component, and is variable.
When the invention attempts to operate Y in isolation, failure will result, because no value of X has been used as input. Upon failure, the invention will examine the specification of Y, learn that X is missing, and add a component which supplies X. The invention ascertained the dependence on X, and added X to the sub-system. This example illustrates one view of a systematic approach to expanding the model, or sub-system.
2. Dependency will, of course, depend on the particular details of the specifications used. For example, returning to the automobile example, a particular radio's specification may require exactly 12.0 volts: the radio depends on 12.0 volts. An automobile battery may supply a higher voltage, such as 13.5 volts. A voltage regulator may be required to reduce the 13.5 volts to 12.0 volts.
In this case, the radio has a dependency upon the voltage regulator, which, in turn, depends on the battery. In developing the sub-system, the invention would (eventually) include the voltage regulator, based on the dependencies.
In contrast, a battery which lacks the 12.0-volt requirement will not possess this dependency, and would require no voltage regulator.
Dependency is one type of functional relation existing between components.
Conclusion
The textbook entitled "Computer-Aided Verification of Coordinating Processes." (Kurshan, R. P.; Princeton University Press 1994) is incorporated by reference. Appendix B is a specification which can be used by a programmer to develop code for performing the reduction of a system model. Appendix B is hereby incorporated by attachment.
U.S. Pat. No. 5,163,016, issued to Har'El et al. on Nov. 10, 1992, describes a development apparatus suitable for use with the present invention. This patent is hereby incorporated by reference.
Numerous substitutions and modifications can be undertaken without departing from the true spirit and scope of the invention. What is desired to be secured by Letters Patent is the invention as defined in the following claims.
Claims
We claim:
1. A process of deriving a model of a sub-system from a model of a more complex system, comprising the following simulation steps: a) defining a task; b) defining a sub-system; and c) successively expanding the sub-system, based on functional relationships between the sub-system and components not included in the sub-system, until the task is achieved.
2. A method of deriving a model of a sub-system from a model of a more complex system, comprising the following steps: a) storing specifications for components of the complex system, which describe functional relationships between the respective component and other components; b) defining a task; c) selecting a subsystem of one or more components; d) testing whether the subsystem achieves the task and, if not, successively repeating the following steps until the task is achieved: i) selecting one or more new components, based on the functional relationships of A) components in the existing subsystem, and B) the new components; ii) adding the new components to the sub-system, to produce an expanded sub-system; and iii) testing whether the expanded sub-system achieves the task.
3. A method of deriving a reduced model from a larger model which contains A) specifications which describe behavior of components of the larger model, and B) descriptions of functional relationships between components of the larger model, comprising the following simulation steps: a) defining a task; b) selecting one or more components and examining their behavior; i) if the combined behaviors accomplish the task, declaring that the reduced model is defined by the selected components; and ii) if the behavior fails to accomplish the task, examining dependencies of already-selected components, and repeatedly adding components which supply the dependencies, until the task is accomplished.