How to do a parametrizable access to a bit slice

So if I summarize, the msb_exp and lsb_exp, for defining the slice, must be either:

  • plain number
  • preprocessor macro pointing to a plain number (`define)
  • (local) parameter
  • enumeration name

And unfortunately const int that offers a lot of flexibility in term of being packaged into const (associative) arrays is not an option…