Generating VHDL code