A Tool for Simulation and Fast Prototyping of Embedded Control Systems