fixed an issue in the converted HostIF and added encoder1 initialization