Developing k-out-of-n: G multilevel system with mixed redundancy strategy to protect DSP code using simplified swarm optimization