A content addressable memory (CAM) device with selective error logging.
The CAM device includes a CAM array and an error detection circuit
coupled to receive a data value from a selected storage location within
the CAM array, the error detection circuit being adapted to generate an
error indication according to whether the data value includes an error.
An error storage circuit is coupled to receive the error indication from
the error detection circuit and is adapted to store an error address that
corresponds to the selected storage location if the error indication
indicates that the data value includes an error and if the error address
is not already stored within the error storage circuit.