esynr3z / corsair

Control and Status Register map generator for HDL projects
https://corsair.readthedocs.io
MIT License
97 stars 35 forks source link

Confusing terminology: MSB & LSB vs Offset & Width #16

Open iDoka opened 2 years ago

iDoka commented 2 years ago

In config used "mixed" terminology: LBS + Width to specify fields size and position inside word.

this is contrary to conventional terminology when used couple of terms: MSB & LSB or Offset & Width.

As an example of this point: https://github.com/sifive/duh/blob/master/docs/component.md#registers

name: 'data', bitOffset: 0, bitWidth: 5

It would be nice to add the complementary and meaningful term offset to the term width (instead currently using lsb) 🤓