A memory system or a digital signal processor (DSP) includes
single-bit-error detection hardware in its level two (L2) memory
controller to mitigate the effects of soft errors. Error detection
hardware detects erroneous data that is fetched by the central processing
unit and signals the central processing unit. The parity is generated and
checked only for whole memory line accesses. This technique is especially
useful for cache memory. The central processing unit can query the memory
controller as to the specific location that generated the error and
decide the next course of action based on the type of data affected.