rohd
rohd copied to clipboard
Add helper function(s) to "split" `Logic`s and `LogicValue`s
Motivation
Some common use cases:
- Split a bus into individual bits to be processed independently
- Split a bus into chunks of equal size (e.g. bytes)
- Split a bus into chunks of unequal size (e.g. decoding a header with various fields)
Desired solution
A generic and powerful solution that applies to these and more cases would be ideal. It would be useful to have matching APIs for both Logic and LogicValue.
Alternatives considered
No response
Additional details
No response
This is already implemented in Logic via elements, but still needs something similar added for LogicValue