For named constants the preference should be, in order of decreasing preference:
- enums
- localparams
- macros (defines)
Enums have both types and type checking. Localparams have types but no real checking. Macros are just text substitution.
For named constants the preference should be, in order of decreasing preference:
Enums have both types and type checking. Localparams have types but no real checking. Macros are just text substitution.