Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A PROCESS FOR MONITORING A DATA PROCESSING UNIT AND A SYSTEM FOR PERFORMING THE PROCESS
Document Type and Number:
WIPO Patent Application WO/1986/006520
Kind Code:
A1
Abstract:
In the process of the instruction set of a computing unit is tested in several steps (3, 4, 5, ..., nm), and for each correctly executed test a first type of information (A) is provided, and preferably at the conclusion of the test a second type of information (B) is provided which initiates comparison of predetermined information with the information amount resulting from the processing of the stepwise resulting first information (A). The test result is determined on the basis of this comparison. Also a system for performing the process is described.

Inventors:
MAALOEE JENS (DK)
BUDINKA RUDOLF (DK)
ANDERSEN SVEND VITTING (DK)
Application Number:
PCT/DK1986/000043
Publication Date:
November 06, 1986
Filing Date:
April 28, 1986
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NORDISKE KABEL TRAAD (DK)
International Classes:
G06F11/277; G06F11/30; G06F11/36; (IPC1-7): G06F11/22; G06F11/30
Foreign References:
US4122995A1978-10-31
US4285059A1981-08-18
DE2442989A11976-03-25
DE3225712A11984-01-12
EP0070458A21983-01-26
US3927310A1975-12-16
US3967103A1976-06-29
US4108359A1978-08-22
US4108359A1978-08-22
Download PDF:
Claims:
P a t e n t C l a i m s :
1. A process for monitoring a data processing unit, preferably in connection with the execution of test functions to verify the instruction set of the unit, c h a r a c t e r i z e d by generating partly a first type of information and partly a second type of infor¬ mation in response to the execution of one or more test functions, and comparing the first type of information with predetermined information in response to the se cond type of information.
2. A process according to claim 1, c h a r a c t e r ¬ i z e d by generating at least the first type of in¬ formation in response to a plurality of information contributions.
3. A process according to claim 2, c h a r a c t e r ¬ i z e d in that said information contributions are re¬ presented by a digital signal.
4. A process according to claim 2, c h a r a c t e r ¬ i z e d by generating each information contribution in consistency with the contents of a memory element which is activated during the execution of a test function.
5. A process according to claims 14, c h a r a c ¬ t e r i z e d in that each test function comprises test¬ ing the micro instructions of the data processing unit which are necessary to execute a user program.
6. A process according to claims 15, c h a r a c ¬ t e r i z e d by dividing a test function into sections, at least some of which are executed in reverse order to the order determined automatically by a program counter.
7. A process according to claims 16, c h a r a c ¬ t e r i z e d by using constant reference information as predetermined information.
8. A data processing unit for performing the process according to claim 1 and comprising a central unit as well as troubleshooting means to execute a series of test functions, c h a r a c t e r i z e d in that the troubleshooting means comprise means which are designed to receive partly a first type of information contri bution a plurality of times and partly a second type of information contribution at least once during the execution of each test function, and which are designed to store test information generated in response to the first type of information contribution and to compare said test information with predetermined information in response to the second type of information contribution.
9. A data processing unit according to claim 8, c h a ¬ r a c t e r i z e d in that said means are doubled and are each designed to be updated in the execution of re spective test functions.
10. A data processing unit according to claim 9, c h a r a c t e r i z e d by a timedependent circuit designed to generate a signal indicative of correct function of the data processing unit if the circuit has received a correct comparison signal from both troubleshooting means within a predetermined period of time.
11. A data processing unit according to any of claims 810, c h a r a c t e r i z e d by said first type of information contributions are being separate pulses, by a binary counter having a clock pulse input for recep¬ tion of said pulses to produce test information in the counter, and by a comparator circuit designed to com¬ pare, in response to the second type of information, the contents of the counter with the predetermined in¬ formation represented by a binary word.
12. A data processing unit according to claim 11, c h a r a c t e r i z e d in that said binary word is pro¬ vided by a firm coupling of one set of input terminals of the comparator circuit.
13. A signal processing system comprising at least two processing channels and means for comparing the sig¬ nal outputs, c h a r a c t e r i z e d in that the processing channels are controlled by a data processing unit of the type stated in claim 8, and that the data processing unit is moreover operatively connected with the processing channels for comparing their" signal outputs.
Description:
A process for monitoring a data processing unit and a system for performing the process

The invention concerns a process for monitoring a data processing unit, preferably in connection with the exe- cution of test functions to verify the instruction set of the unit, wherein partly a first type of information and partly a second type of information is provided. In particular, the invention relates to detection of errors in the-Tiicro instruction set with a view to obtaining a practically useful evaluation of whether the data pro¬ cessing unit operates correctly.

Since data processing units are very complicated, it is not possible to detect with complete certainty that the unit operates properly at a specific point of time. This examination must necessarily span a certain period of time during which the data processing unit per¬ forms a plurality of operations, and the decision whether the unit operates properly can only be taken with some probability.

Such test functions have e.g. been provided in that, at a predetermined location in the circuit, monitoring is established of the signal flow as a function of some applied input data, and then the signal flow is com¬ pared with the signal flow which would be correct in error-free operation. The German Patent Specification

3 225 712 discloses a process for detecting errors in a data processing unit, wherein a data word, generated by the data processing unit in response to a test function, is applied at suitable points of time, and this data word is compared in a comparator with information gene¬ rated by a number generator with a predetermined number cycle. This known process- is vitiated by several draw¬ backs, primarily that the result of each comparison

arrives at the data processing unit with a certain time delay, which puts a serious limitation on the provision of test points in the test function. It will thus be appreciated that it is senseless that the data process- ing unit provides two data words to be compared with its own control information within a period of time shorter than the time delay associated with the com¬ parison. Other drawbacks of the prior art are that it requires the use of a relatively complicated circuit to provide the control information, and also that the mentioned data words are generated on the basis of some operations in the unit to be tested, said operations being dependent upon some untested basic functions in the data processing unit.

The object of the invention is to provide a process of the type stated above, but which enables more rapid and flexible execution of a test function.

This object is achieved by performing the process as stated in the characterizing portion of claim 1, since the said types of information are generated during the execution of the test function, said first type of in¬ formation being used outside the unit to be tested to generate by means of a sequence network a third item of information to be compared with predetermined informa- tion, said comparison being controlled solely on the basis of the provision of the second type of informa¬ tion. Since information of the first type may be; called an "intermediate result", it will be appreciated that it is possible in the process of the invention to con- sider a large number of intermediate results which may be generated between two comparison operations, i.e. between two signals of the second type, at arbitrary points of time totally dependent upon when this is con¬ sidered most appropirate in connection with the actual

test function. Since the sequence network is external with respect to the data processing unit to be tested, it will be appreciated that it is not necessary, in the data processing unit, to use special micro instructions to generate the first type of information correctly. Preferably, the first type of information is generated in the manner stated in claim 2.

Performance of the process as stated in claim 3 provides a very simple and reliable method where the first type of information is represented by a single electric sig¬ nal which is transferred to a counter circuit to up-date this. Thus, signal processing may be performed at a very great speed, and it is therefore natural to insert a large number of items of information of the first type between each comparison operation. In particular in connection with the latter feature, it is particularly advantageous to perform the process as stated in claim 4, wherein the test function may be said to be exe¬ cuted "rearwardly" with respect to what is normally de- fined by a program counter. This additionally reduces the risk of providing information in an error situation which cannot be detected as an error by the comparison operation.

As stated in claim 5, constant reference information is used in a preferred embodiment. However, it will be appreciated that the reference information does not have to be constant, but may be exchanged in response to the generated test information, so that the process of the invention may also be used as a new and improved diag- nosis tool.

The invention also concerns a data processing unit for performing the process of the invention according to

claim 1 and comprises a central unit as well as trouble¬ shooting means to execute a series of test functions. The data processing unit is characterized by the embodi¬ ment stated in the characterizing portion of claim 6. The said means are well-known and may be readily rea¬ lized by a skilled person by means of commercially available components.

To improve the security against component faults, the troubleshooting means are doubled and moreover designed to be updated in response to respective test functions, as appears from claim 7. Claim 8 defines preferred de¬ tails to improve the security additionally, as the data processing unit is assumed to operate properly only if correct comparison results are received from each of the two comparators (whose results are dependent upon the associated test program) within a predetermined period of time. It is noted that the sequence network may be updated by the first type of information re¬ peatedly and at arbitrary points of time between two comparison operations.

Claim 9 defines details in a preferred embodiment of the data processing system of the invention. It will be appreciated that the components mentioned in claim 9 are not only inexpensive, but also relatively simple. To additionally improve the security the features stated in claim 10 may be used, so that the binary word e.g. is not to be contained in any store cell that may fail.

The invention will now be described more fully with re- ference to the drawing, in which

fig. 1 schematically shows how the execution of a test function may produce two types of information,

fig- 2 schematically shows how these types of informa¬ tion may be combined,

figs. 3a and 3b show how the test functions are built according to a preferred embodiment,

fig. 4 schematically shows an apparatus for performing the process of claim 1,

fig. 5 schematically shows a signal processing unit in which the apparatus of the invention may be used to special advantage to control the signal processing in two parallel signal paths,

fig. 6 schematically shows a fibre-optical signal trans¬ mission system in which a data processing unit of the present invention may advantageously be used for con¬ trolling the signal processing.

It is a well-known problem in fail-safe data processing units to ensure that output data are correct. That out¬ put data are correct requires the input data and pro¬ gram to be correct and the data processing unit to ope¬ rate properly.

The art includes a large number of methods to ensure that input data and program are correct, whereas it is considerably more difficult to determine that a pro¬ cessing unit operates properly.

To test the processing unit, certain requirements are of course necessary, which will be mentioned later, but it will be appreciated that the functional capability of the processing unit depends upon the execution of an instruction set or parts of it. Knowing that the in-

structions are executed properly, it is possible to assume that an error-free program will be executed correctly if it does not contain instructions other than those which have been tested.

With reference to fig. 1, a test function is executed to test the instruction set of a processing unit or parts of it according to the invention in such a manner that a first type of information (A) is provided once or several times in response to how the test proceeds, and that a second type of information (B) is currently produced during the execution of the test function or at its completion, in response to which the first in¬ formation (A) is compared with a predetermined item of information.

This process ensures that an error in the data process¬ ing unit is detected since the execution of a test func¬ tion depends solely upon how the data processing unit executes the individual instructions. Faulty execu¬ tion of an. instruction will with certainty cause an error in the first type of information (A) because the first type of information (A) occurs in the execution of the instruction set. The error in the first type of information is detected when the second type of infor¬ mation (B) initiates comparison with the predetermined information. If this comparison should show inconsisten¬ cy between the A information and the predetermined item of information, an error is detected. The detection of an error may be utilized for making the computing unit perform predetermined functions, which may e.g. be a repetition of the test sequence with a view to detecting whether it was a "real" error or an error of a transient type. Another possibility is to stop the function of the data processing unit instantaneously when an error is detected.

The said first type of information or A information may be produced in various ways, as will be explained be¬ low with reference to fig. 2.

The A information may be formed by a pulse signal or be a predetermined or pre-established content in a store element, and this content is transferred for comparison with the predetermined information.

Another processing of the A and B information may be that the resulting A and B information is processed in combination units 1 and 2 designed to produce A 1 and B' information by computation or combination operations, and this information is then used as described above for establishing whether the computing unit (7) operates properly.

With a view to improving the security of the test func¬ tions additionally, these are preferably divided into a plurality of sections 3, 4, 5 ..., nm, as shown in fig. 3. A set of instructions is tested in each section, and the test starts in section 3 and jumps rearwardly to section nm in one or several steps.

If an error «is detected during the test, the test func¬ tion section is cut off in which the error is detected, and then the computing unit (7) performs an error rou¬ tine (6) which serves to ensure that the recently de- tected error is recorded and processed correctly. If no errors are detected in a section, the test proceeds with a subsequent section where the instructions tested pre¬ viously may now be used for testing other instructions, , it being known that the instructions just tested func- tion properly. Thus, when only tested functions are used for testing untested functions, it is ensured that the "input data" of the test are correct.

As appears from fig. 3b, each test section is divided into at least three subsections. The first act in a test section n is that A information is provided. It is registered in this manner that the test has passed through this section. After the A information has been provided, one or more instructions are tested, it being an advantage in this respect, as stated before, that a plurality of tested instructions is already known. It is checked after the test of the instruction or in- structions whether the result of the test is as expected. If the result is as expected, the test proceeds with the next test section. If, on the other hand, the result is not as expected, the error routine is exe¬ cuted.

It will thus be seen that only when all the sections of the test function have been run correctly, is the total correct A information provided, which upon provision of B information may be compared with the predetermined information. The "rearward" run of the sections of the test function shown in fig. 3a and the layers 3f, 4f,

5f, ..., nmf, which are inserted between the test func¬ tion sections and exclusively provide A information when run, ensures that errors in the computing unit (7), causing the test function to be run without the test function controlling the sequence, are detected in that the provided A information is wrong.

Such an error may. e.g. manifest itself in running of the test function from "above", without performance of the jumps introduced in the test function. Thus, all the sections (3, 4, 5, nm) of the test function will be run, and the correct A information will be provided. However, the inserted layers (3f, 4f, 5f, ... nmf) of the A information will cause additional A information contributions to be provided. This makes the total A

information wrong, and this is detected by subsequent comparison with the predetermined information, the comparison being performed when the B information is produced.

Fig. 4 shows a preferred embodiment of an apparatus for performing the process described above. The computing unit 7 performs a test function which, in this case, is divided into two test functions, each of which trans¬ mits A and B information.

In this preferred embodiment, the A information is a plurality of pulses transferred as Al information and A2 information to the counters 8 and 9, respectively. The number contained in the counters 8 and 9 is trans¬ ferred to one set of input terminals 12 and 13 on co - parators 10 and 11 which are so designed that when B information occurs, which likewise consists of Bl and B2 information in the present embodiment, they compare the contents of the counters 8 and 9 with a number which is firmly coupled on the other set of input terminals 14 and 15 of the comparators 10 and 11.

A signal indicative of a comparison result is transferred for each of the comparators 10 and 11 to a reset logic circuit 16 designed to reset the computing unit if no signal from the comparators 10 and 11 arrives within a given period of time, which signal must express that the comparison of the Al and A2 information with the pre¬ determined information has had as its result that the items of information have been found to be con¬ sistent.

As appears from fig. 4, the predetermined information supplied to the comparators 10 and 11 is firmly coupled

to the input terminals 14 and 15 of the comparators. It is also possible to supply the comparators 10 and 11 with a predetermined item of information by reading- out this information from a store element. Read-out of reference information to the comparators 10 and 11 from a store element enables the use of various test func¬ tions, e.g. for seeking the cause of the failure of the computing unit 7, or the various types of reference in¬ formation may be used in connection with various test functions testing various parts of the instruction set of the computing unit 7.

The test of ttie computing unit 7 described above makes it possible to determine with certainty whether the com¬ puting unit 7 operates properly. When it has been deter- rained that the computing unit 7 operates properly at a given point of time, it is possible to perform fail¬ safe data processing. The fail-safe data processing may be performed by first letting the data processing unit 7 perform a computation. Then the computing unit 7 is tested. When it has been shown by this test that the computing unit 7 was error-free, the result just com¬ puted may be used, it being certain that the data pro¬ cessing unit 7 operated properly when it performed the computation that led to the result.

The test of the data processing unit is based on a com¬ parison between the A information provided by the test function with a predetermined item of information. The two comparators 10 and 11 are used for this comparison. An error in these might have the result that even if there is a difference between the A information pro¬ vided and the predetermined item of information, this difference is not detected. Therefore, the output sig¬ nal from the comparators 10 and 11 is returned to the computing unit 7 over lines 17 and 18. The compara-

tors 10 and 11 are tested in that the computing unit 7 transfers errorneous A information and transmits B information to the comparators, and then it is checked whether the comparators 10 and 11 provide the correct signal. The comparators are then to provide a signal which indicates that there is no consistency with the information on their two sets of input terminals (12, 14 and 13, 15), but if this signal is not provided, the computing unit 7 proceeds to perform an error routine which may have the same functions as described above.

Fig. 5 shows a signal processing unit where the fail¬ safe computing unit is used for controlling the pro¬ cessing channels. Fail-safe comparators and two data processing units have previously been used in such processing units since it was possible to generate fail¬ safe comparators, but is was not possible to generate fail-safe data processing units. The fail-safe pro¬ cessing unit 19 controls the signal processing in two processing channels 20 and 21. Uniform input data are fed to the processing channels in a known manner, and then the output signals of the processing channels 20 and 21, unlike before, are not compared in a comparator, but recycled to the processing unit over lines 22 and 23 where they are compared. This recycling of the out- put signals to the processing unit 19 with a view to comparison is possible only because the data processing unit is fail-safe.

Since only one computing unit is used, the signal pro¬ cessing in the channels 20 and 21 does not take place synchronously. Transient noise will then only affect the processing of the signal in one channel, but the comparison of the output signals from the two signal processing channels 20 and 21 after the signal proces-

sing ensures that an errorneous signal is not passed on to the output 24 of the signal processing unit, since the comparison shows that the signal from the two pro¬ cessing channels 20 and 21 is not the same. If a diffe- rence between the two output signals is detected, it is possible to repeat the signal processing, during which a correct output signal will be produced, if there is no constant error in one of the processing channels 20 and 21. This structure of the signal processing unit excludes the possibility of transient noise affecting the output signal of the signal processing unit since transient noise only causes the signal processing to be repeated.

The use of one fail-safe data processing unit 19 for the control of two data processing channels 20 and 21 ob¬ viates the great problems of synchronization which are associated with having two data processing units con¬ trolling a current signal processing in two processing channels. When additionally using the fail-safe data processing unit 19 for comparing the output signal from the two data processing channels 20 and 21, the compli¬ cated fail-safe comparator may be omitted, which is otherwise normally used in such signal processing sys¬ tems.

The use of a fail-safe data processing unit of the in¬ vention in a processing unit of the type described above involves additional advantages with respect to the use of known fail-safe data processing units. The data pro¬ cessing unit of the invention is tested in such a manner that the test sequence itself may be controlled to load the actual signal processing very little, while it is possible e.g. to concentrate the test on specially im¬ portant processing sequences or to postpone tests to points of time where the data processing unit does not

perform actual control of the processing channels. This flexibility makes it possible to use the data processing unit of the invention for many different control tasks where it is necessary that data processing and control take place in a fail-safe manner.

Fig. 6 schematically shows a signalling system which is composed of a plurality of receiver modules 37-31 and transmitter modules 32-36 associated in pairs. The trans¬ mitter modules convert data collected from the surround- ings to "telegrams", which are transmitted over the op¬ tical fibre 24. The receiver modules serve to catch the mentioned "telegrams", which are transmitted over an op¬ tical fibre 25, and to convert these telegrams to output data, which can be further processed in the surrounding circuitry.

All modules incorporate a data processing unit 26 of the invention, and this data processing unit 26 serves a plurality of different purposes. These purposes may be collection of data, formation of "telegrams" and trans- mission of these, applying output signals, fail-safe data comparisons and reconfiguration of the signal transmission system in case of errors in the modules or ruptures of the optical fibres.

Rupture of one or more optical fibres causes the system to be divided into two or more subsystems so that the intact part of the system still operates. If e.g. a rup¬ ture occurs on the optical fibre 24 between the trans¬ mitter modules 34 and 35, a connection 38 is coupled between the receiver module 29 and the transmitter mo- dule 34. This divides the system into two subsystems operating independently of each other. The error is sig¬ naled simultaneously with this division so that steps may be taken to remedy it.

Since each individual one of the data processing units used in the system is fail-safe, and the system is designed to change configuration upon cable rupture or failure in the individual modules, this use of the data processing unit of the invention results in a fail-safe signal transmission system which may be used e.g. in railway safety systems.