VHDL fixes

resolve vhdl issues in (generated) code