A Deadlock-Freeand Connectivity-Guaranteed Methodology for Achieving Fault-tolerance inOn-chip Networks