This paper presents a refinable and customisable alternator model with its heterogeneous environment, all implemented in SystemC and SystemC-AMS. The virtual prototype can be configured easily, and the embedded software can be changed at any time. Experience has shown that the overall development time can be reduced. Indeed, with a high-level configurable description of the environment and a refinable synchronous machine system model, electronic designers can easily evaluate performances according to architecture exploration.