added support for the VHDL generator to have a register field of an enumerated type.