Fault detection and repair of DSC arrays through memristor sensing