VHDL Implementation