*W, ENUMERR This assignment is a violation of SystemVerilog strong typing rules for enumeration datatypes

In reply to dave_59:

what is the warning you are getting?