Thermal-aware system-level modeling and management for Multi-Processor Systems-on-Chip