Comprehensive online defect diagnosis in on-chip networks.