How to register associative array of enum with enum key in UVM factory?

In reply to jaykshah_1989:

You can avoid this by not using the UVM field macros. They are extremely inefficient and it is better to code the underlying structures yourself.