rohd icon indicating copy to clipboard operation
rohd copied to clipboard

Add helper function(s) to "split" `Logic`s and `LogicValue`s

Open mkorbel1 opened this issue 2 years ago • 2 comments

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

mkorbel1 avatar Dec 22 '22 17:12 mkorbel1

This is already implemented in Logic via elements, but still needs something similar added for LogicValue

mkorbel1 avatar Nov 17 '23 19:11 mkorbel1