Modify some VHDL codes