Designing of self-checking circuits with m-out-of–n code based checker