Error correction circuit, control device, and method
The error correction circuit addresses data corruption in industrial machines by dynamically switching decoding algorithms based on device state analysis, ensuring optimal data integrity and efficiency in harsh environments.
Patent Information
- Application Number
- PCT/JP2023/006153
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-29
AI Technical Summary
Industrial machines in manufacturing sites face data corruption due to noise during transmission and storage, necessitating adaptive error correction mechanisms that can switch encoding algorithms based on device state to ensure optimal data integrity.
An error correction circuit that includes a controller, encoding circuit, decoding circuit, inspection circuit, and setting unit, which analyzes error trends to reconfigure the decoding algorithm and switch between different encoding algorithms to suit the device's failure status, using redundant data for error detection and correction.
This solution enhances data integrity by dynamically adjusting decoding algorithms based on device conditions, improving decoding speed and accuracy while reducing hardware complexity and power consumption.
Smart Images

Figure JP2023006153_29082024_PF_FP_ABST
Abstract
Description
Error correction circuit, control device, and method
[0001] The present disclosure relates to an error correction circuit, a control device, and a method.
[0002] Multiple industrial machines are installed in manufacturing sites such as factories. The control devices of these industrial machines are connected to various computers, such as management devices and production planning devices, via a network, and operate while communicating with each other. Various industrial machines and peripheral devices are in operation at manufacturing sites, and noise generated by these devices can cause data corruption due to bit inversion during data transmission. Furthermore, noise can also cause corruption of data stored in memory such as RAM, HDD, and SSD within each device.
[0003] To cope with such harsh environments, in many cases, raw data is not handled as is, but rather data is encoded to make it redundant and enable error detection and correction (see, for example, Patent Document 1). Data encoding may also be used for the purpose of encrypting communications in addition to error detection and correction. The encoded data is decoded when it is used.
[0004] JP 2016-062463 A
[0005] Encoding algorithms vary in encoding and decoding speed, redundancy, etc. depending on the type and usage. In the field, there is a demand to use the optimal encoding algorithm depending on the device status.
[0006] The error correction circuit disclosed herein solves the above problem by determining the state of a device, such as how it is broken, based on error trends and switching the encoding algorithm accordingly.
[0007] One aspect of the present disclosure is an error correction circuit comprising a plurality of devices, a controller for writing and reading data to the devices, an encoding circuit for encoding data to be written to the devices, a decoding circuit capable of changing logic circuits for decoding data read from the devices, an inspection circuit for detecting errors in the data read from the devices, and a setting unit for reconfiguring the decoding circuit, wherein redundant data is added to the data read from the devices, the inspection circuit detects data errors using the redundant data added to the data read from the devices, and the setting unit reconfigures the decoding circuit to a logic circuit that performs decoding appropriate to the failure status of the devices when it is determined that the devices are faulty based on the tendency of errors detected by the inspection circuit.
[0008] FIG. 1 is a schematic configuration diagram of an error correction circuit according to a first embodiment of the present disclosure. FIG. 2 is a block diagram showing a schematic function of the error correction circuit according to the first embodiment of the present disclosure used as a memory controller. FIG. 3 is a schematic configuration diagram of a modified example of the error correction circuit according to the first embodiment of the present disclosure. FIG. 4 is a schematic configuration diagram of an error correction circuit according to a second embodiment of the present disclosure. FIG. 5 is a schematic configuration diagram of an error correction circuit according to a third embodiment of the present disclosure. FIG. 6 is a screen configuration diagram showing an example of a screen for notifying a device failure according to the third embodiment. FIG. 7 is a schematic configuration diagram of an error correction circuit according to another embodiment of the present disclosure.
[0009] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. [First Embodiment] FIG. 1 is a block diagram showing a schematic configuration of an error correction circuit 100 according to a first embodiment of the present disclosure. The error correction circuit 100 according to this embodiment can be incorporated into a memory read / write section or a communication circuit transmission / reception section of a control device 1 that controls industrial machinery such as a machine tool or a robot. The error correction circuit 100 can be configured as a device that writes and reads data to and from multiple devices. Examples of the multiple devices include storage devices such as ROM (Read Only Memory), RAM (Random Access Memory), HDD (Hard Disk Drive), and SSD (Solid State Drive), external storage devices that exchange data with external storage such as USB memory and SD card, and communication devices that exchange data with other remote devices.
[0010] As shown in FIG. 1, the error correction circuit 100 according to this embodiment has a configuration in which a processor 110, a storage unit 120, and a logic device 130 are connected via a bus 180.
[0011] The processor 110 is, for example, a CPU (Central Processing Unit). A trend analysis unit 111 and a setting unit 112 are configured on the processor 110 and function as hardware circuits or by executing predetermined system software. The storage unit 120 is, for example, a ROM, a RAM, a HDD, or an SSD.
[0012] The logic device 130 is, for example, an LSI (Large Scale Integration). In the error correction circuit 100 according to this embodiment, a controller 131, an encoding circuit 132, a plurality of decoding circuits 133, and an inspection circuit 134 are configured on the logic device 130.
[0013] The controller 131 writes and reads data to the devices. Based on instructions from the processor 110, the controller 131 writes predetermined data to multiple devices. Based on instructions from the processor 110, the controller 131 also reads predetermined data from multiple devices and passes it to the processor 110. When writing data to each device, the controller 131 encodes the data using an encoding circuit 132. Furthermore, the controller 131 adds predetermined redundant data for each device to the data written to the device. The redundant data may be well-known data such as a parity bit or CRC. When reading data from each device, the controller 131 decodes the data using a decoding circuit 133 set according to the state of the device.
[0014] The encoding circuit 132 is a circuit that encodes data to be written to a device. The encoding circuit 132 is constructed using a logic circuit to implement a predetermined encoding algorithm. The encoding circuit 132 encodes the data to be written to a device based on the predetermined encoding algorithm.
[0015] On the other hand, the decoding circuit 133 is a circuit that decodes data read from the device. The decoding circuits 133 are constructed with logic circuits that implement different predetermined decoding algorithms. The decoding algorithms of the decoding circuits 133 are used to decode data that has been coded by the coding algorithm of the coding circuit 132.
[0016] The inspection circuit 134 inspects the data read by the controller 131 and detects errors such as corruption of the data. Redundant data such as parity and CRC is added to the data read from each device. The inspection circuit 134 detects data errors by inspecting the data using this redundant data. If the inspection circuit 134 detects an error in the data read from a device, it outputs information related to the read data (e.g., information identifying the device that read the data, the address of the read data within the device, etc.) to the trend analysis unit 111.
[0017] The trend analysis unit 111 analyzes the tendency of errors in data read from a device detected by the inspection circuit 134. If it is determined from the analyzed error tendency that a fault has occurred in a specific device, it instructs the setting unit 112 to use the decoding circuit 133 corresponding to the error tendency. The trend analysis unit 111 may determine that a fault has occurred in a specific device, for example, when an error occurs in data read from the specific device a predetermined number of times or more consecutively, or when an error occurs in data read at a predetermined frequency in the most recent predetermined number of data reads from the specific device. The trend analysis unit 111 may also analyze the device status in more detail. For example, if there is a tendency for errors to occur frequently only at a specific address in data read from the device, it may determine that a fault has occurred at that address in the device.
[0018] The setting unit 112 selects a decoding circuit 133 suitable for the error occurrence tendency of data read from the device analyzed by the trend analysis unit 111. Then, the setting unit 112 sets the controller 131 to use the selected decoding circuit 133. The decoding circuit 133 selected by the setting unit 112 may be configured to configure a circuit that decodes data by excluding data from devices determined to have some kind of failure based on the error occurrence tendency. Furthermore, when the setting unit 112 is notified of more detailed error occurrence trends from the trend analysis unit 111, the setting unit 112 may set parameters of the selected decoding circuit 133 to match the detailed error occurrence tendency. For example, when a device failure is limited to a specific address, the decoding circuit 133 may be set to partially change the decoding algorithm depending on the range of the failed addresses.
[0019] 2 is a block diagram showing a schematic configuration of the error correction circuit 100 according to this embodiment used as a memory controller. In FIG. 2, the storage device 210 is, for example, a RAM. The storage device 210 is made up of multiple storage devices 210A to 210E. The storage device 210 is connected to the logical device 130 via a memory bus 200. The controller 131 writes data to the storage device 210 and reads data from the storage device 210 via the memory bus 200.
[0020] 2, when the controller 131 writes data to the storage devices 210, the encoding circuit 132 encodes the data using a known error correction encoding algorithm such as turbo coding, LDCP coding, or Reed-Solomon coding. The encoding circuit 132 may also use its own error correction encoding algorithm. The controller 131 then writes the encoded data to each of the storage devices 210A to 210E. When writing data, the controller 131 adds redundant data to the data for each device.
[0021] When the controller 131 reads data from the storage device 210, the data read from each of the storage devices 210A to 210E is decoded by a decoding circuit 133 set according to the current state of the storage device. When the controller 131 reads data from the storage device 210, the inspection circuit 134 performs an inspection on the data read from each device using redundant data. The inspection results are sent to the setting unit 112. Here, for example, suppose that an error was detected at a predetermined frequency in the data read from the storage device 210C during a predetermined number of recent data reads. In such a case, the setting unit 112 assumes that the data read from the storage device 210C contains an error, and selects a decoding circuit 133 for decrypting the data based on the data read from the storage devices 210A, 210B, 210D, and 210E. The read data is then decoded using the selected decoding circuit 133. From this point on, the decoding circuit 133 that performs the decoding process without using the data from the storage device 210C is used.
[0022] In the error correction circuit 100 according to this embodiment, which has the above-described configuration, redundant data is added to data read from each device. This redundant data is used to analyze the device's status to determine whether it is operating normally or has failed. If the analysis results indicate that the device is faulty, the circuit logically switches to the decoding circuit 133, which executes the most appropriate decoding algorithm. Because hardware is used for data encoding and decoding, data can be encoded and decoded at high speed. Furthermore, the decoding algorithm can be changed depending on the device's status, providing processing flexibility. This allows for use, for example, by using a decoding algorithm that assumes that data read from a failed device contains an error, thereby improving the speed and accuracy of decoding.
[0023] The error correction circuit 100 according to this embodiment can be incorporated into the memory read / write and communication circuit transmission / reception sections of a control device 1 that controls industrial machinery such as machine tools and robots. Errors can occur in data written to devices such as memories and communication circuits due to factors such as the effects of cosmic rays, malfunctions of the device itself, solder cracks, noise, and other mechanical factors. The above factors can also cause partial damage to the device itself. The error correction circuit 100 according to this embodiment is expected to operate effectively in such situations.
[0024] As a modified example of the error correction circuit 100 according to this embodiment, the trend analysis unit 111 that analyzes the trend of error occurrence may be configured as a predetermined logic circuit on the logic device 130, rather than being configured on the processor 110. In this case, the occurrence of errors in each device detected by the inspection circuit 134 is statistically recorded on the logic circuit, and the trend of error occurrence is analyzed from the statistical record. Then, when a predetermined trend is observed, a command is output to the setting unit 112 to select an appropriate decoding circuit 133.
[0025] As another modification of the error correction circuit 100 according to this embodiment, as illustrated in FIG. 3 , multiple encoding circuits 132 and multiple inspection circuits 134 may be provided on the logic device 130 in addition to the decoding circuits 133. In this case, the setting unit 112 switches between the encoding circuits 132, the decoding circuits 133, and the inspection circuits 134 depending on the error occurrence tendency of data read from the device analyzed by the trend analysis unit 111. Because it is difficult to switch between the encoding circuits 132 and the inspection circuits 134 while the control device 1 is operating, if switching between the encoding circuits 132 and the inspection circuits 134 is selected during operation, this information is stored in a predetermined area of the storage unit 120. Then, the next time the control device 1 is started, the selected circuit may be selected. Note that multiple trend analysis units 111 may be configured as logic circuits on the logic device 130. In this case, an appropriate trend analysis unit 111 may be selected depending on the state of the device and the error occurrence tendency of data read from the device. This configuration allows the encoding algorithm and decoding algorithm to be changed more flexibly in accordance with the state of the device, thereby providing flexibility in processing.
[0026] 4 is a block diagram showing a schematic configuration of an error correction circuit 100 according to a second embodiment of the present disclosure. The error correction circuit 100 according to this embodiment differs from the error correction circuit 100 according to the first embodiment in that the logic device 130 is configured as a reconfigurable device.
[0027] The processor 110 according to this embodiment is, for example, a CPU. A trend analysis unit 111 and a setting unit 112, which function as hardware circuits or by executing predetermined system software, are configured on the processor 110. The storage unit 120 is, for example, a ROM, RAM, HDD, or SSD. The storage unit 120 according to this embodiment stores in advance a plurality of configuration files 121 for configuring a logic circuit on the logic device 130.
[0028] The logic device 130 according to this embodiment is, for example, a Field Programmable Gate Array (FPGA). In the error correction circuit 100 according to this embodiment, a controller 131, an encoding circuit 132, a decoding circuit 133, and an inspection circuit 134 are configured on the logic device 130.
[0029] The controller 131 writes and reads data to the devices. Based on instructions from the processor 110, the controller 131 writes predetermined data to multiple devices. Based on instructions from the processor 110, the controller 131 also reads predetermined data from multiple devices and passes it to the processor 110. When writing data to each device, the controller 131 encodes the data using an encoding circuit 132. Furthermore, the controller 131 adds predetermined redundant data for each device to the data written to the device. The redundant data may be well-known data such as a parity bit or CRC. When reading data from each device, the controller 131 decodes the data using a decoding circuit 133.
[0030] The encoding circuit 132 is a circuit that encodes data to be written to the device, and encodes the data to be written to the device based on a predetermined encoding algorithm.
[0031] On the other hand, the decoding circuit 133 is a circuit that decodes data read from the device. The decoding circuit 133 is configured by reconfiguring the logic device 130 based on the configuration file 121 stored in the storage unit 120. The decoding algorithm of the decoding circuit 133 is used to decode data that has been coded by the coding algorithm of the coding circuit 132.
[0032] The inspection circuit 134 inspects the data read by the controller 131 and detects errors such as corruption of the data. Redundant data such as parity and CRC is added to the data read from each device. The inspection circuit 134 detects data errors by inspecting the data using this redundant data. If the inspection circuit 134 detects an error in the data read from a device, it outputs information related to the read data (e.g., information identifying the device that read the data, the address of the read data within the device, etc.) to the trend analysis unit 111.
[0033] The trend analysis unit 111 analyzes the tendency of errors in data read from a device detected by the inspection circuit 134. If it is determined from the analyzed error tendency that a fault has occurred in a specific device, it instructs the setting unit 112 to reconfigure the decoding circuit 133 according to the error tendency. The trend analysis unit 111 may determine that a fault has occurred in a specific device, for example, when an error occurs in data read from the specific device a predetermined number of times or more consecutively, or when an error occurs in data read at a predetermined frequency in the most recent predetermined number of data reads from the specific device. The trend analysis unit 111 may also analyze the device status in more detail. For example, if there is a tendency for errors to occur frequently only at a specific address in the data read from the device, it may determine that a fault has occurred at that address in the device.
[0034] The setting unit 112 selects a configuration file 121 suited to the error occurrence tendency of data read from the device analyzed by the trend analysis unit 111. The selected configuration file 121 is then used to reconfigure the circuit configuration of the decoding circuit 133. The configuration file 121 selected by the setting unit 112 may be one for configuring a circuit that decodes data by excluding data from devices determined to have some kind of failure based on the error occurrence tendency. Furthermore, when the trend analysis unit 111 notifies the setting unit 112 of more detailed error occurrence trends, the setting unit 112 may set parameters of the selected configuration file 121 to match the detailed error occurrence tendency. For example, when a device failure is limited to a specific address, the setting unit 112 may set parameters of the configuration file 121 to partially change the decoding algorithm depending on the range of the failed addresses.
[0035] In the error correction circuit 100 according to this embodiment, redundant data is added to data read from each device. This redundant data is used to analyze the device's status to determine whether it is operating normally or has failed. If the analysis results indicate that the device is faulty, the decoding circuit 133 is reconfigured to switch to an optimal decoding algorithm. In this way, reconfigurable hardware is used for data encoding and decoding, enabling high-speed data encoding and decoding. Furthermore, the decoding algorithm can be changed depending on the device's status, providing processing flexibility. This allows for applications such as using a decoding algorithm that assumes that data read from a faulty device contains an error, thereby improving decoding speed and accuracy. Furthermore, the necessary circuits can be implemented on the logic device 130 at any time depending on the device's status. Therefore, there is no need to physically create various circuits to cover all possible encoding and decoding patterns, reducing the circuit size and power consumption by eliminating the need to simultaneously operate multiple algorithm circuits.
[0036] As a modified example of the error correction circuit 100 according to this embodiment, the trend analysis unit 111 that analyzes the trend of error occurrence may be configured as a predetermined logic circuit on the logic device 130, rather than being configured on the processor 110. In this case, the occurrence of errors in each device detected by the inspection circuit 134 is statistically recorded on the logic circuit, and the trend of error occurrence is analyzed from the statistical record. Then, when a predetermined trend is observed, a command is output to the setting unit 112 to reconfigure the decoding circuit 133.
[0037] In another modification of the error correction circuit 100 according to this embodiment, the configuration file 121 may reconfigure not only the decoding circuit 133 but also the encoding circuit 132 and the check circuit 134. In this case, the setting unit 112 reconfigures the encoding circuit 132, the decoding circuit 133, and the check circuit 134 according to the error occurrence tendency of data read from the device analyzed by the trend analysis unit 111. Because it is difficult to reconfigure the encoding circuit 132 or the check circuit 134 while the control device 1 is running, if reconfiguration of the encoding circuit 132 or the check circuit 134 is selected during operation, this is stored in a predetermined area of the storage unit 120. Then, the selected configuration file 121 may be used to reconfigure each circuit the next time the control device 1 is started. Note that if the trend analysis unit 111 is configured on the logical device 130, the trend analysis unit 111 may also be reconfigured according to the error occurrence tendency of data read from the device. This configuration allows the encoding algorithm and the decoding algorithm to be changed more flexibly according to the device status, thereby providing greater processing flexibility.
[0038] 5 is a block diagram showing a schematic configuration of an error correction circuit 100 according to a third embodiment of the present disclosure. The error correction circuit 100 according to this embodiment further includes a notification unit 113 in addition to the components of the error correction circuit 100 according to the first embodiment.
[0039] In this embodiment, when the trend analysis unit 111 determines that some kind of failure has occurred in a specific device, it instructs the setting unit 112 to reconfigure the decoding circuit 133 and also instructs the notification unit 113 to notify the failure state of the device.
[0040] When instructed to notify the failure state of a device, the notification unit 113 notifies the user that the device has failed. The notification unit 113 may, for example, display on a display device (not shown) information identifying the device along with a message indicating that the device has failed. An alarm may also be sounded at this time. Alternatively, the device failure may be notified by a lamp or the like provided on an operation panel or the like. Fig. 6 shows an example of a screen configuration displayed on a display device by the notification unit 113 to notify the user of a device failure. In the example of Fig. 6, a message is displayed urging the user to replace the expansion board on which the failed device is mounted.
[0041] When the trend analysis unit 111 determines that some kind of failure has occurred in a specific device, it may also issue a command to run a program that reads data stored in the device and backs up the data to an external storage device (not shown). If data such as machining programs and parameters are stored in the device, automatically backing up this data will enable the device replacement work to proceed smoothly later.
[0042] The error correction circuit 100 according to this embodiment having the above configuration makes it possible to quickly start work to correct the failure when a device failure is detected.
[0043] [Other Embodiments] In the error correction circuit 100 according to the present disclosure, the encoding circuit, decoding circuit, inspection circuit, and controller may be constructed using software circuits. FIG. 7 is a block diagram showing a schematic configuration of the error correction circuit 100 according to another embodiment of the present disclosure. As shown in FIG. 7, in the error correction circuit 100 according to this embodiment, functions corresponding to the controller 131, encoding circuit 132, decoding circuit 133, and inspection circuit 134 constructed on the logic device 130 by the error correction circuit 100 according to the second embodiment are constructed in software on the processor 110 as a controller unit 114, encoding unit 115, decoding unit 116, and inspection unit 117, respectively. A program 122 for realizing each function is pre-stored in the storage unit 120.
[0044] The error correction circuit 100 configured in this way can implement the necessary functions on the processor 110 at any timing depending on the device status. Therefore, there is no need to physically create various circuits to cover all possible encoding and decoding patterns, which reduces the circuit scale and makes it possible to achieve power savings by eliminating the need to operate multiple algorithm circuits simultaneously.
[0045] As described above, the error correction circuit 100 according to each embodiment described above is capable of changing the encoding algorithm and decoding algorithm in accordance with the device conditions, thereby providing flexibility in processing.
[0046] Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values or mathematical expressions are used in the description of the above-described embodiments.
[0047] The following are supplementary notes relating to embodiments of the present disclosure. (Supplementary Note 1) An error correction circuit (100) according to one aspect of the present disclosure includes a plurality of devices (210), a controller (131) that writes and reads data to the devices (210), an encoding circuit (132) that encodes data to be written to the devices (210), a decoding circuit (133) that can change logic circuits and decodes data read from the devices (210), an inspection circuit (134) that detects errors in the data read from the devices (210), and a control circuit (135) that switches between the decoding circuit (133). and a setting unit (112) for detecting an error in the data read from the device (210), wherein redundant data is added to the data read from the device (210), and the inspection circuit (134) detects errors in the data using the redundant data added to the data read from the device (210), and when the setting unit (112) determines that the device (210) has failed based on the error occurrence tendency detected by the inspection circuit (134), it switches the decoding circuit (133) to a logic circuit that performs decoding appropriate for the failure status of the device (210). (Supplementary Note 2) In an error correction circuit (100) according to another aspect of the present disclosure, the encoding circuit (132) is capable of changing its logic circuit, and when the setting unit (112) determines that the device (210) has failed based on the error occurrence tendency detected by the inspection circuit (134), it switches the encoding circuit (132) to a logic circuit that performs encoding appropriate for the failure status of the device (210). (Supplementary Note 3) In another aspect of the error correction circuit (100) of the present disclosure, the inspection circuit (134) is capable of changing the logic circuit, and when the setting unit (112) determines that the device (210) is faulty based on the tendency of errors detected by the inspection circuit (134), it switches the inspection circuit (134) to a logic circuit that performs an inspection appropriate to the fault condition of the device (210).
[0048] (Supplementary Note 4) An error correction circuit (100) according to another aspect of the present disclosure further includes a trend analysis unit (111) for analyzing the tendency of errors in read data, and the setting unit (112) selects a destination logic circuit based on the tendency of errors analyzed by the trend analysis unit (111). (Supplementary Note 5) In the error correction circuit (100) according to another aspect of the present disclosure, the trend analysis unit (111) is configured with a reconfigurable logic circuit, and when the setting unit (112) determines that the device (210) has failed based on the tendency of errors detected by the inspection circuit (134), it switches the trend analysis unit (111) to a logic circuit that performs trend analysis appropriate for the failure status of the device (210). (Supplementary Note 6) In the error correction circuit (100) according to another aspect of the present disclosure, the setting unit 112 sets parameters in the decoding circuit (133) according to the tendency of errors.
[0049] (Supplementary Note 7) An error correction circuit (100) according to another aspect of the present disclosure further includes a storage unit (120) storing a plurality of configuration files (121), and the setting unit (112) selects from the storage unit (120) a configuration file (121) for reconfiguring the logic circuit to one suitable for the failure status of the device (210), and switches by reconfiguring the logic circuit based on the selected configuration file (121). (Supplementary Note 8) An error correction circuit (100) according to another aspect of the present disclosure further includes a notification unit (113) that, when it is determined that the device (210) has failed, notifies the failure of the device (210). (Supplementary Note 9) An error correction circuit (100) according to another aspect of the present disclosure, when it is determined that the device (210) has failed, reads data from the device (210) and backs it up.
[0050] (Supplementary Note 10) A control device (1) for industrial machinery according to one aspect of the present disclosure includes the error correction circuit. (Supplementary Note 11) In a method according to one aspect of the present disclosure, the error correction circuit executes the following steps when reading encoded data from a plurality of devices: checking the encoded data for errors; analyzing the tendency of errors to occur in the read encoded data; and, if it is determined as a result of the analysis that one of the plurality of devices has failed, switching a decoding circuit that decodes the encoded data to a logic circuit that performs decoding appropriate for the failure status of the device.
[0051] REFERENCE SIGNS LIST 1 control device 100 error correction circuit 110 processor 111 trend analysis unit 112 setting unit 113 notification unit 114 controller unit 115 encoding unit 116 decoding unit 117 inspection unit 120 storage unit 121 configuration file 122 program 130 logical device 131 controller 132 encoding circuit 133 decoding circuit 134 inspection circuit 200 memory bus 210 storage device
Claims
1. An error correction circuit comprising: a plurality of devices; a controller for writing and reading data to the devices; a coding circuit for coding data to be written to the devices; a decoding circuit capable of changing the logic circuit for decoding data read from the devices; an inspection circuit for detecting errors in the data read from the devices; and a setting unit for switching the decoding circuit, wherein redundant data is added to the data read from the devices, the inspection circuit detects errors in the data using the redundant data added to the data read from the devices, and when it is determined that the device is faulty based on the tendency of errors detected by the inspection circuit, the setting unit switches the decoding circuit to a logic circuit that performs decoding appropriate to the fault condition of the device.
2. The error correction circuit according to claim 1, wherein the encoding circuit is capable of changing a logic circuit, and when it is determined that the device is faulty based on the tendency for errors to occur detected by the inspection circuit, the setting unit switches the encoding circuit to a logic circuit that performs encoding appropriate to the fault condition of the device.
3. The error correction circuit according to claim 2, wherein the inspection circuit is capable of changing the logic circuit, and when it is determined that the device is faulty based on the tendency for errors to occur detected by the inspection circuit, the setting unit switches the inspection circuit to a logic circuit that performs an inspection appropriate to the fault condition of the device.
4. An error correction circuit as claimed in any one of claims 1 to 3, further comprising a trend analysis unit for analyzing the tendency of errors to occur in the read data, wherein the setting unit selects a destination logic circuit based on the tendency of errors to occur analyzed by the trend analysis unit.
5. The error correction circuit according to claim 4, wherein the trend analysis unit is configured with a reconfigurable logic circuit, and when the setting unit determines that the device is faulty based on the error occurrence tendency detected by the inspection circuit, it switches the trend analysis unit to a logic circuit that performs trend analysis appropriate to the fault condition of the device.
6. The error correction circuit according to claim 1, wherein the setting section sets parameters in the decoding circuit in accordance with a tendency for errors to occur.
7. An error correction circuit as claimed in any one of claims 1 to 3, further comprising a memory unit in which a plurality of configuration files are stored, wherein the setting unit selects from the memory unit a configuration file for reconfiguring the logic circuit to one suited to a failure condition of the device, and switches by reconfiguring the logic circuit based on the selected configuration file.
8. The error correction circuit according to claim 1, further comprising a notification unit that notifies the failure of the device when it is determined that the device has failed.
9. The error correction circuit according to claim 1, further comprising: if it is determined that the device has failed, data is read from the device and backed up.
10. A control device for industrial machinery, comprising an error correction circuit according to any one of claims 1 to 9.
11. A method in which an error correction circuit executes the following steps when reading encoded data from a plurality of devices: checking the encoded data for errors; analyzing the tendency of errors to occur in the read encoded data; and, if the analysis determines that any of the plurality of devices is faulty, switching a decoding circuit that decodes the encoded data to a logic circuit that performs decoding appropriate to the failure status of the device.
Citation Information
Patent Citations
Numerical controller
JP1996320713A
Method for controlling memory
JP1999025005A
Communication device and method
JP2005252622A
Data processor and start-up method thereof
JP2008191864A
Communication method over radio channel and rfid reader
JP2009519660A
