ics-jku / instruction-decoder

MIT License
4 stars 1 forks source link

Proposal: Rename registers to mappings #13

Closed LucasKl closed 4 months ago

LucasKl commented 5 months ago

The register fields are mostly used to translate from integer values to strings. While often this is done for registers, sometimes it is not, for example with the RV32 fence instruction.

Renaming registers to mappings makes it maybe more clear that they can be used in other situations as well (e.g., translating a state value to a state name).

FRoith commented 5 months ago

yeah, makes a lot of sense, since I changed the way that "registers" work to allow that sort of functionality, renaming them to something like mappings is the play