MLchartDataset catalogue

Patent · US9722628B2 · B2 · US

Method in a computer system, computer program and data processing system

(11) Publication number
US9722628B2
(21) Application number
15/176,943
(22) Filing date
2016-06-08
(30) Priority date
2015-06-09
(43) Publication date
2017-08-01
(45) Date of grant
2017-08-01
(51) IPC
H03M 7/00; G06F 11/00; G06F 11/07; G06F 11/10; H04L 1/12; H04M 13/00
(52) CPC
  • H03M Coding; decoding; code conversion in general: 7/00, 13/07
  • G06F Electric digital data processing: 11/008, 11/0736, 11/0751, 11/0793, 11/0796, 11/1004
  • H04L Transmission of digital information, e.g. telegraphic communication: 1/12
  • H04M Telephonic communication: 13/00
(73) Assignee
Siemens AG
(72) Inventors
Jan Richter; Maximilian Walter; Karl-Hermann Witte
(54) Title
Method in a computer system, computer program and data processing system
(57) Abstract

In a method in a computer system for recoding a coded intermediate variable into a recoded result variable a product is formed by multiplying an input constant by an input variable to be coded. The coded intermediate variable is formed as a function of the product and a multiplicative inverse is determined on the basis of the input constant. The multiplicative inverse is applied to the coded intermediate variable, so that no uncoded or partially uncoded interim result is produced and/or an error information potentially contained in the coded intermediate variable is still detectable in the interim result.

Full text
View on Google Patents

Claims (17)

  1. A method in a computer system for recoding a coded intermediate variable into a recoded result variable, comprising: forming a product by multiplying an input constant by an input variable to be coded; forming the coded intermediate variable as a function of the product; determining a multiplicative inverse on the basis of the input constant; and applying the multiplicative inverse to the coded intermediate variable, so that no uncoded or partially uncoded interim result is produced and/or an error information potentially contained in the coded intermediate variable is still detectable in the interim result.
  2. The method of claim 1, further comprising applying a product of the multiplicative inverse and a recoded result constant to the coded intermediate variable, so that no uncoded or partially uncoded interim result is produced and/or an error information potentially contained in the coded intermediate variable is still detectable in the interim result.
  3. The method of claim 1, wherein an input signature and/or an input operand is constantly zero, and/or other, additional input signatures and/or other, additional input operands are used.
  4. The method of claim 2, wherein the step of applying the multiplicative inverse to the coded intermediate variable or the step of applying the product of the multiplicative inverse and the recoded result constant to the coded intermediate variable represents a first step.
  5. The method of claim 1, wherein the multiplicative inverse has a remainder class ring modulo 2powern, with n representing a bit width of the coded intermediate variable.
  6. The method of claim 1, further comprising ignoring arithmetic overruns.
  7. The method of claim 1, wherein any potentially existing error is inverted by applying the multiplicative inverse.
  8. The method of claim 2, further comprising forming the result constant in such a way that the input variable is replicated.
  9. The method of claim 1, wherein the coded intermediate variable is formed by multiplying the input variable by the input constant and by adding a static, variable-dependent input signature and a dynamic, cycle-dependent input operand, further comprising recoding the intermediate variable into a recoded result variable with a recoded result constant, a recoded, static variable-dependent result signature, and a recoded, dynamic cycle-dependent result operand, by: creating a first interim result by multiplying the intermediate variable by a first parameter, with the first parameter being a multiplication of the multiplicative inverse with reference to the input constant and the recoded result constant, creating a second interim result by adding a second parameter to the first interim result, with the second parameter being the recoded result signature minus the multiplication of the input signature by the first interim result creating a third interim result by adding the recoded dynamic, cycle-dependent result operand to the second interim result, and creating the recoded result variable by subtracting the first parameter from the third interim result.
  10. The method of claim 9, wherein the result constant is formed by one minus the input constant multiplied by 2powern, with n being a bit width of the intermediate variable, so that any potentially existing error value is inverted.
  11. The method of claim 10, wherein the recoded, static variable-dependent result signature and the recoded dynamic, cycle-dependent result operand are freely selectable.
  12. The method of claim 9, wherein the result constant is replicated by adding 2powern to one, so that the input variable is replicated.
  13. The method of claim 10, wherein the recoded static variable-dependent result signature and the recoded dynamic, cycle-dependent result operand (D′) are set to zero.
  14. The method of claim 9, wherein the result constant is set to one, and at the same time the recoded static, variable-dependent result signature and the recoded dynamic, cycle-dependent result operand are set to zero, so that the recoding is a decoding of the coded intermediate variable, wherein the error information potentially contained in the coded intermediate variable is still detectable.
  15. A computer program comprising computer executable program code recorded on a computer readable non-transitory storage medium to carry out a method as claimed in claim 1, when the computer program is executed on a computer.
  16. A data processing system for providing a recoded result variable from a coded intermediate variable, comprising: a product by multiplying an input constant by an input variable to be coded; an intermediate variable coded at least on the basis of the product; a multiplicative inverse of the input constant; the recoded result variable by applying the multiplicative inverse to the coded intermediate variable, so that no uncoded or partially uncoded interim result is produced and/or an error information potentially contained in the coded intermediate variable is still detectable in the interim result.
  17. The data processing system of claim 16, wherein the coded intermediate variable is formed by multiplying an input variable by an input constant and by adding a static, variable-dependent input signature and a dynamic, cycle-dependent input operand, further comprising: provision of a first interim result by multiplying the intermediate variable by a first parameter, with the first parameter being a multiplication of the multiplicative inverse with reference to the input constant and the recoded result constant, provision of a second interim result by adding a second parameter to the first interim result, with the second parameter being the recoded result signature minus the multiplication of the input signature by the first interim result, provision of a third interim result by adding the recoded dynamic, cycle-dependent result operand to the second interim result, and provision of the recoded result variable by subtracting the first parameter from the third interim result.

Description

The present invention relates to a method in a computer system for recoding a coded intermediate variable into a recoded result variable, a computer program, and a data processing system.

The following discussion of related art is provided to assist the reader in understanding the advantages of the invention, and is not to be construed as an admission that this related art is prior art to this invention.

Functionally safe systems are used to reduce risks to life and health and to avoid environmental damage. As well as secure recording and communication of process information, these systems require secure processing, e.g. in programmable logic controllers or in the industrial PC.

When processing functionally secure data, internal errors in the safety function must be detected and must lead to a safety response (e.g. output of safe substitute values). This is traditionally achieved by hardware replication and result comparison. An alternative is the coding of the safety function by means of arithmetic codes.

A frequently used coding is ANBD coding in which a variable xf is coded by multiplying it by an input constant A and by adding a static, variable-dependent input signature B_x and a dynamic, cycle-dependent input operand D. Thus all numerical variables are coded according to a specification of the form: z=A*xf+B _ x+D and the arithmetic operations (+, −, *, /, etc.) are adapted so that processing in the coded area delivers consistent results to the original area (wherein it is quite possible for B or D also to have zero value).

Citations (2)

  • US9304872B2
  • US9195534B2