Synchronization of alternator to the busbar, a VHDL based project