A P1500 compliant BIST-based approach to embedded RAM diagnosis