DE3105254A1 - Method for checking data stored in memories - Google Patents

Method for checking data stored in memories

Info

Publication number
DE3105254A1
DE3105254A1 DE19813105254 DE3105254A DE3105254A1 DE 3105254 A1 DE3105254 A1 DE 3105254A1 DE 19813105254 DE19813105254 DE 19813105254 DE 3105254 A DE3105254 A DE 3105254A DE 3105254 A1 DE3105254 A1 DE 3105254A1
Authority
DE
Germany
Prior art keywords
memory
memories
content
checking
data stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
DE19813105254
Other languages
German (de)
Inventor
Herbert 7120 Bietigheim Lang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Robert Bosch GmbH
Original Assignee
Robert Bosch GmbH
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 Robert Bosch GmbH filed Critical Robert Bosch GmbH
Priority to DE19813105254 priority Critical patent/DE3105254A1/en
Publication of DE3105254A1 publication Critical patent/DE3105254A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A method for checking data stored in memories of computers is proposed which is used for checking the correct operation of the memories and the data processing system. In the method, the content of a predetermined number of storage locations is added together and the total number is compared with a predetermined reference number. If this number is not correct, the system is wholly or partially disconnected or an emergency program is executed. Checking is possible in groups in order not to disturb the normal program run. Another method can be used for checking, in particular, variable data. For this purpose, the memory content of one memory row is read out and saved, complemented and returned to memory, read out again, complemented and compared with the saved memory content.

Description

Verfahren zum Überprüfen von in Speichern abgelegtenProcedure for checking files stored in memories

Daten Stand der Technik Die Erfindung geht aus von einem Verfahren zum Überprüfen nach der Gattung des Hauptanspruchs. Verfahren zur Überprüfung von Rechenprogrammen sind bereits bekannt. In einem bekannten Verfahren wird jeweils nach einem Teilprogramm durch einen Speicherbefehl eine Information in einem Register eingespeichert, das während des weiteren Programmdurchlaufs mit einem Normregisterinhalt oder einem Festwert verglichen wird.Prior art data The invention is based on a method to check according to the genre of the main claim. Procedure for checking Computer programs are already known. In a known method, each information in a register after a partial program by a storage instruction stored in the program with a standard register content during the further program run or a fixed value is compared.

Sind die Registerinhalte verschieden, wird das Programm von neuem gestartet. Dieses Verfahren hat den Nachteil, daß ein zusätzlicher Speicherplatz belegt wird. Weiterhin können Änderungen in Festwertspeichern, beispielsweise ROMS oder EPROMS nicht erkannt werden. Fehler in anderen Speicherplätzen sind ebenfalls nicht feststellbar.If the register contents are different, the program starts again started. This method has the disadvantage that it requires additional storage space is occupied. Changes can also be made in read-only memories, for example ROMS or EPROMS are not recognized. There are also errors in other storage locations not detectable.

Ein weiteres bekanntes Verfahren arbeitet mit redundanten Recheneinrichtungen. Hierbei sind zwei gleichartige Rechner mit den dazugehörigen Speichern aufgebaut.Another known method works with redundant computing devices. Two computers of the same type are set up with the associated memories.

Beide Rechner haben das gleiche Programm und verarbeiten die gleichen Daten. Die Ergebnisse beider Rechner werden in einer Auswerteschaltungl überprüft Dieses Verfahren erlaubt zwar die Überprüfung sämtlicher in den Speichern abgelegten Daten, hat jedoch den Nachteil, daß sämtliche Rechen- und Speichereinrichtungen doppelt vorhanden sein müssen. Insbesondere bei größeren Rechenanlagen führt dies zu einem nicht vertretbaren Aufwand.Both computers have the same program and process the same Data. The results of both calculators will be in an evaluation circuit checked This procedure allows checking of all in the memories stored data, however, has the disadvantage that all computing and storage devices must be present twice. This leads in particular in the case of larger computing systems at an unreasonable expense.

Vorteile der Erfindung Das erfindungsgemäße Verfahren mit den kennzeichnenden Merkmalen des Hauptanspruchs hat demgegenüber den Vorteil, daß nur ein Rechensystem erforderlich ist, das neben dem Abarbeiten von Programmen eine Überprüfung aller Speicherplätze ermögli#ht. Sowohl das beispielsweise in ROMS oder EPROMS gespeicherte Programm als auch in RAMS abgelegte Daten sind ständig überprüfbar.Advantages of the invention The method according to the invention with the characterizing Features of the main claim has the advantage that only one computing system it is necessary, in addition to the processing of programs, to check all Storage spaces enabled. Both that stored in ROMS or EPROMS, for example Both the program and the data stored in RAMS can be checked continuously.

Somit sind sowohl Fehler im Programm als auch Datenübertragungsfehler erkennbar.Thus there are errors in the program as well as data transmission errors recognizable.

Durch die in den Unteransprüchen aufgeführten Maßnahmen sind vorteilhafte Weiterbildungen und Verbesserungen des im Hauptanspruch angegebenen Verfahrens möglich.The measures listed in the subclaims are advantageous Further developments and improvements of the method specified in the main claim are possible.

Soll eine große Anzahl von Speicherplätzen und Daten überprüft werden, ist es vorteilhaft, nicht alle Daten gleichzeitig zu überprüfen, sondern nur eine Teilmenge der Daten aufzuaddieren und zwischenzuspeichern. Danach wird das Hauptprogramm weiterbearbeit-et. Danach wird die nächste Gruppe aufgearbeitet und zur zuvor ermittelten Zahl addiert. Insbesondere bei veränderlichen Speicherinhalten ist es vorteilhaft, die Komplementiermethode anzuwenden. Hierbei wird der Inhalt einer Speicherzelle zweimal komplementiert und mit dem ursprünglichen Ergebnis auf Übereinstimmung verglichen. Um die Anzahl der für die Überprüfung notwendigen Speicherplätze gering zu halten, ist es vorteilhaft, den bei der Addition auftretenden Überlauf zu unterdrücken.If a large number of storage locations and data is to be checked, it is advantageous not to check all data at the same time, but only one Add up subset of data and store it temporarily. After that the main program further edited. Then the next group is processed and the one previously determined Number added. Particularly with variable memory contents, it is advantageous to to apply the complementation method. This is the content of a memory cell complemented twice and compared with the original result for agreement. To the number of storage spaces required for the check small amount to hold, it is advantageous to suppress the overflow occurring during the addition.

Weiterhin i-st es günstig, beim Auftreten eines Fehlers und dem Fehlen eines Erledigungssignals den Rechner ganz oder teilweise abzuschalten oder ein Notprogramm abzuarbeiten. Durch diese Maßnahme wird verhindert, daß der Rechner fehlerhafte Befehle abgibt. Insbesondere wenn die Überprüfung noch nicht vollständig abgeschlossen ist, ist es vorteilhaft, eine Verwertung der von dem Rechner ermittelten Signale zu verhindern, bevor nicht die Überprüfung der Speicher vollständig abgeschlossen ist. Auch diese Maßnahme dient zur Verhinderung der Abgabe falscher Befehle.Furthermore, it is beneficial if an error occurs or if it is missing a completion signal to switch off the computer in whole or in part, or an emergency program to work off. This measure prevents the computer from being faulty Gives orders. Especially if the review has not yet been fully completed it is advantageous to utilize the signals determined by the computer to prevent before not fully completing the memory check is. This measure also serves to prevent incorrect commands from being issued.

Beschreibung der Erfindung Die Erfindung soll anhand der Prüfung eines Mikroprozessorprogramms auf Funktion beschrieben werden.Description of the Invention The invention is intended to be based on examining a Microprocessor program to be described on function.

Das Programm selbst sei in einem ROM oder EPROM von 1 kbyte abgelegt, das in vier Seiten zu je 250 byte organisiert ist. In einem ersten Verfahrensschritt werden nun die binär verschlüsselten Befehle der ersten Seite aufaddiert, wobei ein etwaiger Überlauf nicht berücksichtigt wird und die Summe in einem separaten Register abgelegt. Danach wird das Programm weiter abgearbeitet. Bei einem zweiten Programmablauf wird die zweite Seite des ROMS aufaddiert und zum Ergebnis der ersten Seite addiert. Das Ergebnis überschreibt die zuvor in einem separaten Register gespeicherte Summe. Bei den nun folgenden Programindurchläufen werden die Seiten 3 und 1o wie zuvor beschrieben addiert und die Summe gebildet. Das Additionsergebnis aller vier Seiten wird jetzt mit einer im Miroprozes#ur abgelegten Prüfzahl verglichen. Wird diese Prüfzahl wegen falscher Bits nicht erreicht, so wird kein Erledigungssignal abgegeben und der Mikroprozessor wird ganz oder teilweise abgeschaltet oder es wird ein Notprogramm abgearbeitet. Stimmt die aufaddierte Zahl mit der gespeicherten Zahl überein, so wird ein Erledigungssignal abgegeben, das signalisiert, daß das System einwandfrei arbeitet.The program itself is stored in a ROM or EPROM of 1 kbyte, which is organized in four pages of 250 bytes each. In a first process step the binary encrypted commands of the first page are now added up, with any overflow is not taken into account and the total in a separate Register filed. The program is then processed further. With a second In the program sequence, the second page of the ROMS is added and the result of the first Side added. The result overwrites the one previously saved in a separate register Total. In the following program runs, pages 3 and 1o become like as described above are added and the sum is formed. The sum of all four Pages are now compared with a check number stored in the microprocessor. Will If this check number is not reached because of incorrect bits, there is no completion signal submitted and the microprocessor is completely or partially switched off or an emergency program is started processed. If the added number agrees with the stored number, so a completion signal is issued, which signals that the system is working properly is working.

Dieses Verfahren eignet sich insbesondere zur Prüfung fest eingegebener Daten oder solcher Daten, deren Quersumme beständig konstant ist. Da insbesondere bei fest eingegebenen Daten die Wahrscheinlichkeit der Änderung von Bits sehr gering ist, ist eine Berücksichtigung des Überlaufs nicht notwendig. Zwar besteht dann die Möglichkeit, daß zwei Bitfehler sich gerade aufheben, diese Wahrscheiplichkeit ist jedoch sehr gering. Soll auch dies verhindert werden, so ist es zweckmäßig den gesamten aufaddierten Wert zu speichern und mit einem Referenzwert zu vergleichen. Sind die gespeicherten Programme nur kurz, so kann das Prüfverfahren bereits mit dem ersten Prüfergebnis abgeschlossen werden. Bei längerem Programm ist jedoch eine Unterbrechung zweckmäßig, damit das Hauptprogramm abgearbeitet werden kann. Eine Unterbrechung des Prüfverfahrens ist auch durch eine Interrupt Routine möglich, wenn dem Mikroprozessor wesentliche Daten übermittelt werden sollen. In diesem Falle wird die Überprüfung der Speicherplätze dort aufgenommen, wo sie unterbrochen wurde.This method is particularly suitable for checking permanently entered Data or such data, the checksum of which is constantly constant. Since in particular with permanently entered data, the probability of bits changing is very low consideration of the overflow is not necessary. It is true then the possibility that two bit errors will just cancel each other out, that probability however, it is very small. If this is also to be prevented, it is advisable to use the to save the total added value and compare it with a reference value. If the saved programs are only short, the test procedure can start with be completed after the first test result. For a longer program, however, there is one The interruption is useful so that the main program can be processed. One The test procedure can also be interrupted by an interrupt routine, when essential data are to be transmitted to the microprocessor. In this case the scan of the storage locations is started where it was interrupted.

Insbesondere bei der Uberprüfung von veränderlicnen Daten, die in RAM-Speichern abgelegt sind, hat sich ein anderes Verfahren als vorteilhaft erwiesen. Der zufällige Speicherinhalt einer Speichergruppe wird ierei in den Akkumulator eines Mikroprozessors gebracht und gleichzeitig auf einen Hilfsspeicherplatz gerettet. Das im Akkumulator befindliche Signal wird komplementiert und wieder in den gleichen Speicher zurückgebracht. Anschließend wird der Speicherinhalt nochmals in den Akkumulator gelesen, wiederum komplementiert und mit dem ursprünglichen, vorher geretteten Speicherinhalt verglichen. Bei einer Übereinstimmung der Speicherinhalte wird der folgende RAM-Speicher überprüft, bis alle Speicherplätze geprüft sind. Ist kein Fehler aufgetreten, wird anschließend ein Erledigungsimpuls vom Mikroprozessor abgegeben. Bei einem Programmdurchlauf können ein oder mehrere Speicherplätze überprüft werden. Die Anzahl der überprüften Plätze ist abhängig von der zur Verfügung stehenden Zeit, die vom Mikroprozessor für die Überprüfung zur Verfügung gestellt wird.Especially when reviewing changing data stored in RAM memories are stored, another method has proven to be advantageous. The random memory content of a memory group is stored in the accumulator a microprocessor brought and at the same time to an auxiliary storage space saved. The signal in the accumulator is complemented and back into returned the same store. Then the memory contents are again read into the accumulator, again complemented and with the original, previously saved memory contents compared. If the memory contents match the following RAM memory is checked until all memory locations are checked. If no error has occurred, the microprocessor then issues a completion pulse submitted. One or more memory locations can be checked during a program run will. The number of checked places depends on the number of places available Time that is made available by the microprocessor for the check.

Claims (7)

Ansprüche Verfahren zum Überprüfen von in Speichern abgelegten Daten und von Rechnern, dadurch gekennzeichnet, daß der Inhalt einer vorgegebenen Anzahl von Speicherplätzen aufaddiert wird, die aufaddierte Zahl mit einer vorgegebenen Referenz zahl verglichen wird und bei Übereinstimmung ein Erledigungssignal abgegeben wird.Claims Method for checking data stored in memories and from computers, characterized in that the content of a predetermined number of memory locations is added up, the added number with a predetermined Reference number is compared and, if they match, a completion signal is issued will. 2. Verfahren zum Überprüfen von in Speichern abgelegten Daten und von Rechnern, dadurch gekennzeichnet, daß der Inhalt einer vorgegebenen Anzahl von Speicherp#at#eR aufaddiert wird, zwischengespeichert wird, zumindest der Inhalt einer weiter vorgegebenen Anzahl von Speicherplätzen aufadddiert wird, die gesamte Summe gebildet wird und die Gesamtsumme mit einer vorgegebenen Referenz zahl verglichen wird und bei Übereinstimmung ein Erledigungssignal abgegeben wird.2. Procedure for checking data stored in memories and of computers, characterized in that the content of a predetermined number of Memory p # at # eR is added up, is cached, at least the content is added to a further predetermined number of storage locations, the entire Sum is formed and the total is compared with a predetermined reference number and if they match, a completion signal is issued. 3. Verfahren nach Anspruch 1 oder 2, dadurch gekennzeichnet, daß bei der Addition ein auftretender Überlauf unterdrückt wird.3. The method according to claim 1 or 2, characterized in that at the addition, an overflow that occurs is suppressed. 4. Verfahren zur Überprüfung von in Speichern abgelegten Daten und von Rechnern, dadurch gekennzeichnet, daß der Speicherinhalt einer Speicherzelle ausgelesen und gerettet wird, komplementiert und zurückgespeich#ert wird, wiederum ausgelesen, komplementiert, mit dem geretten Speicherinhalt verglichen wird und bei Übereinstimmung ein Erledigungssignal abgegeben wird.4. Procedure for checking data stored in memories and of computers, characterized in that the memory content of a memory cell is read out and saved, complemented and restored, in turn read out, complemented, compared with the saved memory content and if they match, a completion signal is issued. 5. Verfahren nach einem der Ansprüche 1 bis 4, dadurch gekennzeichnet, daß zwischen den einzelnen ÜberprüSungsschritten Programme abgearbeitet werden.5. The method according to any one of claims 1 to 4, characterized in that that programs are processed between the individual verification steps. 6. Verfahren nach einem der Ansprüche 1 bis 5, dadurch gekennzeichnet, daß beim Fehlen eines Erledigungssignals der Rechner abgeschaltet wird oder ein Notprogramm abgearbeitet wird.6. The method according to any one of claims 1 to 5, characterized in that that in the absence of a completion signal, the computer is switched off or on Emergency program is being processed. 7. Verfahren nach einem der Ansprüche 1 bis 5, dadurch gekennzeichnet, daß vor der Überprüfung der Speicher eine Verwertung der vom Rechner zu gebenden Befehle unterbleibt.7. The method according to any one of claims 1 to 5, characterized in that that before checking the memory, a recovery of the data to be given by the computer Orders are omitted.
DE19813105254 1981-02-13 1981-02-13 Method for checking data stored in memories Withdrawn DE3105254A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE19813105254 DE3105254A1 (en) 1981-02-13 1981-02-13 Method for checking data stored in memories

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE19813105254 DE3105254A1 (en) 1981-02-13 1981-02-13 Method for checking data stored in memories

Publications (1)

Publication Number Publication Date
DE3105254A1 true DE3105254A1 (en) 1982-09-09

Family

ID=6124798

Family Applications (1)

Application Number Title Priority Date Filing Date
DE19813105254 Withdrawn DE3105254A1 (en) 1981-02-13 1981-02-13 Method for checking data stored in memories

Country Status (1)

Country Link
DE (1) DE3105254A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0525941A2 (en) * 1991-05-31 1993-02-03 Nec Corporation Method of self-diagnosing a mobile telephone set for use in a mobile telephone switching system and mobile telephone set being applied to the method
EP0572130A1 (en) * 1992-05-29 1993-12-01 Nec Corporation Digital quadrature modulator and method for testing the same
EP0645710A2 (en) * 1993-09-17 1995-03-29 Siemens Aktiengesellschaft Method of testing for functionality of a technically signal-unsecure memory for at least in two channels stored information data and arrangement for implementing the method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0525941A2 (en) * 1991-05-31 1993-02-03 Nec Corporation Method of self-diagnosing a mobile telephone set for use in a mobile telephone switching system and mobile telephone set being applied to the method
EP0525941A3 (en) * 1991-05-31 1994-03-09 Nec Corp
EP0572130A1 (en) * 1992-05-29 1993-12-01 Nec Corporation Digital quadrature modulator and method for testing the same
US5432483A (en) * 1992-05-29 1995-07-11 Nec Corporation Digital quadrature modulator and method for testing the same
EP0645710A2 (en) * 1993-09-17 1995-03-29 Siemens Aktiengesellschaft Method of testing for functionality of a technically signal-unsecure memory for at least in two channels stored information data and arrangement for implementing the method
EP0645710A3 (en) * 1993-09-17 1996-01-24 Siemens Ag Method of testing for functionality of a technically signal-unsecure memory for at least in two channels stored information data and arrangement for implementing the method.

Similar Documents

Publication Publication Date Title
DE2806024C2 (en)
DE3125048C2 (en)
DE2132565C3 (en) Converter
DE2030760C2 (en) Parity check circuit for a memory circuit
DE2556556A1 (en) METHOD AND ARRANGEMENT FOR STORING INFORMATION ABOUT THE LOCATION OF ONE OR MORE DEFECTIVE BITS IN A SINGLE FAULT-CORRECTING MAIN STORAGE
DE3329022C2 (en)
DE2456709C2 (en) Circuit arrangement for error detection and correction
DE3111447A1 (en) DISPLAY CIRCUIT FOR MEMORY WRITE ERRORS
DE2450468C2 (en) Error correction arrangement for a memory
DE2554502C3 (en) Method and arrangement for addressing a memory
DE3045609A1 (en) METHOD AND CIRCUIT FOR DELIVERING A CORRECTED DATA GROUP TO A DETERMINATION CIRCUIT
EP0615211B1 (en) Device for storing security data
DE2121330A1 (en) Method and circuit arrangement for testing electronic digital devices and their components
DE2131787A1 (en) CIRCUIT ARRANGEMENT FOR ERROR DETERMINATION IN DATA PROCESSING SYSTEMS
EP1222545B1 (en) Method and circuit configuration for storing data words in a ram module
EP2539899B1 (en) Method for checking the functionality of a memory element
EP0127118B1 (en) Memory control device, in particular for fault tolerant telephone exchange systems
DE3105254A1 (en) Method for checking data stored in memories
EP0151810B1 (en) Method and circuit arrangement for testing a program in data processing systems
DE3433679C2 (en)
EP0353660B1 (en) Fault prevention method in memory systems of data-processing installations, in particular telephone exchanges
DE10062404A1 (en) Faulty memory cell address reduction method compares each detected faulty memory cell address with second fault address for word and/or bit line to be repaired for eliminating duplications
DE3431770A1 (en) Method and arrangement for the error control of important information in memory units with random access, in particular such units comprising RAM modules
DE10331543B4 (en) Method for testing a circuit unit to be tested and circuit arrangement for carrying out the method
DE4244275C1 (en) Verification of data integrity with buffered data transmission

Legal Events

Date Code Title Description
8120 Willingness to grant licences paragraph 23
8139 Disposal/non-payment of the annual fee