Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ERROR CORRECTION APPARATUS, METHOD OF CORRECTING AN ERROR AND METHOD OF GENERATING ERROR LOCATION DATA
Document Type and Number:
WIPO Patent Application WO/2008/040393
Kind Code:
A1
Abstract:
An error correction apparatus (100) comprises an input (102) for receiving data (300). The received data includes error-check data (304). The apparatus (100) also includes a processing resource (106) arranged to calculate parity check data. A data store (110) is coupled to the processing resource (106) for storing look-up data for identifying, when in use, a location of an error in the received data (300). The look-up data is a compressed form of indexed error location data (200).

Inventors:
LIN BO (GB)
EDMISTON GRAHAM (GB)
Application Number:
PCT/EP2006/067114
Publication Date:
April 10, 2008
Filing Date:
October 05, 2006
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
FREESCALE SEMICONDUCTOR INC (US)
LIN BO (GB)
EDMISTON GRAHAM (GB)
International Classes:
H04L1/00; H03M13/09
Other References:
BO LIN: "Correcting Single-Bit Errors with CRC8 in ATM Cell Headers", 6 August 2005 (2005-08-06), pages 1 - 12, XP002431458, Retrieved from the Internet [retrieved on 20070427]
TARJAN R E ET AL: "Storing a sparse table", COMMUNICATIONS OF THE ASSOCIATION FOR COMPUTING MACHINERY, ACM, NEW YORK, NY, US, vol. 22, no. 11, November 1979 (1979-11-01), pages 606 - 611, XP002399293, ISSN: 0001-0782
Attorney, Agent or Firm:
WHARMBY, Martin Angus et al. (Grove House Lutyens Close,,Chineham Court, Basingstoke Hampshire RG24 8AG, GB)
Download PDF:
Claims:

Claims (PCT)

1. An error correction apparatus (100) comprising: an input (102) for receiving data (300) that includes error-check data (304); a processing resource (106) arranged to calculate parity check data; and a data store (110) coupled to the processing resource (106) and arranged to store look-up data for identifying, when in use, a location of an error in the received data (300); characterised in that the look-up data is a compressed form of indexed error location data (200).

2. An apparatus as claimed in Claim 1 , wherein the processing resource is arranged to calculate the parity check data using the data (300) including the error-check data (304).

3. An apparatus as claimed in Claim 1 or Claim 2, wherein the compressed form of the indexed error location data comprises a first array of data (204) and a second array of data (206).

4. An apparatus as claimed in Claim 3, wherein the first array of data (204) comprises identifying data to identify data within the second array of data (206) to be accessed.

5. An apparatus as claimed in Claim 3 or Claim 4, wherein a mapping exists between the uncompressed indexed error location data and the first array of data (204) and the second array of data (206).

6. An apparatus as claimed in any one of Claims 3 to 5, wherein the first array of data (204) comprises displacement data.

7. An apparatus as claimed in any one of Claims 3 to 6, wherein the second array of data (206) comprises a plurality of vectors.

8. An apparatus as claimed in Claim 7, wherein a first dimension of each vector constitutes an index and a second dimension of each vector identifies an error location.

9. An apparatus as claimed in any one of the preceding claims, wherein the error location data is indexed by parity check value.

10. An apparatus as claimed in any one of the preceding claims, wherein the compressed form of the indexed error location data (200) is a compression of a matrix representation (202) of a table of the indexed error location data (200).

11. An apparatus as claimed in any one of the preceding claims, wherein the compressed form of the indexed error location data (200) is formed using a matrix compression algorithm.

12. An apparatus as claimed in any one of the preceding claims, wherein the received data (300) is a header of a data structure.

13. An apparatus as claimed in any one of the preceding claims, wherein the received data (300) is a part of an Asynchronous Transfer Mode (ATM) cell.

14. A method of correcting an error in data (300) that includes error-check data (304), the method comprising the steps of: generating (400) parity check data from the data (300); accessing (408, 410) look-up data to identify a location of an error in the data; characterised by access (410) of the look-up data being access of a compressed form of indexed error location data (300).

15. A method of generating error location data, the method comprising the steps of: generating (200) a table of error location data indexed by parity check value; forming a matrix (202) from the table of error location data; and compressing the matrix (202) to form a first array of data (204) and a second array of data (206).

16. A method as claimed in Claim 15, wherein a mapping exists between the table of error location data and the first array of data (204) and the second array of data (206).

17. A method as claimed in Claim 15 or Claim 16 wherein the second array of data (206) comprises a plurality of vectors.

18. A method as claimed in Claim 17, wherein a first dimension of each vector constitutes an index and a second dimension of each vector identifies as error location.

19. A method as claimed in any one of Claims 15 to 18, wherein the matrix (202) is compressed using a matrix compression algorithm to form the first array of data (204) and the second array of data (206).

20. A computer program product, including program code portions for performing a method as claimed in any one of claims 14-19 when run on a programmable apparatus.

Description:

TITLE: ERROR CORRECTION APPARATUS, METHOD OF CORRECTING AN ERROR AND METHOD OF GENERATING ERROR LOCATION DATA

Field of the Invention

This invention relates to an error correction apparatus of the type that, for example, employs lookup data to determine a location of an error in a bit pattern. This invention also relates to a method of correcting an error of the type that, for example, comprises looking-up data to determine a location of an error in a bit pattern. This invention further relates to a method of generating error location data of the type that, for example, is accessed to determine a location of an error in a bit pattern.

Background of the Invention

In the field of data communications, it is known to generate error check data based upon a bit pattern to be communicated from a source point to a destination point in a communications network. As an example, a header of an Asynchronous Transfer Mode (ATM) cell to be transmitted from the source point to the destination point comprises 40 bits of data. Bits 0 to 7 of the header comprise so-called Header Error Check (HEC) data based upon bits 8 to 39 of the header, bits 8 to 39 comprising actual header data to be communicated. The HEC data is a Cyclic Redundancy Check 8 (CRC8) value calculated from the actual data (bits 8 to 39).

Upon receipt of the header, the CRC8 value of the data portion of the header (bits 8 to 39) is recalculated and used. In the case of ATM, the calculated CRC8 value is XORed with the HEC data received to calculate parity check data, sometimes known as a syndrome value. For each bit position of the received data (bits 0 to 39), a unique syndrome value exists and is typically stored in a look-up table indexed by bit position. Hence, the unique syndrome value indicates the location of a one-bit error.

Consequently, after calculation of the syndrome value, the syndrome value is used to search the look-up table for a corresponding location (bit position) of a bit that is in error. The location of the error is then used to correct the 1 -bit error that the received data contains.

However, the table is unsorted and so access of error location data is inefficient, as a linear search method is usually involved. Therefore, for reasons of access speed, the table is sorted by syndrome value and "padded" with unspecified error locations for non-existent syndrome values,

for example -1 . The padded look-up table is indexed by syndrome value, the error location data constituting table entries. Further, the padded look-up table is known as a "reverse table".

In order to provide the above error correction, a so-called micro-engine module is provided, supported by a microprocessor. However, the micro-engine has limited storage capacity and the padded reverse look-up table is an inefficient use of storage space. For example, a typical reverse look-up table for providing CRC8 error correction only has 40 out of 256 "specified" entries, i.e. only

15.6% of the entries are specified, the remaining entries using valuable storage capacity of the micro-engine. Consequently, use of the micro-engine module may not be possible where constraints on memory space exist.

Statement of Invention

According to the present invention, there is provided an error correction apparatus, a method of correcting an error and a method of generating error location data as set forth in the appended claims.

Brief Description of the Drawings

At least one embodiment of the invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

FIG. 1 is a schematic diagram of an error correction apparatus constituting an embodiment of the invention;

FIG. 2 is a schematic diagram of a data compression technique;

FIG. 3 is a schematic diagram of a data structure associated with data processed by the apparatus of FIG. 1 ; and

FIG. 4 is a flow diagram of a method of correcting an error for the apparatus of FIG. 1 .

Description of Preferred Embodiments

Throughout the following description identical reference numerals will be used to identify like parts.

Referring to FIG. 1 , a communications processor 100 of a Power Quad Universal Integrated Communications Controller (PowerQUICC™) available from Freescale, Inc. comprises an input 102 coupled to an interface 104, for example an analogue-to-digital converter circuit and, optionally an optical transducer circuit to convert received optical signals to the electrical domain in the event that the communications processor is coupled to an optical communications network (not shown). The interface 104 is coupled to a micro-engine circuit 106 comprising microcode 108 to be executed and a storage space 1 10 containing compressed look-up data. The micro-engine 106 is coupled to a Central Processing Unit (CPU) 112 of the communications processor 100, the CPU 1 12 being coupled to an output 114 of the communications processor 100 for coupling the communications processor 100 to, for example an Internet Protocol (IP) interface (not shown).

The compressed look-up data is formed by compressing an original padded reverse look-up table of a known type, for example the padded reverse look-up table of Table I below.

TABLE I

Turning to FIG. 2, the original padded reverse look-up table 200 is transformed to a matrix 202, for example a square matrix, such as a 16 x 16 matrix. The matrix 202 is then compressed into a first array of data 204 and a second array of data 206, the first array of data 204 being a displacement array, r, and the second array of data 206 comprising a plurality of vectors, each vector being two- dimensional. The matrix 202 is compressed according to any suitable algorithm, for example, as described in "Storing a Sparse Table" (Robert Endre Tarjan, Andrew Chi-Chih Yoo, Communications of the ACM, November 1979, Volume 22, Number 11 ).

The compression technique is such that a mapping exists between the first array of data 204 and the second array of data 206. Examples of the first array of data 204 and the second array of data 206 are shown in Tables Il and III below (use of the term "Table" is not intended to be limiting and purely for identification purposes), respectively.

0 0

1 17

2 20

3 34

4 36

5 2

6 27

7 5

8 19

9 5

10 10

11 31

12 19

13 9

14 0

15 0

TABLE

{224, 13} { 1, 0} { 2, 1} {81,27} { 4, 2} {112,12} {84,18} { 7, 8} { 8, 3} { 87, 20} { 88, 34} {11,31} {162,28} {91,22} { 14, 9} {214,25} {155,38} {16,4} {168, 19} {128, 7} {32, 5} {171,26} {21, 16} { 22, 32} {174,21} {134,30} {199, 14} { 0,-1} {137, 15} {28, 10} {42,17} {176,35}

{ 44, 33}

{206, 37}

{103,36}

{ 49, 39}

{64 6}

{182,23}

{107,24}

{ 67, 29}

{ 0,-1}

{ 0,-1}

{56, 11}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

{ 0,-1}

Table

Operation of the above apparatus will now be described in the context of a numerical example. In operation, the communications processor 100 receives a bit pattern 300 (FIG.3) comprising a data portion 302 and a HEC portion 304, the bit pattern 300 being a header of an ATM cell. As transmitted, the data portion 302 was 0x30313233 and the HEC portion 304 was 0x69. Upon receipt, the data portion 302 was 0x31313233 and the HEC portion was 0x69. Hence, the data portion 302, as received, comprises a 1-bit error as compared with the data portion 302 as transmitted.

Referring to FIG.4, in order to calculate a syndrome value (Step 400), the micro-engine 106 firstly calculates a verifying HEC value for the data portion 302 of the bit pattern 300 as received:

verHEC = CRC8(0x31313233) = 0x7F

As can be seen from the above calculation, the verifying HEC is calculated using CRC8, though the skilled person will appreciate that other techniques can be employed for other applications, for example CRC16 or CRC32.

Using module 2 addition of the HEC as received and the calculated verifying HEC, the syndrome value is calculated (Step 400):

S = verHEC θ rxHEC = 0x7F θ 0x69 = 0x16 = 22

The micro-engine 106 then determines (Step 402) whether the calculated syndrome value is equal to zero. If the syndrome value is zero, the micro-engine determines (Step 404) that the data portion 302 of the received bit pattern 300 is correct and so the bit pattern is transferred to the CPU 112.

However, if the syndrome value is non-zero, access to the compressed look-up data is required as the non-zero nature of the calculated syndrome value is indicative of the bit pattern 300 as received containing one or more error. In accordance with the mappings convention between the first array of data 204 and the second array of data 206, an entry, i, of the first array of data 204 is identified (Step 406) by performing a division operation by n, in this example 16, of the syndrome value in order to obtain the quotient of the division for use as the entry, i, of the first array of data 204. The micro-engine 106 then calculates (Step 406) the remainder, j, of the division of the syndrome value by n, in this example 16.

The i th entry in the first array of data 204 is then accessed (Step 408) by the micro-engine 106 to obtain a corresponding stored displacement value, namely 17, and added to the remainder, j, calculated, namely 6:

r[i] = 17 J = 6 r[i] + j = 17 + 6 = 23

In accordance with the mapping scheme between the first and second data arrays 204, 206, the result of the above addition identifies an entry in the second array of data 206 (Step 410), namely entry number 23 that is deemed to contain location data identifying the location in the bit pattern 300 of the error, provided the following test is satisfied.

In this regard, the 23 rd entry of the second array of data 204 is a vector containing a look-up syndrome value and corresponding location data. The look-up syndrome value is compared (Step

412) with the calculated syndrome value. If the look-up syndrome value stored is the same as the syndrome value calculated, then the syndrome value calculated is deemed (Step 414) specified in the original look-up table 200 upon which the first and second arrays of data 204, 206 are based and so the location data, in this example 32, is used. If, however, the look-up syndrome value and the calculated syndrome values are not the same, then the syndrome value calculated is deemed (Step 416) unspecified in the original look-up table 200 and the error in the bit pattern 300 cannot be corrected (Step 418) by the micro-engine 106, for example due to the bit pattern 300 containing more than one error

When the calculated syndrome value is deemed (Step 414) specified, the error location in bit pattern 300 is found. If the one bit error occurs in the HEC portion 304, the data portion 302 is error free and so no error correction to the data portion 302 is needed. If the one bit-error occurs in the data portion 302, a correcting bit pattern needs be generated to correct (Step 420) the error. Consequently, a least significant bit of the following initial bit pattern is then shifted to the right by (32 (the location of the error) - 8) bit positions (due to the first 8 bits of the header relating to the HEC) in order to yield a correcting bit pattern:

errorPattern = 0x00000001 « (32-8) = 0x01000000

The micro-engine 106 then performs module 2 addition of the data portion 302 as received with the correcting bit pattern:

rxData = 0x31313233 θ 0x01000000 = 0x30313133

The 1 -bit error in the received bit pattern is thus corrected and then forwarded to the CPU 112. The above process is then repeated for subsequently received ATM headers.

Although the above example has been described in the context of an ATM header, the skilled person will appreciate that the above technique can be applied to other bit patterns, for example an IP packet.

It is thus possible to provide a method and apparatus that can facilitate access of error location data with sufficient speed whilst employing look-up data that is economic with storage space of the micro-engine. In this respect, the compressed look-up data only requires 120 bytes of storage space, representing a 53% saving in storage space over the original padded look-up table. Of course, the above advantages are exemplary, and these or other advantages may be achieved by the invention.

The invention may also be implemented in a computer program for running on a computer system, at least including code portions for performing steps of a method according to the invention when run on a programmable apparatus, such as a computer system or enabling a programmable apparatus to perform functions of a device or system according to the invention. Such a computer program may be provided on a data carrier, such as a CD-rom or diskette, stored with data loadable in a memory of a computer system, the data representing the computer program. The data carrier may further be a data connection, such as a telephone cable or a wireless connection.

In the foregoing specification, the invention has been described with reference to specific examples of embodiments of the invention. It will, however, be evident that various modifications and changes may be made therein without departing from the broader spirit and scope of the invention as set forth in the appended claims. For example, the invention is not limited to physical devices or units implemented in non-programmable hardware but can also be applied in programmable devices or units able to perform the desired device functions by operating in accordance with suitable program code. Furthermore, the devices may be physically distributed over a number of apparatuses, while functionally operating as a single device. Also, devices functionally forming separate devices may be integrated in a single physical device. Further, the skilled person will appreciate that not all advantages stated above are necessarily achieved by embodiments described herein.

In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word 'comprising' does not exclude the presence of other elements or steps then those listed in a claim. Furthermore, the words 'a' and 'an' shall not be construed as limited to 'only one', but instead are used to mean 'at least one', and do not exclude a plurality. The mere fact that certain measures are recited in mutually different claims does not indicate that a combination of these measures cannot be used to advantage.