Digital system and a method for error detection thereof

Information

  • Patent Application
  • 20040177314
  • Publication Number
    20040177314
  • Date Filed
    November 25, 2003
    20 years ago
  • Date Published
    September 09, 2004
    20 years ago
Abstract
The invention relates to a digital system (1) and the method for error detection thereof. The digital system (1) comprises, as it's main core, a Module under Test (110) included in a Digital Processing Unit (100) and a State Parity Generator (SPG) (300). The SPG (300) is an equivalent with respect to parity of the Module under Test (300). An equivalent with respect to parity is a combinatorial circuit that, when an imput vector is applied at the imput of both Module under Test (110) and SPG (300), the output of the SPG (300) generates at it's output the parity of the transfer function of the Module under Test (110).
Description


[0001] The invention relates to a digital system according to the preamble of claim 1. The invention further relates to a method for error detection in digital circuits using the digital system.


[0002] Error detection and correction in Very Large Scale Integrated (VLSI) digital circuit is a very important issue and, in the same time it is a very hard task. But even if an integrated circuit is very well tested, errors caused especially by environmental factors as excessive temperature, radiation, could appear at a later stage during it's normal duty time. In this case, the circuit must, at least, detect these errors and transmit a warning signal. It must be pointed out here that in case of a VLSI circuit the probability that at least one error occurs is relatively high and therefore a method for detecting at least one error is desirable.


[0003] Such a method is known from the paper “Parity Prediction In Combinational Circuits” appeared in Proceedings of the International Symposium on Fault-Tolerant Computing, pp. 185-188, 1979. In this prior art, a method for parity prediction in combinational circuits is described. The method considers a special case of circuit duplication, which is another well-known method for fault detection in digital circuits. In fact, as it is pointed out in the conclusions of the above mentioned paper, the main advantage of this method lies in input error preserving. It should be mentioned here that the circuit duplication in VLSI, it is almost impossible because of the area overhead involved in the process, even in the particular form described in said prior art.


[0004] It is therefore an object of the present invention to providing a testing system and a method for error detection in VLSI digital circuits that lower the necessary area overhead.


[0005] In accordance with the invention, this object is achieved in that the digital system further comprises a State Parity Generator (SPG) having a sixth input terminal coupled to the input terminal and a sixth output terminal coupled to the fifth input terminal, the SPG generating the other parity signal of an equivalent with respect to parity of the module under test, the other parity signal being generated from the digital input vector p_InV.


[0006] An equivalent with respect to parity of the module under test is a combinational circuit that is driven by the digital input vector p_InV and generates at its output the parity of the transfer function of the module under test.


[0007] The module under test could be either a part of the digital processing unit or could be identical thereto. In the same time, the second output vector T could be the same as the q_OutV, or they could coincide partially or could be totally different from each other. The output vector T may comprise signal components which are not a part of the output vector q_OutV, but which are indicative of the state of the processing unit. Preferably, the components of the output vector T are signals which occur during the processing of generating the output vector q_OutV from the input vector p_InV, so that no unnecessary overhead is introduced.


[0008] The device according to the invention has the advantage of lowering area overhead when one error detection circuit is provided. It does not duplicate the circuit, which in case of the VLSI circuits is impracticable and, furthermore, it is very flexible because it can be used to testing not only the output vectors of the processing unit but also state variables that are not outputted by the processing unit. Furthermore, the area overhead can be further optimized by partitioning the digital processing unit and choosing the equivalent with respect to parity circuit that involves an as low as possible area overhead.


[0009] In an embodiment of the invention the SPG comprises a plurality of combinatorial digital devices, being implemented using two level logic design i.e. sum of product terms or product of sum terms. This implementation is very suitable to be implemented in VLSI programmable logic devices and can provide low delay times through the SPG. It should be emphasized here that depending on the VLSI programmable logic device (PLD) architecture other combinational implementations could be considered as Muller expansions, multiplexers and demultiplexers etc.


[0010] In another preferred embodiment of the present invention the Actual Parity Generator (APG) is conceived to realize the digital function T1⊕T2⊕ . . . ⊕Tr. The APG is implemented with XOR gates in a configuration called Parity Tree (PT), but depending on the PLD architecture it could be implemented using logical gates other than XOR, multiplexers, demultiplexers, memories.


[0011] It is another object of the present invention to provide a method for error detection in a module under test comprised in a digital processing unit comprising


[0012] generating a digital output vector q-OutV from a digital input vector p_InV by means of a targeted digital transfer function (TDTF) implemented in the digital processing unit,


[0013] providing a binary vector T in response to the digital input vector p_InV, the vector T being representative of a state of the module under test,


[0014] generating an output signal AP representing the parity of the vector T,


[0015] generating an another parity signal CP in response to the digital input vector p_InV, the another parity signal CP representing the parity of an equivalent with respect to parity of the module under test,


[0016] comparing the signal AP with the signal CP,


[0017] generating a binary signal ED, the signal ED indicating whether the signal CP equals the signal AP.


[0018] In any digital design process it is necessary to specify an input vector and a desired state vector that represents, normally, the next state of the module under test circuit. From the next state of the module under test circuit a parity bit is provided. The parity bit is set in a first logical state e.g. logical 0 or Low (L) if there is an even number of bits with value 1 in the state vector. The parity bit is set in a second logical state e.g. logical 1 or High (H) if there is an odd number of bits with value 1 in the state vector.


[0019] Using the input vector and the parity bits of the state vector a combinational circuit implementing this parity function is designed using but not being limited to a standard computer aided design program.


[0020] It should be pointed out here that the vast majority of the digital circuits does not implement complete specified functions i.e. generally not all the 2n input combinations of an n dimensional input vector are used. In this case the unused combinations are used either to generate a warning signal or to generate a transition to a predetermined state.


[0021] In a preferred embodiment of the present invention the SPG is conceived to realize a digital transfer function having as input all possible p_InV vectors and as output a signal (CP) characterizing the parity of the desired T vector and the unused states of the input vector p_InV. A warning circuit is designed to generate a warning signal W if an unused combination is detected. The warning signal W is further treated by the system in the same way as the error generated by the parity error detection.






[0022] The above and other features and advantages of the invention will be apparent from the following description of exemplary embodiments of the invention with reference to the accompanying drawings, in which:


[0023]
FIG. 1 depicts a block diagram of a digital system 1 that is tested in accordance with an embodiment of the present invention,


[0024]
FIG. 2 represents a State Parity Generator (SPG) circuit in another embodiment of the invention,


[0025]
FIG. 3 represents a parity tree generator and a comparator in another embodiment of the invention.






[0026]
FIG. 1 shows the block diagram of a digital system 1 that is tested in accordance to the present invention. The digital system 1 is conceived for processing at a time moment determined by a clock (Ck) signal a digital input vector (p_InV) comprising p bits (I1, I2, . . . , Ip) for providing a digital output vector (q_OutV) comprising q bits (O1, O2, . . . , Oq). The digital system 1 further comprises a first input terminal 101 for receiving the p_InV and a first output terminal 102 for transmitting the q_OutV, the digital system 1 further has a digital processing unit 100 comprising a Module under Test 110, an Actual Parity generator 200, a Comparator 400 and a State parity generator (SPG) 300. A coupling between terminals could be realized in several ways e.g. as a wired or a wireless connection as e.g. by an inductive, capacitive, optical coupling or a radio connection.


[0027] The digital processing unit 100 is coupled to the first input terminal 101 for processing the p_InV for realizing a targeted digital transfer function (TDTF) and for providing the output vector q_OutV obtained with the TDTF to the first output terminal 102. The digital-processing unit 100 further comprises the Module under Test 110 having a second input terminal 105 coupled to the first input terminal 101 and a second output terminal 103 for providing a digital vector T having r bits (T1, T2, . . . , Tr). It should be pointed out here that in a particular implementation the Module under Test 110 and the digital-processing unit 100 could be identical to each other. Furthermore, some of the bits from vector T, if not all of them and some of the bits of the q_OutV could be the same i.e. the output vector T may partly or wholly coincide with the output vector q_OutV.


[0028] The Actual Parity Generator 200 comprises a third input terminal coupled to the second input terminal 103 for generating at a third output terminal 201 an output signal AP representing the parity of the vector T.


[0029] The SPG 300 comprises a sixth input terminal 106 coupled to the input terminal 101 and a sixth output terminal 301 coupled to a fifth input terminal being conceived for generating an other parity signal CP.


[0030] The comparator 400 comprises a fourth input terminal coupled to the third output terminal 201. It's fifth input terminal is coupled to the sixth output terminal. The comparator provides an output signal ED at a seventh output terminal 401 which indicates whether the input signal AP provided at the third output terminal equals the other parity signal CP.


[0031] The SPG 300 is an equivalent with respect to parity of the module under test 110 meaning that it realizes a binary or digital function having q_InV as input and generating the desired parity of the T vector.


[0032] Normally when a digital function is synthesized a table as Table 1 is used. In Table 1 State represents an output state determined by the input vector p_InV and
1TABLE 1p_InVStateParityI1I2 . . . IpT1T2 . . . TrCP


[0033] Parity represents the parity of the vector T. The parity of the vector is a digital function that has a first binary value when the vector T comprises an odd number of bits in logical high (H) state and has the dual binary value when the vector T comprises an even number of bits in logical H state.


[0034] The design process comprises steps of synthesizing digital functions T1=T1(p_InV), T2=T2(p_InV), . . . , Tr=Tr(p_InV) and CP=CP(p_InV). It is further observed that using Table 1 the parity of the state is uniquely associated to the digital input vector and that the State parity generator 300 is very simply in structure being a combinatorial circuit. Anyhow, such a combinatorial circuit is significantly simpler than a circuit that duplicates the Module under Test 110.


[0035] When the circuit is implemented in a programmable logic device, the area overhead due to the realization of the state parity generator 300 is relatively low.


[0036] It should be pointed out here that the vast majority of digital circuits does not implement complete specified functions i.e. not all the 2p input combinations of a p dimensional input vector p_InV are used. In this case the unused combinations are used either to generate a warning signal or to generate a transition to a predetermined state.


[0037] In a preferred embodiment of the present invention, a warning circuit is included for generating a warning signal W when an unused combination of the input vector p_InV is detected. The warning signal W is treated by the system in the same way as the error generated by the parity error detection is, the warning circuit being comprised in the SPG 300.


[0038] Let us consider the digital function described in Table 2. In Table 2 the input vector p_InV comprises 4 bits [A, B, C, D] and the state bits characterizing the vector T comprises 11 bits [A′, B′, C′, C′, a, b, c, d, e, f, g]. The vector q_OutV also comprises the bits [a, b, c, d, e, f, g]. The bits A B C D are included in the vector T but are not included in the digital output vector q_OutV. The bits noted with ‘x’ represent don't care bits, that is, they can be either logical H or logical L. It is further observed that the circuit described in Table 2 realizes an incompletely defined logical function. Hence, it is necessary to generate a warning signal W when the unused input codes appear at the input. In this situation the digital signal CP=ParPred+W, where “+” means logical OR function.
2TABLE 2p_InVStateParityWarning signalABCDA′B′C′D′abcdefgParPredW000000010010010100001001010111010000100011101101110001101000111010100100010111010111001010110110111100011001111110010100111100011111110010001001111101010100100001110111001010xxxxxxxxxxx011011xxxxxxxxxxx011100xxxxxxxxxxx011101xxxxxxxxxxx011110xxxxxxxxxxx011111xxxxxxxxxxx01


[0039] The resulting digital functions are as follows:




A′=BCD+{overscore (D)}A






B′={overscore (B)}CD+{overscore (C)}B+{overscore (D)}B






C′={overscore (AC)}D+{overscore (D)}C






D′={overscore (D)}






a={overscore (D)}C+B+{overscore (C)}D+A






b=CD+B+A






c=C+{overscore (B)}






d={overscore (D)}A+{overscore (B)}C+{overscore (A)}D+{overscore (C)}B






e=BD+{overscore (C)}D






f=A+{overscore (D)}+C+B






g={overscore (BD)}C+{overscore (C)}B+BD+{overscore (C)}D




ParPred={overscore (AB)}C+{overscore (BCD)}+{overscore (AD)}


W=AC+AB


[0040] It must be pointed out here that the implementation of the functions a . . . g described in Table 2, without ParPred and W, comprise, if they are implemented with logical gates, 28 gates while the implementation of the state parity generator 300 for generating the signal CP comprises only 8 gates. It is obvious that the method for detecting errors in digital circuits described in present application reduces the circuit overhead substantially in comparison with any other method involving duplication of the circuit known from prior art. It is observed that in the digital system 1 described in Table 2 the module under test 110 and the digital processing unit 100 coincide with each other but have different output vectors. The output vector q_OutV=[a, b, c, d, e, f, g] is included in vector T=[A′, B′, C′, D′, a, b, c, d, e, f, g].


[0041] It is further observed that if a set of completely defined functions is realized a warning signal W is superfluous. In that case the SPG 300 comprises only the implementation of ParPred function and CP=ParPred.


[0042] Furthermore, the signal W could be used in various ways as e.g. blocking the fourth input of the comparator 400, which is coupled to the third output terminal 201 of the Actual Parity Generator 200. Preferably blocking has the effect that the signal ED equals the signal W, in a hierarchical decision tree at a well-defined priority level in order to take decisions when an unused input vector appears.


[0043] It is further mentioned here that, depending on the VLSI programmable device used, the functions described in Table 2 could be implemented optimally either with logical gates or with medium scale circuits as multiplexers, demultiplexers, memories or combinations thereof.


[0044]
FIG. 2 depicts a SPG 300 circuit in another embodiment of the invention. The SPG 300 corresponds to the preferred embodiment described in the Table 2. The SPG 300 comprises a first set of logical gates [302, 303, 304, 308] generating the signal ParPred and a second set of logical gates [305, 306, 309] generating the signal W. OR gate 310 generates the signal CP that is further used in the error detection process.


[0045] It is be observed that the SPG 300 could be implemented either on the same chip as the digital system 1 or on a separate one. Furthermore, the signal CP could be generated by a separate testing system controlled by a computer program.


[0046]
FIG. 3 depicts an embodiment of the Actual Parity Generator 200 and of the Comparator 400, the resulting module being labeled 500. The module 500 comprises a set of XOR gates and a buffer 511 connected in a well-known configuration named parity tree circuit. The parity tree realize the logical function




ED=A′⊕B′⊕C′⊕D′⊕a⊕b⊕c⊕d e⊕f⊕CP
  (1)



[0047] generating at it's output terminal 401 the signal ED indicating when it has the logical value 1 that an error occurred in the module under test. The buffer circuit 511 is used here to balance the delays of any input signal from the input to the output.


[0048] Preferably the block 500 is implemented on the same chip as the module under test circuit and implementing the relation (1). It is understood that the implementation in FIG. 3 is not the unique possible one, the most important aspect being that the output signal ED is generated by the Boolean function ED=T⊕CP.


[0049] It is remarked that the scope of protection of the invention is not restricted to the embodiments described herein. Neither is the scope of protection of the invention restricted by the reference numerals in the claims. The word ‘comprising’ does not exclude other parts than those mentioned in a claim. The word ‘a(n)’ preceding an element does not exclude a plurality of those elements. Means forming part of the invention may both be implemented in the form of dedicated hardware or in the form of a programmed general-purpose processor. The invention resides in each new feature or combination of features.

Claims
  • 1. A digital system (1) for processing a digital input vector (p_InV), comprising p bits (I1, I2, . . . , Ip), for providing a digital output vector (q_OutV) comprising q bits (O1, O2, . . . , Oq), the digital system (1) comprising a first input terminal (101) for receiving p_InV, a first output terminal (102) for transmitting q_OutV, a digital processing unit (100) coupled to the first input terminal (101) for processing the p_InV for generating the digital output vector by means of a targeted digital transfer function (TDTF), the digital processing unit (100) comprising a Module under Test (110) having a second input terminal (105) coupled to the first input terminal (101) and a second output terminal (103) for generating a digital vector (T) having r bits (T1, T2, . . . , Tr), in response to the digital input vector p_InV. an Actual Parity Generator (200) having a third input terminal coupled to the second output terminal (103) and conceived for providing at a third output terminal (201) an output signal (AP) representing the parity of the vector T, a comparator (400) having a fourth input terminal coupled to the third output terminal (201) and a fifth input terminal coupled to a sixth output terminal (301) realizing a digital comparison between the signal AP and another parity signal (CP) and providing an output signal (ED) at a seventh output terminal (401) indicating whether or not the signal (AP) equals the signal (CP), characterized in that the digital system (1) further comprises a State Parity Generator (SPG) (300) having a sixth input terminal (106) coupled to the input terminal (101) and the sixth output terminal (301) coupled to the fifth input terminal, the SPG generating the other parity signal (CP) of an equivalent with respect to parity of the module (110), the other parity signal (CP) being generated from the digital input vector p_InV.
  • 2. A digital system (1) as claimed in claim 1 wherein the SPG (300) is conceived to realize a digital transfer function having as input all possible p_InV vectors and as output a signal (CP) characterizing the parity of the desired T vector and the unused states of the input vector p_InV.
  • 3. A digital system as claimed in claim 2 wherein the signal CP is obtained by ORing a signal ParPred characterizing the desired parity of the vector T with another signal W characterizing the unused states from the input vector p_InV.
  • 4. A digital system (1) as claimed in claim 2 wherein the SPG (300) comprises a plurality of combinatorial digital devices.
  • 5. A digital system (1) as claimed in claim 1 wherein the Actual parity generator (200) is conceived to realize the digital function T1⊕T2⊕ . . . ⊕Tr.
  • 6. A digital system (1) as claimed in claim 4 wherein the Actual parity generator (200) is realized with combinatorial digital-devices.
  • 7. A digital system as claimed in claim 1 characterized in that the ED signal is obtained by XORing the components of the vector T and the signal CP.
  • 8. A digital system (1) as claimed in claim 1 implemented in a programmable logic device.
  • 9. A method for error detection in a module under test (110) comprised in a digital processing unit (100) comprising generating a digital output vector q-OutV from a digital input vector p_InV by means of a targeted digital transfer function (TDTF) implemented in the digital processing unit (100), providing a binary vector T in response to the digital input vector p_InV, the vector T being representative of a state of the module under test (110), generating an output signal AP representing the parity of the vector T, generating an another parity signal CP in response to the digital input vector p_InV, the another parity signal CP representing the parity of an equivalent with respect to parity of the module under test (110), comparing the signal AP with the signal CP, generating a binary signal ED, the signal ED indicating whether the signal CP equals the signal AP.
  • 10. Implementing the parity function in a combinatorial design process.
Priority Claims (1)
Number Date Country Kind
01202090.5 Jun 2001 EP
PCT Information
Filing Document Filing Date Country Kind
PCT/IB02/01969 5/30/2002 WO