Initial draft of the v_sync_gen.  No testing completed and no significant errors encountered beyond syntax errors.