A method and apparatus for detecting an error compares a hardwired
reference value to a corresponding predetermined value and generates an
error indication in response to a change in the predetermined value. In
one embodiment, the predetermined value is set to be the same as the
hardwired reference value and in response to an electrostatic discharge
event or any other suitable cause of error, the predetermined value
changes so that a comparison indicates that an error has occurred. An
error indication is then generated which may be, for example, an
interrupt to recovery logic that generates recovery control information
to reset a functional block that was corrupted or to perform in an entire
chip reset if desired.