An Evolutionary Methodology for Test Generation for Peripheral Cores Via Dynamic FSM Extraction