rohd
rohd copied to clipboard
Write part-assign automation for `LogicArray`s
Motivation
Currently, to assign a group of elements in a LogicArray
, you need to operate on each of elements
you're interested in individually. This is tiresome.
Desired solution
Some automation that allows assigning a range or ranges of elements in a LogicArray
all at once.
Alternatives considered
No response
Additional details
There's some discussion to be had on API design.
Hey Max, I would like to take this one on
reference: panda
Case:
data[i:j] = Const(defaultValue)
data[i:j] = [Const(value1), Const(value2)]
or LogicArray() of length (j-i+1)
Closed in #456