Cycle-accurate power analysis for multiprocessor systems-on-a-chip