|Publication number||US5526486 A|
|Application number||US 08/042,856|
|Publication date||Jun 11, 1996|
|Filing date||Apr 5, 1993|
|Priority date||Oct 22, 1990|
|Also published as||EP0482495A2, EP0482495A3, EP0482495B1|
|Publication number||042856, 08042856, US 5526486 A, US 5526486A, US-A-5526486, US5526486 A, US5526486A|
|Inventors||David Moloney, Maurizio Zuffada, Gianfranco Vai, Fabrizio Sacchi|
|Original Assignee||Sgs-Thomson Microelectronics S.R.L.|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (7), Non-Patent Citations (8), Referenced by (9), Classifications (21), Legal Events (3)|
|External Links: USPTO, USPTO Assignment, Espacenet|
This is a Continuation of application Ser. No. 07/779,680 filed Oct. 21, 1991, now abandoned.
1. Field of the Invention
The present invention relates to a finite-state machine for reliable computing and adjustment systems.
2. Description of the Related Art
Finite-state machines (FSM) are used to provide a sequence of predetermined actions in digital computing systems. Said finite-state machines (FSM) are usually composed of a combinatorial logic 1 and of a state memory 2, as illustrated in FIG. 1. The signals of the outputs 3 and the signals of the future states 4 are generated by the combinatorial logic 1 from the signals of the inputs 6 and from the signals of the current states 7, and the electronics of the combinatorial logic 1 performs the following logic operation:
if (CURRENT STATE) and (INPUTS) then (FUTURE STATE) and (OUTPUTS).
Finite-state machines can be implemented in bipolar technology, in MOS technology or in gallium arsenide (GaAs) technology, using programmable logic arrays (PLA), or nonvolatile memories (ROM), or logic gate arrays, or completely or partially dedicated cells.
Logical machines have a fundamental property, i.e. if m is the number of external input signals 6 and n is the number of the signals of the current states 7, then the complexity, i.e. the number of product terms, of the combinatorial logic 1 is equal to 2 (m+n). This complexity value naturally rises exponentially as the numbers m and n become larger, even independently.
Due to the considerable number of input signals, i.e. of the external input signals 6 and of the current state signals 7, finite-state machines are seldom completely defined, or rather the number of states used is smaller than the maximum capacity of the finite-state machine itself, so that there is typically large set of undefined states.
As an unwanted result, if the finite-state machine assumes one of the undefined states, for example due to an interruption in the power supply or to noise of whatever origin, said finite-state machine has an unwanted and unknown behavior.
This last behavior is absolutely unacceptable, especially in those cases in which finite-state machines control an aircraft, an electric nuclear power plant, a telephone network or a medical instrument.
A solution currently used in order to obviate the unwanted behaviors of the finite-state machine consists in using a so-called watchdog timer, illustrated in FIG. 2, i.e. a programmable timer which, if it is not periodically reset, generates an interrupt which resets the entire system.
Said watchdog timer is composed of a counter 8 which is connected to a comparator 9. Said comparator receives in input a word 9a of n bits which represents the period of the watchdog timer, and sets a system reset signal 11. The system reset signal 11 is set on input to an OR logical gate 12, and a second input to said logical gate 12 is a reset signal 13. The OR logical gate 12 sets, toward the counter 8, a counter reset signal 14 which resets said counter either by means of the system reset signal 11, in case of a system reset, or by means of the reset signal 13.
The disadvantages of this solution are numerous and can be summarized in the need for special circuits, such as the watchdog timer, and in the need for the user program to constantly check whether the watchdog timer must be reset or not. This last disadvantage requires the use of a further timer which generates a signal 8a, either of a circuital type or of a software type, and therefore increases the cost of the development of the user program, reducing its performance, due to the need for constant checking of the watchdog timer.
There are also problems related to the operation of the watchdog timer: the finite-state machine can in fact have an abnormal behavior lasting up to one time period of the watchdog timer; in other words, if any event induces the finite-state machine to malfunction immediately after the resetting of the watchdog timer, an entire time period or machine cycle must elapse before the new setting of either a system reset signal 11 or a reset signal 13.
Finally, and more dangerously, the watchdog timer is reset by the output of a finite-state machine and does not take into account the current state of said machine. The watchdog timer can thus be reset by the finite-state machine although said machine is in an undefined state and abnormal behavior continues absolutely undisturbed.
A better solution consists in providing a known state as future state for each of the undefined states, but this solution entails up to 2n -k additional product terms, where n is the number of bits of a state and k is the number of states defined in the finite-state machine. In the case of 8 state bits (28 = 256) and of 129 defined states, another 127 product terms are required. This last solution has the disadvantage that the finite-state machine does not interrupt its operations after an undefined state has been reached unless this has been specified beforehand in the defined state vector.
The aim of the present invention is to eliminate or substantially reduce the disadvantages described above in known types of FSM by providing a finite-state machine for reliable computing and adjustment systems which eliminates the use of a watchdog timer.
Within the scope of the above described aim, an object of the present invention is to provide a finite-state machine which reduces circuital and user program complexity.
Another object of the present invention is to provide a finite-state machine which substantially eliminates the possibility of any abnormal behavior due to the assuming of an undefined state on the part of said machine.
A further object of the present invention is to provide a finite-state machine which eliminates the possibility of the persistence of an abnormal behavior, detecting the undefined state in any situation.
Not the least object is to provide a finite-state machine which interrupts its operating cycle and/or the operating cycle of the entire system which comprises it if an undefined state is reached.
Not the least object of the present invention is to provide a finite-state machine which is relatively easy to implement and at competitive costs.
This aim, these objects and others which will become apparent hereinafter are achieved by a finite-state machine for reliable computing and adjustment systems according to the invention, comprising a combinatorial logic connected to a state memory by means of connections which carry future state signals and of connections which carry current state signals, said combinatorial logic comprising input terminals for input signals which are external to said finite-state machine and output terminals for output signals generated by said combinatorial logic, characterized in that it comprises means suitable for comparing said future state signals to at least one reference level and for setting an error signal toward means for resetting said finite-state machine.
Further characteristics and advantages of the invention will become apparent from the description of a preferred but not exclusive embodiment of a finite-state machine according to the invention, illustrated only by way of non-limitative example in the accompanying drawings, wherein:
FIG. 1 is a diagram of a known finite-state machine;
FIG. 2 is a diagram of a known watchdog timer;
FIG. 3 is a diagram of a finite-state machine according to the invention;
FIG. 4 is a diagram of a dynamic comparator in MOS technology; and
FIG. 5 is a diagram of a cell of the dynamic comparator in MOS technology.
With reference to FIG. 3, a finite-state machine comprises a combinatorial logic 10 which is connected to a state memory 11 by means of connections which carry future state signals 12, each having n bits, and connections which carry Current state signals 13, each having n bits.
The combinatorial logic 10 comprises input terminals 14 for external input signals and output terminals 15 for output signals generated by said combinatorial logic 10.
The finite-state machine furthermore comprises means for comparing the future state signals 12 to at least one reference level 16, also having n bits. The comparison means comprise at least one comparator 17 which has at least two input terminals, indicated by the reference numerals 12 and 16. Each input terminal 12 and 16 is divided into a plurality n of conductors, each carrying an elementary item of information or bit of the future state signals 12 and of the reference level 16.
Conveniently, if the future state signal 12 assumes a value higher than the reference level 16, then the comparator 17 sets an error signal 18 toward means for resetting the finite-state machine.
Advantageously, the reference level 16 is set to the maximum value assumed by the used or defined states, which are assigned sequentially starting from the zero value up to the n-th value, with the rule that the absolute maximum of the possible states is equal to 2n -1.
Conveniently, the reset means comprise an OR logical gate 19 with a plurality of input terminals 18 and at least one output terminal 20. The plurality of input terminals 18 is connected to the output terminals of the comparators 17, each of which is comprised in a finite-state machine. In this manner it is advantageously possible to obtain a signal for interrupting the operation of an apparatus of whatever complexity, even if one of the m finite-state machines has an undefined state.
The comparator 17 is of a well-known type, either dynamic or static. AMOS technology dynamic comparator is illustrated in FIG. 4 by way of example. It is composed of a plurality of cells of the type illustrated in FIG. 5. In FIG. 4, the terminals indicated by A0, A1, AN, B0, B1, BN and the overscored counterparts are the bits of the signals A and B, and the comparator checks whether A is greater than B. The cell of FIG. 5 comprises the terminals A, B, the overscored counterparts and a terminal CLK which is the cell's timing signal.
The overscored terminals indicate that the input signal is the logically negated value with respect to the signal present on the non-overscored terminals.
Other types of usable comparators are, still by way of example, those published in the IEEE JOURNAL OF SOLID-STATE CIRCUITS, vol. 23, no. 24, Aug. 1988, page 1016, or those published in ELECTRONICS, Sept. 22, 1983.
The operation of the invention is identical to that of known finite-state machines, for the states which are defined during the design stage, whereas if the finite-state machine has an undefined state, therefore a state higher than the reference level 16, the comparator 17 immediately sets an error signal 18, which is converted into the interrupt signal 20 by the OR logical gate 19. If the apparatus is controlled by a plurality of finite-state machines according to the invention, it can be interrupted in its operation by a single error signal 18 arriving from a single finite-state machine, also advantageously allowing the possibility of detecting the cause of the attainment of said undefined state.
The invention thus conceived is susceptible to numerous modifications and variations, all of which are within the scope of the inventive concept.
All the details may furthermore be replaced with other technically equivalent elements.
In practice, the materials employed, as well as the dimensions, may be any according to the requirements.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US3982111 *||Aug 4, 1975||Sep 21, 1976||Bell Telephone Laboratories, Incorporated||Memory diagnostic arrangement|
|US4356546 *||Feb 5, 1980||Oct 26, 1982||The Bendix Corporation||Fault-tolerant multi-computer system|
|US4672609 *||Mar 28, 1986||Jun 9, 1987||Tandem Computers Incorporated||Memory system with operation error detection|
|US4727548 *||Sep 8, 1986||Feb 23, 1988||Harris Corporation||On-line, limited mode, built-in fault detection/isolation system for state machines and combinational logic|
|US4845712 *||Nov 30, 1987||Jul 4, 1989||Tandem Computers Incorporated||State machine checker|
|US4853932 *||Oct 9, 1987||Aug 1, 1989||Robert Bosch Gmbh||Method of monitoring an error correction of a plurality of computer apparatus units of a multi-computer system|
|US5113187 *||Mar 25, 1991||May 12, 1992||Nec America, Inc.||CMI encoder circuit|
|1||*||Derwent Research Disclosure, RD 290074, 10 Jun. 1988, DW8831, An 88 218147; Anonymous: Finite State Machine for CKD Execution by Control Unit Starts in State 1 and Proceeds to Different States Depending Upon Received CCW.|
|2||Derwent Research Disclosure, RD 290074, 10 Jun. 1988, DW8831, An 88-218147; Anonymous: "Finite State Machine for CKD Execution by Control Unit--Starts in State 1 and Proceeds to Different States Depending Upon Received CCW."|
|3||IBM Technical Disclosure Bulletin, vol. 21, No. 5, Oct. 1978, New York, U.S. p. 2022, Beaven et al. "Verification That A Logic Design Does Not Enter An Illegal State."|
|4||*||IBM Technical Disclosure Bulletin, vol. 21, No. 5, Oct. 1978, New York, U.S. p. 2022, Beaven et al. Verification That A Logic Design Does Not Enter An Illegal State.|
|5||*||Patent Abstracts of Japan, vol. 13, No. 412 (P 932) 12 Sep. 1989 and JP A 11 52 379 (Yokogawa Hewlett Packard).|
|6||Patent Abstracts of Japan, vol. 13, No. 412 (P-932) 12 Sep. 1989 and JP-A-11 52 379 (Yokogawa Hewlett Packard).|
|7||*||Section EI, Week E05, 17 Mar. 1982, Derwent Publications Ltd., London, GB; Class T, An B2238E and SU 826 356, Mazurenko.|
|8||Section EI, Week E05, 17 Mar. 1982, Derwent Publications Ltd., London, GB; Class T, An B2238E and SU-826 356, Mazurenko.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US6389586 *||Dec 9, 1999||May 14, 2002||Synplicity, Inc.||Method and apparatus for invalid state detection|
|US6735743||Apr 5, 2001||May 11, 2004||Synplicity, Inc.||Method and apparatus for invalid state detection|
|US7246206 *||Jun 27, 2003||Jul 17, 2007||Robert Bosch Gmbh||Method and device for storing a computer program in a program memory of a control unit|
|US7689875 *||Apr 25, 2002||Mar 30, 2010||Microsoft Corporation||Watchdog timer using a high precision event timer|
|US20030204792 *||Apr 25, 2002||Oct 30, 2003||Cahill Jeremy Paul||Watchdog timer using a high precision event timer|
|US20040153768 *||Jun 27, 2003||Aug 5, 2004||Uwe Daemmrich||Method and device for storing a computer program in a program memory of a control unit|
|US20070101316 *||Sep 12, 2006||May 3, 2007||Don Berndt||Software Architecture and Program for the Concurrent Execution of Finite State Machine-Encoded Processes, on Single or Multiple-Processor-Based Embedded Systems|
|US20110109597 *||Sep 14, 2010||May 12, 2011||Samsung Electronics Co., Ltd||Display driver, method of operating the same, and display device including the same|
|CN1954492B||May 5, 2005||Mar 30, 2011||汤姆逊许可证公司||Method and apparatus for synchronizing a clock generator in the presence of jittery clock sources|
|U.S. Classification||714/49, 714/798, 714/E11.031, 714/48, 714/E11.006, 714/E11.178, 714/811|
|International Classification||G06F11/30, G06F1/24, G06F11/28, G06F11/08, G06F7/00, G06F11/00|
|Cooperative Classification||G06F11/085, G06F11/28, G06F7/00, G06F11/0763|
|European Classification||G06F11/07P2B, G06F7/00, G06F11/28, G06F11/08N|
|Nov 30, 1999||FPAY||Fee payment|
Year of fee payment: 4
|Nov 12, 2003||FPAY||Fee payment|
Year of fee payment: 8
|Nov 23, 2007||FPAY||Fee payment|
Year of fee payment: 12