Conversation
|
I'm not so concerned about startup time, so If we are concerned about this cost, then we can make it an optional utility template, like: so whoever wants it universally can say: |
|
And as usual, naming is a hard problem. "Length" is somewhat ambiguous (other interpretations: number of regs, sum of reg sizes, difference between lowest and highest offs of a register byte). One option could be to let a method return the highest-offset |
|
Also, we need to consider implications for custom implementations of read or write on bank level (such as "simple regs"): Would the existence of a |
|
Also, once we agree on a design, we also need to extend the PR with tests and docs. |
|
Verification #13711935: ✅ pass |
Does not add startup time but utilizes the startup memoized method
_sorted_regs()which means this method should not scale on bank length.Feel free to close this PR if it doesn't make sense to include this in dml-builtins.