EnhancingEmbeddedSystemsSimulationAChip-Hardware-in-the-LoopSimulationFrameworkPHDdissertation