Debug and diagnosis : mastering the life cycle of nano-scale systems on chip