Techniques are provided for a register file cell that includes a primary
storage portion configured to store a first value, and a secondary
storage portion that is coupled to the primary storage portion. The
secondary storage portion is configured to function as a scan latch
during a test operation, and is further configured to store a second
value during normal operation. The second value is a duplicate of the
first value. The cell further includes an error detection portion that is
coupled to the primary storage portion and the secondary storage portion
and is configured to indicate a difference between the first value and
the second value, caused by a soft error.