Packed array of enum data type

In reply to Chander_M:

Any packed type can be used to make an array of a packed type. So you can use an enum type, packed struct or packed array. Note that you lose some type safety when packing an enum into another type as it becomes easier to assign an unspecified encoding into the enum.

The only exception to this packing types is using the pre-defined packed arrays — integer, int, byte, etc. This restriction is because of historical Verilog. Initially the bit-widths of these types were platform dependent The original Verilog-XL simulator had an un-implemented feature to specify the size you wanted

integer [15:0] my__short_int;

There was actually enough existing code out there to cause confusion if this was defining a packed array of 15 integers, or an integer that wanted to be 16-bits wide.