A Built-in Self-Diagnosis and Repair Design With Fail Pattern Identification for Memories | IEEE Journals & Magazine | IEEE Xplore