Design Of Thermal Monitoring Infrastructures And Thermal Optimizations For High Performance Chips