-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
A: hwArea: `brisc-hw` crateArea: `brisc-hw` cratechore 🧹Cleanup / KTLO changeCleanup / KTLO changegood first issue 👋Good for newcomersGood for newcomers
Description
Overview
In the Memory trait, we have separate get/set functions for byte, halfword, word, and doubleword accesses. All of the implementations are the same, barring the field size.
We should look to reduce this boilerplate a bit, and create a single get/set function for all access widths. num-traits would likely be the best way to do this, but unfortunately, it does not have const handles for a type's bit length, min value, or max value.
Metadata
Metadata
Assignees
Labels
A: hwArea: `brisc-hw` crateArea: `brisc-hw` cratechore 🧹Cleanup / KTLO changeCleanup / KTLO changegood first issue 👋Good for newcomersGood for newcomers