VHDL fully implemented