Patent attributes
A method for detecting a code error is proposed. The method is mainly applied for detecting whether there is a code error existed in the accessed data, in other words, for detecting whether there is only an error bit existed in the accessed data. After the data are accessed, the method generates an error comparison code correspondingly. Then, the method adds up each bit of the error comparison code to provide a summation value. After that, the method checks whether a carrying operation occurs and checks whether the summation value is equal to “1” when no carrying operation occurs. If no carrying operation occurs and the summation value is equal to “1”, the method determines that there is only an error bit existed in the accessed data. Thereby, the code errors are detected speedily and the number of the components for detection and the occupied area are reduced.