Permanent Fault Detection and Diagnosis in the Lightweight Dual Modular Redundancy Architecture